daily update
[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
718a6fd8 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 OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
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]
d053aef8 1007 --disable-largefile omit support for large files
d7040cdb
SE
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
5464f5a1
NN
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1014 --enable-targets alternative target configurations
1015 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
6ec7057a 1016 --enable-secureplt Default to creating read-only plt entries
504b7d20 1017 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
241a6c40
AM
1018 --enable-werror treat compile warnings as errors
1019 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
5464f5a1
NN
1022 --enable-install-libbfd controls installation of libbfd and related headers
1023 --disable-nls do not use Native Language Support
1024
1025Optional Packages:
1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1028 --with-pic try to use only PIC/non-PIC objects [default=use
1029 both]
1030 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1031 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1032 --with-separate-debug-dir=DIR
1033 Look for global separate debug info in DIR
1034 [default=LIBDIR/debug]
a1ac8190
JM
1035 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1036 Binutils"
c428fa83 1037 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
1038
1039Some influential environment variables:
1040 CC C compiler command
1041 CFLAGS C compiler flags
1042 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1043 nonstandard directory <lib dir>
1044 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045 headers in a nonstandard directory <include dir>
1046 CPP C preprocessor
1047
1048Use these variables to override the choices made by `configure' or to help
1049it to find libraries and programs with nonstandard names/locations.
1050
1051_ACEOF
1052fi
1053
1054if test "$ac_init_help" = "recursive"; then
1055 # If there are subdirs, report their specific --help.
1056 ac_popdir=`pwd`
1057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058 test -d $ac_dir || continue
1059 ac_builddir=.
1060
1061if test "$ac_dir" != .; then
1062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065else
1066 ac_dir_suffix= ac_top_builddir=
1067fi
1068
1069case $srcdir in
1070 .) # No --srcdir option. We are building in place.
1071 ac_srcdir=.
1072 if test -z "$ac_top_builddir"; then
1073 ac_top_srcdir=.
1074 else
1075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 fi ;;
1077 [\\/]* | ?:[\\/]* ) # Absolute path.
1078 ac_srcdir=$srcdir$ac_dir_suffix;
1079 ac_top_srcdir=$srcdir ;;
1080 *) # Relative path.
1081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
1083esac
1084
5464f5a1
NN
1085# Do not use `cd foo && pwd` to compute absolute paths, because
1086# the directories may not exist.
1087case `pwd` in
1088.) ac_abs_builddir="$ac_dir";;
1089*)
1090 case "$ac_dir" in
1091 .) ac_abs_builddir=`pwd`;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094 esac;;
1095esac
1096case $ac_abs_builddir in
1097.) ac_abs_top_builddir=${ac_top_builddir}.;;
1098*)
1099 case ${ac_top_builddir}. in
1100 .) ac_abs_top_builddir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103 esac;;
1104esac
1105case $ac_abs_builddir in
1106.) ac_abs_srcdir=$ac_srcdir;;
1107*)
1108 case $ac_srcdir in
1109 .) ac_abs_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112 esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_top_srcdir=$ac_top_srcdir;;
1116*)
1117 case $ac_top_srcdir in
1118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1121 esac;;
1122esac
6be7c12c 1123
5464f5a1
NN
1124 cd $ac_dir
1125 # Check for guested configure; otherwise get Cygnus style configure.
1126 if test -f $ac_srcdir/configure.gnu; then
1127 echo
1128 $SHELL $ac_srcdir/configure.gnu --help=recursive
1129 elif test -f $ac_srcdir/configure; then
1130 echo
1131 $SHELL $ac_srcdir/configure --help=recursive
1132 elif test -f $ac_srcdir/configure.ac ||
1133 test -f $ac_srcdir/configure.in; then
1134 echo
1135 $ac_configure --help
1136 else
1137 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1138 fi
7357c5b6 1139 cd $ac_popdir
5464f5a1 1140 done
6be7c12c
AO
1141fi
1142
5464f5a1
NN
1143test -n "$ac_init_help" && exit 0
1144if $ac_init_version; then
1145 cat <<\_ACEOF
6be7c12c 1146
5464f5a1
NN
1147Copyright (C) 2003 Free Software Foundation, Inc.
1148This configure script is free software; the Free Software Foundation
1149gives unlimited permission to copy, distribute and modify it.
1150_ACEOF
1151 exit 0
1152fi
1153exec 5>config.log
1154cat >&5 <<_ACEOF
1155This file contains any messages produced by compilers while
1156running configure, to aid debugging if configure makes a mistake.
6be7c12c 1157
5464f5a1
NN
1158It was created by $as_me, which was
1159generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1160
5464f5a1 1161 $ $0 $@
6be7c12c 1162
5464f5a1
NN
1163_ACEOF
1164{
1165cat <<_ASUNAME
1166## --------- ##
1167## Platform. ##
1168## --------- ##
1169
1170hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178
1179/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186
1187_ASUNAME
1188
1189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190for as_dir in $PATH
1191do
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195done
6be7c12c 1196
5464f5a1 1197} >&5
66e25bab 1198
5464f5a1 1199cat >&5 <<_ACEOF
b3baf5d0 1200
6be7c12c 1201
5464f5a1
NN
1202## ----------- ##
1203## Core tests. ##
1204## ----------- ##
252b5132 1205
5464f5a1 1206_ACEOF
c5d1701e 1207
6be7c12c 1208
5464f5a1
NN
1209# Keep a trace of the command line.
1210# Strip out --no-create and --no-recursion so they do not pile up.
1211# Strip out --silent because we don't want to record it for future runs.
1212# Also quote any args containing shell meta-characters.
1213# Make two passes to allow for proper duplicate-argument suppression.
1214ac_configure_args=
1215ac_configure_args0=
1216ac_configure_args1=
1217ac_sep=
1218ac_must_keep_next=false
1219for ac_pass in 1 2
1220do
1221 for ac_arg
1222 do
1223 case $ac_arg in
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 continue ;;
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 esac
1231 case $ac_pass in
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 2)
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1237 else
1238 case $ac_arg in
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 esac
1246 ;;
1247 -* ) ac_must_keep_next=true ;;
1248 esac
1249 fi
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1252 ac_sep=" "
1253 ;;
1254 esac
1255 done
1256done
1257$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260# When interrupted or exit'd, cleanup temporary files, and complete
1261# config.log. We remove comments because anyway the quotes in there
1262# would cause problems or look ugly.
1263# WARNING: Be sure not to use single quotes in there, as some shells,
1264# such as our DU 5.0 friend, will then `close' the trap.
1265trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1267 {
1268 echo
1269
1270 cat <<\_ASBOX
1271## ---------------- ##
1272## Cache variables. ##
1273## ---------------- ##
1274_ASBOX
1275 echo
1276 # The following way of writing the cache mishandles newlines in values,
1277{
1278 (set) 2>&1 |
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 *ac_space=\ *)
1281 sed -n \
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284 ;;
1285 *)
1286 sed -n \
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288 ;;
1289 esac;
1290}
1291 echo
1292
1293 cat <<\_ASBOX
1294## ----------------- ##
1295## Output variables. ##
1296## ----------------- ##
1297_ASBOX
1298 echo
1299 for ac_var in $ac_subst_vars
1300 do
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1305
1306 if test -n "$ac_subst_files"; then
1307 cat <<\_ASBOX
1308## ------------- ##
1309## Output files. ##
1310## ------------- ##
1311_ASBOX
1312 echo
1313 for ac_var in $ac_subst_files
1314 do
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1319 fi
1320
1321 if test -s confdefs.h; then
1322 cat <<\_ASBOX
1323## ----------- ##
1324## confdefs.h. ##
1325## ----------- ##
1326_ASBOX
1327 echo
1328 sed "/^$/d" confdefs.h | sort
1329 echo
1330 fi
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1334 } >&5
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 exit $exit_status
1338 ' 0
1339for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341done
1342ac_signal=0
1343
1344# confdefs.h avoids OS command line length limits that DEFS can exceed.
1345rm -rf conftest* confdefs.h
1346# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347echo >confdefs.h
1348
1349# Predefined preprocessor variables.
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_NAME "$PACKAGE_NAME"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_VERSION "$PACKAGE_VERSION"
1363_ACEOF
1364
1365
1366cat >>confdefs.h <<_ACEOF
1367#define PACKAGE_STRING "$PACKAGE_STRING"
1368_ACEOF
1369
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373_ACEOF
1374
1375
1376# Let the site file select an alternate cache file if it wants to.
1377# Prefer explicitly selected file to automatically selected ones.
1378if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 else
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383 fi
1384fi
1385for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1390 . "$ac_site_file"
1391 fi
1392done
1393
1394if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1404 fi
1405else
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1409fi
1410
1411# Check that the precious variables saved in the cache have kept the same
1412# value.
1413ac_cache_corrupted=false
1414for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1421 set,)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,set)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,);;
1430 *)
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1432 # differences in whitespace do not lead to failure.
1433 ac_old_val_w=`echo x $ac_old_val`
1434 ac_new_val_w=`echo x $ac_new_val`
1435 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
5464f5a1 1437echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1438 ac_cache_corrupted=:
1439 else
1440 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1442 eval $ac_var=\$ac_old_val
1443 fi
1444 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1445echo "$as_me: former value: \`$ac_old_val'" >&2;}
1446 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1447echo "$as_me: current value: \`$ac_new_val'" >&2;}
5464f5a1
NN
1448 fi;;
1449 esac
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1452 case $ac_new_val in
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1456 esac
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460 esac
1461 fi
1462done
1463if $ac_cache_corrupted; then
7357c5b6
AM
1464 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1465echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1471fi
1472
1473ac_ext=c
1474ac_cpp='$CPP $CPPFLAGS'
1475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
7357c5b6
AM
1495
1496
1497
5464f5a1
NN
1498
1499
1500
1501
1502ac_aux_dir=
1503for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504 if test -f $ac_dir/install-sh; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 break
1508 elif test -f $ac_dir/install.sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 break
1512 elif test -f $ac_dir/shtool; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/shtool install -c"
1515 break
1516 fi
1517done
1518if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521 { (exit 1); exit 1; }; }
1522fi
1523ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526
1527# Make sure we can run config.sub.
1528$ac_config_sub sun4 >/dev/null 2>&1 ||
1529 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531 { (exit 1); exit 1; }; }
1532
1533echo "$as_me:$LINENO: checking build system type" >&5
1534echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535if test "${ac_cv_build+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 ac_cv_build_alias=$build_alias
1539test -z "$ac_cv_build_alias" &&
1540 ac_cv_build_alias=`$ac_config_guess`
1541test -z "$ac_cv_build_alias" &&
1542 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544 { (exit 1); exit 1; }; }
1545ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1549
1550fi
1551echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552echo "${ECHO_T}$ac_cv_build" >&6
1553build=$ac_cv_build
1554build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559echo "$as_me:$LINENO: checking host system type" >&5
1560echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 ac_cv_host_alias=$host_alias
1565test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572fi
1573echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574echo "${ECHO_T}$ac_cv_host" >&6
1575host=$ac_cv_host
1576host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581echo "$as_me:$LINENO: checking target system type" >&5
1582echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 ac_cv_target_alias=$target_alias
1587test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596echo "${ECHO_T}$ac_cv_target" >&6
1597target=$ac_cv_target
1598target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603# The aliases save the names the user supplied, while $host etc.
1604# will get canonicalized.
1605test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1607 NONENONEs,x,x, &&
1608 program_prefix=${target_alias}-
1609ac_ext=c
1610ac_cpp='$CPP $CPPFLAGS'
1611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617echo "$as_me:$LINENO: checking for $ac_word" >&5
1618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1621else
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1624else
1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 break 2
1635 fi
1636done
1637done
1638
1639fi
1640fi
1641CC=$ac_cv_prog_CC
1642if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644echo "${ECHO_T}$CC" >&6
1645else
1646 echo "$as_me:$LINENO: result: no" >&5
1647echo "${ECHO_T}no" >&6
1648fi
1649
1650fi
1651if test -z "$ac_cv_prog_CC"; then
1652 ac_ct_CC=$CC
1653 # Extract the first word of "gcc", so it can be a program name with args.
1654set dummy gcc; ac_word=$2
1655echo "$as_me:$LINENO: checking for $ac_word" >&5
1656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660 if test -n "$ac_ct_CC"; then
1661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662else
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_ac_ct_CC="gcc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1673 fi
1674done
1675done
1676
1677fi
1678fi
1679ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680if test -n "$ac_ct_CC"; then
1681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682echo "${ECHO_T}$ac_ct_CC" >&6
1683else
1684 echo "$as_me:$LINENO: result: no" >&5
1685echo "${ECHO_T}no" >&6
1686fi
1687
1688 CC=$ac_ct_CC
1689else
1690 CC="$ac_cv_prog_CC"
1691fi
1692
1693if test -z "$CC"; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696set dummy ${ac_tool_prefix}cc; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1704else
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
1719fi
1720fi
1721CC=$ac_cv_prog_CC
1722if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724echo "${ECHO_T}$CC" >&6
1725else
1726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730fi
1731if test -z "$ac_cv_prog_CC"; then
1732 ac_ct_CC=$CC
1733 # Extract the first word of "cc", so it can be a program name with args.
1734set dummy cc; ac_word=$2
1735echo "$as_me:$LINENO: checking for $ac_word" >&5
1736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739else
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742else
1743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744for as_dir in $PATH
1745do
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="cc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1753 fi
1754done
1755done
1756
1757fi
1758fi
1759ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762echo "${ECHO_T}$ac_ct_CC" >&6
1763else
1764 echo "$as_me:$LINENO: result: no" >&5
1765echo "${ECHO_T}no" >&6
1766fi
1767
1768 CC=$ac_ct_CC
1769else
1770 CC="$ac_cv_prog_CC"
1771fi
1772
1773fi
1774if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776set dummy cc; ac_word=$2
1777echo "$as_me:$LINENO: checking for $ac_word" >&5
1778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1784else
1785 ac_prog_rejected=no
1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789 IFS=$as_save_IFS
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794 ac_prog_rejected=yes
1795 continue
1796 fi
1797 ac_cv_prog_CC="cc"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1800 fi
1801done
1802done
1803
1804if test $ac_prog_rejected = yes; then
1805 # We found a bogon in the path, so make sure we never use it.
1806 set dummy $ac_cv_prog_CC
1807 shift
1808 if test $# != 0; then
1809 # We chose a different compiler from the bogus one.
1810 # However, it has the same basename, so the bogon will be chosen
1811 # first if we set CC to just the basename; use the full file name.
1812 shift
1813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1814 fi
1815fi
1816fi
1817fi
1818CC=$ac_cv_prog_CC
1819if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821echo "${ECHO_T}$CC" >&6
1822else
1823 echo "$as_me:$LINENO: result: no" >&5
1824echo "${ECHO_T}no" >&6
1825fi
1826
1827fi
1828if test -z "$CC"; then
1829 if test -n "$ac_tool_prefix"; then
1830 for ac_prog in cl
1831 do
1832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834echo "$as_me:$LINENO: checking for $ac_word" >&5
1835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838else
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1841else
1842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843for as_dir in $PATH
1844do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
1852 fi
1853done
1854done
1855
1856fi
1857fi
1858CC=$ac_cv_prog_CC
1859if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861echo "${ECHO_T}$CC" >&6
1862else
1863 echo "$as_me:$LINENO: result: no" >&5
1864echo "${ECHO_T}no" >&6
1865fi
1866
1867 test -n "$CC" && break
1868 done
1869fi
1870if test -z "$CC"; then
1871 ac_ct_CC=$CC
1872 for ac_prog in cl
1873do
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875set dummy $ac_prog; ac_word=$2
1876echo "$as_me:$LINENO: checking for $ac_word" >&5
1877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880else
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883else
1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885for as_dir in $PATH
1886do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1894 fi
1895done
1896done
1897
1898fi
1899fi
1900ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903echo "${ECHO_T}$ac_ct_CC" >&6
1904else
1905 echo "$as_me:$LINENO: result: no" >&5
1906echo "${ECHO_T}no" >&6
1907fi
1908
1909 test -n "$ac_ct_CC" && break
1910done
1911
1912 CC=$ac_ct_CC
1913fi
1914
1915fi
1916
1917
7357c5b6
AM
1918test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1919echo "$as_me: error: in \`$ac_pwd':" >&2;}
1920{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5464f5a1
NN
1921See \`config.log' for more details." >&5
1922echo "$as_me: error: no acceptable C compiler found in \$PATH
1923See \`config.log' for more details." >&2;}
7357c5b6 1924 { (exit 1); exit 1; }; }; }
5464f5a1
NN
1925
1926# Provide some information about the compiler.
1927echo "$as_me:$LINENO:" \
1928 "checking for C compiler version" >&5
1929ac_compiler=`set X $ac_compile; echo $2`
1930{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1931 (eval $ac_compiler --version </dev/null >&5) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }
1935{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1936 (eval $ac_compiler -v </dev/null >&5) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }
1940{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1941 (eval $ac_compiler -V </dev/null >&5) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }
1945
1946cat >conftest.$ac_ext <<_ACEOF
1947/* confdefs.h. */
1948_ACEOF
1949cat confdefs.h >>conftest.$ac_ext
1950cat >>conftest.$ac_ext <<_ACEOF
1951/* end confdefs.h. */
1952
1953int
1954main ()
1955{
1956
1957 ;
1958 return 0;
1959}
1960_ACEOF
1961ac_clean_files_save=$ac_clean_files
1962ac_clean_files="$ac_clean_files a.out a.exe b.out"
1963# Try to create an executable without -o first, disregard a.out.
1964# It will help us diagnose broken compilers, and finding out an intuition
1965# of exeext.
1966echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1967echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1968ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1970 (eval $ac_link_default) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; then
1974 # Find the output, starting from the most likely. This scheme is
1975# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1976# resort.
1977
1978# Be careful to initialize this variable, since it used to be cached.
1979# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1980ac_cv_exeext=
1981# b.out is created by i960 compilers.
1982for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1983do
1984 test -f "$ac_file" || continue
1985 case $ac_file in
1986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1987 ;;
1988 conftest.$ac_ext )
1989 # This is the source file.
1990 ;;
1991 [ab].out )
1992 # We found the default executable, but exeext='' is most
1993 # certainly right.
1994 break;;
1995 *.* )
1996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1997 # FIXME: I believe we export ac_cv_exeext for Libtool,
1998 # but it would be cool to find out if it's true. Does anybody
1999 # maintain Libtool? --akim.
2000 export ac_cv_exeext
2001 break;;
2002 * )
2003 break;;
2004 esac
2005done
2006else
2007 echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
7357c5b6
AM
2010{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2011echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
2012{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2013See \`config.log' for more details." >&5
2014echo "$as_me: error: C compiler cannot create executables
2015See \`config.log' for more details." >&2;}
7357c5b6 2016 { (exit 77); exit 77; }; }; }
5464f5a1
NN
2017fi
2018
2019ac_exeext=$ac_cv_exeext
2020echo "$as_me:$LINENO: result: $ac_file" >&5
2021echo "${ECHO_T}$ac_file" >&6
2022
2023# Check the compiler produces executables we can run. If not, either
2024# the compiler is broken, or we cross compile.
2025echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2026echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2027# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2028# If not cross compiling, check that we can run a simple program.
2029if test "$cross_compiling" != yes; then
2030 if { ac_try='./$ac_file'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2036 cross_compiling=no
2037 else
2038 if test "$cross_compiling" = maybe; then
2039 cross_compiling=yes
2040 else
7357c5b6
AM
2041 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2042echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5464f5a1
NN
2044If you meant to cross compile, use \`--host'.
2045See \`config.log' for more details." >&5
2046echo "$as_me: error: cannot run C compiled programs.
2047If you meant to cross compile, use \`--host'.
2048See \`config.log' for more details." >&2;}
7357c5b6 2049 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2050 fi
2051 fi
2052fi
2053echo "$as_me:$LINENO: result: yes" >&5
2054echo "${ECHO_T}yes" >&6
2055
2056rm -f a.out a.exe conftest$ac_cv_exeext b.out
2057ac_clean_files=$ac_clean_files_save
2058# Check the compiler produces executables we can run. If not, either
2059# the compiler is broken, or we cross compile.
2060echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2061echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2062echo "$as_me:$LINENO: result: $cross_compiling" >&5
2063echo "${ECHO_T}$cross_compiling" >&6
2064
2065echo "$as_me:$LINENO: checking for suffix of executables" >&5
2066echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2068 (eval $ac_link) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; then
2072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2073# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2074# work properly (i.e., refer to `conftest.exe'), while it won't with
2075# `rm'.
2076for ac_file in conftest.exe conftest conftest.*; do
2077 test -f "$ac_file" || continue
2078 case $ac_file in
2079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2081 export ac_cv_exeext
2082 break;;
2083 * ) break;;
2084 esac
2085done
2086else
7357c5b6
AM
2087 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2088echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5464f5a1
NN
2090See \`config.log' for more details." >&5
2091echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2092See \`config.log' for more details." >&2;}
7357c5b6 2093 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2094fi
2095
2096rm -f conftest$ac_cv_exeext
2097echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2098echo "${ECHO_T}$ac_cv_exeext" >&6
2099
2100rm -f conftest.$ac_ext
2101EXEEXT=$ac_cv_exeext
2102ac_exeext=$EXEEXT
2103echo "$as_me:$LINENO: checking for suffix of object files" >&5
2104echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2105if test "${ac_cv_objext+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108 cat >conftest.$ac_ext <<_ACEOF
2109/* confdefs.h. */
2110_ACEOF
2111cat confdefs.h >>conftest.$ac_ext
2112cat >>conftest.$ac_ext <<_ACEOF
2113/* end confdefs.h. */
2114
2115int
2116main ()
2117{
2118
2119 ;
2120 return 0;
2121}
2122_ACEOF
2123rm -f conftest.o conftest.obj
2124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130 case $ac_file in
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2133 break;;
2134 esac
2135done
2136else
2137 echo "$as_me: failed program was:" >&5
2138sed 's/^/| /' conftest.$ac_ext >&5
2139
7357c5b6
AM
2140{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2141echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
2142{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2143See \`config.log' for more details." >&5
2144echo "$as_me: error: cannot compute suffix of object files: cannot compile
2145See \`config.log' for more details." >&2;}
7357c5b6 2146 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2147fi
2148
2149rm -f conftest.$ac_cv_objext conftest.$ac_ext
2150fi
2151echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2152echo "${ECHO_T}$ac_cv_objext" >&6
2153OBJEXT=$ac_cv_objext
2154ac_objext=$OBJEXT
2155echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2156echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2157if test "${ac_cv_c_compiler_gnu+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
2160 cat >conftest.$ac_ext <<_ACEOF
2161/* confdefs.h. */
2162_ACEOF
2163cat confdefs.h >>conftest.$ac_ext
2164cat >>conftest.$ac_ext <<_ACEOF
2165/* end confdefs.h. */
2166
2167int
2168main ()
2169{
2170#ifndef __GNUC__
2171 choke me
2172#endif
2173
2174 ;
2175 return 0;
2176}
2177_ACEOF
2178rm -f conftest.$ac_objext
2179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>conftest.er1
2181 ac_status=$?
2182 grep -v '^ *+' conftest.er1 >conftest.err
2183 rm -f conftest.er1
2184 cat conftest.err >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); } &&
7357c5b6
AM
2187 { ac_try='test -z "$ac_c_werror_flag"
2188 || test ! -s conftest.err'
5464f5a1
NN
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; } &&
2194 { ac_try='test -s conftest.$ac_objext'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 (eval $ac_try) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2200 ac_compiler_gnu=yes
2201else
2202 echo "$as_me: failed program was:" >&5
2203sed 's/^/| /' conftest.$ac_ext >&5
2204
2205ac_compiler_gnu=no
2206fi
2207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2208ac_cv_c_compiler_gnu=$ac_compiler_gnu
2209
2210fi
2211echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2212echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2213GCC=`test $ac_compiler_gnu = yes && echo yes`
2214ac_test_CFLAGS=${CFLAGS+set}
2215ac_save_CFLAGS=$CFLAGS
2216CFLAGS="-g"
2217echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2218echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2219if test "${ac_cv_prog_cc_g+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221else
2222 cat >conftest.$ac_ext <<_ACEOF
2223/* confdefs.h. */
2224_ACEOF
2225cat confdefs.h >>conftest.$ac_ext
2226cat >>conftest.$ac_ext <<_ACEOF
2227/* end confdefs.h. */
2228
2229int
2230main ()
2231{
2232
2233 ;
2234 return 0;
2235}
2236_ACEOF
2237rm -f conftest.$ac_objext
2238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
7357c5b6
AM
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
5464f5a1
NN
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 ac_cv_prog_cc_g=yes
2260else
2261 echo "$as_me: failed program was:" >&5
2262sed 's/^/| /' conftest.$ac_ext >&5
2263
2264ac_cv_prog_cc_g=no
2265fi
2266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267fi
2268echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2274 CFLAGS="-g -O2"
2275 else
2276 CFLAGS="-g"
2277 fi
2278else
2279 if test "$GCC" = yes; then
2280 CFLAGS="-O2"
2281 else
2282 CFLAGS=
2283 fi
2284fi
2285echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2286echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2287if test "${ac_cv_prog_cc_stdc+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289else
2290 ac_cv_prog_cc_stdc=no
2291ac_save_CC=$CC
2292cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h. */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
2297/* end confdefs.h. */
2298#include <stdarg.h>
2299#include <stdio.h>
2300#include <sys/types.h>
2301#include <sys/stat.h>
2302/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2303struct buf { int x; };
2304FILE * (*rcsopen) (struct buf *, struct stat *, int);
2305static char *e (p, i)
2306 char **p;
2307 int i;
2308{
2309 return p[i];
2310}
2311static char *f (char * (*g) (char **, int), char **p, ...)
2312{
2313 char *s;
2314 va_list v;
2315 va_start (v,p);
2316 s = g (p, va_arg (v,int));
2317 va_end (v);
2318 return s;
2319}
2320
2321/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2322 function prototypes and stuff, but not '\xHH' hex character constants.
2323 These don't provoke an error unfortunately, instead are silently treated
2324 as 'x'. The following induces an error, until -std1 is added to get
2325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2326 array size at least. It's necessary to write '\x00'==0 to get something
2327 that's true only with -std1. */
2328int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2329
2330int test (int i, double x);
2331struct s1 {int (*f) (int a);};
2332struct s2 {int (*f) (double a);};
2333int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2334int argc;
2335char **argv;
2336int
2337main ()
2338{
2339return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2340 ;
2341 return 0;
2342}
2343_ACEOF
2344# Don't try gcc -ansi; that turns off useful extensions and
2345# breaks some systems' header files.
2346# AIX -qlanglvl=ansi
2347# Ultrix and OSF/1 -std1
2348# HP-UX 10.20 and later -Ae
2349# HP-UX older versions -Aa -D_HPUX_SOURCE
2350# SVR4 -Xc -D__EXTENSIONS__
2351for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2352do
2353 CC="$ac_save_CC $ac_arg"
2354 rm -f conftest.$ac_objext
2355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2357 ac_status=$?
2358 grep -v '^ *+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
7357c5b6
AM
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
5464f5a1
NN
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_prog_cc_stdc=$ac_arg
2377break
2378else
2379 echo "$as_me: failed program was:" >&5
2380sed 's/^/| /' conftest.$ac_ext >&5
2381
2382fi
2383rm -f conftest.err conftest.$ac_objext
2384done
2385rm -f conftest.$ac_ext conftest.$ac_objext
2386CC=$ac_save_CC
2387
2388fi
2389
2390case "x$ac_cv_prog_cc_stdc" in
2391 x|xno)
2392 echo "$as_me:$LINENO: result: none needed" >&5
2393echo "${ECHO_T}none needed" >&6 ;;
2394 *)
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2396echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2397 CC="$CC $ac_cv_prog_cc_stdc" ;;
2398esac
2399
2400# Some people use a C++ compiler to compile C. Since we use `exit',
2401# in C++ we need to declare it. In case someone uses the same compiler
2402# for both compiling C and C++ we need to have the C++ compiler decide
2403# the declaration of exit, since it's the most demanding environment.
2404cat >conftest.$ac_ext <<_ACEOF
2405#ifndef __cplusplus
2406 choke me
2407#endif
2408_ACEOF
2409rm -f conftest.$ac_objext
2410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
7357c5b6
AM
2418 { ac_try='test -z "$ac_c_werror_flag"
2419 || test ! -s conftest.err'
5464f5a1
NN
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 for ac_declaration in \
2432 '' \
2433 'extern "C" void std::exit (int) throw (); using std::exit;' \
2434 'extern "C" void std::exit (int); using std::exit;' \
2435 'extern "C" void exit (int) throw ();' \
2436 'extern "C" void exit (int);' \
2437 'void exit (int);'
2438do
2439 cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h. */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h. */
2445$ac_declaration
2446#include <stdlib.h>
2447int
2448main ()
2449{
2450exit (42);
2451 ;
2452 return 0;
2453}
2454_ACEOF
2455rm -f conftest.$ac_objext
2456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
7357c5b6
AM
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
5464f5a1
NN
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 :
2478else
2479 echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482continue
2483fi
2484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 cat >conftest.$ac_ext <<_ACEOF
2486/* confdefs.h. */
2487_ACEOF
2488cat confdefs.h >>conftest.$ac_ext
2489cat >>conftest.$ac_ext <<_ACEOF
2490/* end confdefs.h. */
2491$ac_declaration
2492int
2493main ()
2494{
2495exit (42);
2496 ;
2497 return 0;
2498}
2499_ACEOF
2500rm -f conftest.$ac_objext
2501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
7357c5b6
AM
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
5464f5a1
NN
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 break
2523else
2524 echo "$as_me: failed program was:" >&5
2525sed 's/^/| /' conftest.$ac_ext >&5
2526
2527fi
2528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529done
2530rm -f conftest*
2531if test -n "$ac_declaration"; then
2532 echo '#ifdef __cplusplus' >>confdefs.h
2533 echo $ac_declaration >>confdefs.h
2534 echo '#endif' >>confdefs.h
2535fi
2536
2537else
2538 echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541fi
2542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543ac_ext=c
2544ac_cpp='$CPP $CPPFLAGS'
2545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548
2549
f5385ebf
AM
2550echo "$as_me:$LINENO: checking for library containing strerror" >&5
2551echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2552if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554else
f5385ebf
AM
2555 ac_func_search_save_LIBS=$LIBS
2556ac_cv_search_strerror=no
5464f5a1
NN
2557cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563
2564/* Override any gcc2 internal prototype to avoid an error. */
2565#ifdef __cplusplus
2566extern "C"
2567#endif
2568/* We use char because int might match the return type of a gcc2
2569 builtin and then its argument prototype would still apply. */
2570char strerror ();
2571int
2572main ()
2573{
2574strerror ();
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579rm -f conftest.$ac_objext conftest$ac_exeext
2580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2581 (eval $ac_link) 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
7357c5b6
AM
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
5464f5a1
NN
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest$ac_exeext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
f5385ebf 2601 ac_cv_search_strerror="none required"
5464f5a1
NN
2602else
2603 echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
5464f5a1
NN
2606fi
2607rm -f conftest.err conftest.$ac_objext \
2608 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2609if test "$ac_cv_search_strerror" = no; then
2610 for ac_lib in cposix; do
2611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2612 cat >conftest.$ac_ext <<_ACEOF
2613/* confdefs.h. */
2614_ACEOF
2615cat confdefs.h >>conftest.$ac_ext
2616cat >>conftest.$ac_ext <<_ACEOF
2617/* end confdefs.h. */
2618
2619/* Override any gcc2 internal prototype to avoid an error. */
2620#ifdef __cplusplus
2621extern "C"
2622#endif
2623/* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2625char strerror ();
2626int
2627main ()
2628{
2629strerror ();
2630 ;
2631 return 0;
2632}
2633_ACEOF
2634rm -f conftest.$ac_objext conftest$ac_exeext
2635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2636 (eval $ac_link) 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
7357c5b6
AM
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
f5385ebf
AM
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest$ac_exeext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_cv_search_strerror="-l$ac_lib"
2657break
2658else
2659 echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
5464f5a1 2662fi
f5385ebf
AM
2663rm -f conftest.err conftest.$ac_objext \
2664 conftest$ac_exeext conftest.$ac_ext
2665 done
5464f5a1 2666fi
f5385ebf
AM
2667LIBS=$ac_func_search_save_LIBS
2668fi
2669echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2670echo "${ECHO_T}$ac_cv_search_strerror" >&6
2671if test "$ac_cv_search_strerror" != no; then
2672 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2673
f5385ebf 2674fi
5464f5a1
NN
2675
2676
f5385ebf 2677am__api_version="1.9"
5464f5a1
NN
2678# Find a good install program. We prefer a C program (faster),
2679# so one script is as good as another. But avoid the broken or
2680# incompatible versions:
2681# SysV /etc/install, /usr/sbin/install
2682# SunOS /usr/etc/install
2683# IRIX /sbin/install
2684# AIX /bin/install
2685# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2687# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2689# OS/2's system install, which has a completely different semantic
252b5132 2690# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2691# Reject install programs that cannot install multiple files.
5464f5a1
NN
2692echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2693echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2694if test -z "$INSTALL"; then
5464f5a1
NN
2695if test "${ac_cv_path_install+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2697else
5464f5a1
NN
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 # Account for people who put trailing slashes in PATH elements.
2704case $as_dir/ in
2705 ./ | .// | /cC/* | \
2706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2707 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2708 /usr/ucb/* ) ;;
2709 *)
2710 # OSF1 and SCO ODT 3.0 have their own names for install.
2711 # Don't use installbsd from OSF since it installs stuff as root
2712 # by default.
2713 for ac_prog in ginstall scoinst install; do
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2716 if test $ac_prog = install &&
5464f5a1 2717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2718 # AIX install. It has an incompatible calling convention.
2719 :
5464f5a1
NN
2720 elif test $ac_prog = install &&
2721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722 # program-specific install script used by HP pwplus--don't use.
2723 :
252b5132 2724 else
58c85be7
RW
2725 rm -rf conftest.one conftest.two conftest.dir
2726 echo one > conftest.one
2727 echo two > conftest.two
2728 mkdir conftest.dir
2729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2730 test -s conftest.one && test -s conftest.two &&
2731 test -s conftest.dir/conftest.one &&
2732 test -s conftest.dir/conftest.two
2733 then
2734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2735 break 3
2736 fi
252b5132
RH
2737 fi
2738 fi
2739 done
5464f5a1
NN
2740 done
2741 ;;
2742esac
2743done
2744
58c85be7 2745rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2746
2747fi
2748 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2749 INSTALL=$ac_cv_path_install
252b5132 2750 else
58c85be7
RW
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for INSTALL within a source directory, because that will
252b5132 2753 # break other packages using the cache if that directory is
58c85be7 2754 # removed, or if the value is a relative name.
5464f5a1 2755 INSTALL=$ac_install_sh
252b5132
RH
2756 fi
2757fi
5464f5a1
NN
2758echo "$as_me:$LINENO: result: $INSTALL" >&5
2759echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2760
2761# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762# It thinks the first close brace ends the variable substitution.
2763test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2764
5464f5a1 2765test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2766
2767test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2768
5464f5a1
NN
2769echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2770echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2771# Just in case
2772sleep 1
f5385ebf 2773echo timestamp > conftest.file
252b5132
RH
2774# Do `set' in a subshell so we don't clobber the current shell's
2775# arguments. Must try -L first in case configure is actually a
2776# symlink; some systems play weird games with the mod time of symlinks
2777# (eg FreeBSD returns the mod time of the symlink's containing
2778# directory).
2779if (
f5385ebf 2780 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2781 if test "$*" = "X"; then
2782 # -L didn't work.
f5385ebf 2783 set X `ls -t $srcdir/configure conftest.file`
252b5132 2784 fi
f5385ebf
AM
2785 rm -f conftest.file
2786 if test "$*" != "X $srcdir/configure conftest.file" \
2787 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2788
2789 # If neither matched, then we have a broken ls. This can happen
2790 # if, for instance, CONFIG_SHELL is bash and it inherits a
2791 # broken ls alias from the environment. This has actually
2792 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2793 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2794alias in your environment" >&5
2795echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2796alias in your environment" >&2;}
2797 { (exit 1); exit 1; }; }
252b5132
RH
2798 fi
2799
f5385ebf 2800 test "$2" = conftest.file
252b5132
RH
2801 )
2802then
2803 # Ok.
2804 :
2805else
5464f5a1
NN
2806 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2807Check your system clock" >&5
2808echo "$as_me: error: newly created file is older than distributed files!
2809Check your system clock" >&2;}
2810 { (exit 1); exit 1; }; }
252b5132 2811fi
5464f5a1
NN
2812echo "$as_me:$LINENO: result: yes" >&5
2813echo "${ECHO_T}yes" >&6
252b5132 2814test "$program_prefix" != NONE &&
5464f5a1 2815 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2816# Use a double $ so make ignores it.
2817test "$program_suffix" != NONE &&
5464f5a1
NN
2818 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2819# Double any \ or $. echo might interpret backslashes.
2820# By default was `s,x,x', remove it if useless.
2821cat <<\_ACEOF >conftest.sed
2822s/[\\$]/&&/g;s/;s,x,x,$//
2823_ACEOF
2824program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2825rm conftest.sed
2826
f5385ebf
AM
2827# expand $ac_aux_dir to an absolute path
2828am_aux_dir=`cd $ac_aux_dir && pwd`
2829
2830test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2831# Use eval to expand $SHELL
2832if eval "$MISSING --run true"; then
2833 am_missing_run="$MISSING --run "
2834else
2835 am_missing_run=
2836 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2837echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2838fi
2839
2840if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2841 # We used to keeping the `.' as first argument, in order to
2842 # allow $(mkdir_p) to be used without argument. As in
2843 # $(mkdir_p) $(somedir)
2844 # where $(somedir) is conditionally defined. However this is wrong
2845 # for two reasons:
2846 # 1. if the package is installed by a user who cannot write `.'
2847 # make install will fail,
2848 # 2. the above comment should most certainly read
2849 # $(mkdir_p) $(DESTDIR)$(somedir)
2850 # so it does not work when $(somedir) is undefined and
2851 # $(DESTDIR) is not.
2852 # To support the latter case, we have to write
2853 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2854 # so the `.' trick is pointless.
2855 mkdir_p='mkdir -p --'
2856else
2857 # On NextStep and OpenStep, the `mkdir' command does not
2858 # recognize any option. It will interpret all options as
2859 # directories to create, and then abort because `.' already
2860 # exists.
2861 for d in ./-p ./--version;
2862 do
2863 test -d $d && rmdir $d
2864 done
2865 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2866 if test -f "$ac_aux_dir/mkinstalldirs"; then
2867 mkdir_p='$(mkinstalldirs)'
2868 else
2869 mkdir_p='$(install_sh) -d'
2870 fi
2871fi
2872
2873for ac_prog in gawk mawk nawk awk
2874do
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876set dummy $ac_prog; ac_word=$2
2877echo "$as_me:$LINENO: checking for $ac_word" >&5
2878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879if test "${ac_cv_prog_AWK+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882 if test -n "$AWK"; then
2883 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_AWK="$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897done
2898
2899fi
2900fi
2901AWK=$ac_cv_prog_AWK
2902if test -n "$AWK"; then
2903 echo "$as_me:$LINENO: result: $AWK" >&5
2904echo "${ECHO_T}$AWK" >&6
2905else
2906 echo "$as_me:$LINENO: result: no" >&5
2907echo "${ECHO_T}no" >&6
2908fi
2909
2910 test -n "$AWK" && break
2911done
2912
5464f5a1
NN
2913echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2914echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2915set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2916if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919 cat >conftest.make <<\_ACEOF
252b5132 2920all:
5464f5a1
NN
2921 @echo 'ac_maketemp="$(MAKE)"'
2922_ACEOF
252b5132 2923# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2924eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2925if test -n "$ac_maketemp"; then
2926 eval ac_cv_prog_make_${ac_make}_set=yes
2927else
2928 eval ac_cv_prog_make_${ac_make}_set=no
2929fi
5464f5a1 2930rm -f conftest.make
252b5132
RH
2931fi
2932if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2933 echo "$as_me:$LINENO: result: yes" >&5
2934echo "${ECHO_T}yes" >&6
252b5132
RH
2935 SET_MAKE=
2936else
5464f5a1
NN
2937 echo "$as_me:$LINENO: result: no" >&5
2938echo "${ECHO_T}no" >&6
252b5132
RH
2939 SET_MAKE="MAKE=${MAKE-make}"
2940fi
2941
f5385ebf
AM
2942rm -rf .tst 2>/dev/null
2943mkdir .tst 2>/dev/null
2944if test -d .tst; then
2945 am__leading_dot=.
2946else
2947 am__leading_dot=_
2948fi
2949rmdir .tst 2>/dev/null
2950
2951DEPDIR="${am__leading_dot}deps"
2952
2953 ac_config_commands="$ac_config_commands depfiles"
2954
2955
2956am_make=${MAKE-make}
2957cat > confinc << 'END'
2958am__doit:
2959 @echo done
2960.PHONY: am__doit
2961END
2962# If we don't find an include directive, just comment out the code.
2963echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2964echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2965am__include="#"
2966am__quote=
2967_am_result=none
2968# First try GNU make style include.
2969echo "include confinc" > confmf
2970# We grep out `Entering directory' and `Leaving directory'
2971# messages which can occur if `w' ends up in MAKEFLAGS.
2972# In particular we don't look at `^make:' because GNU make might
2973# be invoked under some other name (usually "gmake"), in which
2974# case it prints its new name instead of `make'.
2975if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2976 am__include=include
2977 am__quote=
2978 _am_result=GNU
2979fi
2980# Now try BSD make style include.
2981if test "$am__include" = "#"; then
2982 echo '.include "confinc"' > confmf
2983 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2984 am__include=.include
2985 am__quote="\""
2986 _am_result=BSD
2987 fi
2988fi
2989
2990
2991echo "$as_me:$LINENO: result: $_am_result" >&5
2992echo "${ECHO_T}$_am_result" >&6
2993rm -f confinc confmf
2994
2995# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2996if test "${enable_dependency_tracking+set}" = set; then
2997 enableval="$enable_dependency_tracking"
2998
2999fi;
3000if test "x$enable_dependency_tracking" != xno; then
3001 am_depcomp="$ac_aux_dir/depcomp"
3002 AMDEPBACKSLASH='\'
3003fi
3004
3005
3006if test "x$enable_dependency_tracking" != xno; then
3007 AMDEP_TRUE=
3008 AMDEP_FALSE='#'
3009else
3010 AMDEP_TRUE='#'
3011 AMDEP_FALSE=
3012fi
6be7c12c 3013
252b5132 3014
252b5132 3015
f5385ebf
AM
3016# test to see if srcdir already configured
3017if test "`cd $srcdir && pwd`" != "`pwd`" &&
3018 test -f $srcdir/config.status; then
5464f5a1
NN
3019 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3020echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3021 { (exit 1); exit 1; }; }
252b5132 3022fi
5464f5a1 3023
f5385ebf
AM
3024# test whether we have cygpath
3025if test -z "$CYGPATH_W"; then
3026 if (cygpath --version) >/dev/null 2>/dev/null; then
3027 CYGPATH_W='cygpath -w'
3028 else
3029 CYGPATH_W=echo
3030 fi
3031fi
3032
3033
3034# Define the identity of the package.
3035 PACKAGE=bfd
96497422 3036 VERSION=2.19.50
f5385ebf
AM
3037
3038
5464f5a1 3039cat >>confdefs.h <<_ACEOF
252b5132 3040#define PACKAGE "$PACKAGE"
5464f5a1 3041_ACEOF
252b5132 3042
5464f5a1
NN
3043
3044cat >>confdefs.h <<_ACEOF
252b5132 3045#define VERSION "$VERSION"
5464f5a1 3046_ACEOF
252b5132 3047
f5385ebf
AM
3048# Some tools Automake needs.
3049
3050ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3051
3052
3053AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3054
3055
3056AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3057
3058
3059AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3060
3061
3062MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 3063
f5385ebf 3064install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 3065
f5385ebf
AM
3066# Installed binaries are usually stripped using `strip' when the user
3067# run `make install-strip'. However `strip' might not be the right
3068# tool to use in cross-compilation environments, therefore Automake
3069# will honor the `STRIP' environment variable to overrule this program.
3070if test "$cross_compiling" != no; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073set dummy ${ac_tool_prefix}strip; ac_word=$2
3074echo "$as_me:$LINENO: checking for $ac_word" >&5
3075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076if test "${ac_cv_prog_STRIP+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
3079 if test -n "$STRIP"; then
3080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3081else
f5385ebf
AM
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093done
3094done
3095
3096fi
3097fi
3098STRIP=$ac_cv_prog_STRIP
3099if test -n "$STRIP"; then
3100 echo "$as_me:$LINENO: result: $STRIP" >&5
3101echo "${ECHO_T}$STRIP" >&6
3102else
3103 echo "$as_me:$LINENO: result: no" >&5
3104echo "${ECHO_T}no" >&6
3105fi
3106
252b5132 3107fi
f5385ebf
AM
3108if test -z "$ac_cv_prog_STRIP"; then
3109 ac_ct_STRIP=$STRIP
3110 # Extract the first word of "strip", so it can be a program name with args.
3111set dummy strip; ac_word=$2
3112echo "$as_me:$LINENO: checking for $ac_word" >&5
3113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116else
3117 if test -n "$ac_ct_STRIP"; then
3118 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_STRIP="strip"
3128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131done
3132done
252b5132 3133
f5385ebf
AM
3134 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3135fi
3136fi
3137ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3138if test -n "$ac_ct_STRIP"; then
3139 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3140echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3141else
f5385ebf
AM
3142 echo "$as_me:$LINENO: result: no" >&5
3143echo "${ECHO_T}no" >&6
252b5132
RH
3144fi
3145
f5385ebf 3146 STRIP=$ac_ct_STRIP
252b5132 3147else
f5385ebf
AM
3148 STRIP="$ac_cv_prog_STRIP"
3149fi
3150
252b5132 3151fi
f5385ebf
AM
3152INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3153
3154# We need awk for the "check" target. The system "awk" is bad on
3155# some platforms.
3156# Always define AMTAR for backward compatibility.
3157
3158AMTAR=${AMTAR-"${am_missing_run}tar"}
3159
3160am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3161
252b5132 3162
f5385ebf
AM
3163
3164
3165depcc="$CC" am_compiler_list=
3166
3167echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3168echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3169if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3171else
f5385ebf
AM
3172 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3173 # We make a subdir and do the tests there. Otherwise we can end up
3174 # making bogus files that we don't know about and never remove. For
3175 # instance it was reported that on HP-UX the gcc test will end up
3176 # making a dummy file named `D' -- because `-MD' means `put the output
3177 # in D'.
3178 mkdir conftest.dir
3179 # Copy depcomp to subdir because otherwise we won't find it if we're
3180 # using a relative directory.
3181 cp "$am_depcomp" conftest.dir
3182 cd conftest.dir
3183 # We will build objects and dependencies in a subdirectory because
3184 # it helps to detect inapplicable dependency modes. For instance
3185 # both Tru64's cc and ICC support -MD to output dependencies as a
3186 # side effect of compilation, but ICC will put the dependencies in
3187 # the current directory while Tru64 will put them in the object
3188 # directory.
3189 mkdir sub
3190
3191 am_cv_CC_dependencies_compiler_type=none
3192 if test "$am_compiler_list" = ""; then
3193 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3194 fi
3195 for depmode in $am_compiler_list; do
3196 # Setup a source with many dependencies, because some compilers
3197 # like to wrap large dependency lists on column 80 (with \), and
3198 # we should not choose a depcomp mode which is confused by this.
3199 #
3200 # We need to recreate these files for each test, as the compiler may
3201 # overwrite some of them when testing with obscure command lines.
3202 # This happens at least with the AIX C compiler.
3203 : > sub/conftest.c
3204 for i in 1 2 3 4 5 6; do
3205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3206 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3207 # Solaris 8's {/usr,}/bin/sh.
3208 touch sub/conftst$i.h
3209 done
3210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3211
3212 case $depmode in
3213 nosideeffect)
3214 # after this tag, mechanisms are not by side-effect, so they'll
3215 # only be used when explicitly requested
3216 if test "x$enable_dependency_tracking" = xyes; then
3217 continue
3218 else
3219 break
3220 fi
3221 ;;
3222 none) break ;;
3223 esac
3224 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3225 # mode. It turns out that the SunPro C++ compiler does not properly
3226 # handle `-M -o', and we need to detect this.
3227 if depmode=$depmode \
3228 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3230 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3231 >/dev/null 2>conftest.err &&
3232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3233 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3235 # icc doesn't choke on unknown options, it will just issue warnings
3236 # or remarks (even with -Werror). So we grep stderr for any message
3237 # that says an option was ignored or not supported.
3238 # When given -MP, icc 7.0 and 7.1 complain thusly:
3239 # icc: Command line warning: ignoring option '-M'; no argument required
3240 # The diagnosis changed in icc 8.0:
3241 # icc: Command line remark: option '-MP' not supported
3242 if (grep 'ignoring option' conftest.err ||
3243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3244 am_cv_CC_dependencies_compiler_type=$depmode
3245 break
3246 fi
3247 fi
3248 done
3249
3250 cd ..
3251 rm -rf conftest.dir
3252else
3253 am_cv_CC_dependencies_compiler_type=none
3254fi
3255
252b5132 3256fi
f5385ebf
AM
3257echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3258echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3259CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3260
f5385ebf
AM
3261
3262
3263if
3264 test "x$enable_dependency_tracking" != xno \
3265 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3266 am__fastdepCC_TRUE=
3267 am__fastdepCC_FALSE='#'
252b5132 3268else
f5385ebf
AM
3269 am__fastdepCC_TRUE='#'
3270 am__fastdepCC_FALSE=
252b5132
RH
3271fi
3272
6be7c12c 3273
e43d48cc 3274
f5385ebf 3275
5464f5a1
NN
3276if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3278set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3279echo "$as_me:$LINENO: checking for $ac_word" >&5
3280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281if test "${ac_cv_prog_AR+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3283else
3284 if test -n "$AR"; then
3285 ac_cv_prog_AR="$AR" # Let the user override the test.
3286else
5464f5a1
NN
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_AR="${ac_tool_prefix}ar"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298done
3299done
3300
252b5132
RH
3301fi
3302fi
5464f5a1 3303AR=$ac_cv_prog_AR
252b5132 3304if test -n "$AR"; then
5464f5a1
NN
3305 echo "$as_me:$LINENO: result: $AR" >&5
3306echo "${ECHO_T}$AR" >&6
252b5132 3307else
5464f5a1
NN
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310fi
3311
252b5132 3312fi
5464f5a1
NN
3313if test -z "$ac_cv_prog_AR"; then
3314 ac_ct_AR=$AR
3315 # Extract the first word of "ar", so it can be a program name with args.
3316set dummy ar; ac_word=$2
3317echo "$as_me:$LINENO: checking for $ac_word" >&5
3318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322 if test -n "$ac_ct_AR"; then
3323 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3324else
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_AR="ar"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336done
3337done
252b5132 3338
5464f5a1
NN
3339fi
3340fi
3341ac_ct_AR=$ac_cv_prog_ac_ct_AR
3342if test -n "$ac_ct_AR"; then
3343 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3344echo "${ECHO_T}$ac_ct_AR" >&6
3345else
3346 echo "$as_me:$LINENO: result: no" >&5
3347echo "${ECHO_T}no" >&6
3348fi
252b5132 3349
5464f5a1
NN
3350 AR=$ac_ct_AR
3351else
3352 AR="$ac_cv_prog_AR"
3353fi
6be7c12c 3354
5464f5a1
NN
3355if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3357set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3358echo "$as_me:$LINENO: checking for $ac_word" >&5
3359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360if test "${ac_cv_prog_RANLIB+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3362else
3363 if test -n "$RANLIB"; then
3364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365else
5464f5a1
NN
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377done
3378done
3379
252b5132
RH
3380fi
3381fi
5464f5a1 3382RANLIB=$ac_cv_prog_RANLIB
252b5132 3383if test -n "$RANLIB"; then
5464f5a1
NN
3384 echo "$as_me:$LINENO: result: $RANLIB" >&5
3385echo "${ECHO_T}$RANLIB" >&6
252b5132 3386else
5464f5a1
NN
3387 echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
252b5132
RH
3389fi
3390
5464f5a1 3391fi
252b5132 3392if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3393 ac_ct_RANLIB=$RANLIB
252b5132
RH
3394 # Extract the first word of "ranlib", so it can be a program name with args.
3395set dummy ranlib; ac_word=$2
5464f5a1
NN
3396echo "$as_me:$LINENO: checking for $ac_word" >&5
3397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3400else
5464f5a1
NN
3401 if test -n "$ac_ct_RANLIB"; then
3402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3403else
5464f5a1
NN
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_RANLIB="ranlib"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415done
3416done
3417
3418 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3419fi
3420fi
5464f5a1
NN
3421ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3422if test -n "$ac_ct_RANLIB"; then
3423 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3424echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3425else
5464f5a1
NN
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
252b5132
RH
3428fi
3429
5464f5a1 3430 RANLIB=$ac_ct_RANLIB
252b5132 3431else
5464f5a1 3432 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3433fi
3434
252b5132
RH
3435
3436# Check whether --enable-shared or --disable-shared was given.
3437if test "${enable_shared+set}" = set; then
3438 enableval="$enable_shared"
3439 p=${PACKAGE-default}
d7040cdb
SE
3440 case $enableval in
3441 yes) enable_shared=yes ;;
3442 no) enable_shared=no ;;
3443 *)
3444 enable_shared=no
3445 # Look at the argument we got. We use all the common list separators.
3446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3447 for pkg in $enableval; do
3448 IFS="$lt_save_ifs"
3449 if test "X$pkg" = "X$p"; then
3450 enable_shared=yes
3451 fi
3452 done
3453 IFS="$lt_save_ifs"
3454 ;;
3455 esac
252b5132
RH
3456else
3457 enable_shared=no
5464f5a1 3458fi;
252b5132 3459
d7040cdb
SE
3460
3461
3462
3463
3464
3465
3466
3467
cfbc9945
SE
3468ac_ext=c
3469ac_cpp='$CPP $CPPFLAGS'
3470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473if test -n "$ac_tool_prefix"; then
3474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3475set dummy ${ac_tool_prefix}gcc; ac_word=$2
3476echo "$as_me:$LINENO: checking for $ac_word" >&5
3477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478if test "${ac_cv_prog_CC+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3480else
cfbc9945
SE
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 3483else
cfbc9945
SE
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3494 fi
3495done
3496done
c5d1701e 3497
cfbc9945
SE
3498fi
3499fi
3500CC=$ac_cv_prog_CC
3501if test -n "$CC"; then
3502 echo "$as_me:$LINENO: result: $CC" >&5
3503echo "${ECHO_T}$CC" >&6
252b5132 3504else
cfbc9945
SE
3505 echo "$as_me:$LINENO: result: no" >&5
3506echo "${ECHO_T}no" >&6
252b5132 3507fi
cfbc9945
SE
3508
3509fi
3510if test -z "$ac_cv_prog_CC"; then
3511 ac_ct_CC=$CC
3512 # Extract the first word of "gcc", so it can be a program name with args.
3513set dummy gcc; ac_word=$2
3514echo "$as_me:$LINENO: checking for $ac_word" >&5
3515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3517 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3518else
cfbc9945
SE
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3521else
cfbc9945
SE
3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_ac_ct_CC="gcc"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533done
3534done
3535
252b5132
RH
3536fi
3537fi
cfbc9945
SE
3538ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539if test -n "$ac_ct_CC"; then
3540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3541echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3542else
5464f5a1
NN
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
252b5132 3545fi
cfbc9945
SE
3546
3547 CC=$ac_ct_CC
3548else
3549 CC="$ac_cv_prog_CC"
3550fi
3551
3552if test -z "$CC"; then
3553 if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3555set dummy ${ac_tool_prefix}cc; ac_word=$2
3556echo "$as_me:$LINENO: checking for $ac_word" >&5
3557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3559 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3560else
cfbc9945
SE
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3563else
cfbc9945
SE
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="${ac_tool_prefix}cc"
3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575done
3576done
3577
252b5132
RH
3578fi
3579fi
cfbc9945
SE
3580CC=$ac_cv_prog_CC
3581if test -n "$CC"; then
3582 echo "$as_me:$LINENO: result: $CC" >&5
3583echo "${ECHO_T}$CC" >&6
ac48eca1 3584else
cfbc9945
SE
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
ac48eca1 3587fi
ac48eca1 3588
cfbc9945
SE
3589fi
3590if test -z "$ac_cv_prog_CC"; then
3591 ac_ct_CC=$CC
3592 # Extract the first word of "cc", so it can be a program name with args.
3593set dummy cc; ac_word=$2
3594echo "$as_me:$LINENO: checking for $ac_word" >&5
3595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3596if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3597 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3598else
cfbc9945
SE
3599 if test -n "$ac_ct_CC"; then
3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3601else
cfbc9945
SE
3602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603for as_dir in $PATH
3604do
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_ac_ct_CC="cc"
3610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3612 fi
3613done
3614done
3615
252b5132 3616fi
cfbc9945
SE
3617fi
3618ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619if test -n "$ac_ct_CC"; then
3620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3621echo "${ECHO_T}$ac_ct_CC" >&6
3622else
3623 echo "$as_me:$LINENO: result: no" >&5
3624echo "${ECHO_T}no" >&6
252b5132
RH
3625fi
3626
cfbc9945
SE
3627 CC=$ac_ct_CC
3628else
3629 CC="$ac_cv_prog_CC"
3630fi
252b5132 3631
cfbc9945
SE
3632fi
3633if test -z "$CC"; then
3634 # Extract the first word of "cc", so it can be a program name with args.
3635set dummy cc; ac_word=$2
3636echo "$as_me:$LINENO: checking for $ac_word" >&5
3637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638if test "${ac_cv_prog_CC+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3640else
cfbc9945
SE
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3643else
3644 ac_prog_rejected=no
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653 ac_prog_rejected=yes
3654 continue
3655 fi
3656 ac_cv_prog_CC="cc"
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3659 fi
3660done
3661done
3662
3663if test $ac_prog_rejected = yes; then
3664 # We found a bogon in the path, so make sure we never use it.
3665 set dummy $ac_cv_prog_CC
3666 shift
3667 if test $# != 0; then
3668 # We chose a different compiler from the bogus one.
3669 # However, it has the same basename, so the bogon will be chosen
3670 # first if we set CC to just the basename; use the full file name.
3671 shift
3672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3673 fi
3674fi
3675fi
3676fi
3677CC=$ac_cv_prog_CC
3678if test -n "$CC"; then
3679 echo "$as_me:$LINENO: result: $CC" >&5
3680echo "${ECHO_T}$CC" >&6
3681else
3682 echo "$as_me:$LINENO: result: no" >&5
3683echo "${ECHO_T}no" >&6
252b5132
RH
3684fi
3685
cfbc9945
SE
3686fi
3687if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 for ac_prog in cl
3690 do
3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693echo "$as_me:$LINENO: checking for $ac_word" >&5
3694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3696 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3697else
cfbc9945
SE
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700else
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712done
3713done
ac48eca1 3714
cfbc9945
SE
3715fi
3716fi
3717CC=$ac_cv_prog_CC
3718if test -n "$CC"; then
3719 echo "$as_me:$LINENO: result: $CC" >&5
3720echo "${ECHO_T}$CC" >&6
3721else
3722 echo "$as_me:$LINENO: result: no" >&5
3723echo "${ECHO_T}no" >&6
3724fi
ac48eca1 3725
cfbc9945
SE
3726 test -n "$CC" && break
3727 done
3728fi
3729if test -z "$CC"; then
3730 ac_ct_CC=$CC
3731 for ac_prog in cl
3732do
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734set dummy $ac_prog; ac_word=$2
3735echo "$as_me:$LINENO: checking for $ac_word" >&5
3736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 if test -n "$ac_ct_CC"; then
3741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742else
3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_ac_ct_CC="$ac_prog"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754done
3755done
ac48eca1 3756
cfbc9945
SE
3757fi
3758fi
3759ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760if test -n "$ac_ct_CC"; then
3761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3762echo "${ECHO_T}$ac_ct_CC" >&6
3763else
3764 echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6
3766fi
ac48eca1 3767
cfbc9945
SE
3768 test -n "$ac_ct_CC" && break
3769done
ac48eca1 3770
cfbc9945
SE
3771 CC=$ac_ct_CC
3772fi
55c80943 3773
cfbc9945 3774fi
ac48eca1 3775
ac48eca1 3776
7357c5b6
AM
3777test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3778echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
cfbc9945
SE
3780See \`config.log' for more details." >&5
3781echo "$as_me: error: no acceptable C compiler found in \$PATH
3782See \`config.log' for more details." >&2;}
7357c5b6 3783 { (exit 1); exit 1; }; }; }
ac48eca1 3784
cfbc9945
SE
3785# Provide some information about the compiler.
3786echo "$as_me:$LINENO:" \
3787 "checking for C compiler version" >&5
3788ac_compiler=`set X $ac_compile; echo $2`
3789{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3790 (eval $ac_compiler --version </dev/null >&5) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }
3794{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3795 (eval $ac_compiler -v </dev/null >&5) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }
3799{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3800 (eval $ac_compiler -V </dev/null >&5) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }
ac48eca1 3804
cfbc9945
SE
3805echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3806echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3807if test "${ac_cv_c_compiler_gnu+set}" = set; then
5464f5a1 3808 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3809else
cfbc9945
SE
3810 cat >conftest.$ac_ext <<_ACEOF
3811/* confdefs.h. */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h. */
ac48eca1 3816
cfbc9945
SE
3817int
3818main ()
3819{
3820#ifndef __GNUC__
3821 choke me
3822#endif
5464f5a1 3823
cfbc9945
SE
3824 ;
3825 return 0;
3826}
3827_ACEOF
3828rm -f conftest.$ac_objext
3829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
7357c5b6
AM
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
cfbc9945
SE
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 ac_compiler_gnu=yes
ac48eca1 3851else
cfbc9945
SE
3852 echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855ac_compiler_gnu=no
ac48eca1 3856fi
cfbc9945
SE
3857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3859
5464f5a1 3860fi
cfbc9945
SE
3861echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3862echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3863GCC=`test $ac_compiler_gnu = yes && echo yes`
3864ac_test_CFLAGS=${CFLAGS+set}
3865ac_save_CFLAGS=$CFLAGS
3866CFLAGS="-g"
3867echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3868echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3869if test "${ac_cv_prog_cc_g+set}" = set; then
5464f5a1 3870 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3871else
cfbc9945
SE
3872 cat >conftest.$ac_ext <<_ACEOF
3873/* confdefs.h. */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h. */
3878
3879int
3880main ()
3881{
3882
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887rm -f conftest.$ac_objext
3888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
7357c5b6
AM
3896 { ac_try='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
cfbc9945
SE
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try='test -s conftest.$ac_objext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_cv_prog_cc_g=yes
6be7c12c 3910else
cfbc9945
SE
3911 echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3913
cfbc9945 3914ac_cv_prog_cc_g=no
ac48eca1 3915fi
cfbc9945 3916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3917fi
cfbc9945
SE
3918echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3919echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3920if test "$ac_test_CFLAGS" = set; then
3921 CFLAGS=$ac_save_CFLAGS
3922elif test $ac_cv_prog_cc_g = yes; then
3923 if test "$GCC" = yes; then
3924 CFLAGS="-g -O2"
3925 else
3926 CFLAGS="-g"
3927 fi
ac48eca1 3928else
cfbc9945
SE
3929 if test "$GCC" = yes; then
3930 CFLAGS="-O2"
3931 else
3932 CFLAGS=
3933 fi
ac48eca1 3934fi
cfbc9945
SE
3935echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3936echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3937if test "${ac_cv_prog_cc_stdc+set}" = set; then
5464f5a1 3938 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3939else
cfbc9945
SE
3940 ac_cv_prog_cc_stdc=no
3941ac_save_CC=$CC
3942cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
3948#include <stdarg.h>
3949#include <stdio.h>
3950#include <sys/types.h>
3951#include <sys/stat.h>
3952/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3953struct buf { int x; };
3954FILE * (*rcsopen) (struct buf *, struct stat *, int);
3955static char *e (p, i)
3956 char **p;
3957 int i;
3958{
3959 return p[i];
3960}
3961static char *f (char * (*g) (char **, int), char **p, ...)
3962{
3963 char *s;
3964 va_list v;
3965 va_start (v,p);
3966 s = g (p, va_arg (v,int));
3967 va_end (v);
3968 return s;
3969}
5464f5a1 3970
cfbc9945
SE
3971/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3972 function prototypes and stuff, but not '\xHH' hex character constants.
3973 These don't provoke an error unfortunately, instead are silently treated
3974 as 'x'. The following induces an error, until -std1 is added to get
3975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3976 array size at least. It's necessary to write '\x00'==0 to get something
3977 that's true only with -std1. */
3978int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3979
3980int test (int i, double x);
3981struct s1 {int (*f) (int a);};
3982struct s2 {int (*f) (double a);};
3983int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3984int argc;
3985char **argv;
3986int
3987main ()
3988{
3989return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3990 ;
3991 return 0;
3992}
3993_ACEOF
3994# Don't try gcc -ansi; that turns off useful extensions and
3995# breaks some systems' header files.
3996# AIX -qlanglvl=ansi
3997# Ultrix and OSF/1 -std1
3998# HP-UX 10.20 and later -Ae
3999# HP-UX older versions -Aa -D_HPUX_SOURCE
4000# SVR4 -Xc -D__EXTENSIONS__
4001for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002do
4003 CC="$ac_save_CC $ac_arg"
4004 rm -f conftest.$ac_objext
4005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
7357c5b6
AM
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
cfbc9945
SE
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 ac_cv_prog_cc_stdc=$ac_arg
4027break
ac48eca1 4028else
cfbc9945
SE
4029 echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4031
5464f5a1 4032fi
cfbc9945 4033rm -f conftest.err conftest.$ac_objext
5464f5a1 4034done
cfbc9945
SE
4035rm -f conftest.$ac_ext conftest.$ac_objext
4036CC=$ac_save_CC
5464f5a1 4037
ac48eca1 4038fi
252b5132 4039
cfbc9945
SE
4040case "x$ac_cv_prog_cc_stdc" in
4041 x|xno)
4042 echo "$as_me:$LINENO: result: none needed" >&5
4043echo "${ECHO_T}none needed" >&6 ;;
4044 *)
4045 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4046echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4047 CC="$CC $ac_cv_prog_cc_stdc" ;;
4048esac
6be7c12c 4049
cfbc9945
SE
4050# Some people use a C++ compiler to compile C. Since we use `exit',
4051# in C++ we need to declare it. In case someone uses the same compiler
4052# for both compiling C and C++ we need to have the C++ compiler decide
4053# the declaration of exit, since it's the most demanding environment.
4054cat >conftest.$ac_ext <<_ACEOF
4055#ifndef __cplusplus
4056 choke me
4057#endif
4058_ACEOF
4059rm -f conftest.$ac_objext
4060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
5464f5a1 4062 ac_status=$?
cfbc9945
SE
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
5464f5a1 4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945 4067 (exit $ac_status); } &&
7357c5b6
AM
4068 { ac_try='test -z "$ac_c_werror_flag"
4069 || test ! -s conftest.err'
cfbc9945
SE
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
5464f5a1
NN
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
d70c5fc7
NC
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4080 (exit $ac_status); }; }; then
4081 for ac_declaration in \
4082 '' \
4083 'extern "C" void std::exit (int) throw (); using std::exit;' \
4084 'extern "C" void std::exit (int); using std::exit;' \
4085 'extern "C" void exit (int) throw ();' \
4086 'extern "C" void exit (int);' \
4087 'void exit (int);'
4088do
4089 cat >conftest.$ac_ext <<_ACEOF
4090/* confdefs.h. */
4091_ACEOF
4092cat confdefs.h >>conftest.$ac_ext
4093cat >>conftest.$ac_ext <<_ACEOF
4094/* end confdefs.h. */
4095$ac_declaration
4096#include <stdlib.h>
4097int
4098main ()
4099{
4100exit (42);
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105rm -f conftest.$ac_objext
4106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107 (eval $ac_compile) 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
7357c5b6
AM
4114 { ac_try='test -z "$ac_c_werror_flag"
4115 || test ! -s conftest.err'
cfbc9945
SE
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 :
b2ef150d 4128else
cfbc9945
SE
4129 echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 4131
cfbc9945
SE
4132continue
4133fi
4134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
4136/* confdefs.h. */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h. */
cfbc9945 4141$ac_declaration
5464f5a1
NN
4142int
4143main ()
4144{
cfbc9945 4145exit (42);
5464f5a1
NN
4146 ;
4147 return 0;
4148}
4149_ACEOF
cfbc9945
SE
4150rm -f conftest.$ac_objext
4151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
7357c5b6
AM
4159 { ac_try='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
5464f5a1
NN
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
cfbc9945 4166 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
cfbc9945 4172 break
b2ef150d 4173else
5464f5a1
NN
4174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
b2ef150d 4177fi
cfbc9945
SE
4178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179done
4180rm -f conftest*
4181if test -n "$ac_declaration"; then
4182 echo '#ifdef __cplusplus' >>confdefs.h
4183 echo $ac_declaration >>confdefs.h
4184 echo '#endif' >>confdefs.h
6ec7057a 4185fi
cfbc9945 4186
92f01d61 4187else
cfbc9945
SE
4188 echo "$as_me: failed program was:" >&5
4189sed 's/^/| /' conftest.$ac_ext >&5
92f01d61 4190
cfbc9945
SE
4191fi
4192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193ac_ext=c
4194ac_cpp='$CPP $CPPFLAGS'
4195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61
JM
4198
4199
cfbc9945
SE
4200cat >>confdefs.h <<\_ACEOF
4201#define _GNU_SOURCE 1
4202_ACEOF
a1ac8190 4203
c428fa83 4204
7357c5b6
AM
4205ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS'
4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4211echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4212# On Suns, sometimes $CPP names a directory.
4213if test -n "$CPP" && test -d "$CPP"; then
4214 CPP=
4215fi
4216if test -z "$CPP"; then
4217 if test "${ac_cv_prog_CPP+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220 # Double quotes because CPP needs to be expanded
4221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4222 do
4223 ac_preproc_ok=false
4224for ac_c_preproc_warn_flag in '' yes
4225do
4226 # Use a header file that comes with gcc, so configuring glibc
4227 # with a fresh cross-compiler works.
4228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229 # <limits.h> exists even on freestanding compilers.
4230 # On the NeXT, cc -E runs the code through the compiler's parser,
4231 # not just through cpp. "Syntax error" is here to catch this case.
4232 cat >conftest.$ac_ext <<_ACEOF
4233/* confdefs.h. */
4234_ACEOF
4235cat confdefs.h >>conftest.$ac_ext
4236cat >>conftest.$ac_ext <<_ACEOF
4237/* end confdefs.h. */
4238#ifdef __STDC__
4239# include <limits.h>
4240#else
4241# include <assert.h>
4242#endif
4243 Syntax error
4244_ACEOF
4245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4247 ac_status=$?
4248 grep -v '^ *+' conftest.er1 >conftest.err
4249 rm -f conftest.er1
4250 cat conftest.err >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } >/dev/null; then
4253 if test -s conftest.err; then
4254 ac_cpp_err=$ac_c_preproc_warn_flag
4255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4256 else
4257 ac_cpp_err=
4258 fi
4259else
4260 ac_cpp_err=yes
4261fi
4262if test -z "$ac_cpp_err"; then
4263 :
4264else
4265 echo "$as_me: failed program was:" >&5
4266sed 's/^/| /' conftest.$ac_ext >&5
cfbc9945 4267
7357c5b6
AM
4268 # Broken: fails on valid input.
4269continue
4270fi
4271rm -f conftest.err conftest.$ac_ext
d7040cdb 4272
7357c5b6
AM
4273 # OK, works on sane cases. Now check whether non-existent headers
4274 # can be detected and how.
4275 cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h. */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */
4281#include <ac_nonexistent.h>
4282_ACEOF
4283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } >/dev/null; then
4291 if test -s conftest.err; then
4292 ac_cpp_err=$ac_c_preproc_warn_flag
4293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4294 else
4295 ac_cpp_err=
4296 fi
4297else
4298 ac_cpp_err=yes
4299fi
4300if test -z "$ac_cpp_err"; then
4301 # Broken: success on invalid input.
4302continue
4303else
4304 echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4306
7357c5b6
AM
4307 # Passes both tests.
4308ac_preproc_ok=:
4309break
4310fi
4311rm -f conftest.err conftest.$ac_ext
d7040cdb 4312
7357c5b6
AM
4313done
4314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315rm -f conftest.err conftest.$ac_ext
4316if $ac_preproc_ok; then
4317 break
4318fi
d7040cdb 4319
7357c5b6
AM
4320 done
4321 ac_cv_prog_CPP=$CPP
d7040cdb 4322
7357c5b6
AM
4323fi
4324 CPP=$ac_cv_prog_CPP
4325else
4326 ac_cv_prog_CPP=$CPP
4327fi
4328echo "$as_me:$LINENO: result: $CPP" >&5
4329echo "${ECHO_T}$CPP" >&6
4330ac_preproc_ok=false
4331for ac_c_preproc_warn_flag in '' yes
4332do
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h. */
4345#ifdef __STDC__
4346# include <limits.h>
4347#else
4348# include <assert.h>
4349#endif
4350 Syntax error
4351_ACEOF
4352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null; then
4360 if test -s conftest.err; then
4361 ac_cpp_err=$ac_c_preproc_warn_flag
4362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4363 else
4364 ac_cpp_err=
4365 fi
4366else
4367 ac_cpp_err=yes
4368fi
4369if test -z "$ac_cpp_err"; then
4370 :
4371else
4372 echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4374
7357c5b6
AM
4375 # Broken: fails on valid input.
4376continue
4377fi
4378rm -f conftest.err conftest.$ac_ext
d7040cdb 4379
7357c5b6
AM
4380 # OK, works on sane cases. Now check whether non-existent headers
4381 # can be detected and how.
4382 cat >conftest.$ac_ext <<_ACEOF
4383/* confdefs.h. */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h. */
4388#include <ac_nonexistent.h>
4389_ACEOF
4390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
4400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4401 else
4402 ac_cpp_err=
4403 fi
4404else
4405 ac_cpp_err=yes
4406fi
4407if test -z "$ac_cpp_err"; then
4408 # Broken: success on invalid input.
4409continue
4410else
4411 echo "$as_me: failed program was:" >&5
4412sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4413
7357c5b6
AM
4414 # Passes both tests.
4415ac_preproc_ok=:
4416break
4417fi
4418rm -f conftest.err conftest.$ac_ext
d7040cdb 4419
7357c5b6
AM
4420done
4421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422rm -f conftest.err conftest.$ac_ext
4423if $ac_preproc_ok; then
4424 :
4425else
4426 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4427echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4429See \`config.log' for more details." >&5
4430echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4431See \`config.log' for more details." >&2;}
4432 { (exit 1); exit 1; }; }; }
4433fi
d7040cdb 4434
7357c5b6
AM
4435ac_ext=c
4436ac_cpp='$CPP $CPPFLAGS'
4437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4440
d7040cdb 4441
7357c5b6
AM
4442echo "$as_me:$LINENO: checking for egrep" >&5
4443echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4444if test "${ac_cv_prog_egrep+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4448 then ac_cv_prog_egrep='grep -E'
4449 else ac_cv_prog_egrep='egrep'
4450 fi
4451fi
4452echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4453echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4454 EGREP=$ac_cv_prog_egrep
d7040cdb
SE
4455
4456
7357c5b6
AM
4457echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4458echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4459if test "${ac_cv_header_stdc+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462 cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
4468#include <stdlib.h>
4469#include <stdarg.h>
4470#include <string.h>
4471#include <float.h>
d7040cdb 4472
7357c5b6
AM
4473int
4474main ()
4475{
d7040cdb 4476
7357c5b6
AM
4477 ;
4478 return 0;
4479}
4480_ACEOF
4481rm -f conftest.$ac_objext
4482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_header_stdc=yes
c428fa83 4504else
7357c5b6
AM
4505 echo "$as_me: failed program was:" >&5
4506sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4507
7357c5b6
AM
4508ac_cv_header_stdc=no
4509fi
4510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4511
7357c5b6
AM
4512if test $ac_cv_header_stdc = yes; then
4513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4514 cat >conftest.$ac_ext <<_ACEOF
4515/* confdefs.h. */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h. */
4520#include <string.h>
d7040cdb 4521
7357c5b6
AM
4522_ACEOF
4523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524 $EGREP "memchr" >/dev/null 2>&1; then
4525 :
4526else
4527 ac_cv_header_stdc=no
4528fi
4529rm -f conftest*
d7040cdb 4530
7357c5b6 4531fi
d7040cdb 4532
7357c5b6
AM
4533if test $ac_cv_header_stdc = yes; then
4534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4535 cat >conftest.$ac_ext <<_ACEOF
4536/* confdefs.h. */
4537_ACEOF
4538cat confdefs.h >>conftest.$ac_ext
4539cat >>conftest.$ac_ext <<_ACEOF
4540/* end confdefs.h. */
4541#include <stdlib.h>
d7040cdb 4542
7357c5b6
AM
4543_ACEOF
4544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545 $EGREP "free" >/dev/null 2>&1; then
4546 :
4547else
4548 ac_cv_header_stdc=no
4549fi
4550rm -f conftest*
d7040cdb 4551
7357c5b6 4552fi
d7040cdb 4553
7357c5b6
AM
4554if test $ac_cv_header_stdc = yes; then
4555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4556 if test "$cross_compiling" = yes; then
4557 :
4558else
4559 cat >conftest.$ac_ext <<_ACEOF
4560/* confdefs.h. */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
4564/* end confdefs.h. */
4565#include <ctype.h>
4566#if ((' ' & 0x0FF) == 0x020)
4567# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4569#else
4570# define ISLOWER(c) \
4571 (('a' <= (c) && (c) <= 'i') \
4572 || ('j' <= (c) && (c) <= 'r') \
4573 || ('s' <= (c) && (c) <= 'z'))
4574# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4575#endif
d7040cdb 4576
7357c5b6
AM
4577#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4578int
4579main ()
4580{
4581 int i;
4582 for (i = 0; i < 256; i++)
4583 if (XOR (islower (i), ISLOWER (i))
4584 || toupper (i) != TOUPPER (i))
4585 exit(2);
4586 exit (0);
4587}
4588_ACEOF
4589rm -f conftest$ac_exeext
4590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591 (eval $ac_link) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 :
d7040cdb 4601else
7357c5b6
AM
4602 echo "$as_me: program exited with status $ac_status" >&5
4603echo "$as_me: failed program was:" >&5
4604sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4605
7357c5b6
AM
4606( exit $ac_status )
4607ac_cv_header_stdc=no
4608fi
4609rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4610fi
4611fi
4612fi
4613echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4614echo "${ECHO_T}$ac_cv_header_stdc" >&6
4615if test $ac_cv_header_stdc = yes; then
d7040cdb 4616
7357c5b6
AM
4617cat >>confdefs.h <<\_ACEOF
4618#define STDC_HEADERS 1
4619_ACEOF
d7040cdb 4620
7357c5b6 4621fi
d7040cdb 4622
7357c5b6 4623# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4624
4625
4626
4627
c428fa83 4628
d7040cdb
SE
4629
4630
4631
4632
7357c5b6
AM
4633for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4634 inttypes.h stdint.h unistd.h
4635do
4636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637echo "$as_me:$LINENO: checking for $ac_header" >&5
4638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641else
4642 cat >conftest.$ac_ext <<_ACEOF
4643/* confdefs.h. */
4644_ACEOF
4645cat confdefs.h >>conftest.$ac_ext
4646cat >>conftest.$ac_ext <<_ACEOF
4647/* end confdefs.h. */
4648$ac_includes_default
d7040cdb 4649
7357c5b6
AM
4650#include <$ac_header>
4651_ACEOF
4652rm -f conftest.$ac_objext
4653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 eval "$as_ac_Header=yes"
4675else
4676 echo "$as_me: failed program was:" >&5
4677sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4678
7357c5b6
AM
4679eval "$as_ac_Header=no"
4680fi
4681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682fi
4683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4685if test `eval echo '${'$as_ac_Header'}'` = yes; then
4686 cat >>confdefs.h <<_ACEOF
4687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688_ACEOF
d7040cdb 4689
7357c5b6
AM
4690fi
4691
4692done
4693
4694
4695
4696 if test "${ac_cv_header_minix_config_h+set}" = set; then
4697 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4698echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4699if test "${ac_cv_header_minix_config_h+set}" = set; then
d7040cdb 4700 echo $ECHO_N "(cached) $ECHO_C" >&6
7357c5b6
AM
4701fi
4702echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4703echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
d7040cdb 4704else
7357c5b6
AM
4705 # Is the header compilable?
4706echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4707echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4708cat >conftest.$ac_ext <<_ACEOF
4709/* confdefs.h. */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h. */
4714$ac_includes_default
4715#include <minix/config.h>
4716_ACEOF
4717rm -f conftest.$ac_objext
4718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>conftest.er1
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_header_compiler=yes
4740else
4741 echo "$as_me: failed program was:" >&5
4742sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4743
7357c5b6 4744ac_header_compiler=no
d7040cdb 4745fi
7357c5b6
AM
4746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4748echo "${ECHO_T}$ac_header_compiler" >&6
d7040cdb 4749
7357c5b6
AM
4750# Is the header present?
4751echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4752echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4753cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h. */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h. */
4759#include <minix/config.h>
4760_ACEOF
4761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null; then
4769 if test -s conftest.err; then
4770 ac_cpp_err=$ac_c_preproc_warn_flag
4771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4772 else
4773 ac_cpp_err=
4774 fi
4775else
4776 ac_cpp_err=yes
4777fi
4778if test -z "$ac_cpp_err"; then
4779 ac_header_preproc=yes
4780else
4781 echo "$as_me: failed program was:" >&5
4782sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4783
7357c5b6
AM
4784 ac_header_preproc=no
4785fi
4786rm -f conftest.err conftest.$ac_ext
4787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4788echo "${ECHO_T}$ac_header_preproc" >&6
d7040cdb 4789
7357c5b6
AM
4790# So? What about this header?
4791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4792 yes:no: )
4793 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4794echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4796echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4797 ac_header_preproc=yes
4798 ;;
4799 no:yes:* )
4800 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4801echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4802 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4803echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4804 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4805echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4806 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4807echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4808 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4809echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4810 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4811echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4812 (
4813 cat <<\_ASBOX
4814## ------------------------------------------ ##
4815## Report this to the AC_PACKAGE_NAME lists. ##
4816## ------------------------------------------ ##
4817_ASBOX
4818 ) |
4819 sed "s/^/$as_me: WARNING: /" >&2
4820 ;;
4821esac
4822echo "$as_me:$LINENO: checking for minix/config.h" >&5
4823echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4824if test "${ac_cv_header_minix_config_h+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827 ac_cv_header_minix_config_h=$ac_header_preproc
4828fi
4829echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4830echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4831
4832fi
4833if test $ac_cv_header_minix_config_h = yes; then
4834 MINIX=yes
4835else
4836 MINIX=
4837fi
d7040cdb
SE
4838
4839
7357c5b6 4840 if test "$MINIX" = yes; then
d7040cdb 4841
7357c5b6
AM
4842cat >>confdefs.h <<\_ACEOF
4843#define _POSIX_SOURCE 1
4844_ACEOF
d7040cdb
SE
4845
4846
7357c5b6
AM
4847cat >>confdefs.h <<\_ACEOF
4848#define _POSIX_1_SOURCE 2
4849_ACEOF
d7040cdb
SE
4850
4851
7357c5b6
AM
4852cat >>confdefs.h <<\_ACEOF
4853#define _MINIX 1
4854_ACEOF
d7040cdb 4855
7357c5b6 4856 fi
d7040cdb
SE
4857
4858
4859
7357c5b6
AM
4860 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4861echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4862if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
d7040cdb
SE
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
7357c5b6
AM
4865 cat >conftest.$ac_ext <<_ACEOF
4866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
d7040cdb 4871
7357c5b6
AM
4872# define __EXTENSIONS__ 1
4873 $ac_includes_default
4874int
4875main ()
4876{
d7040cdb 4877
7357c5b6
AM
4878 ;
4879 return 0;
4880}
4881_ACEOF
4882rm -f conftest.$ac_objext
4883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4905else
7357c5b6
AM
4906 echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909ac_cv_safe_to_define___extensions__=no
d7040cdb 4910fi
7357c5b6
AM
4911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912fi
4913echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4914echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4915 test $ac_cv_safe_to_define___extensions__ = yes &&
4916 cat >>confdefs.h <<\_ACEOF
4917#define __EXTENSIONS__ 1
4918_ACEOF
d7040cdb 4919
7357c5b6
AM
4920 cat >>confdefs.h <<\_ACEOF
4921#define _ALL_SOURCE 1
4922_ACEOF
d7040cdb 4923
7357c5b6
AM
4924 cat >>confdefs.h <<\_ACEOF
4925#define _GNU_SOURCE 1
4926_ACEOF
d7040cdb 4927
7357c5b6
AM
4928 cat >>confdefs.h <<\_ACEOF
4929#define _POSIX_PTHREAD_SEMANTICS 1
4930_ACEOF
d7040cdb 4931
7357c5b6
AM
4932 cat >>confdefs.h <<\_ACEOF
4933#define _TANDEM_SOURCE 1
4934_ACEOF
d7040cdb
SE
4935
4936
d053aef8
JK
4937# Check whether --enable-largefile or --disable-largefile was given.
4938if test "${enable_largefile+set}" = set; then
4939 enableval="$enable_largefile"
4940
4941fi;
4942if test "$enable_largefile" != no; then
4943
4944 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4945echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4946if test "${ac_cv_sys_largefile_CC+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948else
4949 ac_cv_sys_largefile_CC=no
4950 if test "$GCC" != yes; then
4951 ac_save_CC=$CC
4952 while :; do
4953 # IRIX 6.2 and later do not support large files by default,
4954 # so use the C compiler's -n32 option if that helps.
4955 cat >conftest.$ac_ext <<_ACEOF
4956/* confdefs.h. */
4957_ACEOF
4958cat confdefs.h >>conftest.$ac_ext
4959cat >>conftest.$ac_ext <<_ACEOF
4960/* end confdefs.h. */
4961#include <sys/types.h>
4962 /* Check that off_t can represent 2**63 - 1 correctly.
4963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4964 since some C++ compilers masquerading as C compilers
4965 incorrectly reject 9223372036854775807. */
4966#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4968 && LARGE_OFF_T % 2147483647 == 1)
4969 ? 1 : -1];
4970int
4971main ()
4972{
4973
4974 ;
4975 return 0;
4976}
4977_ACEOF
4978 rm -f conftest.$ac_objext
4979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980 (eval $ac_compile) 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } &&
4987 { ac_try='test -z "$ac_c_werror_flag"
4988 || test ! -s conftest.err'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 (eval $ac_try) 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 break
5001else
5002 echo "$as_me: failed program was:" >&5
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
5005fi
5006rm -f conftest.err conftest.$ac_objext
5007 CC="$CC -n32"
5008 rm -f conftest.$ac_objext
5009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_sys_largefile_CC=' -n32'; break
5031else
5032 echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
5034
5035fi
5036rm -f conftest.err conftest.$ac_objext
5037 break
5038 done
5039 CC=$ac_save_CC
5040 rm -f conftest.$ac_ext
5041 fi
5042fi
5043echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5044echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5045 if test "$ac_cv_sys_largefile_CC" != no; then
5046 CC=$CC$ac_cv_sys_largefile_CC
5047 fi
5048
5049 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5050echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5051if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053else
5054 while :; do
5055 ac_cv_sys_file_offset_bits=no
5056 cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h. */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h. */
5062#include <sys/types.h>
5063 /* Check that off_t can represent 2**63 - 1 correctly.
5064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5065 since some C++ compilers masquerading as C compilers
5066 incorrectly reject 9223372036854775807. */
5067#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5069 && LARGE_OFF_T % 2147483647 == 1)
5070 ? 1 : -1];
5071int
5072main ()
5073{
5074
5075 ;
5076 return 0;
5077}
5078_ACEOF
5079rm -f conftest.$ac_objext
5080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081 (eval $ac_compile) 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } &&
5088 { ac_try='test -z "$ac_c_werror_flag"
5089 || test ! -s conftest.err'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; } &&
5095 { ac_try='test -s conftest.$ac_objext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 break
5102else
5103 echo "$as_me: failed program was:" >&5
5104sed 's/^/| /' conftest.$ac_ext >&5
5105
5106fi
5107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5108 cat >conftest.$ac_ext <<_ACEOF
5109/* confdefs.h. */
5110_ACEOF
5111cat confdefs.h >>conftest.$ac_ext
5112cat >>conftest.$ac_ext <<_ACEOF
5113/* end confdefs.h. */
5114#define _FILE_OFFSET_BITS 64
5115#include <sys/types.h>
5116 /* Check that off_t can represent 2**63 - 1 correctly.
5117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5118 since some C++ compilers masquerading as C compilers
5119 incorrectly reject 9223372036854775807. */
5120#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5122 && LARGE_OFF_T % 2147483647 == 1)
5123 ? 1 : -1];
5124int
5125main ()
5126{
5127
5128 ;
5129 return 0;
5130}
5131_ACEOF
5132rm -f conftest.$ac_objext
5133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134 (eval $ac_compile) 2>conftest.er1
5135 ac_status=$?
5136 grep -v '^ *+' conftest.er1 >conftest.err
5137 rm -f conftest.er1
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try='test -z "$ac_c_werror_flag"
5142 || test ! -s conftest.err'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 (eval $ac_try) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 ac_cv_sys_file_offset_bits=64; break
5155else
5156 echo "$as_me: failed program was:" >&5
5157sed 's/^/| /' conftest.$ac_ext >&5
5158
5159fi
5160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5161 break
5162done
5163fi
5164echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5165echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5166if test "$ac_cv_sys_file_offset_bits" != no; then
5167
5168cat >>confdefs.h <<_ACEOF
5169#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5170_ACEOF
5171
5172fi
5173rm -f conftest*
5174 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5175echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5176if test "${ac_cv_sys_large_files+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178else
5179 while :; do
5180 ac_cv_sys_large_files=no
5181 cat >conftest.$ac_ext <<_ACEOF
5182/* confdefs.h. */
5183_ACEOF
5184cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h. */
5187#include <sys/types.h>
5188 /* Check that off_t can represent 2**63 - 1 correctly.
5189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5190 since some C++ compilers masquerading as C compilers
5191 incorrectly reject 9223372036854775807. */
5192#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5194 && LARGE_OFF_T % 2147483647 == 1)
5195 ? 1 : -1];
5196int
5197main ()
5198{
5199
5200 ;
5201 return 0;
5202}
5203_ACEOF
5204rm -f conftest.$ac_objext
5205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206 (eval $ac_compile) 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try='test -z "$ac_c_werror_flag"
5214 || test ! -s conftest.err'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 (eval $ac_try) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest.$ac_objext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 break
5227else
5228 echo "$as_me: failed program was:" >&5
5229sed 's/^/| /' conftest.$ac_ext >&5
5230
5231fi
5232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5233 cat >conftest.$ac_ext <<_ACEOF
5234/* confdefs.h. */
5235_ACEOF
5236cat confdefs.h >>conftest.$ac_ext
5237cat >>conftest.$ac_ext <<_ACEOF
5238/* end confdefs.h. */
5239#define _LARGE_FILES 1
5240#include <sys/types.h>
5241 /* Check that off_t can represent 2**63 - 1 correctly.
5242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5243 since some C++ compilers masquerading as C compilers
5244 incorrectly reject 9223372036854775807. */
5245#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5247 && LARGE_OFF_T % 2147483647 == 1)
5248 ? 1 : -1];
5249int
5250main ()
5251{
5252
5253 ;
5254 return 0;
5255}
5256_ACEOF
5257rm -f conftest.$ac_objext
5258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259 (eval $ac_compile) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest.$ac_objext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 ac_cv_sys_large_files=1; break
5280else
5281 echo "$as_me: failed program was:" >&5
5282sed 's/^/| /' conftest.$ac_ext >&5
5283
5284fi
5285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5286 break
5287done
5288fi
5289echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5290echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5291if test "$ac_cv_sys_large_files" != no; then
5292
5293cat >>confdefs.h <<_ACEOF
5294#define _LARGE_FILES $ac_cv_sys_large_files
5295_ACEOF
5296
5297fi
5298rm -f conftest*
5299fi
5300
d7040cdb 5301
718a6fd8
SE
5302case `pwd` in
5303 *\ * | *\ *)
5304 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5305echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5306esac
d7040cdb
SE
5307
5308
7357c5b6 5309
718a6fd8
SE
5310macro_version='2.2.6'
5311macro_revision='1.3012'
7357c5b6
AM
5312
5313
5314
5315
5316
5317
7357c5b6
AM
5318
5319
5320
5321
5322
5323
5324
718a6fd8 5325ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6
AM
5326
5327echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5328echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5329if test "${lt_cv_path_SED+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331else
5332 # Loop through the user's path and test for sed and gsed.
5333# Then use that list of sed's as ones to test for truncation.
5334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335for as_dir in $PATH
5336do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for lt_ac_prog in sed gsed; do
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5342 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5343 fi
5344 done
5345 done
5346done
5347IFS=$as_save_IFS
5348lt_ac_max=0
5349lt_ac_count=0
5350# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5351# along with /bin/sed that truncates output.
5352for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5353 test ! -f $lt_ac_sed && continue
5354 cat /dev/null > conftest.in
5355 lt_ac_count=0
5356 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5357 # Check for GNU sed and select it if it is found.
5358 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5359 lt_cv_path_SED=$lt_ac_sed
5360 break
5361 fi
5362 while true; do
5363 cat conftest.in conftest.in >conftest.tmp
5364 mv conftest.tmp conftest.in
5365 cp conftest.in conftest.nl
5366 echo >>conftest.nl
5367 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5368 cmp -s conftest.out conftest.nl || break
5369 # 10000 chars as input seems more than enough
5370 test $lt_ac_count -gt 10 && break
5371 lt_ac_count=`expr $lt_ac_count + 1`
5372 if test $lt_ac_count -gt $lt_ac_max; then
5373 lt_ac_max=$lt_ac_count
5374 lt_cv_path_SED=$lt_ac_sed
5375 fi
5376 done
5377done
5378
5379fi
5380
5381SED=$lt_cv_path_SED
5382
5383echo "$as_me:$LINENO: result: $SED" >&5
5384echo "${ECHO_T}$SED" >&6
5385
5386test -z "$SED" && SED=sed
5387Xsed="$SED -e 1s/^X//"
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399echo "$as_me:$LINENO: checking for fgrep" >&5
5400echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5401if test "${ac_cv_prog_fgrep+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403else
5404 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5405 then ac_cv_prog_fgrep='grep -F'
5406 else ac_cv_prog_fgrep='fgrep'
5407 fi
5408fi
5409echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5410echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5411 FGREP=$ac_cv_prog_fgrep
5412
5413
5414test -z "$GREP" && GREP=grep
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434# Check whether --with-gnu-ld or --without-gnu-ld was given.
5435if test "${with_gnu_ld+set}" = set; then
5436 withval="$with_gnu_ld"
5437 test "$withval" = no || with_gnu_ld=yes
5438else
5439 with_gnu_ld=no
5440fi;
5441ac_prog=ld
5442if test "$GCC" = yes; then
5443 # Check if gcc -print-prog-name=ld gives a path.
5444 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5445echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5446 case $host in
5447 *-*-mingw*)
5448 # gcc leaves a trailing carriage return which upsets mingw
5449 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5450 *)
5451 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5452 esac
5453 case $ac_prog in
5454 # Accept absolute paths.
5455 [\\/]* | ?:[\\/]*)
5456 re_direlt='/[^/][^/]*/\.\./'
5457 # Canonicalize the pathname of ld
5458 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5459 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
d7040cdb 5460 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
5461 done
5462 test -z "$LD" && LD="$ac_prog"
5463 ;;
5bd8253d 5464 "")
cfbc9945
SE
5465 # If it fails, then pretend we aren't using GCC.
5466 ac_prog=ld
5bd8253d
L
5467 ;;
5468 *)
cfbc9945
SE
5469 # If it is relative, then search for the first ld in PATH.
5470 with_gnu_ld=unknown
5bd8253d 5471 ;;
cfbc9945
SE
5472 esac
5473elif test "$with_gnu_ld" = yes; then
5474 echo "$as_me:$LINENO: checking for GNU ld" >&5
5475echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5476else
5477 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5478echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5479fi
5480if test "${lt_cv_path_LD+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483 if test -z "$LD"; then
d7040cdb 5484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 5485 for ac_dir in $PATH; do
d7040cdb 5486 IFS="$lt_save_ifs"
cfbc9945
SE
5487 test -z "$ac_dir" && ac_dir=.
5488 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5489 lt_cv_path_LD="$ac_dir/$ac_prog"
5490 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5491 # but apparently some variants of GNU ld only accept -v.
cfbc9945 5492 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5493 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5494 *GNU* | *'with BFD'*)
cfbc9945 5495 test "$with_gnu_ld" != no && break
d7040cdb
SE
5496 ;;
5497 *)
cfbc9945 5498 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5499 ;;
5500 esac
cfbc9945
SE
5501 fi
5502 done
d7040cdb 5503 IFS="$lt_save_ifs"
cfbc9945
SE
5504else
5505 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 5506fi
1ad12f97
NC
5507fi
5508
cfbc9945
SE
5509LD="$lt_cv_path_LD"
5510if test -n "$LD"; then
5511 echo "$as_me:$LINENO: result: $LD" >&5
5512echo "${ECHO_T}$LD" >&6
5513else
5514 echo "$as_me:$LINENO: result: no" >&5
5515echo "${ECHO_T}no" >&6
5516fi
5517test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5518echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5519 { (exit 1); exit 1; }; }
5520echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5521echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5522if test "${lt_cv_prog_gnu_ld+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524else
d7040cdb
SE
5525 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5526case `$LD -v 2>&1 </dev/null` in
5527*GNU* | *'with BFD'*)
cfbc9945 5528 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5529 ;;
5530*)
cfbc9945 5531 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5532 ;;
5533esac
49c96104 5534fi
cfbc9945
SE
5535echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5536echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5537with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 5538
9e9b66a9 5539
cfbc9945 5540
d7040cdb
SE
5541
5542
5543
5544
5545
5546
d7040cdb
SE
5547echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5548echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
cfbc9945
SE
5549if test "${lt_cv_path_NM+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552 if test -n "$NM"; then
5553 # Let the user override the test.
5554 lt_cv_path_NM="$NM"
5555else
d7040cdb
SE
5556 lt_nm_to_check="${ac_tool_prefix}nm"
5557 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5558 lt_nm_to_check="$lt_nm_to_check nm"
5559 fi
5560 for lt_tmp_nm in $lt_nm_to_check; do
5561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5562 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5563 IFS="$lt_save_ifs"
5564 test -z "$ac_dir" && ac_dir=.
5565 tmp_nm="$ac_dir/$lt_tmp_nm"
5566 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5567 # Check to see if the nm accepts a BSD-compat flag.
5568 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5569 # nm: unknown option "B" ignored
5570 # Tru64's nm complains that /dev/null is an invalid object file
5571 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5572 */dev/null* | *'Invalid file or object type'*)
5573 lt_cv_path_NM="$tmp_nm -B"
5574 break
5575 ;;
5576 *)
5577 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5578 */dev/null*)
5579 lt_cv_path_NM="$tmp_nm -p"
5580 break
5581 ;;
5582 *)
5583 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5584 continue # so that we can try to find one that supports BSD flags
5585 ;;
5586 esac
5587 ;;
5588 esac
cfbc9945 5589 fi
d7040cdb
SE
5590 done
5591 IFS="$lt_save_ifs"
cfbc9945 5592 done
d7040cdb 5593 : ${lt_cv_path_NM=no}
cfbc9945 5594fi
a2d91340 5595fi
d7040cdb
SE
5596echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5597echo "${ECHO_T}$lt_cv_path_NM" >&6
5598if test "$lt_cv_path_NM" != "no"; then
5599 NM="$lt_cv_path_NM"
cfbc9945 5600else
d7040cdb
SE
5601 # Didn't find any BSD compatible name lister, look for dumpbin.
5602 if test -n "$ac_tool_prefix"; then
5603 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5604 do
5605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5607echo "$as_me:$LINENO: checking for $ac_word" >&5
5608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609if test "${ac_cv_prog_DUMPBIN+set}" = set; then
cfbc9945 5610 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5611else
d7040cdb
SE
5612 if test -n "$DUMPBIN"; then
5613 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626done
5627done
5464f5a1 5628
d7040cdb
SE
5629fi
5630fi
5631DUMPBIN=$ac_cv_prog_DUMPBIN
5632if test -n "$DUMPBIN"; then
5633 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5634echo "${ECHO_T}$DUMPBIN" >&6
5635else
5636 echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638fi
d5fbea21 5639
d7040cdb
SE
5640 test -n "$DUMPBIN" && break
5641 done
5642fi
5643if test -z "$DUMPBIN"; then
5644 ac_ct_DUMPBIN=$DUMPBIN
5645 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5646do
5647 # Extract the first word of "$ac_prog", so it can be a program name with args.
5648set dummy $ac_prog; ac_word=$2
5649echo "$as_me:$LINENO: checking for $ac_word" >&5
5650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653else
5654 if test -n "$ac_ct_DUMPBIN"; then
5655 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5656else
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
cfbc9945 5667 fi
d7040cdb
SE
5668done
5669done
d5fbea21 5670
d7040cdb
SE
5671fi
5672fi
5673ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5674if test -n "$ac_ct_DUMPBIN"; then
5675 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5676echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5677else
5678 echo "$as_me:$LINENO: result: no" >&5
5679echo "${ECHO_T}no" >&6
5680fi
d5fbea21 5681
d7040cdb
SE
5682 test -n "$ac_ct_DUMPBIN" && break
5683done
5684test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
24443139 5685
d7040cdb
SE
5686 DUMPBIN=$ac_ct_DUMPBIN
5687fi
24443139 5688
24443139 5689
d7040cdb
SE
5690 if test "$DUMPBIN" != ":"; then
5691 NM="$DUMPBIN"
cfbc9945 5692 fi
d7040cdb
SE
5693fi
5694test -z "$NM" && NM=nm
a703a6ea 5695
f5385ebf 5696
cfbc9945 5697
24443139
AS
5698
5699
5700
d7040cdb
SE
5701echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5702echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5703if test "${lt_cv_nm_interface+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706 lt_cv_nm_interface="BSD nm"
5707 echo "int some_variable = 0;" > conftest.$ac_ext
718a6fd8 5708 (eval echo "\"\$as_me:5708: $ac_compile\"" >&5)
d7040cdb
SE
5709 (eval "$ac_compile" 2>conftest.err)
5710 cat conftest.err >&5
718a6fd8 5711 (eval echo "\"\$as_me:5711: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5712 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5713 cat conftest.err >&5
718a6fd8 5714 (eval echo "\"\$as_me:5714: output\"" >&5)
d7040cdb
SE
5715 cat conftest.out >&5
5716 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5717 lt_cv_nm_interface="MS dumpbin"
5718 fi
5719 rm -f conftest*
cfbc9945 5720fi
d7040cdb
SE
5721echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5722echo "${ECHO_T}$lt_cv_nm_interface" >&6
a703a6ea 5723
d7040cdb
SE
5724echo "$as_me:$LINENO: checking whether ln -s works" >&5
5725echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5726LN_S=$as_ln_s
5727if test "$LN_S" = "ln -s"; then
5728 echo "$as_me:$LINENO: result: yes" >&5
5729echo "${ECHO_T}yes" >&6
5730else
5731 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5732echo "${ECHO_T}no, using $LN_S" >&6
5733fi
252b5132 5734
cfbc9945
SE
5735# find the maximum length of command line arguments
5736echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5737echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5738if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740else
5741 i=0
5742 teststring="ABCD"
5464f5a1 5743
cfbc9945
SE
5744 case $build_os in
5745 msdosdjgpp*)
5746 # On DJGPP, this test can blow up pretty badly due to problems in libc
5747 # (any single argument exceeding 2000 bytes causes a buffer overrun
5748 # during glob expansion). Even if it were fixed, the result of this
5749 # check would be larger than it should be.
5750 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5751 ;;
5464f5a1 5752
d7040cdb
SE
5753 gnu*)
5754 # Under GNU Hurd, this test is not required because there is
5755 # no limit to the length of command line arguments.
5756 # Libtool will interpret -1 as no limit whatsoever
5757 lt_cv_sys_max_cmd_len=-1;
5758 ;;
5759
718a6fd8 5760 cygwin* | mingw* | cegcc*)
cfbc9945
SE
5761 # On Win9x/ME, this test blows up -- it succeeds, but takes
5762 # about 5 minutes as the teststring grows exponentially.
5763 # Worse, since 9x/ME are not pre-emptively multitasking,
5764 # you end up with a "frozen" computer, even though with patience
5765 # the test eventually succeeds (with a max line length of 256k).
5766 # Instead, let's just punt: use the minimum linelength reported by
5767 # all of the supported platforms: 8192 (on NT/2K/XP).
5768 lt_cv_sys_max_cmd_len=8192;
5769 ;;
5464f5a1 5770
cfbc9945
SE
5771 amigaos*)
5772 # On AmigaOS with pdksh, this test takes hours, literally.
5773 # So we just punt and use a minimum line length of 8192.
5774 lt_cv_sys_max_cmd_len=8192;
5775 ;;
5464f5a1 5776
cfbc9945
SE
5777 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5778 # This has been around since 386BSD, at least. Likely further.
5779 if test -x /sbin/sysctl; then
5780 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5781 elif test -x /usr/sbin/sysctl; then
5782 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5783 else
d7040cdb 5784 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
5785 fi
5786 # And add a safety zone
5787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5789 ;;
d7040cdb
SE
5790
5791 interix*)
5792 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5793 lt_cv_sys_max_cmd_len=196608
5794 ;;
5795
5796 osf*)
5797 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5798 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5799 # nice to cause kernel panics so lets avoid the loop below.
5800 # First set a reasonable default.
5801 lt_cv_sys_max_cmd_len=16384
5802 #
5803 if test -x /sbin/sysconfig; then
5804 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5805 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5806 esac
5807 fi
5808 ;;
5809 sco3.2v5*)
5810 lt_cv_sys_max_cmd_len=102400
5811 ;;
5812 sysv5* | sco5v6* | sysv4.2uw2*)
5813 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5814 if test -n "$kargmax"; then
5815 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5816 else
5817 lt_cv_sys_max_cmd_len=32768
5818 fi
5819 ;;
5820 *)
718a6fd8
SE
5821 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5822 if test -n "$lt_cv_sys_max_cmd_len"; then
79887925
L
5823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5825 else
5826 # Make teststring a little bigger before we do anything with it.
5827 # a 1K string should be a reasonable start.
5828 for i in 1 2 3 4 5 6 7 8 ; do
5829 teststring=$teststring$teststring
5830 done
5831 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5832 # If test is not a shell built-in, we'll probably end up computing a
5833 # maximum length that is only half of the actual maximum length, but
5834 # we can't tell.
5835 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5836 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5837 test $i != 17 # 1/2 MB should be enough
5838 do
5839 i=`expr $i + 1`
5840 teststring=$teststring$teststring
5841 done
5842 # Only check the string length outside the loop.
5843 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5844 teststring=
5845 # Add a significant safety factor because C++ compilers can tack on
5846 # massive amounts of additional arguments before passing them to the
5847 # linker. It appears as though 1/2 is a usable value.
5848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5849 fi
d7040cdb 5850 ;;
cfbc9945 5851 esac
5464f5a1 5852
252b5132 5853fi
cfbc9945 5854
d7040cdb 5855if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
5856 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5857echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 5858else
cfbc9945
SE
5859 echo "$as_me:$LINENO: result: none" >&5
5860echo "${ECHO_T}none" >&6
5464f5a1 5861fi
d7040cdb 5862max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5863
cfbc9945 5864
252b5132 5865
cfbc9945 5866
cfbc9945 5867
d7040cdb 5868
d7040cdb
SE
5869: ${CP="cp -f"}
5870: ${MV="mv -f"}
5871: ${RM="rm -f"}
5872
5873echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5874echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5875# Try some XSI features
5876xsi_shell=no
5877( _lt_dummy="a/b/c"
5878 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
5879 = c,a/b,, \
5880 && eval 'test $(( 1 + 1 )) -eq 2 \
5881 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb
SE
5882 && xsi_shell=yes
5883echo "$as_me:$LINENO: result: $xsi_shell" >&5
5884echo "${ECHO_T}$xsi_shell" >&6
5885
5886
5887echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5888echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5889lt_shell_append=no
5890( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5891 >/dev/null 2>&1 \
5892 && lt_shell_append=yes
5893echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5894echo "${ECHO_T}$lt_shell_append" >&6
5895
5896
5897if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5898 lt_unset=unset
5464f5a1 5899else
d7040cdb 5900 lt_unset=false
5464f5a1 5901fi
252b5132 5902
d7040cdb
SE
5903
5904
5905
5906
5907# test EBCDIC or ASCII
5908case `echo X|tr X '\101'` in
5909 A) # ASCII based system
5910 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5911 lt_SP2NL='tr \040 \012'
5912 lt_NL2SP='tr \015\012 \040\040'
5913 ;;
5914 *) # EBCDIC based system
5915 lt_SP2NL='tr \100 \n'
5916 lt_NL2SP='tr \r\n \100\100'
5917 ;;
5918esac
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5929echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5930if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
d7040cdb
SE
5933 lt_cv_ld_reload_flag='-r'
5934fi
5935echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5936echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5937reload_flag=$lt_cv_ld_reload_flag
5938case $reload_flag in
5939"" | " "*) ;;
5940*) reload_flag=" $reload_flag" ;;
5941esac
5942reload_cmds='$LD$reload_flag -o $output$reload_objs'
5943case $host_os in
5944 darwin*)
5945 if test "$GCC" = yes; then
5946 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5947 else
5948 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5949 fi
5950 ;;
5951esac
5952
5953
5954
5955
5956
5957
5958
5959
5960
718a6fd8
SE
5961if test -n "$ac_tool_prefix"; then
5962 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5963set dummy ${ac_tool_prefix}objdump; ac_word=$2
5964echo "$as_me:$LINENO: checking for $ac_word" >&5
5965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 if test -n "$OBJDUMP"; then
5970 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983done
5984done
5985
5986fi
5987fi
5988OBJDUMP=$ac_cv_prog_OBJDUMP
5989if test -n "$OBJDUMP"; then
5990 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5991echo "${ECHO_T}$OBJDUMP" >&6
5992else
5993 echo "$as_me:$LINENO: result: no" >&5
5994echo "${ECHO_T}no" >&6
5995fi
5996
5997fi
5998if test -z "$ac_cv_prog_OBJDUMP"; then
5999 ac_ct_OBJDUMP=$OBJDUMP
6000 # Extract the first word of "objdump", so it can be a program name with args.
6001set dummy objdump; ac_word=$2
6002echo "$as_me:$LINENO: checking for $ac_word" >&5
6003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6004if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007 if test -n "$ac_ct_OBJDUMP"; then
6008 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021done
6022done
6023
6024 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6025fi
6026fi
6027ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6028if test -n "$ac_ct_OBJDUMP"; then
6029 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6030echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6031else
6032 echo "$as_me:$LINENO: result: no" >&5
6033echo "${ECHO_T}no" >&6
6034fi
6035
6036 OBJDUMP=$ac_ct_OBJDUMP
6037else
6038 OBJDUMP="$ac_cv_prog_OBJDUMP"
6039fi
6040
6041test -z "$OBJDUMP" && OBJDUMP=objdump
6042
6043
6044
6045
6046
6047
6048
6049
d7040cdb
SE
6050
6051echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6052echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6053if test "${lt_cv_deplibs_check_method+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055else
6056 lt_cv_file_magic_cmd='$MAGIC_CMD'
6057lt_cv_file_magic_test_file=
6058lt_cv_deplibs_check_method='unknown'
6059# Need to set the preceding variable on all platforms that support
6060# interlibrary dependencies.
6061# 'none' -- dependencies not supported.
6062# `unknown' -- same as none, but documents that we really don't know.
6063# 'pass_all' -- all dependencies passed with no checks.
6064# 'test_compile' -- check by making test program.
6065# 'file_magic [[regex]]' -- check by looking for files in library path
6066# which responds to the $file_magic_cmd with a given extended regex.
6067# If you have `file' or equivalent on your system and you're not sure
6068# whether `pass_all' will *always* work, you probably want this one.
6069
6070case $host_os in
e81819a5 6071aix[4-9]*)
d7040cdb
SE
6072 lt_cv_deplibs_check_method=pass_all
6073 ;;
6074
6075beos*)
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078
6079bsdi[45]*)
6080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6081 lt_cv_file_magic_cmd='/usr/bin/file -L'
6082 lt_cv_file_magic_test_file=/shlib/libc.so
6083 ;;
6084
6085cygwin*)
6086 # func_win32_libid is a shell function defined in ltmain.sh
6087 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6088 lt_cv_file_magic_cmd='func_win32_libid'
6089 ;;
6090
6091mingw* | pw32*)
6092 # Base MSYS/MinGW do not provide the 'file' command needed by
6093 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6094 # unless we find 'file', for example because we are cross-compiling.
6095 if ( file / ) >/dev/null 2>&1; then
6096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6097 lt_cv_file_magic_cmd='func_win32_libid'
6098 else
6099 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6100 lt_cv_file_magic_cmd='$OBJDUMP -f'
6101 fi
6102 ;;
6103
718a6fd8
SE
6104cegcc)
6105 # use the weaker test based on 'objdump'. See mingw*.
6106 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6107 lt_cv_file_magic_cmd='$OBJDUMP -f'
6108 ;;
6109
d7040cdb
SE
6110darwin* | rhapsody*)
6111 lt_cv_deplibs_check_method=pass_all
cfbc9945 6112 ;;
d7040cdb
SE
6113
6114freebsd* | dragonfly*)
6115 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6116 case $host_cpu in
6117 i*86 )
6118 # Not sure whether the presence of OpenBSD here was a mistake.
6119 # Let's accept both of them until this is cleared up.
6120 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6121 lt_cv_file_magic_cmd=/usr/bin/file
6122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6123 ;;
6124 esac
6125 else
6126 lt_cv_deplibs_check_method=pass_all
6127 fi
6128 ;;
6129
6130gnu*)
6131 lt_cv_deplibs_check_method=pass_all
cfbc9945 6132 ;;
d7040cdb
SE
6133
6134hpux10.20* | hpux11*)
6135 lt_cv_file_magic_cmd=/usr/bin/file
6136 case $host_cpu in
6137 ia64*)
6138 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6139 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6140 ;;
6141 hppa*64*)
6142 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]'
6143 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6144 ;;
cfbc9945 6145 *)
d7040cdb
SE
6146 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6147 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6148 ;;
6149 esac
6150 ;;
6be7c12c 6151
d7040cdb
SE
6152interix[3-9]*)
6153 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6155 ;;
cfbc9945 6156
d7040cdb
SE
6157irix5* | irix6* | nonstopux*)
6158 case $LD in
6159 *-32|*"-32 ") libmagic=32-bit;;
6160 *-n32|*"-n32 ") libmagic=N32;;
6161 *-64|*"-64 ") libmagic=64-bit;;
6162 *) libmagic=never-match;;
6163 esac
6164 lt_cv_deplibs_check_method=pass_all
cfbc9945 6165 ;;
cfbc9945 6166
d7040cdb
SE
6167# This must be Linux ELF.
6168linux* | k*bsd*-gnu)
6169 lt_cv_deplibs_check_method=pass_all
6170 ;;
5464f5a1 6171
d7040cdb
SE
6172netbsd*)
6173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 6175 else
d7040cdb 6176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 6177 fi
d7040cdb
SE
6178 ;;
6179
6180newos6*)
6181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6182 lt_cv_file_magic_cmd=/usr/bin/file
6183 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6184 ;;
6185
6186*nto* | *qnx*)
6187 lt_cv_deplibs_check_method=pass_all
6188 ;;
cfbc9945 6189
d7040cdb
SE
6190openbsd*)
6191 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6193 else
6194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
6195 fi
6196 ;;
d7040cdb
SE
6197
6198osf3* | osf4* | osf5*)
6199 lt_cv_deplibs_check_method=pass_all
6200 ;;
6201
6202rdos*)
6203 lt_cv_deplibs_check_method=pass_all
6204 ;;
6205
6206solaris*)
6207 lt_cv_deplibs_check_method=pass_all
6208 ;;
6209
6210sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6211 lt_cv_deplibs_check_method=pass_all
6212 ;;
6213
6214sysv4 | sysv4.3*)
6215 case $host_vendor in
6216 motorola)
6217 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]'
6218 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6219 ;;
6220 ncr)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223 sequent)
6224 lt_cv_file_magic_cmd='/bin/file'
6225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6226 ;;
6227 sni)
6228 lt_cv_file_magic_cmd='/bin/file'
6229 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6230 lt_cv_file_magic_test_file=/lib/libc.so
6231 ;;
6232 siemens)
6233 lt_cv_deplibs_check_method=pass_all
6234 ;;
6235 pc)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238 esac
6239 ;;
6240
6241tpf*)
6242 lt_cv_deplibs_check_method=pass_all
6243 ;;
cfbc9945
SE
6244esac
6245
d7040cdb
SE
6246fi
6247echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6248echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6249file_magic_cmd=$lt_cv_file_magic_cmd
6250deplibs_check_method=$lt_cv_deplibs_check_method
6251test -z "$deplibs_check_method" && deplibs_check_method=unknown
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
cfbc9945 6264if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6265 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6266set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
6267echo "$as_me:$LINENO: checking for $ac_word" >&5
6268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6269if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6271else
d7040cdb
SE
6272 if test -n "$AR"; then
6273 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
6274else
6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276for as_dir in $PATH
6277do
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6282 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
6283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 break 2
6285 fi
6286done
6287done
6288
6289fi
6290fi
d7040cdb
SE
6291AR=$ac_cv_prog_AR
6292if test -n "$AR"; then
6293 echo "$as_me:$LINENO: result: $AR" >&5
6294echo "${ECHO_T}$AR" >&6
5464f5a1
NN
6295else
6296 echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6
6298fi
6299
5464f5a1 6300fi
d7040cdb
SE
6301if test -z "$ac_cv_prog_AR"; then
6302 ac_ct_AR=$AR
6303 # Extract the first word of "ar", so it can be a program name with args.
6304set dummy ar; ac_word=$2
5464f5a1
NN
6305echo "$as_me:$LINENO: checking for $ac_word" >&5
6306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6307if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 6308 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6309else
d7040cdb
SE
6310 if test -n "$ac_ct_AR"; then
6311 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 6312else
5464f5a1
NN
6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6320 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6323 fi
6324done
6325done
6326
d7040cdb 6327 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
6328fi
6329fi
d7040cdb
SE
6330ac_ct_AR=$ac_cv_prog_ac_ct_AR
6331if test -n "$ac_ct_AR"; then
6332 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6333echo "${ECHO_T}$ac_ct_AR" >&6
6334else
6335 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
6336echo "${ECHO_T}no" >&6
6337fi
6338
d7040cdb 6339 AR=$ac_ct_AR
cfbc9945 6340else
d7040cdb 6341 AR="$ac_cv_prog_AR"
5464f5a1 6342fi
cfbc9945 6343
d7040cdb
SE
6344test -z "$AR" && AR=ar
6345test -z "$AR_FLAGS" && AR_FLAGS=cru
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
cfbc9945
SE
6357if test -n "$ac_tool_prefix"; then
6358 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6359set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
6360echo "$as_me:$LINENO: checking for $ac_word" >&5
6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 6362if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
cfbc9945
SE
6365 if test -n "$STRIP"; then
6366 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
6367else
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 6375 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379done
6380done
6381
6382fi
6383fi
cfbc9945
SE
6384STRIP=$ac_cv_prog_STRIP
6385if test -n "$STRIP"; then
6386 echo "$as_me:$LINENO: result: $STRIP" >&5
6387echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
6388else
6389 echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6
6391fi
6392
252b5132 6393fi
cfbc9945
SE
6394if test -z "$ac_cv_prog_STRIP"; then
6395 ac_ct_STRIP=$STRIP
6396 # Extract the first word of "strip", so it can be a program name with args.
6397set dummy strip; ac_word=$2
5464f5a1
NN
6398echo "$as_me:$LINENO: checking for $ac_word" >&5
6399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 6400if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6402else
cfbc9945
SE
6403 if test -n "$ac_ct_STRIP"; then
6404 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
6405else
6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 6413 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
6414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6416 fi
6417done
6418done
6419
cfbc9945 6420 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
6421fi
6422fi
cfbc9945
SE
6423ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6424if test -n "$ac_ct_STRIP"; then
6425 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6426echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
6427else
6428 echo "$as_me:$LINENO: result: no" >&5
6429echo "${ECHO_T}no" >&6
6430fi
6431
cfbc9945
SE
6432 STRIP=$ac_ct_STRIP
6433else
6434 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
6435fi
6436
d7040cdb 6437test -z "$STRIP" && STRIP=:
5464f5a1 6438
cfbc9945
SE
6439
6440
cfbc9945 6441
cfbc9945
SE
6442
6443
d7040cdb
SE
6444if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6446set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6447echo "$as_me:$LINENO: checking for $ac_word" >&5
6448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6449if test "${ac_cv_prog_RANLIB+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 6451else
d7040cdb
SE
6452 if test -n "$RANLIB"; then
6453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6454else
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
cfbc9945 6465 fi
d7040cdb
SE
6466done
6467done
cfbc9945 6468
d7040cdb
SE
6469fi
6470fi
6471RANLIB=$ac_cv_prog_RANLIB
6472if test -n "$RANLIB"; then
6473 echo "$as_me:$LINENO: result: $RANLIB" >&5
6474echo "${ECHO_T}$RANLIB" >&6
6475else
6476 echo "$as_me:$LINENO: result: no" >&5
6477echo "${ECHO_T}no" >&6
6478fi
cfbc9945 6479
d7040cdb
SE
6480fi
6481if test -z "$ac_cv_prog_RANLIB"; then
6482 ac_ct_RANLIB=$RANLIB
6483 # Extract the first word of "ranlib", so it can be a program name with args.
6484set dummy ranlib; ac_word=$2
6485echo "$as_me:$LINENO: checking for $ac_word" >&5
6486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6487if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489else
6490 if test -n "$ac_ct_RANLIB"; then
6491 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6492else
6493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_ac_ct_RANLIB="ranlib"
6501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
cfbc9945 6503 fi
d7040cdb
SE
6504done
6505done
cfbc9945 6506
d7040cdb
SE
6507 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6508fi
6509fi
6510ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6511if test -n "$ac_ct_RANLIB"; then
6512 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6513echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 6514else
d7040cdb
SE
6515 echo "$as_me:$LINENO: result: no" >&5
6516echo "${ECHO_T}no" >&6
6517fi
5464f5a1 6518
d7040cdb
SE
6519 RANLIB=$ac_ct_RANLIB
6520else
6521 RANLIB="$ac_cv_prog_RANLIB"
6522fi
5464f5a1 6523
d7040cdb 6524test -z "$RANLIB" && RANLIB=:
5464f5a1 6525
5464f5a1 6526
5464f5a1 6527
cfbc9945 6528
cfbc9945 6529
d7040cdb
SE
6530
6531# Determine commands to create old-style static archives.
718a6fd8 6532old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6533old_postinstall_cmds='chmod 644 $oldlib'
6534old_postuninstall_cmds=
6535
6536if test -n "$RANLIB"; then
6537 case $host_os in
6538 openbsd*)
6539 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6540 ;;
6541 *)
6542 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6543 ;;
6544 esac
6545 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 6546fi
cfbc9945
SE
6547
6548
cfbc9945
SE
6549
6550
cfbc9945 6551
cfbc9945 6552
cfbc9945 6553
cfbc9945 6554
cfbc9945
SE
6555
6556
cfbc9945 6557
cfbc9945 6558
cfbc9945
SE
6559
6560
6561
6562
6563
6564
6565
5464f5a1 6566
5464f5a1 6567
cfbc9945
SE
6568
6569
6570
5464f5a1 6571
5464f5a1 6572
cfbc9945
SE
6573
6574
6575
5464f5a1 6576
cfbc9945
SE
6577
6578
6579
6580
d7040cdb
SE
6581# If no C compiler was specified, use CC.
6582LTCC=${LTCC-"$CC"}
cfbc9945 6583
d7040cdb
SE
6584# If no C compiler flags were specified, use CFLAGS.
6585LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 6586
d7040cdb
SE
6587# Allow CC to be a program name with arguments.
6588compiler=$CC
cfbc9945 6589
cfbc9945 6590
d7040cdb
SE
6591# Check for command to grab the raw symbol name followed by C symbol from nm.
6592echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6593echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6594if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596else
5464f5a1 6597
d7040cdb
SE
6598# These are sane defaults that work on at least a few old systems.
6599# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 6600
d7040cdb
SE
6601# Character class describing NM global symbol codes.
6602symcode='[BCDEGRST]'
6603
6604# Regexp to match symbols that can be accessed directly from C.
6605sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6606
6607# Define system-specific variables.
6608case $host_os in
6609aix*)
6610 symcode='[BCDT]'
6611 ;;
718a6fd8 6612cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6613 symcode='[ABCDGISTW]'
6614 ;;
6615hpux*)
6616 if test "$host_cpu" = ia64; then
6617 symcode='[ABCDEGRST]'
6618 fi
6619 ;;
6620irix* | nonstopux*)
6621 symcode='[BCDEGRST]'
6622 ;;
6623osf*)
6624 symcode='[BCDEGQRST]'
6625 ;;
6626solaris*)
6627 symcode='[BDRT]'
6628 ;;
6629sco3.2v5*)
6630 symcode='[DT]'
6631 ;;
6632sysv4.2uw2*)
6633 symcode='[DT]'
6634 ;;
6635sysv5* | sco5v6* | unixware* | OpenUNIX*)
6636 symcode='[ABDT]'
6637 ;;
6638sysv4)
6639 symcode='[DFNSTU]'
6640 ;;
cfbc9945 6641esac
5464f5a1 6642
d7040cdb
SE
6643# If we're using GNU nm, then use its standard symbol codes.
6644case `$NM -V 2>&1` in
6645*GNU* | *'with BFD'*)
6646 symcode='[ABCDGIRSTW]' ;;
6647esac
5464f5a1 6648
d7040cdb
SE
6649# Transform an extracted symbol line into a proper C declaration.
6650# Some systems (esp. on ia64) link data and code symbols differently,
6651# so use this general approach.
6652lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 6653
d7040cdb
SE
6654# Transform an extracted symbol line into symbol name and symbol address
6655lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6656lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5464f5a1 6657
d7040cdb
SE
6658# Handle CRLF in mingw tool chain
6659opt_cr=
6660case $build_os in
6661mingw*)
6662 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6663 ;;
6664esac
5464f5a1 6665
d7040cdb
SE
6666# Try without a prefix underscore, then with it.
6667for ac_symprfx in "" "_"; do
6668
6669 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6670 symxfrm="\\1 $ac_symprfx\\2 \\2"
6671
6672 # Write the raw and C identifiers.
6673 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6674 # Fake it for dumpbin and say T for any non-static function
6675 # and D for any global variable.
6676 # Also find C++ and __fastcall symbols from MSVC++,
6677 # which start with @ or ?.
6678 lt_cv_sys_global_symbol_pipe="$AWK '"\
6679" {last_section=section; section=\$ 3};"\
6680" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6681" \$ 0!~/External *\|/{next};"\
6682" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6683" {if(hide[section]) next};"\
6684" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6685" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6686" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6687" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6688" ' prfx=^$ac_symprfx"
6689 else
6690 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6691 fi
cfbc9945 6692
d7040cdb
SE
6693 # Check to see that the pipe works correctly.
6694 pipe_works=no
cfbc9945 6695
d7040cdb
SE
6696 rm -f conftest*
6697 cat > conftest.$ac_ext <<_LT_EOF
6698#ifdef __cplusplus
6699extern "C" {
6700#endif
6701char nm_test_var;
6702void nm_test_func(void);
6703void nm_test_func(void){}
6704#ifdef __cplusplus
6705}
6706#endif
6707int main(){nm_test_var='a';nm_test_func();return(0);}
6708_LT_EOF
cfbc9945 6709
d7040cdb
SE
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; then
6715 # Now try to grab the symbols.
6716 nlist=conftest.nm
6717 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6718 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && test -s "$nlist"; then
6722 # Try sorting and uniquifying the output.
6723 if sort "$nlist" | uniq > "$nlist"T; then
6724 mv -f "$nlist"T "$nlist"
6725 else
6726 rm -f "$nlist"T
6727 fi
cfbc9945 6728
d7040cdb
SE
6729 # Make sure that we snagged all the symbols we need.
6730 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6731 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6732 cat <<_LT_EOF > conftest.$ac_ext
6733#ifdef __cplusplus
6734extern "C" {
6735#endif
cfbc9945 6736
d7040cdb
SE
6737_LT_EOF
6738 # Now generate the symbol file.
6739 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 6740
d7040cdb 6741 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 6742
d7040cdb
SE
6743/* The mapping between symbol names and symbols. */
6744const struct {
6745 const char *name;
6746 void *address;
6747}
6748lt__PROGRAM__LTX_preloaded_symbols[] =
6749{
6750 { "@PROGRAM@", (void *) 0 },
6751_LT_EOF
6752 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6753 cat <<\_LT_EOF >> conftest.$ac_ext
6754 {0, (void *) 0}
6755};
6756
6757/* This works around a problem in FreeBSD linker */
6758#ifdef FREEBSD_WORKAROUND
6759static const void *lt_preloaded_setup() {
6760 return lt__PROGRAM__LTX_preloaded_symbols;
6761}
6762#endif
cfbc9945 6763
d7040cdb
SE
6764#ifdef __cplusplus
6765}
6766#endif
6767_LT_EOF
6768 # Now try linking the two files.
6769 mv conftest.$ac_objext conftstm.$ac_objext
6770 lt_save_LIBS="$LIBS"
6771 lt_save_CFLAGS="$CFLAGS"
6772 LIBS="conftstm.$ac_objext"
6773 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6779 pipe_works=yes
6780 fi
6781 LIBS="$lt_save_LIBS"
6782 CFLAGS="$lt_save_CFLAGS"
6783 else
6784 echo "cannot find nm_test_func in $nlist" >&5
6785 fi
6786 else
6787 echo "cannot find nm_test_var in $nlist" >&5
6788 fi
6789 else
6790 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6791 fi
6792 else
6793 echo "$progname: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6795 fi
718a6fd8 6796 rm -rf conftest* conftst*
cfbc9945 6797
d7040cdb
SE
6798 # Do not use the global_symbol_pipe unless it works.
6799 if test "$pipe_works" = yes; then
6800 break
6801 else
6802 lt_cv_sys_global_symbol_pipe=
6803 fi
6804done
cfbc9945 6805
252b5132 6806fi
5464f5a1 6807
d7040cdb
SE
6808if test -z "$lt_cv_sys_global_symbol_pipe"; then
6809 lt_cv_sys_global_symbol_to_cdecl=
6810fi
6811if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6812 echo "$as_me:$LINENO: result: failed" >&5
6813echo "${ECHO_T}failed" >&6
b3baf5d0 6814else
d7040cdb
SE
6815 echo "$as_me:$LINENO: result: ok" >&5
6816echo "${ECHO_T}ok" >&6
6817fi
5464f5a1 6818
cfbc9945 6819
b3baf5d0 6820
cfbc9945
SE
6821
6822
6823
6824
5464f5a1 6825
4a2a2686
HPN
6826
6827
6828
cfbc9945
SE
6829
6830
cfbc9945 6831
cfbc9945 6832
718a6fd8
SE
6833
6834
6835
6836
6837
9d7cbccd 6838
20e95c23 6839
d7040cdb
SE
6840# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6841if test "${enable_libtool_lock+set}" = set; then
6842 enableval="$enable_libtool_lock"
20e95c23 6843
d7040cdb
SE
6844fi;
6845test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 6846
d7040cdb
SE
6847# Some flags need to be propagated to the compiler or linker for good
6848# libtool support.
6849case $host in
6850ia64-*-hpux*)
6851 # Find out which ABI we are using.
6852 echo 'int i;' > conftest.$ac_ext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; then
6858 case `/usr/bin/file conftest.$ac_objext` in
6859 *ELF-32*)
6860 HPUX_IA64_MODE="32"
6861 ;;
6862 *ELF-64*)
6863 HPUX_IA64_MODE="64"
6864 ;;
20e95c23 6865 esac
d7040cdb
SE
6866 fi
6867 rm -rf conftest*
6868 ;;
6869*-*-irix6*)
6870 # Find out which ABI we are using.
718a6fd8 6871 echo '#line 6871 "configure"' > conftest.$ac_ext
d7040cdb
SE
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; then
6877 if test "$lt_cv_prog_gnu_ld" = yes; then
6878 case `/usr/bin/file conftest.$ac_objext` in
6879 *32-bit*)
6880 LD="${LD-ld} -melf32bsmip"
6881 ;;
6882 *N32*)
6883 LD="${LD-ld} -melf32bmipn32"
6884 ;;
6885 *64-bit*)
6886 LD="${LD-ld} -melf64bmip"
6887 ;;
6888 esac
20e95c23 6889 else
d7040cdb
SE
6890 case `/usr/bin/file conftest.$ac_objext` in
6891 *32-bit*)
6892 LD="${LD-ld} -32"
6893 ;;
6894 *N32*)
6895 LD="${LD-ld} -n32"
6896 ;;
6897 *64-bit*)
6898 LD="${LD-ld} -64"
6899 ;;
20e95c23
DJ
6900 esac
6901 fi
d7040cdb
SE
6902 fi
6903 rm -rf conftest*
6904 ;;
20e95c23 6905
d7040cdb
SE
6906x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6907s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6908 # Find out which ABI we are using.
6909 echo 'int i;' > conftest.$ac_ext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6911 (eval $ac_compile) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; then
6915 case `/usr/bin/file conftest.o` in
6916 *32-bit*)
6917 case $host in
6918 x86_64-*kfreebsd*-gnu)
6919 LD="${LD-ld} -m elf_i386_fbsd"
6920 ;;
6921 x86_64-*linux*)
6922 LD="${LD-ld} -m elf_i386"
6923 ;;
6924 ppc64-*linux*|powerpc64-*linux*)
6925 LD="${LD-ld} -m elf32ppclinux"
6926 ;;
6927 s390x-*linux*)
6928 LD="${LD-ld} -m elf_s390"
6929 ;;
6930 sparc64-*linux*)
6931 LD="${LD-ld} -m elf32_sparc"
6932 ;;
6933 esac
6934 ;;
6935 *64-bit*)
6936 case $host in
6937 x86_64-*kfreebsd*-gnu)
6938 LD="${LD-ld} -m elf_x86_64_fbsd"
6939 ;;
6940 x86_64-*linux*)
6941 LD="${LD-ld} -m elf_x86_64"
6942 ;;
6943 ppc*-*linux*|powerpc*-*linux*)
6944 LD="${LD-ld} -m elf64ppc"
6945 ;;
6946 s390*-*linux*|s390*-*tpf*)
6947 LD="${LD-ld} -m elf64_s390"
6948 ;;
6949 sparc*-*linux*)
6950 LD="${LD-ld} -m elf64_sparc"
6951 ;;
6952 esac
6953 ;;
20e95c23
DJ
6954 esac
6955 fi
d7040cdb 6956 rm -rf conftest*
7357c5b6 6957 ;;
d7040cdb 6958
7357c5b6
AM
6959*-*-sco3.2v5*)
6960 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6961 SAVE_CFLAGS="$CFLAGS"
6962 CFLAGS="$CFLAGS -belf"
6963 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6964echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6965if test "${lt_cv_cc_needs_belf+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 6967else
7357c5b6
AM
6968 ac_ext=c
6969ac_cpp='$CPP $CPPFLAGS'
6970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6973
7357c5b6 6974 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
6975/* confdefs.h. */
6976_ACEOF
6977cat confdefs.h >>conftest.$ac_ext
6978cat >>conftest.$ac_ext <<_ACEOF
6979/* end confdefs.h. */
d7040cdb 6980
d7040cdb
SE
6981int
6982main ()
6983{
7357c5b6
AM
6984
6985 ;
6986 return 0;
d7040cdb
SE
6987}
6988_ACEOF
7357c5b6 6989rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb 6990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7357c5b6 6991 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
6992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
7357c5b6
AM
6998 { ac_try='test -z "$ac_c_werror_flag"
6999 || test ! -s conftest.err'
d7040cdb
SE
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7357c5b6 7005 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7357c5b6 7011 lt_cv_cc_needs_belf=yes
d7040cdb
SE
7012else
7013 echo "$as_me: failed program was:" >&5
7014sed 's/^/| /' conftest.$ac_ext >&5
7015
7357c5b6 7016lt_cv_cc_needs_belf=no
d7040cdb 7017fi
7357c5b6
AM
7018rm -f conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7020 ac_ext=c
7021ac_cpp='$CPP $CPPFLAGS'
7022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7025
7026fi
7357c5b6
AM
7027echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7028echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7031 CFLAGS="$SAVE_CFLAGS"
7032 fi
7033 ;;
7034sparc*-*solaris*)
7035 # Find out which ABI we are using.
7036 echo 'int i;' > conftest.$ac_ext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7038 (eval $ac_compile) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; then
7042 case `/usr/bin/file conftest.o` in
7043 *64-bit*)
7044 case $lt_cv_prog_gnu_ld in
7045 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
7046 *)
7047 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7048 LD="${LD-ld} -64"
7049 fi
7050 ;;
7357c5b6
AM
7051 esac
7052 ;;
7053 esac
7054 fi
7055 rm -rf conftest*
7056 ;;
7057esac
d7040cdb 7058
7357c5b6 7059need_locks="$enable_libtool_lock"
d7040cdb
SE
7060
7061
718a6fd8
SE
7062 case $host_os in
7063 rhapsody* | darwin*)
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7066set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7067echo "$as_me:$LINENO: checking for $ac_word" >&5
7068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7069if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072 if test -n "$DSYMUTIL"; then
7073 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7074else
7075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076for as_dir in $PATH
7077do
7078 IFS=$as_save_IFS
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086done
7087done
7088
7089fi
7090fi
7091DSYMUTIL=$ac_cv_prog_DSYMUTIL
7092if test -n "$DSYMUTIL"; then
7093 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7094echo "${ECHO_T}$DSYMUTIL" >&6
7095else
7096 echo "$as_me:$LINENO: result: no" >&5
7097echo "${ECHO_T}no" >&6
7098fi
7099
7100fi
7101if test -z "$ac_cv_prog_DSYMUTIL"; then
7102 ac_ct_DSYMUTIL=$DSYMUTIL
7103 # Extract the first word of "dsymutil", so it can be a program name with args.
7104set dummy dsymutil; ac_word=$2
7105echo "$as_me:$LINENO: checking for $ac_word" >&5
7106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7107if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110 if test -n "$ac_ct_DSYMUTIL"; then
7111 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124done
7125done
7126
7127 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7128fi
7129fi
7130ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7131if test -n "$ac_ct_DSYMUTIL"; then
7132 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7133echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7134else
7135 echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6
7137fi
7138
7139 DSYMUTIL=$ac_ct_DSYMUTIL
7140else
7141 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7142fi
7143
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7146set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7147echo "$as_me:$LINENO: checking for $ac_word" >&5
7148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149if test "${ac_cv_prog_NMEDIT+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151else
7152 if test -n "$NMEDIT"; then
7153 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7154else
7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166done
7167done
7168
7169fi
7170fi
7171NMEDIT=$ac_cv_prog_NMEDIT
7172if test -n "$NMEDIT"; then
7173 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7174echo "${ECHO_T}$NMEDIT" >&6
7175else
7176 echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6
7178fi
7179
7180fi
7181if test -z "$ac_cv_prog_NMEDIT"; then
7182 ac_ct_NMEDIT=$NMEDIT
7183 # Extract the first word of "nmedit", so it can be a program name with args.
7184set dummy nmedit; ac_word=$2
7185echo "$as_me:$LINENO: checking for $ac_word" >&5
7186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7187if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
7190 if test -n "$ac_ct_NMEDIT"; then
7191 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7192else
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204done
7205done
7206
7207 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7208fi
7209fi
7210ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7211if test -n "$ac_ct_NMEDIT"; then
7212 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7213echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7214else
7215 echo "$as_me:$LINENO: result: no" >&5
7216echo "${ECHO_T}no" >&6
7217fi
7218
7219 NMEDIT=$ac_ct_NMEDIT
7220else
7221 NMEDIT="$ac_cv_prog_NMEDIT"
7222fi
7223
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7226set dummy ${ac_tool_prefix}lipo; ac_word=$2
7227echo "$as_me:$LINENO: checking for $ac_word" >&5
7228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7229if test "${ac_cv_prog_LIPO+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232 if test -n "$LIPO"; then
7233 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7234else
7235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246done
7247done
7248
7249fi
7250fi
7251LIPO=$ac_cv_prog_LIPO
7252if test -n "$LIPO"; then
7253 echo "$as_me:$LINENO: result: $LIPO" >&5
7254echo "${ECHO_T}$LIPO" >&6
7255else
7256 echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6
7258fi
7259
7260fi
7261if test -z "$ac_cv_prog_LIPO"; then
7262 ac_ct_LIPO=$LIPO
7263 # Extract the first word of "lipo", so it can be a program name with args.
7264set dummy lipo; ac_word=$2
7265echo "$as_me:$LINENO: checking for $ac_word" >&5
7266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269else
7270 if test -n "$ac_ct_LIPO"; then
7271 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7272else
7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_ac_ct_LIPO="lipo"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284done
7285done
7286
7287 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7288fi
7289fi
7290ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7291if test -n "$ac_ct_LIPO"; then
7292 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7293echo "${ECHO_T}$ac_ct_LIPO" >&6
7294else
7295 echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6
7297fi
7298
7299 LIPO=$ac_ct_LIPO
7300else
7301 LIPO="$ac_cv_prog_LIPO"
7302fi
7303
7304 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7306set dummy ${ac_tool_prefix}otool; ac_word=$2
7307echo "$as_me:$LINENO: checking for $ac_word" >&5
7308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309if test "${ac_cv_prog_OTOOL+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312 if test -n "$OTOOL"; then
7313 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326done
7327done
7328
7329fi
7330fi
7331OTOOL=$ac_cv_prog_OTOOL
7332if test -n "$OTOOL"; then
7333 echo "$as_me:$LINENO: result: $OTOOL" >&5
7334echo "${ECHO_T}$OTOOL" >&6
7335else
7336 echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6
7338fi
7339
7340fi
7341if test -z "$ac_cv_prog_OTOOL"; then
7342 ac_ct_OTOOL=$OTOOL
7343 # Extract the first word of "otool", so it can be a program name with args.
7344set dummy otool; ac_word=$2
7345echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7347if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350 if test -n "$ac_ct_OTOOL"; then
7351 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7352else
7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_ac_ct_OTOOL="otool"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364done
7365done
7366
7367 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7368fi
7369fi
7370ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7371if test -n "$ac_ct_OTOOL"; then
7372 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7373echo "${ECHO_T}$ac_ct_OTOOL" >&6
7374else
7375 echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
7377fi
7378
7379 OTOOL=$ac_ct_OTOOL
7380else
7381 OTOOL="$ac_cv_prog_OTOOL"
7382fi
7383
7384 if test -n "$ac_tool_prefix"; then
7385 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7386set dummy ${ac_tool_prefix}otool64; ac_word=$2
7387echo "$as_me:$LINENO: checking for $ac_word" >&5
7388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7389if test "${ac_cv_prog_OTOOL64+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391else
7392 if test -n "$OTOOL64"; then
7393 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7405 fi
7406done
7407done
7408
7409fi
7410fi
7411OTOOL64=$ac_cv_prog_OTOOL64
7412if test -n "$OTOOL64"; then
7413 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7414echo "${ECHO_T}$OTOOL64" >&6
7415else
7416 echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
7418fi
7419
7420fi
7421if test -z "$ac_cv_prog_OTOOL64"; then
7422 ac_ct_OTOOL64=$OTOOL64
7423 # Extract the first word of "otool64", so it can be a program name with args.
7424set dummy otool64; ac_word=$2
7425echo "$as_me:$LINENO: checking for $ac_word" >&5
7426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7427if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
7430 if test -n "$ac_ct_OTOOL64"; then
7431 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7432else
7433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434for as_dir in $PATH
7435do
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_ac_ct_OTOOL64="otool64"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7443 fi
7444done
7445done
7446
7447 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7448fi
7449fi
7450ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7451if test -n "$ac_ct_OTOOL64"; then
7452 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7453echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7454else
7455 echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457fi
7458
7459 OTOOL64=$ac_ct_OTOOL64
7460else
7461 OTOOL64="$ac_cv_prog_OTOOL64"
7462fi
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7491echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7492if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494else
7495 lt_cv_apple_cc_single_mod=no
7496 if test -z "${LT_MULTI_MODULE}"; then
7497 # By default we will add the -single_module flag. You can override
7498 # by either setting the environment variable LT_MULTI_MODULE
7499 # non-empty at configure time, or by adding -multi_module to the
7500 # link flags.
7501 rm -rf libconftest.dylib*
7502 echo "int foo(void){return 1;}" > conftest.c
7503 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7504-dynamiclib -Wl,-single_module conftest.c" >&5
7505 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7507 _lt_result=$?
7508 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7509 lt_cv_apple_cc_single_mod=yes
7510 else
7511 cat conftest.err >&5
7512 fi
7513 rm -rf libconftest.dylib*
7514 rm -f conftest.*
7515 fi
7516fi
7517echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7518echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7519 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7520echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7521if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523else
7524 lt_cv_ld_exported_symbols_list=no
7525 save_LDFLAGS=$LDFLAGS
7526 echo "_main" > conftest.sym
7527 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7528 cat >conftest.$ac_ext <<_ACEOF
7529/* confdefs.h. */
7530_ACEOF
7531cat confdefs.h >>conftest.$ac_ext
7532cat >>conftest.$ac_ext <<_ACEOF
7533/* end confdefs.h. */
7534
7535int
7536main ()
7537{
7538
7539 ;
7540 return 0;
7541}
7542_ACEOF
7543rm -f conftest.$ac_objext conftest$ac_exeext
7544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7545 (eval $ac_link) 2>conftest.er1
7546 ac_status=$?
7547 grep -v '^ *+' conftest.er1 >conftest.err
7548 rm -f conftest.er1
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } &&
7552 { ac_try='test -z "$ac_c_werror_flag"
7553 || test ! -s conftest.err'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; } &&
7559 { ac_try='test -s conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 lt_cv_ld_exported_symbols_list=yes
7566else
7567 echo "$as_me: failed program was:" >&5
7568sed 's/^/| /' conftest.$ac_ext >&5
7569
7570lt_cv_ld_exported_symbols_list=no
7571fi
7572rm -f conftest.err conftest.$ac_objext \
7573 conftest$ac_exeext conftest.$ac_ext
7574 LDFLAGS="$save_LDFLAGS"
7575
7576fi
7577echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7578echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7579 case $host_os in
7580 rhapsody* | darwin1.[012])
7581 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7582 darwin1.*)
7583 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7584 darwin*) # darwin 5.x on
7585 # if running on 10.5 or later, the deployment target defaults
7586 # to the OS version, if on x86, and 10.4, the deployment
7587 # target defaults to 10.4. Don't you love it?
7588 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7589 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7590 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7591 10.[012]*)
7592 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7593 10.*)
7594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7595 esac
7596 ;;
7597 esac
7598 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7599 _lt_dar_single_mod='$single_module'
7600 fi
7601 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7602 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7603 else
7604 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7605 fi
7606 if test "$DSYMUTIL" != ":"; then
7607 _lt_dsymutil='~$DSYMUTIL $lib || :'
7608 else
7609 _lt_dsymutil=
7610 fi
7611 ;;
7612 esac
7613
7614
d7040cdb
SE
7615for ac_header in dlfcn.h
7616do
7617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7618echo "$as_me:$LINENO: checking for $ac_header" >&5
7619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7620if eval "test \"\${$as_ac_Header+set}\" = set"; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622else
7623 cat >conftest.$ac_ext <<_ACEOF
7624/* confdefs.h. */
7625_ACEOF
7626cat confdefs.h >>conftest.$ac_ext
7627cat >>conftest.$ac_ext <<_ACEOF
7628/* end confdefs.h. */
7629$ac_includes_default
7630
7631#include <$ac_header>
7632_ACEOF
7633rm -f conftest.$ac_objext
7634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635 (eval $ac_compile) 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7357c5b6
AM
7642 { ac_try='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
d7040cdb
SE
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 (eval $ac_try) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 eval "$as_ac_Header=yes"
7656else
7657 echo "$as_me: failed program was:" >&5
7658sed 's/^/| /' conftest.$ac_ext >&5
7659
7660eval "$as_ac_Header=no"
7661fi
7662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7663fi
7664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7666if test `eval echo '${'$as_ac_Header'}'` = yes; then
7667 cat >>confdefs.h <<_ACEOF
7668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7669_ACEOF
7670
7671fi
7672
7673done
7674
7675
7676
718a6fd8
SE
7677# Set options
7678
7679
7680
7681 enable_dlopen=no
7682
7683
7684 enable_win32_dll=no
7685
7686
7687
7688 # Check whether --enable-static or --disable-static was given.
7689if test "${enable_static+set}" = set; then
7690 enableval="$enable_static"
7691 p=${PACKAGE-default}
7692 case $enableval in
7693 yes) enable_static=yes ;;
7694 no) enable_static=no ;;
7695 *)
7696 enable_static=no
7697 # Look at the argument we got. We use all the common list separators.
7698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7699 for pkg in $enableval; do
7700 IFS="$lt_save_ifs"
7701 if test "X$pkg" = "X$p"; then
7702 enable_static=yes
7703 fi
7704 done
7705 IFS="$lt_save_ifs"
7706 ;;
7707 esac
7708else
7709 enable_static=yes
7710fi;
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720# Check whether --with-pic or --without-pic was given.
7721if test "${with_pic+set}" = set; then
7722 withval="$with_pic"
7723 pic_mode="$withval"
7724else
7725 pic_mode=default
7726fi;
7727
7728test -z "$pic_mode" && pic_mode=default
7729
7730
7731
7732
7733
7734
7735
7736 # Check whether --enable-fast-install or --disable-fast-install was given.
7737if test "${enable_fast_install+set}" = set; then
7738 enableval="$enable_fast_install"
7739 p=${PACKAGE-default}
7740 case $enableval in
7741 yes) enable_fast_install=yes ;;
7742 no) enable_fast_install=no ;;
7743 *)
7744 enable_fast_install=no
7745 # Look at the argument we got. We use all the common list separators.
7746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7747 for pkg in $enableval; do
7748 IFS="$lt_save_ifs"
7749 if test "X$pkg" = "X$p"; then
7750 enable_fast_install=yes
7751 fi
7752 done
7753 IFS="$lt_save_ifs"
7754 ;;
7755 esac
7756else
7757 enable_fast_install=yes
7758fi;
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
d7040cdb
SE
7769# This can be used to rebuild libtool when needed
7770LIBTOOL_DEPS="$ltmain"
7771
7772# Always use our own libtool.
7773LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799test -z "$LN_S" && LN_S="ln -s"
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814if test -n "${ZSH_VERSION+set}" ; then
7815 setopt NO_GLOB_SUBST
7816fi
7817
7818echo "$as_me:$LINENO: checking for objdir" >&5
7819echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7820if test "${lt_cv_objdir+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7822else
7823 rm -f .libs 2>/dev/null
7824mkdir .libs 2>/dev/null
7825if test -d .libs; then
7826 lt_cv_objdir=.libs
7827else
7828 # MS-DOS does not allow filenames that begin with a dot.
7829 lt_cv_objdir=_libs
7830fi
7831rmdir .libs 2>/dev/null
7832fi
7833echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7834echo "${ECHO_T}$lt_cv_objdir" >&6
7835objdir=$lt_cv_objdir
7836
7837
7838
7839
7840
7841cat >>confdefs.h <<_ACEOF
7842#define LT_OBJDIR "$lt_cv_objdir/"
7843_ACEOF
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861case $host_os in
7862aix3*)
7863 # AIX sometimes has problems with the GCC collect2 program. For some
7864 # reason, if we set the COLLECT_NAMES environment variable, the problems
7865 # vanish in a puff of smoke.
7866 if test "X${COLLECT_NAMES+set}" != Xset; then
7867 COLLECT_NAMES=
7868 export COLLECT_NAMES
7869 fi
7870 ;;
7871esac
7872
7873# Sed substitution that helps us do robust quoting. It backslashifies
7874# metacharacters that are still active within double-quoted strings.
7875sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7876
7877# Same as above, but do not quote variable references.
7878double_quote_subst='s/\(["`\\]\)/\\\1/g'
7879
7880# Sed substitution to delay expansion of an escaped shell variable in a
7881# double_quote_subst'ed string.
7882delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7883
7884# Sed substitution to delay expansion of an escaped single quote.
7885delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7886
7887# Sed substitution to avoid accidental globbing in evaled expressions
7888no_glob_subst='s/\*/\\\*/g'
7889
7890# Global variables:
7891ofile=libtool
7892can_build_shared=yes
7893
7894# All known linkers require a `.a' archive for static linking (except MSVC,
7895# which needs '.lib').
7896libext=a
7897
7898with_gnu_ld="$lt_cv_prog_gnu_ld"
7899
7900old_CC="$CC"
7901old_CFLAGS="$CFLAGS"
7902
7903# Set sane defaults for various variables
7904test -z "$CC" && CC=cc
7905test -z "$LTCC" && LTCC=$CC
7906test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7907test -z "$LD" && LD=ld
7908test -z "$ac_objext" && ac_objext=o
7909
7910for cc_temp in $compiler""; do
7911 case $cc_temp in
7912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7914 \-*) ;;
7915 *) break;;
7916 esac
7917done
7918cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7919
7920
7921# Only perform the check for file, if the check method requires it
7922test -z "$MAGIC_CMD" && MAGIC_CMD=file
7923case $deplibs_check_method in
7924file_magic*)
7925 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7926 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7927echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7928if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
7931 case $MAGIC_CMD in
7932[\\/*] | ?:[\\/]*)
7933 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7934 ;;
7935*)
7936 lt_save_MAGIC_CMD="$MAGIC_CMD"
7937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7938 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7939 for ac_dir in $ac_dummy; do
7940 IFS="$lt_save_ifs"
7941 test -z "$ac_dir" && ac_dir=.
7942 if test -f $ac_dir/${ac_tool_prefix}file; then
7943 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7944 if test -n "$file_magic_test_file"; then
7945 case $deplibs_check_method in
7946 "file_magic "*)
7947 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7950 $EGREP "$file_magic_regex" > /dev/null; then
7951 :
7952 else
7953 cat <<_LT_EOF 1>&2
7954
7955*** Warning: the command libtool uses to detect shared libraries,
7956*** $file_magic_cmd, produces output that libtool cannot recognize.
7957*** The result is that libtool may fail to recognize shared libraries
7958*** as such. This will affect the creation of libtool libraries that
7959*** depend on shared libraries, but programs linked with such libtool
7960*** libraries will work regardless of this problem. Nevertheless, you
7961*** may want to report the problem to your system manager and/or to
7962*** bug-libtool@gnu.org
7963
7964_LT_EOF
7965 fi ;;
7966 esac
7967 fi
7968 break
7969 fi
7970 done
7971 IFS="$lt_save_ifs"
7972 MAGIC_CMD="$lt_save_MAGIC_CMD"
7973 ;;
7974esac
7975fi
7976
7977MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7978if test -n "$MAGIC_CMD"; then
7979 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7980echo "${ECHO_T}$MAGIC_CMD" >&6
7981else
7982 echo "$as_me:$LINENO: result: no" >&5
7983echo "${ECHO_T}no" >&6
7984fi
7985
7986
7987
7988
7989
7990if test -z "$lt_cv_path_MAGIC_CMD"; then
7991 if test -n "$ac_tool_prefix"; then
7992 echo "$as_me:$LINENO: checking for file" >&5
7993echo $ECHO_N "checking for file... $ECHO_C" >&6
7994if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997 case $MAGIC_CMD in
7998[\\/*] | ?:[\\/]*)
7999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8000 ;;
8001*)
8002 lt_save_MAGIC_CMD="$MAGIC_CMD"
8003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8004 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8005 for ac_dir in $ac_dummy; do
8006 IFS="$lt_save_ifs"
8007 test -z "$ac_dir" && ac_dir=.
8008 if test -f $ac_dir/file; then
8009 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8010 if test -n "$file_magic_test_file"; then
8011 case $deplibs_check_method in
8012 "file_magic "*)
8013 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8016 $EGREP "$file_magic_regex" > /dev/null; then
8017 :
8018 else
8019 cat <<_LT_EOF 1>&2
8020
8021*** Warning: the command libtool uses to detect shared libraries,
8022*** $file_magic_cmd, produces output that libtool cannot recognize.
8023*** The result is that libtool may fail to recognize shared libraries
8024*** as such. This will affect the creation of libtool libraries that
8025*** depend on shared libraries, but programs linked with such libtool
8026*** libraries will work regardless of this problem. Nevertheless, you
8027*** may want to report the problem to your system manager and/or to
8028*** bug-libtool@gnu.org
8029
8030_LT_EOF
8031 fi ;;
8032 esac
8033 fi
8034 break
8035 fi
8036 done
8037 IFS="$lt_save_ifs"
8038 MAGIC_CMD="$lt_save_MAGIC_CMD"
8039 ;;
8040esac
8041fi
8042
8043MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8044if test -n "$MAGIC_CMD"; then
8045 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8046echo "${ECHO_T}$MAGIC_CMD" >&6
8047else
8048 echo "$as_me:$LINENO: result: no" >&5
8049echo "${ECHO_T}no" >&6
8050fi
8051
8052
8053 else
8054 MAGIC_CMD=:
8055 fi
8056fi
8057
8058 fi
8059 ;;
8060esac
8061
8062# Use C for the default configuration in the libtool script
8063
8064lt_save_CC="$CC"
8065ac_ext=c
8066ac_cpp='$CPP $CPPFLAGS'
8067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069ac_compiler_gnu=$ac_cv_c_compiler_gnu
8070
8071
8072# Source file extension for C test sources.
8073ac_ext=c
8074
8075# Object file extension for compiled C test sources.
8076objext=o
8077objext=$objext
8078
8079# Code to be used in simple compile tests
8080lt_simple_compile_test_code="int some_variable = 0;"
8081
8082# Code to be used in simple link tests
8083lt_simple_link_test_code='int main(){return(0);}'
8084
8085
8086
8087
8088
8089
8090
8091# If no C compiler was specified, use CC.
8092LTCC=${LTCC-"$CC"}
8093
8094# If no C compiler flags were specified, use CFLAGS.
8095LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8096
8097# Allow CC to be a program name with arguments.
8098compiler=$CC
8099
8100# Save the default compiler, since it gets overwritten when the other
8101# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8102compiler_DEFAULT=$CC
8103
8104# save warnings/boilerplate of simple test code
8105ac_outfile=conftest.$ac_objext
8106echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8107eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8108_lt_compiler_boilerplate=`cat conftest.err`
8109$RM conftest*
8110
8111ac_outfile=conftest.$ac_objext
8112echo "$lt_simple_link_test_code" >conftest.$ac_ext
8113eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8114_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8115$RM -r conftest*
d7040cdb
SE
8116
8117
8118## CAVEAT EMPTOR:
8119## There is no encapsulation within the following macros, do not change
8120## the running order or otherwise move them around unless you know exactly
8121## what you are doing...
8122if test -n "$compiler"; then
8123
8124lt_prog_compiler_no_builtin_flag=
8125
8126if test "$GCC" = yes; then
8127 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8128
8129 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8130echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8131if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133else
8134 lt_cv_prog_compiler_rtti_exceptions=no
8135 ac_outfile=conftest.$ac_objext
8136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8137 lt_compiler_flag="-fno-rtti -fno-exceptions"
8138 # Insert the option either (1) after the last *FLAGS variable, or
8139 # (2) before a word containing "conftest.", or (3) at the end.
8140 # Note that $ac_compile itself does not contain backslashes and begins
8141 # with a dollar sign (not a hyphen), so the echo should work correctly.
8142 # The option is referenced via a variable to avoid confusing sed.
8143 lt_compile=`echo "$ac_compile" | $SED \
8144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8146 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8147 (eval echo "\"\$as_me:8147: $lt_compile\"" >&5)
d7040cdb
SE
8148 (eval "$lt_compile" 2>conftest.err)
8149 ac_status=$?
8150 cat conftest.err >&5
718a6fd8 8151 echo "$as_me:8151: \$? = $ac_status" >&5
d7040cdb
SE
8152 if (exit $ac_status) && test -s "$ac_outfile"; then
8153 # The compiler can only warn and ignore the option if not recognized
8154 # So say no if there are warnings other than the usual output.
8155 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8158 lt_cv_prog_compiler_rtti_exceptions=yes
8159 fi
8160 fi
8161 $RM conftest*
8162
8163fi
8164echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8165echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8166
8167if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8168 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8169else
8170 :
8171fi
8172
8173fi
8174
8175
8176
8177
8178
8179
8180 lt_prog_compiler_wl=
8181lt_prog_compiler_pic=
8182lt_prog_compiler_static=
8183
8184echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8185echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8186
8187 if test "$GCC" = yes; then
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_static='-static'
8190
8191 case $host_os in
8192 aix*)
8193 # All AIX code is PIC.
8194 if test "$host_cpu" = ia64; then
8195 # AIX 5 now supports IA64 processor
8196 lt_prog_compiler_static='-Bstatic'
8197 fi
8198 ;;
8199
8200 amigaos*)
718a6fd8
SE
8201 case $host_cpu in
8202 powerpc)
8203 # see comment about AmigaOS4 .so support
8204 lt_prog_compiler_pic='-fPIC'
8205 ;;
8206 m68k)
8207 # FIXME: we need at least 68020 code to build shared libraries, but
8208 # adding the `-m68020' flag to GCC prevents building anything better,
8209 # like `-m68040'.
8210 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8211 ;;
8212 esac
d7040cdb
SE
8213 ;;
8214
8215 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8216 # PIC is the default for these OSes.
8217 ;;
8218
718a6fd8 8219 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8220 # This hack is so that the source file can tell whether it is being
8221 # built for inclusion in a dll (and should export symbols for example).
8222 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8223 # (--disable-auto-import) libraries
8224 lt_prog_compiler_pic='-DDLL_EXPORT'
8225 ;;
8226
8227 darwin* | rhapsody*)
8228 # PIC is the default on this platform
8229 # Common symbols not allowed in MH_DYLIB files
8230 lt_prog_compiler_pic='-fno-common'
8231 ;;
8232
8233 hpux*)
718a6fd8
SE
8234 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8235 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8236 # sets the default TLS model and affects inlining.
d7040cdb 8237 case $host_cpu in
718a6fd8 8238 hppa*64*)
d7040cdb
SE
8239 # +Z the default
8240 ;;
8241 *)
8242 lt_prog_compiler_pic='-fPIC'
8243 ;;
8244 esac
8245 ;;
8246
8247 interix[3-9]*)
8248 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8249 # Instead, we relocate shared libraries at runtime.
8250 ;;
8251
8252 msdosdjgpp*)
8253 # Just because we use GCC doesn't mean we suddenly get shared libraries
8254 # on systems that don't support them.
8255 lt_prog_compiler_can_build_shared=no
8256 enable_shared=no
8257 ;;
8258
8259 *nto* | *qnx*)
8260 # QNX uses GNU C++, but need to define -shared option too, otherwise
8261 # it will coredump.
8262 lt_prog_compiler_pic='-fPIC -shared'
8263 ;;
8264
8265 sysv4*MP*)
8266 if test -d /usr/nec; then
8267 lt_prog_compiler_pic=-Kconform_pic
8268 fi
8269 ;;
8270
8271 *)
8272 lt_prog_compiler_pic='-fPIC'
8273 ;;
8274 esac
8275 else
8276 # PORTME Check for flag to pass linker flags through the system compiler.
8277 case $host_os in
8278 aix*)
8279 lt_prog_compiler_wl='-Wl,'
8280 if test "$host_cpu" = ia64; then
8281 # AIX 5 now supports IA64 processor
8282 lt_prog_compiler_static='-Bstatic'
8283 else
8284 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8285 fi
8286 ;;
d7040cdb 8287
718a6fd8 8288 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8289 # This hack is so that the source file can tell whether it is being
8290 # built for inclusion in a dll (and should export symbols for example).
8291 lt_prog_compiler_pic='-DDLL_EXPORT'
8292 ;;
8293
8294 hpux9* | hpux10* | hpux11*)
8295 lt_prog_compiler_wl='-Wl,'
8296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8297 # not for PA HP-UX.
8298 case $host_cpu in
8299 hppa*64*|ia64*)
8300 # +Z the default
8301 ;;
8302 *)
8303 lt_prog_compiler_pic='+Z'
8304 ;;
8305 esac
8306 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8307 lt_prog_compiler_static='${wl}-a ${wl}archive'
8308 ;;
8309
8310 irix5* | irix6* | nonstopux*)
8311 lt_prog_compiler_wl='-Wl,'
8312 # PIC (with -KPIC) is the default.
8313 lt_prog_compiler_static='-non_shared'
8314 ;;
8315
8316 linux* | k*bsd*-gnu)
8317 case $cc_basename in
718a6fd8
SE
8318 # old Intel for x86_64 which still supported -KPIC.
8319 ecc*)
d7040cdb
SE
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-KPIC'
8322 lt_prog_compiler_static='-static'
8323 ;;
718a6fd8
SE
8324 # icc used to be incompatible with GCC.
8325 # ICC 10 doesn't accept -KPIC any more.
8326 icc* | ifort*)
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='-fPIC'
8329 lt_prog_compiler_static='-static'
8330 ;;
8331 # Lahey Fortran 8.1.
8332 lf95*)
8333 lt_prog_compiler_wl='-Wl,'
8334 lt_prog_compiler_pic='--shared'
8335 lt_prog_compiler_static='--static'
8336 ;;
d7040cdb
SE
8337 pgcc* | pgf77* | pgf90* | pgf95*)
8338 # Portland Group compilers (*not* the Pentium gcc compiler,
8339 # which looks to be a dead project)
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-fpic'
8342 lt_prog_compiler_static='-Bstatic'
8343 ;;
8344 ccc*)
8345 lt_prog_compiler_wl='-Wl,'
8346 # All Alpha code is PIC.
8347 lt_prog_compiler_static='-non_shared'
8348 ;;
718a6fd8
SE
8349 xl*)
8350 # IBM XL C 8.0/Fortran 10.1 on PPC
8351 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='-qpic'
8353 lt_prog_compiler_static='-qstaticlink'
8354 ;;
d7040cdb
SE
8355 *)
8356 case `$CC -V 2>&1 | sed 5q` in
8357 *Sun\ C*)
8358 # Sun C 5.9
8359 lt_prog_compiler_pic='-KPIC'
8360 lt_prog_compiler_static='-Bstatic'
8361 lt_prog_compiler_wl='-Wl,'
8362 ;;
8363 *Sun\ F*)
8364 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 lt_prog_compiler_wl=''
8368 ;;
8369 esac
8370 ;;
8371 esac
8372 ;;
8373
8374 newsos6)
8375 lt_prog_compiler_pic='-KPIC'
8376 lt_prog_compiler_static='-Bstatic'
8377 ;;
8378
8379 *nto* | *qnx*)
8380 # QNX uses GNU C++, but need to define -shared option too, otherwise
8381 # it will coredump.
8382 lt_prog_compiler_pic='-fPIC -shared'
8383 ;;
8384
8385 osf3* | osf4* | osf5*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # All OSF/1 code is PIC.
8388 lt_prog_compiler_static='-non_shared'
8389 ;;
8390
8391 rdos*)
8392 lt_prog_compiler_static='-non_shared'
8393 ;;
8394
8395 solaris*)
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-Bstatic'
8398 case $cc_basename in
8399 f77* | f90* | f95*)
8400 lt_prog_compiler_wl='-Qoption ld ';;
8401 *)
8402 lt_prog_compiler_wl='-Wl,';;
8403 esac
8404 ;;
8405
8406 sunos4*)
8407 lt_prog_compiler_wl='-Qoption ld '
8408 lt_prog_compiler_pic='-PIC'
8409 lt_prog_compiler_static='-Bstatic'
8410 ;;
8411
8412 sysv4 | sysv4.2uw2* | sysv4.3*)
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='-KPIC'
8415 lt_prog_compiler_static='-Bstatic'
8416 ;;
8417
8418 sysv4*MP*)
8419 if test -d /usr/nec ;then
8420 lt_prog_compiler_pic='-Kconform_pic'
8421 lt_prog_compiler_static='-Bstatic'
8422 fi
8423 ;;
8424
8425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-Bstatic'
8429 ;;
8430
8431 unicos*)
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_can_build_shared=no
8434 ;;
8435
8436 uts4*)
8437 lt_prog_compiler_pic='-pic'
8438 lt_prog_compiler_static='-Bstatic'
8439 ;;
8440
8441 *)
8442 lt_prog_compiler_can_build_shared=no
8443 ;;
8444 esac
8445 fi
8446
8447case $host_os in
8448 # For platforms which do not support PIC, -DPIC is meaningless:
8449 *djgpp*)
8450 lt_prog_compiler_pic=
8451 ;;
8452 *)
8453 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8454 ;;
8455esac
8456echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8457echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8458
8459
8460
8461
8462
8463
8464#
8465# Check to make sure the PIC flag actually works.
8466#
8467if test -n "$lt_prog_compiler_pic"; then
8468 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8469echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
718a6fd8 8470if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
d7040cdb
SE
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472else
718a6fd8 8473 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8474 ac_outfile=conftest.$ac_objext
8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8476 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8477 # Insert the option either (1) after the last *FLAGS variable, or
8478 # (2) before a word containing "conftest.", or (3) at the end.
8479 # Note that $ac_compile itself does not contain backslashes and begins
8480 # with a dollar sign (not a hyphen), so the echo should work correctly.
8481 # The option is referenced via a variable to avoid confusing sed.
8482 lt_compile=`echo "$ac_compile" | $SED \
8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8486 (eval echo "\"\$as_me:8486: $lt_compile\"" >&5)
d7040cdb
SE
8487 (eval "$lt_compile" 2>conftest.err)
8488 ac_status=$?
8489 cat conftest.err >&5
718a6fd8 8490 echo "$as_me:8490: \$? = $ac_status" >&5
d7040cdb
SE
8491 if (exit $ac_status) && test -s "$ac_outfile"; then
8492 # The compiler can only warn and ignore the option if not recognized
8493 # So say no if there are warnings other than the usual output.
8494 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8497 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8498 fi
8499 fi
8500 $RM conftest*
8501
8502fi
718a6fd8
SE
8503echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8504echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
d7040cdb 8505
718a6fd8 8506if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8507 case $lt_prog_compiler_pic in
8508 "" | " "*) ;;
8509 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8510 esac
8511else
8512 lt_prog_compiler_pic=
8513 lt_prog_compiler_can_build_shared=no
8514fi
8515
8516fi
8517
8518
8519
8520
8521
8522
8523#
8524# Check to make sure the static flag actually works.
8525#
8526wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8527echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8528echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
718a6fd8 8529if test "${lt_cv_prog_compiler_static_works+set}" = set; then
d7040cdb
SE
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531else
718a6fd8 8532 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8533 save_LDFLAGS="$LDFLAGS"
8534 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8535 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8536 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8537 # The linker can only warn and ignore the option if not recognized
8538 # So say no if there are warnings
8539 if test -s conftest.err; then
8540 # Append any errors to the config.log.
8541 cat conftest.err 1>&5
8542 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8544 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8545 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8546 fi
8547 else
718a6fd8 8548 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8549 fi
8550 fi
718a6fd8 8551 $RM -r conftest*
d7040cdb
SE
8552 LDFLAGS="$save_LDFLAGS"
8553
8554fi
718a6fd8
SE
8555echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8556echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
d7040cdb 8557
718a6fd8 8558if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8559 :
8560else
8561 lt_prog_compiler_static=
8562fi
8563
8564
8565
8566
8567
8568
8569
8570 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8571echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8572if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574else
8575 lt_cv_prog_compiler_c_o=no
8576 $RM -r conftest 2>/dev/null
8577 mkdir conftest
8578 cd conftest
8579 mkdir out
8580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8581
8582 lt_compiler_flag="-o out/conftest2.$ac_objext"
8583 # Insert the option either (1) after the last *FLAGS variable, or
8584 # (2) before a word containing "conftest.", or (3) at the end.
8585 # Note that $ac_compile itself does not contain backslashes and begins
8586 # with a dollar sign (not a hyphen), so the echo should work correctly.
8587 lt_compile=`echo "$ac_compile" | $SED \
8588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8590 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8591 (eval echo "\"\$as_me:8591: $lt_compile\"" >&5)
d7040cdb
SE
8592 (eval "$lt_compile" 2>out/conftest.err)
8593 ac_status=$?
8594 cat out/conftest.err >&5
718a6fd8 8595 echo "$as_me:8595: \$? = $ac_status" >&5
d7040cdb
SE
8596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8597 then
8598 # The compiler can only warn and ignore the option if not recognized
8599 # So say no if there are warnings
8600 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8603 lt_cv_prog_compiler_c_o=yes
8604 fi
8605 fi
8606 chmod u+w . 2>&5
8607 $RM conftest*
8608 # SGI C++ compiler will create directory out/ii_files/ for
8609 # template instantiation
8610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8611 $RM out/* && rmdir out
8612 cd ..
8613 $RM -r conftest
8614 $RM conftest*
8615
8616fi
8617echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8618echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8619
8620
8621
8622
8623
8624
8625 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8626echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8627if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629else
8630 lt_cv_prog_compiler_c_o=no
8631 $RM -r conftest 2>/dev/null
8632 mkdir conftest
8633 cd conftest
8634 mkdir out
8635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8636
8637 lt_compiler_flag="-o out/conftest2.$ac_objext"
8638 # Insert the option either (1) after the last *FLAGS variable, or
8639 # (2) before a word containing "conftest.", or (3) at the end.
8640 # Note that $ac_compile itself does not contain backslashes and begins
8641 # with a dollar sign (not a hyphen), so the echo should work correctly.
8642 lt_compile=`echo "$ac_compile" | $SED \
8643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8645 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8646 (eval echo "\"\$as_me:8646: $lt_compile\"" >&5)
d7040cdb
SE
8647 (eval "$lt_compile" 2>out/conftest.err)
8648 ac_status=$?
8649 cat out/conftest.err >&5
718a6fd8 8650 echo "$as_me:8650: \$? = $ac_status" >&5
d7040cdb
SE
8651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8652 then
8653 # The compiler can only warn and ignore the option if not recognized
8654 # So say no if there are warnings
8655 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8658 lt_cv_prog_compiler_c_o=yes
8659 fi
8660 fi
8661 chmod u+w . 2>&5
8662 $RM conftest*
8663 # SGI C++ compiler will create directory out/ii_files/ for
8664 # template instantiation
8665 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8666 $RM out/* && rmdir out
8667 cd ..
8668 $RM -r conftest
8669 $RM conftest*
8670
8671fi
8672echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8673echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8674
8675
8676
8677
8678hard_links="nottested"
8679if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8680 # do not overwrite the value of need_locks provided by the user
8681 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8682echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8683 hard_links=yes
8684 $RM conftest*
8685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8686 touch conftest.a
8687 ln conftest.a conftest.b 2>&5 || hard_links=no
8688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8689 echo "$as_me:$LINENO: result: $hard_links" >&5
8690echo "${ECHO_T}$hard_links" >&6
8691 if test "$hard_links" = no; then
8692 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8693echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8694 need_locks=warn
8695 fi
8696else
8697 need_locks=no
8698fi
8699
8700
8701
8702
8703
8704
8705 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8706echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8707
8708 runpath_var=
8709 allow_undefined_flag=
8710 always_export_symbols=no
8711 archive_cmds=
8712 archive_expsym_cmds=
8713 compiler_needs_object=no
8714 enable_shared_with_static_runtimes=no
8715 export_dynamic_flag_spec=
8716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8717 hardcode_automatic=no
8718 hardcode_direct=no
8719 hardcode_direct_absolute=no
8720 hardcode_libdir_flag_spec=
8721 hardcode_libdir_flag_spec_ld=
8722 hardcode_libdir_separator=
8723 hardcode_minus_L=no
8724 hardcode_shlibpath_var=unsupported
8725 inherit_rpath=no
8726 link_all_deplibs=unknown
8727 module_cmds=
8728 module_expsym_cmds=
8729 old_archive_from_new_cmds=
8730 old_archive_from_expsyms_cmds=
8731 thread_safe_flag_spec=
8732 whole_archive_flag_spec=
8733 # include_expsyms should be a list of space-separated symbols to be *always*
8734 # included in the symbol list
8735 include_expsyms=
8736 # exclude_expsyms can be an extended regexp of symbols to exclude
8737 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8738 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8739 # as well as any symbol that contains `d'.
718a6fd8 8740 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8741 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8742 # platforms (ab)use it in PIC code, but their linkers get confused if
8743 # the symbol is explicitly referenced. Since portable code cannot
8744 # rely on this symbol name, it's probably fine to never include it in
8745 # preloaded symbol tables.
718a6fd8 8746 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8747 extract_expsyms_cmds=
8748
8749 case $host_os in
718a6fd8 8750 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8751 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8752 # When not using gcc, we currently assume that we are using
8753 # Microsoft Visual C++.
8754 if test "$GCC" != yes; then
8755 with_gnu_ld=no
8756 fi
8757 ;;
8758 interix*)
8759 # we just hope/assume this is gcc and not c89 (= MSVC++)
8760 with_gnu_ld=yes
8761 ;;
8762 openbsd*)
8763 with_gnu_ld=no
8764 ;;
8765 esac
8766
8767 ld_shlibs=yes
8768 if test "$with_gnu_ld" = yes; then
8769 # If archive_cmds runs LD, not CC, wlarc should be empty
8770 wlarc='${wl}'
8771
8772 # Set some defaults for GNU ld with shared library support. These
8773 # are reset later if shared libraries are not supported. Putting them
8774 # here allows them to be overridden if necessary.
8775 runpath_var=LD_RUN_PATH
8776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8777 export_dynamic_flag_spec='${wl}--export-dynamic'
8778 # ancient GNU ld didn't support --whole-archive et. al.
8779 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8780 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8781 else
8782 whole_archive_flag_spec=
8783 fi
8784 supports_anon_versioning=no
8785 case `$LD -v 2>&1` in
8786 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8787 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8788 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8789 *\ 2.11.*) ;; # other 2.11 versions
8790 *) supports_anon_versioning=yes ;;
8791 esac
8792
8793 # See if GNU ld supports shared libraries.
8794 case $host_os in
e81819a5 8795 aix[3-9]*)
d7040cdb
SE
8796 # On AIX/PPC, the GNU linker is very broken
8797 if test "$host_cpu" != ia64; then
8798 ld_shlibs=no
8799 cat <<_LT_EOF 1>&2
8800
8801*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8802*** to be unable to reliably create shared libraries on AIX.
8803*** Therefore, libtool is disabling shared libraries support. If you
8804*** really care for shared libraries, you may want to modify your PATH
8805*** so that a non-GNU linker is found, and then restart.
8806
8807_LT_EOF
8808 fi
8809 ;;
8810
8811 amigaos*)
718a6fd8
SE
8812 case $host_cpu in
8813 powerpc)
8814 # see comment about AmigaOS4 .so support
8815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816 archive_expsym_cmds=''
8817 ;;
8818 m68k)
8819 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)'
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_minus_L=yes
8822 ;;
8823 esac
d7040cdb
SE
8824 ;;
8825
8826 beos*)
8827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8828 allow_undefined_flag=unsupported
8829 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8830 # support --undefined. This deserves some investigation. FIXME
8831 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 else
8833 ld_shlibs=no
8834 fi
8835 ;;
8836
718a6fd8 8837 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8839 # as there is no search path for DLLs.
8840 hardcode_libdir_flag_spec='-L$libdir'
8841 allow_undefined_flag=unsupported
8842 always_export_symbols=no
8843 enable_shared_with_static_runtimes=yes
8844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8845
8846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8848 # If the export-symbols file already is a .def file (1st line
8849 # is EXPORTS), use it as is; otherwise, prepend...
8850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8851 cp $export_symbols $output_objdir/$soname.def;
8852 else
8853 echo EXPORTS > $output_objdir/$soname.def;
8854 cat $export_symbols >> $output_objdir/$soname.def;
8855 fi~
8856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8857 else
8858 ld_shlibs=no
8859 fi
8860 ;;
8861
8862 interix[3-9]*)
8863 hardcode_direct=no
8864 hardcode_shlibpath_var=no
8865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866 export_dynamic_flag_spec='${wl}-E'
8867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8868 # Instead, shared libraries are loaded at an image base (0x10000000 by
8869 # default) and relocated if they conflict, which is a slow very memory
8870 # consuming and fragmenting process. To avoid this, we pick a random,
8871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8874 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'
8875 ;;
8876
8877 gnu* | linux* | tpf* | k*bsd*-gnu)
8878 tmp_diet=no
8879 if test "$host_os" = linux-dietlibc; then
8880 case $cc_basename in
8881 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8882 esac
8883 fi
8884 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8885 && test "$tmp_diet" = no
8886 then
8887 tmp_addflag=
718a6fd8 8888 tmp_sharedflag='-shared'
d7040cdb
SE
8889 case $cc_basename,$host_cpu in
8890 pgcc*) # Portland Group C compiler
8891 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'
8892 tmp_addflag=' $pic_flag'
8893 ;;
8894 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8895 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'
8896 tmp_addflag=' $pic_flag -Mnomain' ;;
8897 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8898 tmp_addflag=' -i_dynamic' ;;
8899 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8900 tmp_addflag=' -i_dynamic -nofor_main' ;;
8901 ifc* | ifort*) # Intel Fortran compiler
8902 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8903 lf95*) # Lahey Fortran 8.1
8904 whole_archive_flag_spec=
8905 tmp_sharedflag='--shared' ;;
8906 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8907 tmp_sharedflag='-qmkshrobj'
8908 tmp_addflag= ;;
d7040cdb
SE
8909 esac
8910 case `$CC -V 2>&1 | sed 5q` in
8911 *Sun\ C*) # Sun C 5.9
8912 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'
8913 compiler_needs_object=yes
8914 tmp_sharedflag='-G' ;;
8915 *Sun\ F*) # Sun Fortran 8.3
8916 tmp_sharedflag='-G' ;;
d7040cdb
SE
8917 esac
8918 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8919
8920 if test "x$supports_anon_versioning" = xyes; then
8921 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8922 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8923 echo "local: *; };" >> $output_objdir/$libname.ver~
8924 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8925 fi
718a6fd8
SE
8926
8927 case $cc_basename in
8928 xlf*)
8929 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8930 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8931 hardcode_libdir_flag_spec=
8932 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8933 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8934 if test "x$supports_anon_versioning" = xyes; then
8935 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8937 echo "local: *; };" >> $output_objdir/$libname.ver~
8938 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8939 fi
8940 ;;
8941 esac
d7040cdb
SE
8942 else
8943 ld_shlibs=no
8944 fi
8945 ;;
8946
8947 netbsd*)
8948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8949 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8950 wlarc=
8951 else
8952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8954 fi
8955 ;;
8956
8957 solaris*)
8958 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8959 ld_shlibs=no
8960 cat <<_LT_EOF 1>&2
8961
8962*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8963*** create shared libraries on Solaris systems. Therefore, libtool
8964*** is disabling shared libraries support. We urge you to upgrade GNU
8965*** binutils to release 2.9.1 or newer. Another option is to modify
8966*** your PATH or compiler configuration so that the native linker is
8967*** used, and then restart.
8968
8969_LT_EOF
8970 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8973 else
8974 ld_shlibs=no
8975 fi
8976 ;;
8977
8978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8979 case `$LD -v 2>&1` in
8980 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8981 ld_shlibs=no
8982 cat <<_LT_EOF 1>&2
8983
8984*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8985*** reliably create shared libraries on SCO systems. Therefore, libtool
8986*** is disabling shared libraries support. We urge you to upgrade GNU
8987*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8988*** your PATH or compiler configuration so that the native linker is
8989*** used, and then restart.
8990
8991_LT_EOF
8992 ;;
8993 *)
8994 # For security reasons, it is highly recommended that you always
8995 # use absolute paths for naming shared libraries, and exclude the
8996 # DT_RUNPATH tag from executables and libraries. But doing so
8997 # requires that you compile everything twice, which is a pain.
8998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9002 else
9003 ld_shlibs=no
9004 fi
9005 ;;
9006 esac
9007 ;;
9008
9009 sunos4*)
9010 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9011 wlarc=
9012 hardcode_direct=yes
9013 hardcode_shlibpath_var=no
9014 ;;
9015
9016 *)
9017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 else
9021 ld_shlibs=no
9022 fi
9023 ;;
9024 esac
9025
9026 if test "$ld_shlibs" = no; then
9027 runpath_var=
9028 hardcode_libdir_flag_spec=
9029 export_dynamic_flag_spec=
9030 whole_archive_flag_spec=
9031 fi
9032 else
9033 # PORTME fill in a description of your system's linker (not GNU ld)
9034 case $host_os in
9035 aix3*)
9036 allow_undefined_flag=unsupported
9037 always_export_symbols=yes
9038 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'
9039 # Note: this linker hardcodes the directories in LIBPATH if there
9040 # are no directories specified by -L.
9041 hardcode_minus_L=yes
9042 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9043 # Neither direct hardcoding nor static linking is supported with a
9044 # broken collect2.
9045 hardcode_direct=unsupported
9046 fi
9047 ;;
9048
e81819a5 9049 aix[4-9]*)
d7040cdb
SE
9050 if test "$host_cpu" = ia64; then
9051 # On IA64, the linker does run time linking by default, so we don't
9052 # have to do anything special.
9053 aix_use_runtimelinking=no
9054 exp_sym_flag='-Bexport'
9055 no_entry_flag=""
9056 else
9057 # If we're using GNU nm, then we don't want the "-C" option.
9058 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9059 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9060 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'
9061 else
9062 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'
9063 fi
9064 aix_use_runtimelinking=no
9065
9066 # Test if we are trying to use run time linking or normal
9067 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9068 # need to do runtime linking.
e81819a5 9069 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
9070 for ld_flag in $LDFLAGS; do
9071 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9072 aix_use_runtimelinking=yes
9073 break
9074 fi
9075 done
9076 ;;
9077 esac
9078
9079 exp_sym_flag='-bexport'
9080 no_entry_flag='-bnoentry'
9081 fi
9082
9083 # When large executables or shared objects are built, AIX ld can
9084 # have problems creating the table of contents. If linking a library
9085 # or program results in "error TOC overflow" add -mminimal-toc to
9086 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9087 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9088
9089 archive_cmds=''
9090 hardcode_direct=yes
9091 hardcode_direct_absolute=yes
9092 hardcode_libdir_separator=':'
9093 link_all_deplibs=yes
9094 file_list_spec='${wl}-f,'
9095
9096 if test "$GCC" = yes; then
9097 case $host_os in aix4.[012]|aix4.[012].*)
9098 # We only want to do this on AIX 4.2 and lower, the check
9099 # below for broken collect2 doesn't work under 4.3+
9100 collect2name=`${CC} -print-prog-name=collect2`
9101 if test -f "$collect2name" &&
9102 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9103 then
9104 # We have reworked collect2
9105 :
9106 else
9107 # We have old collect2
9108 hardcode_direct=unsupported
9109 # It fails to find uninstalled libraries when the uninstalled
9110 # path is not listed in the libpath. Setting hardcode_minus_L
9111 # to unsupported forces relinking
9112 hardcode_minus_L=yes
9113 hardcode_libdir_flag_spec='-L$libdir'
9114 hardcode_libdir_separator=
9115 fi
9116 ;;
9117 esac
9118 shared_flag='-shared'
9119 if test "$aix_use_runtimelinking" = yes; then
9120 shared_flag="$shared_flag "'${wl}-G'
9121 fi
9122 else
9123 # not using gcc
9124 if test "$host_cpu" = ia64; then
9125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9126 # chokes on -Wl,-G. The following line is correct:
9127 shared_flag='-G'
9128 else
9129 if test "$aix_use_runtimelinking" = yes; then
9130 shared_flag='${wl}-G'
9131 else
9132 shared_flag='${wl}-bM:SRE'
9133 fi
9134 fi
9135 fi
9136
718a6fd8 9137 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9138 # It seems that -bexpall does not export symbols beginning with
9139 # underscore (_), so it is better to generate a list of symbols to export.
9140 always_export_symbols=yes
9141 if test "$aix_use_runtimelinking" = yes; then
9142 # Warning - without using the other runtime loading flags (-brtl),
9143 # -berok will link without error, but may produce a broken library.
9144 allow_undefined_flag='-berok'
9145 # Determine the default libpath from the value encoded in an
9146 # empty executable.
9147 cat >conftest.$ac_ext <<_ACEOF
9148/* confdefs.h. */
9149_ACEOF
9150cat confdefs.h >>conftest.$ac_ext
9151cat >>conftest.$ac_ext <<_ACEOF
9152/* end confdefs.h. */
9153
9154int
9155main ()
9156{
9157
9158 ;
9159 return 0;
9160}
9161_ACEOF
9162rm -f conftest.$ac_objext conftest$ac_exeext
9163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164 (eval $ac_link) 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
7357c5b6
AM
9171 { ac_try='test -z "$ac_c_werror_flag"
9172 || test ! -s conftest.err'
d7040cdb
SE
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; } &&
9178 { ac_try='test -s conftest$ac_exeext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184
9185lt_aix_libpath_sed='
9186 /Import File Strings/,/^$/ {
9187 /^0/ {
9188 s/^0 *\(.*\)$/\1/
9189 p
9190 }
9191 }'
9192aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9193# Check for a 64-bit object if we didn't find anything.
9194if test -z "$aix_libpath"; then
9195 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9196fi
9197else
9198 echo "$as_me: failed program was:" >&5
9199sed 's/^/| /' conftest.$ac_ext >&5
9200
9201fi
9202rm -f conftest.err conftest.$ac_objext \
9203 conftest$ac_exeext conftest.$ac_ext
9204if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9205
9206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9207 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"
9208 else
9209 if test "$host_cpu" = ia64; then
9210 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9211 allow_undefined_flag="-z nodefs"
9212 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"
9213 else
9214 # Determine the default libpath from the value encoded in an
9215 # empty executable.
9216 cat >conftest.$ac_ext <<_ACEOF
9217/* confdefs.h. */
9218_ACEOF
9219cat confdefs.h >>conftest.$ac_ext
9220cat >>conftest.$ac_ext <<_ACEOF
9221/* end confdefs.h. */
9222
9223int
9224main ()
9225{
9226
9227 ;
9228 return 0;
9229}
9230_ACEOF
9231rm -f conftest.$ac_objext conftest$ac_exeext
9232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
7357c5b6
AM
9240 { ac_try='test -z "$ac_c_werror_flag"
9241 || test ! -s conftest.err'
d7040cdb
SE
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 (eval $ac_try) 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; } &&
9247 { ac_try='test -s conftest$ac_exeext'
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249 (eval $ac_try) 2>&5
9250 ac_status=$?
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; }; then
9253
9254lt_aix_libpath_sed='
9255 /Import File Strings/,/^$/ {
9256 /^0/ {
9257 s/^0 *\(.*\)$/\1/
9258 p
9259 }
9260 }'
9261aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9262# Check for a 64-bit object if we didn't find anything.
9263if test -z "$aix_libpath"; then
9264 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9265fi
9266else
9267 echo "$as_me: failed program was:" >&5
9268sed 's/^/| /' conftest.$ac_ext >&5
9269
9270fi
9271rm -f conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9274
9275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9276 # Warning - without using the other run time loading flags,
9277 # -berok will link without error, but may produce a broken library.
9278 no_undefined_flag=' ${wl}-bernotok'
9279 allow_undefined_flag=' ${wl}-berok'
9280 # Exported symbols can be pulled into shared objects from archives
9281 whole_archive_flag_spec='$convenience'
9282 archive_cmds_need_lc=yes
9283 # This is similar to how AIX traditionally builds its shared libraries.
9284 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'
9285 fi
9286 fi
9287 ;;
9288
9289 amigaos*)
718a6fd8
SE
9290 case $host_cpu in
9291 powerpc)
9292 # see comment about AmigaOS4 .so support
9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294 archive_expsym_cmds=''
9295 ;;
9296 m68k)
9297 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)'
9298 hardcode_libdir_flag_spec='-L$libdir'
9299 hardcode_minus_L=yes
9300 ;;
9301 esac
d7040cdb
SE
9302 ;;
9303
9304 bsdi[45]*)
9305 export_dynamic_flag_spec=-rdynamic
9306 ;;
9307
718a6fd8 9308 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9309 # When not using gcc, we currently assume that we are using
9310 # Microsoft Visual C++.
9311 # hardcode_libdir_flag_spec is actually meaningless, as there is
9312 # no search path for DLLs.
9313 hardcode_libdir_flag_spec=' '
9314 allow_undefined_flag=unsupported
9315 # Tell ltmain to make .lib files, not .a files.
9316 libext=lib
9317 # Tell ltmain to make .dll files, not .so files.
9318 shrext_cmds=".dll"
9319 # FIXME: Setting linknames here is a bad hack.
9320 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9321 # The linker will automatically build a .lib file if we build a DLL.
9322 old_archive_from_new_cmds='true'
9323 # FIXME: Should let the user specify the lib program.
9324 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9325 fix_srcfile_path='`cygpath -w "$srcfile"`'
9326 enable_shared_with_static_runtimes=yes
9327 ;;
9328
9329 darwin* | rhapsody*)
d7040cdb 9330
718a6fd8
SE
9331
9332 archive_cmds_need_lc=no
9333 hardcode_direct=no
9334 hardcode_automatic=yes
9335 hardcode_shlibpath_var=unsupported
9336 whole_archive_flag_spec=''
9337 link_all_deplibs=yes
9338 allow_undefined_flag="$_lt_dar_allow_undefined"
9339 case $cc_basename in
9340 ifort*) _lt_dar_can_shared=yes ;;
9341 *) _lt_dar_can_shared=$GCC ;;
9342 esac
9343 if test "$_lt_dar_can_shared" = "yes"; then
9344 output_verbose_link_cmd=echo
9345 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9346 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9347 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9348 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9349
9350 else
9351 ld_shlibs=no
9352 fi
9353
d7040cdb
SE
9354 ;;
9355
9356 dgux*)
9357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_libdir_flag_spec='-L$libdir'
9359 hardcode_shlibpath_var=no
9360 ;;
9361
9362 freebsd1*)
9363 ld_shlibs=no
9364 ;;
9365
9366 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9367 # support. Future versions do this automatically, but an explicit c++rt0.o
9368 # does not break anything, and helps significantly (at the cost of a little
9369 # extra space).
9370 freebsd2.2*)
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9372 hardcode_libdir_flag_spec='-R$libdir'
9373 hardcode_direct=yes
9374 hardcode_shlibpath_var=no
9375 ;;
9376
9377 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9378 freebsd2*)
9379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_direct=yes
9381 hardcode_minus_L=yes
9382 hardcode_shlibpath_var=no
9383 ;;
9384
9385 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9386 freebsd* | dragonfly*)
9387 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9388 hardcode_libdir_flag_spec='-R$libdir'
9389 hardcode_direct=yes
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 hpux9*)
9394 if test "$GCC" = yes; then
9395 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'
9396 else
9397 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'
9398 fi
9399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9400 hardcode_libdir_separator=:
9401 hardcode_direct=yes
9402
9403 # hardcode_minus_L: Not really in the search PATH,
9404 # but as the default location of the library.
9405 hardcode_minus_L=yes
9406 export_dynamic_flag_spec='${wl}-E'
9407 ;;
9408
9409 hpux10*)
9410 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9411 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9412 else
9413 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9414 fi
9415 if test "$with_gnu_ld" = no; then
9416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9417 hardcode_libdir_flag_spec_ld='+b $libdir'
9418 hardcode_libdir_separator=:
9419 hardcode_direct=yes
9420 hardcode_direct_absolute=yes
9421 export_dynamic_flag_spec='${wl}-E'
9422 # hardcode_minus_L: Not really in the search PATH,
9423 # but as the default location of the library.
9424 hardcode_minus_L=yes
9425 fi
9426 ;;
9427
9428 hpux11*)
9429 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9430 case $host_cpu in
9431 hppa*64*)
9432 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 ;;
9434 ia64*)
718a6fd8 9435 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9436 ;;
9437 *)
9438 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9439 ;;
9440 esac
9441 else
9442 case $host_cpu in
9443 hppa*64*)
9444 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 ;;
9446 ia64*)
9447 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9448 ;;
9449 *)
9450 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9451 ;;
9452 esac
9453 fi
9454 if test "$with_gnu_ld" = no; then
9455 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9456 hardcode_libdir_separator=:
9457
9458 case $host_cpu in
9459 hppa*64*|ia64*)
9460 hardcode_direct=no
9461 hardcode_shlibpath_var=no
9462 ;;
9463 *)
9464 hardcode_direct=yes
9465 hardcode_direct_absolute=yes
9466 export_dynamic_flag_spec='${wl}-E'
9467
9468 # hardcode_minus_L: Not really in the search PATH,
9469 # but as the default location of the library.
9470 hardcode_minus_L=yes
9471 ;;
9472 esac
9473 fi
9474 ;;
9475
9476 irix5* | irix6* | nonstopux*)
9477 if test "$GCC" = yes; then
9478 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'
9479 # Try to use the -exported_symbol ld option, if it does not
9480 # work, assume that -exports_file does not work either and
9481 # implicitly export all symbols.
9482 save_LDFLAGS="$LDFLAGS"
9483 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9484 cat >conftest.$ac_ext <<_ACEOF
9485int foo(void) {}
9486_ACEOF
9487rm -f conftest.$ac_objext conftest$ac_exeext
9488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } &&
7357c5b6
AM
9496 { ac_try='test -z "$ac_c_werror_flag"
9497 || test ! -s conftest.err'
d7040cdb
SE
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 (eval $ac_try) 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; } &&
9503 { ac_try='test -s conftest$ac_exeext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 (eval $ac_try) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 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'
9510
9511else
9512 echo "$as_me: failed program was:" >&5
9513sed 's/^/| /' conftest.$ac_ext >&5
9514
9515fi
9516rm -f conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 LDFLAGS="$save_LDFLAGS"
9519 else
9520 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'
9521 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'
9522 fi
9523 archive_cmds_need_lc='no'
9524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525 hardcode_libdir_separator=:
9526 inherit_rpath=yes
9527 link_all_deplibs=yes
9528 ;;
9529
9530 netbsd*)
9531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9533 else
9534 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9535 fi
9536 hardcode_libdir_flag_spec='-R$libdir'
9537 hardcode_direct=yes
9538 hardcode_shlibpath_var=no
9539 ;;
9540
9541 newsos6)
9542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9543 hardcode_direct=yes
9544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545 hardcode_libdir_separator=:
9546 hardcode_shlibpath_var=no
9547 ;;
9548
9549 *nto* | *qnx*)
9550 ;;
9551
9552 openbsd*)
718a6fd8
SE
9553 if test -f /usr/libexec/ld.so; then
9554 hardcode_direct=yes
9555 hardcode_shlibpath_var=no
9556 hardcode_direct_absolute=yes
9557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9559 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9561 export_dynamic_flag_spec='${wl}-E'
9562 else
9563 case $host_os in
9564 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9566 hardcode_libdir_flag_spec='-R$libdir'
9567 ;;
9568 *)
9569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9571 ;;
9572 esac
9573 fi
9574 else
9575 ld_shlibs=no
d7040cdb
SE
9576 fi
9577 ;;
9578
9579 os2*)
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 hardcode_minus_L=yes
9582 allow_undefined_flag=unsupported
9583 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'
9584 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9585 ;;
9586
9587 osf3*)
9588 if test "$GCC" = yes; then
9589 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9590 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'
9591 else
9592 allow_undefined_flag=' -expect_unresolved \*'
9593 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'
9594 fi
9595 archive_cmds_need_lc='no'
9596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9597 hardcode_libdir_separator=:
9598 ;;
9599
9600 osf4* | osf5*) # as osf3* with the addition of -msym flag
9601 if test "$GCC" = yes; then
9602 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9603 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'
9604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9605 else
9606 allow_undefined_flag=' -expect_unresolved \*'
9607 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'
9608 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~
9609 $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'
9610
9611 # Both c and cxx compiler support -rpath directly
9612 hardcode_libdir_flag_spec='-rpath $libdir'
9613 fi
9614 archive_cmds_need_lc='no'
9615 hardcode_libdir_separator=:
9616 ;;
9617
9618 solaris*)
9619 no_undefined_flag=' -z defs'
9620 if test "$GCC" = yes; then
9621 wlarc='${wl}'
9622 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9624 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9625 else
9626 case `$CC -V 2>&1` in
9627 *"Compilers 5.0"*)
9628 wlarc=''
9629 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9631 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9632 ;;
9633 *)
9634 wlarc='${wl}'
9635 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9637 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9638 ;;
9639 esac
9640 fi
9641 hardcode_libdir_flag_spec='-R$libdir'
9642 hardcode_shlibpath_var=no
9643 case $host_os in
9644 solaris2.[0-5] | solaris2.[0-5].*) ;;
9645 *)
9646 # The compiler driver will combine and reorder linker options,
9647 # but understands `-z linker_flag'. GCC discards it without `$wl',
9648 # but is careful enough not to reorder.
9649 # Supported since Solaris 2.6 (maybe 2.5.1?)
9650 if test "$GCC" = yes; then
9651 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9652 else
9653 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9654 fi
9655 ;;
9656 esac
9657 link_all_deplibs=yes
9658 ;;
9659
9660 sunos4*)
9661 if test "x$host_vendor" = xsequent; then
9662 # Use $CC to link under sequent, because it throws in some extra .o
9663 # files that make .init and .fini sections work.
9664 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9665 else
9666 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9667 fi
9668 hardcode_libdir_flag_spec='-L$libdir'
9669 hardcode_direct=yes
9670 hardcode_minus_L=yes
9671 hardcode_shlibpath_var=no
9672 ;;
9673
9674 sysv4)
9675 case $host_vendor in
9676 sni)
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_direct=yes # is this really true???
9679 ;;
9680 siemens)
9681 ## LD is ld it makes a PLAMLIB
9682 ## CC just makes a GrossModule.
9683 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9684 reload_cmds='$CC -r -o $output$reload_objs'
9685 hardcode_direct=no
9686 ;;
9687 motorola)
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9690 ;;
9691 esac
9692 runpath_var='LD_RUN_PATH'
9693 hardcode_shlibpath_var=no
9694 ;;
9695
9696 sysv4.3*)
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_shlibpath_var=no
9699 export_dynamic_flag_spec='-Bexport'
9700 ;;
9701
9702 sysv4*MP*)
9703 if test -d /usr/nec; then
9704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705 hardcode_shlibpath_var=no
9706 runpath_var=LD_RUN_PATH
9707 hardcode_runpath_var=yes
9708 ld_shlibs=yes
9709 fi
9710 ;;
9711
9712 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9713 no_undefined_flag='${wl}-z,text'
9714 archive_cmds_need_lc=no
9715 hardcode_shlibpath_var=no
9716 runpath_var='LD_RUN_PATH'
9717
9718 if test "$GCC" = yes; then
9719 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 else
9722 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 fi
9725 ;;
9726
9727 sysv5* | sco3.2v5* | sco5v6*)
9728 # Note: We can NOT use -z defs as we might desire, because we do not
9729 # link with -lc, and that would cause any symbols used from libc to
9730 # always be unresolved, which means just about no library would
9731 # ever link correctly. If we're not using GNU ld we use -z text
9732 # though, which does catch some bad symbols but isn't as heavy-handed
9733 # as -z defs.
9734 no_undefined_flag='${wl}-z,text'
9735 allow_undefined_flag='${wl}-z,nodefs'
9736 archive_cmds_need_lc=no
9737 hardcode_shlibpath_var=no
9738 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9739 hardcode_libdir_separator=':'
9740 link_all_deplibs=yes
9741 export_dynamic_flag_spec='${wl}-Bexport'
9742 runpath_var='LD_RUN_PATH'
9743
9744 if test "$GCC" = yes; then
9745 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 else
9748 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9749 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 fi
9751 ;;
9752
9753 uts4*)
9754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_shlibpath_var=no
9757 ;;
9758
9759 *)
9760 ld_shlibs=no
9761 ;;
9762 esac
9763
9764 if test x$host_vendor = xsni; then
9765 case $host in
9766 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9767 export_dynamic_flag_spec='${wl}-Blargedynsym'
9768 ;;
9769 esac
9770 fi
9771 fi
9772
9773echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9774echo "${ECHO_T}$ld_shlibs" >&6
9775test "$ld_shlibs" = no && can_build_shared=no
9776
9777with_gnu_ld=$with_gnu_ld
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793#
9794# Do we need to explicitly link libc?
9795#
9796case "x$archive_cmds_need_lc" in
9797x|xyes)
9798 # Assume -lc should be added
9799 archive_cmds_need_lc=yes
9800
9801 if test "$enable_shared" = yes && test "$GCC" = yes; then
9802 case $archive_cmds in
9803 *'~'*)
9804 # FIXME: we may have to deal with multi-command sequences.
9805 ;;
9806 '$CC '*)
9807 # Test whether the compiler implicitly links with -lc since on some
9808 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9809 # to ld, don't add -lc before -lgcc.
9810 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9811echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9812 $RM conftest*
9813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9814
9815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816 (eval $ac_compile) 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } 2>conftest.err; then
9820 soname=conftest
9821 lib=conftest
9822 libobjs=conftest.$ac_objext
9823 deplibs=
9824 wl=$lt_prog_compiler_wl
9825 pic_flag=$lt_prog_compiler_pic
9826 compiler_flags=-v
9827 linker_flags=-v
9828 verstring=
9829 output_objdir=.
9830 libname=conftest
9831 lt_save_allow_undefined_flag=$allow_undefined_flag
9832 allow_undefined_flag=
9833 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9834 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }
9838 then
9839 archive_cmds_need_lc=no
9840 else
9841 archive_cmds_need_lc=yes
9842 fi
9843 allow_undefined_flag=$lt_save_allow_undefined_flag
9844 else
9845 cat conftest.err 1>&5
9846 fi
9847 $RM conftest*
9848 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9849echo "${ECHO_T}$archive_cmds_need_lc" >&6
9850 ;;
9851 esac
9852 fi
9853 ;;
9854esac
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10013echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
718a6fd8
SE
10014
10015if test "$GCC" = yes; then
d7040cdb
SE
10016 case $host_os in
10017 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10018 *) lt_awk_arg="/^libraries:/" ;;
10019 esac
10020 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10021 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10022 # if the path contains ";" then we assume it to be the separator
10023 # otherwise default to the standard path separator (i.e. ":") - it is
10024 # assumed that no part of a normal pathname contains ";" but that should
10025 # okay in the real world where ";" in dirpaths is itself problematic.
10026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10027 else
10028 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10029 fi
10030 # Ok, now we have the path, separated by spaces, we can step through it
10031 # and add multilib dir if necessary.
10032 lt_tmp_lt_search_path_spec=
10033 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10034 for lt_sys_path in $lt_search_path_spec; do
10035 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10037 else
10038 test -d "$lt_sys_path" && \
10039 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10040 fi
10041 done
10042 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10043BEGIN {RS=" "; FS="/|\n";} {
10044 lt_foo="";
10045 lt_count=0;
10046 for (lt_i = NF; lt_i > 0; lt_i--) {
10047 if ($lt_i != "" && $lt_i != ".") {
10048 if ($lt_i == "..") {
10049 lt_count++;
10050 } else {
10051 if (lt_count == 0) {
10052 lt_foo="/" $lt_i lt_foo;
10053 } else {
10054 lt_count--;
10055 }
10056 }
10057 }
10058 }
10059 if (lt_foo != "") { lt_freq[lt_foo]++; }
10060 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10061}'`
10062 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10063else
10064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10065fi
10066library_names_spec=
10067libname_spec='lib$name'
10068soname_spec=
10069shrext_cmds=".so"
10070postinstall_cmds=
10071postuninstall_cmds=
10072finish_cmds=
10073finish_eval=
10074shlibpath_var=
10075shlibpath_overrides_runpath=unknown
10076version_type=none
10077dynamic_linker="$host_os ld.so"
10078sys_lib_dlsearch_path_spec="/lib /usr/lib"
10079need_lib_prefix=unknown
10080hardcode_into_libs=no
10081
10082# when you set need_version to no, make sure it does not cause -set_version
10083# flags to be left without arguments
10084need_version=unknown
10085
10086case $host_os in
10087aix3*)
10088 version_type=linux
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10090 shlibpath_var=LIBPATH
10091
10092 # AIX 3 has no versioning support, so we append a major version to the name.
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 ;;
10095
e81819a5 10096aix[4-9]*)
d7040cdb
SE
10097 version_type=linux
10098 need_lib_prefix=no
10099 need_version=no
10100 hardcode_into_libs=yes
10101 if test "$host_cpu" = ia64; then
10102 # AIX 5 supports IA64
10103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 else
10106 # With GCC up to 2.95.x, collect2 would create an import file
10107 # for dependence libraries. The import file would start with
10108 # the line `#! .'. This would cause the generated library to
10109 # depend on `.', always an invalid library. This was fixed in
10110 # development snapshots of GCC prior to 3.0.
10111 case $host_os in
10112 aix4 | aix4.[01] | aix4.[01].*)
10113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10114 echo ' yes '
10115 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10116 :
10117 else
10118 can_build_shared=no
10119 fi
10120 ;;
10121 esac
10122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10123 # soname into executable. Probably we can add versioning support to
10124 # collect2, so additional links can be useful in future.
10125 if test "$aix_use_runtimelinking" = yes; then
10126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10127 # instead of lib<name>.a to let people know that these are not
10128 # typical AIX shared libraries.
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 else
10131 # We preserve .a as extension for shared libraries through AIX4.2
10132 # and later when we are not doing run time linking.
10133 library_names_spec='${libname}${release}.a $libname.a'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 fi
10136 shlibpath_var=LIBPATH
10137 fi
10138 ;;
10139
10140amigaos*)
718a6fd8
SE
10141 case $host_cpu in
10142 powerpc)
10143 # Since July 2007 AmigaOS4 officially supports .so libraries.
10144 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 ;;
10147 m68k)
d7040cdb
SE
10148 library_names_spec='$libname.ixlibrary $libname.a'
10149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10150 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'
718a6fd8
SE
10151 ;;
10152 esac
d7040cdb
SE
10153 ;;
10154
10155beos*)
10156 library_names_spec='${libname}${shared_ext}'
10157 dynamic_linker="$host_os ld.so"
10158 shlibpath_var=LIBRARY_PATH
10159 ;;
10160
10161bsdi[45]*)
10162 version_type=linux
10163 need_version=no
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10169 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10170 # the default ld.so.conf also contains /usr/contrib/lib and
10171 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10172 # libtool to hard-code these into programs
10173 ;;
10174
718a6fd8 10175cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10176 version_type=windows
10177 shrext_cmds=".dll"
10178 need_version=no
10179 need_lib_prefix=no
10180
718a6fd8
SE
10181 case $GCC,$host_os in
10182 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10183 library_names_spec='$libname.dll.a'
10184 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10185 postinstall_cmds='base_file=`basename \${file}`~
10186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10187 dldir=$destdir/`dirname \$dlpath`~
10188 test -d \$dldir || mkdir -p \$dldir~
10189 $install_prog $dir/$dlname \$dldir/$dlname~
10190 chmod a+x \$dldir/$dlname~
10191 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10192 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10193 fi'
10194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10195 dlpath=$dir/\$dldll~
10196 $RM \$dlpath'
10197 shlibpath_overrides_runpath=yes
10198
10199 case $host_os in
10200 cygwin*)
10201 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10202 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10204 ;;
718a6fd8 10205 mingw* | cegcc*)
d7040cdb
SE
10206 # MinGW DLLs use traditional 'lib' prefix
10207 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10208 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10209 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10210 # It is most probably a Windows format PATH printed by
10211 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10212 # path with ; separators, and with drive letters. We can handle the
10213 # drive letters (cygwin fileutils understands them), so leave them,
10214 # especially as we might pass files found there to a mingw objdump,
10215 # which wouldn't understand a cygwinified path. Ahh.
10216 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10217 else
10218 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10219 fi
10220 ;;
10221 pw32*)
10222 # pw32 DLLs use 'pw' prefix rather than 'lib'
10223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10224 ;;
10225 esac
10226 ;;
10227
10228 *)
10229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10230 ;;
10231 esac
10232 dynamic_linker='Win32 ld.exe'
10233 # FIXME: first we should search . and the directory the executable is in
10234 shlibpath_var=PATH
10235 ;;
10236
10237darwin* | rhapsody*)
10238 dynamic_linker="$host_os dyld"
10239 version_type=darwin
10240 need_lib_prefix=no
10241 need_version=no
10242 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10243 soname_spec='${libname}${release}${major}$shared_ext'
10244 shlibpath_overrides_runpath=yes
10245 shlibpath_var=DYLD_LIBRARY_PATH
10246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10247
10248 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10250 ;;
10251
10252dgux*)
10253 version_type=linux
10254 need_lib_prefix=no
10255 need_version=no
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 ;;
10260
10261freebsd1*)
10262 dynamic_linker=no
10263 ;;
10264
10265freebsd* | dragonfly*)
10266 # DragonFly does not have aout. When/if they implement a new
10267 # versioning mechanism, adjust this.
10268 if test -x /usr/bin/objformat; then
10269 objformat=`/usr/bin/objformat`
10270 else
10271 case $host_os in
10272 freebsd[123]*) objformat=aout ;;
10273 *) objformat=elf ;;
10274 esac
10275 fi
10276 version_type=freebsd-$objformat
10277 case $version_type in
10278 freebsd-elf*)
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10280 need_version=no
10281 need_lib_prefix=no
10282 ;;
10283 freebsd-*)
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10285 need_version=yes
10286 ;;
10287 esac
10288 shlibpath_var=LD_LIBRARY_PATH
10289 case $host_os in
10290 freebsd2*)
10291 shlibpath_overrides_runpath=yes
10292 ;;
10293 freebsd3.[01]* | freebsdelf3.[01]*)
10294 shlibpath_overrides_runpath=yes
10295 hardcode_into_libs=yes
10296 ;;
10297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10299 shlibpath_overrides_runpath=no
10300 hardcode_into_libs=yes
10301 ;;
10302 *) # from 4.6 on, and DragonFly
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10305 ;;
10306 esac
10307 ;;
10308
10309gnu*)
10310 version_type=linux
10311 need_lib_prefix=no
10312 need_version=no
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 hardcode_into_libs=yes
10317 ;;
10318
10319hpux9* | hpux10* | hpux11*)
10320 # Give a soname corresponding to the major version so that dld.sl refuses to
10321 # link against other versions.
10322 version_type=sunos
10323 need_lib_prefix=no
10324 need_version=no
10325 case $host_cpu in
10326 ia64*)
10327 shrext_cmds='.so'
10328 hardcode_into_libs=yes
10329 dynamic_linker="$host_os dld.so"
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 if test "X$HPUX_IA64_MODE" = X32; then
10335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10336 else
10337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10338 fi
10339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10340 ;;
10341 hppa*64*)
10342 shrext_cmds='.sl'
10343 hardcode_into_libs=yes
10344 dynamic_linker="$host_os dld.sl"
10345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10351 ;;
10352 *)
10353 shrext_cmds='.sl'
10354 dynamic_linker="$host_os dld.sl"
10355 shlibpath_var=SHLIB_PATH
10356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 ;;
10360 esac
10361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10362 postinstall_cmds='chmod 555 $lib'
10363 ;;
10364
10365interix[3-9]*)
10366 version_type=linux
10367 need_lib_prefix=no
10368 need_version=no
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=no
10374 hardcode_into_libs=yes
10375 ;;
10376
10377irix5* | irix6* | nonstopux*)
10378 case $host_os in
10379 nonstopux*) version_type=nonstopux ;;
10380 *)
10381 if test "$lt_cv_prog_gnu_ld" = yes; then
10382 version_type=linux
10383 else
10384 version_type=irix
10385 fi ;;
10386 esac
10387 need_lib_prefix=no
10388 need_version=no
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10391 case $host_os in
10392 irix5* | nonstopux*)
10393 libsuff= shlibsuff=
10394 ;;
10395 *)
10396 case $LD in # libtool.m4 will add one of these switches to LD
10397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10398 libsuff= shlibsuff= libmagic=32-bit;;
10399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10400 libsuff=32 shlibsuff=N32 libmagic=N32;;
10401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10403 *) libsuff= shlibsuff= libmagic=never-match;;
10404 esac
10405 ;;
10406 esac
10407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10408 shlibpath_overrides_runpath=no
10409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10411 hardcode_into_libs=yes
10412 ;;
10413
10414# No shared lib support for Linux oldld, aout, or coff.
10415linux*oldld* | linux*aout* | linux*coff*)
10416 dynamic_linker=no
10417 ;;
10418
10419# This must be Linux ELF.
10420linux* | k*bsd*-gnu)
10421 version_type=linux
10422 need_lib_prefix=no
10423 need_version=no
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=no
10429 # Some binutils ld are patched to set DT_RUNPATH
10430 save_LDFLAGS=$LDFLAGS
10431 save_libdir=$libdir
10432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10434 cat >conftest.$ac_ext <<_ACEOF
10435/* confdefs.h. */
10436_ACEOF
10437cat confdefs.h >>conftest.$ac_ext
10438cat >>conftest.$ac_ext <<_ACEOF
10439/* end confdefs.h. */
10440
10441int
10442main ()
10443{
10444
10445 ;
10446 return 0;
10447}
10448_ACEOF
10449rm -f conftest.$ac_objext conftest$ac_exeext
10450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10451 (eval $ac_link) 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } &&
7357c5b6
AM
10458 { ac_try='test -z "$ac_c_werror_flag"
10459 || test ! -s conftest.err'
d7040cdb
SE
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; } &&
10465 { ac_try='test -s conftest$ac_exeext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
718a6fd8 10471 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
d7040cdb
SE
10472 shlibpath_overrides_runpath=yes
10473fi
10474
10475else
10476 echo "$as_me: failed program was:" >&5
10477sed 's/^/| /' conftest.$ac_ext >&5
10478
10479fi
10480rm -f conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 LDFLAGS=$save_LDFLAGS
10483 libdir=$save_libdir
10484
10485 # This implies no fast_install, which is unacceptable.
10486 # Some rework will be needed to allow for fast_install
10487 # before this can be enabled.
10488 hardcode_into_libs=yes
10489
10490 # Append ld.so.conf contents to the search path
10491 if test -f /etc/ld.so.conf; then
718a6fd8 10492 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d7040cdb
SE
10493 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10494 fi
10495
10496 # We used to test for /lib/ld.so.1 and disable shared libraries on
10497 # powerpc, because MkLinux only supported shared libraries with the
10498 # GNU dynamic linker. Since this was broken with cross compilers,
10499 # most powerpc-linux boxes support dynamic linking these days and
10500 # people can always --disable-shared, the test was removed, and we
10501 # assume the GNU/Linux dynamic linker is in use.
10502 dynamic_linker='GNU/Linux ld.so'
10503 ;;
10504
10505netbsd*)
10506 version_type=sunos
10507 need_lib_prefix=no
10508 need_version=no
10509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10512 dynamic_linker='NetBSD (a.out) ld.so'
10513 else
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10515 soname_spec='${libname}${release}${shared_ext}$major'
10516 dynamic_linker='NetBSD ld.elf_so'
10517 fi
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=yes
10520 hardcode_into_libs=yes
10521 ;;
10522
10523newsos6)
10524 version_type=linux
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 shlibpath_var=LD_LIBRARY_PATH
10527 shlibpath_overrides_runpath=yes
10528 ;;
10529
10530*nto* | *qnx*)
10531 version_type=qnx
10532 need_lib_prefix=no
10533 need_version=no
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 soname_spec='${libname}${release}${shared_ext}$major'
10536 shlibpath_var=LD_LIBRARY_PATH
10537 shlibpath_overrides_runpath=no
10538 hardcode_into_libs=yes
10539 dynamic_linker='ldqnx.so'
10540 ;;
10541
10542openbsd*)
10543 version_type=sunos
10544 sys_lib_dlsearch_path_spec="/usr/lib"
10545 need_lib_prefix=no
10546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10547 case $host_os in
10548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10549 *) need_version=no ;;
10550 esac
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10555 case $host_os in
10556 openbsd2.[89] | openbsd2.[89].*)
10557 shlibpath_overrides_runpath=no
10558 ;;
10559 *)
10560 shlibpath_overrides_runpath=yes
10561 ;;
10562 esac
10563 else
10564 shlibpath_overrides_runpath=yes
10565 fi
10566 ;;
10567
10568os2*)
10569 libname_spec='$name'
10570 shrext_cmds=".dll"
10571 need_lib_prefix=no
10572 library_names_spec='$libname${shared_ext} $libname.a'
10573 dynamic_linker='OS/2 ld.exe'
10574 shlibpath_var=LIBPATH
10575 ;;
10576
10577osf3* | osf4* | osf5*)
10578 version_type=osf
10579 need_lib_prefix=no
10580 need_version=no
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10586 ;;
10587
10588rdos*)
10589 dynamic_linker=no
10590 ;;
10591
10592solaris*)
10593 version_type=linux
10594 need_lib_prefix=no
10595 need_version=no
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 shlibpath_overrides_runpath=yes
10600 hardcode_into_libs=yes
10601 # ldd complains unless libraries are executable
10602 postinstall_cmds='chmod +x $lib'
10603 ;;
10604
10605sunos4*)
10606 version_type=sunos
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 shlibpath_overrides_runpath=yes
10611 if test "$with_gnu_ld" = yes; then
10612 need_lib_prefix=no
10613 fi
10614 need_version=yes
10615 ;;
10616
10617sysv4 | sysv4.3*)
10618 version_type=linux
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 case $host_vendor in
10623 sni)
10624 shlibpath_overrides_runpath=no
10625 need_lib_prefix=no
10626 runpath_var=LD_RUN_PATH
10627 ;;
10628 siemens)
10629 need_lib_prefix=no
10630 ;;
10631 motorola)
10632 need_lib_prefix=no
10633 need_version=no
10634 shlibpath_overrides_runpath=no
10635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10636 ;;
10637 esac
10638 ;;
10639
10640sysv4*MP*)
10641 if test -d /usr/nec ;then
10642 version_type=linux
10643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10644 soname_spec='$libname${shared_ext}.$major'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 fi
10647 ;;
10648
10649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10650 version_type=freebsd-elf
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=yes
10657 hardcode_into_libs=yes
10658 if test "$with_gnu_ld" = yes; then
10659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10660 else
10661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10662 case $host_os in
10663 sco3.2v5*)
10664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10665 ;;
10666 esac
10667 fi
10668 sys_lib_dlsearch_path_spec='/usr/lib'
10669 ;;
10670
10671tpf*)
10672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10673 version_type=linux
10674 need_lib_prefix=no
10675 need_version=no
718a6fd8 10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10677 shlibpath_var=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath=no
10679 hardcode_into_libs=yes
10680 ;;
10681
10682uts4*)
10683 version_type=linux
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 ;;
10688
10689*)
10690 dynamic_linker=no
10691 ;;
10692esac
10693echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10694echo "${ECHO_T}$dynamic_linker" >&6
10695test "$dynamic_linker" = no && can_build_shared=no
10696
10697variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10698if test "$GCC" = yes; then
10699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10700fi
10701
718a6fd8
SE
10702if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10703 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10704fi
10705if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10706 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10707fi
10708
d7040cdb
SE
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10796echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10797hardcode_action=
10798if test -n "$hardcode_libdir_flag_spec" ||
10799 test -n "$runpath_var" ||
10800 test "X$hardcode_automatic" = "Xyes" ; then
10801
10802 # We can hardcode non-existent directories.
10803 if test "$hardcode_direct" != no &&
10804 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10805 # have to relink, otherwise we might link with an installed library
10806 # when we should be linking with a yet-to-be-installed one
10807 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10808 test "$hardcode_minus_L" != no; then
10809 # Linking always hardcodes the temporary library directory.
10810 hardcode_action=relink
10811 else
10812 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10813 hardcode_action=immediate
10814 fi
10815else
10816 # We cannot hardcode anything, or else we can only hardcode existing
10817 # directories.
10818 hardcode_action=unsupported
10819fi
10820echo "$as_me:$LINENO: result: $hardcode_action" >&5
10821echo "${ECHO_T}$hardcode_action" >&6
10822
10823if test "$hardcode_action" = relink ||
10824 test "$inherit_rpath" = yes; then
10825 # Fast installation is not supported
10826 enable_fast_install=no
10827elif test "$shlibpath_overrides_runpath" = yes ||
10828 test "$enable_shared" = no; then
10829 # Fast installation is not necessary
10830 enable_fast_install=needless
10831fi
10832
10833
10834
10835
10836
10837
10838 if test "x$enable_dlopen" != xyes; then
10839 enable_dlopen=unknown
10840 enable_dlopen_self=unknown
10841 enable_dlopen_self_static=unknown
10842else
10843 lt_cv_dlopen=no
10844 lt_cv_dlopen_libs=
10845
10846 case $host_os in
10847 beos*)
10848 lt_cv_dlopen="load_add_on"
10849 lt_cv_dlopen_libs=
10850 lt_cv_dlopen_self=yes
10851 ;;
10852
718a6fd8 10853 mingw* | pw32* | cegcc*)
d7040cdb
SE
10854 lt_cv_dlopen="LoadLibrary"
10855 lt_cv_dlopen_libs=
10856 ;;
10857
10858 cygwin*)
10859 lt_cv_dlopen="dlopen"
10860 lt_cv_dlopen_libs=
10861 ;;
10862
10863 darwin*)
10864 # if libdl is installed we need to link against it
10865 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10866echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10867if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869else
10870 ac_check_lib_save_LIBS=$LIBS
10871LIBS="-ldl $LIBS"
10872cat >conftest.$ac_ext <<_ACEOF
10873/* confdefs.h. */
10874_ACEOF
10875cat confdefs.h >>conftest.$ac_ext
10876cat >>conftest.$ac_ext <<_ACEOF
10877/* end confdefs.h. */
10878
10879/* Override any gcc2 internal prototype to avoid an error. */
10880#ifdef __cplusplus
10881extern "C"
10882#endif
10883/* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10885char dlopen ();
10886int
10887main ()
10888{
10889dlopen ();
10890 ;
10891 return 0;
10892}
10893_ACEOF
10894rm -f conftest.$ac_objext conftest$ac_exeext
10895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896 (eval $ac_link) 2>conftest.er1
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
7357c5b6
AM
10903 { ac_try='test -z "$ac_c_werror_flag"
10904 || test ! -s conftest.err'
d7040cdb
SE
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; } &&
10910 { ac_try='test -s conftest$ac_exeext'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 ac_cv_lib_dl_dlopen=yes
10917else
10918 echo "$as_me: failed program was:" >&5
10919sed 's/^/| /' conftest.$ac_ext >&5
10920
10921ac_cv_lib_dl_dlopen=no
10922fi
10923rm -f conftest.err conftest.$ac_objext \
10924 conftest$ac_exeext conftest.$ac_ext
10925LIBS=$ac_check_lib_save_LIBS
10926fi
10927echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10928echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10929if test $ac_cv_lib_dl_dlopen = yes; then
10930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10931else
10932
10933 lt_cv_dlopen="dyld"
10934 lt_cv_dlopen_libs=
10935 lt_cv_dlopen_self=yes
10936
10937fi
10938
10939 ;;
10940
10941 *)
10942 echo "$as_me:$LINENO: checking for shl_load" >&5
10943echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10944if test "${ac_cv_func_shl_load+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946else
10947 cat >conftest.$ac_ext <<_ACEOF
10948/* confdefs.h. */
10949_ACEOF
10950cat confdefs.h >>conftest.$ac_ext
10951cat >>conftest.$ac_ext <<_ACEOF
10952/* end confdefs.h. */
10953/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10955#define shl_load innocuous_shl_load
10956
10957/* System header to define __stub macros and hopefully few prototypes,
10958 which can conflict with char shl_load (); below.
10959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10960 <limits.h> exists even on freestanding compilers. */
10961
10962#ifdef __STDC__
10963# include <limits.h>
10964#else
10965# include <assert.h>
10966#endif
10967
10968#undef shl_load
10969
10970/* Override any gcc2 internal prototype to avoid an error. */
10971#ifdef __cplusplus
10972extern "C"
10973{
10974#endif
10975/* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10977char shl_load ();
10978/* The GNU C library defines this for functions which it implements
10979 to always fail with ENOSYS. Some functions are actually named
10980 something starting with __ and the normal name is an alias. */
10981#if defined (__stub_shl_load) || defined (__stub___shl_load)
10982choke me
10983#else
10984char (*f) () = shl_load;
10985#endif
10986#ifdef __cplusplus
10987}
10988#endif
10989
10990int
10991main ()
10992{
10993return f != shl_load;
10994 ;
10995 return 0;
10996}
10997_ACEOF
10998rm -f conftest.$ac_objext conftest$ac_exeext
10999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000 (eval $ac_link) 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
7357c5b6
AM
11007 { ac_try='test -z "$ac_c_werror_flag"
11008 || test ! -s conftest.err'
d7040cdb
SE
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; } &&
11014 { ac_try='test -s conftest$ac_exeext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_cv_func_shl_load=yes
11021else
11022 echo "$as_me: failed program was:" >&5
11023sed 's/^/| /' conftest.$ac_ext >&5
11024
11025ac_cv_func_shl_load=no
11026fi
11027rm -f conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11029fi
11030echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11031echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11032if test $ac_cv_func_shl_load = yes; then
11033 lt_cv_dlopen="shl_load"
11034else
11035 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11036echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11037if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11039else
11040 ac_check_lib_save_LIBS=$LIBS
11041LIBS="-ldld $LIBS"
11042cat >conftest.$ac_ext <<_ACEOF
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
11048
11049/* Override any gcc2 internal prototype to avoid an error. */
11050#ifdef __cplusplus
11051extern "C"
11052#endif
11053/* We use char because int might match the return type of a gcc2
11054 builtin and then its argument prototype would still apply. */
11055char shl_load ();
11056int
11057main ()
11058{
11059shl_load ();
11060 ;
11061 return 0;
11062}
11063_ACEOF
11064rm -f conftest.$ac_objext conftest$ac_exeext
11065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>conftest.er1
11067 ac_status=$?
11068 grep -v '^ *+' conftest.er1 >conftest.err
11069 rm -f conftest.er1
11070 cat conftest.err >&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
7357c5b6
AM
11073 { ac_try='test -z "$ac_c_werror_flag"
11074 || test ! -s conftest.err'
d7040cdb
SE
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; } &&
11080 { ac_try='test -s conftest$ac_exeext'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; }; then
11086 ac_cv_lib_dld_shl_load=yes
11087else
11088 echo "$as_me: failed program was:" >&5
11089sed 's/^/| /' conftest.$ac_ext >&5
11090
11091ac_cv_lib_dld_shl_load=no
11092fi
11093rm -f conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095LIBS=$ac_check_lib_save_LIBS
11096fi
11097echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11098echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11099if test $ac_cv_lib_dld_shl_load = yes; then
718a6fd8 11100 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11101else
11102 echo "$as_me:$LINENO: checking for dlopen" >&5
11103echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11104if test "${ac_cv_func_dlopen+set}" = set; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11106else
11107 cat >conftest.$ac_ext <<_ACEOF
11108/* confdefs.h. */
11109_ACEOF
11110cat confdefs.h >>conftest.$ac_ext
11111cat >>conftest.$ac_ext <<_ACEOF
11112/* end confdefs.h. */
11113/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11115#define dlopen innocuous_dlopen
11116
11117/* System header to define __stub macros and hopefully few prototypes,
11118 which can conflict with char dlopen (); below.
11119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11120 <limits.h> exists even on freestanding compilers. */
11121
11122#ifdef __STDC__
11123# include <limits.h>
11124#else
11125# include <assert.h>
11126#endif
11127
11128#undef dlopen
11129
11130/* Override any gcc2 internal prototype to avoid an error. */
11131#ifdef __cplusplus
11132extern "C"
11133{
11134#endif
11135/* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137char dlopen ();
11138/* The GNU C library defines this for functions which it implements
11139 to always fail with ENOSYS. Some functions are actually named
11140 something starting with __ and the normal name is an alias. */
11141#if defined (__stub_dlopen) || defined (__stub___dlopen)
11142choke me
11143#else
11144char (*f) () = dlopen;
11145#endif
11146#ifdef __cplusplus
11147}
11148#endif
11149
11150int
11151main ()
11152{
11153return f != dlopen;
11154 ;
11155 return 0;
11156}
11157_ACEOF
11158rm -f conftest.$ac_objext conftest$ac_exeext
11159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>conftest.er1
11161 ac_status=$?
11162 grep -v '^ *+' conftest.er1 >conftest.err
11163 rm -f conftest.er1
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
7357c5b6
AM
11167 { ac_try='test -z "$ac_c_werror_flag"
11168 || test ! -s conftest.err'
d7040cdb
SE
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; } &&
11174 { ac_try='test -s conftest$ac_exeext'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
11180 ac_cv_func_dlopen=yes
11181else
11182 echo "$as_me: failed program was:" >&5
11183sed 's/^/| /' conftest.$ac_ext >&5
11184
11185ac_cv_func_dlopen=no
11186fi
11187rm -f conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11189fi
11190echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11191echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11192if test $ac_cv_func_dlopen = yes; then
11193 lt_cv_dlopen="dlopen"
11194else
11195 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11196echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11197if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199else
11200 ac_check_lib_save_LIBS=$LIBS
11201LIBS="-ldl $LIBS"
11202cat >conftest.$ac_ext <<_ACEOF
11203/* confdefs.h. */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
11207/* end confdefs.h. */
11208
11209/* Override any gcc2 internal prototype to avoid an error. */
11210#ifdef __cplusplus
11211extern "C"
11212#endif
11213/* We use char because int might match the return type of a gcc2
11214 builtin and then its argument prototype would still apply. */
11215char dlopen ();
11216int
11217main ()
11218{
11219dlopen ();
11220 ;
11221 return 0;
11222}
11223_ACEOF
11224rm -f conftest.$ac_objext conftest$ac_exeext
11225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
7357c5b6
AM
11233 { ac_try='test -z "$ac_c_werror_flag"
11234 || test ! -s conftest.err'
d7040cdb
SE
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try='test -s conftest$ac_exeext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 ac_cv_lib_dl_dlopen=yes
11247else
11248 echo "$as_me: failed program was:" >&5
11249sed 's/^/| /' conftest.$ac_ext >&5
11250
11251ac_cv_lib_dl_dlopen=no
11252fi
11253rm -f conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255LIBS=$ac_check_lib_save_LIBS
11256fi
11257echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11258echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11259if test $ac_cv_lib_dl_dlopen = yes; then
11260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11261else
11262 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11263echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11264if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266else
11267 ac_check_lib_save_LIBS=$LIBS
11268LIBS="-lsvld $LIBS"
11269cat >conftest.$ac_ext <<_ACEOF
11270/* confdefs.h. */
11271_ACEOF
11272cat confdefs.h >>conftest.$ac_ext
11273cat >>conftest.$ac_ext <<_ACEOF
11274/* end confdefs.h. */
11275
11276/* Override any gcc2 internal prototype to avoid an error. */
11277#ifdef __cplusplus
11278extern "C"
11279#endif
11280/* We use char because int might match the return type of a gcc2
11281 builtin and then its argument prototype would still apply. */
11282char dlopen ();
11283int
11284main ()
11285{
11286dlopen ();
11287 ;
11288 return 0;
11289}
11290_ACEOF
11291rm -f conftest.$ac_objext conftest$ac_exeext
11292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11293 (eval $ac_link) 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
7357c5b6
AM
11300 { ac_try='test -z "$ac_c_werror_flag"
11301 || test ! -s conftest.err'
d7040cdb
SE
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; } &&
11307 { ac_try='test -s conftest$ac_exeext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_cv_lib_svld_dlopen=yes
11314else
11315 echo "$as_me: failed program was:" >&5
11316sed 's/^/| /' conftest.$ac_ext >&5
11317
11318ac_cv_lib_svld_dlopen=no
11319fi
11320rm -f conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
11322LIBS=$ac_check_lib_save_LIBS
11323fi
11324echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11325echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11326if test $ac_cv_lib_svld_dlopen = yes; then
11327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11328else
11329 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11330echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11331if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333else
11334 ac_check_lib_save_LIBS=$LIBS
11335LIBS="-ldld $LIBS"
11336cat >conftest.$ac_ext <<_ACEOF
11337/* confdefs.h. */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h. */
11342
11343/* Override any gcc2 internal prototype to avoid an error. */
11344#ifdef __cplusplus
11345extern "C"
11346#endif
11347/* We use char because int might match the return type of a gcc2
11348 builtin and then its argument prototype would still apply. */
11349char dld_link ();
11350int
11351main ()
11352{
11353dld_link ();
11354 ;
11355 return 0;
11356}
11357_ACEOF
11358rm -f conftest.$ac_objext conftest$ac_exeext
11359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11360 (eval $ac_link) 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } &&
7357c5b6
AM
11367 { ac_try='test -z "$ac_c_werror_flag"
11368 || test ! -s conftest.err'
d7040cdb
SE
11369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11371 ac_status=$?
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; } &&
11374 { ac_try='test -s conftest$ac_exeext'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 ac_cv_lib_dld_dld_link=yes
11381else
11382 echo "$as_me: failed program was:" >&5
11383sed 's/^/| /' conftest.$ac_ext >&5
11384
11385ac_cv_lib_dld_dld_link=no
11386fi
11387rm -f conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389LIBS=$ac_check_lib_save_LIBS
11390fi
11391echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11392echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11393if test $ac_cv_lib_dld_dld_link = yes; then
718a6fd8 11394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11395fi
11396
11397
11398fi
11399
11400
11401fi
11402
11403
11404fi
11405
11406
11407fi
11408
11409
11410fi
11411
11412 ;;
11413 esac
11414
11415 if test "x$lt_cv_dlopen" != xno; then
11416 enable_dlopen=yes
20e95c23 11417 else
d7040cdb 11418 enable_dlopen=no
252b5132 11419 fi
5464f5a1 11420
d7040cdb
SE
11421 case $lt_cv_dlopen in
11422 dlopen)
11423 save_CPPFLAGS="$CPPFLAGS"
11424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11425
11426 save_LDFLAGS="$LDFLAGS"
11427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11428
11429 save_LIBS="$LIBS"
11430 LIBS="$lt_cv_dlopen_libs $LIBS"
11431
11432 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11433echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11434if test "${lt_cv_dlopen_self+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 11436else
d7040cdb
SE
11437 if test "$cross_compiling" = yes; then :
11438 lt_cv_dlopen_self=cross
11439else
11440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11441 lt_status=$lt_dlunknown
11442 cat > conftest.$ac_ext <<_LT_EOF
718a6fd8 11443#line 11443 "configure"
d7040cdb
SE
11444#include "confdefs.h"
11445
11446#if HAVE_DLFCN_H
11447#include <dlfcn.h>
11448#endif
11449
11450#include <stdio.h>
11451
11452#ifdef RTLD_GLOBAL
11453# define LT_DLGLOBAL RTLD_GLOBAL
11454#else
11455# ifdef DL_GLOBAL
11456# define LT_DLGLOBAL DL_GLOBAL
11457# else
11458# define LT_DLGLOBAL 0
11459# endif
11460#endif
11461
11462/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11463 find out it does not work in some platform. */
11464#ifndef LT_DLLAZY_OR_NOW
11465# ifdef RTLD_LAZY
11466# define LT_DLLAZY_OR_NOW RTLD_LAZY
11467# else
11468# ifdef DL_LAZY
11469# define LT_DLLAZY_OR_NOW DL_LAZY
11470# else
11471# ifdef RTLD_NOW
11472# define LT_DLLAZY_OR_NOW RTLD_NOW
11473# else
11474# ifdef DL_NOW
11475# define LT_DLLAZY_OR_NOW DL_NOW
11476# else
11477# define LT_DLLAZY_OR_NOW 0
11478# endif
11479# endif
11480# endif
11481# endif
11482#endif
11483
d7040cdb
SE
11484void fnord() { int i=42;}
11485int main ()
11486{
11487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11488 int status = $lt_dlunknown;
11489
11490 if (self)
11491 {
11492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11493 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11494 /* dlclose (self); */
11495 }
11496 else
11497 puts (dlerror ());
11498
718a6fd8 11499 return status;
d7040cdb
SE
11500}
11501_LT_EOF
11502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11503 (eval $ac_link) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11507 (./conftest; exit; ) >&5 2>/dev/null
11508 lt_status=$?
11509 case x$lt_status in
11510 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11511 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11512 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11513 esac
11514 else :
11515 # compilation failed
11516 lt_cv_dlopen_self=no
11517 fi
252b5132 11518fi
d7040cdb 11519rm -fr conftest*
20e95c23 11520
d7040cdb
SE
11521
11522fi
11523echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11524echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11525
11526 if test "x$lt_cv_dlopen_self" = xyes; then
11527 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11528 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11529echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11530if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532else
d7040cdb
SE
11533 if test "$cross_compiling" = yes; then :
11534 lt_cv_dlopen_self_static=cross
11535else
11536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11537 lt_status=$lt_dlunknown
11538 cat > conftest.$ac_ext <<_LT_EOF
718a6fd8 11539#line 11539 "configure"
d7040cdb
SE
11540#include "confdefs.h"
11541
11542#if HAVE_DLFCN_H
11543#include <dlfcn.h>
11544#endif
11545
11546#include <stdio.h>
11547
11548#ifdef RTLD_GLOBAL
11549# define LT_DLGLOBAL RTLD_GLOBAL
11550#else
11551# ifdef DL_GLOBAL
11552# define LT_DLGLOBAL DL_GLOBAL
11553# else
11554# define LT_DLGLOBAL 0
11555# endif
11556#endif
11557
11558/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11559 find out it does not work in some platform. */
11560#ifndef LT_DLLAZY_OR_NOW
11561# ifdef RTLD_LAZY
11562# define LT_DLLAZY_OR_NOW RTLD_LAZY
11563# else
11564# ifdef DL_LAZY
11565# define LT_DLLAZY_OR_NOW DL_LAZY
11566# else
11567# ifdef RTLD_NOW
11568# define LT_DLLAZY_OR_NOW RTLD_NOW
11569# else
11570# ifdef DL_NOW
11571# define LT_DLLAZY_OR_NOW DL_NOW
11572# else
11573# define LT_DLLAZY_OR_NOW 0
11574# endif
11575# endif
11576# endif
11577# endif
11578#endif
11579
d7040cdb
SE
11580void fnord() { int i=42;}
11581int main ()
11582{
11583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11584 int status = $lt_dlunknown;
11585
11586 if (self)
11587 {
11588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11589 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11590 /* dlclose (self); */
11591 }
11592 else
11593 puts (dlerror ());
11594
718a6fd8 11595 return status;
d7040cdb
SE
11596}
11597_LT_EOF
11598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11599 (eval $ac_link) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11603 (./conftest; exit; ) >&5 2>/dev/null
11604 lt_status=$?
11605 case x$lt_status in
11606 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11607 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11608 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11609 esac
11610 else :
11611 # compilation failed
11612 lt_cv_dlopen_self_static=no
11613 fi
11614fi
11615rm -fr conftest*
11616
11617
11618fi
11619echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11620echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11621 fi
11622
11623 CPPFLAGS="$save_CPPFLAGS"
11624 LDFLAGS="$save_LDFLAGS"
11625 LIBS="$save_LIBS"
11626 ;;
11627 esac
11628
11629 case $lt_cv_dlopen_self in
11630 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11631 *) enable_dlopen_self=unknown ;;
11632 esac
11633
11634 case $lt_cv_dlopen_self_static in
11635 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11636 *) enable_dlopen_self_static=unknown ;;
11637 esac
11638fi
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656striplib=
11657old_striplib=
11658echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11659echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11660if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11661 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11662 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11663 echo "$as_me:$LINENO: result: yes" >&5
11664echo "${ECHO_T}yes" >&6
11665else
11666# FIXME - insert some real tests, host_os isn't really good enough
11667 case $host_os in
11668 darwin*)
11669 if test -n "$STRIP" ; then
11670 striplib="$STRIP -x"
11671 old_striplib="$STRIP -S"
11672 echo "$as_me:$LINENO: result: yes" >&5
11673echo "${ECHO_T}yes" >&6
11674 else
11675 echo "$as_me:$LINENO: result: no" >&5
11676echo "${ECHO_T}no" >&6
11677 fi
20e95c23
DJ
11678 ;;
11679 *)
d7040cdb
SE
11680 echo "$as_me:$LINENO: result: no" >&5
11681echo "${ECHO_T}no" >&6
11682 ;;
11683 esac
11684fi
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697 # Report which library types will actually be built
11698 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11699echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11700 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11701echo "${ECHO_T}$can_build_shared" >&6
11702
11703 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11704echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11705 test "$can_build_shared" = "no" && enable_shared=no
11706
11707 # On AIX, shared libraries and static libraries use the same namespace, and
11708 # are all built from PIC.
11709 case $host_os in
11710 aix3*)
11711 test "$enable_shared" = yes && enable_static=no
11712 if test -n "$RANLIB"; then
11713 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11714 postinstall_cmds='$RANLIB $lib'
11715 fi
11716 ;;
11717
e81819a5 11718 aix[4-9]*)
d7040cdb
SE
11719 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11720 test "$enable_shared" = yes && enable_static=no
11721 fi
20e95c23 11722 ;;
d7040cdb
SE
11723 esac
11724 echo "$as_me:$LINENO: result: $enable_shared" >&5
11725echo "${ECHO_T}$enable_shared" >&6
11726
11727 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11728echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11729 # Make sure either enable_shared or enable_static is yes.
11730 test "$enable_shared" = yes || enable_static=yes
11731 echo "$as_me:$LINENO: result: $enable_static" >&5
11732echo "${ECHO_T}$enable_static" >&6
11733
11734
11735
11736
11737fi
11738ac_ext=c
11739ac_cpp='$CPP $CPPFLAGS'
11740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11742ac_compiler_gnu=$ac_cv_c_compiler_gnu
11743
11744CC="$lt_save_CC"
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758 ac_config_commands="$ac_config_commands libtool"
11759
11760
11761
11762
11763# Only expand once:
11764
11765
11766
11767# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11768if test "${enable_64_bit_bfd+set}" = set; then
11769 enableval="$enable_64_bit_bfd"
11770 case "${enableval}" in
11771 yes) want64=true ;;
11772 no) want64=false ;;
11773 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11774echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11775 { (exit 1); exit 1; }; } ;;
11776esac
11777else
11778 want64=false
504b7d20
NC
11779fi;
11780# Check whether --enable-targets or --disable-targets was given.
d7040cdb
SE
11781if test "${enable_targets+set}" = set; then
11782 enableval="$enable_targets"
11783 case "${enableval}" in
11784 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11785echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11786 { (exit 1); exit 1; }; }
11787 ;;
11788 no) enable_targets= ;;
11789 *) enable_targets=$enableval ;;
11790esac
504b7d20
NC
11791fi;
11792# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
d7040cdb
SE
11793if test "${enable_commonbfdlib+set}" = set; then
11794 enableval="$enable_commonbfdlib"
11795 case "${enableval}" in
11796 yes) commonbfdlib=true ;;
11797 no) commonbfdlib=false ;;
11798 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11799echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11800 { (exit 1); exit 1; }; } ;;
11801esac
11802fi;
504b7d20 11803
d7040cdb
SE
11804# Check whether --with-mmap or --without-mmap was given.
11805if test "${with_mmap+set}" = set; then
11806 withval="$with_mmap"
11807 case "${withval}" in
11808 yes) want_mmap=true ;;
11809 no) want_mmap=false ;;
11810 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11811echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11812 { (exit 1); exit 1; }; } ;;
20e95c23 11813esac
252b5132 11814else
d7040cdb
SE
11815 want_mmap=false
11816fi;
11817# Check whether --enable-secureplt or --disable-secureplt was given.
11818if test "${enable_secureplt+set}" = set; then
11819 enableval="$enable_secureplt"
11820 case "${enableval}" in
11821 yes) use_secureplt=true ;;
11822 no) use_secureplt=false ;;
11823 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11824echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11825 { (exit 1); exit 1; }; } ;;
11826esac
252b5132 11827else
d7040cdb
SE
11828 use_secureplt=false
11829fi; if test $use_secureplt = true; then
11830
11831cat >>confdefs.h <<\_ACEOF
11832#define USE_SECUREPLT 1
11833_ACEOF
5464f5a1 11834
252b5132 11835fi
20e95c23 11836
0d4a1476
AS
11837DEBUGDIR=${libdir}/debug
11838
0d4a1476
AS
11839# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11840if test "${with_separate_debug_dir+set}" = set; then
11841 withval="$with_separate_debug_dir"
11842 DEBUGDIR="${withval}"
11843fi;
11844
11845
504b7d20
NC
11846# Check to see if we should allow the generation of
11847# symbols with the ELF standard's STT_COMMON type.
11848# Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11849if test "${enable_elf_stt_common+set}" = set; then
11850 enableval="$enable_elf_stt_common"
11851 case "${enableval}" in
11852 yes) want_elf_stt_common=true ;;
11853 no) want_elf_stt_common=false ;;
11854 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11855echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11856 { (exit 1); exit 1; }; } ;;
11857 esac
11858else
11859 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
11860# test whether the loader supports the STT_COMMON type, but that would
11861# mean that built binaries could not be exported to older systems where
11862# the loader does not support it. So by default we always choose to
11863# disable this feature.
504b7d20 11864 want_elf_stt_common=false
504b7d20
NC
11865fi; if test $want_elf_stt_common = true; then
11866
11867cat >>confdefs.h <<\_ACEOF
11868#define USE_STT_COMMON 1
11869_ACEOF
11870
11871fi
11872
11873
d7040cdb 11874
d7040cdb
SE
11875# Check whether --with-pkgversion or --without-pkgversion was given.
11876if test "${with_pkgversion+set}" = set; then
11877 withval="$with_pkgversion"
11878 case "$withval" in
11879 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11880echo "$as_me: error: package version not specified" >&2;}
11881 { (exit 1); exit 1; }; } ;;
11882 no) PKGVERSION= ;;
11883 *) PKGVERSION="($withval) " ;;
11884 esac
252b5132 11885else
d7040cdb 11886 PKGVERSION="(GNU Binutils) "
252b5132 11887
d7040cdb 11888fi;
20e95c23
DJ
11889
11890
5464f5a1 11891
20e95c23 11892
d7040cdb
SE
11893# Check whether --with-bugurl or --without-bugurl was given.
11894if test "${with_bugurl+set}" = set; then
11895 withval="$with_bugurl"
11896 case "$withval" in
11897 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11898echo "$as_me: error: bug URL not specified" >&2;}
11899 { (exit 1); exit 1; }; } ;;
11900 no) BUGURL=
11901 ;;
11902 *) BUGURL="$withval"
11903 ;;
11904 esac
252b5132 11905else
d7040cdb
SE
11906 BUGURL="http://www.sourceware.org/bugzilla/"
11907
11908fi;
11909 case ${BUGURL} in
11910 "")
11911 REPORT_BUGS_TO=
11912 REPORT_BUGS_TEXI=
20e95c23
DJ
11913 ;;
11914 *)
d7040cdb
SE
11915 REPORT_BUGS_TO="<$BUGURL>"
11916 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 11917 ;;
d7040cdb
SE
11918 esac;
11919
11920
11921
11922
11923
11924GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11925
11926# Check whether --enable-werror or --disable-werror was given.
11927if test "${enable_werror+set}" = set; then
11928 enableval="$enable_werror"
11929 case "${enableval}" in
11930 yes | y) ERROR_ON_WARNING="yes" ;;
11931 no | n) ERROR_ON_WARNING="no" ;;
11932 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11933echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11934 { (exit 1); exit 1; }; } ;;
11935 esac
11936fi;
11937
bb8541b9
L
11938# Enable -Wno-format by default when using gcc on mingw
11939case "${host}" in
11940 *-*-mingw32*)
11941 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11942 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11943 fi
11944 ;;
11945 *) ;;
11946esac
11947
d7040cdb
SE
11948# Enable -Werror by default when using gcc
11949if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11950 ERROR_ON_WARNING=yes
11951fi
11952
11953NO_WERROR=
11954if test "${ERROR_ON_WARNING}" = yes ; then
11955 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11956 NO_WERROR="-Wno-error"
11957fi
11958
11959if test "${GCC}" = yes ; then
11960 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11961fi
11962
11963# Check whether --enable-build-warnings or --disable-build-warnings was given.
11964if test "${enable_build_warnings+set}" = set; then
11965 enableval="$enable_build_warnings"
11966 case "${enableval}" in
11967 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11968 no) if test "${GCC}" = yes ; then
11969 WARN_CFLAGS="-w"
11970 fi;;
11971 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11972 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11973 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11974 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11975 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 11976esac
d7040cdb
SE
11977fi;
11978
11979if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11980 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 11981fi
d7040cdb
SE
11982
11983
11984
11985
11986
11987 ac_config_headers="$ac_config_headers config.h:config.in"
11988
11989
11990if test -z "$target" ; then
11991 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11992echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11993 { (exit 1); exit 1; }; }
20e95c23
DJ
11994fi
11995
d7040cdb
SE
11996echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11997echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11998 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11999if test "${enable_maintainer_mode+set}" = set; then
12000 enableval="$enable_maintainer_mode"
12001 USE_MAINTAINER_MODE=$enableval
12002else
12003 USE_MAINTAINER_MODE=no
12004fi;
12005 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12006echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
12007
12008
d7040cdb
SE
12009if test $USE_MAINTAINER_MODE = yes; then
12010 MAINTAINER_MODE_TRUE=
12011 MAINTAINER_MODE_FALSE='#'
12012else
12013 MAINTAINER_MODE_TRUE='#'
12014 MAINTAINER_MODE_FALSE=
6be7c12c 12015fi
5464f5a1 12016
d7040cdb
SE
12017 MAINT=$MAINTAINER_MODE_TRUE
12018
12019
12020
12021
12022if false; then
12023 GENINSRC_NEVER_TRUE=
12024 GENINSRC_NEVER_FALSE='#'
20e95c23 12025else
d7040cdb
SE
12026 GENINSRC_NEVER_TRUE='#'
12027 GENINSRC_NEVER_FALSE=
5464f5a1 12028fi
5464f5a1 12029
d7040cdb
SE
12030 case ${build_alias} in
12031 "") build_noncanonical=${build} ;;
12032 *) build_noncanonical=${build_alias} ;;
20e95c23 12033esac
d7040cdb
SE
12034
12035 case ${host_alias} in
12036 "") host_noncanonical=${build_noncanonical} ;;
12037 *) host_noncanonical=${host_alias} ;;
12038esac
12039
12040 case ${target_alias} in
12041 "") target_noncanonical=${host_noncanonical} ;;
12042 *) target_noncanonical=${target_alias} ;;
12043esac
12044
12045echo "$as_me:$LINENO: checking whether to install libbfd" >&5
12046echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
12047 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
12048if test "${enable_install_libbfd+set}" = set; then
12049 enableval="$enable_install_libbfd"
12050 install_libbfd_p=$enableval
252b5132 12051else
d7040cdb
SE
12052 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12053 install_libbfd_p=yes
12054 else
12055 install_libbfd_p=no
12056 fi
12057fi;
12058 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
12059echo "${ECHO_T}$install_libbfd_p" >&6
12060
12061
12062if test $install_libbfd_p = yes; then
12063 INSTALL_LIBBFD_TRUE=
12064 INSTALL_LIBBFD_FALSE='#'
12065else
12066 INSTALL_LIBBFD_TRUE='#'
12067 INSTALL_LIBBFD_FALSE=
5464f5a1 12068fi
5464f5a1 12069
d7040cdb 12070 # Need _noncanonical variables for this.
5464f5a1 12071
5464f5a1 12072
d7040cdb
SE
12073
12074
12075 # libbfd.a is a host library containing target dependent code
12076 bfdlibdir='$(libdir)'
12077 bfdincludedir='$(includedir)'
12078 if test "${host}" != "${target}"; then
12079 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12080 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 12081 fi
6be7c12c 12082
5464f5a1 12083
5464f5a1
NN
12084
12085
5464f5a1 12086
ac48eca1 12087
d7040cdb
SE
12088host64=false
12089target64=false
12090bfd_default_target_size=32
252b5132 12091
d7040cdb 12092# host stuff:
20e95c23 12093
8cc9115f 12094ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id"
d7040cdb
SE
12095# If we haven't got the data from the intl directory,
12096# assume NLS is disabled.
12097USE_NLS=no
12098LIBINTL=
12099LIBINTL_DEP=
12100INCINTL=
12101XGETTEXT=
12102GMSGFMT=
12103POSUB=
12104
12105if test -f ../intl/config.intl; then
12106 . ../intl/config.intl
252b5132 12107fi
d7040cdb
SE
12108echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12109echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12110if test x"$USE_NLS" != xyes; then
12111 echo "$as_me:$LINENO: result: no" >&5
12112echo "${ECHO_T}no" >&6
12113else
12114 echo "$as_me:$LINENO: result: yes" >&5
12115echo "${ECHO_T}yes" >&6
5464f5a1 12116
d7040cdb
SE
12117cat >>confdefs.h <<\_ACEOF
12118#define ENABLE_NLS 1
12119_ACEOF
252b5132 12120
6be7c12c 12121
d7040cdb
SE
12122 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12123echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12124 # Look for .po and .gmo files in the source directory.
12125 CATALOGS=
12126 XLINGUAS=
12127 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12128 # If there aren't any .gmo files the shell will give us the
12129 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12130 # weeded out.
12131 case "$cat" in *\**)
12132 continue;;
12133 esac
12134 # The quadruple backslash is collapsed to a double backslash
12135 # by the backticks, then collapsed again by the double quotes,
12136 # leaving us with one backslash in the sed expression (right
12137 # before the dot that mustn't act as a wildcard).
12138 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12139 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12140 # The user is allowed to set LINGUAS to a list of languages to
12141 # install catalogs for. If it's empty that means "all of them."
12142 if test "x$LINGUAS" = x; then
12143 CATALOGS="$CATALOGS $cat"
12144 XLINGUAS="$XLINGUAS $lang"
12145 else
12146 case "$LINGUAS" in *$lang*)
12147 CATALOGS="$CATALOGS $cat"
12148 XLINGUAS="$XLINGUAS $lang"
12149 ;;
12150 esac
12151 fi
12152 done
12153 LINGUAS="$XLINGUAS"
12154 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12155echo "${ECHO_T}$LINGUAS" >&6
12156
252b5132 12157
d7040cdb 12158 DATADIRNAME=share
252b5132 12159
d7040cdb 12160 INSTOBJEXT=.mo
5464f5a1 12161
d7040cdb 12162 GENCAT=gencat
20e95c23 12163
d7040cdb 12164 CATOBJEXT=.gmo
5464f5a1 12165
20e95c23 12166fi
5464f5a1 12167
d7040cdb
SE
12168 MKINSTALLDIRS=
12169 if test -n "$ac_aux_dir"; then
12170 case "$ac_aux_dir" in
12171 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12172 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12173 esac
12174 fi
12175 if test -z "$MKINSTALLDIRS"; then
12176 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 12177 fi
5464f5a1 12178
5464f5a1 12179
d7040cdb
SE
12180
12181 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12182echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12183 # Check whether --enable-nls or --disable-nls was given.
12184if test "${enable_nls+set}" = set; then
12185 enableval="$enable_nls"
12186 USE_NLS=$enableval
252b5132 12187else
d7040cdb
SE
12188 USE_NLS=yes
12189fi;
12190 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12191echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 12192
252b5132 12193
5464f5a1 12194
252b5132 12195
d7040cdb
SE
12196
12197
12198# Prepare PATH_SEPARATOR.
12199# The user is always right.
12200if test "${PATH_SEPARATOR+set}" != set; then
12201 echo "#! /bin/sh" >conf$$.sh
12202 echo "exit 0" >>conf$$.sh
12203 chmod +x conf$$.sh
12204 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12205 PATH_SEPARATOR=';'
20e95c23 12206 else
d7040cdb 12207 PATH_SEPARATOR=:
20e95c23 12208 fi
d7040cdb
SE
12209 rm -f conf$$.sh
12210fi
12211
12212# Find out how to test for executable files. Don't use a zero-byte file,
12213# as systems may use methods other than mode bits to determine executability.
12214cat >conf$$.file <<_ASEOF
12215#! /bin/sh
12216exit 0
12217_ASEOF
12218chmod +x conf$$.file
12219if test -x conf$$.file >/dev/null 2>&1; then
12220 ac_executable_p="test -x"
20e95c23 12221else
d7040cdb 12222 ac_executable_p="test -f"
20e95c23 12223fi
d7040cdb 12224rm -f conf$$.file
5464f5a1 12225
d7040cdb
SE
12226# Extract the first word of "msgfmt", so it can be a program name with args.
12227set dummy msgfmt; ac_word=$2
12228echo "$as_me:$LINENO: checking for $ac_word" >&5
12229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12230if test "${ac_cv_path_MSGFMT+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232else
12233 case "$MSGFMT" in
12234 [\\/]* | ?:[\\/]*)
12235 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12236 ;;
12237 *)
12238 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12239 for ac_dir in $PATH; do
12240 IFS="$ac_save_IFS"
12241 test -z "$ac_dir" && ac_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12244 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12245 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12246 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12247 break 2
12248 fi
12249 fi
12250 done
12251 done
12252 IFS="$ac_save_IFS"
12253 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12254 ;;
12255esac
5464f5a1 12256fi
d7040cdb
SE
12257MSGFMT="$ac_cv_path_MSGFMT"
12258if test "$MSGFMT" != ":"; then
12259 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12260echo "${ECHO_T}$MSGFMT" >&6
20e95c23 12261else
d7040cdb
SE
12262 echo "$as_me:$LINENO: result: no" >&5
12263echo "${ECHO_T}no" >&6
252b5132 12264fi
d7040cdb
SE
12265
12266 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12267set dummy gmsgfmt; ac_word=$2
12268echo "$as_me:$LINENO: checking for $ac_word" >&5
12269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12270if test "${ac_cv_path_GMSGFMT+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12272else
d7040cdb
SE
12273 case $GMSGFMT in
12274 [\\/]* | ?:[\\/]*)
12275 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12276 ;;
12277 *)
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279for as_dir in $PATH
12280do
12281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12287 break 2
12288 fi
12289done
12290done
5464f5a1 12291
d7040cdb
SE
12292 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12293 ;;
12294esac
252b5132 12295fi
d7040cdb 12296GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 12297
d7040cdb
SE
12298if test -n "$GMSGFMT"; then
12299 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12300echo "${ECHO_T}$GMSGFMT" >&6
252b5132 12301else
d7040cdb
SE
12302 echo "$as_me:$LINENO: result: no" >&5
12303echo "${ECHO_T}no" >&6
252b5132
RH
12304fi
12305
20e95c23
DJ
12306
12307
d7040cdb
SE
12308# Prepare PATH_SEPARATOR.
12309# The user is always right.
12310if test "${PATH_SEPARATOR+set}" != set; then
12311 echo "#! /bin/sh" >conf$$.sh
12312 echo "exit 0" >>conf$$.sh
12313 chmod +x conf$$.sh
12314 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12315 PATH_SEPARATOR=';'
12316 else
12317 PATH_SEPARATOR=:
12318 fi
12319 rm -f conf$$.sh
252b5132 12320fi
20e95c23 12321
d7040cdb
SE
12322# Find out how to test for executable files. Don't use a zero-byte file,
12323# as systems may use methods other than mode bits to determine executability.
12324cat >conf$$.file <<_ASEOF
12325#! /bin/sh
12326exit 0
12327_ASEOF
12328chmod +x conf$$.file
12329if test -x conf$$.file >/dev/null 2>&1; then
12330 ac_executable_p="test -x"
12331else
12332 ac_executable_p="test -f"
12333fi
12334rm -f conf$$.file
252b5132 12335
d7040cdb
SE
12336# Extract the first word of "xgettext", so it can be a program name with args.
12337set dummy xgettext; ac_word=$2
12338echo "$as_me:$LINENO: checking for $ac_word" >&5
12339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12340if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342else
d7040cdb
SE
12343 case "$XGETTEXT" in
12344 [\\/]* | ?:[\\/]*)
12345 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12346 ;;
12347 *)
12348 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12349 for ac_dir in $PATH; do
12350 IFS="$ac_save_IFS"
12351 test -z "$ac_dir" && ac_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12354 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12355 (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
12356 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12357 break 2
12358 fi
12359 fi
12360 done
12361 done
12362 IFS="$ac_save_IFS"
12363 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12364 ;;
12365esac
12366fi
12367XGETTEXT="$ac_cv_path_XGETTEXT"
12368if test "$XGETTEXT" != ":"; then
12369 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12370echo "${ECHO_T}$XGETTEXT" >&6
252b5132 12371else
d7040cdb
SE
12372 echo "$as_me:$LINENO: result: no" >&5
12373echo "${ECHO_T}no" >&6
252b5132
RH
12374fi
12375
d7040cdb 12376 rm -f messages.po
5464f5a1 12377
252b5132 12378
d7040cdb
SE
12379# Prepare PATH_SEPARATOR.
12380# The user is always right.
12381if test "${PATH_SEPARATOR+set}" != set; then
12382 echo "#! /bin/sh" >conf$$.sh
12383 echo "exit 0" >>conf$$.sh
12384 chmod +x conf$$.sh
12385 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12386 PATH_SEPARATOR=';'
12387 else
12388 PATH_SEPARATOR=:
12389 fi
12390 rm -f conf$$.sh
252b5132
RH
12391fi
12392
d7040cdb
SE
12393# Find out how to test for executable files. Don't use a zero-byte file,
12394# as systems may use methods other than mode bits to determine executability.
12395cat >conf$$.file <<_ASEOF
12396#! /bin/sh
12397exit 0
12398_ASEOF
12399chmod +x conf$$.file
12400if test -x conf$$.file >/dev/null 2>&1; then
12401 ac_executable_p="test -x"
5464f5a1 12402else
d7040cdb 12403 ac_executable_p="test -f"
20e95c23 12404fi
d7040cdb 12405rm -f conf$$.file
5464f5a1 12406
d7040cdb
SE
12407# Extract the first word of "msgmerge", so it can be a program name with args.
12408set dummy msgmerge; ac_word=$2
12409echo "$as_me:$LINENO: checking for $ac_word" >&5
12410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12411if test "${ac_cv_path_MSGMERGE+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12413else
12414 case "$MSGMERGE" in
12415 [\\/]* | ?:[\\/]*)
12416 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12417 ;;
12418 *)
12419 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12420 for ac_dir in $PATH; do
12421 IFS="$ac_save_IFS"
12422 test -z "$ac_dir" && ac_dir=.
12423 for ac_exec_ext in '' $ac_executable_extensions; do
12424 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12425 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12426 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12427 break 2
12428 fi
12429 fi
12430 done
12431 done
12432 IFS="$ac_save_IFS"
12433 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12434 ;;
12435esac
5464f5a1 12436fi
d7040cdb
SE
12437MSGMERGE="$ac_cv_path_MSGMERGE"
12438if test "$MSGMERGE" != ":"; then
12439 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12440echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 12441else
d7040cdb
SE
12442 echo "$as_me:$LINENO: result: no" >&5
12443echo "${ECHO_T}no" >&6
12444fi
20e95c23 12445
5464f5a1 12446
d7040cdb
SE
12447 if test "$GMSGFMT" != ":"; then
12448 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12449 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12450 : ;
12451 else
12452 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12453 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12454echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12455 GMSGFMT=":"
12456 fi
12457 fi
252b5132 12458
d7040cdb
SE
12459 if test "$XGETTEXT" != ":"; then
12460 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12461 (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
12462 : ;
12463 else
12464 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12465echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12466 XGETTEXT=":"
12467 fi
12468 rm -f messages.po
12469 fi
6be7c12c 12470
d7040cdb 12471 ac_config_commands="$ac_config_commands default-1"
5464f5a1 12472
252b5132 12473
5464f5a1 12474
d7040cdb
SE
12475# Permit host specific settings.
12476. ${srcdir}/configure.host
12477
12478
12479# Find a good install program. We prefer a C program (faster),
12480# so one script is as good as another. But avoid the broken or
12481# incompatible versions:
12482# SysV /etc/install, /usr/sbin/install
12483# SunOS /usr/etc/install
12484# IRIX /sbin/install
12485# AIX /bin/install
12486# AmigaOS /C/install, which installs bootblocks on floppy discs
12487# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12488# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12489# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12490# OS/2's system install, which has a completely different semantic
12491# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 12492# Reject install programs that cannot install multiple files.
d7040cdb
SE
12493echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12494echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12495if test -z "$INSTALL"; then
12496if test "${ac_cv_path_install+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498else
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500for as_dir in $PATH
12501do
12502 IFS=$as_save_IFS
12503 test -z "$as_dir" && as_dir=.
12504 # Account for people who put trailing slashes in PATH elements.
12505case $as_dir/ in
12506 ./ | .// | /cC/* | \
12507 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12508 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12509 /usr/ucb/* ) ;;
12510 *)
12511 # OSF1 and SCO ODT 3.0 have their own names for install.
12512 # Don't use installbsd from OSF since it installs stuff as root
12513 # by default.
12514 for ac_prog in ginstall scoinst install; do
12515 for ac_exec_ext in '' $ac_executable_extensions; do
12516 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12517 if test $ac_prog = install &&
12518 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12519 # AIX install. It has an incompatible calling convention.
12520 :
12521 elif test $ac_prog = install &&
12522 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12523 # program-specific install script used by HP pwplus--don't use.
12524 :
12525 else
58c85be7
RW
12526 rm -rf conftest.one conftest.two conftest.dir
12527 echo one > conftest.one
12528 echo two > conftest.two
12529 mkdir conftest.dir
12530 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12531 test -s conftest.one && test -s conftest.two &&
12532 test -s conftest.dir/conftest.one &&
12533 test -s conftest.dir/conftest.two
12534 then
12535 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12536 break 3
12537 fi
d7040cdb
SE
12538 fi
12539 fi
12540 done
12541 done
12542 ;;
12543esac
12544done
12545
58c85be7 12546rm -rf conftest.one conftest.two conftest.dir
252b5132 12547
d7040cdb
SE
12548fi
12549 if test "${ac_cv_path_install+set}" = set; then
12550 INSTALL=$ac_cv_path_install
12551 else
58c85be7
RW
12552 # As a last resort, use the slow shell script. Don't cache a
12553 # value for INSTALL within a source directory, because that will
d7040cdb 12554 # break other packages using the cache if that directory is
58c85be7 12555 # removed, or if the value is a relative name.
d7040cdb
SE
12556 INSTALL=$ac_install_sh
12557 fi
12558fi
12559echo "$as_me:$LINENO: result: $INSTALL" >&5
12560echo "${ECHO_T}$INSTALL" >&6
5464f5a1 12561
d7040cdb
SE
12562# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12563# It thinks the first close brace ends the variable substitution.
12564test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 12565
d7040cdb 12566test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 12567
d7040cdb 12568test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 12569
252b5132 12570
d7040cdb 12571BFD_HOST_64BIT_LONG=0
d2df793a 12572BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
12573BFD_HOST_64_BIT_DEFINED=0
12574BFD_HOST_64_BIT=
12575BFD_HOST_U_64_BIT=
d2df793a 12576BFD_HOSTPTR_T="unsigned long"
6be7c12c 12577
d7040cdb
SE
12578echo "$as_me:$LINENO: checking for long long" >&5
12579echo $ECHO_N "checking for long long... $ECHO_C" >&6
2ba49b59 12580if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 12581 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 12582else
5464f5a1
NN
12583 cat >conftest.$ac_ext <<_ACEOF
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
12593if ((long long *) 0)
12594 return 0;
12595if (sizeof (long long))
12596 return 0;
5464f5a1
NN
12597 ;
12598 return 0;
12599}
12600_ACEOF
12601rm -f conftest.$ac_objext
12602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
7357c5b6
AM
12610 { ac_try='test -z "$ac_c_werror_flag"
12611 || test ! -s conftest.err'
5464f5a1
NN
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
2ba49b59 12623 ac_cv_type_long_long=yes
6726e1ea 12624else
5464f5a1
NN
12625 echo "$as_me: failed program was:" >&5
12626sed 's/^/| /' conftest.$ac_ext >&5
12627
2ba49b59 12628ac_cv_type_long_long=no
6726e1ea 12629fi
5464f5a1 12630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 12631fi
2ba49b59
KC
12632echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12633echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 12634
2ba49b59
KC
12635echo "$as_me:$LINENO: checking size of long long" >&5
12636echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12637if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 12638 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 12639else
2ba49b59
KC
12640 if test "$ac_cv_type_long_long" = yes; then
12641 # The cast to unsigned long works around a bug in the HP C Compiler
12642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12643 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12644 # This bug is HP SR number 8606223364.
12645 if test "$cross_compiling" = yes; then
12646 # Depending upon the size, compute the lo and hi bounds.
12647cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12648/* confdefs.h. */
12649_ACEOF
12650cat confdefs.h >>conftest.$ac_ext
12651cat >>conftest.$ac_ext <<_ACEOF
12652/* end confdefs.h. */
2ba49b59
KC
12653$ac_includes_default
12654int
12655main ()
12656{
12657static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12658test_array [0] = 0
6726e1ea 12659
2ba49b59
KC
12660 ;
12661 return 0;
12662}
12663_ACEOF
12664rm -f conftest.$ac_objext
12665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12666 (eval $ac_compile) 2>conftest.er1
12667 ac_status=$?
12668 grep -v '^ *+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } &&
7357c5b6
AM
12673 { ac_try='test -z "$ac_c_werror_flag"
12674 || test ! -s conftest.err'
2ba49b59
KC
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest.$ac_objext'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12686 ac_lo=0 ac_mid=0
12687 while :; do
12688 cat >conftest.$ac_ext <<_ACEOF
12689/* confdefs.h. */
12690_ACEOF
12691cat confdefs.h >>conftest.$ac_ext
12692cat >>conftest.$ac_ext <<_ACEOF
12693/* end confdefs.h. */
12694$ac_includes_default
5464f5a1
NN
12695int
12696main ()
12697{
2ba49b59
KC
12698static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12699test_array [0] = 0
12700
5464f5a1
NN
12701 ;
12702 return 0;
12703}
12704_ACEOF
12705rm -f conftest.$ac_objext
12706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707 (eval $ac_compile) 2>conftest.er1
12708 ac_status=$?
12709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } &&
7357c5b6
AM
12714 { ac_try='test -z "$ac_c_werror_flag"
12715 || test ! -s conftest.err'
5464f5a1
NN
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; } &&
12721 { ac_try='test -s conftest.$ac_objext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
2ba49b59 12727 ac_hi=$ac_mid; break
6726e1ea 12728else
5464f5a1
NN
12729 echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
2ba49b59
KC
12732ac_lo=`expr $ac_mid + 1`
12733 if test $ac_lo -le $ac_mid; then
12734 ac_lo= ac_hi=
12735 break
12736 fi
12737 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 12738fi
5464f5a1 12739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 12740 done
252b5132 12741else
2ba49b59
KC
12742 echo "$as_me: failed program was:" >&5
12743sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 12744
5464f5a1
NN
12745cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
12751$ac_includes_default
2ba49b59
KC
12752int
12753main ()
12754{
12755static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12756test_array [0] = 0
12757
12758 ;
12759 return 0;
12760}
5464f5a1
NN
12761_ACEOF
12762rm -f conftest.$ac_objext
12763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764 (eval $ac_compile) 2>conftest.er1
12765 ac_status=$?
12766 grep -v '^ *+' conftest.er1 >conftest.err
12767 rm -f conftest.er1
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
7357c5b6
AM
12771 { ac_try='test -z "$ac_c_werror_flag"
12772 || test ! -s conftest.err'
5464f5a1
NN
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest.$ac_objext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
2ba49b59
KC
12784 ac_hi=-1 ac_mid=-1
12785 while :; do
12786 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12787/* confdefs.h. */
12788_ACEOF
12789cat confdefs.h >>conftest.$ac_ext
12790cat >>conftest.$ac_ext <<_ACEOF
12791/* end confdefs.h. */
2ba49b59
KC
12792$ac_includes_default
12793int
12794main ()
12795{
12796static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12797test_array [0] = 0
12798
12799 ;
12800 return 0;
12801}
5464f5a1 12802_ACEOF
2ba49b59
KC
12803rm -f conftest.$ac_objext
12804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12806 ac_status=$?
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12811 (exit $ac_status); } &&
7357c5b6
AM
12812 { ac_try='test -z "$ac_c_werror_flag"
12813 || test ! -s conftest.err'
2ba49b59
KC
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12816 ac_status=$?
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; } &&
12819 { ac_try='test -s conftest.$ac_objext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_lo=$ac_mid; break
252b5132 12826else
2ba49b59
KC
12827 echo "$as_me: failed program was:" >&5
12828sed 's/^/| /' conftest.$ac_ext >&5
12829
12830ac_hi=`expr '(' $ac_mid ')' - 1`
12831 if test $ac_mid -le $ac_hi; then
12832 ac_lo= ac_hi=
12833 break
12834 fi
12835 ac_mid=`expr 2 '*' $ac_mid`
252b5132 12836fi
2ba49b59
KC
12837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12838 done
5464f5a1
NN
12839else
12840 echo "$as_me: failed program was:" >&5
12841sed 's/^/| /' conftest.$ac_ext >&5
12842
2ba49b59 12843ac_lo= ac_hi=
252b5132 12844fi
2ba49b59
KC
12845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12846fi
12847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12848# Binary search between lo and hi bounds.
12849while test "x$ac_lo" != "x$ac_hi"; do
12850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12851 cat >conftest.$ac_ext <<_ACEOF
12852/* confdefs.h. */
12853_ACEOF
12854cat confdefs.h >>conftest.$ac_ext
12855cat >>conftest.$ac_ext <<_ACEOF
12856/* end confdefs.h. */
12857$ac_includes_default
12858int
12859main ()
12860{
12861static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12862test_array [0] = 0
5464f5a1 12863
2ba49b59
KC
12864 ;
12865 return 0;
12866}
5464f5a1
NN
12867_ACEOF
12868rm -f conftest.$ac_objext
12869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870 (eval $ac_compile) 2>conftest.er1
12871 ac_status=$?
12872 grep -v '^ *+' conftest.er1 >conftest.err
12873 rm -f conftest.er1
12874 cat conftest.err >&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
7357c5b6
AM
12877 { ac_try='test -z "$ac_c_werror_flag"
12878 || test ! -s conftest.err'
5464f5a1
NN
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; } &&
12884 { ac_try='test -s conftest.$ac_objext'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
2ba49b59 12890 ac_hi=$ac_mid
5464f5a1
NN
12891else
12892 echo "$as_me: failed program was:" >&5
12893sed 's/^/| /' conftest.$ac_ext >&5
12894
2ba49b59 12895ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
12896fi
12897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
12898done
12899case $ac_lo in
12900?*) ac_cv_sizeof_long_long=$ac_lo;;
7357c5b6
AM
12901'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12902echo "$as_me: error: in \`$ac_pwd':" >&2;}
12903{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
2ba49b59
KC
12904See \`config.log' for more details." >&5
12905echo "$as_me: error: cannot compute sizeof (long long), 77
12906See \`config.log' for more details." >&2;}
7357c5b6 12907 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
12908esac
12909else
12910 if test "$cross_compiling" = yes; then
7357c5b6
AM
12911 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12912echo "$as_me: error: in \`$ac_pwd':" >&2;}
12913{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12914See \`config.log' for more details." >&5
12915echo "$as_me: error: cannot run test program while cross compiling
12916See \`config.log' for more details." >&2;}
12917 { (exit 1); exit 1; }; }; }
2ba49b59
KC
12918else
12919 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12920/* confdefs.h. */
12921_ACEOF
12922cat confdefs.h >>conftest.$ac_ext
12923cat >>conftest.$ac_ext <<_ACEOF
12924/* end confdefs.h. */
2ba49b59
KC
12925$ac_includes_default
12926long longval () { return (long) (sizeof (long long)); }
12927unsigned long ulongval () { return (long) (sizeof (long long)); }
12928#include <stdio.h>
12929#include <stdlib.h>
12930int
12931main ()
12932{
12933
12934 FILE *f = fopen ("conftest.val", "w");
12935 if (! f)
12936 exit (1);
12937 if (((long) (sizeof (long long))) < 0)
12938 {
12939 long i = longval ();
12940 if (i != ((long) (sizeof (long long))))
12941 exit (1);
12942 fprintf (f, "%ld\n", i);
12943 }
12944 else
12945 {
12946 unsigned long i = ulongval ();
12947 if (i != ((long) (sizeof (long long))))
12948 exit (1);
12949 fprintf (f, "%lu\n", i);
12950 }
12951 exit (ferror (f) || fclose (f) != 0);
12952
12953 ;
12954 return 0;
12955}
5464f5a1 12956_ACEOF
2ba49b59
KC
12957rm -f conftest$ac_exeext
12958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12959 (eval $ac_link) 2>&5
5464f5a1 12960 ac_status=$?
5464f5a1 12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
12962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12968 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 12969else
2ba49b59
KC
12970 echo "$as_me: program exited with status $ac_status" >&5
12971echo "$as_me: failed program was:" >&5
5464f5a1
NN
12972sed 's/^/| /' conftest.$ac_ext >&5
12973
2ba49b59 12974( exit $ac_status )
7357c5b6
AM
12975{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12976echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
12977{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12978See \`config.log' for more details." >&5
12979echo "$as_me: error: cannot compute sizeof (long long), 77
12980See \`config.log' for more details." >&2;}
7357c5b6 12981 { (exit 1); exit 1; }; }; }
252b5132 12982fi
2ba49b59
KC
12983rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12984fi
12985fi
12986rm -f conftest.val
6be7c12c 12987else
2ba49b59 12988 ac_cv_sizeof_long_long=0
5464f5a1 12989fi
5464f5a1 12990fi
2ba49b59
KC
12991echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12992echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12993cat >>confdefs.h <<_ACEOF
12994#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
12995_ACEOF
12996
5464f5a1 12997
d2df793a
NC
12998echo "$as_me:$LINENO: checking for void *" >&5
12999echo $ECHO_N "checking for void *... $ECHO_C" >&6
13000if test "${ac_cv_type_void_p+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002else
13003 cat >conftest.$ac_ext <<_ACEOF
13004/* confdefs.h. */
13005_ACEOF
13006cat confdefs.h >>conftest.$ac_ext
13007cat >>conftest.$ac_ext <<_ACEOF
13008/* end confdefs.h. */
13009$ac_includes_default
13010int
13011main ()
13012{
13013if ((void * *) 0)
13014 return 0;
13015if (sizeof (void *))
13016 return 0;
13017 ;
13018 return 0;
13019}
13020_ACEOF
13021rm -f conftest.$ac_objext
13022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13023 (eval $ac_compile) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
7357c5b6
AM
13030 { ac_try='test -z "$ac_c_werror_flag"
13031 || test ! -s conftest.err'
d2df793a
NC
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_type_void_p=yes
13044else
13045 echo "$as_me: failed program was:" >&5
13046sed 's/^/| /' conftest.$ac_ext >&5
13047
13048ac_cv_type_void_p=no
13049fi
13050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13051fi
13052echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13053echo "${ECHO_T}$ac_cv_type_void_p" >&6
13054
13055echo "$as_me:$LINENO: checking size of void *" >&5
13056echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13057if test "${ac_cv_sizeof_void_p+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059else
13060 if test "$ac_cv_type_void_p" = yes; then
13061 # The cast to unsigned long works around a bug in the HP C Compiler
13062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13064 # This bug is HP SR number 8606223364.
13065 if test "$cross_compiling" = yes; then
13066 # Depending upon the size, compute the lo and hi bounds.
13067cat >conftest.$ac_ext <<_ACEOF
13068/* confdefs.h. */
13069_ACEOF
13070cat confdefs.h >>conftest.$ac_ext
13071cat >>conftest.$ac_ext <<_ACEOF
13072/* end confdefs.h. */
13073$ac_includes_default
13074int
13075main ()
13076{
13077static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13078test_array [0] = 0
13079
13080 ;
13081 return 0;
13082}
13083_ACEOF
13084rm -f conftest.$ac_objext
13085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086 (eval $ac_compile) 2>conftest.er1
13087 ac_status=$?
13088 grep -v '^ *+' conftest.er1 >conftest.err
13089 rm -f conftest.er1
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
7357c5b6
AM
13093 { ac_try='test -z "$ac_c_werror_flag"
13094 || test ! -s conftest.err'
d2df793a
NC
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try='test -s conftest.$ac_objext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_lo=0 ac_mid=0
13107 while :; do
13108 cat >conftest.$ac_ext <<_ACEOF
13109/* confdefs.h. */
13110_ACEOF
13111cat confdefs.h >>conftest.$ac_ext
13112cat >>conftest.$ac_ext <<_ACEOF
13113/* end confdefs.h. */
13114$ac_includes_default
13115int
13116main ()
13117{
13118static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13119test_array [0] = 0
13120
13121 ;
13122 return 0;
13123}
13124_ACEOF
13125rm -f conftest.$ac_objext
13126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13127 (eval $ac_compile) 2>conftest.er1
13128 ac_status=$?
13129 grep -v '^ *+' conftest.er1 >conftest.err
13130 rm -f conftest.er1
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
7357c5b6
AM
13134 { ac_try='test -z "$ac_c_werror_flag"
13135 || test ! -s conftest.err'
d2df793a
NC
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try='test -s conftest.$ac_objext'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_hi=$ac_mid; break
13148else
13149 echo "$as_me: failed program was:" >&5
13150sed 's/^/| /' conftest.$ac_ext >&5
13151
13152ac_lo=`expr $ac_mid + 1`
13153 if test $ac_lo -le $ac_mid; then
13154 ac_lo= ac_hi=
13155 break
13156 fi
13157 ac_mid=`expr 2 '*' $ac_mid + 1`
13158fi
13159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13160 done
13161else
13162 echo "$as_me: failed program was:" >&5
13163sed 's/^/| /' conftest.$ac_ext >&5
13164
13165cat >conftest.$ac_ext <<_ACEOF
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
13170/* end confdefs.h. */
13171$ac_includes_default
13172int
13173main ()
13174{
13175static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13176test_array [0] = 0
13177
13178 ;
13179 return 0;
13180}
13181_ACEOF
13182rm -f conftest.$ac_objext
13183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>conftest.er1
13185 ac_status=$?
13186 grep -v '^ *+' conftest.er1 >conftest.err
13187 rm -f conftest.er1
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
7357c5b6
AM
13191 { ac_try='test -z "$ac_c_werror_flag"
13192 || test ! -s conftest.err'
d2df793a
NC
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest.$ac_objext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13204 ac_hi=-1 ac_mid=-1
13205 while :; do
13206 cat >conftest.$ac_ext <<_ACEOF
13207/* confdefs.h. */
13208_ACEOF
13209cat confdefs.h >>conftest.$ac_ext
13210cat >>conftest.$ac_ext <<_ACEOF
13211/* end confdefs.h. */
13212$ac_includes_default
13213int
13214main ()
13215{
13216static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13217test_array [0] = 0
13218
13219 ;
13220 return 0;
13221}
13222_ACEOF
13223rm -f conftest.$ac_objext
13224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225 (eval $ac_compile) 2>conftest.er1
13226 ac_status=$?
13227 grep -v '^ *+' conftest.er1 >conftest.err
13228 rm -f conftest.er1
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } &&
7357c5b6
AM
13232 { ac_try='test -z "$ac_c_werror_flag"
13233 || test ! -s conftest.err'
d2df793a
NC
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; } &&
13239 { ac_try='test -s conftest.$ac_objext'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
13245 ac_lo=$ac_mid; break
13246else
13247 echo "$as_me: failed program was:" >&5
13248sed 's/^/| /' conftest.$ac_ext >&5
13249
13250ac_hi=`expr '(' $ac_mid ')' - 1`
13251 if test $ac_mid -le $ac_hi; then
13252 ac_lo= ac_hi=
13253 break
13254 fi
13255 ac_mid=`expr 2 '*' $ac_mid`
13256fi
13257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13258 done
13259else
13260 echo "$as_me: failed program was:" >&5
13261sed 's/^/| /' conftest.$ac_ext >&5
13262
13263ac_lo= ac_hi=
13264fi
13265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13266fi
13267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13268# Binary search between lo and hi bounds.
13269while test "x$ac_lo" != "x$ac_hi"; do
13270 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13271 cat >conftest.$ac_ext <<_ACEOF
13272/* confdefs.h. */
13273_ACEOF
13274cat confdefs.h >>conftest.$ac_ext
13275cat >>conftest.$ac_ext <<_ACEOF
13276/* end confdefs.h. */
13277$ac_includes_default
13278int
13279main ()
13280{
13281static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13282test_array [0] = 0
13283
13284 ;
13285 return 0;
13286}
13287_ACEOF
13288rm -f conftest.$ac_objext
13289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13290 (eval $ac_compile) 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } &&
7357c5b6
AM
13297 { ac_try='test -z "$ac_c_werror_flag"
13298 || test ! -s conftest.err'
d2df793a
NC
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; } &&
13304 { ac_try='test -s conftest.$ac_objext'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; }; then
13310 ac_hi=$ac_mid
13311else
13312 echo "$as_me: failed program was:" >&5
13313sed 's/^/| /' conftest.$ac_ext >&5
13314
13315ac_lo=`expr '(' $ac_mid ')' + 1`
13316fi
13317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13318done
13319case $ac_lo in
13320?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
13321'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13322echo "$as_me: error: in \`$ac_pwd':" >&2;}
13323{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d2df793a
NC
13324See \`config.log' for more details." >&5
13325echo "$as_me: error: cannot compute sizeof (void *), 77
13326See \`config.log' for more details." >&2;}
7357c5b6 13327 { (exit 1); exit 1; }; }; } ;;
d2df793a
NC
13328esac
13329else
13330 if test "$cross_compiling" = yes; then
7357c5b6
AM
13331 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13332echo "$as_me: error: in \`$ac_pwd':" >&2;}
13333{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13334See \`config.log' for more details." >&5
13335echo "$as_me: error: cannot run test program while cross compiling
13336See \`config.log' for more details." >&2;}
13337 { (exit 1); exit 1; }; }; }
d2df793a
NC
13338else
13339 cat >conftest.$ac_ext <<_ACEOF
13340/* confdefs.h. */
13341_ACEOF
13342cat confdefs.h >>conftest.$ac_ext
13343cat >>conftest.$ac_ext <<_ACEOF
13344/* end confdefs.h. */
13345$ac_includes_default
13346long longval () { return (long) (sizeof (void *)); }
13347unsigned long ulongval () { return (long) (sizeof (void *)); }
13348#include <stdio.h>
13349#include <stdlib.h>
13350int
13351main ()
13352{
13353
13354 FILE *f = fopen ("conftest.val", "w");
13355 if (! f)
13356 exit (1);
13357 if (((long) (sizeof (void *))) < 0)
13358 {
13359 long i = longval ();
13360 if (i != ((long) (sizeof (void *))))
13361 exit (1);
13362 fprintf (f, "%ld\n", i);
13363 }
13364 else
13365 {
13366 unsigned long i = ulongval ();
13367 if (i != ((long) (sizeof (void *))))
13368 exit (1);
13369 fprintf (f, "%lu\n", i);
13370 }
13371 exit (ferror (f) || fclose (f) != 0);
13372
13373 ;
13374 return 0;
13375}
13376_ACEOF
13377rm -f conftest$ac_exeext
13378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13379 (eval $ac_link) 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 ac_cv_sizeof_void_p=`cat conftest.val`
13389else
13390 echo "$as_me: program exited with status $ac_status" >&5
13391echo "$as_me: failed program was:" >&5
13392sed 's/^/| /' conftest.$ac_ext >&5
13393
13394( exit $ac_status )
7357c5b6
AM
13395{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13396echo "$as_me: error: in \`$ac_pwd':" >&2;}
d2df793a
NC
13397{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13398See \`config.log' for more details." >&5
13399echo "$as_me: error: cannot compute sizeof (void *), 77
13400See \`config.log' for more details." >&2;}
7357c5b6 13401 { (exit 1); exit 1; }; }; }
d2df793a
NC
13402fi
13403rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13404fi
13405fi
13406rm -f conftest.val
13407else
13408 ac_cv_sizeof_void_p=0
13409fi
13410fi
13411echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13412echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13413cat >>confdefs.h <<_ACEOF
13414#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13415_ACEOF
13416
13417
2ba49b59
KC
13418echo "$as_me:$LINENO: checking for long" >&5
13419echo $ECHO_N "checking for long... $ECHO_C" >&6
13420if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13422else
13423 cat >conftest.$ac_ext <<_ACEOF
13424/* confdefs.h. */
13425_ACEOF
13426cat confdefs.h >>conftest.$ac_ext
13427cat >>conftest.$ac_ext <<_ACEOF
13428/* end confdefs.h. */
2ba49b59 13429$ac_includes_default
5464f5a1
NN
13430int
13431main ()
13432{
2ba49b59
KC
13433if ((long *) 0)
13434 return 0;
13435if (sizeof (long))
13436 return 0;
5464f5a1
NN
13437 ;
13438 return 0;
13439}
13440_ACEOF
13441rm -f conftest.$ac_objext
13442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13443 (eval $ac_compile) 2>conftest.er1
13444 ac_status=$?
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
7357c5b6
AM
13450 { ac_try='test -z "$ac_c_werror_flag"
13451 || test ! -s conftest.err'
5464f5a1
NN
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } &&
13457 { ac_try='test -s conftest.$ac_objext'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
2ba49b59 13463 ac_cv_type_long=yes
252b5132 13464else
5464f5a1
NN
13465 echo "$as_me: failed program was:" >&5
13466sed 's/^/| /' conftest.$ac_ext >&5
13467
2ba49b59 13468ac_cv_type_long=no
252b5132 13469fi
5464f5a1 13470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13471fi
2ba49b59
KC
13472echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13473echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 13474
2ba49b59
KC
13475echo "$as_me:$LINENO: checking size of long" >&5
13476echo $ECHO_N "checking size of long... $ECHO_C" >&6
13477if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479else
2ba49b59
KC
13480 if test "$ac_cv_type_long" = yes; then
13481 # The cast to unsigned long works around a bug in the HP C Compiler
13482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13484 # This bug is HP SR number 8606223364.
13485 if test "$cross_compiling" = yes; then
13486 # Depending upon the size, compute the lo and hi bounds.
13487cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13488/* confdefs.h. */
13489_ACEOF
13490cat confdefs.h >>conftest.$ac_ext
13491cat >>conftest.$ac_ext <<_ACEOF
13492/* end confdefs.h. */
2ba49b59 13493$ac_includes_default
5464f5a1
NN
13494int
13495main ()
13496{
2ba49b59
KC
13497static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13498test_array [0] = 0
13499
5464f5a1
NN
13500 ;
13501 return 0;
13502}
13503_ACEOF
13504rm -f conftest.$ac_objext
13505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13506 (eval $ac_compile) 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
7357c5b6
AM
13513 { ac_try='test -z "$ac_c_werror_flag"
13514 || test ! -s conftest.err'
5464f5a1
NN
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; } &&
13520 { ac_try='test -s conftest.$ac_objext'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
2ba49b59
KC
13526 ac_lo=0 ac_mid=0
13527 while :; do
13528 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13529/* confdefs.h. */
13530_ACEOF
13531cat confdefs.h >>conftest.$ac_ext
13532cat >>conftest.$ac_ext <<_ACEOF
13533/* end confdefs.h. */
2ba49b59 13534$ac_includes_default
5464f5a1
NN
13535int
13536main ()
13537{
2ba49b59
KC
13538static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13539test_array [0] = 0
13540
5464f5a1
NN
13541 ;
13542 return 0;
13543}
13544_ACEOF
2ba49b59
KC
13545rm -f conftest.$ac_objext
13546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13548 ac_status=$?
13549 grep -v '^ *+' conftest.er1 >conftest.err
13550 rm -f conftest.er1
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
7357c5b6
AM
13554 { ac_try='test -z "$ac_c_werror_flag"
13555 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
2ba49b59 13561 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
2ba49b59 13567 ac_hi=$ac_mid; break
5464f5a1
NN
13568else
13569 echo "$as_me: failed program was:" >&5
13570sed 's/^/| /' conftest.$ac_ext >&5
13571
2ba49b59
KC
13572ac_lo=`expr $ac_mid + 1`
13573 if test $ac_lo -le $ac_mid; then
13574 ac_lo= ac_hi=
13575 break
13576 fi
13577 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 13578fi
2ba49b59
KC
13579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13580 done
13581else
13582 echo "$as_me: failed program was:" >&5
13583sed 's/^/| /' conftest.$ac_ext >&5
13584
13585cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13586/* confdefs.h. */
13587_ACEOF
13588cat confdefs.h >>conftest.$ac_ext
13589cat >>conftest.$ac_ext <<_ACEOF
13590/* end confdefs.h. */
2ba49b59 13591$ac_includes_default
5464f5a1
NN
13592int
13593main ()
13594{
2ba49b59
KC
13595static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13596test_array [0] = 0
13597
5464f5a1
NN
13598 ;
13599 return 0;
13600}
13601_ACEOF
2ba49b59
KC
13602rm -f conftest.$ac_objext
13603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13605 ac_status=$?
13606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
7357c5b6
AM
13611 { ac_try='test -z "$ac_c_werror_flag"
13612 || test ! -s conftest.err'
5464f5a1
NN
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
2ba49b59 13618 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
2ba49b59
KC
13624 ac_hi=-1 ac_mid=-1
13625 while :; do
13626 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13627/* confdefs.h. */
13628_ACEOF
13629cat confdefs.h >>conftest.$ac_ext
13630cat >>conftest.$ac_ext <<_ACEOF
13631/* end confdefs.h. */
2ba49b59 13632$ac_includes_default
5464f5a1
NN
13633int
13634main ()
13635{
2ba49b59
KC
13636static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13637test_array [0] = 0
13638
5464f5a1
NN
13639 ;
13640 return 0;
13641}
13642_ACEOF
2ba49b59
KC
13643rm -f conftest.$ac_objext
13644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
7357c5b6
AM
13652 { ac_try='test -z "$ac_c_werror_flag"
13653 || test ! -s conftest.err'
5464f5a1
NN
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; } &&
2ba49b59 13659 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
2ba49b59 13665 ac_lo=$ac_mid; break
5464f5a1
NN
13666else
13667 echo "$as_me: failed program was:" >&5
13668sed 's/^/| /' conftest.$ac_ext >&5
13669
2ba49b59
KC
13670ac_hi=`expr '(' $ac_mid ')' - 1`
13671 if test $ac_mid -le $ac_hi; then
13672 ac_lo= ac_hi=
13673 break
13674 fi
13675 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 13676fi
2ba49b59
KC
13677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13678 done
13679else
13680 echo "$as_me: failed program was:" >&5
13681sed 's/^/| /' conftest.$ac_ext >&5
13682
13683ac_lo= ac_hi=
13684fi
13685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13686fi
13687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13688# Binary search between lo and hi bounds.
13689while test "x$ac_lo" != "x$ac_hi"; do
13690 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13691 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13692/* confdefs.h. */
13693_ACEOF
13694cat confdefs.h >>conftest.$ac_ext
13695cat >>conftest.$ac_ext <<_ACEOF
13696/* end confdefs.h. */
2ba49b59 13697$ac_includes_default
5464f5a1
NN
13698int
13699main ()
13700{
2ba49b59
KC
13701static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13702test_array [0] = 0
13703
5464f5a1
NN
13704 ;
13705 return 0;
13706}
13707_ACEOF
2ba49b59
KC
13708rm -f conftest.$ac_objext
13709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13710 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13711 ac_status=$?
13712 grep -v '^ *+' conftest.er1 >conftest.err
13713 rm -f conftest.er1
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
7357c5b6
AM
13717 { ac_try='test -z "$ac_c_werror_flag"
13718 || test ! -s conftest.err'
5464f5a1
NN
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } &&
2ba49b59 13724 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
2ba49b59 13730 ac_hi=$ac_mid
5464f5a1
NN
13731else
13732 echo "$as_me: failed program was:" >&5
13733sed 's/^/| /' conftest.$ac_ext >&5
13734
2ba49b59 13735ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 13736fi
2ba49b59
KC
13737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13738done
13739case $ac_lo in
13740?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
13741'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13742echo "$as_me: error: in \`$ac_pwd':" >&2;}
13743{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
2ba49b59
KC
13744See \`config.log' for more details." >&5
13745echo "$as_me: error: cannot compute sizeof (long), 77
13746See \`config.log' for more details." >&2;}
7357c5b6 13747 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
13748esac
13749else
13750 if test "$cross_compiling" = yes; then
7357c5b6
AM
13751 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13752echo "$as_me: error: in \`$ac_pwd':" >&2;}
13753{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13754See \`config.log' for more details." >&5
13755echo "$as_me: error: cannot run test program while cross compiling
13756See \`config.log' for more details." >&2;}
13757 { (exit 1); exit 1; }; }; }
2e0fbf77
JW
13758else
13759 cat >conftest.$ac_ext <<_ACEOF
13760/* confdefs.h. */
13761_ACEOF
13762cat confdefs.h >>conftest.$ac_ext
13763cat >>conftest.$ac_ext <<_ACEOF
13764/* end confdefs.h. */
2ba49b59
KC
13765$ac_includes_default
13766long longval () { return (long) (sizeof (long)); }
13767unsigned long ulongval () { return (long) (sizeof (long)); }
13768#include <stdio.h>
13769#include <stdlib.h>
2e0fbf77
JW
13770int
13771main ()
13772{
13773
2ba49b59
KC
13774 FILE *f = fopen ("conftest.val", "w");
13775 if (! f)
13776 exit (1);
13777 if (((long) (sizeof (long))) < 0)
13778 {
13779 long i = longval ();
13780 if (i != ((long) (sizeof (long))))
13781 exit (1);
13782 fprintf (f, "%ld\n", i);
13783 }
13784 else
13785 {
13786 unsigned long i = ulongval ();
13787 if (i != ((long) (sizeof (long))))
13788 exit (1);
13789 fprintf (f, "%lu\n", i);
13790 }
13791 exit (ferror (f) || fclose (f) != 0);
13792
2e0fbf77
JW
13793 ;
13794 return 0;
13795}
13796_ACEOF
2ba49b59
KC
13797rm -f conftest$ac_exeext
13798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799 (eval $ac_link) 2>&5
2e0fbf77
JW
13800 ac_status=$?
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 13802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
2ba49b59 13808 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 13809else
2ba49b59
KC
13810 echo "$as_me: program exited with status $ac_status" >&5
13811echo "$as_me: failed program was:" >&5
2e0fbf77
JW
13812sed 's/^/| /' conftest.$ac_ext >&5
13813
2ba49b59 13814( exit $ac_status )
7357c5b6
AM
13815{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13816echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
13817{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13818See \`config.log' for more details." >&5
13819echo "$as_me: error: cannot compute sizeof (long), 77
13820See \`config.log' for more details." >&2;}
7357c5b6 13821 { (exit 1); exit 1; }; }; }
2e0fbf77 13822fi
2ba49b59 13823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 13824fi
2ba49b59
KC
13825fi
13826rm -f conftest.val
13827else
13828 ac_cv_sizeof_long=0
13829fi
13830fi
13831echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13832echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13833cat >>confdefs.h <<_ACEOF
13834#define SIZEOF_LONG $ac_cv_sizeof_long
13835_ACEOF
13836
13837
d2df793a
NC
13838
13839if test "x${ac_cv_sizeof_void_p}" = "x8"; then
2ba49b59 13840 host64=true
bce5e5c9
AM
13841fi
13842
13843if test "x${ac_cv_sizeof_long}" = "x8"; then
2ba49b59
KC
13844 BFD_HOST_64BIT_LONG=1
13845 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13846 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13847elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
bce5e5c9 13848 BFD_HOST_64BIT_LONG_LONG=1
2ba49b59
KC
13849 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13850 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
bce5e5c9
AM
13851 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13852 BFD_HOSTPTR_T="unsigned long long"
13853 fi
2ba49b59
KC
13854fi
13855
13856if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13857 BFD_HOST_64_BIT_DEFINED=1
13858 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13859 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13860fi
13861
13862
13863
13864
13865
13866
13867
d2df793a 13868
2ba49b59
KC
13869# Put a plausible default for CC_FOR_BUILD in Makefile.
13870if test -z "$CC_FOR_BUILD"; then
13871 if test "x$cross_compiling" = "xno"; then
13872 CC_FOR_BUILD='$(CC)'
13873 else
13874 CC_FOR_BUILD=gcc
13875 fi
13876fi
13877
13878# Also set EXEEXT_FOR_BUILD.
13879if test "x$cross_compiling" = "xno"; then
13880 EXEEXT_FOR_BUILD='$(EXEEXT)'
13881else
13882 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13883echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13884if test "${bfd_cv_build_exeext+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13886else
13887 rm -f conftest*
13888 echo 'int main () { return 0; }' > conftest.c
13889 bfd_cv_build_exeext=
13890 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13891 for file in conftest.*; do
13892 case $file in
13893 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13894 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13895 esac
13896 done
13897 rm -f conftest*
13898 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13899fi
13900echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13901echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13902 EXEEXT_FOR_BUILD=""
13903 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13904fi
13905
13906
13907
13908
13909
13910
13911
13912
8bc9c892
NC
13913
13914for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
2ba49b59
KC
13915do
13916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13917if eval "test \"\${$as_ac_Header+set}\" = set"; then
13918 echo "$as_me:$LINENO: checking for $ac_header" >&5
13919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13920if eval "test \"\${$as_ac_Header+set}\" = set"; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13922fi
13923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13925else
13926 # Is the header compilable?
13927echo "$as_me:$LINENO: checking $ac_header usability" >&5
13928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13929cat >conftest.$ac_ext <<_ACEOF
13930/* confdefs.h. */
13931_ACEOF
13932cat confdefs.h >>conftest.$ac_ext
13933cat >>conftest.$ac_ext <<_ACEOF
13934/* end confdefs.h. */
13935$ac_includes_default
13936#include <$ac_header>
13937_ACEOF
13938rm -f conftest.$ac_objext
13939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13940 (eval $ac_compile) 2>conftest.er1
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
7357c5b6
AM
13947 { ac_try='test -z "$ac_c_werror_flag"
13948 || test ! -s conftest.err'
2ba49b59
KC
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest.$ac_objext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_header_compiler=yes
13961else
13962 echo "$as_me: failed program was:" >&5
13963sed 's/^/| /' conftest.$ac_ext >&5
13964
13965ac_header_compiler=no
13966fi
13967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13968echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13969echo "${ECHO_T}$ac_header_compiler" >&6
13970
13971# Is the header present?
13972echo "$as_me:$LINENO: checking $ac_header presence" >&5
13973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13974cat >conftest.$ac_ext <<_ACEOF
13975/* confdefs.h. */
13976_ACEOF
13977cat confdefs.h >>conftest.$ac_ext
13978cat >>conftest.$ac_ext <<_ACEOF
13979/* end confdefs.h. */
13980#include <$ac_header>
13981_ACEOF
13982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } >/dev/null; then
13990 if test -s conftest.err; then
13991 ac_cpp_err=$ac_c_preproc_warn_flag
13992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13993 else
13994 ac_cpp_err=
13995 fi
13996else
13997 ac_cpp_err=yes
13998fi
13999if test -z "$ac_cpp_err"; then
14000 ac_header_preproc=yes
14001else
14002 echo "$as_me: failed program was:" >&5
14003sed 's/^/| /' conftest.$ac_ext >&5
14004
14005 ac_header_preproc=no
14006fi
14007rm -f conftest.err conftest.$ac_ext
14008echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14009echo "${ECHO_T}$ac_header_preproc" >&6
14010
14011# So? What about this header?
14012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14013 yes:no: )
14014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14018 ac_header_preproc=yes
14019 ;;
14020 no:yes:* )
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14028echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14033 (
14034 cat <<\_ASBOX
14035## ------------------------------------------ ##
14036## Report this to the AC_PACKAGE_NAME lists. ##
14037## ------------------------------------------ ##
14038_ASBOX
14039 ) |
14040 sed "s/^/$as_me: WARNING: /" >&2
14041 ;;
14042esac
14043echo "$as_me:$LINENO: checking for $ac_header" >&5
14044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14045if eval "test \"\${$as_ac_Header+set}\" = set"; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047else
14048 eval "$as_ac_Header=\$ac_header_preproc"
14049fi
14050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14052
14053fi
14054if test `eval echo '${'$as_ac_Header'}'` = yes; then
14055 cat >>confdefs.h <<_ACEOF
14056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14057_ACEOF
14058
14059fi
14060
14061done
14062
14063
14064
14065
14066for ac_header in fcntl.h sys/file.h sys/time.h
14067do
14068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14069if eval "test \"\${$as_ac_Header+set}\" = set"; then
14070 echo "$as_me:$LINENO: checking for $ac_header" >&5
14071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14072if eval "test \"\${$as_ac_Header+set}\" = set"; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14074fi
14075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14077else
14078 # Is the header compilable?
14079echo "$as_me:$LINENO: checking $ac_header usability" >&5
14080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14081cat >conftest.$ac_ext <<_ACEOF
14082/* confdefs.h. */
14083_ACEOF
14084cat confdefs.h >>conftest.$ac_ext
14085cat >>conftest.$ac_ext <<_ACEOF
14086/* end confdefs.h. */
14087$ac_includes_default
14088#include <$ac_header>
14089_ACEOF
14090rm -f conftest.$ac_objext
14091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14092 (eval $ac_compile) 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
7357c5b6
AM
14099 { ac_try='test -z "$ac_c_werror_flag"
14100 || test ! -s conftest.err'
2ba49b59
KC
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest.$ac_objext'
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 ac_header_compiler=yes
14113else
14114 echo "$as_me: failed program was:" >&5
14115sed 's/^/| /' conftest.$ac_ext >&5
14116
14117ac_header_compiler=no
14118fi
14119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14120echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14121echo "${ECHO_T}$ac_header_compiler" >&6
14122
14123# Is the header present?
14124echo "$as_me:$LINENO: checking $ac_header presence" >&5
14125echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14126cat >conftest.$ac_ext <<_ACEOF
14127/* confdefs.h. */
14128_ACEOF
14129cat confdefs.h >>conftest.$ac_ext
14130cat >>conftest.$ac_ext <<_ACEOF
14131/* end confdefs.h. */
14132#include <$ac_header>
14133_ACEOF
14134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } >/dev/null; then
14142 if test -s conftest.err; then
14143 ac_cpp_err=$ac_c_preproc_warn_flag
14144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14145 else
14146 ac_cpp_err=
14147 fi
14148else
14149 ac_cpp_err=yes
14150fi
14151if test -z "$ac_cpp_err"; then
14152 ac_header_preproc=yes
14153else
14154 echo "$as_me: failed program was:" >&5
14155sed 's/^/| /' conftest.$ac_ext >&5
14156
14157 ac_header_preproc=no
14158fi
14159rm -f conftest.err conftest.$ac_ext
14160echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14161echo "${ECHO_T}$ac_header_preproc" >&6
14162
14163# So? What about this header?
14164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14165 yes:no: )
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14170 ac_header_preproc=yes
14171 ;;
14172 no:yes:* )
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14180echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14185 (
14186 cat <<\_ASBOX
14187## ------------------------------------------ ##
14188## Report this to the AC_PACKAGE_NAME lists. ##
14189## ------------------------------------------ ##
14190_ASBOX
14191 ) |
14192 sed "s/^/$as_me: WARNING: /" >&2
14193 ;;
14194esac
14195echo "$as_me:$LINENO: checking for $ac_header" >&5
14196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14197if eval "test \"\${$as_ac_Header+set}\" = set"; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14199else
14200 eval "$as_ac_Header=\$ac_header_preproc"
14201fi
14202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14204
14205fi
14206if test `eval echo '${'$as_ac_Header'}'` = yes; then
14207 cat >>confdefs.h <<_ACEOF
14208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14209_ACEOF
14210
14211fi
14212
14213done
14214
d5efd9fc
AM
14215
14216
14217inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14218
14219acx_cv_header_stdint=stddef.h
14220acx_cv_header_stdint_kind="(already complete)"
14221for i in stdint.h $inttype_headers; do
14222 unset ac_cv_type_uintptr_t
14223 unset ac_cv_type_uintmax_t
14224 unset ac_cv_type_int_least32_t
14225 unset ac_cv_type_int_fast32_t
14226 unset ac_cv_type_uint64_t
14227 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14228 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14229echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14230if test "${ac_cv_type_uintmax_t+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232else
14233 cat >conftest.$ac_ext <<_ACEOF
14234/* confdefs.h. */
14235_ACEOF
14236cat confdefs.h >>conftest.$ac_ext
14237cat >>conftest.$ac_ext <<_ACEOF
14238/* end confdefs.h. */
14239#include <sys/types.h>
14240#include <$i>
14241
14242int
14243main ()
14244{
14245if ((uintmax_t *) 0)
14246 return 0;
14247if (sizeof (uintmax_t))
14248 return 0;
14249 ;
14250 return 0;
14251}
14252_ACEOF
14253rm -f conftest.$ac_objext
14254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>conftest.er1
14256 ac_status=$?
14257 grep -v '^ *+' conftest.er1 >conftest.err
14258 rm -f conftest.er1
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
7357c5b6
AM
14262 { ac_try='test -z "$ac_c_werror_flag"
14263 || test ! -s conftest.err'
d5efd9fc
AM
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest.$ac_objext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_cv_type_uintmax_t=yes
14276else
14277 echo "$as_me: failed program was:" >&5
14278sed 's/^/| /' conftest.$ac_ext >&5
14279
14280ac_cv_type_uintmax_t=no
14281fi
14282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14283fi
14284echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14285echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14286if test $ac_cv_type_uintmax_t = yes; then
14287 acx_cv_header_stdint=$i
14288else
14289 continue
14290fi
14291
14292 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14293echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14294if test "${ac_cv_type_uintptr_t+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14296else
14297 cat >conftest.$ac_ext <<_ACEOF
14298/* confdefs.h. */
14299_ACEOF
14300cat confdefs.h >>conftest.$ac_ext
14301cat >>conftest.$ac_ext <<_ACEOF
14302/* end confdefs.h. */
14303#include <sys/types.h>
14304#include <$i>
14305
14306int
14307main ()
14308{
14309if ((uintptr_t *) 0)
14310 return 0;
14311if (sizeof (uintptr_t))
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_uintptr_t=yes
14340else
14341 echo "$as_me: failed program was:" >&5
14342sed 's/^/| /' conftest.$ac_ext >&5
14343
14344ac_cv_type_uintptr_t=no
14345fi
14346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14347fi
14348echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14349echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14350if test $ac_cv_type_uintptr_t = yes; then
14351 :
14352else
14353 acx_cv_header_stdint_kind="(mostly complete)"
14354fi
14355
14356 echo "$as_me:$LINENO: checking for int_least32_t" >&5
14357echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14358if test "${ac_cv_type_int_least32_t+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360else
14361 cat >conftest.$ac_ext <<_ACEOF
14362/* confdefs.h. */
14363_ACEOF
14364cat confdefs.h >>conftest.$ac_ext
14365cat >>conftest.$ac_ext <<_ACEOF
14366/* end confdefs.h. */
14367#include <sys/types.h>
14368#include <$i>
14369
14370int
14371main ()
14372{
14373if ((int_least32_t *) 0)
14374 return 0;
14375if (sizeof (int_least32_t))
14376 return 0;
14377 ;
14378 return 0;
14379}
14380_ACEOF
14381rm -f conftest.$ac_objext
14382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14383 (eval $ac_compile) 2>conftest.er1
14384 ac_status=$?
14385 grep -v '^ *+' conftest.er1 >conftest.err
14386 rm -f conftest.er1
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
7357c5b6
AM
14390 { ac_try='test -z "$ac_c_werror_flag"
14391 || test ! -s conftest.err'
d5efd9fc
AM
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try='test -s conftest.$ac_objext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_type_int_least32_t=yes
14404else
14405 echo "$as_me: failed program was:" >&5
14406sed 's/^/| /' conftest.$ac_ext >&5
14407
14408ac_cv_type_int_least32_t=no
14409fi
14410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14411fi
14412echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14413echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14414if test $ac_cv_type_int_least32_t = yes; then
14415 :
14416else
14417 acx_cv_header_stdint_kind="(mostly complete)"
14418fi
14419
14420 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14421echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14422if test "${ac_cv_type_int_fast32_t+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14424else
14425 cat >conftest.$ac_ext <<_ACEOF
14426/* confdefs.h. */
14427_ACEOF
14428cat confdefs.h >>conftest.$ac_ext
14429cat >>conftest.$ac_ext <<_ACEOF
14430/* end confdefs.h. */
14431#include <sys/types.h>
14432#include <$i>
14433
14434int
14435main ()
14436{
14437if ((int_fast32_t *) 0)
14438 return 0;
14439if (sizeof (int_fast32_t))
14440 return 0;
14441 ;
14442 return 0;
14443}
14444_ACEOF
14445rm -f conftest.$ac_objext
14446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447 (eval $ac_compile) 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
7357c5b6
AM
14454 { ac_try='test -z "$ac_c_werror_flag"
14455 || test ! -s conftest.err'
d5efd9fc
AM
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } &&
14461 { ac_try='test -s conftest.$ac_objext'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 ac_cv_type_int_fast32_t=yes
14468else
14469 echo "$as_me: failed program was:" >&5
14470sed 's/^/| /' conftest.$ac_ext >&5
14471
14472ac_cv_type_int_fast32_t=no
14473fi
14474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14475fi
14476echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14477echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14478if test $ac_cv_type_int_fast32_t = yes; then
14479 :
14480else
14481 acx_cv_header_stdint_kind="(mostly complete)"
14482fi
14483
14484 echo "$as_me:$LINENO: checking for uint64_t" >&5
14485echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14486if test "${ac_cv_type_uint64_t+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488else
14489 cat >conftest.$ac_ext <<_ACEOF
14490/* confdefs.h. */
14491_ACEOF
14492cat confdefs.h >>conftest.$ac_ext
14493cat >>conftest.$ac_ext <<_ACEOF
14494/* end confdefs.h. */
14495#include <sys/types.h>
14496#include <$i>
14497
14498int
14499main ()
14500{
14501if ((uint64_t *) 0)
14502 return 0;
14503if (sizeof (uint64_t))
14504 return 0;
14505 ;
14506 return 0;
14507}
14508_ACEOF
14509rm -f conftest.$ac_objext
14510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511 (eval $ac_compile) 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
7357c5b6
AM
14518 { ac_try='test -z "$ac_c_werror_flag"
14519 || test ! -s conftest.err'
d5efd9fc
AM
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try='test -s conftest.$ac_objext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531 ac_cv_type_uint64_t=yes
14532else
14533 echo "$as_me: failed program was:" >&5
14534sed 's/^/| /' conftest.$ac_ext >&5
14535
14536ac_cv_type_uint64_t=no
14537fi
14538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14539fi
14540echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14541echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14542if test $ac_cv_type_uint64_t = yes; then
14543 :
14544else
14545 acx_cv_header_stdint_kind="(lacks uint64_t)"
14546fi
14547
14548 break
14549done
14550if test "$acx_cv_header_stdint" = stddef.h; then
14551 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14552 for i in stdint.h $inttype_headers; do
14553 unset ac_cv_type_uintptr_t
14554 unset ac_cv_type_uint32_t
14555 unset ac_cv_type_uint64_t
14556 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14557 echo "$as_me:$LINENO: checking for uint32_t" >&5
14558echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14559if test "${ac_cv_type_uint32_t+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561else
14562 cat >conftest.$ac_ext <<_ACEOF
14563/* confdefs.h. */
14564_ACEOF
14565cat confdefs.h >>conftest.$ac_ext
14566cat >>conftest.$ac_ext <<_ACEOF
14567/* end confdefs.h. */
14568#include <sys/types.h>
14569#include <$i>
14570
14571int
14572main ()
14573{
14574if ((uint32_t *) 0)
14575 return 0;
14576if (sizeof (uint32_t))
14577 return 0;
14578 ;
14579 return 0;
14580}
14581_ACEOF
14582rm -f conftest.$ac_objext
14583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14584 (eval $ac_compile) 2>conftest.er1
14585 ac_status=$?
14586 grep -v '^ *+' conftest.er1 >conftest.err
14587 rm -f conftest.er1
14588 cat conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
7357c5b6
AM
14591 { ac_try='test -z "$ac_c_werror_flag"
14592 || test ! -s conftest.err'
d5efd9fc
AM
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } &&
14598 { ac_try='test -s conftest.$ac_objext'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
14604 ac_cv_type_uint32_t=yes
14605else
14606 echo "$as_me: failed program was:" >&5
14607sed 's/^/| /' conftest.$ac_ext >&5
14608
14609ac_cv_type_uint32_t=no
14610fi
14611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14612fi
14613echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14614echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14615if test $ac_cv_type_uint32_t = yes; then
14616 acx_cv_header_stdint=$i
14617else
14618 continue
14619fi
14620
14621 echo "$as_me:$LINENO: checking for uint64_t" >&5
14622echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14623if test "${ac_cv_type_uint64_t+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14625else
14626 cat >conftest.$ac_ext <<_ACEOF
14627/* confdefs.h. */
14628_ACEOF
14629cat confdefs.h >>conftest.$ac_ext
14630cat >>conftest.$ac_ext <<_ACEOF
14631/* end confdefs.h. */
14632#include <sys/types.h>
14633#include <$i>
14634
14635int
14636main ()
14637{
14638if ((uint64_t *) 0)
14639 return 0;
14640if (sizeof (uint64_t))
14641 return 0;
14642 ;
14643 return 0;
14644}
14645_ACEOF
14646rm -f conftest.$ac_objext
14647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14648 (eval $ac_compile) 2>conftest.er1
14649 ac_status=$?
14650 grep -v '^ *+' conftest.er1 >conftest.err
14651 rm -f conftest.er1
14652 cat conftest.err >&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
7357c5b6
AM
14655 { ac_try='test -z "$ac_c_werror_flag"
14656 || test ! -s conftest.err'
d5efd9fc
AM
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14668 ac_cv_type_uint64_t=yes
14669else
14670 echo "$as_me: failed program was:" >&5
14671sed 's/^/| /' conftest.$ac_ext >&5
14672
14673ac_cv_type_uint64_t=no
14674fi
14675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14676fi
14677echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14678echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14679
14680 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14681echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14682if test "${ac_cv_type_uintptr_t+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684else
14685 cat >conftest.$ac_ext <<_ACEOF
14686/* confdefs.h. */
14687_ACEOF
14688cat confdefs.h >>conftest.$ac_ext
14689cat >>conftest.$ac_ext <<_ACEOF
14690/* end confdefs.h. */
14691#include <sys/types.h>
14692#include <$i>
14693
14694int
14695main ()
14696{
14697if ((uintptr_t *) 0)
14698 return 0;
14699if (sizeof (uintptr_t))
14700 return 0;
14701 ;
14702 return 0;
14703}
14704_ACEOF
14705rm -f conftest.$ac_objext
14706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14707 (eval $ac_compile) 2>conftest.er1
14708 ac_status=$?
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } &&
7357c5b6
AM
14714 { ac_try='test -z "$ac_c_werror_flag"
14715 || test ! -s conftest.err'
d5efd9fc
AM
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727 ac_cv_type_uintptr_t=yes
14728else
14729 echo "$as_me: failed program was:" >&5
14730sed 's/^/| /' conftest.$ac_ext >&5
14731
14732ac_cv_type_uintptr_t=no
14733fi
14734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14735fi
14736echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14737echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14738
14739 break
14740 done
14741fi
14742if test "$acx_cv_header_stdint" = stddef.h; then
14743 acx_cv_header_stdint_kind="(u_intXX_t style)"
14744 for i in sys/types.h $inttype_headers; do
14745 unset ac_cv_type_u_int32_t
14746 unset ac_cv_type_u_int64_t
14747 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14748 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14749echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14750if test "${ac_cv_type_u_int32_t+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752else
14753 cat >conftest.$ac_ext <<_ACEOF
14754/* confdefs.h. */
14755_ACEOF
14756cat confdefs.h >>conftest.$ac_ext
14757cat >>conftest.$ac_ext <<_ACEOF
14758/* end confdefs.h. */
14759#include <sys/types.h>
14760#include <$i>
14761
14762int
14763main ()
14764{
14765if ((u_int32_t *) 0)
14766 return 0;
14767if (sizeof (u_int32_t))
14768 return 0;
14769 ;
14770 return 0;
14771}
14772_ACEOF
14773rm -f conftest.$ac_objext
14774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775 (eval $ac_compile) 2>conftest.er1
14776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
7357c5b6
AM
14782 { ac_try='test -z "$ac_c_werror_flag"
14783 || test ! -s conftest.err'
d5efd9fc
AM
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try='test -s conftest.$ac_objext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 ac_cv_type_u_int32_t=yes
14796else
14797 echo "$as_me: failed program was:" >&5
14798sed 's/^/| /' conftest.$ac_ext >&5
14799
14800ac_cv_type_u_int32_t=no
14801fi
14802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14803fi
14804echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14805echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14806if test $ac_cv_type_u_int32_t = yes; then
14807 acx_cv_header_stdint=$i
14808else
14809 continue
14810fi
14811
14812 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14813echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14814if test "${ac_cv_type_u_int64_t+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816else
14817 cat >conftest.$ac_ext <<_ACEOF
14818/* confdefs.h. */
14819_ACEOF
14820cat confdefs.h >>conftest.$ac_ext
14821cat >>conftest.$ac_ext <<_ACEOF
14822/* end confdefs.h. */
14823#include <sys/types.h>
14824#include <$i>
14825
14826int
14827main ()
14828{
14829if ((u_int64_t *) 0)
14830 return 0;
14831if (sizeof (u_int64_t))
14832 return 0;
14833 ;
14834 return 0;
14835}
14836_ACEOF
14837rm -f conftest.$ac_objext
14838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839 (eval $ac_compile) 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } &&
7357c5b6
AM
14846 { ac_try='test -z "$ac_c_werror_flag"
14847 || test ! -s conftest.err'
d5efd9fc
AM
14848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849 (eval $ac_try) 2>&5
14850 ac_status=$?
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; } &&
14853 { ac_try='test -s conftest.$ac_objext'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 ac_cv_type_u_int64_t=yes
14860else
14861 echo "$as_me: failed program was:" >&5
14862sed 's/^/| /' conftest.$ac_ext >&5
14863
14864ac_cv_type_u_int64_t=no
14865fi
14866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14867fi
14868echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14869echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14870
14871 break
14872 done
14873fi
14874if test "$acx_cv_header_stdint" = stddef.h; then
14875 acx_cv_header_stdint_kind="(using manual detection)"
14876fi
14877
14878test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14879test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14880test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14881test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14882test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14883
14884# ----------------- Summarize what we found so far
14885
14886echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14887echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14888
14889case `$as_basename bfd_stdint.h ||
14890$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14891 Xbfd_stdint.h : 'X\(//\)$' \| \
14892 Xbfd_stdint.h : 'X\(/\)$' \| \
14893 . : '\(.\)' 2>/dev/null ||
14894echo X/bfd_stdint.h |
14895 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14896 /^X\/\(\/\/\)$/{ s//\1/; q; }
14897 /^X\/\(\/\).*/{ s//\1/; q; }
14898 s/.*/./; q'` in
14899 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14900echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14901 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14902echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14903 *) ;;
14904esac
14905
14906echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14907echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14908
14909# ----------------- done included file, check C basic types --------
14910
14911# Lacking an uintptr_t? Test size of void *
14912case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14913 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14914echo $ECHO_N "checking for void *... $ECHO_C" >&6
14915if test "${ac_cv_type_void_p+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917else
14918 cat >conftest.$ac_ext <<_ACEOF
14919/* confdefs.h. */
14920_ACEOF
14921cat confdefs.h >>conftest.$ac_ext
14922cat >>conftest.$ac_ext <<_ACEOF
14923/* end confdefs.h. */
14924$ac_includes_default
14925int
14926main ()
14927{
14928if ((void * *) 0)
14929 return 0;
14930if (sizeof (void *))
14931 return 0;
14932 ;
14933 return 0;
14934}
14935_ACEOF
14936rm -f conftest.$ac_objext
14937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14938 (eval $ac_compile) 2>conftest.er1
14939 ac_status=$?
14940 grep -v '^ *+' conftest.er1 >conftest.err
14941 rm -f conftest.er1
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } &&
7357c5b6
AM
14945 { ac_try='test -z "$ac_c_werror_flag"
14946 || test ! -s conftest.err'
d5efd9fc
AM
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; } &&
14952 { ac_try='test -s conftest.$ac_objext'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14958 ac_cv_type_void_p=yes
14959else
14960 echo "$as_me: failed program was:" >&5
14961sed 's/^/| /' conftest.$ac_ext >&5
14962
14963ac_cv_type_void_p=no
14964fi
14965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14966fi
14967echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14968echo "${ECHO_T}$ac_cv_type_void_p" >&6
14969
14970echo "$as_me:$LINENO: checking size of void *" >&5
14971echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14972if test "${ac_cv_sizeof_void_p+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974else
14975 if test "$ac_cv_type_void_p" = yes; then
14976 # The cast to unsigned long works around a bug in the HP C Compiler
14977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14979 # This bug is HP SR number 8606223364.
14980 if test "$cross_compiling" = yes; then
14981 # Depending upon the size, compute the lo and hi bounds.
14982cat >conftest.$ac_ext <<_ACEOF
14983/* confdefs.h. */
14984_ACEOF
14985cat confdefs.h >>conftest.$ac_ext
14986cat >>conftest.$ac_ext <<_ACEOF
14987/* end confdefs.h. */
14988$ac_includes_default
14989int
14990main ()
14991{
14992static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14993test_array [0] = 0
14994
14995 ;
14996 return 0;
14997}
14998_ACEOF
14999rm -f conftest.$ac_objext
15000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15001 (eval $ac_compile) 2>conftest.er1
15002 ac_status=$?
15003 grep -v '^ *+' conftest.er1 >conftest.err
15004 rm -f conftest.er1
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
7357c5b6
AM
15008 { ac_try='test -z "$ac_c_werror_flag"
15009 || test ! -s conftest.err'
d5efd9fc
AM
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; } &&
15015 { ac_try='test -s conftest.$ac_objext'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021 ac_lo=0 ac_mid=0
15022 while :; do
15023 cat >conftest.$ac_ext <<_ACEOF
15024/* confdefs.h. */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h. */
15029$ac_includes_default
15030int
15031main ()
15032{
15033static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15034test_array [0] = 0
15035
15036 ;
15037 return 0;
15038}
15039_ACEOF
15040rm -f conftest.$ac_objext
15041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
7357c5b6
AM
15049 { ac_try='test -z "$ac_c_werror_flag"
15050 || test ! -s conftest.err'
d5efd9fc
AM
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_hi=$ac_mid; break
15063else
15064 echo "$as_me: failed program was:" >&5
15065sed 's/^/| /' conftest.$ac_ext >&5
15066
15067ac_lo=`expr $ac_mid + 1`
15068 if test $ac_lo -le $ac_mid; then
15069 ac_lo= ac_hi=
15070 break
15071 fi
15072 ac_mid=`expr 2 '*' $ac_mid + 1`
15073fi
15074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15075 done
15076else
15077 echo "$as_me: failed program was:" >&5
15078sed 's/^/| /' conftest.$ac_ext >&5
15079
15080cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086$ac_includes_default
15087int
15088main ()
15089{
15090static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15091test_array [0] = 0
15092
15093 ;
15094 return 0;
15095}
15096_ACEOF
15097rm -f conftest.$ac_objext
15098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099 (eval $ac_compile) 2>conftest.er1
15100 ac_status=$?
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
7357c5b6
AM
15106 { ac_try='test -z "$ac_c_werror_flag"
15107 || test ! -s conftest.err'
d5efd9fc
AM
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; } &&
15113 { ac_try='test -s conftest.$ac_objext'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15119 ac_hi=-1 ac_mid=-1
15120 while :; do
15121 cat >conftest.$ac_ext <<_ACEOF
15122/* confdefs.h. */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h. */
15127$ac_includes_default
15128int
15129main ()
15130{
15131static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15132test_array [0] = 0
15133
15134 ;
15135 return 0;
15136}
15137_ACEOF
15138rm -f conftest.$ac_objext
15139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15140 (eval $ac_compile) 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
7357c5b6
AM
15147 { ac_try='test -z "$ac_c_werror_flag"
15148 || test ! -s conftest.err'
d5efd9fc
AM
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_lo=$ac_mid; break
15161else
15162 echo "$as_me: failed program was:" >&5
15163sed 's/^/| /' conftest.$ac_ext >&5
15164
15165ac_hi=`expr '(' $ac_mid ')' - 1`
15166 if test $ac_mid -le $ac_hi; then
15167 ac_lo= ac_hi=
15168 break
15169 fi
15170 ac_mid=`expr 2 '*' $ac_mid`
15171fi
15172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15173 done
15174else
15175 echo "$as_me: failed program was:" >&5
15176sed 's/^/| /' conftest.$ac_ext >&5
15177
15178ac_lo= ac_hi=
15179fi
15180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15181fi
15182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15183# Binary search between lo and hi bounds.
15184while test "x$ac_lo" != "x$ac_hi"; do
15185 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15186 cat >conftest.$ac_ext <<_ACEOF
15187/* confdefs.h. */
15188_ACEOF
15189cat confdefs.h >>conftest.$ac_ext
15190cat >>conftest.$ac_ext <<_ACEOF
15191/* end confdefs.h. */
15192$ac_includes_default
15193int
15194main ()
15195{
15196static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15197test_array [0] = 0
15198
15199 ;
15200 return 0;
15201}
15202_ACEOF
15203rm -f conftest.$ac_objext
15204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15205 (eval $ac_compile) 2>conftest.er1
15206 ac_status=$?
15207 grep -v '^ *+' conftest.er1 >conftest.err
15208 rm -f conftest.er1
15209 cat conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } &&
7357c5b6
AM
15212 { ac_try='test -z "$ac_c_werror_flag"
15213 || test ! -s conftest.err'
d5efd9fc
AM
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; } &&
15219 { ac_try='test -s conftest.$ac_objext'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }; then
15225 ac_hi=$ac_mid
15226else
15227 echo "$as_me: failed program was:" >&5
15228sed 's/^/| /' conftest.$ac_ext >&5
15229
15230ac_lo=`expr '(' $ac_mid ')' + 1`
15231fi
15232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15233done
15234case $ac_lo in
15235?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
15236'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15237echo "$as_me: error: in \`$ac_pwd':" >&2;}
15238{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d5efd9fc
AM
15239See \`config.log' for more details." >&5
15240echo "$as_me: error: cannot compute sizeof (void *), 77
15241See \`config.log' for more details." >&2;}
7357c5b6 15242 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15243esac
15244else
15245 if test "$cross_compiling" = yes; then
7357c5b6
AM
15246 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15247echo "$as_me: error: in \`$ac_pwd':" >&2;}
15248{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15249See \`config.log' for more details." >&5
15250echo "$as_me: error: cannot run test program while cross compiling
15251See \`config.log' for more details." >&2;}
15252 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15253else
15254 cat >conftest.$ac_ext <<_ACEOF
15255/* confdefs.h. */
15256_ACEOF
15257cat confdefs.h >>conftest.$ac_ext
15258cat >>conftest.$ac_ext <<_ACEOF
15259/* end confdefs.h. */
15260$ac_includes_default
15261long longval () { return (long) (sizeof (void *)); }
15262unsigned long ulongval () { return (long) (sizeof (void *)); }
15263#include <stdio.h>
15264#include <stdlib.h>
15265int
15266main ()
15267{
15268
15269 FILE *f = fopen ("conftest.val", "w");
15270 if (! f)
15271 exit (1);
15272 if (((long) (sizeof (void *))) < 0)
15273 {
15274 long i = longval ();
15275 if (i != ((long) (sizeof (void *))))
15276 exit (1);
15277 fprintf (f, "%ld\n", i);
15278 }
15279 else
15280 {
15281 unsigned long i = ulongval ();
15282 if (i != ((long) (sizeof (void *))))
15283 exit (1);
15284 fprintf (f, "%lu\n", i);
15285 }
15286 exit (ferror (f) || fclose (f) != 0);
15287
15288 ;
15289 return 0;
15290}
15291_ACEOF
15292rm -f conftest$ac_exeext
15293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15294 (eval $ac_link) 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15303 ac_cv_sizeof_void_p=`cat conftest.val`
15304else
15305 echo "$as_me: program exited with status $ac_status" >&5
15306echo "$as_me: failed program was:" >&5
15307sed 's/^/| /' conftest.$ac_ext >&5
15308
15309( exit $ac_status )
7357c5b6
AM
15310{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15311echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15312{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15313See \`config.log' for more details." >&5
15314echo "$as_me: error: cannot compute sizeof (void *), 77
15315See \`config.log' for more details." >&2;}
7357c5b6 15316 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15317fi
15318rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15319fi
15320fi
15321rm -f conftest.val
15322else
15323 ac_cv_sizeof_void_p=0
15324fi
15325fi
15326echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15327echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15328cat >>confdefs.h <<_ACEOF
15329#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15330_ACEOF
15331
15332 ;;
15333esac
15334
15335# Lacking an uint64_t? Test size of long
15336case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15337 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15338echo $ECHO_N "checking for long... $ECHO_C" >&6
15339if test "${ac_cv_type_long+set}" = set; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15341else
15342 cat >conftest.$ac_ext <<_ACEOF
15343/* confdefs.h. */
15344_ACEOF
15345cat confdefs.h >>conftest.$ac_ext
15346cat >>conftest.$ac_ext <<_ACEOF
15347/* end confdefs.h. */
15348$ac_includes_default
15349int
15350main ()
15351{
15352if ((long *) 0)
15353 return 0;
15354if (sizeof (long))
15355 return 0;
15356 ;
15357 return 0;
15358}
15359_ACEOF
15360rm -f conftest.$ac_objext
15361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362 (eval $ac_compile) 2>conftest.er1
15363 ac_status=$?
15364 grep -v '^ *+' conftest.er1 >conftest.err
15365 rm -f conftest.er1
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } &&
7357c5b6
AM
15369 { ac_try='test -z "$ac_c_werror_flag"
15370 || test ! -s conftest.err'
d5efd9fc
AM
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; } &&
15376 { ac_try='test -s conftest.$ac_objext'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382 ac_cv_type_long=yes
15383else
15384 echo "$as_me: failed program was:" >&5
15385sed 's/^/| /' conftest.$ac_ext >&5
15386
15387ac_cv_type_long=no
15388fi
15389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15390fi
15391echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15392echo "${ECHO_T}$ac_cv_type_long" >&6
15393
15394echo "$as_me:$LINENO: checking size of long" >&5
15395echo $ECHO_N "checking size of long... $ECHO_C" >&6
15396if test "${ac_cv_sizeof_long+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15398else
15399 if test "$ac_cv_type_long" = yes; then
15400 # The cast to unsigned long works around a bug in the HP C Compiler
15401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15403 # This bug is HP SR number 8606223364.
15404 if test "$cross_compiling" = yes; then
15405 # Depending upon the size, compute the lo and hi bounds.
15406cat >conftest.$ac_ext <<_ACEOF
15407/* confdefs.h. */
15408_ACEOF
15409cat confdefs.h >>conftest.$ac_ext
15410cat >>conftest.$ac_ext <<_ACEOF
15411/* end confdefs.h. */
15412$ac_includes_default
15413int
15414main ()
15415{
15416static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15417test_array [0] = 0
15418
15419 ;
15420 return 0;
15421}
15422_ACEOF
15423rm -f conftest.$ac_objext
15424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15425 (eval $ac_compile) 2>conftest.er1
15426 ac_status=$?
15427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
7357c5b6
AM
15432 { ac_try='test -z "$ac_c_werror_flag"
15433 || test ! -s conftest.err'
d5efd9fc
AM
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest.$ac_objext'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 ac_lo=0 ac_mid=0
15446 while :; do
15447 cat >conftest.$ac_ext <<_ACEOF
15448/* confdefs.h. */
15449_ACEOF
15450cat confdefs.h >>conftest.$ac_ext
15451cat >>conftest.$ac_ext <<_ACEOF
15452/* end confdefs.h. */
15453$ac_includes_default
15454int
15455main ()
15456{
15457static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15458test_array [0] = 0
15459
15460 ;
15461 return 0;
15462}
15463_ACEOF
15464rm -f conftest.$ac_objext
15465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466 (eval $ac_compile) 2>conftest.er1
15467 ac_status=$?
15468 grep -v '^ *+' conftest.er1 >conftest.err
15469 rm -f conftest.er1
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
7357c5b6
AM
15473 { ac_try='test -z "$ac_c_werror_flag"
15474 || test ! -s conftest.err'
d5efd9fc
AM
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; } &&
15480 { ac_try='test -s conftest.$ac_objext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 ac_hi=$ac_mid; break
15487else
15488 echo "$as_me: failed program was:" >&5
15489sed 's/^/| /' conftest.$ac_ext >&5
15490
15491ac_lo=`expr $ac_mid + 1`
15492 if test $ac_lo -le $ac_mid; then
15493 ac_lo= ac_hi=
15494 break
15495 fi
15496 ac_mid=`expr 2 '*' $ac_mid + 1`
15497fi
15498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15499 done
15500else
15501 echo "$as_me: failed program was:" >&5
15502sed 's/^/| /' conftest.$ac_ext >&5
15503
15504cat >conftest.$ac_ext <<_ACEOF
15505/* confdefs.h. */
15506_ACEOF
15507cat confdefs.h >>conftest.$ac_ext
15508cat >>conftest.$ac_ext <<_ACEOF
15509/* end confdefs.h. */
15510$ac_includes_default
15511int
15512main ()
15513{
15514static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15515test_array [0] = 0
15516
15517 ;
15518 return 0;
15519}
15520_ACEOF
15521rm -f conftest.$ac_objext
15522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15523 (eval $ac_compile) 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
7357c5b6
AM
15530 { ac_try='test -z "$ac_c_werror_flag"
15531 || test ! -s conftest.err'
d5efd9fc
AM
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; } &&
15537 { ac_try='test -s conftest.$ac_objext'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 ac_hi=-1 ac_mid=-1
15544 while :; do
15545 cat >conftest.$ac_ext <<_ACEOF
15546/* confdefs.h. */
15547_ACEOF
15548cat confdefs.h >>conftest.$ac_ext
15549cat >>conftest.$ac_ext <<_ACEOF
15550/* end confdefs.h. */
15551$ac_includes_default
15552int
15553main ()
15554{
15555static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15556test_array [0] = 0
15557
15558 ;
15559 return 0;
15560}
15561_ACEOF
15562rm -f conftest.$ac_objext
15563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564 (eval $ac_compile) 2>conftest.er1
15565 ac_status=$?
15566 grep -v '^ *+' conftest.er1 >conftest.err
15567 rm -f conftest.er1
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
7357c5b6
AM
15571 { ac_try='test -z "$ac_c_werror_flag"
15572 || test ! -s conftest.err'
d5efd9fc
AM
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; } &&
15578 { ac_try='test -s conftest.$ac_objext'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_lo=$ac_mid; break
15585else
15586 echo "$as_me: failed program was:" >&5
15587sed 's/^/| /' conftest.$ac_ext >&5
15588
15589ac_hi=`expr '(' $ac_mid ')' - 1`
15590 if test $ac_mid -le $ac_hi; then
15591 ac_lo= ac_hi=
15592 break
15593 fi
15594 ac_mid=`expr 2 '*' $ac_mid`
15595fi
15596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15597 done
15598else
15599 echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5
15601
15602ac_lo= ac_hi=
15603fi
15604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15605fi
15606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15607# Binary search between lo and hi bounds.
15608while test "x$ac_lo" != "x$ac_hi"; do
15609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15610 cat >conftest.$ac_ext <<_ACEOF
15611/* confdefs.h. */
15612_ACEOF
15613cat confdefs.h >>conftest.$ac_ext
15614cat >>conftest.$ac_ext <<_ACEOF
15615/* end confdefs.h. */
15616$ac_includes_default
15617int
15618main ()
15619{
15620static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15621test_array [0] = 0
15622
15623 ;
15624 return 0;
15625}
15626_ACEOF
15627rm -f conftest.$ac_objext
15628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>conftest.er1
15630 ac_status=$?
15631 grep -v '^ *+' conftest.er1 >conftest.err
15632 rm -f conftest.er1
15633 cat conftest.err >&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
7357c5b6
AM
15636 { ac_try='test -z "$ac_c_werror_flag"
15637 || test ! -s conftest.err'
d5efd9fc
AM
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15640 ac_status=$?
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try='test -s conftest.$ac_objext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15649 ac_hi=$ac_mid
15650else
15651 echo "$as_me: failed program was:" >&5
15652sed 's/^/| /' conftest.$ac_ext >&5
15653
15654ac_lo=`expr '(' $ac_mid ')' + 1`
15655fi
15656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15657done
15658case $ac_lo in
15659?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
15660'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15661echo "$as_me: error: in \`$ac_pwd':" >&2;}
15662{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
d5efd9fc
AM
15663See \`config.log' for more details." >&5
15664echo "$as_me: error: cannot compute sizeof (long), 77
15665See \`config.log' for more details." >&2;}
7357c5b6 15666 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15667esac
15668else
15669 if test "$cross_compiling" = yes; then
7357c5b6
AM
15670 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15671echo "$as_me: error: in \`$ac_pwd':" >&2;}
15672{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15673See \`config.log' for more details." >&5
15674echo "$as_me: error: cannot run test program while cross compiling
15675See \`config.log' for more details." >&2;}
15676 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15677else
15678 cat >conftest.$ac_ext <<_ACEOF
15679/* confdefs.h. */
15680_ACEOF
15681cat confdefs.h >>conftest.$ac_ext
15682cat >>conftest.$ac_ext <<_ACEOF
15683/* end confdefs.h. */
15684$ac_includes_default
15685long longval () { return (long) (sizeof (long)); }
15686unsigned long ulongval () { return (long) (sizeof (long)); }
15687#include <stdio.h>
15688#include <stdlib.h>
15689int
15690main ()
15691{
15692
15693 FILE *f = fopen ("conftest.val", "w");
15694 if (! f)
15695 exit (1);
15696 if (((long) (sizeof (long))) < 0)
15697 {
15698 long i = longval ();
15699 if (i != ((long) (sizeof (long))))
15700 exit (1);
15701 fprintf (f, "%ld\n", i);
15702 }
15703 else
15704 {
15705 unsigned long i = ulongval ();
15706 if (i != ((long) (sizeof (long))))
15707 exit (1);
15708 fprintf (f, "%lu\n", i);
15709 }
15710 exit (ferror (f) || fclose (f) != 0);
15711
15712 ;
15713 return 0;
15714}
15715_ACEOF
15716rm -f conftest$ac_exeext
15717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15718 (eval $ac_link) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 ac_cv_sizeof_long=`cat conftest.val`
15728else
15729 echo "$as_me: program exited with status $ac_status" >&5
15730echo "$as_me: failed program was:" >&5
15731sed 's/^/| /' conftest.$ac_ext >&5
15732
15733( exit $ac_status )
7357c5b6
AM
15734{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15735echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15736{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15737See \`config.log' for more details." >&5
15738echo "$as_me: error: cannot compute sizeof (long), 77
15739See \`config.log' for more details." >&2;}
7357c5b6 15740 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15741fi
15742rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15743fi
15744fi
15745rm -f conftest.val
15746else
15747 ac_cv_sizeof_long=0
15748fi
15749fi
15750echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15751echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15752cat >>confdefs.h <<_ACEOF
15753#define SIZEOF_LONG $ac_cv_sizeof_long
15754_ACEOF
15755
15756 ;;
15757esac
15758
15759if test $acx_cv_header_stdint = stddef.h; then
15760 # Lacking a good header? Test size of everything and deduce all types.
15761 echo "$as_me:$LINENO: checking for int" >&5
15762echo $ECHO_N "checking for int... $ECHO_C" >&6
15763if test "${ac_cv_type_int+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15765else
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{
15776if ((int *) 0)
15777 return 0;
15778if (sizeof (int))
15779 return 0;
15780 ;
15781 return 0;
15782}
15783_ACEOF
15784rm -f conftest.$ac_objext
15785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786 (eval $ac_compile) 2>conftest.er1
15787 ac_status=$?
15788 grep -v '^ *+' conftest.er1 >conftest.err
15789 rm -f conftest.er1
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } &&
7357c5b6
AM
15793 { ac_try='test -z "$ac_c_werror_flag"
15794 || test ! -s conftest.err'
d5efd9fc
AM
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try='test -s conftest.$ac_objext'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 ac_cv_type_int=yes
15807else
15808 echo "$as_me: failed program was:" >&5
15809sed 's/^/| /' conftest.$ac_ext >&5
15810
15811ac_cv_type_int=no
15812fi
15813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15814fi
15815echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15816echo "${ECHO_T}$ac_cv_type_int" >&6
15817
15818echo "$as_me:$LINENO: checking size of int" >&5
15819echo $ECHO_N "checking size of int... $ECHO_C" >&6
15820if test "${ac_cv_sizeof_int+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15822else
15823 if test "$ac_cv_type_int" = yes; then
15824 # The cast to unsigned long works around a bug in the HP C Compiler
15825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15827 # This bug is HP SR number 8606223364.
15828 if test "$cross_compiling" = yes; then
15829 # Depending upon the size, compute the lo and hi bounds.
15830cat >conftest.$ac_ext <<_ACEOF
15831/* confdefs.h. */
15832_ACEOF
15833cat confdefs.h >>conftest.$ac_ext
15834cat >>conftest.$ac_ext <<_ACEOF
15835/* end confdefs.h. */
15836$ac_includes_default
15837int
15838main ()
15839{
15840static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15841test_array [0] = 0
15842
15843 ;
15844 return 0;
15845}
15846_ACEOF
15847rm -f conftest.$ac_objext
15848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>conftest.er1
15850 ac_status=$?
15851 grep -v '^ *+' conftest.er1 >conftest.err
15852 rm -f conftest.er1
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
7357c5b6
AM
15856 { ac_try='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
d5efd9fc
AM
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest.$ac_objext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_lo=0 ac_mid=0
15870 while :; do
15871 cat >conftest.$ac_ext <<_ACEOF
15872/* confdefs.h. */
15873_ACEOF
15874cat confdefs.h >>conftest.$ac_ext
15875cat >>conftest.$ac_ext <<_ACEOF
15876/* end confdefs.h. */
15877$ac_includes_default
15878int
15879main ()
15880{
15881static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15882test_array [0] = 0
15883
15884 ;
15885 return 0;
15886}
15887_ACEOF
15888rm -f conftest.$ac_objext
15889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15890 (eval $ac_compile) 2>conftest.er1
15891 ac_status=$?
15892 grep -v '^ *+' conftest.er1 >conftest.err
15893 rm -f conftest.er1
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } &&
7357c5b6
AM
15897 { ac_try='test -z "$ac_c_werror_flag"
15898 || test ! -s conftest.err'
d5efd9fc
AM
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest.$ac_objext'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 ac_hi=$ac_mid; break
15911else
15912 echo "$as_me: failed program was:" >&5
15913sed 's/^/| /' conftest.$ac_ext >&5
15914
15915ac_lo=`expr $ac_mid + 1`
15916 if test $ac_lo -le $ac_mid; then
15917 ac_lo= ac_hi=
15918 break
15919 fi
15920 ac_mid=`expr 2 '*' $ac_mid + 1`
15921fi
15922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15923 done
15924else
15925 echo "$as_me: failed program was:" >&5
15926sed 's/^/| /' conftest.$ac_ext >&5
15927
15928cat >conftest.$ac_ext <<_ACEOF
15929/* confdefs.h. */
15930_ACEOF
15931cat confdefs.h >>conftest.$ac_ext
15932cat >>conftest.$ac_ext <<_ACEOF
15933/* end confdefs.h. */
15934$ac_includes_default
15935int
15936main ()
15937{
15938static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15939test_array [0] = 0
15940
15941 ;
15942 return 0;
15943}
15944_ACEOF
15945rm -f conftest.$ac_objext
15946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15947 (eval $ac_compile) 2>conftest.er1
15948 ac_status=$?
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
7357c5b6
AM
15954 { ac_try='test -z "$ac_c_werror_flag"
15955 || test ! -s conftest.err'
d5efd9fc
AM
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest.$ac_objext'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; }; then
15967 ac_hi=-1 ac_mid=-1
15968 while :; do
15969 cat >conftest.$ac_ext <<_ACEOF
15970/* confdefs.h. */
15971_ACEOF
15972cat confdefs.h >>conftest.$ac_ext
15973cat >>conftest.$ac_ext <<_ACEOF
15974/* end confdefs.h. */
15975$ac_includes_default
15976int
15977main ()
15978{
15979static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15980test_array [0] = 0
15981
15982 ;
15983 return 0;
15984}
15985_ACEOF
15986rm -f conftest.$ac_objext
15987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15988 (eval $ac_compile) 2>conftest.er1
15989 ac_status=$?
15990 grep -v '^ *+' conftest.er1 >conftest.err
15991 rm -f conftest.er1
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } &&
7357c5b6
AM
15995 { ac_try='test -z "$ac_c_werror_flag"
15996 || test ! -s conftest.err'
d5efd9fc
AM
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
15999 ac_status=$?
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; } &&
16002 { ac_try='test -s conftest.$ac_objext'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16008 ac_lo=$ac_mid; break
16009else
16010 echo "$as_me: failed program was:" >&5
16011sed 's/^/| /' conftest.$ac_ext >&5
16012
16013ac_hi=`expr '(' $ac_mid ')' - 1`
16014 if test $ac_mid -le $ac_hi; then
16015 ac_lo= ac_hi=
16016 break
16017 fi
16018 ac_mid=`expr 2 '*' $ac_mid`
16019fi
16020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16021 done
16022else
16023 echo "$as_me: failed program was:" >&5
16024sed 's/^/| /' conftest.$ac_ext >&5
16025
16026ac_lo= ac_hi=
16027fi
16028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16029fi
16030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16031# Binary search between lo and hi bounds.
16032while test "x$ac_lo" != "x$ac_hi"; do
16033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16034 cat >conftest.$ac_ext <<_ACEOF
16035/* confdefs.h. */
16036_ACEOF
16037cat confdefs.h >>conftest.$ac_ext
16038cat >>conftest.$ac_ext <<_ACEOF
16039/* end confdefs.h. */
16040$ac_includes_default
16041int
16042main ()
16043{
16044static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16045test_array [0] = 0
16046
16047 ;
16048 return 0;
16049}
16050_ACEOF
16051rm -f conftest.$ac_objext
16052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16053 (eval $ac_compile) 2>conftest.er1
16054 ac_status=$?
16055 grep -v '^ *+' conftest.er1 >conftest.err
16056 rm -f conftest.er1
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
7357c5b6
AM
16060 { ac_try='test -z "$ac_c_werror_flag"
16061 || test ! -s conftest.err'
d5efd9fc
AM
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; } &&
16067 { ac_try='test -s conftest.$ac_objext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16070 ac_status=$?
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 ac_hi=$ac_mid
16074else
16075 echo "$as_me: failed program was:" >&5
16076sed 's/^/| /' conftest.$ac_ext >&5
16077
16078ac_lo=`expr '(' $ac_mid ')' + 1`
16079fi
16080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16081done
16082case $ac_lo in
16083?*) ac_cv_sizeof_int=$ac_lo;;
7357c5b6
AM
16084'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16085echo "$as_me: error: in \`$ac_pwd':" >&2;}
16086{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
d5efd9fc
AM
16087See \`config.log' for more details." >&5
16088echo "$as_me: error: cannot compute sizeof (int), 77
16089See \`config.log' for more details." >&2;}
7357c5b6 16090 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16091esac
16092else
16093 if test "$cross_compiling" = yes; then
7357c5b6
AM
16094 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16095echo "$as_me: error: in \`$ac_pwd':" >&2;}
16096{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16097See \`config.log' for more details." >&5
16098echo "$as_me: error: cannot run test program while cross compiling
16099See \`config.log' for more details." >&2;}
16100 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16101else
16102 cat >conftest.$ac_ext <<_ACEOF
16103/* confdefs.h. */
16104_ACEOF
16105cat confdefs.h >>conftest.$ac_ext
16106cat >>conftest.$ac_ext <<_ACEOF
16107/* end confdefs.h. */
16108$ac_includes_default
16109long longval () { return (long) (sizeof (int)); }
16110unsigned long ulongval () { return (long) (sizeof (int)); }
16111#include <stdio.h>
16112#include <stdlib.h>
16113int
16114main ()
16115{
16116
16117 FILE *f = fopen ("conftest.val", "w");
16118 if (! f)
16119 exit (1);
16120 if (((long) (sizeof (int))) < 0)
16121 {
16122 long i = longval ();
16123 if (i != ((long) (sizeof (int))))
16124 exit (1);
16125 fprintf (f, "%ld\n", i);
16126 }
16127 else
16128 {
16129 unsigned long i = ulongval ();
16130 if (i != ((long) (sizeof (int))))
16131 exit (1);
16132 fprintf (f, "%lu\n", i);
16133 }
16134 exit (ferror (f) || fclose (f) != 0);
16135
16136 ;
16137 return 0;
16138}
16139_ACEOF
16140rm -f conftest$ac_exeext
16141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16142 (eval $ac_link) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ac_cv_sizeof_int=`cat conftest.val`
16152else
16153 echo "$as_me: program exited with status $ac_status" >&5
16154echo "$as_me: failed program was:" >&5
16155sed 's/^/| /' conftest.$ac_ext >&5
16156
16157( exit $ac_status )
7357c5b6
AM
16158{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16159echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
16160{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16161See \`config.log' for more details." >&5
16162echo "$as_me: error: cannot compute sizeof (int), 77
16163See \`config.log' for more details." >&2;}
7357c5b6 16164 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16165fi
16166rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16167fi
16168fi
16169rm -f conftest.val
16170else
16171 ac_cv_sizeof_int=0
16172fi
16173fi
16174echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16175echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16176cat >>confdefs.h <<_ACEOF
16177#define SIZEOF_INT $ac_cv_sizeof_int
16178_ACEOF
16179
16180
16181 echo "$as_me:$LINENO: checking for short" >&5
16182echo $ECHO_N "checking for short... $ECHO_C" >&6
16183if test "${ac_cv_type_short+set}" = set; then
16184 echo $ECHO_N "(cached) $ECHO_C" >&6
16185else
16186 cat >conftest.$ac_ext <<_ACEOF
16187/* confdefs.h. */
16188_ACEOF
16189cat confdefs.h >>conftest.$ac_ext
16190cat >>conftest.$ac_ext <<_ACEOF
16191/* end confdefs.h. */
16192$ac_includes_default
16193int
16194main ()
16195{
16196if ((short *) 0)
16197 return 0;
16198if (sizeof (short))
16199 return 0;
16200 ;
16201 return 0;
16202}
16203_ACEOF
16204rm -f conftest.$ac_objext
16205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16206 (eval $ac_compile) 2>conftest.er1
16207 ac_status=$?
16208 grep -v '^ *+' conftest.er1 >conftest.err
16209 rm -f conftest.er1
16210 cat conftest.err >&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
7357c5b6
AM
16213 { ac_try='test -z "$ac_c_werror_flag"
16214 || test ! -s conftest.err'
d5efd9fc
AM
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; } &&
16220 { ac_try='test -s conftest.$ac_objext'
16221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222 (eval $ac_try) 2>&5
16223 ac_status=$?
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16226 ac_cv_type_short=yes
16227else
16228 echo "$as_me: failed program was:" >&5
16229sed 's/^/| /' conftest.$ac_ext >&5
16230
16231ac_cv_type_short=no
16232fi
16233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16234fi
16235echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16236echo "${ECHO_T}$ac_cv_type_short" >&6
16237
16238echo "$as_me:$LINENO: checking size of short" >&5
16239echo $ECHO_N "checking size of short... $ECHO_C" >&6
16240if test "${ac_cv_sizeof_short+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16242else
16243 if test "$ac_cv_type_short" = yes; then
16244 # The cast to unsigned long works around a bug in the HP C Compiler
16245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16247 # This bug is HP SR number 8606223364.
16248 if test "$cross_compiling" = yes; then
16249 # Depending upon the size, compute the lo and hi bounds.
16250cat >conftest.$ac_ext <<_ACEOF
16251/* confdefs.h. */
16252_ACEOF
16253cat confdefs.h >>conftest.$ac_ext
16254cat >>conftest.$ac_ext <<_ACEOF
16255/* end confdefs.h. */
16256$ac_includes_default
16257int
16258main ()
16259{
16260static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16261test_array [0] = 0
16262
16263 ;
16264 return 0;
16265}
16266_ACEOF
16267rm -f conftest.$ac_objext
16268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16269 (eval $ac_compile) 2>conftest.er1
16270 ac_status=$?
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } &&
7357c5b6
AM
16276 { ac_try='test -z "$ac_c_werror_flag"
16277 || test ! -s conftest.err'
d5efd9fc
AM
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; } &&
16283 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16289 ac_lo=0 ac_mid=0
16290 while :; do
16291 cat >conftest.$ac_ext <<_ACEOF
16292/* confdefs.h. */
16293_ACEOF
16294cat confdefs.h >>conftest.$ac_ext
16295cat >>conftest.$ac_ext <<_ACEOF
16296/* end confdefs.h. */
16297$ac_includes_default
16298int
16299main ()
16300{
16301static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16302test_array [0] = 0
16303
16304 ;
16305 return 0;
16306}
16307_ACEOF
16308rm -f conftest.$ac_objext
16309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
7357c5b6
AM
16317 { ac_try='test -z "$ac_c_werror_flag"
16318 || test ! -s conftest.err'
d5efd9fc
AM
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest.$ac_objext'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ac_hi=$ac_mid; break
16331else
16332 echo "$as_me: failed program was:" >&5
16333sed 's/^/| /' conftest.$ac_ext >&5
16334
16335ac_lo=`expr $ac_mid + 1`
16336 if test $ac_lo -le $ac_mid; then
16337 ac_lo= ac_hi=
16338 break
16339 fi
16340 ac_mid=`expr 2 '*' $ac_mid + 1`
16341fi
16342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16343 done
16344else
16345 echo "$as_me: failed program was:" >&5
16346sed 's/^/| /' conftest.$ac_ext >&5
16347
16348cat >conftest.$ac_ext <<_ACEOF
16349/* confdefs.h. */
16350_ACEOF
16351cat confdefs.h >>conftest.$ac_ext
16352cat >>conftest.$ac_ext <<_ACEOF
16353/* end confdefs.h. */
16354$ac_includes_default
16355int
16356main ()
16357{
16358static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16359test_array [0] = 0
16360
16361 ;
16362 return 0;
16363}
16364_ACEOF
16365rm -f conftest.$ac_objext
16366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16367 (eval $ac_compile) 2>conftest.er1
16368 ac_status=$?
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
7357c5b6
AM
16374 { ac_try='test -z "$ac_c_werror_flag"
16375 || test ! -s conftest.err'
d5efd9fc
AM
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try='test -s conftest.$ac_objext'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16384 ac_status=$?
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; }; then
16387 ac_hi=-1 ac_mid=-1
16388 while :; do
16389 cat >conftest.$ac_ext <<_ACEOF
16390/* confdefs.h. */
16391_ACEOF
16392cat confdefs.h >>conftest.$ac_ext
16393cat >>conftest.$ac_ext <<_ACEOF
16394/* end confdefs.h. */
16395$ac_includes_default
16396int
16397main ()
16398{
16399static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16400test_array [0] = 0
16401
16402 ;
16403 return 0;
16404}
16405_ACEOF
16406rm -f conftest.$ac_objext
16407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16408 (eval $ac_compile) 2>conftest.er1
16409 ac_status=$?
16410 grep -v '^ *+' conftest.er1 >conftest.err
16411 rm -f conftest.er1
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
7357c5b6
AM
16415 { ac_try='test -z "$ac_c_werror_flag"
16416 || test ! -s conftest.err'
d5efd9fc
AM
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); }; } &&
16422 { ac_try='test -s conftest.$ac_objext'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16428 ac_lo=$ac_mid; break
16429else
16430 echo "$as_me: failed program was:" >&5
16431sed 's/^/| /' conftest.$ac_ext >&5
16432
16433ac_hi=`expr '(' $ac_mid ')' - 1`
16434 if test $ac_mid -le $ac_hi; then
16435 ac_lo= ac_hi=
16436 break
16437 fi
16438 ac_mid=`expr 2 '*' $ac_mid`
16439fi
16440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16441 done
16442else
16443 echo "$as_me: failed program was:" >&5
16444sed 's/^/| /' conftest.$ac_ext >&5
16445
16446ac_lo= ac_hi=
16447fi
16448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16449fi
16450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16451# Binary search between lo and hi bounds.
16452while test "x$ac_lo" != "x$ac_hi"; do
16453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16454 cat >conftest.$ac_ext <<_ACEOF
16455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
16460$ac_includes_default
16461int
16462main ()
16463{
16464static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16465test_array [0] = 0
16466
16467 ;
16468 return 0;
16469}
16470_ACEOF
16471rm -f conftest.$ac_objext
16472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16473 (eval $ac_compile) 2>conftest.er1
16474 ac_status=$?
16475 grep -v '^ *+' conftest.er1 >conftest.err
16476 rm -f conftest.er1
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
7357c5b6
AM
16480 { ac_try='test -z "$ac_c_werror_flag"
16481 || test ! -s conftest.err'
d5efd9fc
AM
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); }; } &&
16487 { ac_try='test -s conftest.$ac_objext'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_hi=$ac_mid
16494else
16495 echo "$as_me: failed program was:" >&5
16496sed 's/^/| /' conftest.$ac_ext >&5
16497
16498ac_lo=`expr '(' $ac_mid ')' + 1`
16499fi
16500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16501done
16502case $ac_lo in
16503?*) ac_cv_sizeof_short=$ac_lo;;
7357c5b6
AM
16504'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16505echo "$as_me: error: in \`$ac_pwd':" >&2;}
16506{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
d5efd9fc
AM
16507See \`config.log' for more details." >&5
16508echo "$as_me: error: cannot compute sizeof (short), 77
16509See \`config.log' for more details." >&2;}
7357c5b6 16510 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16511esac
16512else
16513 if test "$cross_compiling" = yes; then
7357c5b6
AM
16514 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16515echo "$as_me: error: in \`$ac_pwd':" >&2;}
16516{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16517See \`config.log' for more details." >&5
16518echo "$as_me: error: cannot run test program while cross compiling
16519See \`config.log' for more details." >&2;}
16520 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16521else
16522 cat >conftest.$ac_ext <<_ACEOF
16523/* confdefs.h. */
16524_ACEOF
16525cat confdefs.h >>conftest.$ac_ext
16526cat >>conftest.$ac_ext <<_ACEOF
16527/* end confdefs.h. */
16528$ac_includes_default
16529long longval () { return (long) (sizeof (short)); }
16530unsigned long ulongval () { return (long) (sizeof (short)); }
16531#include <stdio.h>
16532#include <stdlib.h>
16533int
16534main ()
16535{
16536
16537 FILE *f = fopen ("conftest.val", "w");
16538 if (! f)
16539 exit (1);
16540 if (((long) (sizeof (short))) < 0)
16541 {
16542 long i = longval ();
16543 if (i != ((long) (sizeof (short))))
16544 exit (1);
16545 fprintf (f, "%ld\n", i);
16546 }
16547 else
16548 {
16549 unsigned long i = ulongval ();
16550 if (i != ((long) (sizeof (short))))
16551 exit (1);
16552 fprintf (f, "%lu\n", i);
16553 }
16554 exit (ferror (f) || fclose (f) != 0);
16555
16556 ;
16557 return 0;
16558}
16559_ACEOF
16560rm -f conftest$ac_exeext
16561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16562 (eval $ac_link) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 ac_cv_sizeof_short=`cat conftest.val`
16572else
16573 echo "$as_me: program exited with status $ac_status" >&5
16574echo "$as_me: failed program was:" >&5
16575sed 's/^/| /' conftest.$ac_ext >&5
16576
16577( exit $ac_status )
7357c5b6
AM
16578{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16579echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
16580{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16581See \`config.log' for more details." >&5
16582echo "$as_me: error: cannot compute sizeof (short), 77
16583See \`config.log' for more details." >&2;}
7357c5b6 16584 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16585fi
16586rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16587fi
16588fi
16589rm -f conftest.val
16590else
16591 ac_cv_sizeof_short=0
16592fi
16593fi
16594echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16595echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16596cat >>confdefs.h <<_ACEOF
16597#define SIZEOF_SHORT $ac_cv_sizeof_short
16598_ACEOF
16599
16600
16601 echo "$as_me:$LINENO: checking for char" >&5
16602echo $ECHO_N "checking for char... $ECHO_C" >&6
16603if test "${ac_cv_type_char+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16605else
16606 cat >conftest.$ac_ext <<_ACEOF
16607/* confdefs.h. */
16608_ACEOF
16609cat confdefs.h >>conftest.$ac_ext
16610cat >>conftest.$ac_ext <<_ACEOF
16611/* end confdefs.h. */
16612$ac_includes_default
16613int
16614main ()
16615{
16616if ((char *) 0)
16617 return 0;
16618if (sizeof (char))
16619 return 0;
16620 ;
16621 return 0;
16622}
16623_ACEOF
16624rm -f conftest.$ac_objext
16625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16626 (eval $ac_compile) 2>conftest.er1
16627 ac_status=$?
16628 grep -v '^ *+' conftest.er1 >conftest.err
16629 rm -f conftest.er1
16630 cat conftest.err >&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
7357c5b6
AM
16633 { ac_try='test -z "$ac_c_werror_flag"
16634 || test ! -s conftest.err'
d5efd9fc
AM
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; } &&
16640 { ac_try='test -s conftest.$ac_objext'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16643 ac_status=$?
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; }; then
16646 ac_cv_type_char=yes
16647else
16648 echo "$as_me: failed program was:" >&5
16649sed 's/^/| /' conftest.$ac_ext >&5
16650
16651ac_cv_type_char=no
16652fi
16653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16654fi
16655echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16656echo "${ECHO_T}$ac_cv_type_char" >&6
16657
16658echo "$as_me:$LINENO: checking size of char" >&5
16659echo $ECHO_N "checking size of char... $ECHO_C" >&6
16660if test "${ac_cv_sizeof_char+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662else
16663 if test "$ac_cv_type_char" = yes; then
16664 # The cast to unsigned long works around a bug in the HP C Compiler
16665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16667 # This bug is HP SR number 8606223364.
16668 if test "$cross_compiling" = yes; then
16669 # Depending upon the size, compute the lo and hi bounds.
16670cat >conftest.$ac_ext <<_ACEOF
16671/* confdefs.h. */
16672_ACEOF
16673cat confdefs.h >>conftest.$ac_ext
16674cat >>conftest.$ac_ext <<_ACEOF
16675/* end confdefs.h. */
16676$ac_includes_default
16677int
16678main ()
16679{
16680static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16681test_array [0] = 0
16682
16683 ;
16684 return 0;
16685}
16686_ACEOF
16687rm -f conftest.$ac_objext
16688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16689 (eval $ac_compile) 2>conftest.er1
16690 ac_status=$?
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
7357c5b6
AM
16696 { ac_try='test -z "$ac_c_werror_flag"
16697 || test ! -s conftest.err'
d5efd9fc
AM
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest.$ac_objext'
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; }; then
16709 ac_lo=0 ac_mid=0
16710 while :; do
16711 cat >conftest.$ac_ext <<_ACEOF
16712/* confdefs.h. */
16713_ACEOF
16714cat confdefs.h >>conftest.$ac_ext
16715cat >>conftest.$ac_ext <<_ACEOF
16716/* end confdefs.h. */
16717$ac_includes_default
16718int
16719main ()
16720{
16721static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16722test_array [0] = 0
16723
16724 ;
16725 return 0;
16726}
16727_ACEOF
16728rm -f conftest.$ac_objext
16729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16730 (eval $ac_compile) 2>conftest.er1
16731 ac_status=$?
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
7357c5b6
AM
16737 { ac_try='test -z "$ac_c_werror_flag"
16738 || test ! -s conftest.err'
d5efd9fc
AM
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 { ac_try='test -s conftest.$ac_objext'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 ac_hi=$ac_mid; break
16751else
16752 echo "$as_me: failed program was:" >&5
16753sed 's/^/| /' conftest.$ac_ext >&5
16754
16755ac_lo=`expr $ac_mid + 1`
16756 if test $ac_lo -le $ac_mid; then
16757 ac_lo= ac_hi=
16758 break
16759 fi
16760 ac_mid=`expr 2 '*' $ac_mid + 1`
16761fi
16762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16763 done
16764else
16765 echo "$as_me: failed program was:" >&5
16766sed 's/^/| /' conftest.$ac_ext >&5
16767
16768cat >conftest.$ac_ext <<_ACEOF
16769/* confdefs.h. */
16770_ACEOF
16771cat confdefs.h >>conftest.$ac_ext
16772cat >>conftest.$ac_ext <<_ACEOF
16773/* end confdefs.h. */
16774$ac_includes_default
16775int
16776main ()
16777{
16778static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16779test_array [0] = 0
16780
16781 ;
16782 return 0;
16783}
16784_ACEOF
16785rm -f conftest.$ac_objext
16786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16787 (eval $ac_compile) 2>conftest.er1
16788 ac_status=$?
16789 grep -v '^ *+' conftest.er1 >conftest.err
16790 rm -f conftest.er1
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
7357c5b6
AM
16794 { ac_try='test -z "$ac_c_werror_flag"
16795 || test ! -s conftest.err'
d5efd9fc
AM
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest.$ac_objext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_hi=-1 ac_mid=-1
16808 while :; do
16809 cat >conftest.$ac_ext <<_ACEOF
16810/* confdefs.h. */
16811_ACEOF
16812cat confdefs.h >>conftest.$ac_ext
16813cat >>conftest.$ac_ext <<_ACEOF
16814/* end confdefs.h. */
16815$ac_includes_default
16816int
16817main ()
16818{
16819static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16820test_array [0] = 0
16821
16822 ;
16823 return 0;
16824}
16825_ACEOF
16826rm -f conftest.$ac_objext
16827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828 (eval $ac_compile) 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
7357c5b6
AM
16835 { ac_try='test -z "$ac_c_werror_flag"
16836 || test ! -s conftest.err'
d5efd9fc
AM
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest.$ac_objext'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 ac_lo=$ac_mid; break
16849else
16850 echo "$as_me: failed program was:" >&5
16851sed 's/^/| /' conftest.$ac_ext >&5
16852
16853ac_hi=`expr '(' $ac_mid ')' - 1`
16854 if test $ac_mid -le $ac_hi; then
16855 ac_lo= ac_hi=
16856 break
16857 fi
16858 ac_mid=`expr 2 '*' $ac_mid`
16859fi
16860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16861 done
16862else
16863 echo "$as_me: failed program was:" >&5
16864sed 's/^/| /' conftest.$ac_ext >&5
16865
16866ac_lo= ac_hi=
16867fi
16868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16869fi
16870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16871# Binary search between lo and hi bounds.
16872while test "x$ac_lo" != "x$ac_hi"; do
16873 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16874 cat >conftest.$ac_ext <<_ACEOF
16875/* confdefs.h. */
16876_ACEOF
16877cat confdefs.h >>conftest.$ac_ext
16878cat >>conftest.$ac_ext <<_ACEOF
16879/* end confdefs.h. */
16880$ac_includes_default
16881int
16882main ()
16883{
16884static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16885test_array [0] = 0
16886
16887 ;
16888 return 0;
16889}
16890_ACEOF
16891rm -f conftest.$ac_objext
16892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16893 (eval $ac_compile) 2>conftest.er1
16894 ac_status=$?
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } &&
7357c5b6
AM
16900 { ac_try='test -z "$ac_c_werror_flag"
16901 || test ! -s conftest.err'
d5efd9fc
AM
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; } &&
16907 { ac_try='test -s conftest.$ac_objext'
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_hi=$ac_mid
16914else
16915 echo "$as_me: failed program was:" >&5
16916sed 's/^/| /' conftest.$ac_ext >&5
16917
16918ac_lo=`expr '(' $ac_mid ')' + 1`
16919fi
16920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16921done
16922case $ac_lo in
16923?*) ac_cv_sizeof_char=$ac_lo;;
7357c5b6
AM
16924'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16925echo "$as_me: error: in \`$ac_pwd':" >&2;}
16926{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
d5efd9fc
AM
16927See \`config.log' for more details." >&5
16928echo "$as_me: error: cannot compute sizeof (char), 77
16929See \`config.log' for more details." >&2;}
7357c5b6 16930 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16931esac
16932else
16933 if test "$cross_compiling" = yes; then
7357c5b6
AM
16934 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16935echo "$as_me: error: in \`$ac_pwd':" >&2;}
16936{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16937See \`config.log' for more details." >&5
16938echo "$as_me: error: cannot run test program while cross compiling
16939See \`config.log' for more details." >&2;}
16940 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16941else
16942 cat >conftest.$ac_ext <<_ACEOF
16943/* confdefs.h. */
16944_ACEOF
16945cat confdefs.h >>conftest.$ac_ext
16946cat >>conftest.$ac_ext <<_ACEOF
16947/* end confdefs.h. */
16948$ac_includes_default
16949long longval () { return (long) (sizeof (char)); }
16950unsigned long ulongval () { return (long) (sizeof (char)); }
16951#include <stdio.h>
16952#include <stdlib.h>
16953int
16954main ()
16955{
16956
16957 FILE *f = fopen ("conftest.val", "w");
16958 if (! f)
16959 exit (1);
16960 if (((long) (sizeof (char))) < 0)
16961 {
16962 long i = longval ();
16963 if (i != ((long) (sizeof (char))))
16964 exit (1);
16965 fprintf (f, "%ld\n", i);
16966 }
16967 else
16968 {
16969 unsigned long i = ulongval ();
16970 if (i != ((long) (sizeof (char))))
16971 exit (1);
16972 fprintf (f, "%lu\n", i);
16973 }
16974 exit (ferror (f) || fclose (f) != 0);
16975
16976 ;
16977 return 0;
16978}
16979_ACEOF
16980rm -f conftest$ac_exeext
16981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16982 (eval $ac_link) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_sizeof_char=`cat conftest.val`
16992else
16993 echo "$as_me: program exited with status $ac_status" >&5
16994echo "$as_me: failed program was:" >&5
16995sed 's/^/| /' conftest.$ac_ext >&5
16996
16997( exit $ac_status )
7357c5b6
AM
16998{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16999echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
17000{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17001See \`config.log' for more details." >&5
17002echo "$as_me: error: cannot compute sizeof (char), 77
17003See \`config.log' for more details." >&2;}
7357c5b6 17004 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
17005fi
17006rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17007fi
17008fi
17009rm -f conftest.val
17010else
17011 ac_cv_sizeof_char=0
17012fi
17013fi
17014echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17015echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17016cat >>confdefs.h <<_ACEOF
17017#define SIZEOF_CHAR $ac_cv_sizeof_char
17018_ACEOF
17019
17020
17021
17022 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17023echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17024 case "$ac_cv_sizeof_char" in
17025 1) acx_cv_type_int8_t=char ;;
17026 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17027echo "$as_me: error: no 8-bit type" >&2;}
17028 { (exit please report a bug); exit please report a bug; }; }
17029 esac
17030 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17031echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17032
17033 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17034echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17035 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17036 2:*) acx_cv_type_int16_t=int ;;
17037 *:2) acx_cv_type_int16_t=short ;;
17038 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17039echo "$as_me: error: no 16-bit type" >&2;}
17040 { (exit please report a bug); exit please report a bug; }; }
17041 esac
17042 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17043echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17044
17045 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17046echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17047 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17048 4:*) acx_cv_type_int32_t=int ;;
17049 *:4) acx_cv_type_int32_t=long ;;
17050 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17051echo "$as_me: error: no 32-bit type" >&2;}
17052 { (exit please report a bug); exit please report a bug; }; }
17053 esac
17054 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17055echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17056fi
17057
17058# These tests are here to make the output prettier
17059
17060if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17061 case "$ac_cv_sizeof_long" in
17062 8) acx_cv_type_int64_t=long ;;
17063 esac
17064 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17065echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17066 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17067echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17068fi
17069
17070# Now we can use the above types
17071
17072if test "$ac_cv_type_uintptr_t" != yes; then
17073 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17074echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17075 case $ac_cv_sizeof_void_p in
17076 2) acx_cv_type_intptr_t=int16_t ;;
17077 4) acx_cv_type_intptr_t=int32_t ;;
17078 8) acx_cv_type_intptr_t=int64_t ;;
17079 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17080echo "$as_me: error: no equivalent for intptr_t" >&2;}
17081 { (exit please report a bug); exit please report a bug; }; }
17082 esac
17083 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17084echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17085fi
17086
17087# ----------------- done all checks, emit header -------------
17088 ac_config_commands="$ac_config_commands bfd_stdint.h"
17089
17090
17091
2ba49b59
KC
17092echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17093echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17094if test "${ac_cv_header_time+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096else
17097 cat >conftest.$ac_ext <<_ACEOF
17098/* confdefs.h. */
17099_ACEOF
17100cat confdefs.h >>conftest.$ac_ext
17101cat >>conftest.$ac_ext <<_ACEOF
17102/* end confdefs.h. */
17103#include <sys/types.h>
17104#include <sys/time.h>
17105#include <time.h>
17106
17107int
17108main ()
17109{
17110if ((struct tm *) 0)
17111return 0;
17112 ;
17113 return 0;
17114}
17115_ACEOF
17116rm -f conftest.$ac_objext
17117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17118 (eval $ac_compile) 2>conftest.er1
17119 ac_status=$?
17120 grep -v '^ *+' conftest.er1 >conftest.err
17121 rm -f conftest.er1
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } &&
7357c5b6
AM
17125 { ac_try='test -z "$ac_c_werror_flag"
17126 || test ! -s conftest.err'
2ba49b59
KC
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 ac_cv_header_time=yes
17139else
17140 echo "$as_me: failed program was:" >&5
17141sed 's/^/| /' conftest.$ac_ext >&5
17142
17143ac_cv_header_time=no
17144fi
17145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17146fi
17147echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17148echo "${ECHO_T}$ac_cv_header_time" >&6
17149if test $ac_cv_header_time = yes; then
17150
17151cat >>confdefs.h <<\_ACEOF
17152#define TIME_WITH_SYS_TIME 1
17153_ACEOF
17154
17155fi
17156
17157
17158
17159
17160
17161
17162ac_header_dirent=no
17163for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17164 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17165echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17166echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17167if eval "test \"\${$as_ac_Header+set}\" = set"; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17169else
17170 cat >conftest.$ac_ext <<_ACEOF
17171/* confdefs.h. */
17172_ACEOF
17173cat confdefs.h >>conftest.$ac_ext
17174cat >>conftest.$ac_ext <<_ACEOF
17175/* end confdefs.h. */
17176#include <sys/types.h>
17177#include <$ac_hdr>
17178
17179int
17180main ()
17181{
17182if ((DIR *) 0)
17183return 0;
17184 ;
17185 return 0;
17186}
17187_ACEOF
17188rm -f conftest.$ac_objext
17189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17190 (eval $ac_compile) 2>conftest.er1
17191 ac_status=$?
17192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
7357c5b6
AM
17197 { ac_try='test -z "$ac_c_werror_flag"
17198 || test ! -s conftest.err'
2ba49b59
KC
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest.$ac_objext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 eval "$as_ac_Header=yes"
17211else
17212 echo "$as_me: failed program was:" >&5
17213sed 's/^/| /' conftest.$ac_ext >&5
17214
17215eval "$as_ac_Header=no"
17216fi
17217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17218fi
17219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17221if test `eval echo '${'$as_ac_Header'}'` = yes; then
17222 cat >>confdefs.h <<_ACEOF
17223#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17224_ACEOF
17225
17226ac_header_dirent=$ac_hdr; break
17227fi
17228
17229done
17230# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17231if test $ac_header_dirent = dirent.h; then
17232 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17233echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17234if test "${ac_cv_search_opendir+set}" = set; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17236else
17237 ac_func_search_save_LIBS=$LIBS
17238ac_cv_search_opendir=no
17239cat >conftest.$ac_ext <<_ACEOF
17240/* confdefs.h. */
17241_ACEOF
17242cat confdefs.h >>conftest.$ac_ext
17243cat >>conftest.$ac_ext <<_ACEOF
17244/* end confdefs.h. */
17245
17246/* Override any gcc2 internal prototype to avoid an error. */
17247#ifdef __cplusplus
17248extern "C"
17249#endif
17250/* We use char because int might match the return type of a gcc2
17251 builtin and then its argument prototype would still apply. */
17252char opendir ();
17253int
17254main ()
17255{
17256opendir ();
17257 ;
17258 return 0;
17259}
17260_ACEOF
17261rm -f conftest.$ac_objext conftest$ac_exeext
17262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17263 (eval $ac_link) 2>conftest.er1
17264 ac_status=$?
17265 grep -v '^ *+' conftest.er1 >conftest.err
17266 rm -f conftest.er1
17267 cat conftest.err >&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } &&
7357c5b6
AM
17270 { ac_try='test -z "$ac_c_werror_flag"
17271 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
17277 { ac_try='test -s conftest$ac_exeext'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; }; then
17283 ac_cv_search_opendir="none required"
17284else
17285 echo "$as_me: failed program was:" >&5
17286sed 's/^/| /' conftest.$ac_ext >&5
17287
17288fi
17289rm -f conftest.err conftest.$ac_objext \
17290 conftest$ac_exeext conftest.$ac_ext
17291if test "$ac_cv_search_opendir" = no; then
17292 for ac_lib in dir; do
17293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17294 cat >conftest.$ac_ext <<_ACEOF
17295/* confdefs.h. */
17296_ACEOF
17297cat confdefs.h >>conftest.$ac_ext
17298cat >>conftest.$ac_ext <<_ACEOF
17299/* end confdefs.h. */
17300
17301/* Override any gcc2 internal prototype to avoid an error. */
17302#ifdef __cplusplus
17303extern "C"
17304#endif
17305/* We use char because int might match the return type of a gcc2
17306 builtin and then its argument prototype would still apply. */
17307char opendir ();
17308int
17309main ()
17310{
17311opendir ();
17312 ;
17313 return 0;
17314}
17315_ACEOF
17316rm -f conftest.$ac_objext conftest$ac_exeext
17317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17318 (eval $ac_link) 2>conftest.er1
17319 ac_status=$?
17320 grep -v '^ *+' conftest.er1 >conftest.err
17321 rm -f conftest.er1
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
7357c5b6
AM
17325 { ac_try='test -z "$ac_c_werror_flag"
17326 || test ! -s conftest.err'
2ba49b59
KC
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; } &&
17332 { ac_try='test -s conftest$ac_exeext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 ac_cv_search_opendir="-l$ac_lib"
17339break
17340else
17341 echo "$as_me: failed program was:" >&5
17342sed 's/^/| /' conftest.$ac_ext >&5
17343
17344fi
17345rm -f conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17347 done
17348fi
17349LIBS=$ac_func_search_save_LIBS
17350fi
17351echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17352echo "${ECHO_T}$ac_cv_search_opendir" >&6
17353if test "$ac_cv_search_opendir" != no; then
17354 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17355
17356fi
17357
17358else
17359 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17360echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17361if test "${ac_cv_search_opendir+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17363else
17364 ac_func_search_save_LIBS=$LIBS
17365ac_cv_search_opendir=no
17366cat >conftest.$ac_ext <<_ACEOF
17367/* confdefs.h. */
17368_ACEOF
17369cat confdefs.h >>conftest.$ac_ext
17370cat >>conftest.$ac_ext <<_ACEOF
17371/* end confdefs.h. */
17372
17373/* Override any gcc2 internal prototype to avoid an error. */
17374#ifdef __cplusplus
17375extern "C"
17376#endif
17377/* We use char because int might match the return type of a gcc2
17378 builtin and then its argument prototype would still apply. */
17379char opendir ();
17380int
17381main ()
17382{
17383opendir ();
17384 ;
17385 return 0;
17386}
17387_ACEOF
17388rm -f conftest.$ac_objext conftest$ac_exeext
17389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17390 (eval $ac_link) 2>conftest.er1
17391 ac_status=$?
17392 grep -v '^ *+' conftest.er1 >conftest.err
17393 rm -f conftest.er1
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
7357c5b6
AM
17397 { ac_try='test -z "$ac_c_werror_flag"
17398 || test ! -s conftest.err'
2ba49b59
KC
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest$ac_exeext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_cv_search_opendir="none required"
17411else
17412 echo "$as_me: failed program was:" >&5
17413sed 's/^/| /' conftest.$ac_ext >&5
17414
17415fi
17416rm -f conftest.err conftest.$ac_objext \
17417 conftest$ac_exeext conftest.$ac_ext
17418if test "$ac_cv_search_opendir" = no; then
17419 for ac_lib in x; do
17420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17421 cat >conftest.$ac_ext <<_ACEOF
17422/* confdefs.h. */
17423_ACEOF
17424cat confdefs.h >>conftest.$ac_ext
17425cat >>conftest.$ac_ext <<_ACEOF
17426/* end confdefs.h. */
17427
17428/* Override any gcc2 internal prototype to avoid an error. */
17429#ifdef __cplusplus
17430extern "C"
17431#endif
17432/* We use char because int might match the return type of a gcc2
17433 builtin and then its argument prototype would still apply. */
17434char opendir ();
17435int
17436main ()
17437{
17438opendir ();
17439 ;
17440 return 0;
17441}
17442_ACEOF
17443rm -f conftest.$ac_objext conftest$ac_exeext
17444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17445 (eval $ac_link) 2>conftest.er1
17446 ac_status=$?
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
7357c5b6
AM
17452 { ac_try='test -z "$ac_c_werror_flag"
17453 || test ! -s conftest.err'
2ba49b59
KC
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
17459 { ac_try='test -s conftest$ac_exeext'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 ac_cv_search_opendir="-l$ac_lib"
17466break
17467else
17468 echo "$as_me: failed program was:" >&5
17469sed 's/^/| /' conftest.$ac_ext >&5
17470
17471fi
17472rm -f conftest.err conftest.$ac_objext \
17473 conftest$ac_exeext conftest.$ac_ext
17474 done
17475fi
17476LIBS=$ac_func_search_save_LIBS
17477fi
17478echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17479echo "${ECHO_T}$ac_cv_search_opendir" >&6
17480if test "$ac_cv_search_opendir" != no; then
17481 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17482
17483fi
17484
17485fi
17486
17487echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
17488echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
17489if test "${gcc_cv_header_string+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491else
17492 cat >conftest.$ac_ext <<_ACEOF
17493/* confdefs.h. */
17494_ACEOF
17495cat confdefs.h >>conftest.$ac_ext
17496cat >>conftest.$ac_ext <<_ACEOF
17497/* end confdefs.h. */
17498#include <string.h>
17499#include <strings.h>
17500int
17501main ()
17502{
17503
17504 ;
17505 return 0;
17506}
17507_ACEOF
17508rm -f conftest.$ac_objext
17509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17510 (eval $ac_compile) 2>conftest.er1
17511 ac_status=$?
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
7357c5b6
AM
17517 { ac_try='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
2ba49b59
KC
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest.$ac_objext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 gcc_cv_header_string=yes
17531else
17532 echo "$as_me: failed program was:" >&5
17533sed 's/^/| /' conftest.$ac_ext >&5
17534
17535gcc_cv_header_string=no
17536fi
17537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17538fi
17539echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
17540echo "${ECHO_T}$gcc_cv_header_string" >&6
17541if test $gcc_cv_header_string = yes; then
17542
17543cat >>confdefs.h <<\_ACEOF
17544#define STRING_WITH_STRINGS 1
17545_ACEOF
17546
2e0fbf77
JW
17547fi
17548
5464f5a1
NN
17549
17550
17551
17552
17553
17554
17555
633fd09f 17556for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 17557do
5464f5a1
NN
17558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17559echo "$as_me:$LINENO: checking for $ac_func" >&5
17560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17561if eval "test \"\${$as_ac_var+set}\" = set"; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17563else
17564 cat >conftest.$ac_ext <<_ACEOF
17565/* confdefs.h. */
17566_ACEOF
17567cat confdefs.h >>conftest.$ac_ext
17568cat >>conftest.$ac_ext <<_ACEOF
17569/* end confdefs.h. */
17570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17572#define $ac_func innocuous_$ac_func
17573
252b5132 17574/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
17575 which can conflict with char $ac_func (); below.
17576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17577 <limits.h> exists even on freestanding compilers. */
17578
17579#ifdef __STDC__
17580# include <limits.h>
17581#else
17582# include <assert.h>
17583#endif
6be7c12c 17584
5464f5a1 17585#undef $ac_func
252b5132 17586
5464f5a1
NN
17587/* Override any gcc2 internal prototype to avoid an error. */
17588#ifdef __cplusplus
17589extern "C"
17590{
17591#endif
17592/* We use char because int might match the return type of a gcc2
17593 builtin and then its argument prototype would still apply. */
17594char $ac_func ();
252b5132
RH
17595/* The GNU C library defines this for functions which it implements
17596 to always fail with ENOSYS. Some functions are actually named
17597 something starting with __ and the normal name is an alias. */
17598#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17599choke me
17600#else
5464f5a1
NN
17601char (*f) () = $ac_func;
17602#endif
17603#ifdef __cplusplus
17604}
252b5132
RH
17605#endif
17606
5464f5a1
NN
17607int
17608main ()
17609{
17610return f != $ac_func;
17611 ;
17612 return 0;
17613}
17614_ACEOF
17615rm -f conftest.$ac_objext conftest$ac_exeext
17616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17617 (eval $ac_link) 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'
5464f5a1
NN
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_exeext'
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 eval "$as_ac_var=yes"
17638else
17639 echo "$as_me: failed program was:" >&5
17640sed 's/^/| /' conftest.$ac_ext >&5
17641
17642eval "$as_ac_var=no"
17643fi
17644rm -f conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
17646fi
17647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17648echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17649if test `eval echo '${'$as_ac_var'}'` = yes; then
17650 cat >>confdefs.h <<_ACEOF
17651#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17652_ACEOF
252b5132 17653
252b5132
RH
17654fi
17655done
17656
5464f5a1 17657
49c97a80
ILT
17658for ac_func in strtoull
17659do
5464f5a1
NN
17660as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17661echo "$as_me:$LINENO: checking for $ac_func" >&5
17662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17663if eval "test \"\${$as_ac_var+set}\" = set"; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17665else
17666 cat >conftest.$ac_ext <<_ACEOF
17667/* confdefs.h. */
17668_ACEOF
17669cat confdefs.h >>conftest.$ac_ext
17670cat >>conftest.$ac_ext <<_ACEOF
17671/* end confdefs.h. */
17672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17674#define $ac_func innocuous_$ac_func
17675
49c97a80 17676/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
17677 which can conflict with char $ac_func (); below.
17678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17679 <limits.h> exists even on freestanding compilers. */
17680
17681#ifdef __STDC__
17682# include <limits.h>
17683#else
17684# include <assert.h>
17685#endif
49c97a80 17686
5464f5a1 17687#undef $ac_func
49c97a80 17688
5464f5a1
NN
17689/* Override any gcc2 internal prototype to avoid an error. */
17690#ifdef __cplusplus
17691extern "C"
17692{
17693#endif
17694/* We use char because int might match the return type of a gcc2
17695 builtin and then its argument prototype would still apply. */
17696char $ac_func ();
49c97a80
ILT
17697/* The GNU C library defines this for functions which it implements
17698 to always fail with ENOSYS. Some functions are actually named
17699 something starting with __ and the normal name is an alias. */
17700#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17701choke me
17702#else
5464f5a1
NN
17703char (*f) () = $ac_func;
17704#endif
17705#ifdef __cplusplus
17706}
49c97a80
ILT
17707#endif
17708
5464f5a1
NN
17709int
17710main ()
17711{
17712return f != $ac_func;
17713 ;
17714 return 0;
17715}
17716_ACEOF
17717rm -f conftest.$ac_objext conftest$ac_exeext
17718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17719 (eval $ac_link) 2>conftest.er1
17720 ac_status=$?
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
7357c5b6
AM
17726 { ac_try='test -z "$ac_c_werror_flag"
17727 || test ! -s conftest.err'
5464f5a1
NN
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest$ac_exeext'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 eval "$as_ac_var=yes"
17740else
17741 echo "$as_me: failed program was:" >&5
17742sed 's/^/| /' conftest.$ac_ext >&5
17743
17744eval "$as_ac_var=no"
17745fi
17746rm -f conftest.err conftest.$ac_objext \
17747 conftest$ac_exeext conftest.$ac_ext
17748fi
17749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17750echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17751if test `eval echo '${'$as_ac_var'}'` = yes; then
17752 cat >>confdefs.h <<_ACEOF
17753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17754_ACEOF
49c97a80 17755
49c97a80
ILT
17756fi
17757done
17758
6be7c12c 17759
2e9ebff5
JG
17760echo "$as_me:$LINENO: checking whether basename is declared" >&5
17761echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17762if test "${ac_cv_have_decl_basename+set}" = set; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17764else
17765 cat >conftest.$ac_ext <<_ACEOF
17766/* confdefs.h. */
17767_ACEOF
17768cat confdefs.h >>conftest.$ac_ext
17769cat >>conftest.$ac_ext <<_ACEOF
17770/* end confdefs.h. */
ec7b76fe 17771$ac_includes_default
2e9ebff5
JG
17772int
17773main ()
17774{
17775#ifndef basename
17776 char *p = (char *) basename;
17777#endif
17778
17779 ;
17780 return 0;
17781}
17782_ACEOF
17783rm -f conftest.$ac_objext
17784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17785 (eval $ac_compile) 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } &&
7357c5b6
AM
17792 { ac_try='test -z "$ac_c_werror_flag"
17793 || test ! -s conftest.err'
2e9ebff5
JG
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; } &&
17799 { ac_try='test -s conftest.$ac_objext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 ac_cv_have_decl_basename=yes
17806else
17807 echo "$as_me: failed program was:" >&5
17808sed 's/^/| /' conftest.$ac_ext >&5
17809
17810ac_cv_have_decl_basename=no
17811fi
17812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17813fi
17814echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17815echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17816if test $ac_cv_have_decl_basename = yes; then
17817
17818cat >>confdefs.h <<_ACEOF
17819#define HAVE_DECL_BASENAME 1
17820_ACEOF
17821
17822
17823else
17824 cat >>confdefs.h <<_ACEOF
17825#define HAVE_DECL_BASENAME 0
17826_ACEOF
17827
17828
17829fi
17830
17831
ec7b76fe
JG
17832echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17833echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17834if test "${ac_cv_have_decl_ftello+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17836else
17837 cat >conftest.$ac_ext <<_ACEOF
17838/* confdefs.h. */
17839_ACEOF
17840cat confdefs.h >>conftest.$ac_ext
17841cat >>conftest.$ac_ext <<_ACEOF
17842/* end confdefs.h. */
17843$ac_includes_default
17844int
17845main ()
17846{
17847#ifndef ftello
17848 char *p = (char *) ftello;
17849#endif
17850
17851 ;
17852 return 0;
17853}
17854_ACEOF
17855rm -f conftest.$ac_objext
17856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857 (eval $ac_compile) 2>conftest.er1
17858 ac_status=$?
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
7357c5b6
AM
17864 { ac_try='test -z "$ac_c_werror_flag"
17865 || test ! -s conftest.err'
ec7b76fe
JG
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17868 ac_status=$?
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; } &&
17871 { ac_try='test -s conftest.$ac_objext'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; }; then
17877 ac_cv_have_decl_ftello=yes
17878else
17879 echo "$as_me: failed program was:" >&5
17880sed 's/^/| /' conftest.$ac_ext >&5
17881
17882ac_cv_have_decl_ftello=no
17883fi
17884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17885fi
17886echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17887echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17888if test $ac_cv_have_decl_ftello = yes; then
17889
17890cat >>confdefs.h <<_ACEOF
17891#define HAVE_DECL_FTELLO 1
17892_ACEOF
17893
17894
17895else
17896 cat >>confdefs.h <<_ACEOF
17897#define HAVE_DECL_FTELLO 0
17898_ACEOF
17899
17900
17901fi
17902
17903
17904echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17905echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17906if test "${ac_cv_have_decl_ftello64+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17908else
17909 cat >conftest.$ac_ext <<_ACEOF
17910/* confdefs.h. */
17911_ACEOF
17912cat confdefs.h >>conftest.$ac_ext
17913cat >>conftest.$ac_ext <<_ACEOF
17914/* end confdefs.h. */
17915$ac_includes_default
17916int
17917main ()
17918{
17919#ifndef ftello64
17920 char *p = (char *) ftello64;
17921#endif
17922
17923 ;
17924 return 0;
17925}
17926_ACEOF
17927rm -f conftest.$ac_objext
17928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17929 (eval $ac_compile) 2>conftest.er1
17930 ac_status=$?
17931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
7357c5b6
AM
17936 { ac_try='test -z "$ac_c_werror_flag"
17937 || test ! -s conftest.err'
ec7b76fe
JG
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest.$ac_objext'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; }; then
17949 ac_cv_have_decl_ftello64=yes
17950else
17951 echo "$as_me: failed program was:" >&5
17952sed 's/^/| /' conftest.$ac_ext >&5
17953
17954ac_cv_have_decl_ftello64=no
17955fi
17956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17957fi
17958echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
17959echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
17960if test $ac_cv_have_decl_ftello64 = yes; then
17961
17962cat >>confdefs.h <<_ACEOF
17963#define HAVE_DECL_FTELLO64 1
17964_ACEOF
17965
17966
17967else
17968 cat >>confdefs.h <<_ACEOF
17969#define HAVE_DECL_FTELLO64 0
17970_ACEOF
17971
17972
17973fi
17974
17975
17976echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
17977echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
17978if test "${ac_cv_have_decl_fseeko+set}" = set; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17980else
17981 cat >conftest.$ac_ext <<_ACEOF
17982/* confdefs.h. */
17983_ACEOF
17984cat confdefs.h >>conftest.$ac_ext
17985cat >>conftest.$ac_ext <<_ACEOF
17986/* end confdefs.h. */
17987$ac_includes_default
17988int
17989main ()
17990{
17991#ifndef fseeko
17992 char *p = (char *) fseeko;
17993#endif
17994
17995 ;
17996 return 0;
17997}
17998_ACEOF
17999rm -f conftest.$ac_objext
18000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18001 (eval $ac_compile) 2>conftest.er1
18002 ac_status=$?
18003 grep -v '^ *+' conftest.er1 >conftest.err
18004 rm -f conftest.er1
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } &&
7357c5b6
AM
18008 { ac_try='test -z "$ac_c_werror_flag"
18009 || test ! -s conftest.err'
ec7b76fe
JG
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest.$ac_objext'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_cv_have_decl_fseeko=yes
18022else
18023 echo "$as_me: failed program was:" >&5
18024sed 's/^/| /' conftest.$ac_ext >&5
18025
18026ac_cv_have_decl_fseeko=no
18027fi
18028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18029fi
18030echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
18031echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
18032if test $ac_cv_have_decl_fseeko = yes; then
18033
18034cat >>confdefs.h <<_ACEOF
18035#define HAVE_DECL_FSEEKO 1
18036_ACEOF
18037
18038
18039else
18040 cat >>confdefs.h <<_ACEOF
18041#define HAVE_DECL_FSEEKO 0
18042_ACEOF
18043
18044
18045fi
18046
18047
18048echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
18049echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
18050if test "${ac_cv_have_decl_fseeko64+set}" = set; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18052else
18053 cat >conftest.$ac_ext <<_ACEOF
18054/* confdefs.h. */
18055_ACEOF
18056cat confdefs.h >>conftest.$ac_ext
18057cat >>conftest.$ac_ext <<_ACEOF
18058/* end confdefs.h. */
18059$ac_includes_default
18060int
18061main ()
18062{
18063#ifndef fseeko64
18064 char *p = (char *) fseeko64;
18065#endif
18066
18067 ;
18068 return 0;
18069}
18070_ACEOF
18071rm -f conftest.$ac_objext
18072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18073 (eval $ac_compile) 2>conftest.er1
18074 ac_status=$?
18075 grep -v '^ *+' conftest.er1 >conftest.err
18076 rm -f conftest.er1
18077 cat conftest.err >&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } &&
7357c5b6
AM
18080 { ac_try='test -z "$ac_c_werror_flag"
18081 || test ! -s conftest.err'
ec7b76fe
JG
18082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18083 (eval $ac_try) 2>&5
18084 ac_status=$?
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; } &&
18087 { ac_try='test -s conftest.$ac_objext'
18088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18089 (eval $ac_try) 2>&5
18090 ac_status=$?
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); }; }; then
18093 ac_cv_have_decl_fseeko64=yes
18094else
18095 echo "$as_me: failed program was:" >&5
18096sed 's/^/| /' conftest.$ac_ext >&5
18097
18098ac_cv_have_decl_fseeko64=no
18099fi
18100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18101fi
18102echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
18103echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
18104if test $ac_cv_have_decl_fseeko64 = yes; then
18105
18106cat >>confdefs.h <<_ACEOF
18107#define HAVE_DECL_FSEEKO64 1
18108_ACEOF
18109
18110
18111else
18112 cat >>confdefs.h <<_ACEOF
18113#define HAVE_DECL_FSEEKO64 0
18114_ACEOF
18115
18116
18117fi
18118
18119
2e9ebff5 18120
6be7c12c 18121
252b5132 18122case "${host}" in
855b0be7 18123*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
18124
18125cat >>confdefs.h <<\_ACEOF
252b5132 18126#define USE_BINARY_FOPEN 1
5464f5a1 18127_ACEOF
252b5132
RH
18128 ;;
18129esac
18130
d34a2b1d
JG
18131echo "$as_me:$LINENO: checking whether ffs is declared" >&5
18132echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
18133if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 18134 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18135else
5464f5a1
NN
18136 cat >conftest.$ac_ext <<_ACEOF
18137/* confdefs.h. */
18138_ACEOF
18139cat confdefs.h >>conftest.$ac_ext
18140cat >>conftest.$ac_ext <<_ACEOF
18141/* end confdefs.h. */
d34a2b1d 18142$ac_includes_default
5464f5a1
NN
18143int
18144main ()
18145{
d34a2b1d
JG
18146#ifndef ffs
18147 char *p = (char *) ffs;
18148#endif
18149
5464f5a1
NN
18150 ;
18151 return 0;
18152}
18153_ACEOF
18154rm -f conftest.$ac_objext
18155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18156 (eval $ac_compile) 2>conftest.er1
18157 ac_status=$?
18158 grep -v '^ *+' conftest.er1 >conftest.err
18159 rm -f conftest.er1
18160 cat conftest.err >&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
7357c5b6
AM
18163 { ac_try='test -z "$ac_c_werror_flag"
18164 || test ! -s conftest.err'
5464f5a1
NN
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try='test -s conftest.$ac_objext'
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; }; then
d34a2b1d 18176 ac_cv_have_decl_ffs=yes
252b5132 18177else
5464f5a1
NN
18178 echo "$as_me: failed program was:" >&5
18179sed 's/^/| /' conftest.$ac_ext >&5
18180
d34a2b1d 18181ac_cv_have_decl_ffs=no
252b5132 18182fi
5464f5a1 18183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18184fi
d34a2b1d
JG
18185echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
18186echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
18187if test $ac_cv_have_decl_ffs = yes; then
252b5132 18188
d34a2b1d
JG
18189cat >>confdefs.h <<_ACEOF
18190#define HAVE_DECL_FFS 1
18191_ACEOF
5464f5a1 18192
d34a2b1d
JG
18193
18194else
18195 cat >>confdefs.h <<_ACEOF
18196#define HAVE_DECL_FFS 0
5464f5a1 18197_ACEOF
252b5132 18198
d34a2b1d 18199
252b5132
RH
18200fi
18201
d34a2b1d
JG
18202
18203echo "$as_me:$LINENO: checking whether free is declared" >&5
18204echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18205if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 18206 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18207else
5464f5a1
NN
18208 cat >conftest.$ac_ext <<_ACEOF
18209/* confdefs.h. */
18210_ACEOF
18211cat confdefs.h >>conftest.$ac_ext
18212cat >>conftest.$ac_ext <<_ACEOF
18213/* end confdefs.h. */
d34a2b1d 18214$ac_includes_default
5464f5a1
NN
18215int
18216main ()
18217{
d34a2b1d
JG
18218#ifndef free
18219 char *p = (char *) free;
18220#endif
18221
5464f5a1
NN
18222 ;
18223 return 0;
18224}
18225_ACEOF
18226rm -f conftest.$ac_objext
18227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18228 (eval $ac_compile) 2>conftest.er1
18229 ac_status=$?
18230 grep -v '^ *+' conftest.er1 >conftest.err
18231 rm -f conftest.er1
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
7357c5b6
AM
18235 { ac_try='test -z "$ac_c_werror_flag"
18236 || test ! -s conftest.err'
5464f5a1
NN
18237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18239 ac_status=$?
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; } &&
18242 { ac_try='test -s conftest.$ac_objext'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
d34a2b1d 18248 ac_cv_have_decl_free=yes
252b5132 18249else
5464f5a1
NN
18250 echo "$as_me: failed program was:" >&5
18251sed 's/^/| /' conftest.$ac_ext >&5
18252
d34a2b1d 18253ac_cv_have_decl_free=no
252b5132 18254fi
5464f5a1 18255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18256fi
d34a2b1d
JG
18257echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18258echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18259if test $ac_cv_have_decl_free = yes; then
18260
18261cat >>confdefs.h <<_ACEOF
18262#define HAVE_DECL_FREE 1
18263_ACEOF
252b5132 18264
5464f5a1 18265
d34a2b1d
JG
18266else
18267 cat >>confdefs.h <<_ACEOF
18268#define HAVE_DECL_FREE 0
5464f5a1 18269_ACEOF
252b5132 18270
d34a2b1d 18271
252b5132
RH
18272fi
18273
d34a2b1d
JG
18274
18275echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18276echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18277if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 18278 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18279else
5464f5a1
NN
18280 cat >conftest.$ac_ext <<_ACEOF
18281/* confdefs.h. */
18282_ACEOF
18283cat confdefs.h >>conftest.$ac_ext
18284cat >>conftest.$ac_ext <<_ACEOF
18285/* end confdefs.h. */
d34a2b1d 18286$ac_includes_default
5464f5a1
NN
18287int
18288main ()
18289{
d34a2b1d
JG
18290#ifndef getenv
18291 char *p = (char *) getenv;
18292#endif
18293
5464f5a1
NN
18294 ;
18295 return 0;
18296}
18297_ACEOF
18298rm -f conftest.$ac_objext
18299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18300 (eval $ac_compile) 2>conftest.er1
18301 ac_status=$?
18302 grep -v '^ *+' conftest.er1 >conftest.err
18303 rm -f conftest.er1
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
7357c5b6
AM
18307 { ac_try='test -z "$ac_c_werror_flag"
18308 || test ! -s conftest.err'
5464f5a1
NN
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18311 ac_status=$?
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; } &&
18314 { ac_try='test -s conftest.$ac_objext'
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; }; then
d34a2b1d 18320 ac_cv_have_decl_getenv=yes
252b5132 18321else
5464f5a1
NN
18322 echo "$as_me: failed program was:" >&5
18323sed 's/^/| /' conftest.$ac_ext >&5
18324
d34a2b1d 18325ac_cv_have_decl_getenv=no
252b5132 18326fi
5464f5a1 18327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18328fi
d34a2b1d
JG
18329echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18330echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18331if test $ac_cv_have_decl_getenv = yes; then
252b5132 18332
d34a2b1d
JG
18333cat >>confdefs.h <<_ACEOF
18334#define HAVE_DECL_GETENV 1
18335_ACEOF
5464f5a1 18336
d34a2b1d
JG
18337
18338else
18339 cat >>confdefs.h <<_ACEOF
18340#define HAVE_DECL_GETENV 0
5464f5a1 18341_ACEOF
252b5132 18342
d34a2b1d 18343
252b5132
RH
18344fi
18345
d34a2b1d
JG
18346
18347echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18348echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18349if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 18350 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18351else
5464f5a1
NN
18352 cat >conftest.$ac_ext <<_ACEOF
18353/* confdefs.h. */
18354_ACEOF
18355cat confdefs.h >>conftest.$ac_ext
18356cat >>conftest.$ac_ext <<_ACEOF
18357/* end confdefs.h. */
d34a2b1d 18358$ac_includes_default
5464f5a1
NN
18359int
18360main ()
18361{
d34a2b1d
JG
18362#ifndef malloc
18363 char *p = (char *) malloc;
18364#endif
18365
5464f5a1
NN
18366 ;
18367 return 0;
18368}
18369_ACEOF
18370rm -f conftest.$ac_objext
18371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18372 (eval $ac_compile) 2>conftest.er1
18373 ac_status=$?
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
7357c5b6
AM
18379 { ac_try='test -z "$ac_c_werror_flag"
18380 || test ! -s conftest.err'
5464f5a1
NN
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest.$ac_objext'
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
d34a2b1d 18392 ac_cv_have_decl_malloc=yes
252b5132 18393else
5464f5a1
NN
18394 echo "$as_me: failed program was:" >&5
18395sed 's/^/| /' conftest.$ac_ext >&5
18396
d34a2b1d 18397ac_cv_have_decl_malloc=no
252b5132 18398fi
5464f5a1 18399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18400fi
d34a2b1d
JG
18401echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18402echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18403if test $ac_cv_have_decl_malloc = yes; then
252b5132 18404
d34a2b1d
JG
18405cat >>confdefs.h <<_ACEOF
18406#define HAVE_DECL_MALLOC 1
18407_ACEOF
5464f5a1 18408
d34a2b1d
JG
18409
18410else
18411 cat >>confdefs.h <<_ACEOF
18412#define HAVE_DECL_MALLOC 0
5464f5a1 18413_ACEOF
252b5132 18414
d34a2b1d 18415
252b5132
RH
18416fi
18417
d34a2b1d
JG
18418
18419echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18420echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18421if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 18422 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18423else
5464f5a1
NN
18424 cat >conftest.$ac_ext <<_ACEOF
18425/* confdefs.h. */
18426_ACEOF
18427cat confdefs.h >>conftest.$ac_ext
18428cat >>conftest.$ac_ext <<_ACEOF
18429/* end confdefs.h. */
d34a2b1d 18430$ac_includes_default
5464f5a1
NN
18431int
18432main ()
18433{
d34a2b1d
JG
18434#ifndef realloc
18435 char *p = (char *) realloc;
18436#endif
18437
5464f5a1
NN
18438 ;
18439 return 0;
18440}
18441_ACEOF
18442rm -f conftest.$ac_objext
18443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18444 (eval $ac_compile) 2>conftest.er1
18445 ac_status=$?
18446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
7357c5b6
AM
18451 { ac_try='test -z "$ac_c_werror_flag"
18452 || test ! -s conftest.err'
5464f5a1
NN
18453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454 (eval $ac_try) 2>&5
18455 ac_status=$?
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; } &&
18458 { ac_try='test -s conftest.$ac_objext'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
d34a2b1d 18464 ac_cv_have_decl_realloc=yes
252b5132 18465else
5464f5a1
NN
18466 echo "$as_me: failed program was:" >&5
18467sed 's/^/| /' conftest.$ac_ext >&5
18468
d34a2b1d 18469ac_cv_have_decl_realloc=no
252b5132 18470fi
5464f5a1 18471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18472fi
d34a2b1d
JG
18473echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18474echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18475if test $ac_cv_have_decl_realloc = yes; then
18476
18477cat >>confdefs.h <<_ACEOF
18478#define HAVE_DECL_REALLOC 1
18479_ACEOF
252b5132 18480
5464f5a1 18481
d34a2b1d
JG
18482else
18483 cat >>confdefs.h <<_ACEOF
18484#define HAVE_DECL_REALLOC 0
efa9bda4
AL
18485_ACEOF
18486
d34a2b1d 18487
efa9bda4
AL
18488fi
18489
d34a2b1d 18490
be5cacdb
L
18491echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
18492echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
18493if test "${ac_cv_have_decl_stpcpy+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18495else
18496 cat >conftest.$ac_ext <<_ACEOF
18497/* confdefs.h. */
18498_ACEOF
18499cat confdefs.h >>conftest.$ac_ext
18500cat >>conftest.$ac_ext <<_ACEOF
18501/* end confdefs.h. */
18502$ac_includes_default
18503int
18504main ()
18505{
18506#ifndef stpcpy
18507 char *p = (char *) stpcpy;
18508#endif
18509
18510 ;
18511 return 0;
18512}
18513_ACEOF
18514rm -f conftest.$ac_objext
18515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18516 (eval $ac_compile) 2>conftest.er1
18517 ac_status=$?
18518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } &&
7357c5b6
AM
18523 { ac_try='test -z "$ac_c_werror_flag"
18524 || test ! -s conftest.err'
be5cacdb
L
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest.$ac_objext'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
18536 ac_cv_have_decl_stpcpy=yes
18537else
18538 echo "$as_me: failed program was:" >&5
18539sed 's/^/| /' conftest.$ac_ext >&5
18540
18541ac_cv_have_decl_stpcpy=no
18542fi
18543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18544fi
18545echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
18546echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
18547if test $ac_cv_have_decl_stpcpy = yes; then
18548
18549cat >>confdefs.h <<_ACEOF
18550#define HAVE_DECL_STPCPY 1
18551_ACEOF
18552
18553
18554else
18555 cat >>confdefs.h <<_ACEOF
18556#define HAVE_DECL_STPCPY 0
18557_ACEOF
18558
18559
18560fi
18561
18562
d34a2b1d
JG
18563echo "$as_me:$LINENO: checking whether strstr is declared" >&5
18564echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
18565if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18567else
18568 cat >conftest.$ac_ext <<_ACEOF
18569/* confdefs.h. */
18570_ACEOF
18571cat confdefs.h >>conftest.$ac_ext
18572cat >>conftest.$ac_ext <<_ACEOF
18573/* end confdefs.h. */
d34a2b1d 18574$ac_includes_default
efa9bda4
AL
18575int
18576main ()
18577{
d34a2b1d
JG
18578#ifndef strstr
18579 char *p = (char *) strstr;
18580#endif
18581
efa9bda4
AL
18582 ;
18583 return 0;
18584}
18585_ACEOF
18586rm -f conftest.$ac_objext
18587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18588 (eval $ac_compile) 2>conftest.er1
18589 ac_status=$?
18590 grep -v '^ *+' conftest.er1 >conftest.err
18591 rm -f conftest.er1
18592 cat conftest.err >&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
7357c5b6
AM
18595 { ac_try='test -z "$ac_c_werror_flag"
18596 || test ! -s conftest.err'
efa9bda4
AL
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; } &&
18602 { ac_try='test -s conftest.$ac_objext'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; }; then
d34a2b1d 18608 ac_cv_have_decl_strstr=yes
efa9bda4
AL
18609else
18610 echo "$as_me: failed program was:" >&5
18611sed 's/^/| /' conftest.$ac_ext >&5
18612
d34a2b1d 18613ac_cv_have_decl_strstr=no
efa9bda4
AL
18614fi
18615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18616fi
d34a2b1d
JG
18617echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
18618echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
18619if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 18620
d34a2b1d
JG
18621cat >>confdefs.h <<_ACEOF
18622#define HAVE_DECL_STRSTR 1
18623_ACEOF
efa9bda4 18624
d34a2b1d
JG
18625
18626else
18627 cat >>confdefs.h <<_ACEOF
18628#define HAVE_DECL_STRSTR 0
5464f5a1 18629_ACEOF
252b5132 18630
d34a2b1d 18631
252b5132
RH
18632fi
18633
6be7c12c 18634
36527912
AJ
18635echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18636echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
18637if test "${ac_cv_have_decl_snprintf+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18639else
18640 cat >conftest.$ac_ext <<_ACEOF
18641/* confdefs.h. */
18642_ACEOF
18643cat confdefs.h >>conftest.$ac_ext
18644cat >>conftest.$ac_ext <<_ACEOF
18645/* end confdefs.h. */
18646$ac_includes_default
18647int
18648main ()
18649{
18650#ifndef snprintf
18651 char *p = (char *) snprintf;
18652#endif
18653
18654 ;
18655 return 0;
18656}
18657_ACEOF
18658rm -f conftest.$ac_objext
18659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18660 (eval $ac_compile) 2>conftest.er1
18661 ac_status=$?
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
7357c5b6
AM
18667 { ac_try='test -z "$ac_c_werror_flag"
18668 || test ! -s conftest.err'
36527912
AJ
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; } &&
18674 { ac_try='test -s conftest.$ac_objext'
18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; }; then
18680 ac_cv_have_decl_snprintf=yes
18681else
18682 echo "$as_me: failed program was:" >&5
18683sed 's/^/| /' conftest.$ac_ext >&5
18684
18685ac_cv_have_decl_snprintf=no
18686fi
18687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18688fi
18689echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18690echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18691if test $ac_cv_have_decl_snprintf = yes; then
18692
18693cat >>confdefs.h <<_ACEOF
18694#define HAVE_DECL_SNPRINTF 1
18695_ACEOF
18696
18697
18698else
18699 cat >>confdefs.h <<_ACEOF
18700#define HAVE_DECL_SNPRINTF 0
18701_ACEOF
18702
18703
18704fi
18705
18706
18707echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18708echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18709if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18711else
18712 cat >conftest.$ac_ext <<_ACEOF
18713/* confdefs.h. */
18714_ACEOF
18715cat confdefs.h >>conftest.$ac_ext
18716cat >>conftest.$ac_ext <<_ACEOF
18717/* end confdefs.h. */
18718$ac_includes_default
18719int
18720main ()
18721{
18722#ifndef vsnprintf
18723 char *p = (char *) vsnprintf;
18724#endif
18725
18726 ;
18727 return 0;
18728}
18729_ACEOF
18730rm -f conftest.$ac_objext
18731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18732 (eval $ac_compile) 2>conftest.er1
18733 ac_status=$?
18734 grep -v '^ *+' conftest.er1 >conftest.err
18735 rm -f conftest.er1
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
7357c5b6
AM
18739 { ac_try='test -z "$ac_c_werror_flag"
18740 || test ! -s conftest.err'
36527912
AJ
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; } &&
18746 { ac_try='test -s conftest.$ac_objext'
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18752 ac_cv_have_decl_vsnprintf=yes
18753else
18754 echo "$as_me: failed program was:" >&5
18755sed 's/^/| /' conftest.$ac_ext >&5
18756
18757ac_cv_have_decl_vsnprintf=no
18758fi
18759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18760fi
18761echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18762echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18763if test $ac_cv_have_decl_vsnprintf = yes; then
18764
18765cat >>confdefs.h <<_ACEOF
18766#define HAVE_DECL_VSNPRINTF 1
18767_ACEOF
18768
18769
18770else
18771 cat >>confdefs.h <<_ACEOF
18772#define HAVE_DECL_VSNPRINTF 0
18773_ACEOF
18774
18775
18776fi
18777
18778
d34a2b1d 18779
1b315056 18780# Link in zlib if we can. This allows us to read compressed debug sections.
7357c5b6 18781# This is used only by compress.c.
1b315056
CS
18782echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18783echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18784if test "${ac_cv_search_zlibVersion+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18786else
18787 ac_func_search_save_LIBS=$LIBS
18788ac_cv_search_zlibVersion=no
18789cat >conftest.$ac_ext <<_ACEOF
18790/* confdefs.h. */
18791_ACEOF
18792cat confdefs.h >>conftest.$ac_ext
18793cat >>conftest.$ac_ext <<_ACEOF
18794/* end confdefs.h. */
18795
18796/* Override any gcc2 internal prototype to avoid an error. */
18797#ifdef __cplusplus
18798extern "C"
18799#endif
18800/* We use char because int might match the return type of a gcc2
18801 builtin and then its argument prototype would still apply. */
18802char zlibVersion ();
18803int
18804main ()
18805{
18806zlibVersion ();
18807 ;
18808 return 0;
18809}
18810_ACEOF
18811rm -f conftest.$ac_objext conftest$ac_exeext
18812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813 (eval $ac_link) 2>conftest.er1
18814 ac_status=$?
18815 grep -v '^ *+' conftest.er1 >conftest.err
18816 rm -f conftest.er1
18817 cat conftest.err >&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
7357c5b6
AM
18820 { ac_try='test -z "$ac_c_werror_flag"
18821 || test ! -s conftest.err'
1b315056
CS
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest$ac_exeext'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; }; then
18833 ac_cv_search_zlibVersion="none required"
18834else
18835 echo "$as_me: failed program was:" >&5
18836sed 's/^/| /' conftest.$ac_ext >&5
18837
18838fi
18839rm -f conftest.err conftest.$ac_objext \
18840 conftest$ac_exeext conftest.$ac_ext
18841if test "$ac_cv_search_zlibVersion" = no; then
18842 for ac_lib in z; do
18843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18844 cat >conftest.$ac_ext <<_ACEOF
18845/* confdefs.h. */
18846_ACEOF
18847cat confdefs.h >>conftest.$ac_ext
18848cat >>conftest.$ac_ext <<_ACEOF
18849/* end confdefs.h. */
18850
18851/* Override any gcc2 internal prototype to avoid an error. */
18852#ifdef __cplusplus
18853extern "C"
18854#endif
18855/* We use char because int might match the return type of a gcc2
18856 builtin and then its argument prototype would still apply. */
18857char zlibVersion ();
18858int
18859main ()
18860{
18861zlibVersion ();
18862 ;
18863 return 0;
18864}
18865_ACEOF
18866rm -f conftest.$ac_objext conftest$ac_exeext
18867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18868 (eval $ac_link) 2>conftest.er1
18869 ac_status=$?
18870 grep -v '^ *+' conftest.er1 >conftest.err
18871 rm -f conftest.er1
18872 cat conftest.err >&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); } &&
7357c5b6
AM
18875 { ac_try='test -z "$ac_c_werror_flag"
18876 || test ! -s conftest.err'
1b315056
CS
18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878 (eval $ac_try) 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; } &&
18882 { ac_try='test -s conftest$ac_exeext'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_cv_search_zlibVersion="-l$ac_lib"
18889break
18890else
18891 echo "$as_me: failed program was:" >&5
18892sed 's/^/| /' conftest.$ac_ext >&5
18893
18894fi
18895rm -f conftest.err conftest.$ac_objext \
18896 conftest$ac_exeext conftest.$ac_ext
18897 done
18898fi
18899LIBS=$ac_func_search_save_LIBS
18900fi
18901echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18902echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18903if test "$ac_cv_search_zlibVersion" != no; then
18904 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18905
18906for ac_header in zlib.h
18907do
18908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18909if eval "test \"\${$as_ac_Header+set}\" = set"; then
18910 echo "$as_me:$LINENO: checking for $ac_header" >&5
18911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18912if eval "test \"\${$as_ac_Header+set}\" = set"; then
18913 echo $ECHO_N "(cached) $ECHO_C" >&6
18914fi
18915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18917else
18918 # Is the header compilable?
18919echo "$as_me:$LINENO: checking $ac_header usability" >&5
18920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18921cat >conftest.$ac_ext <<_ACEOF
18922/* confdefs.h. */
18923_ACEOF
18924cat confdefs.h >>conftest.$ac_ext
18925cat >>conftest.$ac_ext <<_ACEOF
18926/* end confdefs.h. */
18927$ac_includes_default
18928#include <$ac_header>
18929_ACEOF
18930rm -f conftest.$ac_objext
18931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18932 (eval $ac_compile) 2>conftest.er1
18933 ac_status=$?
18934 grep -v '^ *+' conftest.er1 >conftest.err
18935 rm -f conftest.er1
18936 cat conftest.err >&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); } &&
7357c5b6
AM
18939 { ac_try='test -z "$ac_c_werror_flag"
18940 || test ! -s conftest.err'
1b315056
CS
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; } &&
18946 { ac_try='test -s conftest.$ac_objext'
18947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948 (eval $ac_try) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; }; then
18952 ac_header_compiler=yes
18953else
18954 echo "$as_me: failed program was:" >&5
18955sed 's/^/| /' conftest.$ac_ext >&5
18956
18957ac_header_compiler=no
18958fi
18959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18960echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18961echo "${ECHO_T}$ac_header_compiler" >&6
18962
18963# Is the header present?
18964echo "$as_me:$LINENO: checking $ac_header presence" >&5
18965echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18966cat >conftest.$ac_ext <<_ACEOF
18967/* confdefs.h. */
18968_ACEOF
18969cat confdefs.h >>conftest.$ac_ext
18970cat >>conftest.$ac_ext <<_ACEOF
18971/* end confdefs.h. */
18972#include <$ac_header>
18973_ACEOF
18974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18976 ac_status=$?
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } >/dev/null; then
18982 if test -s conftest.err; then
18983 ac_cpp_err=$ac_c_preproc_warn_flag
18984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18985 else
18986 ac_cpp_err=
18987 fi
18988else
18989 ac_cpp_err=yes
18990fi
18991if test -z "$ac_cpp_err"; then
18992 ac_header_preproc=yes
18993else
18994 echo "$as_me: failed program was:" >&5
18995sed 's/^/| /' conftest.$ac_ext >&5
18996
18997 ac_header_preproc=no
18998fi
18999rm -f conftest.err conftest.$ac_ext
19000echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19001echo "${ECHO_T}$ac_header_preproc" >&6
19002
19003# So? What about this header?
19004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19005 yes:no: )
19006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19010 ac_header_preproc=yes
19011 ;;
19012 no:yes:* )
19013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19016echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19020echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19025 (
19026 cat <<\_ASBOX
19027## ------------------------------------------ ##
19028## Report this to the AC_PACKAGE_NAME lists. ##
19029## ------------------------------------------ ##
19030_ASBOX
19031 ) |
19032 sed "s/^/$as_me: WARNING: /" >&2
19033 ;;
19034esac
19035echo "$as_me:$LINENO: checking for $ac_header" >&5
19036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19037if eval "test \"\${$as_ac_Header+set}\" = set"; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
19039else
19040 eval "$as_ac_Header=\$ac_header_preproc"
19041fi
19042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19044
19045fi
19046if test `eval echo '${'$as_ac_Header'}'` = yes; then
19047 cat >>confdefs.h <<_ACEOF
19048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19049_ACEOF
19050
19051fi
19052
19053done
19054
19055fi
19056
19057
252b5132
RH
19058# If we are configured native, pick a core file support file.
19059COREFILE=
19060COREFLAG=
19061TRAD_HEADER=
19062if test "${target}" = "${host}"; then
19063 case "${host}" in
13dfd2d0 19064 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
19065 COREFILE=''
19066 ;;
ed84e695 19067 alpha*-*-linux-*)
252b5132
RH
19068 COREFILE=trad-core.lo
19069 TRAD_HEADER='"hosts/alphalinux.h"'
19070 ;;
690cc98b
NC
19071 alpha*-*-netbsd* | alpha*-*-openbsd*)
19072 COREFILE=netbsd-core.lo
19073 ;;
252b5132 19074 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
19075 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
19076 COREFILE='' ;;
e33533a4
MK
19077 arm-*-netbsd* | arm-*-openbsd*)
19078 COREFILE=netbsd-core.lo
19079 ;;
252b5132
RH
19080 arm-*-riscix) COREFILE=trad-core.lo ;;
19081 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
19082 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
19083 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
19084 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
19085 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
19086 hppa*-*-netbsd* | hppa*-*-openbsd*)
19087 COREFILE=netbsd-core.lo
19088 ;;
19089
dc810e39 19090 i370-*-*)
5b93d8bb
AM
19091 COREFILE=trad-core.lo
19092 TRAD_HEADER='"hosts/i370linux.h"'
19093 ;;
19094
80c7c40a 19095 i[3-7]86-sequent-bsd*)
5b93d8bb 19096 COREFILE=trad-core.lo
252b5132
RH
19097 TRAD_HEADER='"hosts/symmetry.h"'
19098 ;;
80c7c40a
NC
19099 i[3-7]86-sequent-sysv4*) ;;
19100 i[3-7]86-sequent-sysv*)
252b5132
RH
19101 COREFILE=trad-core.lo
19102 TRAD_HEADER='"hosts/symmetry.h"'
19103 ;;
80c7c40a 19104 i[3-7]86-*-bsdi)
7e3b3466
NC
19105 COREFILE=
19106 ;;
d2bef492 19107 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
19108 COREFILE=trad-core.lo
19109 TRAD_HEADER='"hosts/i386bsd.h"'
19110 ;;
0b3e17e9 19111 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
d4af9775
DB
19112 COREFILE=''
19113 TRAD_HEADER='"hosts/i386bsd.h"'
19114 ;;
4615568e 19115 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
19116 COREFILE=netbsd-core.lo
19117 ;;
80c7c40a 19118 i[3-7]86-esix-sysv3*)
252b5132
RH
19119 COREFILE=trad-core.lo
19120 TRAD_HEADER='"hosts/esix.h"'
19121 ;;
80c7c40a 19122 i[3-7]86-*-sco3.2v5*)
252b5132
RH
19123 COREFILE=sco5-core.lo
19124 ;;
80c7c40a 19125 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
19126 COREFILE=trad-core.lo
19127 TRAD_HEADER='"hosts/i386sco.h"'
19128 ;;
80c7c40a 19129 i[3-7]86-*-mach3*)
252b5132
RH
19130 COREFILE=trad-core.lo
19131 TRAD_HEADER='"hosts/i386mach3.h"'
19132 ;;
ed84e695 19133 i[3-7]86-*-linux-*)
252b5132
RH
19134 COREFILE=trad-core.lo
19135 TRAD_HEADER='"hosts/i386linux.h"'
19136 ;;
80c7c40a
NC
19137 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
19138 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
19139 i860-*-mach3* | i860-*-osf1*)
19140 COREFILE=trad-core.lo
19141 TRAD_HEADER='"hosts/i860mach3.h"'
19142 ;;
252b5132
RH
19143 mips-*-netbsd* | mips*-*-openbsd*)
19144 COREFILE=netbsd-core.lo
19145 ;;
19146 mips-dec-*)
19147 COREFILE=trad-core.lo
19148 TRAD_HEADER='"hosts/decstation.h"'
19149 ;;
19150 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
19151 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
19152 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
19153 mips-*-sysv4*) ;;
19154 mips-*-sysv* | mips-*-riscos*)
19155 COREFILE=trad-core.lo
19156 TRAD_HEADER='"hosts/riscos.h"'
19157 ;;
19158 mips-sony-bsd*)
19159 COREFILE=trad-core.lo
19160 TRAD_HEADER='"hosts/news-mips.h"'
19161 ;;
19162 m68*-bull*-sysv*)
19163 COREFILE=trad-core.lo
19164 TRAD_HEADER='"hosts/dpx2.h"'
19165 ;;
19166 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
19167 m68*-hp-bsd*)
19168 COREFILE=trad-core.lo
19169 TRAD_HEADER='"hosts/hp300bsd.h"'
19170 ;;
ed84e695 19171 m68*-*-linux-*)
252b5132
RH
19172 COREFILE=trad-core.lo
19173 TRAD_HEADER='"hosts/m68klinux.h"'
19174 ;;
19175 m68*-motorola-sysv*)
19176 COREFILE=trad-core.lo
19177 TRAD_HEADER='"hosts/delta68.h"'
19178 ;;
19179 m68*-sony-*)
19180 COREFILE=trad-core.lo
19181 TRAD_HEADER='"hosts/news.h"'
19182 ;;
19183 m68*-*-netbsd* | m68*-*-openbsd*)
19184 COREFILE=netbsd-core.lo
19185 ;;
19186 m68*-apple-aux*)
19187 COREFILE=trad-core.lo
19188 TRAD_HEADER='"hosts/m68kaux.h"'
19189 ;;
eb1e0e80
NC
19190 m88*-*-sysv4*)
19191 ;;
19192 m88*-motorola-sysv*)
19193 COREFILE=ptrace-core.lo
19194 ;;
252b5132
RH
19195 m88*-*-mach3*)
19196 COREFILE=trad-core.lo
19197 TRAD_HEADER='"hosts/m88kmach3.h"'
19198 ;;
c6f8758f
NC
19199 m88*-*-openbsd*)
19200 COREFILE=netbsd-core.lo
19201 ;;
252b5132
RH
19202 ns32k-pc532-mach)
19203 COREFILE=trad-core.lo
19204 TRAD_HEADER='"hosts/pc532mach.h"'
19205 ;;
19206 ns32k-*-netbsd* | ns32k-*-openbsd*)
19207 COREFILE=netbsd-core.lo
19208 ;;
eb1e0e80
NC
19209 rs6000-*-lynx*)
19210 COREFILE=lynx-core.lo
19211 ;;
19212 rs6000-*-aix5.* | powerpc-*-aix5.*)
19213 COREFILE=rs6000-core.lo
19214 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
19215 ;;
83954261 19216 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
19217 COREFILE=rs6000-core.lo
19218 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
19219 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
19220 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
19221 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
19222echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
19223 cat >conftest.$ac_ext <<_ACEOF
19224/* confdefs.h. */
19225_ACEOF
19226cat confdefs.h >>conftest.$ac_ext
19227cat >>conftest.$ac_ext <<_ACEOF
19228/* end confdefs.h. */
83954261 19229#include <core.h>
5464f5a1
NN
19230int
19231main ()
19232{
83954261 19233struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
19234 ;
19235 return 0;
19236}
19237_ACEOF
19238rm -f conftest.$ac_objext
19239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240 (eval $ac_compile) 2>conftest.er1
19241 ac_status=$?
19242 grep -v '^ *+' conftest.er1 >conftest.err
19243 rm -f conftest.er1
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
7357c5b6
AM
19247 { ac_try='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
5464f5a1
NN
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest.$ac_objext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260
19261cat >>confdefs.h <<\_ACEOF
83954261 19262#define HAVE_ST_C_IMPL 1
5464f5a1 19263_ACEOF
83954261 19264
5464f5a1
NN
19265 echo "$as_me:$LINENO: result: yes" >&5
19266echo "${ECHO_T}yes" >&6
83954261 19267else
5464f5a1
NN
19268 echo "$as_me: failed program was:" >&5
19269sed 's/^/| /' conftest.$ac_ext >&5
19270
19271echo "$as_me:$LINENO: result: no" >&5
19272echo "${ECHO_T}no" >&6
83954261 19273fi
5464f5a1 19274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 19275 ;;
252b5132
RH
19276 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
19277 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
19278 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
19279 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
19280 powerpc-*-beos*) ;;
13dfd2d0
NC
19281 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
19282 COREFILE='' ;;
252b5132 19283 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 19284 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 19285 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
19286 sh*-*-netbsd* | sh*-*-openbsd*)
19287 COREFILE=netbsd-core.lo
19288 ;;
a9bf1154 19289 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
19290 COREFILE=netbsd-core.lo
19291 ;;
19292 tahoe-*-*)
19293 COREFILE=trad-core.lo
19294 TRAD_HEADER='"hosts/tahoe.h"'
19295 ;;
de6e5e1a
NC
19296 vax-*-netbsd* | vax-*-openbsd*)
19297 COREFILE=netbsd-core.lo
19298 ;;
252b5132
RH
19299 vax-*-ultrix2*)
19300 COREFILE=trad-core.lo
19301 TRAD_HEADER='"hosts/vaxult2.h"'
19302 ;;
19303 vax-*-ultrix*)
19304 COREFILE=trad-core.lo
19305 TRAD_HEADER='"hosts/vaxult2.h"'
19306 ;;
ed84e695 19307 vax-*-linux-*)
f8fc3443
NC
19308 COREFILE=trad-core.lo
19309 TRAD_HEADER='"hosts/vaxlinux.h"'
19310 ;;
252b5132
RH
19311 vax-*-*)
19312 COREFILE=trad-core.lo
19313 TRAD_HEADER='"hosts/vaxbsd.h"'
19314 ;;
85cfd8d3
MK
19315 x86_64-*-netbsd* | x86_64-*-openbsd*)
19316 COREFILE=netbsd-core.lo
19317 ;;
252b5132
RH
19318 esac
19319
19320 case "$COREFILE" in
19321 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
19322 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
19323 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
19324 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
19325 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
19326 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
19327 osf-core.lo) COREFLAG=-DOSF_CORE ;;
19328 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
19329 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
19330 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
19331 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
19332 esac
19333
19334 # ELF corefile support has several flavors, but all of
19335 # them use something called <sys/procfs.h>
5464f5a1
NN
19336
19337for ac_header in sys/procfs.h
252b5132 19338do
5464f5a1
NN
19339as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19340if eval "test \"\${$as_ac_Header+set}\" = set"; then
19341 echo "$as_me:$LINENO: checking for $ac_header" >&5
19342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19343if eval "test \"\${$as_ac_Header+set}\" = set"; then
19344 echo $ECHO_N "(cached) $ECHO_C" >&6
19345fi
19346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19348else
19349 # Is the header compilable?
19350echo "$as_me:$LINENO: checking $ac_header usability" >&5
19351echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19352cat >conftest.$ac_ext <<_ACEOF
19353/* confdefs.h. */
19354_ACEOF
19355cat confdefs.h >>conftest.$ac_ext
19356cat >>conftest.$ac_ext <<_ACEOF
19357/* end confdefs.h. */
19358$ac_includes_default
19359#include <$ac_header>
19360_ACEOF
19361rm -f conftest.$ac_objext
19362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19363 (eval $ac_compile) 2>conftest.er1
19364 ac_status=$?
19365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } &&
7357c5b6
AM
19370 { ac_try='test -z "$ac_c_werror_flag"
19371 || test ! -s conftest.err'
5464f5a1
NN
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest.$ac_objext'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 ac_header_compiler=yes
19384else
19385 echo "$as_me: failed program was:" >&5
19386sed 's/^/| /' conftest.$ac_ext >&5
19387
19388ac_header_compiler=no
19389fi
19390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19391echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19392echo "${ECHO_T}$ac_header_compiler" >&6
19393
19394# Is the header present?
19395echo "$as_me:$LINENO: checking $ac_header presence" >&5
19396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19397cat >conftest.$ac_ext <<_ACEOF
19398/* confdefs.h. */
19399_ACEOF
19400cat confdefs.h >>conftest.$ac_ext
19401cat >>conftest.$ac_ext <<_ACEOF
19402/* end confdefs.h. */
19403#include <$ac_header>
19404_ACEOF
19405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19407 ac_status=$?
19408 grep -v '^ *+' conftest.er1 >conftest.err
19409 rm -f conftest.er1
19410 cat conftest.err >&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } >/dev/null; then
19413 if test -s conftest.err; then
19414 ac_cpp_err=$ac_c_preproc_warn_flag
19415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19416 else
19417 ac_cpp_err=
19418 fi
252b5132 19419else
5464f5a1 19420 ac_cpp_err=yes
252b5132 19421fi
5464f5a1
NN
19422if test -z "$ac_cpp_err"; then
19423 ac_header_preproc=yes
19424else
19425 echo "$as_me: failed program was:" >&5
19426sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 ac_header_preproc=no
252b5132 19429fi
5464f5a1
NN
19430rm -f conftest.err conftest.$ac_ext
19431echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19432echo "${ECHO_T}$ac_header_preproc" >&6
19433
19434# So? What about this header?
19435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19436 yes:no: )
19437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19440echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19441 ac_header_preproc=yes
19442 ;;
19443 no:yes:* )
19444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19447echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19449echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19451echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19456 (
19457 cat <<\_ASBOX
19458## ------------------------------------------ ##
19459## Report this to the AC_PACKAGE_NAME lists. ##
19460## ------------------------------------------ ##
19461_ASBOX
19462 ) |
19463 sed "s/^/$as_me: WARNING: /" >&2
19464 ;;
19465esac
19466echo "$as_me:$LINENO: checking for $ac_header" >&5
19467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19468if eval "test \"\${$as_ac_Header+set}\" = set"; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 19470else
5464f5a1
NN
19471 eval "$as_ac_Header=\$ac_header_preproc"
19472fi
19473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19475
252b5132 19476fi
5464f5a1
NN
19477if test `eval echo '${'$as_ac_Header'}'` = yes; then
19478 cat >>confdefs.h <<_ACEOF
19479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19480_ACEOF
19481
19482fi
19483
252b5132
RH
19484done
19485
19486 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
19487 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
19488echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
19489 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19491else
19492 cat >conftest.$ac_ext <<_ACEOF
19493/* confdefs.h. */
19494_ACEOF
19495cat confdefs.h >>conftest.$ac_ext
19496cat >>conftest.$ac_ext <<_ACEOF
19497/* end confdefs.h. */
7ee38065
MS
19498
19499#define _SYSCALL32
252b5132 19500#include <sys/procfs.h>
5464f5a1
NN
19501int
19502main ()
19503{
252b5132 19504prstatus_t avar
5464f5a1
NN
19505 ;
19506 return 0;
19507}
19508_ACEOF
19509rm -f conftest.$ac_objext
19510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19511 (eval $ac_compile) 2>conftest.er1
19512 ac_status=$?
19513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
7357c5b6
AM
19518 { ac_try='test -z "$ac_c_werror_flag"
19519 || test ! -s conftest.err'
5464f5a1
NN
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; } &&
19525 { ac_try='test -s conftest.$ac_objext'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
252b5132
RH
19531 bfd_cv_have_sys_procfs_type_prstatus_t=yes
19532else
5464f5a1
NN
19533 echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
19536bfd_cv_have_sys_procfs_type_prstatus_t=no
19537
252b5132 19538fi
5464f5a1 19539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19540fi
19541
19542 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
19543
19544cat >>confdefs.h <<\_ACEOF
252b5132 19545#define HAVE_PRSTATUS_T 1
5464f5a1 19546_ACEOF
252b5132
RH
19547
19548 fi
5464f5a1
NN
19549 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
19550echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 19551
5464f5a1
NN
19552 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
19553echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
19554 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19556else
5464f5a1
NN
19557 cat >conftest.$ac_ext <<_ACEOF
19558/* confdefs.h. */
19559_ACEOF
19560cat confdefs.h >>conftest.$ac_ext
19561cat >>conftest.$ac_ext <<_ACEOF
19562/* end confdefs.h. */
7ee38065
MS
19563
19564#define _SYSCALL32
19565#include <sys/procfs.h>
5464f5a1
NN
19566int
19567main ()
19568{
7ee38065 19569prstatus32_t avar
5464f5a1
NN
19570 ;
19571 return 0;
19572}
19573_ACEOF
19574rm -f conftest.$ac_objext
19575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576 (eval $ac_compile) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
7357c5b6
AM
19583 { ac_try='test -z "$ac_c_werror_flag"
19584 || test ! -s conftest.err'
5464f5a1
NN
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest.$ac_objext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
7ee38065
MS
19596 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
19597else
5464f5a1
NN
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601bfd_cv_have_sys_procfs_type_prstatus32_t=no
19602
7ee38065 19603fi
5464f5a1 19604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19605fi
19606
19607 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
19608
19609cat >>confdefs.h <<\_ACEOF
7ee38065 19610#define HAVE_PRSTATUS32_T 1
5464f5a1 19611_ACEOF
7ee38065
MS
19612
19613 fi
5464f5a1
NN
19614 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
19615echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 19616
5464f5a1
NN
19617 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
19618echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19619 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19621else
5464f5a1
NN
19622 cat >conftest.$ac_ext <<_ACEOF
19623/* confdefs.h. */
19624_ACEOF
19625cat confdefs.h >>conftest.$ac_ext
19626cat >>conftest.$ac_ext <<_ACEOF
19627/* end confdefs.h. */
7ee38065
MS
19628
19629#define _SYSCALL32
252b5132 19630#include <sys/procfs.h>
5464f5a1
NN
19631int
19632main ()
19633{
252b5132 19634prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
19635 ;
19636 return 0;
19637}
19638_ACEOF
19639rm -f conftest.$ac_objext
19640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19641 (eval $ac_compile) 2>conftest.er1
19642 ac_status=$?
19643 grep -v '^ *+' conftest.er1 >conftest.err
19644 rm -f conftest.er1
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } &&
7357c5b6
AM
19648 { ac_try='test -z "$ac_c_werror_flag"
19649 || test ! -s conftest.err'
5464f5a1
NN
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; } &&
19655 { ac_try='test -s conftest.$ac_objext'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
252b5132
RH
19661 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
19662else
5464f5a1
NN
19663 echo "$as_me: failed program was:" >&5
19664sed 's/^/| /' conftest.$ac_ext >&5
19665
19666bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
19667
252b5132 19668fi
5464f5a1 19669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19670fi
19671
19672 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
19673
19674cat >>confdefs.h <<\_ACEOF
252b5132 19675#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 19676_ACEOF
252b5132
RH
19677
19678 fi
5464f5a1
NN
19679 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19680echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 19681
5464f5a1
NN
19682 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19683echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19684 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19686else
5464f5a1
NN
19687 cat >conftest.$ac_ext <<_ACEOF
19688/* confdefs.h. */
19689_ACEOF
19690cat confdefs.h >>conftest.$ac_ext
19691cat >>conftest.$ac_ext <<_ACEOF
19692/* end confdefs.h. */
7ee38065
MS
19693
19694#define _SYSCALL32
19695#include <sys/procfs.h>
5464f5a1
NN
19696int
19697main ()
19698{
7ee38065 19699prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
19700 ;
19701 return 0;
19702}
19703_ACEOF
19704rm -f conftest.$ac_objext
19705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19706 (eval $ac_compile) 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
7357c5b6
AM
19713 { ac_try='test -z "$ac_c_werror_flag"
19714 || test ! -s conftest.err'
5464f5a1
NN
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
7ee38065
MS
19726 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19727else
5464f5a1
NN
19728 echo "$as_me: failed program was:" >&5
19729sed 's/^/| /' conftest.$ac_ext >&5
19730
19731bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19732
7ee38065 19733fi
5464f5a1 19734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19735fi
19736
19737 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
19738
19739cat >>confdefs.h <<\_ACEOF
7ee38065 19740#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 19741_ACEOF
7ee38065
MS
19742
19743 fi
5464f5a1
NN
19744 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19745echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 19746
5464f5a1
NN
19747 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19748echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19749 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19751else
5464f5a1
NN
19752 cat >conftest.$ac_ext <<_ACEOF
19753/* confdefs.h. */
19754_ACEOF
19755cat confdefs.h >>conftest.$ac_ext
19756cat >>conftest.$ac_ext <<_ACEOF
19757/* end confdefs.h. */
7ee38065
MS
19758
19759#define _SYSCALL32
252b5132 19760#include <sys/procfs.h>
5464f5a1
NN
19761int
19762main ()
19763{
252b5132 19764pstatus_t avar
5464f5a1
NN
19765 ;
19766 return 0;
19767}
19768_ACEOF
19769rm -f conftest.$ac_objext
19770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19771 (eval $ac_compile) 2>conftest.er1
19772 ac_status=$?
19773 grep -v '^ *+' conftest.er1 >conftest.err
19774 rm -f conftest.er1
19775 cat conftest.err >&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); } &&
7357c5b6
AM
19778 { ac_try='test -z "$ac_c_werror_flag"
19779 || test ! -s conftest.err'
5464f5a1
NN
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; } &&
19785 { ac_try='test -s conftest.$ac_objext'
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
252b5132
RH
19791 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19792else
5464f5a1
NN
19793 echo "$as_me: failed program was:" >&5
19794sed 's/^/| /' conftest.$ac_ext >&5
19795
19796bfd_cv_have_sys_procfs_type_pstatus_t=no
19797
252b5132 19798fi
5464f5a1 19799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19800fi
19801
19802 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
19803
19804cat >>confdefs.h <<\_ACEOF
252b5132 19805#define HAVE_PSTATUS_T 1
5464f5a1 19806_ACEOF
252b5132
RH
19807
19808 fi
5464f5a1
NN
19809 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19810echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 19811
5464f5a1
NN
19812 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19813echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19814 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 19816else
5464f5a1
NN
19817 cat >conftest.$ac_ext <<_ACEOF
19818/* confdefs.h. */
19819_ACEOF
19820cat confdefs.h >>conftest.$ac_ext
19821cat >>conftest.$ac_ext <<_ACEOF
19822/* end confdefs.h. */
f572a39d
AM
19823
19824#define _SYSCALL32
19825#include <sys/procfs.h>
5464f5a1
NN
19826int
19827main ()
19828{
f572a39d 19829pxstatus_t avar
5464f5a1
NN
19830 ;
19831 return 0;
19832}
19833_ACEOF
19834rm -f conftest.$ac_objext
19835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19836 (eval $ac_compile) 2>conftest.er1
19837 ac_status=$?
19838 grep -v '^ *+' conftest.er1 >conftest.err
19839 rm -f conftest.er1
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } &&
7357c5b6
AM
19843 { ac_try='test -z "$ac_c_werror_flag"
19844 || test ! -s conftest.err'
5464f5a1
NN
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; } &&
19850 { ac_try='test -s conftest.$ac_objext'
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; }; then
f572a39d
AM
19856 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19857else
5464f5a1
NN
19858 echo "$as_me: failed program was:" >&5
19859sed 's/^/| /' conftest.$ac_ext >&5
19860
19861bfd_cv_have_sys_procfs_type_pxstatus_t=no
19862
f572a39d 19863fi
5464f5a1 19864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
19865fi
19866
19867 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
19868
19869cat >>confdefs.h <<\_ACEOF
f572a39d 19870#define HAVE_PXSTATUS_T 1
5464f5a1 19871_ACEOF
f572a39d
AM
19872
19873 fi
5464f5a1
NN
19874 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19875echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 19876
5464f5a1
NN
19877 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19878echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19879 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19881else
5464f5a1
NN
19882 cat >conftest.$ac_ext <<_ACEOF
19883/* confdefs.h. */
19884_ACEOF
19885cat confdefs.h >>conftest.$ac_ext
19886cat >>conftest.$ac_ext <<_ACEOF
19887/* end confdefs.h. */
7ee38065
MS
19888
19889#define _SYSCALL32
19890#include <sys/procfs.h>
5464f5a1
NN
19891int
19892main ()
19893{
7ee38065 19894pstatus32_t avar
5464f5a1
NN
19895 ;
19896 return 0;
19897}
19898_ACEOF
19899rm -f conftest.$ac_objext
19900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19901 (eval $ac_compile) 2>conftest.er1
19902 ac_status=$?
19903 grep -v '^ *+' conftest.er1 >conftest.err
19904 rm -f conftest.er1
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } &&
7357c5b6
AM
19908 { ac_try='test -z "$ac_c_werror_flag"
19909 || test ! -s conftest.err'
5464f5a1
NN
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; } &&
19915 { ac_try='test -s conftest.$ac_objext'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
7ee38065
MS
19921 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19922else
5464f5a1
NN
19923 echo "$as_me: failed program was:" >&5
19924sed 's/^/| /' conftest.$ac_ext >&5
19925
19926bfd_cv_have_sys_procfs_type_pstatus32_t=no
19927
7ee38065 19928fi
5464f5a1 19929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19930fi
19931
19932 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
19933
19934cat >>confdefs.h <<\_ACEOF
7ee38065 19935#define HAVE_PSTATUS32_T 1
5464f5a1 19936_ACEOF
7ee38065
MS
19937
19938 fi
5464f5a1
NN
19939 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19940echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 19941
5464f5a1
NN
19942 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19943echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19944 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19946else
5464f5a1
NN
19947 cat >conftest.$ac_ext <<_ACEOF
19948/* confdefs.h. */
19949_ACEOF
19950cat confdefs.h >>conftest.$ac_ext
19951cat >>conftest.$ac_ext <<_ACEOF
19952/* end confdefs.h. */
7ee38065
MS
19953
19954#define _SYSCALL32
252b5132 19955#include <sys/procfs.h>
5464f5a1
NN
19956int
19957main ()
19958{
252b5132 19959prpsinfo_t avar
5464f5a1
NN
19960 ;
19961 return 0;
19962}
19963_ACEOF
19964rm -f conftest.$ac_objext
19965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19966 (eval $ac_compile) 2>conftest.er1
19967 ac_status=$?
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } &&
7357c5b6
AM
19973 { ac_try='test -z "$ac_c_werror_flag"
19974 || test ! -s conftest.err'
5464f5a1
NN
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; } &&
19980 { ac_try='test -s conftest.$ac_objext'
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; }; then
252b5132
RH
19986 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
19987else
5464f5a1
NN
19988 echo "$as_me: failed program was:" >&5
19989sed 's/^/| /' conftest.$ac_ext >&5
19990
19991bfd_cv_have_sys_procfs_type_prpsinfo_t=no
19992
252b5132 19993fi
5464f5a1 19994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19995fi
19996
19997 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
19998
19999cat >>confdefs.h <<\_ACEOF
252b5132 20000#define HAVE_PRPSINFO_T 1
5464f5a1 20001_ACEOF
252b5132
RH
20002
20003 fi
5464f5a1
NN
20004 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
20005echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 20006
5464f5a1
NN
20007 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
20008echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
20009 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 20011else
5464f5a1
NN
20012 cat >conftest.$ac_ext <<_ACEOF
20013/* confdefs.h. */
20014_ACEOF
20015cat confdefs.h >>conftest.$ac_ext
20016cat >>conftest.$ac_ext <<_ACEOF
20017/* end confdefs.h. */
7ee38065
MS
20018
20019#define _SYSCALL32
20020#include <sys/procfs.h>
5464f5a1
NN
20021int
20022main ()
20023{
7ee38065 20024prpsinfo32_t avar
5464f5a1
NN
20025 ;
20026 return 0;
20027}
20028_ACEOF
20029rm -f conftest.$ac_objext
20030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20031 (eval $ac_compile) 2>conftest.er1
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
7357c5b6
AM
20038 { ac_try='test -z "$ac_c_werror_flag"
20039 || test ! -s conftest.err'
5464f5a1
NN
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; } &&
20045 { ac_try='test -s conftest.$ac_objext'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
7ee38065
MS
20051 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
20052else
5464f5a1
NN
20053 echo "$as_me: failed program was:" >&5
20054sed 's/^/| /' conftest.$ac_ext >&5
20055
20056bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
20057
7ee38065 20058fi
5464f5a1 20059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
20060fi
20061
20062 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
20063
20064cat >>confdefs.h <<\_ACEOF
7ee38065 20065#define HAVE_PRPSINFO32_T 1
5464f5a1 20066_ACEOF
7ee38065
MS
20067
20068 fi
5464f5a1
NN
20069 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
20070echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 20071
5464f5a1
NN
20072 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
20073echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
20074 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20076else
5464f5a1
NN
20077 cat >conftest.$ac_ext <<_ACEOF
20078/* confdefs.h. */
20079_ACEOF
20080cat confdefs.h >>conftest.$ac_ext
20081cat >>conftest.$ac_ext <<_ACEOF
20082/* end confdefs.h. */
7ee38065
MS
20083
20084#define _SYSCALL32
252b5132 20085#include <sys/procfs.h>
5464f5a1
NN
20086int
20087main ()
20088{
252b5132 20089psinfo_t avar
5464f5a1
NN
20090 ;
20091 return 0;
20092}
20093_ACEOF
20094rm -f conftest.$ac_objext
20095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20096 (eval $ac_compile) 2>conftest.er1
20097 ac_status=$?
20098 grep -v '^ *+' conftest.er1 >conftest.err
20099 rm -f conftest.er1
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
7357c5b6
AM
20103 { ac_try='test -z "$ac_c_werror_flag"
20104 || test ! -s conftest.err'
5464f5a1
NN
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; } &&
20110 { ac_try='test -s conftest.$ac_objext'
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
252b5132
RH
20116 bfd_cv_have_sys_procfs_type_psinfo_t=yes
20117else
5464f5a1
NN
20118 echo "$as_me: failed program was:" >&5
20119sed 's/^/| /' conftest.$ac_ext >&5
20120
20121bfd_cv_have_sys_procfs_type_psinfo_t=no
20122
252b5132 20123fi
5464f5a1 20124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20125fi
20126
20127 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
20128
20129cat >>confdefs.h <<\_ACEOF
252b5132 20130#define HAVE_PSINFO_T 1
5464f5a1 20131_ACEOF
252b5132
RH
20132
20133 fi
5464f5a1
NN
20134 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
20135echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 20136
5464f5a1
NN
20137 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
20138echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
20139 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 20141else
5464f5a1
NN
20142 cat >conftest.$ac_ext <<_ACEOF
20143/* confdefs.h. */
20144_ACEOF
20145cat confdefs.h >>conftest.$ac_ext
20146cat >>conftest.$ac_ext <<_ACEOF
20147/* end confdefs.h. */
7ee38065
MS
20148
20149#define _SYSCALL32
20150#include <sys/procfs.h>
5464f5a1
NN
20151int
20152main ()
20153{
7ee38065 20154psinfo32_t avar
5464f5a1
NN
20155 ;
20156 return 0;
20157}
20158_ACEOF
20159rm -f conftest.$ac_objext
20160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20161 (eval $ac_compile) 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } &&
7357c5b6
AM
20168 { ac_try='test -z "$ac_c_werror_flag"
20169 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
20175 { ac_try='test -s conftest.$ac_objext'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
7ee38065
MS
20181 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
20182else
5464f5a1
NN
20183 echo "$as_me: failed program was:" >&5
20184sed 's/^/| /' conftest.$ac_ext >&5
20185
20186bfd_cv_have_sys_procfs_type_psinfo32_t=no
20187
7ee38065 20188fi
5464f5a1 20189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
20190fi
20191
20192 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
20193
20194cat >>confdefs.h <<\_ACEOF
7ee38065 20195#define HAVE_PSINFO32_T 1
5464f5a1 20196_ACEOF
7ee38065
MS
20197
20198 fi
5464f5a1
NN
20199 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
20200echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 20201
5464f5a1
NN
20202 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
20203echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
20204 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20206else
5464f5a1
NN
20207 cat >conftest.$ac_ext <<_ACEOF
20208/* confdefs.h. */
20209_ACEOF
20210cat confdefs.h >>conftest.$ac_ext
20211cat >>conftest.$ac_ext <<_ACEOF
20212/* end confdefs.h. */
7ee38065
MS
20213
20214#define _SYSCALL32
252b5132 20215#include <sys/procfs.h>
5464f5a1
NN
20216int
20217main ()
20218{
252b5132 20219lwpstatus_t avar
5464f5a1
NN
20220 ;
20221 return 0;
20222}
20223_ACEOF
20224rm -f conftest.$ac_objext
20225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
7357c5b6
AM
20233 { ac_try='test -z "$ac_c_werror_flag"
20234 || test ! -s conftest.err'
5464f5a1
NN
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest.$ac_objext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
252b5132
RH
20246 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
20247else
5464f5a1
NN
20248 echo "$as_me: failed program was:" >&5
20249sed 's/^/| /' conftest.$ac_ext >&5
20250
20251bfd_cv_have_sys_procfs_type_lwpstatus_t=no
20252
252b5132 20253fi
5464f5a1 20254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20255fi
20256
20257 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
20258
20259cat >>confdefs.h <<\_ACEOF
252b5132 20260#define HAVE_LWPSTATUS_T 1
5464f5a1 20261_ACEOF
252b5132
RH
20262
20263 fi
5464f5a1
NN
20264 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
20265echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 20266
5464f5a1
NN
20267 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
20268echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
20269 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 20271else
5464f5a1
NN
20272 cat >conftest.$ac_ext <<_ACEOF
20273/* confdefs.h. */
20274_ACEOF
20275cat confdefs.h >>conftest.$ac_ext
20276cat >>conftest.$ac_ext <<_ACEOF
20277/* end confdefs.h. */
f572a39d
AM
20278
20279#define _SYSCALL32
20280#include <sys/procfs.h>
5464f5a1
NN
20281int
20282main ()
20283{
f572a39d 20284lwpxstatus_t avar
5464f5a1
NN
20285 ;
20286 return 0;
20287}
20288_ACEOF
20289rm -f conftest.$ac_objext
20290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20291 (eval $ac_compile) 2>conftest.er1
20292 ac_status=$?
20293 grep -v '^ *+' conftest.er1 >conftest.err
20294 rm -f conftest.er1
20295 cat conftest.err >&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } &&
7357c5b6
AM
20298 { ac_try='test -z "$ac_c_werror_flag"
20299 || test ! -s conftest.err'
5464f5a1
NN
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try='test -s conftest.$ac_objext'
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
f572a39d
AM
20311 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
20312else
5464f5a1
NN
20313 echo "$as_me: failed program was:" >&5
20314sed 's/^/| /' conftest.$ac_ext >&5
20315
20316bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
20317
f572a39d 20318fi
5464f5a1 20319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
20320fi
20321
20322 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
20323
20324cat >>confdefs.h <<\_ACEOF
f572a39d 20325#define HAVE_LWPXSTATUS_T 1
5464f5a1 20326_ACEOF
f572a39d
AM
20327
20328 fi
5464f5a1
NN
20329 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
20330echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 20331
5464f5a1
NN
20332 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
20333echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
20334 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20336else
5464f5a1
NN
20337 cat >conftest.$ac_ext <<_ACEOF
20338/* confdefs.h. */
20339_ACEOF
20340cat confdefs.h >>conftest.$ac_ext
20341cat >>conftest.$ac_ext <<_ACEOF
20342/* end confdefs.h. */
7ee38065
MS
20343
20344#define _SYSCALL32
252b5132 20345#include <sys/procfs.h>
5464f5a1
NN
20346int
20347main ()
20348{
252b5132 20349lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
20350 ;
20351 return 0;
20352}
20353_ACEOF
20354rm -f conftest.$ac_objext
20355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20356 (eval $ac_compile) 2>conftest.er1
20357 ac_status=$?
20358 grep -v '^ *+' conftest.er1 >conftest.err
20359 rm -f conftest.er1
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } &&
7357c5b6
AM
20363 { ac_try='test -z "$ac_c_werror_flag"
20364 || test ! -s conftest.err'
5464f5a1
NN
20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20367 ac_status=$?
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; } &&
20370 { ac_try='test -s conftest.$ac_objext'
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; }; then
252b5132
RH
20376 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
20377else
5464f5a1
NN
20378 echo "$as_me: failed program was:" >&5
20379sed 's/^/| /' conftest.$ac_ext >&5
20380
20381bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
20382
252b5132 20383fi
5464f5a1 20384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20385fi
20386
20387 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
20388
20389cat >>confdefs.h <<\_ACEOF
252b5132 20390#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 20391_ACEOF
252b5132
RH
20392
20393 fi
5464f5a1
NN
20394 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
20395echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 20396
5464f5a1
NN
20397 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
20398echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
20399 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
20400 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20401else
5464f5a1
NN
20402 cat >conftest.$ac_ext <<_ACEOF
20403/* confdefs.h. */
20404_ACEOF
20405cat confdefs.h >>conftest.$ac_ext
20406cat >>conftest.$ac_ext <<_ACEOF
20407/* end confdefs.h. */
7ee38065
MS
20408
20409#define _SYSCALL32
252b5132 20410#include <sys/procfs.h>
5464f5a1
NN
20411int
20412main ()
20413{
252b5132 20414lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
20415 ;
20416 return 0;
20417}
20418_ACEOF
20419rm -f conftest.$ac_objext
20420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20421 (eval $ac_compile) 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
7357c5b6
AM
20428 { ac_try='test -z "$ac_c_werror_flag"
20429 || test ! -s conftest.err'
5464f5a1
NN
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try='test -s conftest.$ac_objext'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
252b5132
RH
20441 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
20442else
5464f5a1
NN
20443 echo "$as_me: failed program was:" >&5
20444sed 's/^/| /' conftest.$ac_ext >&5
20445
20446bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
20447
252b5132 20448fi
5464f5a1 20449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20450fi
20451
20452 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
20453
20454cat >>confdefs.h <<\_ACEOF
252b5132 20455#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 20456_ACEOF
252b5132
RH
20457
20458 fi
5464f5a1
NN
20459 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
20460echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 20461
5464f5a1
NN
20462 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
20463echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
20464 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 20466else
5464f5a1
NN
20467 cat >conftest.$ac_ext <<_ACEOF
20468/* confdefs.h. */
20469_ACEOF
20470cat confdefs.h >>conftest.$ac_ext
20471cat >>conftest.$ac_ext <<_ACEOF
20472/* end confdefs.h. */
7ee38065
MS
20473
20474#define _SYSCALL32
e3c976c4 20475#include <sys/procfs.h>
5464f5a1
NN
20476int
20477main ()
20478{
e3c976c4 20479win32_pstatus_t avar
5464f5a1
NN
20480 ;
20481 return 0;
20482}
20483_ACEOF
20484rm -f conftest.$ac_objext
20485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486 (eval $ac_compile) 2>conftest.er1
20487 ac_status=$?
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
7357c5b6
AM
20493 { ac_try='test -z "$ac_c_werror_flag"
20494 || test ! -s conftest.err'
5464f5a1
NN
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; } &&
20500 { ac_try='test -s conftest.$ac_objext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
e3c976c4
ILT
20506 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
20507else
5464f5a1
NN
20508 echo "$as_me: failed program was:" >&5
20509sed 's/^/| /' conftest.$ac_ext >&5
20510
20511bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
20512
e3c976c4 20513fi
5464f5a1 20514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20515fi
20516
e3c976c4 20517 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
20518
20519cat >>confdefs.h <<\_ACEOF
e3c976c4 20520#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 20521_ACEOF
16e9c715
NC
20522
20523 fi
5464f5a1
NN
20524 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
20525echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
20526
20527 fi
20528fi
16e9c715 20529
b3baf5d0 20530
6be7c12c 20531if test -n "$TRAD_HEADER"; then
5464f5a1
NN
20532
20533cat >>confdefs.h <<_ACEOF
252b5132 20534#define TRAD_HEADER $TRAD_HEADER
5464f5a1 20535_ACEOF
252b5132 20536
3f9b03b5 20537fi
252b5132
RH
20538
20539# Horrible hacks to build DLLs on Windows.
20540WIN32LDFLAGS=
20541WIN32LIBADD=
20542case "${host}" in
20543*-*-cygwin*)
20544 if test "$enable_shared" = "yes"; then
20545 WIN32LDFLAGS="-no-undefined"
20546 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
20547 fi
20548 ;;
78be1d6e 20549*-*-linux*)
39691762
L
20550 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
20551 # libiberty.a.
c5cb8442
TS
20552 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
20553 if test -n "$x"; then
20554 WIN32LIBADD="-L../libiberty/pic -liberty"
20555 fi
39691762 20556 ;;
252b5132
RH
20557esac
20558
6be7c12c
AO
20559
20560
252b5132
RH
20561# target stuff:
20562
20563# Canonicalize the secondary target names.
20564if test -n "$enable_targets" ; then
20565 for targ in `echo $enable_targets | sed 's/,/ /g'`
20566 do
6d83c84b 20567 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
20568 if test -n "$result" ; then
20569 canon_targets="$canon_targets $result"
20570 else
20571 # Allow targets that config.sub doesn't recognize, like "all".
20572 canon_targets="$canon_targets $targ"
20573 fi
20574 done
20575fi
20576
20577all_targets=false
20578defvec=
20579selvecs=
08f74004 20580assocvecs=
252b5132
RH
20581selarchs=
20582TDEFINES=
20583for targ in $target $canon_targets
20584do
20585 if test "x$targ" = "xall"; then
20586 all_targets=true
08f74004 20587 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
20588 else
20589 . $srcdir/config.bfd
20590 if test "x$targ" = "x$target"; then
20591 defvec=$targ_defvec
20592 fi
20593 selvecs="$selvecs $targ_defvec $targ_selvecs"
20594 selarchs="$selarchs $targ_archs"
20595 TDEFINES="$TDEFINES $targ_cflags"
20596 fi
20597done
20598
6be7c12c 20599
252b5132
RH
20600# This processing still needs to be done if we're to decide properly whether
20601# 64-bit support needs to be compiled in. Currently, it will be included if
20602# the default or any other explicitly requested target requires it; it
20603# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 20604# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
20605# used.
20606
20607# uniq the default and selected vectors in all the configured targets.
20608f=""
20609for i in $selvecs ; do
20610 case " $f " in
20611 *" $i "*) ;;
20612 *) f="$f $i" ;;
20613 esac
20614done
20615selvecs="$f"
20616
6be7c12c 20617
08f74004
AM
20618# uniq the associated vectors in all the configured targets.
20619f=""
20620for i in $assocvecs ; do
20621 case " $f " in
20622 *" $i "*) ;;
20623 *) f="$f $i" ;;
20624 esac
20625done
20626assocvecs="$f"
20627
20628
252b5132
RH
20629# uniq the architectures in all the configured targets.
20630f=""
20631for i in $selarchs ; do
20632 case " $f " in
20633 *" $i "*) ;;
20634 *) f="$f $i" ;;
20635 esac
20636done
20637selarchs="$f"
20638
20639# Target backend .o files.
20640tb=
20641
104d59d1 20642elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
20643
20644for vec in $selvecs
20645do
69263e90 20646 target_size=32
252b5132
RH
20647 case "$vec" in
20648 # This list is alphabetized to make it easy to compare
dc810e39
AM
20649 # with the two vector lists in targets.c. For the same reason,
20650 # use one entry per line, even though this leads to long lines.
252b5132 20651 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 20652 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
20653 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
20654 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20655 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 20656 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
20657 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20658 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20659 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20660 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
20661 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20662 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20663 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20664 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
20665 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20666 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20667 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
20668 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20669 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20670 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20671 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
20672 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
20673 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 20674 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
e81819a5
NC
20675 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
20676 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 20677 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
e81819a5
NC
20678 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20679 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 20680 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
e81819a5
NC
20681 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20682 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 20683 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 20684 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 20685 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 20686 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 20687 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 20688 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 20689 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 20690 bfd_elf32_bigarm_symbian_vec)
00a97672 20691 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 20692 bfd_elf32_bigarm_vxworks_vec)
00a97672 20693 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
20694 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20695 bfd_elf32_bigmips_vxworks_vec)
20696 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
3d3d428f 20697 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
0949843d 20698 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 20699 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 20700 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
20701 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20702 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 20703 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 20704 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 20705 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 20706 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 20707 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 20708 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 20709 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 20710 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 20711 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
0b3e17e9
NC
20712 bfd_elf32_i386_dragonfly_vec)
20713 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
eac338cf
PB
20714 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20715 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20716 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 20717 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 20718 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 20719 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 20720 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 20721 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 20722 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 20723 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 20724 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 20725 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 20726 bfd_elf32_littlearm_symbian_vec)
00a97672 20727 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 20728 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
20729 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20730 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
20731 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20732 bfd_elf32_littlemips_vxworks_vec)
20733 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 20734 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 20735 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
20736 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20737 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20738 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
20739 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20740 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
20741 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
20742 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
20743 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20744 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
20745 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20746 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
20747 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
20748 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 20749 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 20750 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
20751 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20752 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20753 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20754 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 20755 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 20756 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
20757 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20758 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
20759 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20760 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20761 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 20762 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
20763 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20764 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
20765 # FIXME: We include cofflink.lo not because it's needed for
20766 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
20767 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
20768 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20769 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20770 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20771 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20772 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20773 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20774 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20775 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20776 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20777 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20778 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20779 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20780 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 20781 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 20782 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
20783 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20784 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 20785 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
20786 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20787 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 20788 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 20789 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 20790 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 20791 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 20792 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
20793 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20794 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 20795 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
20796 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20797 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 20798 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
20799 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20800 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 20801 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 20802 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
20803 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20804 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 20805 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 20806 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
20807 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20808 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
20809 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
20810 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20811 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
20812 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20813 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20814 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20815 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 20816 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 20817 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
20818 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 ;;
20819 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 20820 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 20821 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 20822 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
20823 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20824 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20825 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20826 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 20827 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 20828 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 20829 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 20830 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
20831 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20832 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
20833 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
20834 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
20835 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
20836 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
20837 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
20838 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
20839 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
20840 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
20841 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
20842 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 20843 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
20844 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
20845 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
20846 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
20847 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
20848 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
20849 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 20850 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
20851 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
20852 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
20853 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
20854 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
20855 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20856 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
20857 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
20858 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20859 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20860 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
20861 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
20862 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
20863 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
20864 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
20865 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 20866 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
20867 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
20868 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 20869 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 20870 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 20871 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
20872 mach_o_be_vec) tb="$tb mach-o.lo" ;;
20873 mach_o_le_vec) tb="$tb mach-o.lo" ;;
20874 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
20875 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20876 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20877 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20878 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
20879 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
20880 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 20881 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 20882 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 20883 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 20884 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 20885 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 20886 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 20887 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 20888 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
20889 pef_vec) tb="$tb pef.lo" ;;
20890 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 20891 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 20892 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 20893 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 20894 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 20895 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 20896 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 20897 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 20898 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 20899 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 20900 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
20901 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20902 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 20903 som_vec) tb="$tb som.lo" ;;
dc810e39 20904 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
20905 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
20906 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
20907 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
20908 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
20909 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 20910 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 20911 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
20912 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
20913 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
20914 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
20915 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
20916 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
20917 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
20918 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
20919 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 20920 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20921 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 20922 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20923 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 20924 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20925 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 20926 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 20927 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 20928 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 20929 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 20930 versados_vec) tb="$tb versados.lo" ;;
dc810e39 20931 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
20932 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
20933 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
20934 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 20935 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 20936 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 20937
341ca622
AM
20938 # These appear out of order in targets.c
20939 srec_vec) tb="$tb srec.lo" ;;
20940 symbolsrec_vec) tb="$tb srec.lo" ;;
20941 tekhex_vec) tb="$tb tekhex.lo" ;;
20942 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
20943 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
20944
252b5132 20945 "") ;;
5464f5a1
NN
20946 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
20947echo "$as_me: error: *** unknown target vector $vec" >&2;}
20948 { (exit 1); exit 1; }; } ;;
252b5132 20949 esac
69263e90
AM
20950
20951 if test ${target_size} = 64; then
20952 target64=true
20953 fi
20954 if test x"${vec}" = x"${defvec}"; then
20955 bfd_default_target_size=${target_size}
20956 fi
252b5132
RH
20957done
20958
20959# Target architecture .o files.
20960# A couple of CPUs use shorter file names to avoid problems on DOS
20961# filesystems.
d031aafb 20962ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
20963
20964# Weed out duplicate .o files.
20965f=""
20966for i in $tb ; do
20967 case " $f " in
20968 *" $i "*) ;;
20969 *) f="$f $i" ;;
20970 esac
20971done
20972tb="$f"
20973
20974f=""
20975for i in $ta ; do
20976 case " $f " in
20977 *" $i "*) ;;
20978 *) f="$f $i" ;;
20979 esac
20980done
20981ta="$f"
20982
20983bfd_backends="$tb"
20984bfd_machines="$ta"
20985
20986if test x${all_targets} = xtrue ; then
20987 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
20988 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
20989 selvecs=
20990 havevecs=
20991 selarchs=
08f74004
AM
20992 test -n "$assocvecs" &&
20993 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
20994else # all_targets is true
20995 # Only set these if they will be nonempty, for the clever echo.
20996 havevecs=
08f74004 20997 assocvecs=
252b5132
RH
20998 test -n "$selvecs" &&
20999 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
21000 test -n "$selvecs" &&
21001 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21002 test -n "$selarchs" &&
21003 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21004fi # all_targets is true
21005
21006case ${host64}-${target64}-${want64} in
21007 *true*)
21008 wordsize=64
21e40a48 21009 bfd64_libs='$(BFD64_LIBS)'
252b5132 21010 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 21011 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
21012 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
21013echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
21014 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
21015echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 21016 fi
966abd70
HPN
21017 if test -n "$GCC" ; then
21018 bad_64bit_gcc=no;
5464f5a1
NN
21019 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
21020echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 21021 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
21022 cat >conftest.$ac_ext <<_ACEOF
21023/* confdefs.h. */
21024_ACEOF
21025cat confdefs.h >>conftest.$ac_ext
21026cat >>conftest.$ac_ext <<_ACEOF
21027/* end confdefs.h. */
966abd70 21028:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 21029_ACEOF
966abd70 21030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 21031 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 21032 bad_64bit_gcc=yes;
5464f5a1
NN
21033 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
21034echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 21035else
5464f5a1
NN
21036 echo "$as_me:$LINENO: result: no" >&5
21037echo "${ECHO_T}no" >&6
966abd70
HPN
21038fi
21039rm -f conftest*
21040
21041 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
21042 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
21043echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
21044 { (exit 1); exit 1; }; }
966abd70
HPN
21045 fi
21046 fi
252b5132
RH
21047 ;;
21048 false-false-false)
21049 wordsize=32
21050 all_backends='$(BFD32_BACKENDS)'
21051 ;;
21052esac
21053
6be7c12c
AO
21054
21055
21056
21057
21058
69263e90 21059
2858ef35 21060
1012372a
AC
21061# Determine the host dependant file_ptr a.k.a. off_t type. In order
21062# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
21063# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
21064# Hopefully a reasonable assumption since fseeko et.al. should be
21065# upward compatible.
5464f5a1
NN
21066
21067
21068
21069
2e6f4fae
DJ
21070
21071for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 21072do
5464f5a1
NN
21073as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21074echo "$as_me:$LINENO: checking for $ac_func" >&5
21075echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21076if eval "test \"\${$as_ac_var+set}\" = set"; then
21077 echo $ECHO_N "(cached) $ECHO_C" >&6
21078else
2ba49b59
KC
21079 cat >conftest.$ac_ext <<_ACEOF
21080/* confdefs.h. */
21081_ACEOF
21082cat confdefs.h >>conftest.$ac_ext
21083cat >>conftest.$ac_ext <<_ACEOF
21084/* end confdefs.h. */
21085/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21087#define $ac_func innocuous_$ac_func
21088
21089/* System header to define __stub macros and hopefully few prototypes,
21090 which can conflict with char $ac_func (); below.
21091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21092 <limits.h> exists even on freestanding compilers. */
21093
21094#ifdef __STDC__
21095# include <limits.h>
21096#else
21097# include <assert.h>
21098#endif
21099
21100#undef $ac_func
21101
21102/* Override any gcc2 internal prototype to avoid an error. */
21103#ifdef __cplusplus
21104extern "C"
21105{
21106#endif
21107/* We use char because int might match the return type of a gcc2
21108 builtin and then its argument prototype would still apply. */
21109char $ac_func ();
21110/* The GNU C library defines this for functions which it implements
21111 to always fail with ENOSYS. Some functions are actually named
21112 something starting with __ and the normal name is an alias. */
21113#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21114choke me
21115#else
21116char (*f) () = $ac_func;
21117#endif
21118#ifdef __cplusplus
21119}
21120#endif
21121
21122int
21123main ()
21124{
21125return f != $ac_func;
21126 ;
21127 return 0;
21128}
21129_ACEOF
21130rm -f conftest.$ac_objext conftest$ac_exeext
21131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21132 (eval $ac_link) 2>conftest.er1
21133 ac_status=$?
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } &&
7357c5b6
AM
21139 { ac_try='test -z "$ac_c_werror_flag"
21140 || test ! -s conftest.err'
2ba49b59
KC
21141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142 (eval $ac_try) 2>&5
21143 ac_status=$?
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; } &&
21146 { ac_try='test -s conftest$ac_exeext'
21147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148 (eval $ac_try) 2>&5
21149 ac_status=$?
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); }; }; then
21152 eval "$as_ac_var=yes"
21153else
21154 echo "$as_me: failed program was:" >&5
21155sed 's/^/| /' conftest.$ac_ext >&5
21156
21157eval "$as_ac_var=no"
21158fi
21159rm -f conftest.err conftest.$ac_objext \
21160 conftest$ac_exeext conftest.$ac_ext
21161fi
21162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21163echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21164if test `eval echo '${'$as_ac_var'}'` = yes; then
21165 cat >>confdefs.h <<_ACEOF
21166#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21167_ACEOF
21168
21169fi
21170done
21171
21172if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
21173 echo "$as_me:$LINENO: checking for off_t" >&5
21174echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21175if test "${ac_cv_type_off_t+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21177else
21178 cat >conftest.$ac_ext <<_ACEOF
21179/* confdefs.h. */
21180_ACEOF
21181cat confdefs.h >>conftest.$ac_ext
21182cat >>conftest.$ac_ext <<_ACEOF
21183/* end confdefs.h. */
21184$ac_includes_default
21185int
21186main ()
21187{
21188if ((off_t *) 0)
21189 return 0;
21190if (sizeof (off_t))
21191 return 0;
21192 ;
21193 return 0;
21194}
21195_ACEOF
21196rm -f conftest.$ac_objext
21197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21198 (eval $ac_compile) 2>conftest.er1
21199 ac_status=$?
21200 grep -v '^ *+' conftest.er1 >conftest.err
21201 rm -f conftest.er1
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } &&
7357c5b6
AM
21205 { ac_try='test -z "$ac_c_werror_flag"
21206 || test ! -s conftest.err'
2ba49b59
KC
21207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208 (eval $ac_try) 2>&5
21209 ac_status=$?
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; } &&
21212 { ac_try='test -s conftest.$ac_objext'
21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214 (eval $ac_try) 2>&5
21215 ac_status=$?
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; }; then
21218 ac_cv_type_off_t=yes
21219else
21220 echo "$as_me: failed program was:" >&5
21221sed 's/^/| /' conftest.$ac_ext >&5
21222
21223ac_cv_type_off_t=no
21224fi
21225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21226fi
21227echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21228echo "${ECHO_T}$ac_cv_type_off_t" >&6
21229
21230echo "$as_me:$LINENO: checking size of off_t" >&5
21231echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21232if test "${ac_cv_sizeof_off_t+set}" = set; then
21233 echo $ECHO_N "(cached) $ECHO_C" >&6
21234else
21235 if test "$ac_cv_type_off_t" = yes; then
21236 # The cast to unsigned long works around a bug in the HP C Compiler
21237 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21238 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21239 # This bug is HP SR number 8606223364.
21240 if test "$cross_compiling" = yes; then
21241 # Depending upon the size, compute the lo and hi bounds.
21242cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
21243/* confdefs.h. */
21244_ACEOF
21245cat confdefs.h >>conftest.$ac_ext
21246cat >>conftest.$ac_ext <<_ACEOF
21247/* end confdefs.h. */
2ba49b59
KC
21248$ac_includes_default
21249int
21250main ()
21251{
21252static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21253test_array [0] = 0
5464f5a1 21254
2ba49b59
KC
21255 ;
21256 return 0;
21257}
21258_ACEOF
21259rm -f conftest.$ac_objext
21260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21261 (eval $ac_compile) 2>conftest.er1
21262 ac_status=$?
21263 grep -v '^ *+' conftest.er1 >conftest.err
21264 rm -f conftest.er1
21265 cat conftest.err >&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } &&
7357c5b6
AM
21268 { ac_try='test -z "$ac_c_werror_flag"
21269 || test ! -s conftest.err'
2ba49b59
KC
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21272 ac_status=$?
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; } &&
21275 { ac_try='test -s conftest.$ac_objext'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21278 ac_status=$?
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 ac_lo=0 ac_mid=0
21282 while :; do
21283 cat >conftest.$ac_ext <<_ACEOF
21284/* confdefs.h. */
21285_ACEOF
21286cat confdefs.h >>conftest.$ac_ext
21287cat >>conftest.$ac_ext <<_ACEOF
21288/* end confdefs.h. */
21289$ac_includes_default
21290int
21291main ()
21292{
21293static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21294test_array [0] = 0
5464f5a1 21295
2ba49b59
KC
21296 ;
21297 return 0;
21298}
21299_ACEOF
21300rm -f conftest.$ac_objext
21301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21302 (eval $ac_compile) 2>conftest.er1
21303 ac_status=$?
21304 grep -v '^ *+' conftest.er1 >conftest.err
21305 rm -f conftest.er1
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } &&
7357c5b6
AM
21309 { ac_try='test -z "$ac_c_werror_flag"
21310 || test ! -s conftest.err'
2ba49b59
KC
21311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312 (eval $ac_try) 2>&5
21313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; } &&
21316 { ac_try='test -s conftest.$ac_objext'
21317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318 (eval $ac_try) 2>&5
21319 ac_status=$?
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; }; then
21322 ac_hi=$ac_mid; break
21323else
21324 echo "$as_me: failed program was:" >&5
21325sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21326
2ba49b59
KC
21327ac_lo=`expr $ac_mid + 1`
21328 if test $ac_lo -le $ac_mid; then
21329 ac_lo= ac_hi=
21330 break
21331 fi
21332 ac_mid=`expr 2 '*' $ac_mid + 1`
21333fi
21334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21335 done
21336else
21337 echo "$as_me: failed program was:" >&5
21338sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21339
2ba49b59
KC
21340cat >conftest.$ac_ext <<_ACEOF
21341/* confdefs.h. */
21342_ACEOF
21343cat confdefs.h >>conftest.$ac_ext
21344cat >>conftest.$ac_ext <<_ACEOF
21345/* end confdefs.h. */
21346$ac_includes_default
21347int
21348main ()
5464f5a1 21349{
2ba49b59
KC
21350static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21351test_array [0] = 0
1012372a 21352
2ba49b59
KC
21353 ;
21354 return 0;
21355}
21356_ACEOF
21357rm -f conftest.$ac_objext
21358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21359 (eval $ac_compile) 2>conftest.er1
21360 ac_status=$?
21361 grep -v '^ *+' conftest.er1 >conftest.err
21362 rm -f conftest.er1
21363 cat conftest.err >&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } &&
7357c5b6
AM
21366 { ac_try='test -z "$ac_c_werror_flag"
21367 || test ! -s conftest.err'
2ba49b59
KC
21368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369 (eval $ac_try) 2>&5
21370 ac_status=$?
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; } &&
21373 { ac_try='test -s conftest.$ac_objext'
21374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 (eval $ac_try) 2>&5
21376 ac_status=$?
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; }; then
21379 ac_hi=-1 ac_mid=-1
21380 while :; do
21381 cat >conftest.$ac_ext <<_ACEOF
21382/* confdefs.h. */
21383_ACEOF
21384cat confdefs.h >>conftest.$ac_ext
21385cat >>conftest.$ac_ext <<_ACEOF
21386/* end confdefs.h. */
21387$ac_includes_default
5464f5a1
NN
21388int
21389main ()
21390{
2ba49b59
KC
21391static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21392test_array [0] = 0
21393
5464f5a1
NN
21394 ;
21395 return 0;
21396}
21397_ACEOF
2ba49b59
KC
21398rm -f conftest.$ac_objext
21399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21400 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
21401 ac_status=$?
21402 grep -v '^ *+' conftest.er1 >conftest.err
21403 rm -f conftest.er1
21404 cat conftest.err >&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } &&
7357c5b6
AM
21407 { ac_try='test -z "$ac_c_werror_flag"
21408 || test ! -s conftest.err'
5464f5a1
NN
21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; } &&
2ba49b59 21414 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
21415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416 (eval $ac_try) 2>&5
21417 ac_status=$?
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); }; }; then
2ba49b59 21420 ac_lo=$ac_mid; break
5464f5a1
NN
21421else
21422 echo "$as_me: failed program was:" >&5
21423sed 's/^/| /' conftest.$ac_ext >&5
21424
2ba49b59
KC
21425ac_hi=`expr '(' $ac_mid ')' - 1`
21426 if test $ac_mid -le $ac_hi; then
21427 ac_lo= ac_hi=
21428 break
21429 fi
21430 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 21431fi
2ba49b59
KC
21432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21433 done
21434else
21435 echo "$as_me: failed program was:" >&5
21436sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21437
2ba49b59 21438ac_lo= ac_hi=
1012372a 21439fi
2ba49b59
KC
21440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21441fi
21442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21443# Binary search between lo and hi bounds.
21444while test "x$ac_lo" != "x$ac_hi"; do
21445 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
21446 cat >conftest.$ac_ext <<_ACEOF
21447/* confdefs.h. */
21448_ACEOF
21449cat confdefs.h >>conftest.$ac_ext
21450cat >>conftest.$ac_ext <<_ACEOF
21451/* end confdefs.h. */
2ba49b59 21452$ac_includes_default
5464f5a1
NN
21453int
21454main ()
21455{
2ba49b59
KC
21456static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21457test_array [0] = 0
21458
5464f5a1
NN
21459 ;
21460 return 0;
21461}
21462_ACEOF
21463rm -f conftest.$ac_objext
21464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21465 (eval $ac_compile) 2>conftest.er1
21466 ac_status=$?
21467 grep -v '^ *+' conftest.er1 >conftest.err
21468 rm -f conftest.er1
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } &&
7357c5b6
AM
21472 { ac_try='test -z "$ac_c_werror_flag"
21473 || test ! -s conftest.err'
5464f5a1
NN
21474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475 (eval $ac_try) 2>&5
21476 ac_status=$?
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; } &&
21479 { ac_try='test -s conftest.$ac_objext'
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21482 ac_status=$?
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; }; then
2ba49b59 21485 ac_hi=$ac_mid
1012372a 21486else
5464f5a1
NN
21487 echo "$as_me: failed program was:" >&5
21488sed 's/^/| /' conftest.$ac_ext >&5
21489
2ba49b59 21490ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 21491fi
5464f5a1 21492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 21493done
2ba49b59
KC
21494case $ac_lo in
21495?*) ac_cv_sizeof_off_t=$ac_lo;;
7357c5b6
AM
21496'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21497echo "$as_me: error: in \`$ac_pwd':" >&2;}
21498{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
2ba49b59
KC
21499See \`config.log' for more details." >&5
21500echo "$as_me: error: cannot compute sizeof (off_t), 77
21501See \`config.log' for more details." >&2;}
7357c5b6 21502 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
21503esac
21504else
21505 if test "$cross_compiling" = yes; then
7357c5b6
AM
21506 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21507echo "$as_me: error: in \`$ac_pwd':" >&2;}
21508{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21509See \`config.log' for more details." >&5
21510echo "$as_me: error: cannot run test program while cross compiling
21511See \`config.log' for more details." >&2;}
21512 { (exit 1); exit 1; }; }; }
2ba49b59
KC
21513else
21514 cat >conftest.$ac_ext <<_ACEOF
21515/* confdefs.h. */
21516_ACEOF
21517cat confdefs.h >>conftest.$ac_ext
21518cat >>conftest.$ac_ext <<_ACEOF
21519/* end confdefs.h. */
21520$ac_includes_default
21521long longval () { return (long) (sizeof (off_t)); }
21522unsigned long ulongval () { return (long) (sizeof (off_t)); }
21523#include <stdio.h>
21524#include <stdlib.h>
21525int
21526main ()
21527{
1012372a 21528
2ba49b59
KC
21529 FILE *f = fopen ("conftest.val", "w");
21530 if (! f)
21531 exit (1);
21532 if (((long) (sizeof (off_t))) < 0)
21533 {
21534 long i = longval ();
21535 if (i != ((long) (sizeof (off_t))))
21536 exit (1);
21537 fprintf (f, "%ld\n", i);
21538 }
21539 else
21540 {
21541 unsigned long i = ulongval ();
21542 if (i != ((long) (sizeof (off_t))))
21543 exit (1);
21544 fprintf (f, "%lu\n", i);
21545 }
21546 exit (ferror (f) || fclose (f) != 0);
21547
21548 ;
21549 return 0;
21550}
21551_ACEOF
21552rm -f conftest$ac_exeext
21553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21554 (eval $ac_link) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21560 ac_status=$?
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; }; then
21563 ac_cv_sizeof_off_t=`cat conftest.val`
21564else
21565 echo "$as_me: program exited with status $ac_status" >&5
21566echo "$as_me: failed program was:" >&5
21567sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21568
2ba49b59 21569( exit $ac_status )
7357c5b6
AM
21570{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21571echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
21572{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21573See \`config.log' for more details." >&5
21574echo "$as_me: error: cannot compute sizeof (off_t), 77
21575See \`config.log' for more details." >&2;}
7357c5b6 21576 { (exit 1); exit 1; }; }; }
1012372a 21577fi
2ba49b59
KC
21578rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21579fi
21580fi
21581rm -f conftest.val
21582else
21583 ac_cv_sizeof_off_t=0
21584fi
21585fi
5464f5a1
NN
21586echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21587echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 21588cat >>confdefs.h <<_ACEOF
1012372a 21589#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 21590_ACEOF
1012372a
AC
21591
21592
1012372a 21593fi
5464f5a1
NN
21594echo "$as_me:$LINENO: checking file_ptr type" >&5
21595echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
21596bfd_file_ptr="long"
21597bfd_ufile_ptr="unsigned long"
21598if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
21599 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
21600 bfd_file_ptr=BFD_HOST_64_BIT
21601 bfd_ufile_ptr=BFD_HOST_U_64_BIT
21602fi
5464f5a1
NN
21603echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
21604echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
21605
21606
21607
21608
252b5132
RH
21609tdefaults=""
21610test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
21611test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 21612test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
21613test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
21614test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
21615
6be7c12c 21616
5464f5a1
NN
21617
21618
21619for ac_header in stdlib.h unistd.h
252b5132 21620do
5464f5a1
NN
21621as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21622if eval "test \"\${$as_ac_Header+set}\" = set"; then
21623 echo "$as_me:$LINENO: checking for $ac_header" >&5
21624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21625if eval "test \"\${$as_ac_Header+set}\" = set"; then
21626 echo $ECHO_N "(cached) $ECHO_C" >&6
21627fi
21628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21630else
21631 # Is the header compilable?
21632echo "$as_me:$LINENO: checking $ac_header usability" >&5
21633echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21634cat >conftest.$ac_ext <<_ACEOF
21635/* confdefs.h. */
21636_ACEOF
21637cat confdefs.h >>conftest.$ac_ext
21638cat >>conftest.$ac_ext <<_ACEOF
21639/* end confdefs.h. */
21640$ac_includes_default
21641#include <$ac_header>
21642_ACEOF
21643rm -f conftest.$ac_objext
21644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21645 (eval $ac_compile) 2>conftest.er1
21646 ac_status=$?
21647 grep -v '^ *+' conftest.er1 >conftest.err
21648 rm -f conftest.er1
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } &&
7357c5b6
AM
21652 { ac_try='test -z "$ac_c_werror_flag"
21653 || test ! -s conftest.err'
5464f5a1
NN
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21656 ac_status=$?
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; } &&
21659 { ac_try='test -s conftest.$ac_objext'
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; }; then
21665 ac_header_compiler=yes
21666else
21667 echo "$as_me: failed program was:" >&5
21668sed 's/^/| /' conftest.$ac_ext >&5
21669
21670ac_header_compiler=no
21671fi
21672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21673echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21674echo "${ECHO_T}$ac_header_compiler" >&6
21675
21676# Is the header present?
21677echo "$as_me:$LINENO: checking $ac_header presence" >&5
21678echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21679cat >conftest.$ac_ext <<_ACEOF
21680/* confdefs.h. */
21681_ACEOF
21682cat confdefs.h >>conftest.$ac_ext
21683cat >>conftest.$ac_ext <<_ACEOF
21684/* end confdefs.h. */
21685#include <$ac_header>
21686_ACEOF
21687if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21689 ac_status=$?
21690 grep -v '^ *+' conftest.er1 >conftest.err
21691 rm -f conftest.er1
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } >/dev/null; then
21695 if test -s conftest.err; then
21696 ac_cpp_err=$ac_c_preproc_warn_flag
21697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21698 else
21699 ac_cpp_err=
21700 fi
252b5132 21701else
5464f5a1 21702 ac_cpp_err=yes
252b5132 21703fi
5464f5a1
NN
21704if test -z "$ac_cpp_err"; then
21705 ac_header_preproc=yes
21706else
21707 echo "$as_me: failed program was:" >&5
21708sed 's/^/| /' conftest.$ac_ext >&5
21709
21710 ac_header_preproc=no
252b5132 21711fi
5464f5a1
NN
21712rm -f conftest.err conftest.$ac_ext
21713echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21714echo "${ECHO_T}$ac_header_preproc" >&6
21715
21716# So? What about this header?
21717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21718 yes:no: )
21719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21720echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21722echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21723 ac_header_preproc=yes
21724 ;;
21725 no:yes:* )
21726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21727echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21729echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21731echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21733echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21737echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21738 (
21739 cat <<\_ASBOX
21740## ------------------------------------------ ##
21741## Report this to the AC_PACKAGE_NAME lists. ##
21742## ------------------------------------------ ##
21743_ASBOX
21744 ) |
21745 sed "s/^/$as_me: WARNING: /" >&2
21746 ;;
21747esac
21748echo "$as_me:$LINENO: checking for $ac_header" >&5
21749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21750if eval "test \"\${$as_ac_Header+set}\" = set"; then
21751 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 21752else
5464f5a1
NN
21753 eval "$as_ac_Header=\$ac_header_preproc"
21754fi
21755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21756echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21757
21758fi
21759if test `eval echo '${'$as_ac_Header'}'` = yes; then
21760 cat >>confdefs.h <<_ACEOF
21761#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21762_ACEOF
21763
252b5132 21764fi
5464f5a1 21765
252b5132
RH
21766done
21767
5464f5a1 21768
252b5132
RH
21769for ac_func in getpagesize
21770do
5464f5a1
NN
21771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21772echo "$as_me:$LINENO: checking for $ac_func" >&5
21773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21774if eval "test \"\${$as_ac_var+set}\" = set"; then
21775 echo $ECHO_N "(cached) $ECHO_C" >&6
21776else
21777 cat >conftest.$ac_ext <<_ACEOF
21778/* confdefs.h. */
21779_ACEOF
21780cat confdefs.h >>conftest.$ac_ext
21781cat >>conftest.$ac_ext <<_ACEOF
21782/* end confdefs.h. */
21783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21785#define $ac_func innocuous_$ac_func
21786
252b5132 21787/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
21788 which can conflict with char $ac_func (); below.
21789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21790 <limits.h> exists even on freestanding compilers. */
21791
21792#ifdef __STDC__
21793# include <limits.h>
21794#else
21795# include <assert.h>
21796#endif
6be7c12c 21797
5464f5a1 21798#undef $ac_func
252b5132 21799
5464f5a1
NN
21800/* Override any gcc2 internal prototype to avoid an error. */
21801#ifdef __cplusplus
21802extern "C"
21803{
21804#endif
21805/* We use char because int might match the return type of a gcc2
21806 builtin and then its argument prototype would still apply. */
21807char $ac_func ();
252b5132
RH
21808/* The GNU C library defines this for functions which it implements
21809 to always fail with ENOSYS. Some functions are actually named
21810 something starting with __ and the normal name is an alias. */
21811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21812choke me
21813#else
5464f5a1
NN
21814char (*f) () = $ac_func;
21815#endif
21816#ifdef __cplusplus
21817}
252b5132
RH
21818#endif
21819
5464f5a1
NN
21820int
21821main ()
21822{
21823return f != $ac_func;
21824 ;
21825 return 0;
21826}
21827_ACEOF
21828rm -f conftest.$ac_objext conftest$ac_exeext
21829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21830 (eval $ac_link) 2>conftest.er1
21831 ac_status=$?
21832 grep -v '^ *+' conftest.er1 >conftest.err
21833 rm -f conftest.er1
21834 cat conftest.err >&5
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); } &&
7357c5b6
AM
21837 { ac_try='test -z "$ac_c_werror_flag"
21838 || test ! -s conftest.err'
5464f5a1
NN
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; } &&
21844 { ac_try='test -s conftest$ac_exeext'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 eval "$as_ac_var=yes"
21851else
21852 echo "$as_me: failed program was:" >&5
21853sed 's/^/| /' conftest.$ac_ext >&5
21854
21855eval "$as_ac_var=no"
21856fi
21857rm -f conftest.err conftest.$ac_objext \
21858 conftest$ac_exeext conftest.$ac_ext
21859fi
21860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21862if test `eval echo '${'$as_ac_var'}'` = yes; then
21863 cat >>confdefs.h <<_ACEOF
21864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21865_ACEOF
252b5132 21866
252b5132
RH
21867fi
21868done
21869
5464f5a1
NN
21870echo "$as_me:$LINENO: checking for working mmap" >&5
21871echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21872if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
21874else
21875 if test "$cross_compiling" = yes; then
21876 ac_cv_func_mmap_fixed_mapped=no
21877else
5464f5a1
NN
21878 cat >conftest.$ac_ext <<_ACEOF
21879/* confdefs.h. */
21880_ACEOF
21881cat confdefs.h >>conftest.$ac_ext
21882cat >>conftest.$ac_ext <<_ACEOF
21883/* end confdefs.h. */
21884$ac_includes_default
21885/* malloc might have been renamed as rpl_malloc. */
21886#undef malloc
6be7c12c 21887
252b5132
RH
21888/* Thanks to Mike Haertel and Jim Avera for this test.
21889 Here is a matrix of mmap possibilities:
21890 mmap private not fixed
21891 mmap private fixed at somewhere currently unmapped
21892 mmap private fixed at somewhere already mapped
21893 mmap shared not fixed
21894 mmap shared fixed at somewhere currently unmapped
21895 mmap shared fixed at somewhere already mapped
21896 For private mappings, we should verify that changes cannot be read()
21897 back from the file, nor mmap's back from the file at a different
21898 address. (There have been systems where private was not correctly
21899 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 21900 VM page cache was not coherent with the file system buffer cache
252b5132
RH
21901 like early versions of FreeBSD and possibly contemporary NetBSD.)
21902 For shared mappings, we should conversely verify that changes get
5464f5a1 21903 propagated back to all the places they're supposed to be.
252b5132
RH
21904
21905 Grep wants private fixed already mapped.
21906 The main things grep needs to know about mmap are:
21907 * does it exist and is it safe to write into the mmap'd area
21908 * how to use it (BSD variants) */
5464f5a1 21909
252b5132
RH
21910#include <fcntl.h>
21911#include <sys/mman.h>
21912
5464f5a1
NN
21913#if !STDC_HEADERS && !HAVE_STDLIB_H
21914char *malloc ();
21915#endif
6be7c12c 21916
5464f5a1
NN
21917/* This mess was copied from the GNU getpagesize.h. */
21918#if !HAVE_GETPAGESIZE
252b5132 21919/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 21920# if !HAVE_SYS_PARAM_H
252b5132
RH
21921# define HAVE_SYS_PARAM_H 1
21922# endif
21923
21924# ifdef _SC_PAGESIZE
21925# define getpagesize() sysconf(_SC_PAGESIZE)
21926# else /* no _SC_PAGESIZE */
5464f5a1 21927# if HAVE_SYS_PARAM_H
252b5132
RH
21928# include <sys/param.h>
21929# ifdef EXEC_PAGESIZE
21930# define getpagesize() EXEC_PAGESIZE
21931# else /* no EXEC_PAGESIZE */
21932# ifdef NBPG
21933# define getpagesize() NBPG * CLSIZE
21934# ifndef CLSIZE
21935# define CLSIZE 1
21936# endif /* no CLSIZE */
21937# else /* no NBPG */
21938# ifdef NBPC
21939# define getpagesize() NBPC
21940# else /* no NBPC */
21941# ifdef PAGESIZE
21942# define getpagesize() PAGESIZE
21943# endif /* PAGESIZE */
21944# endif /* no NBPC */
21945# endif /* no NBPG */
21946# endif /* no EXEC_PAGESIZE */
21947# else /* no HAVE_SYS_PARAM_H */
21948# define getpagesize() 8192 /* punt totally */
21949# endif /* no HAVE_SYS_PARAM_H */
21950# endif /* no _SC_PAGESIZE */
21951
5464f5a1
NN
21952#endif /* no HAVE_GETPAGESIZE */
21953
21954int
21955main ()
21956{
21957 char *data, *data2, *data3;
21958 int i, pagesize;
21959 int fd;
21960
21961 pagesize = getpagesize ();
21962
21963 /* First, make a file with some known garbage in it. */
21964 data = (char *) malloc (pagesize);
21965 if (!data)
21966 exit (1);
21967 for (i = 0; i < pagesize; ++i)
21968 *(data + i) = rand ();
21969 umask (0);
21970 fd = creat ("conftest.mmap", 0600);
21971 if (fd < 0)
21972 exit (1);
21973 if (write (fd, data, pagesize) != pagesize)
21974 exit (1);
21975 close (fd);
21976
21977 /* Next, try to mmap the file at a fixed address which already has
21978 something else allocated at it. If we can, also make sure that
21979 we see the same garbage. */
21980 fd = open ("conftest.mmap", O_RDWR);
21981 if (fd < 0)
21982 exit (1);
21983 data2 = (char *) malloc (2 * pagesize);
21984 if (!data2)
21985 exit (1);
21986 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
21987 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21988 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21989 exit (1);
21990 for (i = 0; i < pagesize; ++i)
21991 if (*(data + i) != *(data2 + i))
21992 exit (1);
21993
21994 /* Finally, make sure that changes to the mapped area do not
21995 percolate back to the file as seen by read(). (This is a bug on
21996 some variants of i386 svr4.0.) */
21997 for (i = 0; i < pagesize; ++i)
21998 *(data2 + i) = *(data2 + i) + 1;
21999 data3 = (char *) malloc (pagesize);
22000 if (!data3)
22001 exit (1);
22002 if (read (fd, data3, pagesize) != pagesize)
22003 exit (1);
22004 for (i = 0; i < pagesize; ++i)
22005 if (*(data + i) != *(data3 + i))
22006 exit (1);
22007 close (fd);
22008 exit (0);
22009}
22010_ACEOF
22011rm -f conftest$ac_exeext
22012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22013 (eval $ac_link) 2>&5
22014 ac_status=$?
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22018 (eval $ac_try) 2>&5
22019 ac_status=$?
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); }; }; then
22022 ac_cv_func_mmap_fixed_mapped=yes
22023else
22024 echo "$as_me: program exited with status $ac_status" >&5
22025echo "$as_me: failed program was:" >&5
22026sed 's/^/| /' conftest.$ac_ext >&5
22027
22028( exit $ac_status )
22029ac_cv_func_mmap_fixed_mapped=no
22030fi
22031rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22032fi
22033fi
22034echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22035echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22036if test $ac_cv_func_mmap_fixed_mapped = yes; then
22037
22038cat >>confdefs.h <<\_ACEOF
22039#define HAVE_MMAP 1
22040_ACEOF
22041
22042fi
22043rm -f conftest.mmap
22044
22045
22046
22047for ac_func in madvise mprotect
22048do
22049as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22050echo "$as_me:$LINENO: checking for $ac_func" >&5
22051echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22052if eval "test \"\${$as_ac_var+set}\" = set"; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22054else
22055 cat >conftest.$ac_ext <<_ACEOF
22056/* confdefs.h. */
22057_ACEOF
22058cat confdefs.h >>conftest.$ac_ext
22059cat >>conftest.$ac_ext <<_ACEOF
22060/* end confdefs.h. */
22061/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22063#define $ac_func innocuous_$ac_func
22064
22065/* System header to define __stub macros and hopefully few prototypes,
22066 which can conflict with char $ac_func (); below.
22067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22068 <limits.h> exists even on freestanding compilers. */
22069
22070#ifdef __STDC__
22071# include <limits.h>
22072#else
22073# include <assert.h>
22074#endif
22075
22076#undef $ac_func
22077
22078/* Override any gcc2 internal prototype to avoid an error. */
22079#ifdef __cplusplus
22080extern "C"
22081{
22082#endif
22083/* We use char because int might match the return type of a gcc2
22084 builtin and then its argument prototype would still apply. */
22085char $ac_func ();
22086/* The GNU C library defines this for functions which it implements
22087 to always fail with ENOSYS. Some functions are actually named
22088 something starting with __ and the normal name is an alias. */
22089#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22090choke me
22091#else
22092char (*f) () = $ac_func;
22093#endif
22094#ifdef __cplusplus
22095}
22096#endif
22097
22098int
22099main ()
22100{
22101return f != $ac_func;
22102 ;
22103 return 0;
22104}
22105_ACEOF
22106rm -f conftest.$ac_objext conftest$ac_exeext
22107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22108 (eval $ac_link) 2>conftest.er1
22109 ac_status=$?
22110 grep -v '^ *+' conftest.er1 >conftest.err
22111 rm -f conftest.er1
22112 cat conftest.err >&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } &&
7357c5b6
AM
22115 { ac_try='test -z "$ac_c_werror_flag"
22116 || test ! -s conftest.err'
5464f5a1
NN
22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; } &&
22122 { ac_try='test -s conftest$ac_exeext'
22123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124 (eval $ac_try) 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; }; then
22128 eval "$as_ac_var=yes"
22129else
22130 echo "$as_me: failed program was:" >&5
22131sed 's/^/| /' conftest.$ac_ext >&5
22132
22133eval "$as_ac_var=no"
22134fi
22135rm -f conftest.err conftest.$ac_objext \
22136 conftest$ac_exeext conftest.$ac_ext
22137fi
22138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22139echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22140if test `eval echo '${'$as_ac_var'}'` = yes; then
22141 cat >>confdefs.h <<_ACEOF
22142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22143_ACEOF
22144
22145fi
22146done
22147
22148case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
22149 true+yes )
22150cat >>confdefs.h <<\_ACEOF
22151#define USE_MMAP 1
22152_ACEOF
22153 ;;
22154esac
22155
22156rm -f doc/config.status
22157 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
22158
20e95c23 22159
5464f5a1
NN
22160 ac_config_commands="$ac_config_commands default"
22161
108a6f8e
CD
22162
22163
22164
22165
22166
5464f5a1
NN
22167cat >confcache <<\_ACEOF
22168# This file is a shell script that caches the results of configure
22169# tests run on this system so they can be shared between configure
22170# scripts and configure runs, see configure's option --config-cache.
22171# It is not useful on other systems. If it contains results you don't
22172# want to keep, you may remove or edit it.
22173#
22174# config.status only pays attention to the cache file if you give it
22175# the --recheck option to rerun configure.
22176#
22177# `ac_cv_env_foo' variables (set or unset) will be overridden when
22178# loading this file, other *unset* `ac_cv_foo' will be assigned the
22179# following values.
22180
22181_ACEOF
22182
22183# The following way of writing the cache mishandles newlines in values,
22184# but we know of no workaround that is simple, portable, and efficient.
22185# So, don't put newlines in cache variables' values.
22186# Ultrix sh set writes to stderr and can't be redirected directly,
22187# and sets the high bit in the cache file unless we assign to the vars.
22188{
22189 (set) 2>&1 |
22190 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22191 *ac_space=\ *)
22192 # `set' does not quote correctly, so add quotes (double-quote
22193 # substitution turns \\\\ into \\, and sed turns \\ into \).
22194 sed -n \
22195 "s/'/'\\\\''/g;
22196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22197 ;;
22198 *)
22199 # `set' quotes correctly as required by POSIX, so do not add quotes.
22200 sed -n \
22201 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22202 ;;
22203 esac;
22204} |
22205 sed '
22206 t clear
22207 : clear
22208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22209 t end
22210 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22211 : end' >>confcache
22212if diff $cache_file confcache >/dev/null 2>&1; then :; else
22213 if test -w $cache_file; then
22214 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22215 cat confcache >$cache_file
22216 else
22217 echo "not updating unwritable cache $cache_file"
22218 fi
22219fi
22220rm -f confcache
22221
22222test "x$prefix" = xNONE && prefix=$ac_default_prefix
22223# Let make expand exec_prefix.
22224test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22225
22226# VPATH may cause trouble with some makes, so we remove $(srcdir),
22227# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22228# trailing colons and then remove the whole line if VPATH becomes empty
22229# (actually we leave an empty line to preserve line numbers).
22230if test "x$srcdir" = x.; then
22231 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22232s/:*\$(srcdir):*/:/;
22233s/:*\${srcdir}:*/:/;
22234s/:*@srcdir@:*/:/;
22235s/^\([^=]*=[ ]*\):*/\1/;
22236s/:*$//;
22237s/^[^=]*=[ ]*$//;
22238}'
22239fi
22240
22241DEFS=-DHAVE_CONFIG_H
22242
22243ac_libobjs=
22244ac_ltlibobjs=
22245for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22246 # 1. Remove the extension, and $U if already installed.
22247 ac_i=`echo "$ac_i" |
22248 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22249 # 2. Add them.
22250 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22251 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22252done
22253LIBOBJS=$ac_libobjs
22254
22255LTLIBOBJS=$ac_ltlibobjs
22256
22257
f5385ebf
AM
22258if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22259 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22260Usually this means the macro was only invoked conditionally." >&5
22261echo "$as_me: error: conditional \"AMDEP\" was never defined.
22262Usually this means the macro was only invoked conditionally." >&2;}
22263 { (exit 1); exit 1; }; }
22264fi
22265if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22266 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22267Usually this means the macro was only invoked conditionally." >&5
22268echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22269Usually this means the macro was only invoked conditionally." >&2;}
22270 { (exit 1); exit 1; }; }
22271fi
22272if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22273 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22274Usually this means the macro was only invoked conditionally." >&5
22275echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22276Usually this means the macro was only invoked conditionally." >&2;}
22277 { (exit 1); exit 1; }; }
22278fi
d5fbea21
DJ
22279if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
22280 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
22281Usually this means the macro was only invoked conditionally." >&5
22282echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
22283Usually this means the macro was only invoked conditionally." >&2;}
22284 { (exit 1); exit 1; }; }
22285fi
f5385ebf
AM
22286if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
22287 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
22288Usually this means the macro was only invoked conditionally." >&5
22289echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
22290Usually this means the macro was only invoked conditionally." >&2;}
22291 { (exit 1); exit 1; }; }
22292fi
5464f5a1
NN
22293
22294: ${CONFIG_STATUS=./config.status}
22295ac_clean_files_save=$ac_clean_files
22296ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22297{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22298echo "$as_me: creating $CONFIG_STATUS" >&6;}
22299cat >$CONFIG_STATUS <<_ACEOF
22300#! $SHELL
22301# Generated by $as_me.
22302# Run this file to recreate the current configuration.
22303# Compiler output produced by configure, useful for debugging
22304# configure, is in config.log if it exists.
22305
22306debug=false
22307ac_cs_recheck=false
22308ac_cs_silent=false
22309SHELL=\${CONFIG_SHELL-$SHELL}
22310_ACEOF
22311
22312cat >>$CONFIG_STATUS <<\_ACEOF
22313## --------------------- ##
22314## M4sh Initialization. ##
22315## --------------------- ##
22316
22317# Be Bourne compatible
22318if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22319 emulate sh
22320 NULLCMD=:
22321 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22322 # is contrary to our usage. Disable this feature.
22323 alias -g '${1+"$@"}'='"$@"'
22324elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22325 set -o posix
22326fi
22327DUALCASE=1; export DUALCASE # for MKS sh
22328
22329# Support unset when possible.
22330if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22331 as_unset=unset
22332else
22333 as_unset=false
22334fi
22335
22336
22337# Work around bugs in pre-3.0 UWIN ksh.
22338$as_unset ENV MAIL MAILPATH
22339PS1='$ '
22340PS2='> '
22341PS4='+ '
22342
22343# NLS nuisances.
22344for as_var in \
22345 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22346 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22347 LC_TELEPHONE LC_TIME
22348do
22349 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22350 eval $as_var=C; export $as_var
22351 else
22352 $as_unset $as_var
22353 fi
22354done
22355
22356# Required to use basename.
22357if expr a : '\(a\)' >/dev/null 2>&1; then
22358 as_expr=expr
22359else
22360 as_expr=false
22361fi
22362
22363if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22364 as_basename=basename
22365else
22366 as_basename=false
22367fi
252b5132 22368
6be7c12c 22369
5464f5a1
NN
22370# Name of the executable.
22371as_me=`$as_basename "$0" ||
22372$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22373 X"$0" : 'X\(//\)$' \| \
22374 X"$0" : 'X\(/\)$' \| \
22375 . : '\(.\)' 2>/dev/null ||
22376echo X/"$0" |
22377 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22378 /^X\/\(\/\/\)$/{ s//\1/; q; }
22379 /^X\/\(\/\).*/{ s//\1/; q; }
22380 s/.*/./; q'`
22381
22382
22383# PATH needs CR, and LINENO needs CR and PATH.
22384# Avoid depending upon Character Ranges.
22385as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22386as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22387as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22388as_cr_digits='0123456789'
22389as_cr_alnum=$as_cr_Letters$as_cr_digits
22390
22391# The user is always right.
22392if test "${PATH_SEPARATOR+set}" != set; then
22393 echo "#! /bin/sh" >conf$$.sh
22394 echo "exit 0" >>conf$$.sh
22395 chmod +x conf$$.sh
22396 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22397 PATH_SEPARATOR=';'
22398 else
22399 PATH_SEPARATOR=:
22400 fi
22401 rm -f conf$$.sh
22402fi
22403
22404
22405 as_lineno_1=$LINENO
22406 as_lineno_2=$LINENO
22407 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22408 test "x$as_lineno_1" != "x$as_lineno_2" &&
22409 test "x$as_lineno_3" = "x$as_lineno_2" || {
22410 # Find who we are. Look in the path if we contain no path at all
22411 # relative or not.
22412 case $0 in
22413 *[\\/]* ) as_myself=$0 ;;
22414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22415for as_dir in $PATH
22416do
22417 IFS=$as_save_IFS
22418 test -z "$as_dir" && as_dir=.
22419 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22420done
22421
22422 ;;
22423 esac
22424 # We did not find ourselves, most probably we were run as `sh COMMAND'
22425 # in which case we are not to be found in the path.
22426 if test "x$as_myself" = x; then
22427 as_myself=$0
22428 fi
22429 if test ! -f "$as_myself"; then
22430 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22431echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22432 { (exit 1); exit 1; }; }
22433 fi
22434 case $CONFIG_SHELL in
22435 '')
22436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22437for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22438do
22439 IFS=$as_save_IFS
22440 test -z "$as_dir" && as_dir=.
22441 for as_base in sh bash ksh sh5; do
22442 case $as_dir in
22443 /*)
22444 if ("$as_dir/$as_base" -c '
22445 as_lineno_1=$LINENO
22446 as_lineno_2=$LINENO
22447 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22448 test "x$as_lineno_1" != "x$as_lineno_2" &&
22449 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22450 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22451 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22452 CONFIG_SHELL=$as_dir/$as_base
22453 export CONFIG_SHELL
22454 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22455 fi;;
22456 esac
22457 done
22458done
22459;;
22460 esac
22461
22462 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22463 # uniformly replaced by the line number. The first 'sed' inserts a
22464 # line-number line before each line; the second 'sed' does the real
22465 # work. The second script uses 'N' to pair each line-number line
22466 # with the numbered line, and appends trailing '-' during
22467 # substitution so that $LINENO is not a special case at line end.
22468 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22469 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22470 sed '=' <$as_myself |
22471 sed '
22472 N
22473 s,$,-,
22474 : loop
22475 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22476 t loop
22477 s,-$,,
22478 s,^['$as_cr_digits']*\n,,
22479 ' >$as_me.lineno &&
22480 chmod +x $as_me.lineno ||
22481 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22482echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22483 { (exit 1); exit 1; }; }
22484
22485 # Don't try to exec as it changes $[0], causing all sort of problems
22486 # (the dirname of $[0] is not the place where we might find the
22487 # original and so on. Autoconf is especially sensible to this).
22488 . ./$as_me.lineno
22489 # Exit status is that of the last command.
22490 exit
252b5132 22491}
6be7c12c 22492
5464f5a1
NN
22493
22494case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22495 *c*,-n*) ECHO_N= ECHO_C='
22496' ECHO_T=' ' ;;
22497 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22498 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22499esac
22500
22501if expr a : '\(a\)' >/dev/null 2>&1; then
22502 as_expr=expr
252b5132 22503else
5464f5a1 22504 as_expr=false
252b5132 22505fi
5464f5a1
NN
22506
22507rm -f conf$$ conf$$.exe conf$$.file
22508echo >conf$$.file
22509if ln -s conf$$.file conf$$ 2>/dev/null; then
22510 # We could just check for DJGPP; but this test a) works b) is more generic
22511 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22512 if test -f conf$$.exe; then
22513 # Don't use ln at all; we don't have any links
22514 as_ln_s='cp -p'
22515 else
22516 as_ln_s='ln -s'
22517 fi
22518elif ln conf$$.file conf$$ 2>/dev/null; then
22519 as_ln_s=ln
22520else
22521 as_ln_s='cp -p'
252b5132 22522fi
5464f5a1 22523rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 22524
5464f5a1
NN
22525if mkdir -p . 2>/dev/null; then
22526 as_mkdir_p=:
22527else
22528 test -d ./-p && rmdir ./-p
22529 as_mkdir_p=false
252b5132 22530fi
b3baf5d0 22531
5464f5a1 22532as_executable_p="test -f"
252b5132 22533
5464f5a1
NN
22534# Sed expression to map a string onto a valid CPP name.
22535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 22536
5464f5a1
NN
22537# Sed expression to map a string onto a valid variable name.
22538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 22539
252b5132 22540
5464f5a1
NN
22541# IFS
22542# We need space, tab and new line, in precisely that order.
22543as_nl='
22544'
22545IFS=" $as_nl"
252b5132 22546
5464f5a1
NN
22547# CDPATH.
22548$as_unset CDPATH
22549
22550exec 6>&1
22551
22552# Open the log real soon, to keep \$[0] and so on meaningful, and to
22553# report actual input values of CONFIG_FILES etc. instead of their
22554# values after options handling. Logging --version etc. is OK.
22555exec 5>>config.log
22556{
22557 echo
22558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22559## Running $as_me. ##
22560_ASBOX
22561} >&5
22562cat >&5 <<_CSEOF
22563
22564This file was extended by $as_me, which was
22565generated by GNU Autoconf 2.59. Invocation command line was
22566
22567 CONFIG_FILES = $CONFIG_FILES
22568 CONFIG_HEADERS = $CONFIG_HEADERS
22569 CONFIG_LINKS = $CONFIG_LINKS
22570 CONFIG_COMMANDS = $CONFIG_COMMANDS
22571 $ $0 $@
22572
22573_CSEOF
22574echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22575echo >&5
22576_ACEOF
22577
22578# Files that config.status was made for.
22579if test -n "$ac_config_files"; then
22580 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 22581fi
5464f5a1
NN
22582
22583if test -n "$ac_config_headers"; then
22584 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 22585fi
252b5132 22586
5464f5a1
NN
22587if test -n "$ac_config_links"; then
22588 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 22589fi
252b5132 22590
5464f5a1
NN
22591if test -n "$ac_config_commands"; then
22592 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22593fi
252b5132 22594
5464f5a1
NN
22595cat >>$CONFIG_STATUS <<\_ACEOF
22596
22597ac_cs_usage="\
22598\`$as_me' instantiates files from templates according to the
22599current configuration.
22600
22601Usage: $0 [OPTIONS] [FILE]...
22602
22603 -h, --help print this help, then exit
22604 -V, --version print version number, then exit
22605 -q, --quiet do not print progress messages
22606 -d, --debug don't remove temporary files
22607 --recheck update $as_me by reconfiguring in the same conditions
22608 --file=FILE[:TEMPLATE]
22609 instantiate the configuration file FILE
22610 --header=FILE[:TEMPLATE]
22611 instantiate the configuration header FILE
22612
22613Configuration files:
22614$config_files
22615
22616Configuration headers:
22617$config_headers
22618
22619Configuration commands:
22620$config_commands
22621
22622Report bugs to <bug-autoconf@gnu.org>."
22623_ACEOF
22624
22625cat >>$CONFIG_STATUS <<_ACEOF
22626ac_cs_version="\\
22627config.status
22628configured by $0, generated by GNU Autoconf 2.59,
22629 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22630
22631Copyright (C) 2003 Free Software Foundation, Inc.
22632This config.status script is free software; the Free Software Foundation
22633gives unlimited permission to copy, distribute and modify it."
22634srcdir=$srcdir
22635INSTALL="$INSTALL"
22636_ACEOF
22637
22638cat >>$CONFIG_STATUS <<\_ACEOF
22639# If no file are specified by the user, then we need to provide default
22640# value. By we need to know if files were specified by the user.
22641ac_need_defaults=:
22642while test $# != 0
22643do
22644 case $1 in
22645 --*=*)
22646 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22647 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22648 ac_shift=:
6be7c12c 22649 ;;
5464f5a1
NN
22650 -*)
22651 ac_option=$1
22652 ac_optarg=$2
22653 ac_shift=shift
6be7c12c 22654 ;;
5464f5a1
NN
22655 *) # This is not an option, so the user has probably given explicit
22656 # arguments.
22657 ac_option=$1
22658 ac_need_defaults=false;;
22659 esac
252b5132 22660
5464f5a1
NN
22661 case $ac_option in
22662 # Handling of the options.
22663_ACEOF
22664cat >>$CONFIG_STATUS <<\_ACEOF
22665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22666 ac_cs_recheck=: ;;
22667 --version | --vers* | -V )
22668 echo "$ac_cs_version"; exit 0 ;;
22669 --he | --h)
22670 # Conflict between --help and --header
22671 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22672Try \`$0 --help' for more information." >&5
22673echo "$as_me: error: ambiguous option: $1
22674Try \`$0 --help' for more information." >&2;}
22675 { (exit 1); exit 1; }; };;
22676 --help | --hel | -h )
22677 echo "$ac_cs_usage"; exit 0 ;;
22678 --debug | --d* | -d )
22679 debug=: ;;
22680 --file | --fil | --fi | --f )
22681 $ac_shift
22682 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22683 ac_need_defaults=false;;
22684 --header | --heade | --head | --hea )
22685 $ac_shift
22686 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22687 ac_need_defaults=false;;
22688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22690 ac_cs_silent=: ;;
6be7c12c 22691
5464f5a1
NN
22692 # This is an error.
22693 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22694Try \`$0 --help' for more information." >&5
22695echo "$as_me: error: unrecognized option: $1
22696Try \`$0 --help' for more information." >&2;}
22697 { (exit 1); exit 1; }; } ;;
252b5132 22698
5464f5a1 22699 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 22700
5464f5a1
NN
22701 esac
22702 shift
22703done
6be7c12c 22704
5464f5a1 22705ac_configure_extra_args=
252b5132 22706
5464f5a1
NN
22707if $ac_cs_silent; then
22708 exec 6>/dev/null
22709 ac_configure_extra_args="$ac_configure_extra_args --silent"
22710fi
6be7c12c 22711
5464f5a1
NN
22712_ACEOF
22713cat >>$CONFIG_STATUS <<_ACEOF
22714if \$ac_cs_recheck; then
22715 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22716 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22717fi
22718
22719_ACEOF
22720
22721cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 22722#
5464f5a1 22723# INIT-COMMANDS section.
6be7c12c 22724#
b3baf5d0 22725
f5385ebf 22726AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
22727
22728
22729# The HP-UX ksh and POSIX shell print the target directory to stdout
22730# if CDPATH is set.
22731(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22732
22733sed_quote_subst='$sed_quote_subst'
22734double_quote_subst='$double_quote_subst'
22735delay_variable_subst='$delay_variable_subst'
22736enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22737macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22738macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22739enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22740pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22741enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22742host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22743host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22744host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22745build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22746build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22747build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22748SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22749Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22750GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22751EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22752FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22753LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22754NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22755LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22756max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22757ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22758exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22759lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22760lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22761lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22762reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22763reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 22764OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
22765deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22766file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22767AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22768AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22769STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22770RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22771old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22772old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22773old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22774CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22775CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22776compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22777GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22778lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22779lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22780lt_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"`'
718a6fd8 22781lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
22782objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22783SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22784ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22785MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22786lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22787lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22788lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22789lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22790lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22791need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8
SE
22792DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22793NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22794LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22795OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22796OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
22797libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22798shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22799extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22800archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22801enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22802export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22803whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22804compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22805old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22806old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22807archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22808archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22809module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22810module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22811with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22812allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22813no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22814hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22815hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22816hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22817hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22818hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22819hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22820hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22821hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22822inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22823link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22824fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22825always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22826export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22827exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22828include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22829prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22830file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22831variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22832need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22833need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22834version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22835runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22836shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22837shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22838libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22839library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22840soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22841postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22842postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22843finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22844finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22845hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22846sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22847sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22848hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22849enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22850enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22851enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22852old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22853striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22854
22855LTCC='$LTCC'
22856LTCFLAGS='$LTCFLAGS'
22857compiler='$compiler_DEFAULT'
22858
22859# Quote evaled strings.
22860for var in SED \
22861GREP \
22862EGREP \
22863FGREP \
22864LD \
22865NM \
22866LN_S \
22867lt_SP2NL \
22868lt_NL2SP \
22869reload_flag \
718a6fd8 22870OBJDUMP \
d7040cdb
SE
22871deplibs_check_method \
22872file_magic_cmd \
22873AR \
22874AR_FLAGS \
22875STRIP \
22876RANLIB \
22877CC \
22878CFLAGS \
22879compiler \
22880lt_cv_sys_global_symbol_pipe \
22881lt_cv_sys_global_symbol_to_cdecl \
22882lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 22883lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
22884SHELL \
22885ECHO \
22886lt_prog_compiler_no_builtin_flag \
22887lt_prog_compiler_wl \
22888lt_prog_compiler_pic \
22889lt_prog_compiler_static \
22890lt_cv_prog_compiler_c_o \
22891need_locks \
718a6fd8
SE
22892DSYMUTIL \
22893NMEDIT \
22894LIPO \
22895OTOOL \
22896OTOOL64 \
d7040cdb
SE
22897shrext_cmds \
22898export_dynamic_flag_spec \
22899whole_archive_flag_spec \
22900compiler_needs_object \
22901with_gnu_ld \
22902allow_undefined_flag \
22903no_undefined_flag \
22904hardcode_libdir_flag_spec \
22905hardcode_libdir_flag_spec_ld \
22906hardcode_libdir_separator \
22907fix_srcfile_path \
22908exclude_expsyms \
22909include_expsyms \
22910file_list_spec \
22911variables_saved_for_relink \
22912libname_spec \
22913library_names_spec \
22914soname_spec \
22915finish_eval \
22916old_striplib \
22917striplib; do
22918 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22919 *[\\\\\\\`\\"\\\$]*)
22920 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22921 ;;
22922 *)
22923 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22924 ;;
22925 esac
22926done
22927
22928# Double-quote double-evaled strings.
22929for var in reload_cmds \
22930old_postinstall_cmds \
22931old_postuninstall_cmds \
22932old_archive_cmds \
22933extract_expsyms_cmds \
22934old_archive_from_new_cmds \
22935old_archive_from_expsyms_cmds \
22936archive_cmds \
22937archive_expsym_cmds \
22938module_cmds \
22939module_expsym_cmds \
22940export_symbols_cmds \
22941prelink_cmds \
22942postinstall_cmds \
22943postuninstall_cmds \
22944finish_cmds \
22945sys_lib_search_path_spec \
22946sys_lib_dlsearch_path_spec; do
22947 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22948 *[\\\\\\\`\\"\\\$]*)
22949 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22950 ;;
22951 *)
22952 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22953 ;;
22954 esac
22955done
22956
22957# Fix-up fallback echo if it was mangled by the above quoting rules.
22958case \$lt_ECHO in
22959*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22960 ;;
22961esac
22962
22963ac_aux_dir='$ac_aux_dir'
22964xsi_shell='$xsi_shell'
22965lt_shell_append='$lt_shell_append'
22966
22967# See if we are running on zsh, and set the options which allow our
22968# commands through without removal of \ escapes INIT.
22969if test -n "\${ZSH_VERSION+set}" ; then
22970 setopt NO_GLOB_SUBST
22971fi
22972
22973
22974 PACKAGE='$PACKAGE'
22975 VERSION='$VERSION'
22976 TIMESTAMP='$TIMESTAMP'
22977 RM='$RM'
22978 ofile='$ofile'
22979
22980
22981
20e95c23
DJ
22982# Capture the value of obsolete ALL_LINGUAS because we need it to compute
22983 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
22984 # from automake.
22985 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22986 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22987 LINGUAS="${LINGUAS-%UNSET%}"
22988
5464f5a1 22989
d5efd9fc
AM
22990GCC="$GCC"
22991CC="$CC"
22992acx_cv_header_stdint="$acx_cv_header_stdint"
22993acx_cv_type_int8_t="$acx_cv_type_int8_t"
22994acx_cv_type_int16_t="$acx_cv_type_int16_t"
22995acx_cv_type_int32_t="$acx_cv_type_int32_t"
22996acx_cv_type_int64_t="$acx_cv_type_int64_t"
22997acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
22998ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
22999ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23000ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23001ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23002ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23003ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23004ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23005ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23006
23007
5464f5a1
NN
23008
23009_ACEOF
23010
23011
23012
23013cat >>$CONFIG_STATUS <<\_ACEOF
23014for ac_config_target in $ac_config_targets
252b5132 23015do
5464f5a1
NN
23016 case "$ac_config_target" in
23017 # Handling of arguments.
23018 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23019 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23020 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
23021 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 23022 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 23023 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 23024 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 23025 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
23026 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23027 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23028 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23029echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23030 { (exit 1); exit 1; }; };;
252b5132
RH
23031 esac
23032done
23033
5464f5a1
NN
23034# If the user did not use the arguments to specify the items to instantiate,
23035# then the envvar interface is used. Set only those that are not.
23036# We use the long form for the default assignment because of an extremely
23037# bizarre bug on SunOS 4.1.3.
23038if $ac_need_defaults; then
23039 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23040 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23041 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23042fi
23043
23044# Have a temporary directory for convenience. Make it in the build tree
23045# simply because there is no reason to put it here, and in addition,
23046# creating and moving files from /tmp can sometimes cause problems.
23047# Create a temporary directory, and hook for its removal unless debugging.
23048$debug ||
23049{
23050 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23051 trap '{ (exit 1); exit 1; }' 1 2 13 15
23052}
b3baf5d0 23053
5464f5a1 23054# Create a (secure) tmp directory for tmp files.
b3baf5d0 23055
5464f5a1
NN
23056{
23057 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23058 test -n "$tmp" && test -d "$tmp"
23059} ||
23060{
23061 tmp=./confstat$$-$RANDOM
23062 (umask 077 && mkdir $tmp)
23063} ||
23064{
23065 echo "$me: cannot create a temporary directory in ." >&2
23066 { (exit 1); exit 1; }
23067}
23068
23069_ACEOF
23070
23071cat >>$CONFIG_STATUS <<_ACEOF
23072
23073#
23074# CONFIG_FILES section.
23075#
b3baf5d0 23076
5464f5a1
NN
23077# No need to generate the scripts if there are no CONFIG_FILES.
23078# This happens for instance when ./config.status config.h
23079if test -n "\$CONFIG_FILES"; then
23080 # Protect against being on the right side of a sed subst in config.status.
23081 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23082 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23083s,@SHELL@,$SHELL,;t t
23084s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23085s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23086s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23087s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23088s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23089s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23090s,@exec_prefix@,$exec_prefix,;t t
23091s,@prefix@,$prefix,;t t
23092s,@program_transform_name@,$program_transform_name,;t t
23093s,@bindir@,$bindir,;t t
23094s,@sbindir@,$sbindir,;t t
23095s,@libexecdir@,$libexecdir,;t t
23096s,@datadir@,$datadir,;t t
23097s,@sysconfdir@,$sysconfdir,;t t
23098s,@sharedstatedir@,$sharedstatedir,;t t
23099s,@localstatedir@,$localstatedir,;t t
23100s,@libdir@,$libdir,;t t
23101s,@includedir@,$includedir,;t t
23102s,@oldincludedir@,$oldincludedir,;t t
23103s,@infodir@,$infodir,;t t
23104s,@mandir@,$mandir,;t t
23105s,@build_alias@,$build_alias,;t t
23106s,@host_alias@,$host_alias,;t t
23107s,@target_alias@,$target_alias,;t t
23108s,@DEFS@,$DEFS,;t t
23109s,@ECHO_C@,$ECHO_C,;t t
23110s,@ECHO_N@,$ECHO_N,;t t
23111s,@ECHO_T@,$ECHO_T,;t t
23112s,@LIBS@,$LIBS,;t t
23113s,@build@,$build,;t t
23114s,@build_cpu@,$build_cpu,;t t
23115s,@build_vendor@,$build_vendor,;t t
23116s,@build_os@,$build_os,;t t
23117s,@host@,$host,;t t
23118s,@host_cpu@,$host_cpu,;t t
23119s,@host_vendor@,$host_vendor,;t t
23120s,@host_os@,$host_os,;t t
23121s,@target@,$target,;t t
23122s,@target_cpu@,$target_cpu,;t t
23123s,@target_vendor@,$target_vendor,;t t
23124s,@target_os@,$target_os,;t t
23125s,@CC@,$CC,;t t
23126s,@CFLAGS@,$CFLAGS,;t t
23127s,@LDFLAGS@,$LDFLAGS,;t t
23128s,@CPPFLAGS@,$CPPFLAGS,;t t
23129s,@ac_ct_CC@,$ac_ct_CC,;t t
23130s,@EXEEXT@,$EXEEXT,;t t
23131s,@OBJEXT@,$OBJEXT,;t t
23132s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23133s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23134s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 23135s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
23136s,@PACKAGE@,$PACKAGE,;t t
23137s,@VERSION@,$VERSION,;t t
23138s,@ACLOCAL@,$ACLOCAL,;t t
23139s,@AUTOCONF@,$AUTOCONF,;t t
23140s,@AUTOMAKE@,$AUTOMAKE,;t t
23141s,@AUTOHEADER@,$AUTOHEADER,;t t
23142s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
23143s,@install_sh@,$install_sh,;t t
23144s,@STRIP@,$STRIP,;t t
23145s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23146s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23147s,@mkdir_p@,$mkdir_p,;t t
23148s,@AWK@,$AWK,;t t
5464f5a1 23149s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
23150s,@am__leading_dot@,$am__leading_dot,;t t
23151s,@AMTAR@,$AMTAR,;t t
23152s,@am__tar@,$am__tar,;t t
23153s,@am__untar@,$am__untar,;t t
23154s,@DEPDIR@,$DEPDIR,;t t
23155s,@am__include@,$am__include,;t t
23156s,@am__quote@,$am__quote,;t t
23157s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23158s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23159s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23160s,@CCDEPMODE@,$CCDEPMODE,;t t
23161s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23162s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
23163s,@AR@,$AR,;t t
23164s,@ac_ct_AR@,$ac_ct_AR,;t t
23165s,@RANLIB@,$RANLIB,;t t
23166s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7357c5b6
AM
23167s,@CPP@,$CPP,;t t
23168s,@EGREP@,$EGREP,;t t
5464f5a1 23169s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb 23170s,@SED@,$SED,;t t
d7040cdb
SE
23171s,@FGREP@,$FGREP,;t t
23172s,@GREP@,$GREP,;t t
23173s,@LD@,$LD,;t t
23174s,@DUMPBIN@,$DUMPBIN,;t t
23175s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23176s,@NM@,$NM,;t t
23177s,@LN_S@,$LN_S,;t t
718a6fd8
SE
23178s,@OBJDUMP@,$OBJDUMP,;t t
23179s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
d7040cdb 23180s,@lt_ECHO@,$lt_ECHO,;t t
718a6fd8
SE
23181s,@DSYMUTIL@,$DSYMUTIL,;t t
23182s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
23183s,@NMEDIT@,$NMEDIT,;t t
23184s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
23185s,@LIPO@,$LIPO,;t t
23186s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
23187s,@OTOOL@,$OTOOL,;t t
23188s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
23189s,@OTOOL64@,$OTOOL64,;t t
23190s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
0d4a1476 23191s,@DEBUGDIR@,$DEBUGDIR,;t t
92f01d61 23192s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
23193s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23194s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 23195s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 23196s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
23197s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23198s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23199s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
23200s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
23201s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
23202s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
23203s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
23204s,@host_noncanonical@,$host_noncanonical,;t t
23205s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
23206s,@bfdlibdir@,$bfdlibdir,;t t
23207s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 23208s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
23209s,@LIBINTL@,$LIBINTL,;t t
23210s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23211s,@INCINTL@,$INCINTL,;t t
5464f5a1 23212s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
23213s,@GMSGFMT@,$GMSGFMT,;t t
23214s,@POSUB@,$POSUB,;t t
5464f5a1 23215s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 23216s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 23217s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
23218s,@GENCAT@,$GENCAT,;t t
23219s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 23220s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
23221s,@MSGFMT@,$MSGFMT,;t t
23222s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
23223s,@HDEFINES@,$HDEFINES,;t t
23224s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
d2df793a 23225s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
5464f5a1
NN
23226s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
23227s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
23228s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
d2df793a 23229s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
5464f5a1
NN
23230s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23231s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
23232s,@COREFILE@,$COREFILE,;t t
23233s,@COREFLAG@,$COREFLAG,;t t
23234s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
23235s,@WIN32LIBADD@,$WIN32LIBADD,;t t
23236s,@TDEFINES@,$TDEFINES,;t t
23237s,@wordsize@,$wordsize,;t t
21e40a48 23238s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
23239s,@all_backends@,$all_backends,;t t
23240s,@bfd_backends@,$bfd_backends,;t t
23241s,@bfd_machines@,$bfd_machines,;t t
23242s,@bfd_default_target_size@,$bfd_default_target_size,;t t
23243s,@bfd_file_ptr@,$bfd_file_ptr,;t t
23244s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
23245s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
23246s,@datarootdir@,$datarootdir,;t t
23247s,@docdir@,$docdir,;t t
23248s,@htmldir@,$htmldir,;t t
5464f5a1
NN
23249s,@LIBOBJS@,$LIBOBJS,;t t
23250s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 23251CEOF
252b5132 23252
5464f5a1
NN
23253_ACEOF
23254
23255 cat >>$CONFIG_STATUS <<\_ACEOF
23256 # Split the substitutions into bite-sized pieces for seds with
23257 # small command number limits, like on Digital OSF/1 and HP-UX.
23258 ac_max_sed_lines=48
23259 ac_sed_frag=1 # Number of current file.
23260 ac_beg=1 # First line for current file.
23261 ac_end=$ac_max_sed_lines # Line after last line for current file.
23262 ac_more_lines=:
23263 ac_sed_cmds=
23264 while $ac_more_lines; do
23265 if test $ac_beg -gt 1; then
23266 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 23267 else
5464f5a1
NN
23268 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23269 fi
23270 if test ! -s $tmp/subs.frag; then
23271 ac_more_lines=false
23272 else
23273 # The purpose of the label and of the branching condition is to
23274 # speed up the sed processing (if there are no `@' at all, there
23275 # is no need to browse any of the substitutions).
23276 # These are the two extra sed commands mentioned above.
23277 (echo ':t
23278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23279 if test -z "$ac_sed_cmds"; then
23280 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23281 else
23282 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23283 fi
23284 ac_sed_frag=`expr $ac_sed_frag + 1`
23285 ac_beg=$ac_end
23286 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 23287 fi
5464f5a1
NN
23288 done
23289 if test -z "$ac_sed_cmds"; then
23290 ac_sed_cmds=cat
252b5132 23291 fi
5464f5a1 23292fi # test -n "$CONFIG_FILES"
6be7c12c 23293
5464f5a1
NN
23294_ACEOF
23295cat >>$CONFIG_STATUS <<\_ACEOF
23296for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 23297 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
23298 case $ac_file in
23299 - | *:- | *:-:* ) # input from stdin
23300 cat >$tmp/stdin
23301 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23302 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23303 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23305 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
23306 esac
23307
5464f5a1
NN
23308 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23309 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23310$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23311 X"$ac_file" : 'X\(//\)[^/]' \| \
23312 X"$ac_file" : 'X\(//\)$' \| \
23313 X"$ac_file" : 'X\(/\)' \| \
23314 . : '\(.\)' 2>/dev/null ||
23315echo X"$ac_file" |
23316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23318 /^X\(\/\/\)$/{ s//\1/; q; }
23319 /^X\(\/\).*/{ s//\1/; q; }
23320 s/.*/./; q'`
23321 { if $as_mkdir_p; then
23322 mkdir -p "$ac_dir"
252b5132 23323 else
5464f5a1
NN
23324 as_dir="$ac_dir"
23325 as_dirs=
23326 while test ! -d "$as_dir"; do
23327 as_dirs="$as_dir $as_dirs"
23328 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23330 X"$as_dir" : 'X\(//\)[^/]' \| \
23331 X"$as_dir" : 'X\(//\)$' \| \
23332 X"$as_dir" : 'X\(/\)' \| \
23333 . : '\(.\)' 2>/dev/null ||
23334echo X"$as_dir" |
23335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23337 /^X\(\/\/\)$/{ s//\1/; q; }
23338 /^X\(\/\).*/{ s//\1/; q; }
23339 s/.*/./; q'`
23340 done
23341 test ! -n "$as_dirs" || mkdir $as_dirs
23342 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23343echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23344 { (exit 1); exit 1; }; }; }
23345
23346 ac_builddir=.
23347
23348if test "$ac_dir" != .; then
23349 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23350 # A "../" for each directory in $ac_dir_suffix.
23351 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23352else
23353 ac_dir_suffix= ac_top_builddir=
23354fi
252b5132 23355
5464f5a1
NN
23356case $srcdir in
23357 .) # No --srcdir option. We are building in place.
23358 ac_srcdir=.
23359 if test -z "$ac_top_builddir"; then
23360 ac_top_srcdir=.
23361 else
23362 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23363 fi ;;
23364 [\\/]* | ?:[\\/]* ) # Absolute path.
23365 ac_srcdir=$srcdir$ac_dir_suffix;
23366 ac_top_srcdir=$srcdir ;;
252b5132 23367 *) # Relative path.
5464f5a1
NN
23368 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23369 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23370esac
252b5132 23371
5464f5a1
NN
23372# Do not use `cd foo && pwd` to compute absolute paths, because
23373# the directories may not exist.
23374case `pwd` in
23375.) ac_abs_builddir="$ac_dir";;
23376*)
23377 case "$ac_dir" in
23378 .) ac_abs_builddir=`pwd`;;
23379 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23380 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23381 esac;;
23382esac
23383case $ac_abs_builddir in
23384.) ac_abs_top_builddir=${ac_top_builddir}.;;
23385*)
23386 case ${ac_top_builddir}. in
23387 .) ac_abs_top_builddir=$ac_abs_builddir;;
23388 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23389 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23390 esac;;
23391esac
23392case $ac_abs_builddir in
23393.) ac_abs_srcdir=$ac_srcdir;;
23394*)
23395 case $ac_srcdir in
23396 .) ac_abs_srcdir=$ac_abs_builddir;;
23397 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23398 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23399 esac;;
23400esac
23401case $ac_abs_builddir in
23402.) ac_abs_top_srcdir=$ac_top_srcdir;;
23403*)
23404 case $ac_top_srcdir in
23405 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23406 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23407 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23408 esac;;
23409esac
252b5132 23410
5464f5a1
NN
23411
23412 case $INSTALL in
23413 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23414 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 23415 esac
252b5132 23416
7357c5b6
AM
23417 if test x"$ac_file" != x-; then
23418 { echo "$as_me:$LINENO: creating $ac_file" >&5
23419echo "$as_me: creating $ac_file" >&6;}
23420 rm -f "$ac_file"
23421 fi
5464f5a1
NN
23422 # Let's still pretend it is `configure' which instantiates (i.e., don't
23423 # use $as_me), people would be surprised to read:
23424 # /* config.h. Generated by config.status. */
23425 if test x"$ac_file" = x-; then
23426 configure_input=
23427 else
23428 configure_input="$ac_file. "
23429 fi
23430 configure_input=$configure_input"Generated from `echo $ac_file_in |
23431 sed 's,.*/,,'` by configure."
23432
23433 # First look for the input files in the build tree, otherwise in the
23434 # src tree.
23435 ac_file_inputs=`IFS=:
23436 for f in $ac_file_in; do
23437 case $f in
23438 -) echo $tmp/stdin ;;
23439 [\\/$]*)
23440 # Absolute (can't be DOS-style, as IFS=:)
23441 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23442echo "$as_me: error: cannot find input file: $f" >&2;}
23443 { (exit 1); exit 1; }; }
23444 echo "$f";;
23445 *) # Relative
23446 if test -f "$f"; then
23447 # Build tree
23448 echo "$f"
23449 elif test -f "$srcdir/$f"; then
23450 # Source tree
23451 echo "$srcdir/$f"
23452 else
23453 # /dev/null tree
23454 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23455echo "$as_me: error: cannot find input file: $f" >&2;}
23456 { (exit 1); exit 1; }; }
23457 fi;;
23458 esac
23459 done` || { (exit 1); exit 1; }
5464f5a1
NN
23460_ACEOF
23461cat >>$CONFIG_STATUS <<_ACEOF
23462 sed "$ac_vpsub
23463$extrasub
23464_ACEOF
23465cat >>$CONFIG_STATUS <<\_ACEOF
23466:t
23467/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23468s,@configure_input@,$configure_input,;t t
23469s,@srcdir@,$ac_srcdir,;t t
23470s,@abs_srcdir@,$ac_abs_srcdir,;t t
23471s,@top_srcdir@,$ac_top_srcdir,;t t
23472s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23473s,@builddir@,$ac_builddir,;t t
23474s,@abs_builddir@,$ac_abs_builddir,;t t
23475s,@top_builddir@,$ac_top_builddir,;t t
23476s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23477s,@INSTALL@,$ac_INSTALL,;t t
23478" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23479 rm -f $tmp/stdin
23480 if test x"$ac_file" != x-; then
23481 mv $tmp/out $ac_file
23482 else
23483 cat $tmp/out
23484 rm -f $tmp/out
23485 fi
23486
23487done
23488_ACEOF
23489cat >>$CONFIG_STATUS <<\_ACEOF
23490
23491#
23492# CONFIG_HEADER section.
23493#
252b5132
RH
23494
23495# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23496# NAME is the cpp macro being defined and VALUE is the value it is being given.
23497#
23498# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
23499ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23500ac_dB='[ ].*$,\1#\2'
23501ac_dC=' '
23502ac_dD=',;t'
23503# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23504ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23505ac_uB='$,\1#\2define\3'
252b5132 23506ac_uC=' '
5464f5a1
NN
23507ac_uD=',;t'
23508
23509for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 23510 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
23511 case $ac_file in
23512 - | *:- | *:-:* ) # input from stdin
23513 cat >$tmp/stdin
23514 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23515 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23516 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23517 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23518 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
23519 esac
23520
5464f5a1
NN
23521 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23522echo "$as_me: creating $ac_file" >&6;}
23523
23524 # First look for the input files in the build tree, otherwise in the
23525 # src tree.
23526 ac_file_inputs=`IFS=:
23527 for f in $ac_file_in; do
23528 case $f in
23529 -) echo $tmp/stdin ;;
23530 [\\/$]*)
23531 # Absolute (can't be DOS-style, as IFS=:)
23532 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23533echo "$as_me: error: cannot find input file: $f" >&2;}
23534 { (exit 1); exit 1; }; }
23535 # Do quote $f, to prevent DOS paths from being IFS'd.
23536 echo "$f";;
23537 *) # Relative
23538 if test -f "$f"; then
23539 # Build tree
23540 echo "$f"
23541 elif test -f "$srcdir/$f"; then
23542 # Source tree
23543 echo "$srcdir/$f"
23544 else
23545 # /dev/null tree
23546 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23547echo "$as_me: error: cannot find input file: $f" >&2;}
23548 { (exit 1); exit 1; }; }
23549 fi;;
23550 esac
23551 done` || { (exit 1); exit 1; }
23552 # Remove the trailing spaces.
23553 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23554
23555_ACEOF
23556
23557# Transform confdefs.h into two sed scripts, `conftest.defines' and
23558# `conftest.undefs', that substitutes the proper values into
23559# config.h.in to produce config.h. The first handles `#define'
23560# templates, and the second `#undef' templates.
23561# And first: Protect against being on the right side of a sed subst in
23562# config.status. Protect against being in an unquoted here document
23563# in config.status.
23564rm -f conftest.defines conftest.undefs
23565# Using a here document instead of a string reduces the quoting nightmare.
23566# Putting comments in sed scripts is not portable.
23567#
23568# `end' is used to avoid that the second main sed command (meant for
23569# 0-ary CPP macros) applies to n-ary macro definitions.
23570# See the Autoconf documentation for `clear'.
23571cat >confdef2sed.sed <<\_ACEOF
23572s/[\\&,]/\\&/g
23573s,[\\$`],\\&,g
23574t clear
23575: clear
23576s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23577t end
23578s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23579: end
23580_ACEOF
23581# If some macros were called several times there might be several times
23582# the same #defines, which is useless. Nevertheless, we may not want to
23583# sort them, since we want the *last* AC-DEFINE to be honored.
23584uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23585sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23586rm -f confdef2sed.sed
252b5132
RH
23587
23588# This sed command replaces #undef with comments. This is necessary, for
23589# example, in the case of _POSIX_SOURCE, which is predefined and required
23590# on some systems where configure will not decide to define it.
5464f5a1
NN
23591cat >>conftest.undefs <<\_ACEOF
23592s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23593_ACEOF
23594
23595# Break up conftest.defines because some shells have a limit on the size
23596# of here documents, and old seds have small limits too (100 cmds).
23597echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23598echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23599echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23600echo ' :' >>$CONFIG_STATUS
23601rm -f conftest.tail
23602while grep . conftest.defines >/dev/null
23603do
23604 # Write a limited-size here document to $tmp/defines.sed.
23605 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23606 # Speed up: don't consider the non `#define' lines.
23607 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23608 # Work around the forget-to-reset-the-flag bug.
23609 echo 't clr' >>$CONFIG_STATUS
23610 echo ': clr' >>$CONFIG_STATUS
23611 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23612 echo 'CEOF
23613 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23614 rm -f $tmp/in
23615 mv $tmp/out $tmp/in
23616' >>$CONFIG_STATUS
23617 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23618 rm -f conftest.defines
23619 mv conftest.tail conftest.defines
23620done
23621rm -f conftest.defines
23622echo ' fi # grep' >>$CONFIG_STATUS
23623echo >>$CONFIG_STATUS
252b5132 23624
5464f5a1
NN
23625# Break up conftest.undefs because some shells have a limit on the size
23626# of here documents, and old seds have small limits too (100 cmds).
23627echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 23628rm -f conftest.tail
5464f5a1 23629while grep . conftest.undefs >/dev/null
252b5132 23630do
5464f5a1
NN
23631 # Write a limited-size here document to $tmp/undefs.sed.
23632 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23633 # Speed up: don't consider the non `#undef'
23634 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23635 # Work around the forget-to-reset-the-flag bug.
23636 echo 't clr' >>$CONFIG_STATUS
23637 echo ': clr' >>$CONFIG_STATUS
23638 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 23639 echo 'CEOF
5464f5a1
NN
23640 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23641 rm -f $tmp/in
23642 mv $tmp/out $tmp/in
23643' >>$CONFIG_STATUS
23644 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23645 rm -f conftest.undefs
23646 mv conftest.tail conftest.undefs
252b5132 23647done
5464f5a1
NN
23648rm -f conftest.undefs
23649
23650cat >>$CONFIG_STATUS <<\_ACEOF
23651 # Let's still pretend it is `configure' which instantiates (i.e., don't
23652 # use $as_me), people would be surprised to read:
23653 # /* config.h. Generated by config.status. */
23654 if test x"$ac_file" = x-; then
23655 echo "/* Generated by configure. */" >$tmp/config.h
23656 else
23657 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23658 fi
23659 cat $tmp/in >>$tmp/config.h
23660 rm -f $tmp/in
23661 if test x"$ac_file" != x-; then
23662 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23663 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23664echo "$as_me: $ac_file is unchanged" >&6;}
23665 else
23666 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23667$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23668 X"$ac_file" : 'X\(//\)[^/]' \| \
23669 X"$ac_file" : 'X\(//\)$' \| \
23670 X"$ac_file" : 'X\(/\)' \| \
23671 . : '\(.\)' 2>/dev/null ||
23672echo X"$ac_file" |
23673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23675 /^X\(\/\/\)$/{ s//\1/; q; }
23676 /^X\(\/\).*/{ s//\1/; q; }
23677 s/.*/./; q'`
23678 { if $as_mkdir_p; then
23679 mkdir -p "$ac_dir"
252b5132 23680 else
5464f5a1
NN
23681 as_dir="$ac_dir"
23682 as_dirs=
23683 while test ! -d "$as_dir"; do
23684 as_dirs="$as_dir $as_dirs"
23685 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23686$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23687 X"$as_dir" : 'X\(//\)[^/]' \| \
23688 X"$as_dir" : 'X\(//\)$' \| \
23689 X"$as_dir" : 'X\(/\)' \| \
23690 . : '\(.\)' 2>/dev/null ||
23691echo X"$as_dir" |
23692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23694 /^X\(\/\/\)$/{ s//\1/; q; }
23695 /^X\(\/\).*/{ s//\1/; q; }
23696 s/.*/./; q'`
23697 done
23698 test ! -n "$as_dirs" || mkdir $as_dirs
23699 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23700echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23701 { (exit 1); exit 1; }; }; }
23702
23703 rm -f $ac_file
23704 mv $tmp/config.h $ac_file
252b5132 23705 fi
5464f5a1
NN
23706 else
23707 cat $tmp/config.h
23708 rm -f $tmp/config.h
252b5132 23709 fi
f5385ebf
AM
23710# Compute $ac_file's index in $config_headers.
23711_am_stamp_count=1
23712for _am_header in $config_headers :; do
23713 case $_am_header in
23714 $ac_file | $ac_file:* )
23715 break ;;
23716 * )
23717 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23718 esac
23719done
23720echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23721$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23722 X$ac_file : 'X\(//\)[^/]' \| \
23723 X$ac_file : 'X\(//\)$' \| \
23724 X$ac_file : 'X\(/\)' \| \
23725 . : '\(.\)' 2>/dev/null ||
23726echo X$ac_file |
23727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23729 /^X\(\/\/\)$/{ s//\1/; q; }
23730 /^X\(\/\).*/{ s//\1/; q; }
23731 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
23732done
23733_ACEOF
23734cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 23735
5464f5a1
NN
23736#
23737# CONFIG_COMMANDS section.
23738#
23739for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23740 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23741 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23742 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23743$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23744 X"$ac_dest" : 'X\(//\)[^/]' \| \
23745 X"$ac_dest" : 'X\(//\)$' \| \
23746 X"$ac_dest" : 'X\(/\)' \| \
23747 . : '\(.\)' 2>/dev/null ||
23748echo X"$ac_dest" |
23749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23751 /^X\(\/\/\)$/{ s//\1/; q; }
23752 /^X\(\/\).*/{ s//\1/; q; }
23753 s/.*/./; q'`
23754 { if $as_mkdir_p; then
23755 mkdir -p "$ac_dir"
23756 else
23757 as_dir="$ac_dir"
23758 as_dirs=
23759 while test ! -d "$as_dir"; do
23760 as_dirs="$as_dir $as_dirs"
23761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23762$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23763 X"$as_dir" : 'X\(//\)[^/]' \| \
23764 X"$as_dir" : 'X\(//\)$' \| \
23765 X"$as_dir" : 'X\(/\)' \| \
23766 . : '\(.\)' 2>/dev/null ||
23767echo X"$as_dir" |
23768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23770 /^X\(\/\/\)$/{ s//\1/; q; }
23771 /^X\(\/\).*/{ s//\1/; q; }
23772 s/.*/./; q'`
23773 done
23774 test ! -n "$as_dirs" || mkdir $as_dirs
23775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23776echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23777 { (exit 1); exit 1; }; }; }
b3baf5d0 23778
5464f5a1 23779 ac_builddir=.
b3baf5d0 23780
5464f5a1
NN
23781if test "$ac_dir" != .; then
23782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23783 # A "../" for each directory in $ac_dir_suffix.
23784 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23785else
23786 ac_dir_suffix= ac_top_builddir=
23787fi
23788
23789case $srcdir in
23790 .) # No --srcdir option. We are building in place.
23791 ac_srcdir=.
23792 if test -z "$ac_top_builddir"; then
23793 ac_top_srcdir=.
23794 else
23795 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23796 fi ;;
23797 [\\/]* | ?:[\\/]* ) # Absolute path.
23798 ac_srcdir=$srcdir$ac_dir_suffix;
23799 ac_top_srcdir=$srcdir ;;
23800 *) # Relative path.
23801 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23802 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23803esac
23804
23805# Do not use `cd foo && pwd` to compute absolute paths, because
23806# the directories may not exist.
23807case `pwd` in
23808.) ac_abs_builddir="$ac_dir";;
23809*)
23810 case "$ac_dir" in
23811 .) ac_abs_builddir=`pwd`;;
23812 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23813 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23814 esac;;
23815esac
23816case $ac_abs_builddir in
23817.) ac_abs_top_builddir=${ac_top_builddir}.;;
23818*)
23819 case ${ac_top_builddir}. in
23820 .) ac_abs_top_builddir=$ac_abs_builddir;;
23821 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23822 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23823 esac;;
23824esac
23825case $ac_abs_builddir in
23826.) ac_abs_srcdir=$ac_srcdir;;
23827*)
23828 case $ac_srcdir in
23829 .) ac_abs_srcdir=$ac_abs_builddir;;
23830 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23831 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23832 esac;;
23833esac
23834case $ac_abs_builddir in
23835.) ac_abs_top_srcdir=$ac_top_srcdir;;
23836*)
23837 case $ac_top_srcdir in
23838 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23839 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23840 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23841 esac;;
23842esac
23843
23844
23845 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23846echo "$as_me: executing $ac_dest commands" >&6;}
23847 case $ac_dest in
f5385ebf
AM
23848 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23849 # Strip MF so we end up with the name of the file.
23850 mf=`echo "$mf" | sed -e 's/:.*$//'`
23851 # Check whether this is an Automake generated Makefile or not.
23852 # We used to match only the files named `Makefile.in', but
23853 # some people rename them; so instead we look at the file content.
23854 # Grep'ing the first line is not enough: some people post-process
23855 # each Makefile.in and add a new line on top of each file to say so.
23856 # So let's grep whole file.
23857 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23858 dirpart=`(dirname "$mf") 2>/dev/null ||
23859$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23860 X"$mf" : 'X\(//\)[^/]' \| \
23861 X"$mf" : 'X\(//\)$' \| \
23862 X"$mf" : 'X\(/\)' \| \
23863 . : '\(.\)' 2>/dev/null ||
23864echo X"$mf" |
23865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23867 /^X\(\/\/\)$/{ s//\1/; q; }
23868 /^X\(\/\).*/{ s//\1/; q; }
23869 s/.*/./; q'`
23870 else
23871 continue
23872 fi
23873 # Extract the definition of DEPDIR, am__include, and am__quote
23874 # from the Makefile without running `make'.
23875 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23876 test -z "$DEPDIR" && continue
23877 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23878 test -z "am__include" && continue
23879 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23880 # When using ansi2knr, U may be empty or an underscore; expand it
23881 U=`sed -n 's/^U = //p' < "$mf"`
23882 # Find all dependency output files, they are included files with
23883 # $(DEPDIR) in their names. We invoke sed twice because it is the
23884 # simplest approach to changing $(DEPDIR) to its actual value in the
23885 # expansion.
23886 for file in `sed -n "
23887 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23888 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23889 # Make sure the directory exists.
23890 test -f "$dirpart/$file" && continue
23891 fdir=`(dirname "$file") 2>/dev/null ||
23892$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23893 X"$file" : 'X\(//\)[^/]' \| \
23894 X"$file" : 'X\(//\)$' \| \
23895 X"$file" : 'X\(/\)' \| \
23896 . : '\(.\)' 2>/dev/null ||
23897echo X"$file" |
23898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23900 /^X\(\/\/\)$/{ s//\1/; q; }
23901 /^X\(\/\).*/{ s//\1/; q; }
23902 s/.*/./; q'`
23903 { if $as_mkdir_p; then
23904 mkdir -p $dirpart/$fdir
23905 else
23906 as_dir=$dirpart/$fdir
23907 as_dirs=
23908 while test ! -d "$as_dir"; do
23909 as_dirs="$as_dir $as_dirs"
23910 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23911$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23912 X"$as_dir" : 'X\(//\)[^/]' \| \
23913 X"$as_dir" : 'X\(//\)$' \| \
23914 X"$as_dir" : 'X\(/\)' \| \
23915 . : '\(.\)' 2>/dev/null ||
23916echo X"$as_dir" |
23917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23919 /^X\(\/\/\)$/{ s//\1/; q; }
23920 /^X\(\/\).*/{ s//\1/; q; }
23921 s/.*/./; q'`
23922 done
23923 test ! -n "$as_dirs" || mkdir $as_dirs
23924 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23925echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23926 { (exit 1); exit 1; }; }; }
23927
23928 # echo "creating $dirpart/$file"
23929 echo '# dummy' > "$dirpart/$file"
23930 done
23931done
d7040cdb
SE
23932 ;;
23933 libtool )
23934
23935 # See if we are running on zsh, and set the options which allow our
23936 # commands through without removal of \ escapes.
23937 if test -n "${ZSH_VERSION+set}" ; then
23938 setopt NO_GLOB_SUBST
23939 fi
23940
23941 cfgfile="${ofile}T"
23942 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23943 $RM "$cfgfile"
23944
23945 cat <<_LT_EOF >> "$cfgfile"
23946#! $SHELL
23947
23948# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 23949# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
23950# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23951# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23952#
718a6fd8
SE
23953# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23954# 2006, 2007, 2008 Free Software Foundation, Inc.
23955# Written by Gordon Matzigkeit, 1996
d7040cdb 23956#
718a6fd8 23957# This file is part of GNU Libtool.
d7040cdb 23958#
718a6fd8
SE
23959# GNU Libtool is free software; you can redistribute it and/or
23960# modify it under the terms of the GNU General Public License as
23961# published by the Free Software Foundation; either version 2 of
23962# the License, or (at your option) any later version.
d7040cdb 23963#
718a6fd8
SE
23964# As a special exception to the GNU General Public License,
23965# if you distribute this file as part of a program or library that
23966# is built using GNU Libtool, you may include this file under the
23967# same distribution terms that you use for the rest of that program.
d7040cdb 23968#
718a6fd8
SE
23969# GNU Libtool is distributed in the hope that it will be useful,
23970# but WITHOUT ANY WARRANTY; without even the implied warranty of
23971# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23972# GNU General Public License for more details.
d7040cdb 23973#
718a6fd8
SE
23974# You should have received a copy of the GNU General Public License
23975# along with GNU Libtool; see the file COPYING. If not, a copy
23976# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23977# obtained by writing to the Free Software Foundation, Inc.,
23978# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
23979
23980
23981# The names of the tagged configurations supported by this script.
23982available_tags=""
23983
23984# ### BEGIN LIBTOOL CONFIG
23985
23986# Whether or not to build shared libraries.
23987build_libtool_libs=$enable_shared
23988
23989# Which release of libtool.m4 was used?
23990macro_version=$macro_version
23991macro_revision=$macro_revision
23992
23993# Whether or not to build static libraries.
23994build_old_libs=$enable_static
23995
23996# What type of objects to build.
23997pic_mode=$pic_mode
23998
23999# Whether or not to optimize for fast installation.
24000fast_install=$enable_fast_install
24001
24002# The host system.
24003host_alias=$host_alias
24004host=$host
24005host_os=$host_os
24006
24007# The build system.
24008build_alias=$build_alias
24009build=$build
24010build_os=$build_os
24011
24012# A sed program that does not truncate output.
24013SED=$lt_SED
24014
24015# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24016Xsed="\$SED -e 1s/^X//"
24017
24018# A grep program that handles long lines.
24019GREP=$lt_GREP
24020
24021# An ERE matcher.
24022EGREP=$lt_EGREP
24023
24024# A literal string matcher.
24025FGREP=$lt_FGREP
24026
24027# A BSD- or MS-compatible name lister.
24028NM=$lt_NM
24029
24030# Whether we need soft or hard links.
24031LN_S=$lt_LN_S
24032
24033# What is the maximum length of a command?
24034max_cmd_len=$max_cmd_len
24035
24036# Object file suffix (normally "o").
24037objext=$ac_objext
24038
24039# Executable file suffix (normally "").
24040exeext=$exeext
24041
24042# whether the shell understands "unset".
24043lt_unset=$lt_unset
24044
24045# turn spaces into newlines.
24046SP2NL=$lt_lt_SP2NL
24047
24048# turn newlines into spaces.
24049NL2SP=$lt_lt_NL2SP
24050
24051# How to create reloadable object files.
24052reload_flag=$lt_reload_flag
24053reload_cmds=$lt_reload_cmds
24054
718a6fd8
SE
24055# An object symbol dumper.
24056OBJDUMP=$lt_OBJDUMP
24057
d7040cdb
SE
24058# Method to check whether dependent libraries are shared objects.
24059deplibs_check_method=$lt_deplibs_check_method
24060
24061# Command to use when deplibs_check_method == "file_magic".
24062file_magic_cmd=$lt_file_magic_cmd
24063
24064# The archiver.
24065AR=$lt_AR
24066AR_FLAGS=$lt_AR_FLAGS
24067
24068# A symbol stripping program.
24069STRIP=$lt_STRIP
24070
24071# Commands used to install an old-style archive.
24072RANLIB=$lt_RANLIB
24073old_postinstall_cmds=$lt_old_postinstall_cmds
24074old_postuninstall_cmds=$lt_old_postuninstall_cmds
24075
24076# A C compiler.
24077LTCC=$lt_CC
24078
24079# LTCC compiler flags.
24080LTCFLAGS=$lt_CFLAGS
24081
24082# Take the output of nm and produce a listing of raw symbols and C names.
24083global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24084
24085# Transform the output of nm in a proper C declaration.
24086global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24087
24088# Transform the output of nm in a C name address pair.
24089global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24090
718a6fd8
SE
24091# Transform the output of nm in a C name address pair when lib prefix is needed.
24092global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24093
d7040cdb
SE
24094# The name of the directory that contains temporary libtool files.
24095objdir=$objdir
24096
24097# Shell to use when invoking shell scripts.
24098SHELL=$lt_SHELL
24099
24100# An echo program that does not interpret backslashes.
24101ECHO=$lt_ECHO
24102
24103# Used to examine libraries when file_magic_cmd begins with "file".
24104MAGIC_CMD=$MAGIC_CMD
24105
24106# Must we lock files when doing compilation?
24107need_locks=$lt_need_locks
24108
718a6fd8
SE
24109# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24110DSYMUTIL=$lt_DSYMUTIL
24111
24112# Tool to change global to local symbols on Mac OS X.
24113NMEDIT=$lt_NMEDIT
24114
24115# Tool to manipulate fat objects and archives on Mac OS X.
24116LIPO=$lt_LIPO
24117
24118# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24119OTOOL=$lt_OTOOL
24120
24121# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24122OTOOL64=$lt_OTOOL64
24123
d7040cdb
SE
24124# Old archive suffix (normally "a").
24125libext=$libext
24126
24127# Shared library suffix (normally ".so").
24128shrext_cmds=$lt_shrext_cmds
24129
24130# The commands to extract the exported symbol list from a shared archive.
24131extract_expsyms_cmds=$lt_extract_expsyms_cmds
24132
24133# Variables whose values should be saved in libtool wrapper scripts and
24134# restored at link time.
24135variables_saved_for_relink=$lt_variables_saved_for_relink
24136
24137# Do we need the "lib" prefix for modules?
24138need_lib_prefix=$need_lib_prefix
24139
24140# Do we need a version for libraries?
24141need_version=$need_version
24142
24143# Library versioning type.
24144version_type=$version_type
24145
24146# Shared library runtime path variable.
24147runpath_var=$runpath_var
24148
24149# Shared library path variable.
24150shlibpath_var=$shlibpath_var
24151
24152# Is shlibpath searched before the hard-coded library search path?
24153shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24154
24155# Format of library name prefix.
24156libname_spec=$lt_libname_spec
24157
24158# List of archive names. First name is the real one, the rest are links.
24159# The last name is the one that the linker finds with -lNAME
24160library_names_spec=$lt_library_names_spec
24161
24162# The coded name of the library, if different from the real name.
24163soname_spec=$lt_soname_spec
24164
24165# Command to use after installation of a shared archive.
24166postinstall_cmds=$lt_postinstall_cmds
24167
24168# Command to use after uninstallation of a shared archive.
24169postuninstall_cmds=$lt_postuninstall_cmds
24170
24171# Commands used to finish a libtool library installation in a directory.
24172finish_cmds=$lt_finish_cmds
24173
24174# As "finish_cmds", except a single script fragment to be evaled but
24175# not shown.
24176finish_eval=$lt_finish_eval
24177
24178# Whether we should hardcode library paths into libraries.
24179hardcode_into_libs=$hardcode_into_libs
24180
24181# Compile-time system search path for libraries.
24182sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24183
24184# Run-time system search path for libraries.
24185sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24186
24187# Whether dlopen is supported.
24188dlopen_support=$enable_dlopen
24189
24190# Whether dlopen of programs is supported.
24191dlopen_self=$enable_dlopen_self
24192
24193# Whether dlopen of statically linked programs is supported.
24194dlopen_self_static=$enable_dlopen_self_static
24195
24196# Commands to strip libraries.
24197old_striplib=$lt_old_striplib
24198striplib=$lt_striplib
24199
24200
24201# The linker used to build libraries.
24202LD=$lt_LD
24203
24204# Commands used to build an old-style archive.
24205old_archive_cmds=$lt_old_archive_cmds
24206
24207# A language specific compiler.
24208CC=$lt_compiler
24209
24210# Is the compiler the GNU compiler?
24211with_gcc=$GCC
24212
24213# Compiler flag to turn off builtin functions.
24214no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24215
24216# How to pass a linker flag through the compiler.
24217wl=$lt_lt_prog_compiler_wl
24218
24219# Additional compiler flags for building library objects.
24220pic_flag=$lt_lt_prog_compiler_pic
24221
24222# Compiler flag to prevent dynamic linking.
24223link_static_flag=$lt_lt_prog_compiler_static
24224
24225# Does compiler simultaneously support -c and -o options?
24226compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24227
24228# Whether or not to add -lc for building shared libraries.
24229build_libtool_need_lc=$archive_cmds_need_lc
24230
24231# Whether or not to disallow shared libs when runtime libs are static.
24232allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24233
24234# Compiler flag to allow reflexive dlopens.
24235export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24236
24237# Compiler flag to generate shared objects directly from archives.
24238whole_archive_flag_spec=$lt_whole_archive_flag_spec
24239
24240# Whether the compiler copes with passing no objects directly.
24241compiler_needs_object=$lt_compiler_needs_object
24242
24243# Create an old-style archive from a shared archive.
24244old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24245
24246# Create a temporary old-style archive to link instead of a shared archive.
24247old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24248
24249# Commands used to build a shared archive.
24250archive_cmds=$lt_archive_cmds
24251archive_expsym_cmds=$lt_archive_expsym_cmds
24252
24253# Commands used to build a loadable module if different from building
24254# a shared archive.
24255module_cmds=$lt_module_cmds
24256module_expsym_cmds=$lt_module_expsym_cmds
24257
24258# Whether we are building with GNU ld or not.
24259with_gnu_ld=$lt_with_gnu_ld
24260
24261# Flag that allows shared libraries with undefined symbols to be built.
24262allow_undefined_flag=$lt_allow_undefined_flag
24263
24264# Flag that enforces no undefined symbols.
24265no_undefined_flag=$lt_no_undefined_flag
24266
24267# Flag to hardcode \$libdir into a binary during linking.
24268# This must work even if \$libdir does not exist
24269hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24270
24271# If ld is used when linking, flag to hardcode \$libdir into a binary
24272# during linking. This must work even if \$libdir does not exist.
24273hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24274
24275# Whether we need a single "-rpath" flag with a separated argument.
24276hardcode_libdir_separator=$lt_hardcode_libdir_separator
24277
24278# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24279# DIR into the resulting binary.
24280hardcode_direct=$hardcode_direct
24281
24282# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24283# DIR into the resulting binary and the resulting library dependency is
24284# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24285# library is relocated.
24286hardcode_direct_absolute=$hardcode_direct_absolute
24287
24288# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24289# into the resulting binary.
24290hardcode_minus_L=$hardcode_minus_L
24291
24292# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24293# into the resulting binary.
24294hardcode_shlibpath_var=$hardcode_shlibpath_var
24295
24296# Set to "yes" if building a shared library automatically hardcodes DIR
24297# into the library and all subsequent libraries and executables linked
24298# against it.
24299hardcode_automatic=$hardcode_automatic
24300
24301# Set to yes if linker adds runtime paths of dependent libraries
24302# to runtime path list.
24303inherit_rpath=$inherit_rpath
24304
24305# Whether libtool must link a program against all its dependency libraries.
24306link_all_deplibs=$link_all_deplibs
24307
24308# Fix the shell variable \$srcfile for the compiler.
24309fix_srcfile_path=$lt_fix_srcfile_path
24310
24311# Set to "yes" if exported symbols are required.
24312always_export_symbols=$always_export_symbols
24313
24314# The commands to list exported symbols.
24315export_symbols_cmds=$lt_export_symbols_cmds
24316
24317# Symbols that should not be listed in the preloaded symbols.
24318exclude_expsyms=$lt_exclude_expsyms
24319
24320# Symbols that must always be exported.
24321include_expsyms=$lt_include_expsyms
24322
24323# Commands necessary for linking programs (against libraries) with templates.
24324prelink_cmds=$lt_prelink_cmds
24325
24326# Specify filename containing input files.
24327file_list_spec=$lt_file_list_spec
24328
24329# How to hardcode a shared library path into an executable.
24330hardcode_action=$hardcode_action
24331
24332# ### END LIBTOOL CONFIG
24333
24334_LT_EOF
24335
24336 case $host_os in
24337 aix3*)
24338 cat <<\_LT_EOF >> "$cfgfile"
24339# AIX sometimes has problems with the GCC collect2 program. For some
24340# reason, if we set the COLLECT_NAMES environment variable, the problems
24341# vanish in a puff of smoke.
24342if test "X${COLLECT_NAMES+set}" != Xset; then
24343 COLLECT_NAMES=
24344 export COLLECT_NAMES
24345fi
24346_LT_EOF
24347 ;;
24348 esac
24349
24350
24351ltmain="$ac_aux_dir/ltmain.sh"
24352
24353
24354 # We use sed instead of cat because bash on DJGPP gets confused if
24355 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24356 # text mode, it properly converts lines to CR/LF. This bash problem
24357 # is reportedly fixed, but why not run on old versions too?
24358 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24359 || (rm -f "$cfgfile"; exit 1)
24360
24361 case $xsi_shell in
24362 yes)
24363 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 24364
d7040cdb
SE
24365# func_dirname file append nondir_replacement
24366# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24367# otherwise set result to NONDIR_REPLACEMENT.
24368func_dirname ()
24369{
24370 case ${1} in
24371 */*) func_dirname_result="${1%/*}${2}" ;;
24372 * ) func_dirname_result="${3}" ;;
24373 esac
24374}
24375
24376# func_basename file
24377func_basename ()
24378{
24379 func_basename_result="${1##*/}"
24380}
24381
718a6fd8
SE
24382# func_dirname_and_basename file append nondir_replacement
24383# perform func_basename and func_dirname in a single function
24384# call:
24385# dirname: Compute the dirname of FILE. If nonempty,
24386# add APPEND to the result, otherwise set result
24387# to NONDIR_REPLACEMENT.
24388# value returned in "$func_dirname_result"
24389# basename: Compute filename of FILE.
24390# value retuned in "$func_basename_result"
24391# Implementation must be kept synchronized with func_dirname
24392# and func_basename. For efficiency, we do not delegate to
24393# those functions but instead duplicate the functionality here.
24394func_dirname_and_basename ()
24395{
24396 case ${1} in
24397 */*) func_dirname_result="${1%/*}${2}" ;;
24398 * ) func_dirname_result="${3}" ;;
24399 esac
24400 func_basename_result="${1##*/}"
24401}
24402
d7040cdb
SE
24403# func_stripname prefix suffix name
24404# strip PREFIX and SUFFIX off of NAME.
24405# PREFIX and SUFFIX must not contain globbing or regex special
24406# characters, hashes, percent signs, but SUFFIX may contain a leading
24407# dot (in which case that matches only a dot).
24408func_stripname ()
24409{
24410 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24411 # positional parameters, so assign one to ordinary parameter first.
24412 func_stripname_result=${3}
24413 func_stripname_result=${func_stripname_result#"${1}"}
24414 func_stripname_result=${func_stripname_result%"${2}"}
24415}
24416
24417# func_opt_split
24418func_opt_split ()
24419{
24420 func_opt_split_opt=${1%%=*}
24421 func_opt_split_arg=${1#*=}
24422}
24423
24424# func_lo2o object
24425func_lo2o ()
24426{
24427 case ${1} in
24428 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24429 *) func_lo2o_result=${1} ;;
24430 esac
24431}
718a6fd8
SE
24432
24433# func_xform libobj-or-source
24434func_xform ()
24435{
24436 func_xform_result=${1%.*}.lo
24437}
24438
24439# func_arith arithmetic-term...
24440func_arith ()
24441{
24442 func_arith_result=$(( $* ))
24443}
24444
24445# func_len string
24446# STRING may not start with a hyphen.
24447func_len ()
24448{
24449 func_len_result=${#1}
24450}
24451
d7040cdb
SE
24452_LT_EOF
24453 ;;
24454 *) # Bourne compatible functions.
24455 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 24456
d7040cdb
SE
24457# func_dirname file append nondir_replacement
24458# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24459# otherwise set result to NONDIR_REPLACEMENT.
24460func_dirname ()
24461{
24462 # Extract subdirectory from the argument.
24463 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24464 if test "X$func_dirname_result" = "X${1}"; then
24465 func_dirname_result="${3}"
24466 else
24467 func_dirname_result="$func_dirname_result${2}"
24468 fi
24469}
24470
24471# func_basename file
24472func_basename ()
24473{
24474 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24475}
24476
718a6fd8 24477
d7040cdb
SE
24478# func_stripname prefix suffix name
24479# strip PREFIX and SUFFIX off of NAME.
24480# PREFIX and SUFFIX must not contain globbing or regex special
24481# characters, hashes, percent signs, but SUFFIX may contain a leading
24482# dot (in which case that matches only a dot).
24483# func_strip_suffix prefix name
24484func_stripname ()
24485{
24486 case ${2} in
24487 .*) func_stripname_result=`$ECHO "X${3}" \
24488 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24489 *) func_stripname_result=`$ECHO "X${3}" \
24490 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24491 esac
24492}
24493
24494# sed scripts:
24495my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24496my_sed_long_arg='1s/^-[^=]*=//'
24497
24498# func_opt_split
24499func_opt_split ()
24500{
24501 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24502 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24503}
24504
24505# func_lo2o object
24506func_lo2o ()
24507{
24508 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24509}
718a6fd8
SE
24510
24511# func_xform libobj-or-source
24512func_xform ()
24513{
24514 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24515}
24516
24517# func_arith arithmetic-term...
24518func_arith ()
24519{
24520 func_arith_result=`expr "$@"`
24521}
24522
24523# func_len string
24524# STRING may not start with a hyphen.
24525func_len ()
24526{
24527 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24528}
24529
d7040cdb
SE
24530_LT_EOF
24531esac
24532
24533case $lt_shell_append in
24534 yes)
24535 cat << \_LT_EOF >> "$cfgfile"
24536
24537# func_append var value
24538# Append VALUE to the end of shell variable VAR.
24539func_append ()
24540{
24541 eval "$1+=\$2"
24542}
24543_LT_EOF
24544 ;;
24545 *)
24546 cat << \_LT_EOF >> "$cfgfile"
24547
24548# func_append var value
24549# Append VALUE to the end of shell variable VAR.
24550func_append ()
24551{
24552 eval "$1=\$$1\$2"
24553}
718a6fd8 24554
d7040cdb
SE
24555_LT_EOF
24556 ;;
24557 esac
24558
24559
24560 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24561 || (rm -f "$cfgfile"; exit 1)
24562
24563 mv -f "$cfgfile" "$ofile" ||
24564 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24565 chmod +x "$ofile"
24566
f5385ebf 24567 ;;
20e95c23
DJ
24568 default-1 )
24569 for ac_file in $CONFIG_FILES; do
24570 # Support "outfile[:infile[:infile...]]"
24571 case "$ac_file" in
24572 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24573 esac
24574 # PO directories have a Makefile.in generated from Makefile.in.in.
24575 case "$ac_file" in */Makefile.in)
24576 # Adjust a relative srcdir.
24577 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24578 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24579 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24580 # In autoconf-2.13 it is called $ac_given_srcdir.
24581 # In autoconf-2.50 it is called $srcdir.
24582 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24583 case "$ac_given_srcdir" in
24584 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24585 /*) top_srcdir="$ac_given_srcdir" ;;
24586 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24587 esac
24588 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24589 rm -f "$ac_dir/POTFILES"
24590 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24591 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24592 POMAKEFILEDEPS="POTFILES.in"
24593 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24594 # on $ac_dir but don't depend on user-specified configuration
24595 # parameters.
24596 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24597 # The LINGUAS file contains the set of available languages.
24598 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24599 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24600 fi
24601 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24602 # Hide the ALL_LINGUAS assigment from automake.
24603 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24604 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24605 else
24606 # The set of available languages was given in configure.in.
24607 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24608 fi
24609 case "$ac_given_srcdir" in
24610 .) srcdirpre= ;;
24611 *) srcdirpre='$(srcdir)/' ;;
24612 esac
24613 POFILES=
24614 GMOFILES=
24615 UPDATEPOFILES=
24616 DUMMYPOFILES=
24617 for lang in $ALL_LINGUAS; do
24618 POFILES="$POFILES $srcdirpre$lang.po"
24619 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24620 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24621 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24622 done
24623 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24624 # environment variable.
24625 INST_LINGUAS=
24626 if test -n "$ALL_LINGUAS"; then
24627 for presentlang in $ALL_LINGUAS; do
24628 useit=no
24629 if test "%UNSET%" != "$LINGUAS"; then
24630 desiredlanguages="$LINGUAS"
24631 else
24632 desiredlanguages="$ALL_LINGUAS"
24633 fi
24634 for desiredlang in $desiredlanguages; do
24635 # Use the presentlang catalog if desiredlang is
24636 # a. equal to presentlang, or
24637 # b. a variant of presentlang (because in this case,
24638 # presentlang can be used as a fallback for messages
24639 # which are not translated in the desiredlang catalog).
24640 case "$desiredlang" in
24641 "$presentlang"*) useit=yes;;
24642 esac
24643 done
24644 if test $useit = yes; then
24645 INST_LINGUAS="$INST_LINGUAS $presentlang"
24646 fi
24647 done
24648 fi
24649 CATALOGS=
24650 if test -n "$INST_LINGUAS"; then
24651 for lang in $INST_LINGUAS; do
24652 CATALOGS="$CATALOGS $lang.gmo"
24653 done
24654 fi
24655 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24656 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"
24657 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24658 if test -f "$f"; then
24659 case "$f" in
24660 *.orig | *.bak | *~) ;;
24661 *) cat "$f" >> "$ac_dir/Makefile" ;;
24662 esac
24663 fi
24664 done
24665 fi
24666 ;;
24667 esac
24668 done ;;
d5efd9fc
AM
24669 bfd_stdint.h )
24670if test "$GCC" = yes; then
24671 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24672else
24673 echo "/* generated for $CC */" > tmp-stdint.h
24674fi
24675
24676sed 's/^ *//' >> tmp-stdint.h <<EOF
24677
24678 #ifndef GCC_GENERATED_STDINT_H
24679 #define GCC_GENERATED_STDINT_H 1
24680
24681 #include <sys/types.h>
24682EOF
24683
24684if test "$acx_cv_header_stdint" != stdint.h; then
24685 echo "#include <stddef.h>" >> tmp-stdint.h
24686fi
24687if test "$acx_cv_header_stdint" != stddef.h; then
24688 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24689fi
24690
24691sed 's/^ *//' >> tmp-stdint.h <<EOF
24692 /* glibc uses these symbols as guards to prevent redefinitions. */
24693 #ifdef __int8_t_defined
24694 #define _INT8_T
24695 #define _INT16_T
24696 #define _INT32_T
24697 #endif
24698 #ifdef __uint32_t_defined
24699 #define _UINT32_T
24700 #endif
24701
24702EOF
24703
24704# ----------------- done header, emit basic int types -------------
24705if test "$acx_cv_header_stdint" = stddef.h; then
24706 sed 's/^ *//' >> tmp-stdint.h <<EOF
24707
24708 #ifndef _UINT8_T
24709 #define _UINT8_T
24710 #ifndef __uint8_t_defined
24711 #define __uint8_t_defined
24712 typedef unsigned $acx_cv_type_int8_t uint8_t;
24713 #endif
24714 #endif
24715
24716 #ifndef _UINT16_T
24717 #define _UINT16_T
24718 #ifndef __uint16_t_defined
24719 #define __uint16_t_defined
24720 typedef unsigned $acx_cv_type_int16_t uint16_t;
24721 #endif
24722 #endif
24723
24724 #ifndef _UINT32_T
24725 #define _UINT32_T
24726 #ifndef __uint32_t_defined
24727 #define __uint32_t_defined
24728 typedef unsigned $acx_cv_type_int32_t uint32_t;
24729 #endif
24730 #endif
24731
24732 #ifndef _INT8_T
24733 #define _INT8_T
24734 #ifndef __int8_t_defined
24735 #define __int8_t_defined
24736 typedef $acx_cv_type_int8_t int8_t;
24737 #endif
24738 #endif
24739
24740 #ifndef _INT16_T
24741 #define _INT16_T
24742 #ifndef __int16_t_defined
24743 #define __int16_t_defined
24744 typedef $acx_cv_type_int16_t int16_t;
24745 #endif
24746 #endif
24747
24748 #ifndef _INT32_T
24749 #define _INT32_T
24750 #ifndef __int32_t_defined
24751 #define __int32_t_defined
24752 typedef $acx_cv_type_int32_t int32_t;
24753 #endif
24754 #endif
24755EOF
24756elif test "$ac_cv_type_u_int32_t" = yes; then
24757 sed 's/^ *//' >> tmp-stdint.h <<EOF
24758
24759 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24760 #ifndef _INT8_T
24761 #define _INT8_T
24762 #endif
24763 #ifndef _INT16_T
24764 #define _INT16_T
24765 #endif
24766 #ifndef _INT32_T
24767 #define _INT32_T
24768 #endif
24769
24770 #ifndef _UINT8_T
24771 #define _UINT8_T
24772 #ifndef __uint8_t_defined
24773 #define __uint8_t_defined
24774 typedef u_int8_t uint8_t;
24775 #endif
24776 #endif
24777
24778 #ifndef _UINT16_T
24779 #define _UINT16_T
24780 #ifndef __uint16_t_defined
24781 #define __uint16_t_defined
24782 typedef u_int16_t uint16_t;
24783 #endif
24784 #endif
24785
24786 #ifndef _UINT32_T
24787 #define _UINT32_T
24788 #ifndef __uint32_t_defined
24789 #define __uint32_t_defined
24790 typedef u_int32_t uint32_t;
24791 #endif
24792 #endif
24793EOF
24794else
24795 sed 's/^ *//' >> tmp-stdint.h <<EOF
24796
24797 /* Some systems have guard macros to prevent redefinitions, define them. */
24798 #ifndef _INT8_T
24799 #define _INT8_T
24800 #endif
24801 #ifndef _INT16_T
24802 #define _INT16_T
24803 #endif
24804 #ifndef _INT32_T
24805 #define _INT32_T
24806 #endif
24807 #ifndef _UINT8_T
24808 #define _UINT8_T
24809 #endif
24810 #ifndef _UINT16_T
24811 #define _UINT16_T
24812 #endif
24813 #ifndef _UINT32_T
24814 #define _UINT32_T
24815 #endif
24816EOF
24817fi
24818
24819# ------------- done basic int types, emit int64_t types ------------
24820if test "$ac_cv_type_uint64_t" = yes; then
24821 sed 's/^ *//' >> tmp-stdint.h <<EOF
24822
24823 /* system headers have good uint64_t and int64_t */
24824 #ifndef _INT64_T
24825 #define _INT64_T
24826 #endif
24827 #ifndef _UINT64_T
24828 #define _UINT64_T
24829 #endif
24830EOF
24831elif test "$ac_cv_type_u_int64_t" = yes; then
24832 sed 's/^ *//' >> tmp-stdint.h <<EOF
24833
24834 /* system headers have an u_int64_t (and int64_t) */
24835 #ifndef _INT64_T
24836 #define _INT64_T
24837 #endif
24838 #ifndef _UINT64_T
24839 #define _UINT64_T
24840 #ifndef __uint64_t_defined
24841 #define __uint64_t_defined
24842 typedef u_int64_t uint64_t;
24843 #endif
24844 #endif
24845EOF
24846elif test -n "$acx_cv_type_int64_t"; then
24847 sed 's/^ *//' >> tmp-stdint.h <<EOF
24848
24849 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24850 #ifndef _INT64_T
24851 #define _INT64_T
24852 typedef $acx_cv_type_int64_t int64_t;
24853 #endif
24854 #ifndef _UINT64_T
24855 #define _UINT64_T
24856 #ifndef __uint64_t_defined
24857 #define __uint64_t_defined
24858 typedef unsigned $acx_cv_type_int64_t uint64_t;
24859 #endif
24860 #endif
24861EOF
24862else
24863 sed 's/^ *//' >> tmp-stdint.h <<EOF
24864
24865 /* some common heuristics for int64_t, using compiler-specific tests */
24866 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24867 #ifndef _INT64_T
24868 #define _INT64_T
24869 #ifndef __int64_t_defined
24870 typedef long long int64_t;
24871 #endif
24872 #endif
24873 #ifndef _UINT64_T
24874 #define _UINT64_T
24875 typedef unsigned long long uint64_t;
24876 #endif
24877
24878 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24879 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24880 does not implement __extension__. But that compiler doesn't define
24881 __GNUC_MINOR__. */
24882 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24883 # define __extension__
24884 # endif
24885
24886 # ifndef _INT64_T
24887 # define _INT64_T
24888 __extension__ typedef long long int64_t;
24889 # endif
24890 # ifndef _UINT64_T
24891 # define _UINT64_T
24892 __extension__ typedef unsigned long long uint64_t;
24893 # endif
24894
24895 #elif !defined __STRICT_ANSI__
24896 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24897
24898 # ifndef _INT64_T
24899 # define _INT64_T
24900 typedef __int64 int64_t;
24901 # endif
24902 # ifndef _UINT64_T
24903 # define _UINT64_T
24904 typedef unsigned __int64 uint64_t;
24905 # endif
24906 # endif /* compiler */
24907
24908 #endif /* ANSI version */
24909EOF
24910fi
24911
24912# ------------- done int64_t types, emit intptr types ------------
24913if test "$ac_cv_type_uintptr_t" != yes; then
24914 sed 's/^ *//' >> tmp-stdint.h <<EOF
24915
24916 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24917 #ifndef __uintptr_t_defined
24918 typedef u$acx_cv_type_intptr_t uintptr_t;
24919 #endif
24920 #ifndef __intptr_t_defined
24921 typedef $acx_cv_type_intptr_t intptr_t;
24922 #endif
24923EOF
24924fi
24925
24926# ------------- done intptr types, emit int_least types ------------
24927if test "$ac_cv_type_int_least32_t" != yes; then
24928 sed 's/^ *//' >> tmp-stdint.h <<EOF
24929
24930 /* Define int_least types */
24931 typedef int8_t int_least8_t;
24932 typedef int16_t int_least16_t;
24933 typedef int32_t int_least32_t;
24934 #ifdef _INT64_T
24935 typedef int64_t int_least64_t;
24936 #endif
24937
24938 typedef uint8_t uint_least8_t;
24939 typedef uint16_t uint_least16_t;
24940 typedef uint32_t uint_least32_t;
24941 #ifdef _UINT64_T
24942 typedef uint64_t uint_least64_t;
24943 #endif
24944EOF
24945fi
24946
24947# ------------- done intptr types, emit int_fast types ------------
24948if test "$ac_cv_type_int_fast32_t" != yes; then
24949 sed 's/^ *//' >> tmp-stdint.h <<EOF
24950
24951 /* Define int_fast types. short is often slow */
24952 typedef int8_t int_fast8_t;
24953 typedef int int_fast16_t;
24954 typedef int32_t int_fast32_t;
24955 #ifdef _INT64_T
24956 typedef int64_t int_fast64_t;
24957 #endif
24958
24959 typedef uint8_t uint_fast8_t;
24960 typedef unsigned int uint_fast16_t;
24961 typedef uint32_t uint_fast32_t;
24962 #ifdef _UINT64_T
24963 typedef uint64_t uint_fast64_t;
24964 #endif
24965EOF
24966fi
24967
24968if test "$ac_cv_type_uintmax_t" != yes; then
24969 sed 's/^ *//' >> tmp-stdint.h <<EOF
24970
24971 /* Define intmax based on what we found */
24972 #ifdef _INT64_T
24973 typedef int64_t intmax_t;
24974 #else
24975 typedef long intmax_t;
24976 #endif
24977 #ifdef _UINT64_T
24978 typedef uint64_t uintmax_t;
24979 #else
24980 typedef unsigned long uintmax_t;
24981 #endif
24982EOF
24983fi
24984
24985sed 's/^ *//' >> tmp-stdint.h <<EOF
24986
24987 #endif /* GCC_GENERATED_STDINT_H */
24988EOF
24989
24990if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
24991 rm -f tmp-stdint.h
24992else
24993 mv -f tmp-stdint.h bfd_stdint.h
24994fi
24995
24996 ;;
20e95c23
DJ
24997 default )
24998case "$srcdir" in
24999 .) srcdirpre= ;;
25000 *) srcdirpre='$(srcdir)/' ;;
25001esac
25002POFILES=
25003GMOFILES=
25004for lang in dummy $OBSOLETE_ALL_LINGUAS; do
25005 if test $lang != dummy; then
25006 POFILES="$POFILES $srcdirpre$lang.po"
25007 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25008 fi
25009done
25010sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
25011 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
25012 -e "s,@POFILES@,$POFILES," \
25013 -e "s,@GMOFILES@,$GMOFILES," \
25014 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
25015 esac
25016done
25017_ACEOF
25018
25019cat >>$CONFIG_STATUS <<\_ACEOF
25020
25021{ (exit 0); exit 0; }
25022_ACEOF
252b5132 25023chmod +x $CONFIG_STATUS
5464f5a1
NN
25024ac_clean_files=$ac_clean_files_save
25025
25026
25027# configure is writing to config.log, and then calls config.status.
25028# config.status does its own redirection, appending to config.log.
25029# Unfortunately, on DOS this fails, as config.log is still kept open
25030# by configure, so config.status won't be able to write to it; its
25031# output is simply discarded. So we exec the FD to /dev/null,
25032# effectively closing config.log, so it can be properly (re)opened and
25033# appended to by config.status. When coming back to configure, we
25034# need to make the FD available again.
25035if test "$no_create" != yes; then
25036 ac_cs_success=:
25037 ac_config_status_args=
25038 test "$silent" = yes &&
25039 ac_config_status_args="$ac_config_status_args --quiet"
25040 exec 5>/dev/null
25041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25042 exec 5>>config.log
25043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25044 # would make configure fail if this is the last instruction.
25045 $ac_cs_success || { (exit 1); exit 1; }
25046fi
252b5132 25047
55c80943 25048
This page took 1.770603 seconds and 4 git commands to generate.