]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/configure
Add support for Xilinx MicroBlaze processor.
[thirdparty/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
ce3c775b 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 PLUGINS_TRUE PLUGINS_FALSE 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 LIBM SHARED_LDFLAGS SHARED_LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size supports_plugins bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS'
5464f5a1 462ac_subst_files=''
7357c5b6 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
5464f5a1
NN
466ac_init_help=
467ac_init_version=false
252b5132
RH
468# The variables have the same names as the options, with
469# dashes changed to underlines.
5464f5a1 470cache_file=/dev/null
252b5132 471exec_prefix=NONE
252b5132 472no_create=
252b5132
RH
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
252b5132
RH
481verbose=
482x_includes=NONE
483x_libraries=NONE
5464f5a1
NN
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
252b5132
RH
503ac_prev=
504for ac_option
505do
252b5132
RH
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
5464f5a1 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
5464f5a1 517 case $ac_option in
252b5132
RH
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
5464f5a1 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 527 build_alias=$ac_optarg ;;
252b5132
RH
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
252b5132
RH
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
5464f5a1 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
5464f5a1 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
5464f5a1
NN
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
252b5132
RH
553
554 -enable-* | --enable-*)
5464f5a1 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
5464f5a1
NN
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
563 *) ac_optarg=yes ;;
564 esac
5464f5a1 565 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
5464f5a1 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
5464f5a1
NN
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
252b5132
RH
586
587 -host | --host | --hos | --ho)
5464f5a1 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 590 host_alias=$ac_optarg ;;
252b5132
RH
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 597 includedir=$ac_optarg ;;
252b5132
RH
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 607 libdir=$ac_optarg ;;
252b5132
RH
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
5464f5a1 614 libexecdir=$ac_optarg ;;
252b5132
RH
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5464f5a1 623 localstatedir=$ac_optarg ;;
252b5132
RH
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 628 mandir=$ac_optarg ;;
252b5132
RH
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 635 | --no-cr | --no-c | -n)
252b5132
RH
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 649 oldincludedir=$ac_optarg ;;
252b5132
RH
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 654 prefix=$ac_optarg ;;
252b5132
RH
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 661 program_prefix=$ac_optarg ;;
252b5132
RH
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 668 program_suffix=$ac_optarg ;;
252b5132
RH
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 685 program_transform_name=$ac_optarg ;;
252b5132
RH
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
5464f5a1 695 sbindir=$ac_optarg ;;
252b5132
RH
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
5464f5a1 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
5464f5a1 711 site=$ac_optarg ;;
6be7c12c 712
252b5132
RH
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 716 srcdir=$ac_optarg ;;
252b5132
RH
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
5464f5a1
NN
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
5464f5a1 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
5464f5a1
NN
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
252b5132 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
5464f5a1 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
5464f5a1 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
5464f5a1
NN
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
252b5132
RH
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 767 x_includes=$ac_optarg ;;
252b5132
RH
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 774 x_libraries=$ac_optarg ;;
252b5132 775
5464f5a1
NN
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
252b5132
RH
779 ;;
780
5464f5a1
NN
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
252b5132 791 *)
5464f5a1
NN
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
5464f5a1
NN
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
252b5132 806fi
252b5132 807
5464f5a1
NN
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
6be7c12c 818
5464f5a1
NN
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
5464f5a1
NN
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
252b5132
RH
828 esac
829done
830
5464f5a1
NN
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
252b5132 848
5464f5a1
NN
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
252b5132 853
252b5132
RH
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
5464f5a1
NN
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
252b5132
RH
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
5464f5a1
NN
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
5464f5a1
NN
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
b3baf5d0 923
5464f5a1
NN
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
252b5132 932
5464f5a1 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
5464f5a1
NN
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 937
5464f5a1 938Defaults for the options are specified in brackets.
6be7c12c 939
5464f5a1
NN
940Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953 cat <<_ACEOF
954Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
6be7c12c 959
5464f5a1
NN
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
6be7c12c 964
5464f5a1 965For better control, use the options below.
6be7c12c 966
5464f5a1
NN
967Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980_ACEOF
6be7c12c 981
5464f5a1 982 cat <<\_ACEOF
6be7c12c 983
5464f5a1
NN
984Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 988
5464f5a1
NN
989System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993_ACEOF
252b5132 994fi
252b5132 995
5464f5a1 996if test -n "$ac_init_help"; then
6be7c12c 997
5464f5a1 998 cat <<\_ACEOF
252b5132 999
5464f5a1
NN
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
5464f5a1 1011 --disable-libtool-lock avoid locking (might break parallel builds)
5691d22d 1012 --enable-plugins Enable support for plugins (defaults no)
ce3c775b 1013 --disable-largefile omit support for large files
5464f5a1
NN
1014 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1015 --enable-targets alternative target configurations
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
ae5a3597 3036 VERSION=2.19.51
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
ce3c775b
NC
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
d053aef8
JK
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
d053aef8
JK
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. */
ce3c775b
NC
4871
4872# define __EXTENSIONS__ 1
4873 $ac_includes_default
d053aef8
JK
4874int
4875main ()
4876{
4877
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
ce3c775b 4904 ac_cv_safe_to_define___extensions__=yes
d053aef8
JK
4905else
4906 echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
ce3c775b 4909ac_cv_safe_to_define___extensions__=no
d053aef8
JK
4910fi
4911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ce3c775b
NC
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
d053aef8 4918_ACEOF
d053aef8 4919
ce3c775b
NC
4920 cat >>confdefs.h <<\_ACEOF
4921#define _ALL_SOURCE 1
d053aef8 4922_ACEOF
d053aef8 4923
ce3c775b
NC
4924 cat >>confdefs.h <<\_ACEOF
4925#define _GNU_SOURCE 1
4926_ACEOF
d053aef8 4927
ce3c775b
NC
4928 cat >>confdefs.h <<\_ACEOF
4929#define _POSIX_PTHREAD_SEMANTICS 1
4930_ACEOF
4931
4932 cat >>confdefs.h <<\_ACEOF
4933#define _TANDEM_SOURCE 1
d053aef8
JK
4934_ACEOF
4935
d053aef8 4936
d7040cdb 4937
718a6fd8
SE
4938case `pwd` in
4939 *\ * | *\ *)
4940 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4941echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4942esac
d7040cdb
SE
4943
4944
7357c5b6 4945
718a6fd8
SE
4946macro_version='2.2.6'
4947macro_revision='1.3012'
7357c5b6
AM
4948
4949
4950
4951
4952
4953
7357c5b6
AM
4954
4955
4956
4957
4958
4959
4960
718a6fd8 4961ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6
AM
4962
4963echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4964echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4965if test "${lt_cv_path_SED+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968 # Loop through the user's path and test for sed and gsed.
4969# Then use that list of sed's as ones to test for truncation.
4970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971for as_dir in $PATH
4972do
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
4975 for lt_ac_prog in sed gsed; do
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4978 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4979 fi
4980 done
4981 done
4982done
4983IFS=$as_save_IFS
4984lt_ac_max=0
4985lt_ac_count=0
4986# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4987# along with /bin/sed that truncates output.
4988for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4989 test ! -f $lt_ac_sed && continue
4990 cat /dev/null > conftest.in
4991 lt_ac_count=0
4992 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4993 # Check for GNU sed and select it if it is found.
4994 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4995 lt_cv_path_SED=$lt_ac_sed
4996 break
4997 fi
4998 while true; do
4999 cat conftest.in conftest.in >conftest.tmp
5000 mv conftest.tmp conftest.in
5001 cp conftest.in conftest.nl
5002 echo >>conftest.nl
5003 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5004 cmp -s conftest.out conftest.nl || break
5005 # 10000 chars as input seems more than enough
5006 test $lt_ac_count -gt 10 && break
5007 lt_ac_count=`expr $lt_ac_count + 1`
5008 if test $lt_ac_count -gt $lt_ac_max; then
5009 lt_ac_max=$lt_ac_count
5010 lt_cv_path_SED=$lt_ac_sed
5011 fi
5012 done
5013done
5014
5015fi
5016
5017SED=$lt_cv_path_SED
5018
5019echo "$as_me:$LINENO: result: $SED" >&5
5020echo "${ECHO_T}$SED" >&6
5021
5022test -z "$SED" && SED=sed
5023Xsed="$SED -e 1s/^X//"
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035echo "$as_me:$LINENO: checking for fgrep" >&5
5036echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5037if test "${ac_cv_prog_fgrep+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5039else
5040 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5041 then ac_cv_prog_fgrep='grep -F'
5042 else ac_cv_prog_fgrep='fgrep'
5043 fi
5044fi
5045echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5046echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5047 FGREP=$ac_cv_prog_fgrep
5048
5049
5050test -z "$GREP" && GREP=grep
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070# Check whether --with-gnu-ld or --without-gnu-ld was given.
5071if test "${with_gnu_ld+set}" = set; then
5072 withval="$with_gnu_ld"
5073 test "$withval" = no || with_gnu_ld=yes
5074else
5075 with_gnu_ld=no
5076fi;
5077ac_prog=ld
5078if test "$GCC" = yes; then
5079 # Check if gcc -print-prog-name=ld gives a path.
5080 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5081echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5082 case $host in
5083 *-*-mingw*)
5084 # gcc leaves a trailing carriage return which upsets mingw
5085 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5086 *)
5087 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5088 esac
5089 case $ac_prog in
5090 # Accept absolute paths.
5091 [\\/]* | ?:[\\/]*)
5092 re_direlt='/[^/][^/]*/\.\./'
5093 # Canonicalize the pathname of ld
5094 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5095 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
d7040cdb 5096 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
5097 done
5098 test -z "$LD" && LD="$ac_prog"
5099 ;;
5bd8253d 5100 "")
cfbc9945
SE
5101 # If it fails, then pretend we aren't using GCC.
5102 ac_prog=ld
5bd8253d
L
5103 ;;
5104 *)
cfbc9945
SE
5105 # If it is relative, then search for the first ld in PATH.
5106 with_gnu_ld=unknown
5bd8253d 5107 ;;
cfbc9945
SE
5108 esac
5109elif test "$with_gnu_ld" = yes; then
5110 echo "$as_me:$LINENO: checking for GNU ld" >&5
5111echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5112else
5113 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5114echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5115fi
5116if test "${lt_cv_path_LD+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118else
5119 if test -z "$LD"; then
d7040cdb 5120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 5121 for ac_dir in $PATH; do
d7040cdb 5122 IFS="$lt_save_ifs"
cfbc9945
SE
5123 test -z "$ac_dir" && ac_dir=.
5124 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5125 lt_cv_path_LD="$ac_dir/$ac_prog"
5126 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5127 # but apparently some variants of GNU ld only accept -v.
cfbc9945 5128 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5129 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5130 *GNU* | *'with BFD'*)
cfbc9945 5131 test "$with_gnu_ld" != no && break
d7040cdb
SE
5132 ;;
5133 *)
cfbc9945 5134 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5135 ;;
5136 esac
cfbc9945
SE
5137 fi
5138 done
d7040cdb 5139 IFS="$lt_save_ifs"
cfbc9945
SE
5140else
5141 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 5142fi
1ad12f97
NC
5143fi
5144
cfbc9945
SE
5145LD="$lt_cv_path_LD"
5146if test -n "$LD"; then
5147 echo "$as_me:$LINENO: result: $LD" >&5
5148echo "${ECHO_T}$LD" >&6
5149else
5150 echo "$as_me:$LINENO: result: no" >&5
5151echo "${ECHO_T}no" >&6
5152fi
5153test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5154echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5155 { (exit 1); exit 1; }; }
5156echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5157echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5158if test "${lt_cv_prog_gnu_ld+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160else
d7040cdb
SE
5161 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5162case `$LD -v 2>&1 </dev/null` in
5163*GNU* | *'with BFD'*)
cfbc9945 5164 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5165 ;;
5166*)
cfbc9945 5167 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5168 ;;
5169esac
49c96104 5170fi
cfbc9945
SE
5171echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5172echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5173with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 5174
9e9b66a9 5175
cfbc9945 5176
d7040cdb
SE
5177
5178
5179
5180
5181
5182
d7040cdb
SE
5183echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5184echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
cfbc9945
SE
5185if test "${lt_cv_path_NM+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188 if test -n "$NM"; then
5189 # Let the user override the test.
5190 lt_cv_path_NM="$NM"
5191else
d7040cdb
SE
5192 lt_nm_to_check="${ac_tool_prefix}nm"
5193 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5194 lt_nm_to_check="$lt_nm_to_check nm"
5195 fi
5196 for lt_tmp_nm in $lt_nm_to_check; do
5197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5198 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5199 IFS="$lt_save_ifs"
5200 test -z "$ac_dir" && ac_dir=.
5201 tmp_nm="$ac_dir/$lt_tmp_nm"
5202 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5203 # Check to see if the nm accepts a BSD-compat flag.
5204 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5205 # nm: unknown option "B" ignored
5206 # Tru64's nm complains that /dev/null is an invalid object file
5207 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5208 */dev/null* | *'Invalid file or object type'*)
5209 lt_cv_path_NM="$tmp_nm -B"
5210 break
5211 ;;
5212 *)
5213 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5214 */dev/null*)
5215 lt_cv_path_NM="$tmp_nm -p"
5216 break
5217 ;;
5218 *)
5219 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5220 continue # so that we can try to find one that supports BSD flags
5221 ;;
5222 esac
5223 ;;
5224 esac
cfbc9945 5225 fi
d7040cdb
SE
5226 done
5227 IFS="$lt_save_ifs"
cfbc9945 5228 done
d7040cdb 5229 : ${lt_cv_path_NM=no}
cfbc9945 5230fi
a2d91340 5231fi
d7040cdb
SE
5232echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5233echo "${ECHO_T}$lt_cv_path_NM" >&6
5234if test "$lt_cv_path_NM" != "no"; then
5235 NM="$lt_cv_path_NM"
cfbc9945 5236else
d7040cdb
SE
5237 # Didn't find any BSD compatible name lister, look for dumpbin.
5238 if test -n "$ac_tool_prefix"; then
5239 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5240 do
5241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5242set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5243echo "$as_me:$LINENO: checking for $ac_word" >&5
5244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5245if test "${ac_cv_prog_DUMPBIN+set}" = set; then
cfbc9945 5246 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5247else
d7040cdb
SE
5248 if test -n "$DUMPBIN"; then
5249 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5250else
5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5261 fi
5262done
5263done
5464f5a1 5264
d7040cdb
SE
5265fi
5266fi
5267DUMPBIN=$ac_cv_prog_DUMPBIN
5268if test -n "$DUMPBIN"; then
5269 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5270echo "${ECHO_T}$DUMPBIN" >&6
5271else
5272 echo "$as_me:$LINENO: result: no" >&5
5273echo "${ECHO_T}no" >&6
5274fi
d5fbea21 5275
d7040cdb
SE
5276 test -n "$DUMPBIN" && break
5277 done
5278fi
5279if test -z "$DUMPBIN"; then
5280 ac_ct_DUMPBIN=$DUMPBIN
5281 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5282do
5283 # Extract the first word of "$ac_prog", so it can be a program name with args.
5284set dummy $ac_prog; ac_word=$2
5285echo "$as_me:$LINENO: checking for $ac_word" >&5
5286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289else
5290 if test -n "$ac_ct_DUMPBIN"; then
5291 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5292else
5293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH
5295do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
cfbc9945 5303 fi
d7040cdb
SE
5304done
5305done
d5fbea21 5306
d7040cdb
SE
5307fi
5308fi
5309ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5310if test -n "$ac_ct_DUMPBIN"; then
5311 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5312echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5313else
5314 echo "$as_me:$LINENO: result: no" >&5
5315echo "${ECHO_T}no" >&6
5316fi
d5fbea21 5317
d7040cdb
SE
5318 test -n "$ac_ct_DUMPBIN" && break
5319done
5320test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
24443139 5321
d7040cdb
SE
5322 DUMPBIN=$ac_ct_DUMPBIN
5323fi
24443139 5324
24443139 5325
d7040cdb
SE
5326 if test "$DUMPBIN" != ":"; then
5327 NM="$DUMPBIN"
cfbc9945 5328 fi
d7040cdb
SE
5329fi
5330test -z "$NM" && NM=nm
a703a6ea 5331
f5385ebf 5332
cfbc9945 5333
24443139
AS
5334
5335
5336
d7040cdb
SE
5337echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5338echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5339if test "${lt_cv_nm_interface+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5341else
5342 lt_cv_nm_interface="BSD nm"
5343 echo "int some_variable = 0;" > conftest.$ac_ext
ce3c775b 5344 (eval echo "\"\$as_me:5344: $ac_compile\"" >&5)
d7040cdb
SE
5345 (eval "$ac_compile" 2>conftest.err)
5346 cat conftest.err >&5
ce3c775b 5347 (eval echo "\"\$as_me:5347: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5348 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5349 cat conftest.err >&5
ce3c775b 5350 (eval echo "\"\$as_me:5350: output\"" >&5)
d7040cdb
SE
5351 cat conftest.out >&5
5352 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5353 lt_cv_nm_interface="MS dumpbin"
5354 fi
5355 rm -f conftest*
cfbc9945 5356fi
d7040cdb
SE
5357echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5358echo "${ECHO_T}$lt_cv_nm_interface" >&6
a703a6ea 5359
d7040cdb
SE
5360echo "$as_me:$LINENO: checking whether ln -s works" >&5
5361echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5362LN_S=$as_ln_s
5363if test "$LN_S" = "ln -s"; then
5364 echo "$as_me:$LINENO: result: yes" >&5
5365echo "${ECHO_T}yes" >&6
5366else
5367 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5368echo "${ECHO_T}no, using $LN_S" >&6
5369fi
252b5132 5370
cfbc9945
SE
5371# find the maximum length of command line arguments
5372echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5373echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5374if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377 i=0
5378 teststring="ABCD"
5464f5a1 5379
cfbc9945
SE
5380 case $build_os in
5381 msdosdjgpp*)
5382 # On DJGPP, this test can blow up pretty badly due to problems in libc
5383 # (any single argument exceeding 2000 bytes causes a buffer overrun
5384 # during glob expansion). Even if it were fixed, the result of this
5385 # check would be larger than it should be.
5386 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5387 ;;
5464f5a1 5388
d7040cdb
SE
5389 gnu*)
5390 # Under GNU Hurd, this test is not required because there is
5391 # no limit to the length of command line arguments.
5392 # Libtool will interpret -1 as no limit whatsoever
5393 lt_cv_sys_max_cmd_len=-1;
5394 ;;
5395
718a6fd8 5396 cygwin* | mingw* | cegcc*)
cfbc9945
SE
5397 # On Win9x/ME, this test blows up -- it succeeds, but takes
5398 # about 5 minutes as the teststring grows exponentially.
5399 # Worse, since 9x/ME are not pre-emptively multitasking,
5400 # you end up with a "frozen" computer, even though with patience
5401 # the test eventually succeeds (with a max line length of 256k).
5402 # Instead, let's just punt: use the minimum linelength reported by
5403 # all of the supported platforms: 8192 (on NT/2K/XP).
5404 lt_cv_sys_max_cmd_len=8192;
5405 ;;
5464f5a1 5406
cfbc9945
SE
5407 amigaos*)
5408 # On AmigaOS with pdksh, this test takes hours, literally.
5409 # So we just punt and use a minimum line length of 8192.
5410 lt_cv_sys_max_cmd_len=8192;
5411 ;;
5464f5a1 5412
cfbc9945
SE
5413 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5414 # This has been around since 386BSD, at least. Likely further.
5415 if test -x /sbin/sysctl; then
5416 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5417 elif test -x /usr/sbin/sysctl; then
5418 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5419 else
d7040cdb 5420 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
5421 fi
5422 # And add a safety zone
5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5425 ;;
d7040cdb
SE
5426
5427 interix*)
5428 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5429 lt_cv_sys_max_cmd_len=196608
5430 ;;
5431
5432 osf*)
5433 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5434 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5435 # nice to cause kernel panics so lets avoid the loop below.
5436 # First set a reasonable default.
5437 lt_cv_sys_max_cmd_len=16384
5438 #
5439 if test -x /sbin/sysconfig; then
5440 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5441 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5442 esac
5443 fi
5444 ;;
5445 sco3.2v5*)
5446 lt_cv_sys_max_cmd_len=102400
5447 ;;
5448 sysv5* | sco5v6* | sysv4.2uw2*)
5449 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5450 if test -n "$kargmax"; then
5451 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5452 else
5453 lt_cv_sys_max_cmd_len=32768
5454 fi
5455 ;;
5456 *)
718a6fd8
SE
5457 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5458 if test -n "$lt_cv_sys_max_cmd_len"; then
79887925
L
5459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5461 else
5462 # Make teststring a little bigger before we do anything with it.
5463 # a 1K string should be a reasonable start.
5464 for i in 1 2 3 4 5 6 7 8 ; do
5465 teststring=$teststring$teststring
5466 done
5467 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5468 # If test is not a shell built-in, we'll probably end up computing a
5469 # maximum length that is only half of the actual maximum length, but
5470 # we can't tell.
5471 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5472 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5473 test $i != 17 # 1/2 MB should be enough
5474 do
5475 i=`expr $i + 1`
5476 teststring=$teststring$teststring
5477 done
5478 # Only check the string length outside the loop.
5479 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5480 teststring=
5481 # Add a significant safety factor because C++ compilers can tack on
5482 # massive amounts of additional arguments before passing them to the
5483 # linker. It appears as though 1/2 is a usable value.
5484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5485 fi
d7040cdb 5486 ;;
cfbc9945 5487 esac
5464f5a1 5488
252b5132 5489fi
cfbc9945 5490
d7040cdb 5491if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
5492 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5493echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 5494else
cfbc9945
SE
5495 echo "$as_me:$LINENO: result: none" >&5
5496echo "${ECHO_T}none" >&6
5464f5a1 5497fi
d7040cdb 5498max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5499
cfbc9945 5500
252b5132 5501
cfbc9945 5502
cfbc9945 5503
d7040cdb 5504
d7040cdb
SE
5505: ${CP="cp -f"}
5506: ${MV="mv -f"}
5507: ${RM="rm -f"}
5508
5509echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5510echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5511# Try some XSI features
5512xsi_shell=no
5513( _lt_dummy="a/b/c"
5514 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
5515 = c,a/b,, \
5516 && eval 'test $(( 1 + 1 )) -eq 2 \
5517 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb
SE
5518 && xsi_shell=yes
5519echo "$as_me:$LINENO: result: $xsi_shell" >&5
5520echo "${ECHO_T}$xsi_shell" >&6
5521
5522
5523echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5524echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5525lt_shell_append=no
5526( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5527 >/dev/null 2>&1 \
5528 && lt_shell_append=yes
5529echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5530echo "${ECHO_T}$lt_shell_append" >&6
5531
5532
5533if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5534 lt_unset=unset
5464f5a1 5535else
d7040cdb 5536 lt_unset=false
5464f5a1 5537fi
252b5132 5538
d7040cdb
SE
5539
5540
5541
5542
5543# test EBCDIC or ASCII
5544case `echo X|tr X '\101'` in
5545 A) # ASCII based system
5546 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5547 lt_SP2NL='tr \040 \012'
5548 lt_NL2SP='tr \015\012 \040\040'
5549 ;;
5550 *) # EBCDIC based system
5551 lt_SP2NL='tr \100 \n'
5552 lt_NL2SP='tr \r\n \100\100'
5553 ;;
5554esac
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5565echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5566if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568else
d7040cdb
SE
5569 lt_cv_ld_reload_flag='-r'
5570fi
5571echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5572echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5573reload_flag=$lt_cv_ld_reload_flag
5574case $reload_flag in
5575"" | " "*) ;;
5576*) reload_flag=" $reload_flag" ;;
5577esac
5578reload_cmds='$LD$reload_flag -o $output$reload_objs'
5579case $host_os in
5580 darwin*)
5581 if test "$GCC" = yes; then
5582 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5583 else
5584 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5585 fi
5586 ;;
5587esac
5588
5589
5590
5591
5592
5593
5594
5595
5596
718a6fd8
SE
5597if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5599set dummy ${ac_tool_prefix}objdump; ac_word=$2
5600echo "$as_me:$LINENO: checking for $ac_word" >&5
5601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5602if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605 if test -n "$OBJDUMP"; then
5606 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5607else
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619done
5620done
5621
5622fi
5623fi
5624OBJDUMP=$ac_cv_prog_OBJDUMP
5625if test -n "$OBJDUMP"; then
5626 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5627echo "${ECHO_T}$OBJDUMP" >&6
5628else
5629 echo "$as_me:$LINENO: result: no" >&5
5630echo "${ECHO_T}no" >&6
5631fi
5632
5633fi
5634if test -z "$ac_cv_prog_OBJDUMP"; then
5635 ac_ct_OBJDUMP=$OBJDUMP
5636 # Extract the first word of "objdump", so it can be a program name with args.
5637set dummy objdump; ac_word=$2
5638echo "$as_me:$LINENO: checking for $ac_word" >&5
5639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5640if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643 if test -n "$ac_ct_OBJDUMP"; then
5644 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5656 fi
5657done
5658done
5659
5660 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5661fi
5662fi
5663ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5664if test -n "$ac_ct_OBJDUMP"; then
5665 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5666echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5667else
5668 echo "$as_me:$LINENO: result: no" >&5
5669echo "${ECHO_T}no" >&6
5670fi
5671
5672 OBJDUMP=$ac_ct_OBJDUMP
5673else
5674 OBJDUMP="$ac_cv_prog_OBJDUMP"
5675fi
5676
5677test -z "$OBJDUMP" && OBJDUMP=objdump
5678
5679
5680
5681
5682
5683
5684
5685
d7040cdb
SE
5686
5687echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5688echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5689if test "${lt_cv_deplibs_check_method+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692 lt_cv_file_magic_cmd='$MAGIC_CMD'
5693lt_cv_file_magic_test_file=
5694lt_cv_deplibs_check_method='unknown'
5695# Need to set the preceding variable on all platforms that support
5696# interlibrary dependencies.
5697# 'none' -- dependencies not supported.
5698# `unknown' -- same as none, but documents that we really don't know.
5699# 'pass_all' -- all dependencies passed with no checks.
5700# 'test_compile' -- check by making test program.
5701# 'file_magic [[regex]]' -- check by looking for files in library path
5702# which responds to the $file_magic_cmd with a given extended regex.
5703# If you have `file' or equivalent on your system and you're not sure
5704# whether `pass_all' will *always* work, you probably want this one.
5705
5706case $host_os in
e81819a5 5707aix[4-9]*)
d7040cdb
SE
5708 lt_cv_deplibs_check_method=pass_all
5709 ;;
5710
5711beos*)
5712 lt_cv_deplibs_check_method=pass_all
5713 ;;
5714
5715bsdi[45]*)
5716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5717 lt_cv_file_magic_cmd='/usr/bin/file -L'
5718 lt_cv_file_magic_test_file=/shlib/libc.so
5719 ;;
5720
5721cygwin*)
5722 # func_win32_libid is a shell function defined in ltmain.sh
5723 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5724 lt_cv_file_magic_cmd='func_win32_libid'
5725 ;;
5726
5727mingw* | pw32*)
5728 # Base MSYS/MinGW do not provide the 'file' command needed by
5729 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5730 # unless we find 'file', for example because we are cross-compiling.
5731 if ( file / ) >/dev/null 2>&1; then
5732 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5733 lt_cv_file_magic_cmd='func_win32_libid'
5734 else
5735 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5736 lt_cv_file_magic_cmd='$OBJDUMP -f'
5737 fi
5738 ;;
5739
718a6fd8
SE
5740cegcc)
5741 # use the weaker test based on 'objdump'. See mingw*.
5742 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5743 lt_cv_file_magic_cmd='$OBJDUMP -f'
5744 ;;
5745
d7040cdb
SE
5746darwin* | rhapsody*)
5747 lt_cv_deplibs_check_method=pass_all
cfbc9945 5748 ;;
d7040cdb
SE
5749
5750freebsd* | dragonfly*)
5751 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5752 case $host_cpu in
5753 i*86 )
5754 # Not sure whether the presence of OpenBSD here was a mistake.
5755 # Let's accept both of them until this is cleared up.
5756 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5757 lt_cv_file_magic_cmd=/usr/bin/file
5758 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5759 ;;
5760 esac
5761 else
5762 lt_cv_deplibs_check_method=pass_all
5763 fi
5764 ;;
5765
5766gnu*)
5767 lt_cv_deplibs_check_method=pass_all
cfbc9945 5768 ;;
d7040cdb
SE
5769
5770hpux10.20* | hpux11*)
5771 lt_cv_file_magic_cmd=/usr/bin/file
5772 case $host_cpu in
5773 ia64*)
5774 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5775 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5776 ;;
5777 hppa*64*)
5778 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]'
5779 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5780 ;;
cfbc9945 5781 *)
d7040cdb
SE
5782 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5783 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5784 ;;
5785 esac
5786 ;;
6be7c12c 5787
d7040cdb
SE
5788interix[3-9]*)
5789 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5790 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5791 ;;
cfbc9945 5792
d7040cdb
SE
5793irix5* | irix6* | nonstopux*)
5794 case $LD in
5795 *-32|*"-32 ") libmagic=32-bit;;
5796 *-n32|*"-n32 ") libmagic=N32;;
5797 *-64|*"-64 ") libmagic=64-bit;;
5798 *) libmagic=never-match;;
5799 esac
5800 lt_cv_deplibs_check_method=pass_all
cfbc9945 5801 ;;
cfbc9945 5802
d7040cdb 5803# This must be Linux ELF.
58e24671 5804linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
5805 lt_cv_deplibs_check_method=pass_all
5806 ;;
5464f5a1 5807
d7040cdb
SE
5808netbsd*)
5809 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 5811 else
d7040cdb 5812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 5813 fi
d7040cdb
SE
5814 ;;
5815
5816newos6*)
5817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5818 lt_cv_file_magic_cmd=/usr/bin/file
5819 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5820 ;;
5821
5822*nto* | *qnx*)
5823 lt_cv_deplibs_check_method=pass_all
5824 ;;
cfbc9945 5825
d7040cdb
SE
5826openbsd*)
5827 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5829 else
5830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
5831 fi
5832 ;;
d7040cdb
SE
5833
5834osf3* | osf4* | osf5*)
5835 lt_cv_deplibs_check_method=pass_all
5836 ;;
5837
5838rdos*)
5839 lt_cv_deplibs_check_method=pass_all
5840 ;;
5841
5842solaris*)
5843 lt_cv_deplibs_check_method=pass_all
5844 ;;
5845
5846sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5847 lt_cv_deplibs_check_method=pass_all
5848 ;;
5849
5850sysv4 | sysv4.3*)
5851 case $host_vendor in
5852 motorola)
5853 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]'
5854 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5855 ;;
5856 ncr)
5857 lt_cv_deplibs_check_method=pass_all
5858 ;;
5859 sequent)
5860 lt_cv_file_magic_cmd='/bin/file'
5861 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5862 ;;
5863 sni)
5864 lt_cv_file_magic_cmd='/bin/file'
5865 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5866 lt_cv_file_magic_test_file=/lib/libc.so
5867 ;;
5868 siemens)
5869 lt_cv_deplibs_check_method=pass_all
5870 ;;
5871 pc)
5872 lt_cv_deplibs_check_method=pass_all
5873 ;;
5874 esac
5875 ;;
5876
5877tpf*)
5878 lt_cv_deplibs_check_method=pass_all
5879 ;;
cfbc9945
SE
5880esac
5881
d7040cdb
SE
5882fi
5883echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5884echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5885file_magic_cmd=$lt_cv_file_magic_cmd
5886deplibs_check_method=$lt_cv_deplibs_check_method
5887test -z "$deplibs_check_method" && deplibs_check_method=unknown
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
cfbc9945 5900if test -n "$ac_tool_prefix"; then
d7040cdb
SE
5901 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5902set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
5903echo "$as_me:$LINENO: checking for $ac_word" >&5
5904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5905if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
d7040cdb
SE
5908 if test -n "$AR"; then
5909 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
5910else
5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5918 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5921 fi
5922done
5923done
5924
5925fi
5926fi
d7040cdb
SE
5927AR=$ac_cv_prog_AR
5928if test -n "$AR"; then
5929 echo "$as_me:$LINENO: result: $AR" >&5
5930echo "${ECHO_T}$AR" >&6
5464f5a1
NN
5931else
5932 echo "$as_me:$LINENO: result: no" >&5
5933echo "${ECHO_T}no" >&6
5934fi
5935
5464f5a1 5936fi
d7040cdb
SE
5937if test -z "$ac_cv_prog_AR"; then
5938 ac_ct_AR=$AR
5939 # Extract the first word of "ar", so it can be a program name with args.
5940set dummy ar; ac_word=$2
5464f5a1
NN
5941echo "$as_me:$LINENO: checking for $ac_word" >&5
5942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5943if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 5944 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5945else
d7040cdb
SE
5946 if test -n "$ac_ct_AR"; then
5947 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 5948else
5464f5a1
NN
5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950for as_dir in $PATH
5951do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5956 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
5957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5959 fi
5960done
5961done
5962
d7040cdb 5963 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
5964fi
5965fi
d7040cdb
SE
5966ac_ct_AR=$ac_cv_prog_ac_ct_AR
5967if test -n "$ac_ct_AR"; then
5968 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5969echo "${ECHO_T}$ac_ct_AR" >&6
5970else
5971 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
5972echo "${ECHO_T}no" >&6
5973fi
5974
d7040cdb 5975 AR=$ac_ct_AR
cfbc9945 5976else
d7040cdb 5977 AR="$ac_cv_prog_AR"
5464f5a1 5978fi
cfbc9945 5979
d7040cdb
SE
5980test -z "$AR" && AR=ar
5981test -z "$AR_FLAGS" && AR_FLAGS=cru
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
cfbc9945
SE
5993if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5995set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
5996echo "$as_me:$LINENO: checking for $ac_word" >&5
5997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5998if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000else
cfbc9945
SE
6001 if test -n "$STRIP"; then
6002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
6003else
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 6011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
6012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015done
6016done
6017
6018fi
6019fi
cfbc9945
SE
6020STRIP=$ac_cv_prog_STRIP
6021if test -n "$STRIP"; then
6022 echo "$as_me:$LINENO: result: $STRIP" >&5
6023echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
6024else
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
6027fi
6028
252b5132 6029fi
cfbc9945
SE
6030if test -z "$ac_cv_prog_STRIP"; then
6031 ac_ct_STRIP=$STRIP
6032 # Extract the first word of "strip", so it can be a program name with args.
6033set dummy strip; ac_word=$2
5464f5a1
NN
6034echo "$as_me:$LINENO: checking for $ac_word" >&5
6035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 6036if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038else
cfbc9945
SE
6039 if test -n "$ac_ct_STRIP"; then
6040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
6041else
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 6049 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
6050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053done
6054done
6055
cfbc9945 6056 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
6057fi
6058fi
cfbc9945
SE
6059ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6060if test -n "$ac_ct_STRIP"; then
6061 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6062echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
6063else
6064 echo "$as_me:$LINENO: result: no" >&5
6065echo "${ECHO_T}no" >&6
6066fi
6067
cfbc9945
SE
6068 STRIP=$ac_ct_STRIP
6069else
6070 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
6071fi
6072
d7040cdb 6073test -z "$STRIP" && STRIP=:
5464f5a1 6074
cfbc9945
SE
6075
6076
cfbc9945 6077
cfbc9945
SE
6078
6079
d7040cdb
SE
6080if test -n "$ac_tool_prefix"; then
6081 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6082set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6083echo "$as_me:$LINENO: checking for $ac_word" >&5
6084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6085if test "${ac_cv_prog_RANLIB+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 6087else
d7040cdb
SE
6088 if test -n "$RANLIB"; then
6089 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6090else
6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092for as_dir in $PATH
6093do
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 break 2
cfbc9945 6101 fi
d7040cdb
SE
6102done
6103done
cfbc9945 6104
d7040cdb
SE
6105fi
6106fi
6107RANLIB=$ac_cv_prog_RANLIB
6108if test -n "$RANLIB"; then
6109 echo "$as_me:$LINENO: result: $RANLIB" >&5
6110echo "${ECHO_T}$RANLIB" >&6
6111else
6112 echo "$as_me:$LINENO: result: no" >&5
6113echo "${ECHO_T}no" >&6
6114fi
cfbc9945 6115
d7040cdb
SE
6116fi
6117if test -z "$ac_cv_prog_RANLIB"; then
6118 ac_ct_RANLIB=$RANLIB
6119 # Extract the first word of "ranlib", so it can be a program name with args.
6120set dummy ranlib; ac_word=$2
6121echo "$as_me:$LINENO: checking for $ac_word" >&5
6122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6123if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125else
6126 if test -n "$ac_ct_RANLIB"; then
6127 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6128else
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_ac_ct_RANLIB="ranlib"
6137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
cfbc9945 6139 fi
d7040cdb
SE
6140done
6141done
cfbc9945 6142
d7040cdb
SE
6143 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6144fi
6145fi
6146ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6147if test -n "$ac_ct_RANLIB"; then
6148 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6149echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 6150else
d7040cdb
SE
6151 echo "$as_me:$LINENO: result: no" >&5
6152echo "${ECHO_T}no" >&6
6153fi
5464f5a1 6154
d7040cdb
SE
6155 RANLIB=$ac_ct_RANLIB
6156else
6157 RANLIB="$ac_cv_prog_RANLIB"
6158fi
5464f5a1 6159
d7040cdb 6160test -z "$RANLIB" && RANLIB=:
5464f5a1 6161
5464f5a1 6162
5464f5a1 6163
cfbc9945 6164
cfbc9945 6165
d7040cdb
SE
6166
6167# Determine commands to create old-style static archives.
718a6fd8 6168old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6169old_postinstall_cmds='chmod 644 $oldlib'
6170old_postuninstall_cmds=
6171
6172if test -n "$RANLIB"; then
6173 case $host_os in
6174 openbsd*)
6175 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6176 ;;
6177 *)
6178 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6179 ;;
6180 esac
6181 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 6182fi
cfbc9945
SE
6183
6184
cfbc9945
SE
6185
6186
cfbc9945 6187
cfbc9945 6188
cfbc9945 6189
cfbc9945 6190
cfbc9945
SE
6191
6192
cfbc9945 6193
cfbc9945 6194
cfbc9945
SE
6195
6196
6197
6198
6199
6200
6201
5464f5a1 6202
5464f5a1 6203
cfbc9945
SE
6204
6205
6206
5464f5a1 6207
5464f5a1 6208
cfbc9945
SE
6209
6210
6211
5464f5a1 6212
cfbc9945
SE
6213
6214
6215
6216
d7040cdb
SE
6217# If no C compiler was specified, use CC.
6218LTCC=${LTCC-"$CC"}
cfbc9945 6219
d7040cdb
SE
6220# If no C compiler flags were specified, use CFLAGS.
6221LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 6222
d7040cdb
SE
6223# Allow CC to be a program name with arguments.
6224compiler=$CC
cfbc9945 6225
cfbc9945 6226
d7040cdb
SE
6227# Check for command to grab the raw symbol name followed by C symbol from nm.
6228echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6229echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6230if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
5464f5a1 6233
d7040cdb
SE
6234# These are sane defaults that work on at least a few old systems.
6235# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 6236
d7040cdb
SE
6237# Character class describing NM global symbol codes.
6238symcode='[BCDEGRST]'
6239
6240# Regexp to match symbols that can be accessed directly from C.
6241sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6242
6243# Define system-specific variables.
6244case $host_os in
6245aix*)
6246 symcode='[BCDT]'
6247 ;;
718a6fd8 6248cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6249 symcode='[ABCDGISTW]'
6250 ;;
6251hpux*)
6252 if test "$host_cpu" = ia64; then
6253 symcode='[ABCDEGRST]'
6254 fi
6255 ;;
6256irix* | nonstopux*)
6257 symcode='[BCDEGRST]'
6258 ;;
6259osf*)
6260 symcode='[BCDEGQRST]'
6261 ;;
6262solaris*)
6263 symcode='[BDRT]'
6264 ;;
6265sco3.2v5*)
6266 symcode='[DT]'
6267 ;;
6268sysv4.2uw2*)
6269 symcode='[DT]'
6270 ;;
6271sysv5* | sco5v6* | unixware* | OpenUNIX*)
6272 symcode='[ABDT]'
6273 ;;
6274sysv4)
6275 symcode='[DFNSTU]'
6276 ;;
cfbc9945 6277esac
5464f5a1 6278
d7040cdb
SE
6279# If we're using GNU nm, then use its standard symbol codes.
6280case `$NM -V 2>&1` in
6281*GNU* | *'with BFD'*)
6282 symcode='[ABCDGIRSTW]' ;;
6283esac
5464f5a1 6284
d7040cdb
SE
6285# Transform an extracted symbol line into a proper C declaration.
6286# Some systems (esp. on ia64) link data and code symbols differently,
6287# so use this general approach.
6288lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 6289
d7040cdb
SE
6290# Transform an extracted symbol line into symbol name and symbol address
6291lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6292lt_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 6293
d7040cdb
SE
6294# Handle CRLF in mingw tool chain
6295opt_cr=
6296case $build_os in
6297mingw*)
6298 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6299 ;;
6300esac
5464f5a1 6301
d7040cdb
SE
6302# Try without a prefix underscore, then with it.
6303for ac_symprfx in "" "_"; do
6304
6305 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6306 symxfrm="\\1 $ac_symprfx\\2 \\2"
6307
6308 # Write the raw and C identifiers.
6309 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6310 # Fake it for dumpbin and say T for any non-static function
6311 # and D for any global variable.
6312 # Also find C++ and __fastcall symbols from MSVC++,
6313 # which start with @ or ?.
6314 lt_cv_sys_global_symbol_pipe="$AWK '"\
6315" {last_section=section; section=\$ 3};"\
6316" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6317" \$ 0!~/External *\|/{next};"\
6318" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6319" {if(hide[section]) next};"\
6320" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6321" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6322" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6323" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6324" ' prfx=^$ac_symprfx"
6325 else
6326 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6327 fi
cfbc9945 6328
d7040cdb
SE
6329 # Check to see that the pipe works correctly.
6330 pipe_works=no
cfbc9945 6331
d7040cdb
SE
6332 rm -f conftest*
6333 cat > conftest.$ac_ext <<_LT_EOF
6334#ifdef __cplusplus
6335extern "C" {
6336#endif
6337char nm_test_var;
6338void nm_test_func(void);
6339void nm_test_func(void){}
6340#ifdef __cplusplus
6341}
6342#endif
6343int main(){nm_test_var='a';nm_test_func();return(0);}
6344_LT_EOF
cfbc9945 6345
d7040cdb
SE
6346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347 (eval $ac_compile) 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; then
6351 # Now try to grab the symbols.
6352 nlist=conftest.nm
6353 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6354 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && test -s "$nlist"; then
6358 # Try sorting and uniquifying the output.
6359 if sort "$nlist" | uniq > "$nlist"T; then
6360 mv -f "$nlist"T "$nlist"
6361 else
6362 rm -f "$nlist"T
6363 fi
cfbc9945 6364
d7040cdb
SE
6365 # Make sure that we snagged all the symbols we need.
6366 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6367 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6368 cat <<_LT_EOF > conftest.$ac_ext
6369#ifdef __cplusplus
6370extern "C" {
6371#endif
cfbc9945 6372
d7040cdb
SE
6373_LT_EOF
6374 # Now generate the symbol file.
6375 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 6376
d7040cdb 6377 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 6378
d7040cdb
SE
6379/* The mapping between symbol names and symbols. */
6380const struct {
6381 const char *name;
6382 void *address;
6383}
6384lt__PROGRAM__LTX_preloaded_symbols[] =
6385{
6386 { "@PROGRAM@", (void *) 0 },
6387_LT_EOF
6388 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6389 cat <<\_LT_EOF >> conftest.$ac_ext
6390 {0, (void *) 0}
6391};
6392
6393/* This works around a problem in FreeBSD linker */
6394#ifdef FREEBSD_WORKAROUND
6395static const void *lt_preloaded_setup() {
6396 return lt__PROGRAM__LTX_preloaded_symbols;
6397}
6398#endif
cfbc9945 6399
d7040cdb
SE
6400#ifdef __cplusplus
6401}
6402#endif
6403_LT_EOF
6404 # Now try linking the two files.
6405 mv conftest.$ac_objext conftstm.$ac_objext
6406 lt_save_LIBS="$LIBS"
6407 lt_save_CFLAGS="$CFLAGS"
6408 LIBS="conftstm.$ac_objext"
6409 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411 (eval $ac_link) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6415 pipe_works=yes
6416 fi
6417 LIBS="$lt_save_LIBS"
6418 CFLAGS="$lt_save_CFLAGS"
6419 else
6420 echo "cannot find nm_test_func in $nlist" >&5
6421 fi
6422 else
6423 echo "cannot find nm_test_var in $nlist" >&5
6424 fi
6425 else
6426 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6427 fi
6428 else
6429 echo "$progname: failed program was:" >&5
6430 cat conftest.$ac_ext >&5
6431 fi
718a6fd8 6432 rm -rf conftest* conftst*
cfbc9945 6433
d7040cdb
SE
6434 # Do not use the global_symbol_pipe unless it works.
6435 if test "$pipe_works" = yes; then
6436 break
6437 else
6438 lt_cv_sys_global_symbol_pipe=
6439 fi
6440done
cfbc9945 6441
252b5132 6442fi
5464f5a1 6443
d7040cdb
SE
6444if test -z "$lt_cv_sys_global_symbol_pipe"; then
6445 lt_cv_sys_global_symbol_to_cdecl=
6446fi
6447if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6448 echo "$as_me:$LINENO: result: failed" >&5
6449echo "${ECHO_T}failed" >&6
b3baf5d0 6450else
d7040cdb
SE
6451 echo "$as_me:$LINENO: result: ok" >&5
6452echo "${ECHO_T}ok" >&6
6453fi
5464f5a1 6454
cfbc9945 6455
b3baf5d0 6456
cfbc9945
SE
6457
6458
6459
6460
5464f5a1 6461
4a2a2686
HPN
6462
6463
6464
cfbc9945
SE
6465
6466
cfbc9945 6467
cfbc9945 6468
718a6fd8
SE
6469
6470
6471
6472
6473
9d7cbccd 6474
20e95c23 6475
d7040cdb
SE
6476# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6477if test "${enable_libtool_lock+set}" = set; then
6478 enableval="$enable_libtool_lock"
20e95c23 6479
d7040cdb
SE
6480fi;
6481test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 6482
d7040cdb
SE
6483# Some flags need to be propagated to the compiler or linker for good
6484# libtool support.
6485case $host in
6486ia64-*-hpux*)
6487 # Find out which ABI we are using.
6488 echo 'int i;' > conftest.$ac_ext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6490 (eval $ac_compile) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; then
6494 case `/usr/bin/file conftest.$ac_objext` in
6495 *ELF-32*)
6496 HPUX_IA64_MODE="32"
6497 ;;
6498 *ELF-64*)
6499 HPUX_IA64_MODE="64"
6500 ;;
20e95c23 6501 esac
d7040cdb
SE
6502 fi
6503 rm -rf conftest*
6504 ;;
6505*-*-irix6*)
6506 # Find out which ABI we are using.
ce3c775b 6507 echo '#line 6507 "configure"' > conftest.$ac_ext
d7040cdb
SE
6508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6509 (eval $ac_compile) 2>&5
6510 ac_status=$?
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; then
6513 if test "$lt_cv_prog_gnu_ld" = yes; then
6514 case `/usr/bin/file conftest.$ac_objext` in
6515 *32-bit*)
6516 LD="${LD-ld} -melf32bsmip"
6517 ;;
6518 *N32*)
6519 LD="${LD-ld} -melf32bmipn32"
6520 ;;
6521 *64-bit*)
6522 LD="${LD-ld} -melf64bmip"
6523 ;;
6524 esac
20e95c23 6525 else
d7040cdb
SE
6526 case `/usr/bin/file conftest.$ac_objext` in
6527 *32-bit*)
6528 LD="${LD-ld} -32"
6529 ;;
6530 *N32*)
6531 LD="${LD-ld} -n32"
6532 ;;
6533 *64-bit*)
6534 LD="${LD-ld} -64"
6535 ;;
20e95c23
DJ
6536 esac
6537 fi
d7040cdb
SE
6538 fi
6539 rm -rf conftest*
6540 ;;
20e95c23 6541
d7040cdb
SE
6542x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6543s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6544 # Find out which ABI we are using.
6545 echo 'int i;' > conftest.$ac_ext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6547 (eval $ac_compile) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; then
6551 case `/usr/bin/file conftest.o` in
6552 *32-bit*)
6553 case $host in
6554 x86_64-*kfreebsd*-gnu)
6555 LD="${LD-ld} -m elf_i386_fbsd"
6556 ;;
6557 x86_64-*linux*)
6558 LD="${LD-ld} -m elf_i386"
6559 ;;
6560 ppc64-*linux*|powerpc64-*linux*)
6561 LD="${LD-ld} -m elf32ppclinux"
6562 ;;
6563 s390x-*linux*)
6564 LD="${LD-ld} -m elf_s390"
6565 ;;
6566 sparc64-*linux*)
6567 LD="${LD-ld} -m elf32_sparc"
6568 ;;
6569 esac
6570 ;;
6571 *64-bit*)
6572 case $host in
6573 x86_64-*kfreebsd*-gnu)
6574 LD="${LD-ld} -m elf_x86_64_fbsd"
6575 ;;
6576 x86_64-*linux*)
6577 LD="${LD-ld} -m elf_x86_64"
6578 ;;
6579 ppc*-*linux*|powerpc*-*linux*)
6580 LD="${LD-ld} -m elf64ppc"
6581 ;;
6582 s390*-*linux*|s390*-*tpf*)
6583 LD="${LD-ld} -m elf64_s390"
6584 ;;
6585 sparc*-*linux*)
6586 LD="${LD-ld} -m elf64_sparc"
6587 ;;
6588 esac
6589 ;;
20e95c23
DJ
6590 esac
6591 fi
d7040cdb 6592 rm -rf conftest*
7357c5b6 6593 ;;
d7040cdb 6594
7357c5b6
AM
6595*-*-sco3.2v5*)
6596 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6597 SAVE_CFLAGS="$CFLAGS"
6598 CFLAGS="$CFLAGS -belf"
6599 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6600echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6601if test "${lt_cv_cc_needs_belf+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 6603else
7357c5b6
AM
6604 ac_ext=c
6605ac_cpp='$CPP $CPPFLAGS'
6606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6609
7357c5b6 6610 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
6611/* confdefs.h. */
6612_ACEOF
6613cat confdefs.h >>conftest.$ac_ext
6614cat >>conftest.$ac_ext <<_ACEOF
6615/* end confdefs.h. */
d7040cdb 6616
d7040cdb
SE
6617int
6618main ()
6619{
7357c5b6
AM
6620
6621 ;
6622 return 0;
d7040cdb
SE
6623}
6624_ACEOF
7357c5b6 6625rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb 6626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7357c5b6 6627 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
6628 ac_status=$?
6629 grep -v '^ *+' conftest.er1 >conftest.err
6630 rm -f conftest.er1
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } &&
7357c5b6
AM
6634 { ac_try='test -z "$ac_c_werror_flag"
6635 || test ! -s conftest.err'
d7040cdb
SE
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
7357c5b6 6641 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 (eval $ac_try) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
7357c5b6 6647 lt_cv_cc_needs_belf=yes
d7040cdb
SE
6648else
6649 echo "$as_me: failed program was:" >&5
6650sed 's/^/| /' conftest.$ac_ext >&5
6651
7357c5b6 6652lt_cv_cc_needs_belf=no
d7040cdb 6653fi
7357c5b6
AM
6654rm -f conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext conftest.$ac_ext
6656 ac_ext=c
6657ac_cpp='$CPP $CPPFLAGS'
6658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6660ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
6661
6662fi
7357c5b6
AM
6663echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6664echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6665 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6666 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6667 CFLAGS="$SAVE_CFLAGS"
6668 fi
6669 ;;
6670sparc*-*solaris*)
6671 # Find out which ABI we are using.
6672 echo 'int i;' > conftest.$ac_ext
6673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674 (eval $ac_compile) 2>&5
6675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; then
6678 case `/usr/bin/file conftest.o` in
6679 *64-bit*)
6680 case $lt_cv_prog_gnu_ld in
6681 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
6682 *)
6683 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6684 LD="${LD-ld} -64"
6685 fi
6686 ;;
7357c5b6
AM
6687 esac
6688 ;;
6689 esac
6690 fi
6691 rm -rf conftest*
6692 ;;
6693esac
d7040cdb 6694
7357c5b6 6695need_locks="$enable_libtool_lock"
d7040cdb
SE
6696
6697
718a6fd8
SE
6698 case $host_os in
6699 rhapsody* | darwin*)
6700 if test -n "$ac_tool_prefix"; then
6701 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6702set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6703echo "$as_me:$LINENO: checking for $ac_word" >&5
6704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6705if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707else
6708 if test -n "$DSYMUTIL"; then
6709 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6710else
6711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722done
6723done
6724
6725fi
6726fi
6727DSYMUTIL=$ac_cv_prog_DSYMUTIL
6728if test -n "$DSYMUTIL"; then
6729 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6730echo "${ECHO_T}$DSYMUTIL" >&6
6731else
6732 echo "$as_me:$LINENO: result: no" >&5
6733echo "${ECHO_T}no" >&6
6734fi
6735
6736fi
6737if test -z "$ac_cv_prog_DSYMUTIL"; then
6738 ac_ct_DSYMUTIL=$DSYMUTIL
6739 # Extract the first word of "dsymutil", so it can be a program name with args.
6740set dummy dsymutil; ac_word=$2
6741echo "$as_me:$LINENO: checking for $ac_word" >&5
6742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6743if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745else
6746 if test -n "$ac_ct_DSYMUTIL"; then
6747 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6748else
6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760done
6761done
6762
6763 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6764fi
6765fi
6766ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6767if test -n "$ac_ct_DSYMUTIL"; then
6768 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6769echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6770else
6771 echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6
6773fi
6774
6775 DSYMUTIL=$ac_ct_DSYMUTIL
6776else
6777 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6778fi
6779
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6782set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6783echo "$as_me:$LINENO: checking for $ac_word" >&5
6784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6785if test "${ac_cv_prog_NMEDIT+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787else
6788 if test -n "$NMEDIT"; then
6789 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6790else
6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802done
6803done
6804
6805fi
6806fi
6807NMEDIT=$ac_cv_prog_NMEDIT
6808if test -n "$NMEDIT"; then
6809 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6810echo "${ECHO_T}$NMEDIT" >&6
6811else
6812 echo "$as_me:$LINENO: result: no" >&5
6813echo "${ECHO_T}no" >&6
6814fi
6815
6816fi
6817if test -z "$ac_cv_prog_NMEDIT"; then
6818 ac_ct_NMEDIT=$NMEDIT
6819 # Extract the first word of "nmedit", so it can be a program name with args.
6820set dummy nmedit; ac_word=$2
6821echo "$as_me:$LINENO: checking for $ac_word" >&5
6822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6823if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825else
6826 if test -n "$ac_ct_NMEDIT"; then
6827 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841done
6842
6843 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6844fi
6845fi
6846ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6847if test -n "$ac_ct_NMEDIT"; then
6848 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6849echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6850else
6851 echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6
6853fi
6854
6855 NMEDIT=$ac_ct_NMEDIT
6856else
6857 NMEDIT="$ac_cv_prog_NMEDIT"
6858fi
6859
6860 if test -n "$ac_tool_prefix"; then
6861 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6862set dummy ${ac_tool_prefix}lipo; ac_word=$2
6863echo "$as_me:$LINENO: checking for $ac_word" >&5
6864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6865if test "${ac_cv_prog_LIPO+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867else
6868 if test -n "$LIPO"; then
6869 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6870else
6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882done
6883done
6884
6885fi
6886fi
6887LIPO=$ac_cv_prog_LIPO
6888if test -n "$LIPO"; then
6889 echo "$as_me:$LINENO: result: $LIPO" >&5
6890echo "${ECHO_T}$LIPO" >&6
6891else
6892 echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6
6894fi
6895
6896fi
6897if test -z "$ac_cv_prog_LIPO"; then
6898 ac_ct_LIPO=$LIPO
6899 # Extract the first word of "lipo", so it can be a program name with args.
6900set dummy lipo; ac_word=$2
6901echo "$as_me:$LINENO: checking for $ac_word" >&5
6902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6903if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905else
6906 if test -n "$ac_ct_LIPO"; then
6907 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6908else
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916 ac_cv_prog_ac_ct_LIPO="lipo"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920done
6921done
6922
6923 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6924fi
6925fi
6926ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6927if test -n "$ac_ct_LIPO"; then
6928 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6929echo "${ECHO_T}$ac_ct_LIPO" >&6
6930else
6931 echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6
6933fi
6934
6935 LIPO=$ac_ct_LIPO
6936else
6937 LIPO="$ac_cv_prog_LIPO"
6938fi
6939
6940 if test -n "$ac_tool_prefix"; then
6941 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6942set dummy ${ac_tool_prefix}otool; ac_word=$2
6943echo "$as_me:$LINENO: checking for $ac_word" >&5
6944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6945if test "${ac_cv_prog_OTOOL+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6947else
6948 if test -n "$OTOOL"; then
6949 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6950else
6951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962done
6963done
6964
6965fi
6966fi
6967OTOOL=$ac_cv_prog_OTOOL
6968if test -n "$OTOOL"; then
6969 echo "$as_me:$LINENO: result: $OTOOL" >&5
6970echo "${ECHO_T}$OTOOL" >&6
6971else
6972 echo "$as_me:$LINENO: result: no" >&5
6973echo "${ECHO_T}no" >&6
6974fi
6975
6976fi
6977if test -z "$ac_cv_prog_OTOOL"; then
6978 ac_ct_OTOOL=$OTOOL
6979 # Extract the first word of "otool", so it can be a program name with args.
6980set dummy otool; ac_word=$2
6981echo "$as_me:$LINENO: checking for $ac_word" >&5
6982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6983if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985else
6986 if test -n "$ac_ct_OTOOL"; then
6987 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_ac_ct_OTOOL="otool"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000done
7001done
7002
7003 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7004fi
7005fi
7006ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7007if test -n "$ac_ct_OTOOL"; then
7008 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7009echo "${ECHO_T}$ac_ct_OTOOL" >&6
7010else
7011 echo "$as_me:$LINENO: result: no" >&5
7012echo "${ECHO_T}no" >&6
7013fi
7014
7015 OTOOL=$ac_ct_OTOOL
7016else
7017 OTOOL="$ac_cv_prog_OTOOL"
7018fi
7019
7020 if test -n "$ac_tool_prefix"; then
7021 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7022set dummy ${ac_tool_prefix}otool64; ac_word=$2
7023echo "$as_me:$LINENO: checking for $ac_word" >&5
7024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7025if test "${ac_cv_prog_OTOOL64+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7027else
7028 if test -n "$OTOOL64"; then
7029 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7041 fi
7042done
7043done
7044
7045fi
7046fi
7047OTOOL64=$ac_cv_prog_OTOOL64
7048if test -n "$OTOOL64"; then
7049 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7050echo "${ECHO_T}$OTOOL64" >&6
7051else
7052 echo "$as_me:$LINENO: result: no" >&5
7053echo "${ECHO_T}no" >&6
7054fi
7055
7056fi
7057if test -z "$ac_cv_prog_OTOOL64"; then
7058 ac_ct_OTOOL64=$OTOOL64
7059 # Extract the first word of "otool64", so it can be a program name with args.
7060set dummy otool64; ac_word=$2
7061echo "$as_me:$LINENO: checking for $ac_word" >&5
7062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7063if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065else
7066 if test -n "$ac_ct_OTOOL64"; then
7067 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_ac_ct_OTOOL64="otool64"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080done
7081done
7082
7083 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7084fi
7085fi
7086ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7087if test -n "$ac_ct_OTOOL64"; then
7088 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7089echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7090else
7091 echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6
7093fi
7094
7095 OTOOL64=$ac_ct_OTOOL64
7096else
7097 OTOOL64="$ac_cv_prog_OTOOL64"
7098fi
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7127echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7128if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130else
7131 lt_cv_apple_cc_single_mod=no
7132 if test -z "${LT_MULTI_MODULE}"; then
7133 # By default we will add the -single_module flag. You can override
7134 # by either setting the environment variable LT_MULTI_MODULE
7135 # non-empty at configure time, or by adding -multi_module to the
7136 # link flags.
7137 rm -rf libconftest.dylib*
7138 echo "int foo(void){return 1;}" > conftest.c
7139 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7140-dynamiclib -Wl,-single_module conftest.c" >&5
7141 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7142 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7143 _lt_result=$?
7144 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7145 lt_cv_apple_cc_single_mod=yes
7146 else
7147 cat conftest.err >&5
7148 fi
7149 rm -rf libconftest.dylib*
7150 rm -f conftest.*
7151 fi
7152fi
7153echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7154echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7155 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7156echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7157if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159else
7160 lt_cv_ld_exported_symbols_list=no
7161 save_LDFLAGS=$LDFLAGS
7162 echo "_main" > conftest.sym
7163 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7164 cat >conftest.$ac_ext <<_ACEOF
7165/* confdefs.h. */
7166_ACEOF
7167cat confdefs.h >>conftest.$ac_ext
7168cat >>conftest.$ac_ext <<_ACEOF
7169/* end confdefs.h. */
7170
7171int
7172main ()
7173{
7174
7175 ;
7176 return 0;
7177}
7178_ACEOF
7179rm -f conftest.$ac_objext conftest$ac_exeext
7180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7181 (eval $ac_link) 2>conftest.er1
7182 ac_status=$?
7183 grep -v '^ *+' conftest.er1 >conftest.err
7184 rm -f conftest.er1
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } &&
7188 { ac_try='test -z "$ac_c_werror_flag"
7189 || test ! -s conftest.err'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; } &&
7195 { ac_try='test -s conftest$ac_exeext'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 (eval $ac_try) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; }; then
7201 lt_cv_ld_exported_symbols_list=yes
7202else
7203 echo "$as_me: failed program was:" >&5
7204sed 's/^/| /' conftest.$ac_ext >&5
7205
7206lt_cv_ld_exported_symbols_list=no
7207fi
7208rm -f conftest.err conftest.$ac_objext \
7209 conftest$ac_exeext conftest.$ac_ext
7210 LDFLAGS="$save_LDFLAGS"
7211
7212fi
7213echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7214echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7215 case $host_os in
7216 rhapsody* | darwin1.[012])
7217 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7218 darwin1.*)
7219 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7220 darwin*) # darwin 5.x on
7221 # if running on 10.5 or later, the deployment target defaults
7222 # to the OS version, if on x86, and 10.4, the deployment
7223 # target defaults to 10.4. Don't you love it?
7224 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7225 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7226 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7227 10.[012]*)
7228 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7229 10.*)
7230 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7231 esac
7232 ;;
7233 esac
7234 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7235 _lt_dar_single_mod='$single_module'
7236 fi
7237 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7238 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7239 else
7240 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7241 fi
7242 if test "$DSYMUTIL" != ":"; then
7243 _lt_dsymutil='~$DSYMUTIL $lib || :'
7244 else
7245 _lt_dsymutil=
7246 fi
7247 ;;
7248 esac
7249
7250
d7040cdb
SE
7251for ac_header in dlfcn.h
7252do
7253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7254echo "$as_me:$LINENO: checking for $ac_header" >&5
7255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7256if eval "test \"\${$as_ac_Header+set}\" = set"; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258else
7259 cat >conftest.$ac_ext <<_ACEOF
7260/* confdefs.h. */
7261_ACEOF
7262cat confdefs.h >>conftest.$ac_ext
7263cat >>conftest.$ac_ext <<_ACEOF
7264/* end confdefs.h. */
7265$ac_includes_default
7266
7267#include <$ac_header>
7268_ACEOF
7269rm -f conftest.$ac_objext
7270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7271 (eval $ac_compile) 2>conftest.er1
7272 ac_status=$?
7273 grep -v '^ *+' conftest.er1 >conftest.err
7274 rm -f conftest.er1
7275 cat conftest.err >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7357c5b6
AM
7278 { ac_try='test -z "$ac_c_werror_flag"
7279 || test ! -s conftest.err'
d7040cdb
SE
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; } &&
7285 { ac_try='test -s conftest.$ac_objext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 eval "$as_ac_Header=yes"
7292else
7293 echo "$as_me: failed program was:" >&5
7294sed 's/^/| /' conftest.$ac_ext >&5
7295
7296eval "$as_ac_Header=no"
7297fi
7298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299fi
7300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7302if test `eval echo '${'$as_ac_Header'}'` = yes; then
7303 cat >>confdefs.h <<_ACEOF
7304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7305_ACEOF
7306
7307fi
7308
7309done
7310
7311
7312
718a6fd8 7313# Set options
ce3c775b 7314enable_dlopen=yes
718a6fd8
SE
7315
7316
7317
718a6fd8
SE
7318
7319 enable_win32_dll=no
7320
7321
7322
7323 # Check whether --enable-static or --disable-static was given.
7324if test "${enable_static+set}" = set; then
7325 enableval="$enable_static"
7326 p=${PACKAGE-default}
7327 case $enableval in
7328 yes) enable_static=yes ;;
7329 no) enable_static=no ;;
7330 *)
7331 enable_static=no
7332 # Look at the argument we got. We use all the common list separators.
7333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7334 for pkg in $enableval; do
7335 IFS="$lt_save_ifs"
7336 if test "X$pkg" = "X$p"; then
7337 enable_static=yes
7338 fi
7339 done
7340 IFS="$lt_save_ifs"
7341 ;;
7342 esac
7343else
7344 enable_static=yes
7345fi;
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355# Check whether --with-pic or --without-pic was given.
7356if test "${with_pic+set}" = set; then
7357 withval="$with_pic"
7358 pic_mode="$withval"
7359else
7360 pic_mode=default
7361fi;
7362
7363test -z "$pic_mode" && pic_mode=default
7364
7365
7366
7367
7368
7369
7370
7371 # Check whether --enable-fast-install or --disable-fast-install was given.
7372if test "${enable_fast_install+set}" = set; then
7373 enableval="$enable_fast_install"
7374 p=${PACKAGE-default}
7375 case $enableval in
7376 yes) enable_fast_install=yes ;;
7377 no) enable_fast_install=no ;;
7378 *)
7379 enable_fast_install=no
7380 # Look at the argument we got. We use all the common list separators.
7381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7382 for pkg in $enableval; do
7383 IFS="$lt_save_ifs"
7384 if test "X$pkg" = "X$p"; then
7385 enable_fast_install=yes
7386 fi
7387 done
7388 IFS="$lt_save_ifs"
7389 ;;
7390 esac
7391else
7392 enable_fast_install=yes
7393fi;
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
d7040cdb
SE
7404# This can be used to rebuild libtool when needed
7405LIBTOOL_DEPS="$ltmain"
7406
7407# Always use our own libtool.
7408LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434test -z "$LN_S" && LN_S="ln -s"
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449if test -n "${ZSH_VERSION+set}" ; then
7450 setopt NO_GLOB_SUBST
7451fi
7452
7453echo "$as_me:$LINENO: checking for objdir" >&5
7454echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7455if test "${lt_cv_objdir+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457else
7458 rm -f .libs 2>/dev/null
7459mkdir .libs 2>/dev/null
7460if test -d .libs; then
7461 lt_cv_objdir=.libs
7462else
7463 # MS-DOS does not allow filenames that begin with a dot.
7464 lt_cv_objdir=_libs
7465fi
7466rmdir .libs 2>/dev/null
7467fi
7468echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7469echo "${ECHO_T}$lt_cv_objdir" >&6
7470objdir=$lt_cv_objdir
7471
7472
7473
7474
7475
7476cat >>confdefs.h <<_ACEOF
7477#define LT_OBJDIR "$lt_cv_objdir/"
7478_ACEOF
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496case $host_os in
7497aix3*)
7498 # AIX sometimes has problems with the GCC collect2 program. For some
7499 # reason, if we set the COLLECT_NAMES environment variable, the problems
7500 # vanish in a puff of smoke.
7501 if test "X${COLLECT_NAMES+set}" != Xset; then
7502 COLLECT_NAMES=
7503 export COLLECT_NAMES
7504 fi
7505 ;;
7506esac
7507
7508# Sed substitution that helps us do robust quoting. It backslashifies
7509# metacharacters that are still active within double-quoted strings.
7510sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7511
7512# Same as above, but do not quote variable references.
7513double_quote_subst='s/\(["`\\]\)/\\\1/g'
7514
7515# Sed substitution to delay expansion of an escaped shell variable in a
7516# double_quote_subst'ed string.
7517delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7518
7519# Sed substitution to delay expansion of an escaped single quote.
7520delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7521
7522# Sed substitution to avoid accidental globbing in evaled expressions
7523no_glob_subst='s/\*/\\\*/g'
7524
7525# Global variables:
7526ofile=libtool
7527can_build_shared=yes
7528
7529# All known linkers require a `.a' archive for static linking (except MSVC,
7530# which needs '.lib').
7531libext=a
7532
7533with_gnu_ld="$lt_cv_prog_gnu_ld"
7534
7535old_CC="$CC"
7536old_CFLAGS="$CFLAGS"
7537
7538# Set sane defaults for various variables
7539test -z "$CC" && CC=cc
7540test -z "$LTCC" && LTCC=$CC
7541test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7542test -z "$LD" && LD=ld
7543test -z "$ac_objext" && ac_objext=o
7544
7545for cc_temp in $compiler""; do
7546 case $cc_temp in
7547 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7548 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7549 \-*) ;;
7550 *) break;;
7551 esac
7552done
7553cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7554
7555
7556# Only perform the check for file, if the check method requires it
7557test -z "$MAGIC_CMD" && MAGIC_CMD=file
7558case $deplibs_check_method in
7559file_magic*)
7560 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7561 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7562echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7563if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7565else
7566 case $MAGIC_CMD in
7567[\\/*] | ?:[\\/]*)
7568 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7569 ;;
7570*)
7571 lt_save_MAGIC_CMD="$MAGIC_CMD"
7572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7573 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7574 for ac_dir in $ac_dummy; do
7575 IFS="$lt_save_ifs"
7576 test -z "$ac_dir" && ac_dir=.
7577 if test -f $ac_dir/${ac_tool_prefix}file; then
7578 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7579 if test -n "$file_magic_test_file"; then
7580 case $deplibs_check_method in
7581 "file_magic "*)
7582 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7584 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7585 $EGREP "$file_magic_regex" > /dev/null; then
7586 :
7587 else
7588 cat <<_LT_EOF 1>&2
7589
7590*** Warning: the command libtool uses to detect shared libraries,
7591*** $file_magic_cmd, produces output that libtool cannot recognize.
7592*** The result is that libtool may fail to recognize shared libraries
7593*** as such. This will affect the creation of libtool libraries that
7594*** depend on shared libraries, but programs linked with such libtool
7595*** libraries will work regardless of this problem. Nevertheless, you
7596*** may want to report the problem to your system manager and/or to
7597*** bug-libtool@gnu.org
7598
7599_LT_EOF
7600 fi ;;
7601 esac
7602 fi
7603 break
7604 fi
7605 done
7606 IFS="$lt_save_ifs"
7607 MAGIC_CMD="$lt_save_MAGIC_CMD"
7608 ;;
7609esac
7610fi
7611
7612MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7613if test -n "$MAGIC_CMD"; then
7614 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7615echo "${ECHO_T}$MAGIC_CMD" >&6
7616else
7617 echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6
7619fi
7620
7621
7622
7623
7624
7625if test -z "$lt_cv_path_MAGIC_CMD"; then
7626 if test -n "$ac_tool_prefix"; then
7627 echo "$as_me:$LINENO: checking for file" >&5
7628echo $ECHO_N "checking for file... $ECHO_C" >&6
7629if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631else
7632 case $MAGIC_CMD in
7633[\\/*] | ?:[\\/]*)
7634 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7635 ;;
7636*)
7637 lt_save_MAGIC_CMD="$MAGIC_CMD"
7638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7639 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7640 for ac_dir in $ac_dummy; do
7641 IFS="$lt_save_ifs"
7642 test -z "$ac_dir" && ac_dir=.
7643 if test -f $ac_dir/file; then
7644 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7645 if test -n "$file_magic_test_file"; then
7646 case $deplibs_check_method in
7647 "file_magic "*)
7648 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7649 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7650 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7651 $EGREP "$file_magic_regex" > /dev/null; then
7652 :
7653 else
7654 cat <<_LT_EOF 1>&2
7655
7656*** Warning: the command libtool uses to detect shared libraries,
7657*** $file_magic_cmd, produces output that libtool cannot recognize.
7658*** The result is that libtool may fail to recognize shared libraries
7659*** as such. This will affect the creation of libtool libraries that
7660*** depend on shared libraries, but programs linked with such libtool
7661*** libraries will work regardless of this problem. Nevertheless, you
7662*** may want to report the problem to your system manager and/or to
7663*** bug-libtool@gnu.org
7664
7665_LT_EOF
7666 fi ;;
7667 esac
7668 fi
7669 break
7670 fi
7671 done
7672 IFS="$lt_save_ifs"
7673 MAGIC_CMD="$lt_save_MAGIC_CMD"
7674 ;;
7675esac
7676fi
7677
7678MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7679if test -n "$MAGIC_CMD"; then
7680 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7681echo "${ECHO_T}$MAGIC_CMD" >&6
7682else
7683 echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6
7685fi
7686
7687
7688 else
7689 MAGIC_CMD=:
7690 fi
7691fi
7692
7693 fi
7694 ;;
7695esac
7696
7697# Use C for the default configuration in the libtool script
7698
7699lt_save_CC="$CC"
7700ac_ext=c
7701ac_cpp='$CPP $CPPFLAGS'
7702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705
7706
7707# Source file extension for C test sources.
7708ac_ext=c
7709
7710# Object file extension for compiled C test sources.
7711objext=o
7712objext=$objext
7713
7714# Code to be used in simple compile tests
7715lt_simple_compile_test_code="int some_variable = 0;"
7716
7717# Code to be used in simple link tests
7718lt_simple_link_test_code='int main(){return(0);}'
7719
7720
7721
7722
7723
7724
7725
7726# If no C compiler was specified, use CC.
7727LTCC=${LTCC-"$CC"}
7728
7729# If no C compiler flags were specified, use CFLAGS.
7730LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7731
7732# Allow CC to be a program name with arguments.
7733compiler=$CC
7734
7735# Save the default compiler, since it gets overwritten when the other
7736# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7737compiler_DEFAULT=$CC
7738
7739# save warnings/boilerplate of simple test code
7740ac_outfile=conftest.$ac_objext
7741echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7742eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7743_lt_compiler_boilerplate=`cat conftest.err`
7744$RM conftest*
7745
7746ac_outfile=conftest.$ac_objext
7747echo "$lt_simple_link_test_code" >conftest.$ac_ext
7748eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7749_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7750$RM -r conftest*
d7040cdb
SE
7751
7752
7753## CAVEAT EMPTOR:
7754## There is no encapsulation within the following macros, do not change
7755## the running order or otherwise move them around unless you know exactly
7756## what you are doing...
7757if test -n "$compiler"; then
7758
7759lt_prog_compiler_no_builtin_flag=
7760
7761if test "$GCC" = yes; then
7762 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7763
7764 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7765echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7766if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7768else
7769 lt_cv_prog_compiler_rtti_exceptions=no
7770 ac_outfile=conftest.$ac_objext
7771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7772 lt_compiler_flag="-fno-rtti -fno-exceptions"
7773 # Insert the option either (1) after the last *FLAGS variable, or
7774 # (2) before a word containing "conftest.", or (3) at the end.
7775 # Note that $ac_compile itself does not contain backslashes and begins
7776 # with a dollar sign (not a hyphen), so the echo should work correctly.
7777 # The option is referenced via a variable to avoid confusing sed.
7778 lt_compile=`echo "$ac_compile" | $SED \
7779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7781 -e 's:$: $lt_compiler_flag:'`
ce3c775b 7782 (eval echo "\"\$as_me:7782: $lt_compile\"" >&5)
d7040cdb
SE
7783 (eval "$lt_compile" 2>conftest.err)
7784 ac_status=$?
7785 cat conftest.err >&5
ce3c775b 7786 echo "$as_me:7786: \$? = $ac_status" >&5
d7040cdb
SE
7787 if (exit $ac_status) && test -s "$ac_outfile"; then
7788 # The compiler can only warn and ignore the option if not recognized
7789 # So say no if there are warnings other than the usual output.
7790 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7793 lt_cv_prog_compiler_rtti_exceptions=yes
7794 fi
7795 fi
7796 $RM conftest*
7797
7798fi
7799echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7800echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7801
7802if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7803 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7804else
7805 :
7806fi
7807
7808fi
7809
7810
7811
7812
7813
7814
7815 lt_prog_compiler_wl=
7816lt_prog_compiler_pic=
7817lt_prog_compiler_static=
7818
7819echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7820echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7821
7822 if test "$GCC" = yes; then
7823 lt_prog_compiler_wl='-Wl,'
7824 lt_prog_compiler_static='-static'
7825
7826 case $host_os in
7827 aix*)
7828 # All AIX code is PIC.
7829 if test "$host_cpu" = ia64; then
7830 # AIX 5 now supports IA64 processor
7831 lt_prog_compiler_static='-Bstatic'
7832 fi
7833 ;;
7834
7835 amigaos*)
718a6fd8
SE
7836 case $host_cpu in
7837 powerpc)
7838 # see comment about AmigaOS4 .so support
7839 lt_prog_compiler_pic='-fPIC'
7840 ;;
7841 m68k)
7842 # FIXME: we need at least 68020 code to build shared libraries, but
7843 # adding the `-m68020' flag to GCC prevents building anything better,
7844 # like `-m68040'.
7845 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7846 ;;
7847 esac
d7040cdb
SE
7848 ;;
7849
7850 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7851 # PIC is the default for these OSes.
7852 ;;
7853
718a6fd8 7854 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
7855 # This hack is so that the source file can tell whether it is being
7856 # built for inclusion in a dll (and should export symbols for example).
7857 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7858 # (--disable-auto-import) libraries
7859 lt_prog_compiler_pic='-DDLL_EXPORT'
7860 ;;
7861
7862 darwin* | rhapsody*)
7863 # PIC is the default on this platform
7864 # Common symbols not allowed in MH_DYLIB files
7865 lt_prog_compiler_pic='-fno-common'
7866 ;;
7867
7868 hpux*)
718a6fd8
SE
7869 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7870 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7871 # sets the default TLS model and affects inlining.
d7040cdb 7872 case $host_cpu in
718a6fd8 7873 hppa*64*)
d7040cdb
SE
7874 # +Z the default
7875 ;;
7876 *)
7877 lt_prog_compiler_pic='-fPIC'
7878 ;;
7879 esac
7880 ;;
7881
7882 interix[3-9]*)
7883 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7884 # Instead, we relocate shared libraries at runtime.
7885 ;;
7886
7887 msdosdjgpp*)
7888 # Just because we use GCC doesn't mean we suddenly get shared libraries
7889 # on systems that don't support them.
7890 lt_prog_compiler_can_build_shared=no
7891 enable_shared=no
7892 ;;
7893
7894 *nto* | *qnx*)
7895 # QNX uses GNU C++, but need to define -shared option too, otherwise
7896 # it will coredump.
7897 lt_prog_compiler_pic='-fPIC -shared'
7898 ;;
7899
7900 sysv4*MP*)
7901 if test -d /usr/nec; then
7902 lt_prog_compiler_pic=-Kconform_pic
7903 fi
7904 ;;
7905
7906 *)
7907 lt_prog_compiler_pic='-fPIC'
7908 ;;
7909 esac
7910 else
7911 # PORTME Check for flag to pass linker flags through the system compiler.
7912 case $host_os in
7913 aix*)
7914 lt_prog_compiler_wl='-Wl,'
7915 if test "$host_cpu" = ia64; then
7916 # AIX 5 now supports IA64 processor
7917 lt_prog_compiler_static='-Bstatic'
7918 else
7919 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7920 fi
7921 ;;
d7040cdb 7922
718a6fd8 7923 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
7924 # This hack is so that the source file can tell whether it is being
7925 # built for inclusion in a dll (and should export symbols for example).
7926 lt_prog_compiler_pic='-DDLL_EXPORT'
7927 ;;
7928
7929 hpux9* | hpux10* | hpux11*)
7930 lt_prog_compiler_wl='-Wl,'
7931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7932 # not for PA HP-UX.
7933 case $host_cpu in
7934 hppa*64*|ia64*)
7935 # +Z the default
7936 ;;
7937 *)
7938 lt_prog_compiler_pic='+Z'
7939 ;;
7940 esac
7941 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7942 lt_prog_compiler_static='${wl}-a ${wl}archive'
7943 ;;
7944
7945 irix5* | irix6* | nonstopux*)
7946 lt_prog_compiler_wl='-Wl,'
7947 # PIC (with -KPIC) is the default.
7948 lt_prog_compiler_static='-non_shared'
7949 ;;
7950
58e24671 7951 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 7952 case $cc_basename in
718a6fd8
SE
7953 # old Intel for x86_64 which still supported -KPIC.
7954 ecc*)
d7040cdb
SE
7955 lt_prog_compiler_wl='-Wl,'
7956 lt_prog_compiler_pic='-KPIC'
7957 lt_prog_compiler_static='-static'
7958 ;;
718a6fd8
SE
7959 # icc used to be incompatible with GCC.
7960 # ICC 10 doesn't accept -KPIC any more.
7961 icc* | ifort*)
7962 lt_prog_compiler_wl='-Wl,'
7963 lt_prog_compiler_pic='-fPIC'
7964 lt_prog_compiler_static='-static'
7965 ;;
7966 # Lahey Fortran 8.1.
7967 lf95*)
7968 lt_prog_compiler_wl='-Wl,'
7969 lt_prog_compiler_pic='--shared'
7970 lt_prog_compiler_static='--static'
7971 ;;
d7040cdb
SE
7972 pgcc* | pgf77* | pgf90* | pgf95*)
7973 # Portland Group compilers (*not* the Pentium gcc compiler,
7974 # which looks to be a dead project)
7975 lt_prog_compiler_wl='-Wl,'
7976 lt_prog_compiler_pic='-fpic'
7977 lt_prog_compiler_static='-Bstatic'
7978 ;;
7979 ccc*)
7980 lt_prog_compiler_wl='-Wl,'
7981 # All Alpha code is PIC.
7982 lt_prog_compiler_static='-non_shared'
7983 ;;
718a6fd8
SE
7984 xl*)
7985 # IBM XL C 8.0/Fortran 10.1 on PPC
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='-qpic'
7988 lt_prog_compiler_static='-qstaticlink'
7989 ;;
d7040cdb
SE
7990 *)
7991 case `$CC -V 2>&1 | sed 5q` in
7992 *Sun\ C*)
7993 # Sun C 5.9
7994 lt_prog_compiler_pic='-KPIC'
7995 lt_prog_compiler_static='-Bstatic'
7996 lt_prog_compiler_wl='-Wl,'
7997 ;;
7998 *Sun\ F*)
7999 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8000 lt_prog_compiler_pic='-KPIC'
8001 lt_prog_compiler_static='-Bstatic'
8002 lt_prog_compiler_wl=''
8003 ;;
8004 esac
8005 ;;
8006 esac
8007 ;;
8008
8009 newsos6)
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8012 ;;
8013
8014 *nto* | *qnx*)
8015 # QNX uses GNU C++, but need to define -shared option too, otherwise
8016 # it will coredump.
8017 lt_prog_compiler_pic='-fPIC -shared'
8018 ;;
8019
8020 osf3* | osf4* | osf5*)
8021 lt_prog_compiler_wl='-Wl,'
8022 # All OSF/1 code is PIC.
8023 lt_prog_compiler_static='-non_shared'
8024 ;;
8025
8026 rdos*)
8027 lt_prog_compiler_static='-non_shared'
8028 ;;
8029
8030 solaris*)
8031 lt_prog_compiler_pic='-KPIC'
8032 lt_prog_compiler_static='-Bstatic'
8033 case $cc_basename in
8034 f77* | f90* | f95*)
8035 lt_prog_compiler_wl='-Qoption ld ';;
8036 *)
8037 lt_prog_compiler_wl='-Wl,';;
8038 esac
8039 ;;
8040
8041 sunos4*)
8042 lt_prog_compiler_wl='-Qoption ld '
8043 lt_prog_compiler_pic='-PIC'
8044 lt_prog_compiler_static='-Bstatic'
8045 ;;
8046
8047 sysv4 | sysv4.2uw2* | sysv4.3*)
8048 lt_prog_compiler_wl='-Wl,'
8049 lt_prog_compiler_pic='-KPIC'
8050 lt_prog_compiler_static='-Bstatic'
8051 ;;
8052
8053 sysv4*MP*)
8054 if test -d /usr/nec ;then
8055 lt_prog_compiler_pic='-Kconform_pic'
8056 lt_prog_compiler_static='-Bstatic'
8057 fi
8058 ;;
8059
8060 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8061 lt_prog_compiler_wl='-Wl,'
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-Bstatic'
8064 ;;
8065
8066 unicos*)
8067 lt_prog_compiler_wl='-Wl,'
8068 lt_prog_compiler_can_build_shared=no
8069 ;;
8070
8071 uts4*)
8072 lt_prog_compiler_pic='-pic'
8073 lt_prog_compiler_static='-Bstatic'
8074 ;;
8075
8076 *)
8077 lt_prog_compiler_can_build_shared=no
8078 ;;
8079 esac
8080 fi
8081
8082case $host_os in
8083 # For platforms which do not support PIC, -DPIC is meaningless:
8084 *djgpp*)
8085 lt_prog_compiler_pic=
8086 ;;
8087 *)
8088 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8089 ;;
8090esac
8091echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8092echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8093
8094
8095
8096
8097
8098
8099#
8100# Check to make sure the PIC flag actually works.
8101#
8102if test -n "$lt_prog_compiler_pic"; then
8103 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8104echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
718a6fd8 8105if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
d7040cdb
SE
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8107else
718a6fd8 8108 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8109 ac_outfile=conftest.$ac_objext
8110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8111 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8112 # Insert the option either (1) after the last *FLAGS variable, or
8113 # (2) before a word containing "conftest.", or (3) at the end.
8114 # Note that $ac_compile itself does not contain backslashes and begins
8115 # with a dollar sign (not a hyphen), so the echo should work correctly.
8116 # The option is referenced via a variable to avoid confusing sed.
8117 lt_compile=`echo "$ac_compile" | $SED \
8118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8120 -e 's:$: $lt_compiler_flag:'`
ce3c775b 8121 (eval echo "\"\$as_me:8121: $lt_compile\"" >&5)
d7040cdb
SE
8122 (eval "$lt_compile" 2>conftest.err)
8123 ac_status=$?
8124 cat conftest.err >&5
ce3c775b 8125 echo "$as_me:8125: \$? = $ac_status" >&5
d7040cdb
SE
8126 if (exit $ac_status) && test -s "$ac_outfile"; then
8127 # The compiler can only warn and ignore the option if not recognized
8128 # So say no if there are warnings other than the usual output.
8129 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8132 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8133 fi
8134 fi
8135 $RM conftest*
8136
8137fi
718a6fd8
SE
8138echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8139echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
d7040cdb 8140
718a6fd8 8141if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8142 case $lt_prog_compiler_pic in
8143 "" | " "*) ;;
8144 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8145 esac
8146else
8147 lt_prog_compiler_pic=
8148 lt_prog_compiler_can_build_shared=no
8149fi
8150
8151fi
8152
8153
8154
8155
8156
8157
8158#
8159# Check to make sure the static flag actually works.
8160#
8161wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8162echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8163echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
718a6fd8 8164if test "${lt_cv_prog_compiler_static_works+set}" = set; then
d7040cdb
SE
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8166else
718a6fd8 8167 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8168 save_LDFLAGS="$LDFLAGS"
8169 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8170 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8171 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8172 # The linker can only warn and ignore the option if not recognized
8173 # So say no if there are warnings
8174 if test -s conftest.err; then
8175 # Append any errors to the config.log.
8176 cat conftest.err 1>&5
8177 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8179 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8180 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8181 fi
8182 else
718a6fd8 8183 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8184 fi
8185 fi
718a6fd8 8186 $RM -r conftest*
d7040cdb
SE
8187 LDFLAGS="$save_LDFLAGS"
8188
8189fi
718a6fd8
SE
8190echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8191echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
d7040cdb 8192
718a6fd8 8193if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8194 :
8195else
8196 lt_prog_compiler_static=
8197fi
8198
8199
8200
8201
8202
8203
8204
8205 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8206echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8207if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209else
8210 lt_cv_prog_compiler_c_o=no
8211 $RM -r conftest 2>/dev/null
8212 mkdir conftest
8213 cd conftest
8214 mkdir out
8215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8216
8217 lt_compiler_flag="-o out/conftest2.$ac_objext"
8218 # Insert the option either (1) after the last *FLAGS variable, or
8219 # (2) before a word containing "conftest.", or (3) at the end.
8220 # Note that $ac_compile itself does not contain backslashes and begins
8221 # with a dollar sign (not a hyphen), so the echo should work correctly.
8222 lt_compile=`echo "$ac_compile" | $SED \
8223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8225 -e 's:$: $lt_compiler_flag:'`
ce3c775b 8226 (eval echo "\"\$as_me:8226: $lt_compile\"" >&5)
d7040cdb
SE
8227 (eval "$lt_compile" 2>out/conftest.err)
8228 ac_status=$?
8229 cat out/conftest.err >&5
ce3c775b 8230 echo "$as_me:8230: \$? = $ac_status" >&5
d7040cdb
SE
8231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8232 then
8233 # The compiler can only warn and ignore the option if not recognized
8234 # So say no if there are warnings
8235 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8238 lt_cv_prog_compiler_c_o=yes
8239 fi
8240 fi
8241 chmod u+w . 2>&5
8242 $RM conftest*
8243 # SGI C++ compiler will create directory out/ii_files/ for
8244 # template instantiation
8245 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8246 $RM out/* && rmdir out
8247 cd ..
8248 $RM -r conftest
8249 $RM conftest*
8250
8251fi
8252echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8253echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8254
8255
8256
8257
8258
8259
8260 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8261echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8262if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8264else
8265 lt_cv_prog_compiler_c_o=no
8266 $RM -r conftest 2>/dev/null
8267 mkdir conftest
8268 cd conftest
8269 mkdir out
8270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8271
8272 lt_compiler_flag="-o out/conftest2.$ac_objext"
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 lt_compile=`echo "$ac_compile" | $SED \
8278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280 -e 's:$: $lt_compiler_flag:'`
ce3c775b 8281 (eval echo "\"\$as_me:8281: $lt_compile\"" >&5)
d7040cdb
SE
8282 (eval "$lt_compile" 2>out/conftest.err)
8283 ac_status=$?
8284 cat out/conftest.err >&5
ce3c775b 8285 echo "$as_me:8285: \$? = $ac_status" >&5
d7040cdb
SE
8286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8287 then
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings
8290 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8293 lt_cv_prog_compiler_c_o=yes
8294 fi
8295 fi
8296 chmod u+w . 2>&5
8297 $RM conftest*
8298 # SGI C++ compiler will create directory out/ii_files/ for
8299 # template instantiation
8300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8301 $RM out/* && rmdir out
8302 cd ..
8303 $RM -r conftest
8304 $RM conftest*
8305
8306fi
8307echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8308echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8309
8310
8311
8312
8313hard_links="nottested"
8314if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8315 # do not overwrite the value of need_locks provided by the user
8316 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8317echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8318 hard_links=yes
8319 $RM conftest*
8320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8321 touch conftest.a
8322 ln conftest.a conftest.b 2>&5 || hard_links=no
8323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8324 echo "$as_me:$LINENO: result: $hard_links" >&5
8325echo "${ECHO_T}$hard_links" >&6
8326 if test "$hard_links" = no; then
8327 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8328echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8329 need_locks=warn
8330 fi
8331else
8332 need_locks=no
8333fi
8334
8335
8336
8337
8338
8339
8340 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8341echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8342
8343 runpath_var=
8344 allow_undefined_flag=
8345 always_export_symbols=no
8346 archive_cmds=
8347 archive_expsym_cmds=
8348 compiler_needs_object=no
8349 enable_shared_with_static_runtimes=no
8350 export_dynamic_flag_spec=
8351 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8352 hardcode_automatic=no
8353 hardcode_direct=no
8354 hardcode_direct_absolute=no
8355 hardcode_libdir_flag_spec=
8356 hardcode_libdir_flag_spec_ld=
8357 hardcode_libdir_separator=
8358 hardcode_minus_L=no
8359 hardcode_shlibpath_var=unsupported
8360 inherit_rpath=no
8361 link_all_deplibs=unknown
8362 module_cmds=
8363 module_expsym_cmds=
8364 old_archive_from_new_cmds=
8365 old_archive_from_expsyms_cmds=
8366 thread_safe_flag_spec=
8367 whole_archive_flag_spec=
8368 # include_expsyms should be a list of space-separated symbols to be *always*
8369 # included in the symbol list
8370 include_expsyms=
8371 # exclude_expsyms can be an extended regexp of symbols to exclude
8372 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8374 # as well as any symbol that contains `d'.
718a6fd8 8375 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8377 # platforms (ab)use it in PIC code, but their linkers get confused if
8378 # the symbol is explicitly referenced. Since portable code cannot
8379 # rely on this symbol name, it's probably fine to never include it in
8380 # preloaded symbol tables.
718a6fd8 8381 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8382 extract_expsyms_cmds=
8383
8384 case $host_os in
718a6fd8 8385 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8386 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8387 # When not using gcc, we currently assume that we are using
8388 # Microsoft Visual C++.
8389 if test "$GCC" != yes; then
8390 with_gnu_ld=no
8391 fi
8392 ;;
8393 interix*)
8394 # we just hope/assume this is gcc and not c89 (= MSVC++)
8395 with_gnu_ld=yes
8396 ;;
8397 openbsd*)
8398 with_gnu_ld=no
8399 ;;
8400 esac
8401
8402 ld_shlibs=yes
8403 if test "$with_gnu_ld" = yes; then
8404 # If archive_cmds runs LD, not CC, wlarc should be empty
8405 wlarc='${wl}'
8406
8407 # Set some defaults for GNU ld with shared library support. These
8408 # are reset later if shared libraries are not supported. Putting them
8409 # here allows them to be overridden if necessary.
8410 runpath_var=LD_RUN_PATH
8411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8412 export_dynamic_flag_spec='${wl}--export-dynamic'
8413 # ancient GNU ld didn't support --whole-archive et. al.
8414 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8415 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8416 else
8417 whole_archive_flag_spec=
8418 fi
8419 supports_anon_versioning=no
8420 case `$LD -v 2>&1` in
8421 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8422 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8423 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8424 *\ 2.11.*) ;; # other 2.11 versions
8425 *) supports_anon_versioning=yes ;;
8426 esac
8427
8428 # See if GNU ld supports shared libraries.
8429 case $host_os in
e81819a5 8430 aix[3-9]*)
d7040cdb
SE
8431 # On AIX/PPC, the GNU linker is very broken
8432 if test "$host_cpu" != ia64; then
8433 ld_shlibs=no
8434 cat <<_LT_EOF 1>&2
8435
8436*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8437*** to be unable to reliably create shared libraries on AIX.
8438*** Therefore, libtool is disabling shared libraries support. If you
8439*** really care for shared libraries, you may want to modify your PATH
8440*** so that a non-GNU linker is found, and then restart.
8441
8442_LT_EOF
8443 fi
8444 ;;
8445
8446 amigaos*)
718a6fd8
SE
8447 case $host_cpu in
8448 powerpc)
8449 # see comment about AmigaOS4 .so support
8450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451 archive_expsym_cmds=''
8452 ;;
8453 m68k)
8454 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)'
8455 hardcode_libdir_flag_spec='-L$libdir'
8456 hardcode_minus_L=yes
8457 ;;
8458 esac
d7040cdb
SE
8459 ;;
8460
8461 beos*)
8462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8463 allow_undefined_flag=unsupported
8464 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8465 # support --undefined. This deserves some investigation. FIXME
8466 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8467 else
8468 ld_shlibs=no
8469 fi
8470 ;;
8471
718a6fd8 8472 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8473 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8474 # as there is no search path for DLLs.
8475 hardcode_libdir_flag_spec='-L$libdir'
8476 allow_undefined_flag=unsupported
8477 always_export_symbols=no
8478 enable_shared_with_static_runtimes=yes
8479 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8480
8481 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8483 # If the export-symbols file already is a .def file (1st line
8484 # is EXPORTS), use it as is; otherwise, prepend...
8485 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8486 cp $export_symbols $output_objdir/$soname.def;
8487 else
8488 echo EXPORTS > $output_objdir/$soname.def;
8489 cat $export_symbols >> $output_objdir/$soname.def;
8490 fi~
8491 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8492 else
8493 ld_shlibs=no
8494 fi
8495 ;;
8496
8497 interix[3-9]*)
8498 hardcode_direct=no
8499 hardcode_shlibpath_var=no
8500 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8501 export_dynamic_flag_spec='${wl}-E'
8502 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8503 # Instead, shared libraries are loaded at an image base (0x10000000 by
8504 # default) and relocated if they conflict, which is a slow very memory
8505 # consuming and fragmenting process. To avoid this, we pick a random,
8506 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8507 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8508 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8509 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'
8510 ;;
8511
58e24671 8512 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
8513 tmp_diet=no
8514 if test "$host_os" = linux-dietlibc; then
8515 case $cc_basename in
8516 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8517 esac
8518 fi
8519 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8520 && test "$tmp_diet" = no
8521 then
8522 tmp_addflag=
718a6fd8 8523 tmp_sharedflag='-shared'
d7040cdb
SE
8524 case $cc_basename,$host_cpu in
8525 pgcc*) # Portland Group C compiler
8526 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'
8527 tmp_addflag=' $pic_flag'
8528 ;;
8529 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8530 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'
8531 tmp_addflag=' $pic_flag -Mnomain' ;;
8532 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8533 tmp_addflag=' -i_dynamic' ;;
8534 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8535 tmp_addflag=' -i_dynamic -nofor_main' ;;
8536 ifc* | ifort*) # Intel Fortran compiler
8537 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8538 lf95*) # Lahey Fortran 8.1
8539 whole_archive_flag_spec=
8540 tmp_sharedflag='--shared' ;;
8541 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8542 tmp_sharedflag='-qmkshrobj'
8543 tmp_addflag= ;;
d7040cdb
SE
8544 esac
8545 case `$CC -V 2>&1 | sed 5q` in
8546 *Sun\ C*) # Sun C 5.9
8547 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'
8548 compiler_needs_object=yes
8549 tmp_sharedflag='-G' ;;
8550 *Sun\ F*) # Sun Fortran 8.3
8551 tmp_sharedflag='-G' ;;
d7040cdb
SE
8552 esac
8553 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8554
8555 if test "x$supports_anon_versioning" = xyes; then
8556 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8557 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8558 echo "local: *; };" >> $output_objdir/$libname.ver~
8559 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8560 fi
718a6fd8
SE
8561
8562 case $cc_basename in
8563 xlf*)
8564 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8565 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8566 hardcode_libdir_flag_spec=
8567 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8568 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8569 if test "x$supports_anon_versioning" = xyes; then
8570 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8572 echo "local: *; };" >> $output_objdir/$libname.ver~
8573 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8574 fi
8575 ;;
8576 esac
d7040cdb
SE
8577 else
8578 ld_shlibs=no
8579 fi
8580 ;;
8581
8582 netbsd*)
8583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8584 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8585 wlarc=
8586 else
8587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8589 fi
8590 ;;
8591
8592 solaris*)
8593 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8594 ld_shlibs=no
8595 cat <<_LT_EOF 1>&2
8596
8597*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8598*** create shared libraries on Solaris systems. Therefore, libtool
8599*** is disabling shared libraries support. We urge you to upgrade GNU
8600*** binutils to release 2.9.1 or newer. Another option is to modify
8601*** your PATH or compiler configuration so that the native linker is
8602*** used, and then restart.
8603
8604_LT_EOF
8605 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8607 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8608 else
8609 ld_shlibs=no
8610 fi
8611 ;;
8612
8613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8614 case `$LD -v 2>&1` in
8615 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8616 ld_shlibs=no
8617 cat <<_LT_EOF 1>&2
8618
8619*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8620*** reliably create shared libraries on SCO systems. Therefore, libtool
8621*** is disabling shared libraries support. We urge you to upgrade GNU
8622*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8623*** your PATH or compiler configuration so that the native linker is
8624*** used, and then restart.
8625
8626_LT_EOF
8627 ;;
8628 *)
8629 # For security reasons, it is highly recommended that you always
8630 # use absolute paths for naming shared libraries, and exclude the
8631 # DT_RUNPATH tag from executables and libraries. But doing so
8632 # requires that you compile everything twice, which is a pain.
8633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8637 else
8638 ld_shlibs=no
8639 fi
8640 ;;
8641 esac
8642 ;;
8643
8644 sunos4*)
8645 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8646 wlarc=
8647 hardcode_direct=yes
8648 hardcode_shlibpath_var=no
8649 ;;
8650
8651 *)
8652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8655 else
8656 ld_shlibs=no
8657 fi
8658 ;;
8659 esac
8660
8661 if test "$ld_shlibs" = no; then
8662 runpath_var=
8663 hardcode_libdir_flag_spec=
8664 export_dynamic_flag_spec=
8665 whole_archive_flag_spec=
8666 fi
8667 else
8668 # PORTME fill in a description of your system's linker (not GNU ld)
8669 case $host_os in
8670 aix3*)
8671 allow_undefined_flag=unsupported
8672 always_export_symbols=yes
8673 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'
8674 # Note: this linker hardcodes the directories in LIBPATH if there
8675 # are no directories specified by -L.
8676 hardcode_minus_L=yes
8677 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8678 # Neither direct hardcoding nor static linking is supported with a
8679 # broken collect2.
8680 hardcode_direct=unsupported
8681 fi
8682 ;;
8683
e81819a5 8684 aix[4-9]*)
d7040cdb
SE
8685 if test "$host_cpu" = ia64; then
8686 # On IA64, the linker does run time linking by default, so we don't
8687 # have to do anything special.
8688 aix_use_runtimelinking=no
8689 exp_sym_flag='-Bexport'
8690 no_entry_flag=""
8691 else
8692 # If we're using GNU nm, then we don't want the "-C" option.
8693 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8694 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8695 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'
8696 else
8697 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'
8698 fi
8699 aix_use_runtimelinking=no
8700
8701 # Test if we are trying to use run time linking or normal
8702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8703 # need to do runtime linking.
e81819a5 8704 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
8705 for ld_flag in $LDFLAGS; do
8706 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8707 aix_use_runtimelinking=yes
8708 break
8709 fi
8710 done
8711 ;;
8712 esac
8713
8714 exp_sym_flag='-bexport'
8715 no_entry_flag='-bnoentry'
8716 fi
8717
8718 # When large executables or shared objects are built, AIX ld can
8719 # have problems creating the table of contents. If linking a library
8720 # or program results in "error TOC overflow" add -mminimal-toc to
8721 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8722 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8723
8724 archive_cmds=''
8725 hardcode_direct=yes
8726 hardcode_direct_absolute=yes
8727 hardcode_libdir_separator=':'
8728 link_all_deplibs=yes
8729 file_list_spec='${wl}-f,'
8730
8731 if test "$GCC" = yes; then
8732 case $host_os in aix4.[012]|aix4.[012].*)
8733 # We only want to do this on AIX 4.2 and lower, the check
8734 # below for broken collect2 doesn't work under 4.3+
8735 collect2name=`${CC} -print-prog-name=collect2`
8736 if test -f "$collect2name" &&
8737 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8738 then
8739 # We have reworked collect2
8740 :
8741 else
8742 # We have old collect2
8743 hardcode_direct=unsupported
8744 # It fails to find uninstalled libraries when the uninstalled
8745 # path is not listed in the libpath. Setting hardcode_minus_L
8746 # to unsupported forces relinking
8747 hardcode_minus_L=yes
8748 hardcode_libdir_flag_spec='-L$libdir'
8749 hardcode_libdir_separator=
8750 fi
8751 ;;
8752 esac
8753 shared_flag='-shared'
8754 if test "$aix_use_runtimelinking" = yes; then
8755 shared_flag="$shared_flag "'${wl}-G'
8756 fi
8757 else
8758 # not using gcc
8759 if test "$host_cpu" = ia64; then
8760 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8761 # chokes on -Wl,-G. The following line is correct:
8762 shared_flag='-G'
8763 else
8764 if test "$aix_use_runtimelinking" = yes; then
8765 shared_flag='${wl}-G'
8766 else
8767 shared_flag='${wl}-bM:SRE'
8768 fi
8769 fi
8770 fi
8771
718a6fd8 8772 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
8773 # It seems that -bexpall does not export symbols beginning with
8774 # underscore (_), so it is better to generate a list of symbols to export.
8775 always_export_symbols=yes
8776 if test "$aix_use_runtimelinking" = yes; then
8777 # Warning - without using the other runtime loading flags (-brtl),
8778 # -berok will link without error, but may produce a broken library.
8779 allow_undefined_flag='-berok'
8780 # Determine the default libpath from the value encoded in an
8781 # empty executable.
8782 cat >conftest.$ac_ext <<_ACEOF
8783/* confdefs.h. */
8784_ACEOF
8785cat confdefs.h >>conftest.$ac_ext
8786cat >>conftest.$ac_ext <<_ACEOF
8787/* end confdefs.h. */
8788
8789int
8790main ()
8791{
8792
8793 ;
8794 return 0;
8795}
8796_ACEOF
8797rm -f conftest.$ac_objext conftest$ac_exeext
8798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8799 (eval $ac_link) 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
7357c5b6
AM
8806 { ac_try='test -z "$ac_c_werror_flag"
8807 || test ! -s conftest.err'
d7040cdb
SE
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; } &&
8813 { ac_try='test -s conftest$ac_exeext'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 (eval $ac_try) 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
8819
8820lt_aix_libpath_sed='
8821 /Import File Strings/,/^$/ {
8822 /^0/ {
8823 s/^0 *\(.*\)$/\1/
8824 p
8825 }
8826 }'
8827aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828# Check for a 64-bit object if we didn't find anything.
8829if test -z "$aix_libpath"; then
8830 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8831fi
8832else
8833 echo "$as_me: failed program was:" >&5
8834sed 's/^/| /' conftest.$ac_ext >&5
8835
8836fi
8837rm -f conftest.err conftest.$ac_objext \
8838 conftest$ac_exeext conftest.$ac_ext
8839if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8840
8841 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8842 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"
8843 else
8844 if test "$host_cpu" = ia64; then
8845 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8846 allow_undefined_flag="-z nodefs"
8847 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"
8848 else
8849 # Determine the default libpath from the value encoded in an
8850 # empty executable.
8851 cat >conftest.$ac_ext <<_ACEOF
8852/* confdefs.h. */
8853_ACEOF
8854cat confdefs.h >>conftest.$ac_ext
8855cat >>conftest.$ac_ext <<_ACEOF
8856/* end confdefs.h. */
8857
8858int
8859main ()
8860{
8861
8862 ;
8863 return 0;
8864}
8865_ACEOF
8866rm -f conftest.$ac_objext conftest$ac_exeext
8867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868 (eval $ac_link) 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
7357c5b6
AM
8875 { ac_try='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
d7040cdb
SE
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try='test -s conftest$ac_exeext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888
8889lt_aix_libpath_sed='
8890 /Import File Strings/,/^$/ {
8891 /^0/ {
8892 s/^0 *\(.*\)$/\1/
8893 p
8894 }
8895 }'
8896aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8897# Check for a 64-bit object if we didn't find anything.
8898if test -z "$aix_libpath"; then
8899 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8900fi
8901else
8902 echo "$as_me: failed program was:" >&5
8903sed 's/^/| /' conftest.$ac_ext >&5
8904
8905fi
8906rm -f conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext conftest.$ac_ext
8908if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8909
8910 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8911 # Warning - without using the other run time loading flags,
8912 # -berok will link without error, but may produce a broken library.
8913 no_undefined_flag=' ${wl}-bernotok'
8914 allow_undefined_flag=' ${wl}-berok'
8915 # Exported symbols can be pulled into shared objects from archives
8916 whole_archive_flag_spec='$convenience'
8917 archive_cmds_need_lc=yes
8918 # This is similar to how AIX traditionally builds its shared libraries.
8919 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'
8920 fi
8921 fi
8922 ;;
8923
8924 amigaos*)
718a6fd8
SE
8925 case $host_cpu in
8926 powerpc)
8927 # see comment about AmigaOS4 .so support
8928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8929 archive_expsym_cmds=''
8930 ;;
8931 m68k)
8932 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)'
8933 hardcode_libdir_flag_spec='-L$libdir'
8934 hardcode_minus_L=yes
8935 ;;
8936 esac
d7040cdb
SE
8937 ;;
8938
8939 bsdi[45]*)
8940 export_dynamic_flag_spec=-rdynamic
8941 ;;
8942
718a6fd8 8943 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8944 # When not using gcc, we currently assume that we are using
8945 # Microsoft Visual C++.
8946 # hardcode_libdir_flag_spec is actually meaningless, as there is
8947 # no search path for DLLs.
8948 hardcode_libdir_flag_spec=' '
8949 allow_undefined_flag=unsupported
8950 # Tell ltmain to make .lib files, not .a files.
8951 libext=lib
8952 # Tell ltmain to make .dll files, not .so files.
8953 shrext_cmds=".dll"
8954 # FIXME: Setting linknames here is a bad hack.
8955 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8956 # The linker will automatically build a .lib file if we build a DLL.
8957 old_archive_from_new_cmds='true'
8958 # FIXME: Should let the user specify the lib program.
8959 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8960 fix_srcfile_path='`cygpath -w "$srcfile"`'
8961 enable_shared_with_static_runtimes=yes
8962 ;;
8963
8964 darwin* | rhapsody*)
d7040cdb 8965
718a6fd8
SE
8966
8967 archive_cmds_need_lc=no
8968 hardcode_direct=no
8969 hardcode_automatic=yes
8970 hardcode_shlibpath_var=unsupported
8971 whole_archive_flag_spec=''
8972 link_all_deplibs=yes
8973 allow_undefined_flag="$_lt_dar_allow_undefined"
8974 case $cc_basename in
8975 ifort*) _lt_dar_can_shared=yes ;;
8976 *) _lt_dar_can_shared=$GCC ;;
8977 esac
8978 if test "$_lt_dar_can_shared" = "yes"; then
8979 output_verbose_link_cmd=echo
8980 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8981 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8982 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}"
8983 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}"
8984
8985 else
8986 ld_shlibs=no
8987 fi
8988
d7040cdb
SE
8989 ;;
8990
8991 dgux*)
8992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8993 hardcode_libdir_flag_spec='-L$libdir'
8994 hardcode_shlibpath_var=no
8995 ;;
8996
8997 freebsd1*)
8998 ld_shlibs=no
8999 ;;
9000
9001 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9002 # support. Future versions do this automatically, but an explicit c++rt0.o
9003 # does not break anything, and helps significantly (at the cost of a little
9004 # extra space).
9005 freebsd2.2*)
9006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9007 hardcode_libdir_flag_spec='-R$libdir'
9008 hardcode_direct=yes
9009 hardcode_shlibpath_var=no
9010 ;;
9011
9012 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9013 freebsd2*)
9014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9015 hardcode_direct=yes
9016 hardcode_minus_L=yes
9017 hardcode_shlibpath_var=no
9018 ;;
9019
9020 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9021 freebsd* | dragonfly*)
9022 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9023 hardcode_libdir_flag_spec='-R$libdir'
9024 hardcode_direct=yes
9025 hardcode_shlibpath_var=no
9026 ;;
9027
9028 hpux9*)
9029 if test "$GCC" = yes; then
9030 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'
9031 else
9032 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'
9033 fi
9034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9035 hardcode_libdir_separator=:
9036 hardcode_direct=yes
9037
9038 # hardcode_minus_L: Not really in the search PATH,
9039 # but as the default location of the library.
9040 hardcode_minus_L=yes
9041 export_dynamic_flag_spec='${wl}-E'
9042 ;;
9043
9044 hpux10*)
9045 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9046 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9047 else
9048 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9049 fi
9050 if test "$with_gnu_ld" = no; then
9051 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9052 hardcode_libdir_flag_spec_ld='+b $libdir'
9053 hardcode_libdir_separator=:
9054 hardcode_direct=yes
9055 hardcode_direct_absolute=yes
9056 export_dynamic_flag_spec='${wl}-E'
9057 # hardcode_minus_L: Not really in the search PATH,
9058 # but as the default location of the library.
9059 hardcode_minus_L=yes
9060 fi
9061 ;;
9062
9063 hpux11*)
9064 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9065 case $host_cpu in
9066 hppa*64*)
9067 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9068 ;;
9069 ia64*)
718a6fd8 9070 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9071 ;;
9072 *)
9073 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9074 ;;
9075 esac
9076 else
9077 case $host_cpu in
9078 hppa*64*)
9079 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9080 ;;
9081 ia64*)
9082 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9083 ;;
9084 *)
9085 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9086 ;;
9087 esac
9088 fi
9089 if test "$with_gnu_ld" = no; then
9090 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9091 hardcode_libdir_separator=:
9092
9093 case $host_cpu in
9094 hppa*64*|ia64*)
9095 hardcode_direct=no
9096 hardcode_shlibpath_var=no
9097 ;;
9098 *)
9099 hardcode_direct=yes
9100 hardcode_direct_absolute=yes
9101 export_dynamic_flag_spec='${wl}-E'
9102
9103 # hardcode_minus_L: Not really in the search PATH,
9104 # but as the default location of the library.
9105 hardcode_minus_L=yes
9106 ;;
9107 esac
9108 fi
9109 ;;
9110
9111 irix5* | irix6* | nonstopux*)
9112 if test "$GCC" = yes; then
9113 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'
9114 # Try to use the -exported_symbol ld option, if it does not
9115 # work, assume that -exports_file does not work either and
9116 # implicitly export all symbols.
9117 save_LDFLAGS="$LDFLAGS"
9118 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9119 cat >conftest.$ac_ext <<_ACEOF
9120int foo(void) {}
9121_ACEOF
9122rm -f conftest.$ac_objext conftest$ac_exeext
9123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9124 (eval $ac_link) 2>conftest.er1
9125 ac_status=$?
9126 grep -v '^ *+' conftest.er1 >conftest.err
9127 rm -f conftest.er1
9128 cat conftest.err >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
7357c5b6
AM
9131 { ac_try='test -z "$ac_c_werror_flag"
9132 || test ! -s conftest.err'
d7040cdb
SE
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; } &&
9138 { ac_try='test -s conftest$ac_exeext'
9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 (eval $ac_try) 2>&5
9141 ac_status=$?
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; }; then
9144 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'
9145
9146else
9147 echo "$as_me: failed program was:" >&5
9148sed 's/^/| /' conftest.$ac_ext >&5
9149
9150fi
9151rm -f conftest.err conftest.$ac_objext \
9152 conftest$ac_exeext conftest.$ac_ext
9153 LDFLAGS="$save_LDFLAGS"
9154 else
9155 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'
9156 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'
9157 fi
9158 archive_cmds_need_lc='no'
9159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9160 hardcode_libdir_separator=:
9161 inherit_rpath=yes
9162 link_all_deplibs=yes
9163 ;;
9164
9165 netbsd*)
9166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9168 else
9169 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9170 fi
9171 hardcode_libdir_flag_spec='-R$libdir'
9172 hardcode_direct=yes
9173 hardcode_shlibpath_var=no
9174 ;;
9175
9176 newsos6)
9177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9178 hardcode_direct=yes
9179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9180 hardcode_libdir_separator=:
9181 hardcode_shlibpath_var=no
9182 ;;
9183
9184 *nto* | *qnx*)
9185 ;;
9186
9187 openbsd*)
718a6fd8
SE
9188 if test -f /usr/libexec/ld.so; then
9189 hardcode_direct=yes
9190 hardcode_shlibpath_var=no
9191 hardcode_direct_absolute=yes
9192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9193 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9194 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9195 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9196 export_dynamic_flag_spec='${wl}-E'
9197 else
9198 case $host_os in
9199 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9201 hardcode_libdir_flag_spec='-R$libdir'
9202 ;;
9203 *)
9204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9205 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9206 ;;
9207 esac
9208 fi
9209 else
9210 ld_shlibs=no
d7040cdb
SE
9211 fi
9212 ;;
9213
9214 os2*)
9215 hardcode_libdir_flag_spec='-L$libdir'
9216 hardcode_minus_L=yes
9217 allow_undefined_flag=unsupported
9218 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'
9219 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9220 ;;
9221
9222 osf3*)
9223 if test "$GCC" = yes; then
9224 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9225 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'
9226 else
9227 allow_undefined_flag=' -expect_unresolved \*'
9228 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'
9229 fi
9230 archive_cmds_need_lc='no'
9231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9232 hardcode_libdir_separator=:
9233 ;;
9234
9235 osf4* | osf5*) # as osf3* with the addition of -msym flag
9236 if test "$GCC" = yes; then
9237 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9238 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'
9239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240 else
9241 allow_undefined_flag=' -expect_unresolved \*'
9242 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'
9243 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~
9244 $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'
9245
9246 # Both c and cxx compiler support -rpath directly
9247 hardcode_libdir_flag_spec='-rpath $libdir'
9248 fi
9249 archive_cmds_need_lc='no'
9250 hardcode_libdir_separator=:
9251 ;;
9252
9253 solaris*)
9254 no_undefined_flag=' -z defs'
9255 if test "$GCC" = yes; then
9256 wlarc='${wl}'
9257 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9258 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9259 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9260 else
9261 case `$CC -V 2>&1` in
9262 *"Compilers 5.0"*)
9263 wlarc=''
9264 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9265 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9266 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9267 ;;
9268 *)
9269 wlarc='${wl}'
9270 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9272 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9273 ;;
9274 esac
9275 fi
9276 hardcode_libdir_flag_spec='-R$libdir'
9277 hardcode_shlibpath_var=no
9278 case $host_os in
9279 solaris2.[0-5] | solaris2.[0-5].*) ;;
9280 *)
9281 # The compiler driver will combine and reorder linker options,
9282 # but understands `-z linker_flag'. GCC discards it without `$wl',
9283 # but is careful enough not to reorder.
9284 # Supported since Solaris 2.6 (maybe 2.5.1?)
9285 if test "$GCC" = yes; then
9286 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9287 else
9288 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9289 fi
9290 ;;
9291 esac
9292 link_all_deplibs=yes
9293 ;;
9294
9295 sunos4*)
9296 if test "x$host_vendor" = xsequent; then
9297 # Use $CC to link under sequent, because it throws in some extra .o
9298 # files that make .init and .fini sections work.
9299 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9300 else
9301 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9302 fi
9303 hardcode_libdir_flag_spec='-L$libdir'
9304 hardcode_direct=yes
9305 hardcode_minus_L=yes
9306 hardcode_shlibpath_var=no
9307 ;;
9308
9309 sysv4)
9310 case $host_vendor in
9311 sni)
9312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9313 hardcode_direct=yes # is this really true???
9314 ;;
9315 siemens)
9316 ## LD is ld it makes a PLAMLIB
9317 ## CC just makes a GrossModule.
9318 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9319 reload_cmds='$CC -r -o $output$reload_objs'
9320 hardcode_direct=no
9321 ;;
9322 motorola)
9323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9325 ;;
9326 esac
9327 runpath_var='LD_RUN_PATH'
9328 hardcode_shlibpath_var=no
9329 ;;
9330
9331 sysv4.3*)
9332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333 hardcode_shlibpath_var=no
9334 export_dynamic_flag_spec='-Bexport'
9335 ;;
9336
9337 sysv4*MP*)
9338 if test -d /usr/nec; then
9339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 hardcode_shlibpath_var=no
9341 runpath_var=LD_RUN_PATH
9342 hardcode_runpath_var=yes
9343 ld_shlibs=yes
9344 fi
9345 ;;
9346
9347 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9348 no_undefined_flag='${wl}-z,text'
9349 archive_cmds_need_lc=no
9350 hardcode_shlibpath_var=no
9351 runpath_var='LD_RUN_PATH'
9352
9353 if test "$GCC" = yes; then
9354 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 else
9357 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9358 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9359 fi
9360 ;;
9361
9362 sysv5* | sco3.2v5* | sco5v6*)
9363 # Note: We can NOT use -z defs as we might desire, because we do not
9364 # link with -lc, and that would cause any symbols used from libc to
9365 # always be unresolved, which means just about no library would
9366 # ever link correctly. If we're not using GNU ld we use -z text
9367 # though, which does catch some bad symbols but isn't as heavy-handed
9368 # as -z defs.
9369 no_undefined_flag='${wl}-z,text'
9370 allow_undefined_flag='${wl}-z,nodefs'
9371 archive_cmds_need_lc=no
9372 hardcode_shlibpath_var=no
9373 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9374 hardcode_libdir_separator=':'
9375 link_all_deplibs=yes
9376 export_dynamic_flag_spec='${wl}-Bexport'
9377 runpath_var='LD_RUN_PATH'
9378
9379 if test "$GCC" = yes; then
9380 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382 else
9383 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 fi
9386 ;;
9387
9388 uts4*)
9389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390 hardcode_libdir_flag_spec='-L$libdir'
9391 hardcode_shlibpath_var=no
9392 ;;
9393
9394 *)
9395 ld_shlibs=no
9396 ;;
9397 esac
9398
9399 if test x$host_vendor = xsni; then
9400 case $host in
9401 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9402 export_dynamic_flag_spec='${wl}-Blargedynsym'
9403 ;;
9404 esac
9405 fi
9406 fi
9407
9408echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9409echo "${ECHO_T}$ld_shlibs" >&6
9410test "$ld_shlibs" = no && can_build_shared=no
9411
9412with_gnu_ld=$with_gnu_ld
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428#
9429# Do we need to explicitly link libc?
9430#
9431case "x$archive_cmds_need_lc" in
9432x|xyes)
9433 # Assume -lc should be added
9434 archive_cmds_need_lc=yes
9435
9436 if test "$enable_shared" = yes && test "$GCC" = yes; then
9437 case $archive_cmds in
9438 *'~'*)
9439 # FIXME: we may have to deal with multi-command sequences.
9440 ;;
9441 '$CC '*)
9442 # Test whether the compiler implicitly links with -lc since on some
9443 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9444 # to ld, don't add -lc before -lgcc.
9445 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9446echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
39144654
RW
9447if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9449else
9450 $RM conftest*
9451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9452
39144654 9453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d7040cdb
SE
9454 (eval $ac_compile) 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } 2>conftest.err; then
39144654
RW
9458 soname=conftest
9459 lib=conftest
9460 libobjs=conftest.$ac_objext
9461 deplibs=
9462 wl=$lt_prog_compiler_wl
9463 pic_flag=$lt_prog_compiler_pic
9464 compiler_flags=-v
9465 linker_flags=-v
9466 verstring=
9467 output_objdir=.
9468 libname=conftest
9469 lt_save_allow_undefined_flag=$allow_undefined_flag
9470 allow_undefined_flag=
9471 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
d7040cdb
SE
9472 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }
39144654
RW
9476 then
9477 lt_cv_archive_cmds_need_lc=no
9478 else
9479 lt_cv_archive_cmds_need_lc=yes
9480 fi
9481 allow_undefined_flag=$lt_save_allow_undefined_flag
9482 else
9483 cat conftest.err 1>&5
9484 fi
9485 $RM conftest*
9486
9487fi
9488echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9489echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9490 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
9491 ;;
9492 esac
9493 fi
9494 ;;
9495esac
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9654echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
718a6fd8
SE
9655
9656if test "$GCC" = yes; then
d7040cdb
SE
9657 case $host_os in
9658 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9659 *) lt_awk_arg="/^libraries:/" ;;
9660 esac
9661 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9662 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9663 # if the path contains ";" then we assume it to be the separator
9664 # otherwise default to the standard path separator (i.e. ":") - it is
9665 # assumed that no part of a normal pathname contains ";" but that should
9666 # okay in the real world where ";" in dirpaths is itself problematic.
9667 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9668 else
9669 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9670 fi
9671 # Ok, now we have the path, separated by spaces, we can step through it
9672 # and add multilib dir if necessary.
9673 lt_tmp_lt_search_path_spec=
9674 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9675 for lt_sys_path in $lt_search_path_spec; do
9676 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9677 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9678 else
9679 test -d "$lt_sys_path" && \
9680 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9681 fi
9682 done
9683 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9684BEGIN {RS=" "; FS="/|\n";} {
9685 lt_foo="";
9686 lt_count=0;
9687 for (lt_i = NF; lt_i > 0; lt_i--) {
9688 if ($lt_i != "" && $lt_i != ".") {
9689 if ($lt_i == "..") {
9690 lt_count++;
9691 } else {
9692 if (lt_count == 0) {
9693 lt_foo="/" $lt_i lt_foo;
9694 } else {
9695 lt_count--;
9696 }
9697 }
9698 }
9699 }
9700 if (lt_foo != "") { lt_freq[lt_foo]++; }
9701 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9702}'`
9703 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9704else
9705 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9706fi
9707library_names_spec=
9708libname_spec='lib$name'
9709soname_spec=
9710shrext_cmds=".so"
9711postinstall_cmds=
9712postuninstall_cmds=
9713finish_cmds=
9714finish_eval=
9715shlibpath_var=
9716shlibpath_overrides_runpath=unknown
9717version_type=none
9718dynamic_linker="$host_os ld.so"
9719sys_lib_dlsearch_path_spec="/lib /usr/lib"
9720need_lib_prefix=unknown
9721hardcode_into_libs=no
9722
9723# when you set need_version to no, make sure it does not cause -set_version
9724# flags to be left without arguments
9725need_version=unknown
9726
9727case $host_os in
9728aix3*)
9729 version_type=linux
9730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9731 shlibpath_var=LIBPATH
9732
9733 # AIX 3 has no versioning support, so we append a major version to the name.
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 ;;
9736
e81819a5 9737aix[4-9]*)
d7040cdb
SE
9738 version_type=linux
9739 need_lib_prefix=no
9740 need_version=no
9741 hardcode_into_libs=yes
9742 if test "$host_cpu" = ia64; then
9743 # AIX 5 supports IA64
9744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9745 shlibpath_var=LD_LIBRARY_PATH
9746 else
9747 # With GCC up to 2.95.x, collect2 would create an import file
9748 # for dependence libraries. The import file would start with
9749 # the line `#! .'. This would cause the generated library to
9750 # depend on `.', always an invalid library. This was fixed in
9751 # development snapshots of GCC prior to 3.0.
9752 case $host_os in
9753 aix4 | aix4.[01] | aix4.[01].*)
9754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9755 echo ' yes '
9756 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9757 :
9758 else
9759 can_build_shared=no
9760 fi
9761 ;;
9762 esac
9763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9764 # soname into executable. Probably we can add versioning support to
9765 # collect2, so additional links can be useful in future.
9766 if test "$aix_use_runtimelinking" = yes; then
9767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9768 # instead of lib<name>.a to let people know that these are not
9769 # typical AIX shared libraries.
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771 else
9772 # We preserve .a as extension for shared libraries through AIX4.2
9773 # and later when we are not doing run time linking.
9774 library_names_spec='${libname}${release}.a $libname.a'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 fi
9777 shlibpath_var=LIBPATH
9778 fi
9779 ;;
9780
9781amigaos*)
718a6fd8
SE
9782 case $host_cpu in
9783 powerpc)
9784 # Since July 2007 AmigaOS4 officially supports .so libraries.
9785 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787 ;;
9788 m68k)
d7040cdb
SE
9789 library_names_spec='$libname.ixlibrary $libname.a'
9790 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9791 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
9792 ;;
9793 esac
d7040cdb
SE
9794 ;;
9795
9796beos*)
9797 library_names_spec='${libname}${shared_ext}'
9798 dynamic_linker="$host_os ld.so"
9799 shlibpath_var=LIBRARY_PATH
9800 ;;
9801
9802bsdi[45]*)
9803 version_type=linux
9804 need_version=no
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9808 shlibpath_var=LD_LIBRARY_PATH
9809 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9810 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9811 # the default ld.so.conf also contains /usr/contrib/lib and
9812 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9813 # libtool to hard-code these into programs
9814 ;;
9815
718a6fd8 9816cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9817 version_type=windows
9818 shrext_cmds=".dll"
9819 need_version=no
9820 need_lib_prefix=no
9821
718a6fd8
SE
9822 case $GCC,$host_os in
9823 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
9824 library_names_spec='$libname.dll.a'
9825 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9826 postinstall_cmds='base_file=`basename \${file}`~
9827 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9828 dldir=$destdir/`dirname \$dlpath`~
9829 test -d \$dldir || mkdir -p \$dldir~
9830 $install_prog $dir/$dlname \$dldir/$dlname~
9831 chmod a+x \$dldir/$dlname~
9832 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9833 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9834 fi'
9835 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9836 dlpath=$dir/\$dldll~
9837 $RM \$dlpath'
9838 shlibpath_overrides_runpath=yes
9839
9840 case $host_os in
9841 cygwin*)
9842 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9843 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9844 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9845 ;;
718a6fd8 9846 mingw* | cegcc*)
d7040cdb
SE
9847 # MinGW DLLs use traditional 'lib' prefix
9848 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9849 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9850 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9851 # It is most probably a Windows format PATH printed by
9852 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9853 # path with ; separators, and with drive letters. We can handle the
9854 # drive letters (cygwin fileutils understands them), so leave them,
9855 # especially as we might pass files found there to a mingw objdump,
9856 # which wouldn't understand a cygwinified path. Ahh.
9857 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9858 else
9859 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9860 fi
9861 ;;
9862 pw32*)
9863 # pw32 DLLs use 'pw' prefix rather than 'lib'
9864 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9865 ;;
9866 esac
9867 ;;
9868
9869 *)
9870 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9871 ;;
9872 esac
9873 dynamic_linker='Win32 ld.exe'
9874 # FIXME: first we should search . and the directory the executable is in
9875 shlibpath_var=PATH
9876 ;;
9877
9878darwin* | rhapsody*)
9879 dynamic_linker="$host_os dyld"
9880 version_type=darwin
9881 need_lib_prefix=no
9882 need_version=no
9883 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9884 soname_spec='${libname}${release}${major}$shared_ext'
9885 shlibpath_overrides_runpath=yes
9886 shlibpath_var=DYLD_LIBRARY_PATH
9887 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9888
9889 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9890 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9891 ;;
9892
9893dgux*)
9894 version_type=linux
9895 need_lib_prefix=no
9896 need_version=no
9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9898 soname_spec='${libname}${release}${shared_ext}$major'
9899 shlibpath_var=LD_LIBRARY_PATH
9900 ;;
9901
9902freebsd1*)
9903 dynamic_linker=no
9904 ;;
9905
9906freebsd* | dragonfly*)
9907 # DragonFly does not have aout. When/if they implement a new
9908 # versioning mechanism, adjust this.
9909 if test -x /usr/bin/objformat; then
9910 objformat=`/usr/bin/objformat`
9911 else
9912 case $host_os in
9913 freebsd[123]*) objformat=aout ;;
9914 *) objformat=elf ;;
9915 esac
9916 fi
9917 version_type=freebsd-$objformat
9918 case $version_type in
9919 freebsd-elf*)
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9921 need_version=no
9922 need_lib_prefix=no
9923 ;;
9924 freebsd-*)
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9926 need_version=yes
9927 ;;
9928 esac
9929 shlibpath_var=LD_LIBRARY_PATH
9930 case $host_os in
9931 freebsd2*)
9932 shlibpath_overrides_runpath=yes
9933 ;;
9934 freebsd3.[01]* | freebsdelf3.[01]*)
9935 shlibpath_overrides_runpath=yes
9936 hardcode_into_libs=yes
9937 ;;
9938 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9939 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9940 shlibpath_overrides_runpath=no
9941 hardcode_into_libs=yes
9942 ;;
9943 *) # from 4.6 on, and DragonFly
9944 shlibpath_overrides_runpath=yes
9945 hardcode_into_libs=yes
9946 ;;
9947 esac
9948 ;;
9949
9950gnu*)
9951 version_type=linux
9952 need_lib_prefix=no
9953 need_version=no
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 shlibpath_var=LD_LIBRARY_PATH
9957 hardcode_into_libs=yes
9958 ;;
9959
9960hpux9* | hpux10* | hpux11*)
9961 # Give a soname corresponding to the major version so that dld.sl refuses to
9962 # link against other versions.
9963 version_type=sunos
9964 need_lib_prefix=no
9965 need_version=no
9966 case $host_cpu in
9967 ia64*)
9968 shrext_cmds='.so'
9969 hardcode_into_libs=yes
9970 dynamic_linker="$host_os dld.so"
9971 shlibpath_var=LD_LIBRARY_PATH
9972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9974 soname_spec='${libname}${release}${shared_ext}$major'
9975 if test "X$HPUX_IA64_MODE" = X32; then
9976 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9977 else
9978 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9979 fi
9980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9981 ;;
9982 hppa*64*)
9983 shrext_cmds='.sl'
9984 hardcode_into_libs=yes
9985 dynamic_linker="$host_os dld.sl"
9986 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9987 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9992 ;;
9993 *)
9994 shrext_cmds='.sl'
9995 dynamic_linker="$host_os dld.sl"
9996 shlibpath_var=SHLIB_PATH
9997 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 ;;
10001 esac
10002 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10003 postinstall_cmds='chmod 555 $lib'
10004 ;;
10005
10006interix[3-9]*)
10007 version_type=linux
10008 need_lib_prefix=no
10009 need_version=no
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10013 shlibpath_var=LD_LIBRARY_PATH
10014 shlibpath_overrides_runpath=no
10015 hardcode_into_libs=yes
10016 ;;
10017
10018irix5* | irix6* | nonstopux*)
10019 case $host_os in
10020 nonstopux*) version_type=nonstopux ;;
10021 *)
10022 if test "$lt_cv_prog_gnu_ld" = yes; then
10023 version_type=linux
10024 else
10025 version_type=irix
10026 fi ;;
10027 esac
10028 need_lib_prefix=no
10029 need_version=no
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10032 case $host_os in
10033 irix5* | nonstopux*)
10034 libsuff= shlibsuff=
10035 ;;
10036 *)
10037 case $LD in # libtool.m4 will add one of these switches to LD
10038 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10039 libsuff= shlibsuff= libmagic=32-bit;;
10040 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10041 libsuff=32 shlibsuff=N32 libmagic=N32;;
10042 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10043 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10044 *) libsuff= shlibsuff= libmagic=never-match;;
10045 esac
10046 ;;
10047 esac
10048 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10049 shlibpath_overrides_runpath=no
10050 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10051 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10052 hardcode_into_libs=yes
10053 ;;
10054
10055# No shared lib support for Linux oldld, aout, or coff.
10056linux*oldld* | linux*aout* | linux*coff*)
10057 dynamic_linker=no
10058 ;;
10059
10060# This must be Linux ELF.
58e24671 10061linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
10062 version_type=linux
10063 need_lib_prefix=no
10064 need_version=no
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066 soname_spec='${libname}${release}${shared_ext}$major'
10067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath=no
39144654 10070
d7040cdb 10071 # Some binutils ld are patched to set DT_RUNPATH
39144654
RW
10072 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074else
10075 lt_cv_shlibpath_overrides_runpath=no
10076 save_LDFLAGS=$LDFLAGS
10077 save_libdir=$libdir
10078 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10079 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10080 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10081/* confdefs.h. */
10082_ACEOF
10083cat confdefs.h >>conftest.$ac_ext
10084cat >>conftest.$ac_ext <<_ACEOF
10085/* end confdefs.h. */
10086
10087int
10088main ()
10089{
10090
10091 ;
10092 return 0;
10093}
10094_ACEOF
10095rm -f conftest.$ac_objext conftest$ac_exeext
10096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10097 (eval $ac_link) 2>conftest.er1
10098 ac_status=$?
10099 grep -v '^ *+' conftest.er1 >conftest.err
10100 rm -f conftest.er1
10101 cat conftest.err >&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } &&
7357c5b6
AM
10104 { ac_try='test -z "$ac_c_werror_flag"
10105 || test ! -s conftest.err'
d7040cdb
SE
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; } &&
10111 { ac_try='test -s conftest$ac_exeext'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
718a6fd8 10117 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
39144654 10118 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb
SE
10119fi
10120
10121else
10122 echo "$as_me: failed program was:" >&5
10123sed 's/^/| /' conftest.$ac_ext >&5
10124
10125fi
10126rm -f conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10128 LDFLAGS=$save_LDFLAGS
10129 libdir=$save_libdir
10130
10131fi
10132
10133 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10134
10135 # This implies no fast_install, which is unacceptable.
10136 # Some rework will be needed to allow for fast_install
10137 # before this can be enabled.
10138 hardcode_into_libs=yes
10139
10140 # Append ld.so.conf contents to the search path
10141 if test -f /etc/ld.so.conf; then
718a6fd8 10142 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
10143 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10144 fi
10145
10146 # We used to test for /lib/ld.so.1 and disable shared libraries on
10147 # powerpc, because MkLinux only supported shared libraries with the
10148 # GNU dynamic linker. Since this was broken with cross compilers,
10149 # most powerpc-linux boxes support dynamic linking these days and
10150 # people can always --disable-shared, the test was removed, and we
10151 # assume the GNU/Linux dynamic linker is in use.
10152 dynamic_linker='GNU/Linux ld.so'
10153 ;;
10154
10155netbsd*)
10156 version_type=sunos
10157 need_lib_prefix=no
10158 need_version=no
10159 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10162 dynamic_linker='NetBSD (a.out) ld.so'
10163 else
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 dynamic_linker='NetBSD ld.elf_so'
10167 fi
10168 shlibpath_var=LD_LIBRARY_PATH
10169 shlibpath_overrides_runpath=yes
10170 hardcode_into_libs=yes
10171 ;;
10172
10173newsos6)
10174 version_type=linux
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 shlibpath_overrides_runpath=yes
10178 ;;
10179
10180*nto* | *qnx*)
10181 version_type=qnx
10182 need_lib_prefix=no
10183 need_version=no
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 shlibpath_var=LD_LIBRARY_PATH
10187 shlibpath_overrides_runpath=no
10188 hardcode_into_libs=yes
10189 dynamic_linker='ldqnx.so'
10190 ;;
10191
10192openbsd*)
10193 version_type=sunos
10194 sys_lib_dlsearch_path_spec="/usr/lib"
10195 need_lib_prefix=no
10196 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10197 case $host_os in
10198 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10199 *) need_version=no ;;
10200 esac
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10205 case $host_os in
10206 openbsd2.[89] | openbsd2.[89].*)
10207 shlibpath_overrides_runpath=no
10208 ;;
10209 *)
10210 shlibpath_overrides_runpath=yes
10211 ;;
10212 esac
10213 else
10214 shlibpath_overrides_runpath=yes
10215 fi
10216 ;;
10217
10218os2*)
10219 libname_spec='$name'
10220 shrext_cmds=".dll"
10221 need_lib_prefix=no
10222 library_names_spec='$libname${shared_ext} $libname.a'
10223 dynamic_linker='OS/2 ld.exe'
10224 shlibpath_var=LIBPATH
10225 ;;
10226
10227osf3* | osf4* | osf5*)
10228 version_type=osf
10229 need_lib_prefix=no
10230 need_version=no
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10235 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10236 ;;
10237
10238rdos*)
10239 dynamic_linker=no
10240 ;;
10241
10242solaris*)
10243 version_type=linux
10244 need_lib_prefix=no
10245 need_version=no
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247 soname_spec='${libname}${release}${shared_ext}$major'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=yes
10250 hardcode_into_libs=yes
10251 # ldd complains unless libraries are executable
10252 postinstall_cmds='chmod +x $lib'
10253 ;;
10254
10255sunos4*)
10256 version_type=sunos
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 shlibpath_overrides_runpath=yes
10261 if test "$with_gnu_ld" = yes; then
10262 need_lib_prefix=no
10263 fi
10264 need_version=yes
10265 ;;
10266
10267sysv4 | sysv4.3*)
10268 version_type=linux
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 case $host_vendor in
10273 sni)
10274 shlibpath_overrides_runpath=no
10275 need_lib_prefix=no
10276 runpath_var=LD_RUN_PATH
10277 ;;
10278 siemens)
10279 need_lib_prefix=no
10280 ;;
10281 motorola)
10282 need_lib_prefix=no
10283 need_version=no
10284 shlibpath_overrides_runpath=no
10285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10286 ;;
10287 esac
10288 ;;
10289
10290sysv4*MP*)
10291 if test -d /usr/nec ;then
10292 version_type=linux
10293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10294 soname_spec='$libname${shared_ext}.$major'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 fi
10297 ;;
10298
10299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10300 version_type=freebsd-elf
10301 need_lib_prefix=no
10302 need_version=no
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 hardcode_into_libs=yes
10308 if test "$with_gnu_ld" = yes; then
10309 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10310 else
10311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10312 case $host_os in
10313 sco3.2v5*)
10314 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10315 ;;
10316 esac
10317 fi
10318 sys_lib_dlsearch_path_spec='/usr/lib'
10319 ;;
10320
10321tpf*)
10322 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10323 version_type=linux
10324 need_lib_prefix=no
10325 need_version=no
718a6fd8 10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10327 shlibpath_var=LD_LIBRARY_PATH
10328 shlibpath_overrides_runpath=no
10329 hardcode_into_libs=yes
10330 ;;
10331
10332uts4*)
10333 version_type=linux
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 soname_spec='${libname}${release}${shared_ext}$major'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 ;;
10338
10339*)
10340 dynamic_linker=no
10341 ;;
10342esac
10343echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10344echo "${ECHO_T}$dynamic_linker" >&6
10345test "$dynamic_linker" = no && can_build_shared=no
10346
10347variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10348if test "$GCC" = yes; then
10349 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10350fi
10351
718a6fd8
SE
10352if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10353 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10354fi
10355if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10356 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10357fi
10358
d7040cdb
SE
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10446echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10447hardcode_action=
10448if test -n "$hardcode_libdir_flag_spec" ||
10449 test -n "$runpath_var" ||
10450 test "X$hardcode_automatic" = "Xyes" ; then
10451
10452 # We can hardcode non-existent directories.
10453 if test "$hardcode_direct" != no &&
10454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10455 # have to relink, otherwise we might link with an installed library
10456 # when we should be linking with a yet-to-be-installed one
10457 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10458 test "$hardcode_minus_L" != no; then
10459 # Linking always hardcodes the temporary library directory.
10460 hardcode_action=relink
10461 else
10462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10463 hardcode_action=immediate
10464 fi
10465else
10466 # We cannot hardcode anything, or else we can only hardcode existing
10467 # directories.
10468 hardcode_action=unsupported
10469fi
10470echo "$as_me:$LINENO: result: $hardcode_action" >&5
10471echo "${ECHO_T}$hardcode_action" >&6
10472
10473if test "$hardcode_action" = relink ||
10474 test "$inherit_rpath" = yes; then
10475 # Fast installation is not supported
10476 enable_fast_install=no
10477elif test "$shlibpath_overrides_runpath" = yes ||
10478 test "$enable_shared" = no; then
10479 # Fast installation is not necessary
10480 enable_fast_install=needless
10481fi
10482
10483
10484
10485
10486
10487
10488 if test "x$enable_dlopen" != xyes; then
10489 enable_dlopen=unknown
10490 enable_dlopen_self=unknown
10491 enable_dlopen_self_static=unknown
10492else
10493 lt_cv_dlopen=no
10494 lt_cv_dlopen_libs=
10495
10496 case $host_os in
10497 beos*)
10498 lt_cv_dlopen="load_add_on"
10499 lt_cv_dlopen_libs=
10500 lt_cv_dlopen_self=yes
10501 ;;
10502
718a6fd8 10503 mingw* | pw32* | cegcc*)
d7040cdb
SE
10504 lt_cv_dlopen="LoadLibrary"
10505 lt_cv_dlopen_libs=
10506 ;;
10507
10508 cygwin*)
10509 lt_cv_dlopen="dlopen"
10510 lt_cv_dlopen_libs=
10511 ;;
10512
10513 darwin*)
10514 # if libdl is installed we need to link against it
10515 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10516echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10517if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519else
10520 ac_check_lib_save_LIBS=$LIBS
10521LIBS="-ldl $LIBS"
10522cat >conftest.$ac_ext <<_ACEOF
10523/* confdefs.h. */
10524_ACEOF
10525cat confdefs.h >>conftest.$ac_ext
10526cat >>conftest.$ac_ext <<_ACEOF
10527/* end confdefs.h. */
10528
10529/* Override any gcc2 internal prototype to avoid an error. */
10530#ifdef __cplusplus
10531extern "C"
10532#endif
10533/* We use char because int might match the return type of a gcc2
10534 builtin and then its argument prototype would still apply. */
10535char dlopen ();
10536int
10537main ()
10538{
10539dlopen ();
10540 ;
10541 return 0;
10542}
10543_ACEOF
10544rm -f conftest.$ac_objext conftest$ac_exeext
10545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546 (eval $ac_link) 2>conftest.er1
10547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
7357c5b6
AM
10553 { ac_try='test -z "$ac_c_werror_flag"
10554 || test ! -s conftest.err'
d7040cdb
SE
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest$ac_exeext'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; }; then
10566 ac_cv_lib_dl_dlopen=yes
10567else
10568 echo "$as_me: failed program was:" >&5
10569sed 's/^/| /' conftest.$ac_ext >&5
10570
10571ac_cv_lib_dl_dlopen=no
10572fi
10573rm -f conftest.err conftest.$ac_objext \
10574 conftest$ac_exeext conftest.$ac_ext
10575LIBS=$ac_check_lib_save_LIBS
10576fi
10577echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10578echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10579if test $ac_cv_lib_dl_dlopen = yes; then
10580 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10581else
10582
10583 lt_cv_dlopen="dyld"
10584 lt_cv_dlopen_libs=
10585 lt_cv_dlopen_self=yes
10586
10587fi
10588
10589 ;;
10590
10591 *)
10592 echo "$as_me:$LINENO: checking for shl_load" >&5
10593echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10594if test "${ac_cv_func_shl_load+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10596else
10597 cat >conftest.$ac_ext <<_ACEOF
10598/* confdefs.h. */
10599_ACEOF
10600cat confdefs.h >>conftest.$ac_ext
10601cat >>conftest.$ac_ext <<_ACEOF
10602/* end confdefs.h. */
10603/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10605#define shl_load innocuous_shl_load
10606
10607/* System header to define __stub macros and hopefully few prototypes,
10608 which can conflict with char shl_load (); below.
10609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10610 <limits.h> exists even on freestanding compilers. */
10611
10612#ifdef __STDC__
10613# include <limits.h>
10614#else
10615# include <assert.h>
10616#endif
10617
10618#undef shl_load
10619
10620/* Override any gcc2 internal prototype to avoid an error. */
10621#ifdef __cplusplus
10622extern "C"
10623{
10624#endif
10625/* We use char because int might match the return type of a gcc2
10626 builtin and then its argument prototype would still apply. */
10627char shl_load ();
10628/* The GNU C library defines this for functions which it implements
10629 to always fail with ENOSYS. Some functions are actually named
10630 something starting with __ and the normal name is an alias. */
10631#if defined (__stub_shl_load) || defined (__stub___shl_load)
10632choke me
10633#else
10634char (*f) () = shl_load;
10635#endif
10636#ifdef __cplusplus
10637}
10638#endif
10639
10640int
10641main ()
10642{
10643return f != shl_load;
10644 ;
10645 return 0;
10646}
10647_ACEOF
10648rm -f conftest.$ac_objext conftest$ac_exeext
10649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10650 (eval $ac_link) 2>conftest.er1
10651 ac_status=$?
10652 grep -v '^ *+' conftest.er1 >conftest.err
10653 rm -f conftest.er1
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } &&
7357c5b6
AM
10657 { ac_try='test -z "$ac_c_werror_flag"
10658 || test ! -s conftest.err'
d7040cdb
SE
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10667 ac_status=$?
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 ac_cv_func_shl_load=yes
10671else
10672 echo "$as_me: failed program was:" >&5
10673sed 's/^/| /' conftest.$ac_ext >&5
10674
10675ac_cv_func_shl_load=no
10676fi
10677rm -f conftest.err conftest.$ac_objext \
10678 conftest$ac_exeext conftest.$ac_ext
10679fi
10680echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10681echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10682if test $ac_cv_func_shl_load = yes; then
10683 lt_cv_dlopen="shl_load"
10684else
10685 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10686echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10687if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10689else
10690 ac_check_lib_save_LIBS=$LIBS
10691LIBS="-ldld $LIBS"
10692cat >conftest.$ac_ext <<_ACEOF
10693/* confdefs.h. */
10694_ACEOF
10695cat confdefs.h >>conftest.$ac_ext
10696cat >>conftest.$ac_ext <<_ACEOF
10697/* end confdefs.h. */
10698
10699/* Override any gcc2 internal prototype to avoid an error. */
10700#ifdef __cplusplus
10701extern "C"
10702#endif
10703/* We use char because int might match the return type of a gcc2
10704 builtin and then its argument prototype would still apply. */
10705char shl_load ();
10706int
10707main ()
10708{
10709shl_load ();
10710 ;
10711 return 0;
10712}
10713_ACEOF
10714rm -f conftest.$ac_objext conftest$ac_exeext
10715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10716 (eval $ac_link) 2>conftest.er1
10717 ac_status=$?
10718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
7357c5b6
AM
10723 { ac_try='test -z "$ac_c_werror_flag"
10724 || test ! -s conftest.err'
d7040cdb
SE
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest$ac_exeext'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_lib_dld_shl_load=yes
10737else
10738 echo "$as_me: failed program was:" >&5
10739sed 's/^/| /' conftest.$ac_ext >&5
10740
10741ac_cv_lib_dld_shl_load=no
10742fi
10743rm -f conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745LIBS=$ac_check_lib_save_LIBS
10746fi
10747echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10748echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10749if test $ac_cv_lib_dld_shl_load = yes; then
718a6fd8 10750 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
10751else
10752 echo "$as_me:$LINENO: checking for dlopen" >&5
10753echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10754if test "${ac_cv_func_dlopen+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10756else
10757 cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h. */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
10762/* end confdefs.h. */
10763/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10765#define dlopen innocuous_dlopen
10766
10767/* System header to define __stub macros and hopefully few prototypes,
10768 which can conflict with char dlopen (); below.
10769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10770 <limits.h> exists even on freestanding compilers. */
10771
10772#ifdef __STDC__
10773# include <limits.h>
10774#else
10775# include <assert.h>
10776#endif
10777
10778#undef dlopen
10779
10780/* Override any gcc2 internal prototype to avoid an error. */
10781#ifdef __cplusplus
10782extern "C"
10783{
10784#endif
10785/* We use char because int might match the return type of a gcc2
10786 builtin and then its argument prototype would still apply. */
10787char dlopen ();
10788/* The GNU C library defines this for functions which it implements
10789 to always fail with ENOSYS. Some functions are actually named
10790 something starting with __ and the normal name is an alias. */
10791#if defined (__stub_dlopen) || defined (__stub___dlopen)
10792choke me
10793#else
10794char (*f) () = dlopen;
10795#endif
10796#ifdef __cplusplus
10797}
10798#endif
10799
10800int
10801main ()
10802{
10803return f != dlopen;
10804 ;
10805 return 0;
10806}
10807_ACEOF
10808rm -f conftest.$ac_objext conftest$ac_exeext
10809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810 (eval $ac_link) 2>conftest.er1
10811 ac_status=$?
10812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
7357c5b6
AM
10817 { ac_try='test -z "$ac_c_werror_flag"
10818 || test ! -s conftest.err'
d7040cdb
SE
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest$ac_exeext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_cv_func_dlopen=yes
10831else
10832 echo "$as_me: failed program was:" >&5
10833sed 's/^/| /' conftest.$ac_ext >&5
10834
10835ac_cv_func_dlopen=no
10836fi
10837rm -f conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10839fi
10840echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10841echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10842if test $ac_cv_func_dlopen = yes; then
10843 lt_cv_dlopen="dlopen"
10844else
10845 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10846echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10847if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850 ac_check_lib_save_LIBS=$LIBS
10851LIBS="-ldl $LIBS"
10852cat >conftest.$ac_ext <<_ACEOF
10853/* confdefs.h. */
10854_ACEOF
10855cat confdefs.h >>conftest.$ac_ext
10856cat >>conftest.$ac_ext <<_ACEOF
10857/* end confdefs.h. */
10858
10859/* Override any gcc2 internal prototype to avoid an error. */
10860#ifdef __cplusplus
10861extern "C"
10862#endif
10863/* We use char because int might match the return type of a gcc2
10864 builtin and then its argument prototype would still apply. */
10865char dlopen ();
10866int
10867main ()
10868{
10869dlopen ();
10870 ;
10871 return 0;
10872}
10873_ACEOF
10874rm -f conftest.$ac_objext conftest$ac_exeext
10875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10876 (eval $ac_link) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
7357c5b6
AM
10883 { ac_try='test -z "$ac_c_werror_flag"
10884 || test ! -s conftest.err'
d7040cdb
SE
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest$ac_exeext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 ac_cv_lib_dl_dlopen=yes
10897else
10898 echo "$as_me: failed program was:" >&5
10899sed 's/^/| /' conftest.$ac_ext >&5
10900
10901ac_cv_lib_dl_dlopen=no
10902fi
10903rm -f conftest.err conftest.$ac_objext \
10904 conftest$ac_exeext conftest.$ac_ext
10905LIBS=$ac_check_lib_save_LIBS
10906fi
10907echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10908echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10909if test $ac_cv_lib_dl_dlopen = yes; then
10910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10911else
10912 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10913echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10914if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10916else
10917 ac_check_lib_save_LIBS=$LIBS
10918LIBS="-lsvld $LIBS"
10919cat >conftest.$ac_ext <<_ACEOF
10920/* confdefs.h. */
10921_ACEOF
10922cat confdefs.h >>conftest.$ac_ext
10923cat >>conftest.$ac_ext <<_ACEOF
10924/* end confdefs.h. */
10925
10926/* Override any gcc2 internal prototype to avoid an error. */
10927#ifdef __cplusplus
10928extern "C"
10929#endif
10930/* We use char because int might match the return type of a gcc2
10931 builtin and then its argument prototype would still apply. */
10932char dlopen ();
10933int
10934main ()
10935{
10936dlopen ();
10937 ;
10938 return 0;
10939}
10940_ACEOF
10941rm -f conftest.$ac_objext conftest$ac_exeext
10942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10943 (eval $ac_link) 2>conftest.er1
10944 ac_status=$?
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
7357c5b6
AM
10950 { ac_try='test -z "$ac_c_werror_flag"
10951 || test ! -s conftest.err'
d7040cdb
SE
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest$ac_exeext'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 ac_cv_lib_svld_dlopen=yes
10964else
10965 echo "$as_me: failed program was:" >&5
10966sed 's/^/| /' conftest.$ac_ext >&5
10967
10968ac_cv_lib_svld_dlopen=no
10969fi
10970rm -f conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10972LIBS=$ac_check_lib_save_LIBS
10973fi
10974echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10975echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10976if test $ac_cv_lib_svld_dlopen = yes; then
10977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10978else
10979 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10980echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10981if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983else
10984 ac_check_lib_save_LIBS=$LIBS
10985LIBS="-ldld $LIBS"
10986cat >conftest.$ac_ext <<_ACEOF
10987/* confdefs.h. */
10988_ACEOF
10989cat confdefs.h >>conftest.$ac_ext
10990cat >>conftest.$ac_ext <<_ACEOF
10991/* end confdefs.h. */
10992
10993/* Override any gcc2 internal prototype to avoid an error. */
10994#ifdef __cplusplus
10995extern "C"
10996#endif
10997/* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
10999char dld_link ();
11000int
11001main ()
11002{
11003dld_link ();
11004 ;
11005 return 0;
11006}
11007_ACEOF
11008rm -f conftest.$ac_objext conftest$ac_exeext
11009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11010 (eval $ac_link) 2>conftest.er1
11011 ac_status=$?
11012 grep -v '^ *+' conftest.er1 >conftest.err
11013 rm -f conftest.er1
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } &&
7357c5b6
AM
11017 { ac_try='test -z "$ac_c_werror_flag"
11018 || test ! -s conftest.err'
d7040cdb
SE
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest$ac_exeext'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; }; then
11030 ac_cv_lib_dld_dld_link=yes
11031else
11032 echo "$as_me: failed program was:" >&5
11033sed 's/^/| /' conftest.$ac_ext >&5
11034
11035ac_cv_lib_dld_dld_link=no
11036fi
11037rm -f conftest.err conftest.$ac_objext \
11038 conftest$ac_exeext conftest.$ac_ext
11039LIBS=$ac_check_lib_save_LIBS
11040fi
11041echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11042echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11043if test $ac_cv_lib_dld_dld_link = yes; then
718a6fd8 11044 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11045fi
11046
11047
11048fi
11049
11050
11051fi
11052
11053
11054fi
11055
11056
11057fi
11058
11059
11060fi
11061
11062 ;;
11063 esac
11064
11065 if test "x$lt_cv_dlopen" != xno; then
11066 enable_dlopen=yes
20e95c23 11067 else
d7040cdb 11068 enable_dlopen=no
252b5132 11069 fi
5464f5a1 11070
d7040cdb
SE
11071 case $lt_cv_dlopen in
11072 dlopen)
11073 save_CPPFLAGS="$CPPFLAGS"
11074 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11075
11076 save_LDFLAGS="$LDFLAGS"
11077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11078
11079 save_LIBS="$LIBS"
11080 LIBS="$lt_cv_dlopen_libs $LIBS"
11081
11082 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11083echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11084if test "${lt_cv_dlopen_self+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 11086else
d7040cdb
SE
11087 if test "$cross_compiling" = yes; then :
11088 lt_cv_dlopen_self=cross
11089else
11090 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11091 lt_status=$lt_dlunknown
11092 cat > conftest.$ac_ext <<_LT_EOF
ce3c775b 11093#line 11093 "configure"
d7040cdb
SE
11094#include "confdefs.h"
11095
11096#if HAVE_DLFCN_H
11097#include <dlfcn.h>
11098#endif
11099
11100#include <stdio.h>
11101
11102#ifdef RTLD_GLOBAL
11103# define LT_DLGLOBAL RTLD_GLOBAL
11104#else
11105# ifdef DL_GLOBAL
11106# define LT_DLGLOBAL DL_GLOBAL
11107# else
11108# define LT_DLGLOBAL 0
11109# endif
11110#endif
11111
11112/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11113 find out it does not work in some platform. */
11114#ifndef LT_DLLAZY_OR_NOW
11115# ifdef RTLD_LAZY
11116# define LT_DLLAZY_OR_NOW RTLD_LAZY
11117# else
11118# ifdef DL_LAZY
11119# define LT_DLLAZY_OR_NOW DL_LAZY
11120# else
11121# ifdef RTLD_NOW
11122# define LT_DLLAZY_OR_NOW RTLD_NOW
11123# else
11124# ifdef DL_NOW
11125# define LT_DLLAZY_OR_NOW DL_NOW
11126# else
11127# define LT_DLLAZY_OR_NOW 0
11128# endif
11129# endif
11130# endif
11131# endif
11132#endif
11133
d7040cdb
SE
11134void fnord() { int i=42;}
11135int main ()
11136{
11137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11138 int status = $lt_dlunknown;
11139
11140 if (self)
11141 {
11142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11143 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11144 /* dlclose (self); */
11145 }
11146 else
11147 puts (dlerror ());
11148
718a6fd8 11149 return status;
d7040cdb
SE
11150}
11151_LT_EOF
11152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153 (eval $ac_link) 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11157 (./conftest; exit; ) >&5 2>/dev/null
11158 lt_status=$?
11159 case x$lt_status in
11160 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11161 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11162 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11163 esac
11164 else :
11165 # compilation failed
11166 lt_cv_dlopen_self=no
11167 fi
252b5132 11168fi
d7040cdb 11169rm -fr conftest*
20e95c23 11170
d7040cdb
SE
11171
11172fi
11173echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11174echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11175
11176 if test "x$lt_cv_dlopen_self" = xyes; then
11177 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11178 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11179echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11180if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182else
d7040cdb
SE
11183 if test "$cross_compiling" = yes; then :
11184 lt_cv_dlopen_self_static=cross
11185else
11186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11187 lt_status=$lt_dlunknown
11188 cat > conftest.$ac_ext <<_LT_EOF
ce3c775b 11189#line 11189 "configure"
d7040cdb
SE
11190#include "confdefs.h"
11191
11192#if HAVE_DLFCN_H
11193#include <dlfcn.h>
11194#endif
11195
11196#include <stdio.h>
11197
11198#ifdef RTLD_GLOBAL
11199# define LT_DLGLOBAL RTLD_GLOBAL
11200#else
11201# ifdef DL_GLOBAL
11202# define LT_DLGLOBAL DL_GLOBAL
11203# else
11204# define LT_DLGLOBAL 0
11205# endif
11206#endif
11207
11208/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11209 find out it does not work in some platform. */
11210#ifndef LT_DLLAZY_OR_NOW
11211# ifdef RTLD_LAZY
11212# define LT_DLLAZY_OR_NOW RTLD_LAZY
11213# else
11214# ifdef DL_LAZY
11215# define LT_DLLAZY_OR_NOW DL_LAZY
11216# else
11217# ifdef RTLD_NOW
11218# define LT_DLLAZY_OR_NOW RTLD_NOW
11219# else
11220# ifdef DL_NOW
11221# define LT_DLLAZY_OR_NOW DL_NOW
11222# else
11223# define LT_DLLAZY_OR_NOW 0
11224# endif
11225# endif
11226# endif
11227# endif
11228#endif
11229
d7040cdb
SE
11230void fnord() { int i=42;}
11231int main ()
11232{
11233 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11234 int status = $lt_dlunknown;
11235
11236 if (self)
11237 {
11238 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11239 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11240 /* dlclose (self); */
11241 }
11242 else
11243 puts (dlerror ());
11244
718a6fd8 11245 return status;
d7040cdb
SE
11246}
11247_LT_EOF
11248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11249 (eval $ac_link) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11253 (./conftest; exit; ) >&5 2>/dev/null
11254 lt_status=$?
11255 case x$lt_status in
11256 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11257 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11258 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11259 esac
11260 else :
11261 # compilation failed
11262 lt_cv_dlopen_self_static=no
11263 fi
11264fi
11265rm -fr conftest*
11266
11267
11268fi
11269echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11270echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11271 fi
11272
11273 CPPFLAGS="$save_CPPFLAGS"
11274 LDFLAGS="$save_LDFLAGS"
11275 LIBS="$save_LIBS"
11276 ;;
11277 esac
11278
11279 case $lt_cv_dlopen_self in
11280 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11281 *) enable_dlopen_self=unknown ;;
11282 esac
11283
11284 case $lt_cv_dlopen_self_static in
11285 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11286 *) enable_dlopen_self_static=unknown ;;
11287 esac
11288fi
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306striplib=
11307old_striplib=
11308echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11309echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11310if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11311 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11312 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11313 echo "$as_me:$LINENO: result: yes" >&5
11314echo "${ECHO_T}yes" >&6
11315else
11316# FIXME - insert some real tests, host_os isn't really good enough
11317 case $host_os in
11318 darwin*)
11319 if test -n "$STRIP" ; then
11320 striplib="$STRIP -x"
11321 old_striplib="$STRIP -S"
11322 echo "$as_me:$LINENO: result: yes" >&5
11323echo "${ECHO_T}yes" >&6
11324 else
11325 echo "$as_me:$LINENO: result: no" >&5
11326echo "${ECHO_T}no" >&6
11327 fi
20e95c23
DJ
11328 ;;
11329 *)
d7040cdb
SE
11330 echo "$as_me:$LINENO: result: no" >&5
11331echo "${ECHO_T}no" >&6
11332 ;;
11333 esac
11334fi
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347 # Report which library types will actually be built
11348 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11349echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11350 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11351echo "${ECHO_T}$can_build_shared" >&6
11352
11353 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11354echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11355 test "$can_build_shared" = "no" && enable_shared=no
11356
11357 # On AIX, shared libraries and static libraries use the same namespace, and
11358 # are all built from PIC.
11359 case $host_os in
11360 aix3*)
11361 test "$enable_shared" = yes && enable_static=no
11362 if test -n "$RANLIB"; then
11363 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11364 postinstall_cmds='$RANLIB $lib'
11365 fi
11366 ;;
11367
e81819a5 11368 aix[4-9]*)
d7040cdb
SE
11369 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11370 test "$enable_shared" = yes && enable_static=no
11371 fi
20e95c23 11372 ;;
d7040cdb
SE
11373 esac
11374 echo "$as_me:$LINENO: result: $enable_shared" >&5
11375echo "${ECHO_T}$enable_shared" >&6
11376
11377 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11378echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11379 # Make sure either enable_shared or enable_static is yes.
11380 test "$enable_shared" = yes || enable_static=yes
11381 echo "$as_me:$LINENO: result: $enable_static" >&5
11382echo "${ECHO_T}$enable_static" >&6
11383
11384
11385
11386
11387fi
11388ac_ext=c
11389ac_cpp='$CPP $CPPFLAGS'
11390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11392ac_compiler_gnu=$ac_cv_c_compiler_gnu
11393
11394CC="$lt_save_CC"
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
ce3c775b
NC
11408 ac_config_commands="$ac_config_commands libtool"
11409
11410
11411
11412
11413# Only expand once:
11414
11415
11416
5691d22d 11417
ce3c775b
NC
11418# Check whether --enable-plugins or --disable-plugins was given.
11419if test "${enable_plugins+set}" = set; then
11420 enableval="$enable_plugins"
11421 case "${enableval}" in
11422 yes | "") plugins=yes ;;
11423 no) plugins=no ;;
11424 *) plugins=yes ;;
11425 esac
11426else
11427 plugins=no
11428fi;
11429
11430
11431
5691d22d 11432
ce3c775b
NC
11433if test "$plugins" = "yes"; then
11434 PLUGINS_TRUE=
11435 PLUGINS_FALSE='#'
11436else
11437 PLUGINS_TRUE='#'
11438 PLUGINS_FALSE=
11439fi
11440
11441
11442if test "$plugins" = "yes"; then
11443 if test "$enable_dlopen" != "yes" ; then
11444 { { echo "$as_me:$LINENO: error:
11445 Building BFD with plugin support requires a host that supports -ldl." >&5
11446echo "$as_me: error:
11447 Building BFD with plugin support requires a host that supports -ldl." >&2;}
11448 { (exit 1); exit 1; }; }
11449 fi
11450 enable_targets="$enable_targets plugin"
11451fi
11452
11453case "${target}" in
11454 sparc-*-solaris*|i[3-7]86-*-solaris*)
11455 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11456 # are mutually exclusive; and without procfs support, the elf module
11457 # cannot provide certain routines such as elfcore_write_prpsinfo
11458 # or elfcore_write_prstatus. So unless the user explicitly requested
11459 # large-file support through the --enable-largefile switch, disable
11460 # large-file support in favor of procfs support.
11461 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
11462 if test "$plugins" = "no"; then
11463 enable_largefile="no"
11464 fi
11465 fi
11466 ;;
11467esac
11468
11469# Check whether --enable-largefile or --disable-largefile was given.
11470if test "${enable_largefile+set}" = set; then
11471 enableval="$enable_largefile"
11472
11473fi;
11474if test "$enable_largefile" != no; then
11475
11476 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
11477echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
11478if test "${ac_cv_sys_largefile_CC+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480else
11481 ac_cv_sys_largefile_CC=no
11482 if test "$GCC" != yes; then
11483 ac_save_CC=$CC
11484 while :; do
11485 # IRIX 6.2 and later do not support large files by default,
11486 # so use the C compiler's -n32 option if that helps.
11487 cat >conftest.$ac_ext <<_ACEOF
11488/* confdefs.h. */
11489_ACEOF
11490cat confdefs.h >>conftest.$ac_ext
11491cat >>conftest.$ac_ext <<_ACEOF
11492/* end confdefs.h. */
11493#include <sys/types.h>
11494 /* Check that off_t can represent 2**63 - 1 correctly.
11495 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11496 since some C++ compilers masquerading as C compilers
11497 incorrectly reject 9223372036854775807. */
11498#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11499 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11500 && LARGE_OFF_T % 2147483647 == 1)
11501 ? 1 : -1];
11502int
11503main ()
11504{
11505
11506 ;
11507 return 0;
11508}
11509_ACEOF
11510 rm -f conftest.$ac_objext
11511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11512 (eval $ac_compile) 2>conftest.er1
11513 ac_status=$?
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -z "$ac_c_werror_flag"
11520 || test ! -s conftest.err'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; } &&
11526 { ac_try='test -s conftest.$ac_objext'
11527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528 (eval $ac_try) 2>&5
11529 ac_status=$?
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 break
11533else
11534 echo "$as_me: failed program was:" >&5
11535sed 's/^/| /' conftest.$ac_ext >&5
11536
11537fi
11538rm -f conftest.err conftest.$ac_objext
11539 CC="$CC -n32"
11540 rm -f conftest.$ac_objext
11541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11542 (eval $ac_compile) 2>conftest.er1
11543 ac_status=$?
11544 grep -v '^ *+' conftest.er1 >conftest.err
11545 rm -f conftest.er1
11546 cat conftest.err >&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
11549 { ac_try='test -z "$ac_c_werror_flag"
11550 || test ! -s conftest.err'
11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 (eval $ac_try) 2>&5
11553 ac_status=$?
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; } &&
11556 { ac_try='test -s conftest.$ac_objext'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; }; then
11562 ac_cv_sys_largefile_CC=' -n32'; break
11563else
11564 echo "$as_me: failed program was:" >&5
11565sed 's/^/| /' conftest.$ac_ext >&5
11566
11567fi
11568rm -f conftest.err conftest.$ac_objext
11569 break
11570 done
11571 CC=$ac_save_CC
11572 rm -f conftest.$ac_ext
11573 fi
11574fi
11575echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
11576echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
11577 if test "$ac_cv_sys_largefile_CC" != no; then
11578 CC=$CC$ac_cv_sys_largefile_CC
11579 fi
11580
11581 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11582echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
11583if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585else
11586 while :; do
11587 ac_cv_sys_file_offset_bits=no
11588 cat >conftest.$ac_ext <<_ACEOF
11589/* confdefs.h. */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h. */
11594#include <sys/types.h>
11595 /* Check that off_t can represent 2**63 - 1 correctly.
11596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11597 since some C++ compilers masquerading as C compilers
11598 incorrectly reject 9223372036854775807. */
11599#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11601 && LARGE_OFF_T % 2147483647 == 1)
11602 ? 1 : -1];
11603int
11604main ()
11605{
11606
11607 ;
11608 return 0;
11609}
11610_ACEOF
11611rm -f conftest.$ac_objext
11612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11613 (eval $ac_compile) 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
11620 { ac_try='test -z "$ac_c_werror_flag"
11621 || test ! -s conftest.err'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; } &&
11627 { ac_try='test -s conftest.$ac_objext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 break
11634else
11635 echo "$as_me: failed program was:" >&5
11636sed 's/^/| /' conftest.$ac_ext >&5
11637
11638fi
11639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11640 cat >conftest.$ac_ext <<_ACEOF
11641/* confdefs.h. */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h. */
11646#define _FILE_OFFSET_BITS 64
11647#include <sys/types.h>
11648 /* Check that off_t can represent 2**63 - 1 correctly.
11649 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11650 since some C++ compilers masquerading as C compilers
11651 incorrectly reject 9223372036854775807. */
11652#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11653 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11654 && LARGE_OFF_T % 2147483647 == 1)
11655 ? 1 : -1];
11656int
11657main ()
11658{
11659
11660 ;
11661 return 0;
11662}
11663_ACEOF
11664rm -f conftest.$ac_objext
11665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11666 (eval $ac_compile) 2>conftest.er1
11667 ac_status=$?
11668 grep -v '^ *+' conftest.er1 >conftest.err
11669 rm -f conftest.er1
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try='test -z "$ac_c_werror_flag"
11674 || test ! -s conftest.err'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; } &&
11680 { ac_try='test -s conftest.$ac_objext'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11683 ac_status=$?
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 ac_cv_sys_file_offset_bits=64; break
11687else
11688 echo "$as_me: failed program was:" >&5
11689sed 's/^/| /' conftest.$ac_ext >&5
11690
11691fi
11692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11693 break
11694done
11695fi
11696echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11697echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11698if test "$ac_cv_sys_file_offset_bits" != no; then
11699
11700cat >>confdefs.h <<_ACEOF
11701#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11702_ACEOF
11703
11704fi
11705rm -f conftest*
11706 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
11707echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
11708if test "${ac_cv_sys_large_files+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710else
11711 while :; do
11712 ac_cv_sys_large_files=no
11713 cat >conftest.$ac_ext <<_ACEOF
11714/* confdefs.h. */
11715_ACEOF
11716cat confdefs.h >>conftest.$ac_ext
11717cat >>conftest.$ac_ext <<_ACEOF
11718/* end confdefs.h. */
11719#include <sys/types.h>
11720 /* Check that off_t can represent 2**63 - 1 correctly.
11721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11722 since some C++ compilers masquerading as C compilers
11723 incorrectly reject 9223372036854775807. */
11724#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11726 && LARGE_OFF_T % 2147483647 == 1)
11727 ? 1 : -1];
11728int
11729main ()
11730{
11731
11732 ;
11733 return 0;
11734}
11735_ACEOF
11736rm -f conftest.$ac_objext
11737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11738 (eval $ac_compile) 2>conftest.er1
11739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -z "$ac_c_werror_flag"
11746 || test ! -s conftest.err'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; } &&
11752 { ac_try='test -s conftest.$ac_objext'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 break
11759else
11760 echo "$as_me: failed program was:" >&5
11761sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 11762
ce3c775b
NC
11763fi
11764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11765 cat >conftest.$ac_ext <<_ACEOF
11766/* confdefs.h. */
11767_ACEOF
11768cat confdefs.h >>conftest.$ac_ext
11769cat >>conftest.$ac_ext <<_ACEOF
11770/* end confdefs.h. */
11771#define _LARGE_FILES 1
11772#include <sys/types.h>
11773 /* Check that off_t can represent 2**63 - 1 correctly.
11774 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11775 since some C++ compilers masquerading as C compilers
11776 incorrectly reject 9223372036854775807. */
11777#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11778 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11779 && LARGE_OFF_T % 2147483647 == 1)
11780 ? 1 : -1];
11781int
11782main ()
11783{
d7040cdb 11784
ce3c775b
NC
11785 ;
11786 return 0;
11787}
11788_ACEOF
11789rm -f conftest.$ac_objext
11790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag"
11799 || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 ac_cv_sys_large_files=1; break
11812else
11813 echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 11815
ce3c775b
NC
11816fi
11817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11818 break
11819done
11820fi
11821echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11822echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11823if test "$ac_cv_sys_large_files" != no; then
d7040cdb 11824
ce3c775b
NC
11825cat >>confdefs.h <<_ACEOF
11826#define _LARGE_FILES $ac_cv_sys_large_files
11827_ACEOF
d7040cdb 11828
ce3c775b
NC
11829fi
11830rm -f conftest*
11831fi
d7040cdb
SE
11832
11833
11834# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11835if test "${enable_64_bit_bfd+set}" = set; then
11836 enableval="$enable_64_bit_bfd"
11837 case "${enableval}" in
11838 yes) want64=true ;;
11839 no) want64=false ;;
11840 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11841echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11842 { (exit 1); exit 1; }; } ;;
11843esac
11844else
11845 want64=false
504b7d20
NC
11846fi;
11847# Check whether --enable-targets or --disable-targets was given.
d7040cdb
SE
11848if test "${enable_targets+set}" = set; then
11849 enableval="$enable_targets"
11850 case "${enableval}" in
11851 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11852echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11853 { (exit 1); exit 1; }; }
11854 ;;
11855 no) enable_targets= ;;
11856 *) enable_targets=$enableval ;;
11857esac
504b7d20 11858fi;
504b7d20 11859
d7040cdb
SE
11860# Check whether --with-mmap or --without-mmap was given.
11861if test "${with_mmap+set}" = set; then
11862 withval="$with_mmap"
11863 case "${withval}" in
11864 yes) want_mmap=true ;;
11865 no) want_mmap=false ;;
11866 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11867echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11868 { (exit 1); exit 1; }; } ;;
20e95c23 11869esac
252b5132 11870else
d7040cdb
SE
11871 want_mmap=false
11872fi;
11873# Check whether --enable-secureplt or --disable-secureplt was given.
11874if test "${enable_secureplt+set}" = set; then
11875 enableval="$enable_secureplt"
11876 case "${enableval}" in
11877 yes) use_secureplt=true ;;
11878 no) use_secureplt=false ;;
11879 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11880echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11881 { (exit 1); exit 1; }; } ;;
11882esac
252b5132 11883else
d7040cdb
SE
11884 use_secureplt=false
11885fi; if test $use_secureplt = true; then
11886
11887cat >>confdefs.h <<\_ACEOF
11888#define USE_SECUREPLT 1
11889_ACEOF
5464f5a1 11890
252b5132 11891fi
20e95c23 11892
0d4a1476
AS
11893DEBUGDIR=${libdir}/debug
11894
0d4a1476
AS
11895# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11896if test "${with_separate_debug_dir+set}" = set; then
11897 withval="$with_separate_debug_dir"
11898 DEBUGDIR="${withval}"
11899fi;
11900
11901
504b7d20
NC
11902# Check to see if we should allow the generation of
11903# symbols with the ELF standard's STT_COMMON type.
11904# Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11905if test "${enable_elf_stt_common+set}" = set; then
11906 enableval="$enable_elf_stt_common"
11907 case "${enableval}" in
11908 yes) want_elf_stt_common=true ;;
11909 no) want_elf_stt_common=false ;;
11910 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11911echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11912 { (exit 1); exit 1; }; } ;;
11913 esac
11914else
11915 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
11916# test whether the loader supports the STT_COMMON type, but that would
11917# mean that built binaries could not be exported to older systems where
11918# the loader does not support it. So by default we always choose to
11919# disable this feature.
504b7d20 11920 want_elf_stt_common=false
504b7d20
NC
11921fi; if test $want_elf_stt_common = true; then
11922
11923cat >>confdefs.h <<\_ACEOF
11924#define USE_STT_COMMON 1
11925_ACEOF
11926
11927fi
11928
11929
d7040cdb 11930
d7040cdb
SE
11931# Check whether --with-pkgversion or --without-pkgversion was given.
11932if test "${with_pkgversion+set}" = set; then
11933 withval="$with_pkgversion"
11934 case "$withval" in
11935 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11936echo "$as_me: error: package version not specified" >&2;}
11937 { (exit 1); exit 1; }; } ;;
11938 no) PKGVERSION= ;;
11939 *) PKGVERSION="($withval) " ;;
11940 esac
252b5132 11941else
d7040cdb 11942 PKGVERSION="(GNU Binutils) "
252b5132 11943
d7040cdb 11944fi;
20e95c23
DJ
11945
11946
5464f5a1 11947
20e95c23 11948
d7040cdb
SE
11949# Check whether --with-bugurl or --without-bugurl was given.
11950if test "${with_bugurl+set}" = set; then
11951 withval="$with_bugurl"
11952 case "$withval" in
11953 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11954echo "$as_me: error: bug URL not specified" >&2;}
11955 { (exit 1); exit 1; }; } ;;
11956 no) BUGURL=
11957 ;;
11958 *) BUGURL="$withval"
11959 ;;
11960 esac
252b5132 11961else
d7040cdb
SE
11962 BUGURL="http://www.sourceware.org/bugzilla/"
11963
11964fi;
11965 case ${BUGURL} in
11966 "")
11967 REPORT_BUGS_TO=
11968 REPORT_BUGS_TEXI=
20e95c23
DJ
11969 ;;
11970 *)
d7040cdb
SE
11971 REPORT_BUGS_TO="<$BUGURL>"
11972 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 11973 ;;
d7040cdb
SE
11974 esac;
11975
11976
11977
11978
11979
11980GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11981
11982# Check whether --enable-werror or --disable-werror was given.
11983if test "${enable_werror+set}" = set; then
11984 enableval="$enable_werror"
11985 case "${enableval}" in
11986 yes | y) ERROR_ON_WARNING="yes" ;;
11987 no | n) ERROR_ON_WARNING="no" ;;
11988 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11989echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11990 { (exit 1); exit 1; }; } ;;
11991 esac
11992fi;
11993
bb8541b9
L
11994# Enable -Wno-format by default when using gcc on mingw
11995case "${host}" in
11996 *-*-mingw32*)
11997 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11998 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11999 fi
12000 ;;
12001 *) ;;
12002esac
12003
d7040cdb
SE
12004# Enable -Werror by default when using gcc
12005if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12006 ERROR_ON_WARNING=yes
12007fi
12008
12009NO_WERROR=
12010if test "${ERROR_ON_WARNING}" = yes ; then
12011 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12012 NO_WERROR="-Wno-error"
12013fi
12014
12015if test "${GCC}" = yes ; then
12016 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12017fi
12018
12019# Check whether --enable-build-warnings or --disable-build-warnings was given.
12020if test "${enable_build_warnings+set}" = set; then
12021 enableval="$enable_build_warnings"
12022 case "${enableval}" in
12023 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12024 no) if test "${GCC}" = yes ; then
12025 WARN_CFLAGS="-w"
12026 fi;;
12027 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12028 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12029 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12030 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12031 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 12032esac
d7040cdb
SE
12033fi;
12034
12035if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12036 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 12037fi
d7040cdb
SE
12038
12039
12040
12041
12042
12043 ac_config_headers="$ac_config_headers config.h:config.in"
12044
12045
12046if test -z "$target" ; then
12047 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
12048echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
12049 { (exit 1); exit 1; }; }
20e95c23
DJ
12050fi
12051
d7040cdb
SE
12052echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12053echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12054 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12055if test "${enable_maintainer_mode+set}" = set; then
12056 enableval="$enable_maintainer_mode"
12057 USE_MAINTAINER_MODE=$enableval
12058else
12059 USE_MAINTAINER_MODE=no
12060fi;
12061 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12062echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
12063
12064
d7040cdb
SE
12065if test $USE_MAINTAINER_MODE = yes; then
12066 MAINTAINER_MODE_TRUE=
12067 MAINTAINER_MODE_FALSE='#'
12068else
12069 MAINTAINER_MODE_TRUE='#'
12070 MAINTAINER_MODE_FALSE=
6be7c12c 12071fi
5464f5a1 12072
d7040cdb
SE
12073 MAINT=$MAINTAINER_MODE_TRUE
12074
12075
12076
12077
12078if false; then
12079 GENINSRC_NEVER_TRUE=
12080 GENINSRC_NEVER_FALSE='#'
20e95c23 12081else
d7040cdb
SE
12082 GENINSRC_NEVER_TRUE='#'
12083 GENINSRC_NEVER_FALSE=
5464f5a1 12084fi
5464f5a1 12085
d7040cdb
SE
12086 case ${build_alias} in
12087 "") build_noncanonical=${build} ;;
12088 *) build_noncanonical=${build_alias} ;;
20e95c23 12089esac
d7040cdb
SE
12090
12091 case ${host_alias} in
12092 "") host_noncanonical=${build_noncanonical} ;;
12093 *) host_noncanonical=${host_alias} ;;
12094esac
12095
12096 case ${target_alias} in
12097 "") target_noncanonical=${host_noncanonical} ;;
12098 *) target_noncanonical=${target_alias} ;;
12099esac
12100
12101echo "$as_me:$LINENO: checking whether to install libbfd" >&5
12102echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
12103 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
12104if test "${enable_install_libbfd+set}" = set; then
12105 enableval="$enable_install_libbfd"
12106 install_libbfd_p=$enableval
252b5132 12107else
d7040cdb
SE
12108 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12109 install_libbfd_p=yes
12110 else
12111 install_libbfd_p=no
12112 fi
12113fi;
12114 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
12115echo "${ECHO_T}$install_libbfd_p" >&6
12116
12117
12118if test $install_libbfd_p = yes; then
12119 INSTALL_LIBBFD_TRUE=
12120 INSTALL_LIBBFD_FALSE='#'
12121else
12122 INSTALL_LIBBFD_TRUE='#'
12123 INSTALL_LIBBFD_FALSE=
5464f5a1 12124fi
5464f5a1 12125
d7040cdb 12126 # Need _noncanonical variables for this.
5464f5a1 12127
5464f5a1 12128
d7040cdb
SE
12129
12130
12131 # libbfd.a is a host library containing target dependent code
12132 bfdlibdir='$(libdir)'
12133 bfdincludedir='$(includedir)'
12134 if test "${host}" != "${target}"; then
12135 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12136 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 12137 fi
6be7c12c 12138
5464f5a1 12139
5464f5a1
NN
12140
12141
5464f5a1 12142
ac48eca1 12143
d7040cdb
SE
12144host64=false
12145target64=false
12146bfd_default_target_size=32
252b5132 12147
d7040cdb 12148# host stuff:
20e95c23 12149
ec68b083 12150ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru"
d7040cdb
SE
12151# If we haven't got the data from the intl directory,
12152# assume NLS is disabled.
12153USE_NLS=no
12154LIBINTL=
12155LIBINTL_DEP=
12156INCINTL=
12157XGETTEXT=
12158GMSGFMT=
12159POSUB=
12160
12161if test -f ../intl/config.intl; then
12162 . ../intl/config.intl
252b5132 12163fi
d7040cdb
SE
12164echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12165echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12166if test x"$USE_NLS" != xyes; then
12167 echo "$as_me:$LINENO: result: no" >&5
12168echo "${ECHO_T}no" >&6
12169else
12170 echo "$as_me:$LINENO: result: yes" >&5
12171echo "${ECHO_T}yes" >&6
5464f5a1 12172
d7040cdb
SE
12173cat >>confdefs.h <<\_ACEOF
12174#define ENABLE_NLS 1
12175_ACEOF
252b5132 12176
6be7c12c 12177
d7040cdb
SE
12178 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12179echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12180 # Look for .po and .gmo files in the source directory.
12181 CATALOGS=
12182 XLINGUAS=
12183 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12184 # If there aren't any .gmo files the shell will give us the
12185 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12186 # weeded out.
12187 case "$cat" in *\**)
12188 continue;;
12189 esac
12190 # The quadruple backslash is collapsed to a double backslash
12191 # by the backticks, then collapsed again by the double quotes,
12192 # leaving us with one backslash in the sed expression (right
12193 # before the dot that mustn't act as a wildcard).
12194 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12195 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12196 # The user is allowed to set LINGUAS to a list of languages to
12197 # install catalogs for. If it's empty that means "all of them."
12198 if test "x$LINGUAS" = x; then
12199 CATALOGS="$CATALOGS $cat"
12200 XLINGUAS="$XLINGUAS $lang"
12201 else
12202 case "$LINGUAS" in *$lang*)
12203 CATALOGS="$CATALOGS $cat"
12204 XLINGUAS="$XLINGUAS $lang"
12205 ;;
12206 esac
12207 fi
12208 done
12209 LINGUAS="$XLINGUAS"
12210 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12211echo "${ECHO_T}$LINGUAS" >&6
12212
252b5132 12213
d7040cdb 12214 DATADIRNAME=share
252b5132 12215
d7040cdb 12216 INSTOBJEXT=.mo
5464f5a1 12217
d7040cdb 12218 GENCAT=gencat
20e95c23 12219
d7040cdb 12220 CATOBJEXT=.gmo
5464f5a1 12221
20e95c23 12222fi
5464f5a1 12223
d7040cdb
SE
12224 MKINSTALLDIRS=
12225 if test -n "$ac_aux_dir"; then
12226 case "$ac_aux_dir" in
12227 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12228 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12229 esac
12230 fi
12231 if test -z "$MKINSTALLDIRS"; then
12232 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 12233 fi
5464f5a1 12234
5464f5a1 12235
d7040cdb
SE
12236
12237 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12238echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12239 # Check whether --enable-nls or --disable-nls was given.
12240if test "${enable_nls+set}" = set; then
12241 enableval="$enable_nls"
12242 USE_NLS=$enableval
252b5132 12243else
d7040cdb
SE
12244 USE_NLS=yes
12245fi;
12246 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12247echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 12248
252b5132 12249
5464f5a1 12250
252b5132 12251
d7040cdb
SE
12252
12253
12254# Prepare PATH_SEPARATOR.
12255# The user is always right.
12256if test "${PATH_SEPARATOR+set}" != set; then
12257 echo "#! /bin/sh" >conf$$.sh
12258 echo "exit 0" >>conf$$.sh
12259 chmod +x conf$$.sh
12260 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12261 PATH_SEPARATOR=';'
20e95c23 12262 else
d7040cdb 12263 PATH_SEPARATOR=:
20e95c23 12264 fi
d7040cdb
SE
12265 rm -f conf$$.sh
12266fi
12267
12268# Find out how to test for executable files. Don't use a zero-byte file,
12269# as systems may use methods other than mode bits to determine executability.
12270cat >conf$$.file <<_ASEOF
12271#! /bin/sh
12272exit 0
12273_ASEOF
12274chmod +x conf$$.file
12275if test -x conf$$.file >/dev/null 2>&1; then
12276 ac_executable_p="test -x"
20e95c23 12277else
d7040cdb 12278 ac_executable_p="test -f"
20e95c23 12279fi
d7040cdb 12280rm -f conf$$.file
5464f5a1 12281
d7040cdb
SE
12282# Extract the first word of "msgfmt", so it can be a program name with args.
12283set dummy msgfmt; ac_word=$2
12284echo "$as_me:$LINENO: checking for $ac_word" >&5
12285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12286if test "${ac_cv_path_MSGFMT+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12288else
12289 case "$MSGFMT" in
12290 [\\/]* | ?:[\\/]*)
12291 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12292 ;;
12293 *)
12294 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12295 for ac_dir in $PATH; do
12296 IFS="$ac_save_IFS"
12297 test -z "$ac_dir" && ac_dir=.
12298 for ac_exec_ext in '' $ac_executable_extensions; do
12299 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12300 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12301 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12302 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12303 break 2
12304 fi
12305 fi
12306 done
12307 done
12308 IFS="$ac_save_IFS"
12309 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12310 ;;
12311esac
5464f5a1 12312fi
d7040cdb
SE
12313MSGFMT="$ac_cv_path_MSGFMT"
12314if test "$MSGFMT" != ":"; then
12315 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12316echo "${ECHO_T}$MSGFMT" >&6
20e95c23 12317else
d7040cdb
SE
12318 echo "$as_me:$LINENO: result: no" >&5
12319echo "${ECHO_T}no" >&6
252b5132 12320fi
d7040cdb
SE
12321
12322 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12323set dummy gmsgfmt; ac_word=$2
12324echo "$as_me:$LINENO: checking for $ac_word" >&5
12325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12326if test "${ac_cv_path_GMSGFMT+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12328else
d7040cdb
SE
12329 case $GMSGFMT in
12330 [\\/]* | ?:[\\/]*)
12331 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12332 ;;
12333 *)
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335for as_dir in $PATH
12336do
12337 IFS=$as_save_IFS
12338 test -z "$as_dir" && as_dir=.
12339 for ac_exec_ext in '' $ac_executable_extensions; do
12340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12341 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 break 2
12344 fi
12345done
12346done
5464f5a1 12347
d7040cdb
SE
12348 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12349 ;;
12350esac
252b5132 12351fi
d7040cdb 12352GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 12353
d7040cdb
SE
12354if test -n "$GMSGFMT"; then
12355 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12356echo "${ECHO_T}$GMSGFMT" >&6
252b5132 12357else
d7040cdb
SE
12358 echo "$as_me:$LINENO: result: no" >&5
12359echo "${ECHO_T}no" >&6
252b5132
RH
12360fi
12361
20e95c23
DJ
12362
12363
d7040cdb
SE
12364# Prepare PATH_SEPARATOR.
12365# The user is always right.
12366if test "${PATH_SEPARATOR+set}" != set; then
12367 echo "#! /bin/sh" >conf$$.sh
12368 echo "exit 0" >>conf$$.sh
12369 chmod +x conf$$.sh
12370 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12371 PATH_SEPARATOR=';'
12372 else
12373 PATH_SEPARATOR=:
12374 fi
12375 rm -f conf$$.sh
252b5132 12376fi
20e95c23 12377
d7040cdb
SE
12378# Find out how to test for executable files. Don't use a zero-byte file,
12379# as systems may use methods other than mode bits to determine executability.
12380cat >conf$$.file <<_ASEOF
12381#! /bin/sh
12382exit 0
12383_ASEOF
12384chmod +x conf$$.file
12385if test -x conf$$.file >/dev/null 2>&1; then
12386 ac_executable_p="test -x"
12387else
12388 ac_executable_p="test -f"
12389fi
12390rm -f conf$$.file
252b5132 12391
d7040cdb
SE
12392# Extract the first word of "xgettext", so it can be a program name with args.
12393set dummy xgettext; ac_word=$2
12394echo "$as_me:$LINENO: checking for $ac_word" >&5
12395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12396if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398else
d7040cdb
SE
12399 case "$XGETTEXT" in
12400 [\\/]* | ?:[\\/]*)
12401 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12402 ;;
12403 *)
12404 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12405 for ac_dir in $PATH; do
12406 IFS="$ac_save_IFS"
12407 test -z "$ac_dir" && ac_dir=.
12408 for ac_exec_ext in '' $ac_executable_extensions; do
12409 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12410 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12411 (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
12412 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12413 break 2
12414 fi
12415 fi
12416 done
12417 done
12418 IFS="$ac_save_IFS"
12419 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12420 ;;
12421esac
12422fi
12423XGETTEXT="$ac_cv_path_XGETTEXT"
12424if test "$XGETTEXT" != ":"; then
12425 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12426echo "${ECHO_T}$XGETTEXT" >&6
252b5132 12427else
d7040cdb
SE
12428 echo "$as_me:$LINENO: result: no" >&5
12429echo "${ECHO_T}no" >&6
252b5132
RH
12430fi
12431
d7040cdb 12432 rm -f messages.po
5464f5a1 12433
252b5132 12434
d7040cdb
SE
12435# Prepare PATH_SEPARATOR.
12436# The user is always right.
12437if test "${PATH_SEPARATOR+set}" != set; then
12438 echo "#! /bin/sh" >conf$$.sh
12439 echo "exit 0" >>conf$$.sh
12440 chmod +x conf$$.sh
12441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12442 PATH_SEPARATOR=';'
12443 else
12444 PATH_SEPARATOR=:
12445 fi
12446 rm -f conf$$.sh
252b5132
RH
12447fi
12448
d7040cdb
SE
12449# Find out how to test for executable files. Don't use a zero-byte file,
12450# as systems may use methods other than mode bits to determine executability.
12451cat >conf$$.file <<_ASEOF
12452#! /bin/sh
12453exit 0
12454_ASEOF
12455chmod +x conf$$.file
12456if test -x conf$$.file >/dev/null 2>&1; then
12457 ac_executable_p="test -x"
5464f5a1 12458else
d7040cdb 12459 ac_executable_p="test -f"
20e95c23 12460fi
d7040cdb 12461rm -f conf$$.file
5464f5a1 12462
d7040cdb
SE
12463# Extract the first word of "msgmerge", so it can be a program name with args.
12464set dummy msgmerge; ac_word=$2
12465echo "$as_me:$LINENO: checking for $ac_word" >&5
12466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12467if test "${ac_cv_path_MSGMERGE+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469else
12470 case "$MSGMERGE" in
12471 [\\/]* | ?:[\\/]*)
12472 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12473 ;;
12474 *)
12475 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12476 for ac_dir in $PATH; do
12477 IFS="$ac_save_IFS"
12478 test -z "$ac_dir" && ac_dir=.
12479 for ac_exec_ext in '' $ac_executable_extensions; do
12480 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12481 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12482 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12483 break 2
12484 fi
12485 fi
12486 done
12487 done
12488 IFS="$ac_save_IFS"
12489 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12490 ;;
12491esac
5464f5a1 12492fi
d7040cdb
SE
12493MSGMERGE="$ac_cv_path_MSGMERGE"
12494if test "$MSGMERGE" != ":"; then
12495 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12496echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 12497else
d7040cdb
SE
12498 echo "$as_me:$LINENO: result: no" >&5
12499echo "${ECHO_T}no" >&6
12500fi
20e95c23 12501
5464f5a1 12502
d7040cdb
SE
12503 if test "$GMSGFMT" != ":"; then
12504 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12505 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12506 : ;
12507 else
12508 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12509 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12510echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12511 GMSGFMT=":"
12512 fi
12513 fi
252b5132 12514
d7040cdb
SE
12515 if test "$XGETTEXT" != ":"; then
12516 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12517 (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
12518 : ;
12519 else
12520 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12521echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12522 XGETTEXT=":"
12523 fi
12524 rm -f messages.po
12525 fi
6be7c12c 12526
d7040cdb 12527 ac_config_commands="$ac_config_commands default-1"
5464f5a1 12528
252b5132 12529
5464f5a1 12530
d7040cdb
SE
12531# Permit host specific settings.
12532. ${srcdir}/configure.host
12533
12534
12535# Find a good install program. We prefer a C program (faster),
12536# so one script is as good as another. But avoid the broken or
12537# incompatible versions:
12538# SysV /etc/install, /usr/sbin/install
12539# SunOS /usr/etc/install
12540# IRIX /sbin/install
12541# AIX /bin/install
12542# AmigaOS /C/install, which installs bootblocks on floppy discs
12543# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12544# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12545# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12546# OS/2's system install, which has a completely different semantic
12547# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 12548# Reject install programs that cannot install multiple files.
d7040cdb
SE
12549echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12550echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12551if test -z "$INSTALL"; then
12552if test "${ac_cv_path_install+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554else
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556for as_dir in $PATH
12557do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 # Account for people who put trailing slashes in PATH elements.
12561case $as_dir/ in
12562 ./ | .// | /cC/* | \
12563 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12564 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12565 /usr/ucb/* ) ;;
12566 *)
12567 # OSF1 and SCO ODT 3.0 have their own names for install.
12568 # Don't use installbsd from OSF since it installs stuff as root
12569 # by default.
12570 for ac_prog in ginstall scoinst install; do
12571 for ac_exec_ext in '' $ac_executable_extensions; do
12572 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12573 if test $ac_prog = install &&
12574 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12575 # AIX install. It has an incompatible calling convention.
12576 :
12577 elif test $ac_prog = install &&
12578 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12579 # program-specific install script used by HP pwplus--don't use.
12580 :
12581 else
58c85be7
RW
12582 rm -rf conftest.one conftest.two conftest.dir
12583 echo one > conftest.one
12584 echo two > conftest.two
12585 mkdir conftest.dir
12586 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12587 test -s conftest.one && test -s conftest.two &&
12588 test -s conftest.dir/conftest.one &&
12589 test -s conftest.dir/conftest.two
12590 then
12591 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12592 break 3
12593 fi
d7040cdb
SE
12594 fi
12595 fi
12596 done
12597 done
12598 ;;
12599esac
12600done
12601
58c85be7 12602rm -rf conftest.one conftest.two conftest.dir
252b5132 12603
d7040cdb
SE
12604fi
12605 if test "${ac_cv_path_install+set}" = set; then
12606 INSTALL=$ac_cv_path_install
12607 else
58c85be7
RW
12608 # As a last resort, use the slow shell script. Don't cache a
12609 # value for INSTALL within a source directory, because that will
d7040cdb 12610 # break other packages using the cache if that directory is
58c85be7 12611 # removed, or if the value is a relative name.
d7040cdb
SE
12612 INSTALL=$ac_install_sh
12613 fi
12614fi
12615echo "$as_me:$LINENO: result: $INSTALL" >&5
12616echo "${ECHO_T}$INSTALL" >&6
5464f5a1 12617
d7040cdb
SE
12618# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12619# It thinks the first close brace ends the variable substitution.
12620test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 12621
d7040cdb 12622test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 12623
d7040cdb 12624test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 12625
252b5132 12626
d7040cdb 12627BFD_HOST_64BIT_LONG=0
d2df793a 12628BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
12629BFD_HOST_64_BIT_DEFINED=0
12630BFD_HOST_64_BIT=
12631BFD_HOST_U_64_BIT=
d2df793a 12632BFD_HOSTPTR_T="unsigned long"
6be7c12c 12633
d7040cdb
SE
12634echo "$as_me:$LINENO: checking for long long" >&5
12635echo $ECHO_N "checking for long long... $ECHO_C" >&6
2ba49b59 12636if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 12637 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 12638else
5464f5a1
NN
12639 cat >conftest.$ac_ext <<_ACEOF
12640/* confdefs.h. */
12641_ACEOF
12642cat confdefs.h >>conftest.$ac_ext
12643cat >>conftest.$ac_ext <<_ACEOF
12644/* end confdefs.h. */
2ba49b59 12645$ac_includes_default
5464f5a1
NN
12646int
12647main ()
12648{
2ba49b59
KC
12649if ((long long *) 0)
12650 return 0;
12651if (sizeof (long long))
12652 return 0;
5464f5a1
NN
12653 ;
12654 return 0;
12655}
12656_ACEOF
12657rm -f conftest.$ac_objext
12658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12659 (eval $ac_compile) 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
7357c5b6
AM
12666 { ac_try='test -z "$ac_c_werror_flag"
12667 || test ! -s conftest.err'
5464f5a1
NN
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; } &&
12673 { ac_try='test -s conftest.$ac_objext'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; }; then
2ba49b59 12679 ac_cv_type_long_long=yes
6726e1ea 12680else
5464f5a1
NN
12681 echo "$as_me: failed program was:" >&5
12682sed 's/^/| /' conftest.$ac_ext >&5
12683
2ba49b59 12684ac_cv_type_long_long=no
6726e1ea 12685fi
5464f5a1 12686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 12687fi
2ba49b59
KC
12688echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12689echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 12690
2ba49b59
KC
12691echo "$as_me:$LINENO: checking size of long long" >&5
12692echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12693if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 12694 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 12695else
2ba49b59
KC
12696 if test "$ac_cv_type_long_long" = yes; then
12697 # The cast to unsigned long works around a bug in the HP C Compiler
12698 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12699 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12700 # This bug is HP SR number 8606223364.
12701 if test "$cross_compiling" = yes; then
12702 # Depending upon the size, compute the lo and hi bounds.
12703cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12704/* confdefs.h. */
12705_ACEOF
12706cat confdefs.h >>conftest.$ac_ext
12707cat >>conftest.$ac_ext <<_ACEOF
12708/* end confdefs.h. */
2ba49b59
KC
12709$ac_includes_default
12710int
12711main ()
12712{
12713static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12714test_array [0] = 0
6726e1ea 12715
2ba49b59
KC
12716 ;
12717 return 0;
12718}
12719_ACEOF
12720rm -f conftest.$ac_objext
12721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12722 (eval $ac_compile) 2>conftest.er1
12723 ac_status=$?
12724 grep -v '^ *+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
7357c5b6
AM
12729 { ac_try='test -z "$ac_c_werror_flag"
12730 || test ! -s conftest.err'
2ba49b59
KC
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; } &&
12736 { ac_try='test -s conftest.$ac_objext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_lo=0 ac_mid=0
12743 while :; do
12744 cat >conftest.$ac_ext <<_ACEOF
12745/* confdefs.h. */
12746_ACEOF
12747cat confdefs.h >>conftest.$ac_ext
12748cat >>conftest.$ac_ext <<_ACEOF
12749/* end confdefs.h. */
12750$ac_includes_default
5464f5a1
NN
12751int
12752main ()
12753{
2ba49b59
KC
12754static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12755test_array [0] = 0
12756
5464f5a1
NN
12757 ;
12758 return 0;
12759}
12760_ACEOF
12761rm -f conftest.$ac_objext
12762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763 (eval $ac_compile) 2>conftest.er1
12764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
7357c5b6
AM
12770 { ac_try='test -z "$ac_c_werror_flag"
12771 || test ! -s conftest.err'
5464f5a1
NN
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; } &&
12777 { ac_try='test -s conftest.$ac_objext'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
2ba49b59 12783 ac_hi=$ac_mid; break
6726e1ea 12784else
5464f5a1
NN
12785 echo "$as_me: failed program was:" >&5
12786sed 's/^/| /' conftest.$ac_ext >&5
12787
2ba49b59
KC
12788ac_lo=`expr $ac_mid + 1`
12789 if test $ac_lo -le $ac_mid; then
12790 ac_lo= ac_hi=
12791 break
12792 fi
12793 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 12794fi
5464f5a1 12795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 12796 done
252b5132 12797else
2ba49b59
KC
12798 echo "$as_me: failed program was:" >&5
12799sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 12800
5464f5a1
NN
12801cat >conftest.$ac_ext <<_ACEOF
12802/* confdefs.h. */
12803_ACEOF
12804cat confdefs.h >>conftest.$ac_ext
12805cat >>conftest.$ac_ext <<_ACEOF
12806/* end confdefs.h. */
12807$ac_includes_default
2ba49b59
KC
12808int
12809main ()
12810{
12811static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12812test_array [0] = 0
12813
12814 ;
12815 return 0;
12816}
5464f5a1
NN
12817_ACEOF
12818rm -f conftest.$ac_objext
12819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
7357c5b6
AM
12827 { ac_try='test -z "$ac_c_werror_flag"
12828 || test ! -s conftest.err'
5464f5a1
NN
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; } &&
12834 { ac_try='test -s conftest.$ac_objext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
2ba49b59
KC
12840 ac_hi=-1 ac_mid=-1
12841 while :; do
12842 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12843/* confdefs.h. */
12844_ACEOF
12845cat confdefs.h >>conftest.$ac_ext
12846cat >>conftest.$ac_ext <<_ACEOF
12847/* end confdefs.h. */
2ba49b59
KC
12848$ac_includes_default
12849int
12850main ()
12851{
12852static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12853test_array [0] = 0
12854
12855 ;
12856 return 0;
12857}
5464f5a1 12858_ACEOF
2ba49b59
KC
12859rm -f conftest.$ac_objext
12860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12861 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12862 ac_status=$?
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12867 (exit $ac_status); } &&
7357c5b6
AM
12868 { ac_try='test -z "$ac_c_werror_flag"
12869 || test ! -s conftest.err'
2ba49b59
KC
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; } &&
12875 { ac_try='test -s conftest.$ac_objext'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 ac_lo=$ac_mid; break
252b5132 12882else
2ba49b59
KC
12883 echo "$as_me: failed program was:" >&5
12884sed 's/^/| /' conftest.$ac_ext >&5
12885
12886ac_hi=`expr '(' $ac_mid ')' - 1`
12887 if test $ac_mid -le $ac_hi; then
12888 ac_lo= ac_hi=
12889 break
12890 fi
12891 ac_mid=`expr 2 '*' $ac_mid`
252b5132 12892fi
2ba49b59
KC
12893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12894 done
5464f5a1
NN
12895else
12896 echo "$as_me: failed program was:" >&5
12897sed 's/^/| /' conftest.$ac_ext >&5
12898
2ba49b59 12899ac_lo= ac_hi=
252b5132 12900fi
2ba49b59
KC
12901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12902fi
12903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12904# Binary search between lo and hi bounds.
12905while test "x$ac_lo" != "x$ac_hi"; do
12906 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12907 cat >conftest.$ac_ext <<_ACEOF
12908/* confdefs.h. */
12909_ACEOF
12910cat confdefs.h >>conftest.$ac_ext
12911cat >>conftest.$ac_ext <<_ACEOF
12912/* end confdefs.h. */
12913$ac_includes_default
12914int
12915main ()
12916{
12917static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12918test_array [0] = 0
5464f5a1 12919
2ba49b59
KC
12920 ;
12921 return 0;
12922}
5464f5a1
NN
12923_ACEOF
12924rm -f conftest.$ac_objext
12925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12926 (eval $ac_compile) 2>conftest.er1
12927 ac_status=$?
12928 grep -v '^ *+' conftest.er1 >conftest.err
12929 rm -f conftest.er1
12930 cat conftest.err >&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
7357c5b6
AM
12933 { ac_try='test -z "$ac_c_werror_flag"
12934 || test ! -s conftest.err'
5464f5a1
NN
12935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936 (eval $ac_try) 2>&5
12937 ac_status=$?
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; } &&
12940 { ac_try='test -s conftest.$ac_objext'
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12943 ac_status=$?
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; }; then
2ba49b59 12946 ac_hi=$ac_mid
5464f5a1
NN
12947else
12948 echo "$as_me: failed program was:" >&5
12949sed 's/^/| /' conftest.$ac_ext >&5
12950
2ba49b59 12951ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
12952fi
12953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
12954done
12955case $ac_lo in
12956?*) ac_cv_sizeof_long_long=$ac_lo;;
7357c5b6
AM
12957'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12958echo "$as_me: error: in \`$ac_pwd':" >&2;}
12959{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
2ba49b59
KC
12960See \`config.log' for more details." >&5
12961echo "$as_me: error: cannot compute sizeof (long long), 77
12962See \`config.log' for more details." >&2;}
7357c5b6 12963 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
12964esac
12965else
12966 if test "$cross_compiling" = yes; then
7357c5b6
AM
12967 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12968echo "$as_me: error: in \`$ac_pwd':" >&2;}
12969{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12970See \`config.log' for more details." >&5
12971echo "$as_me: error: cannot run test program while cross compiling
12972See \`config.log' for more details." >&2;}
12973 { (exit 1); exit 1; }; }; }
2ba49b59
KC
12974else
12975 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12976/* confdefs.h. */
12977_ACEOF
12978cat confdefs.h >>conftest.$ac_ext
12979cat >>conftest.$ac_ext <<_ACEOF
12980/* end confdefs.h. */
2ba49b59
KC
12981$ac_includes_default
12982long longval () { return (long) (sizeof (long long)); }
12983unsigned long ulongval () { return (long) (sizeof (long long)); }
12984#include <stdio.h>
12985#include <stdlib.h>
12986int
12987main ()
12988{
12989
12990 FILE *f = fopen ("conftest.val", "w");
12991 if (! f)
12992 exit (1);
12993 if (((long) (sizeof (long long))) < 0)
12994 {
12995 long i = longval ();
12996 if (i != ((long) (sizeof (long long))))
12997 exit (1);
12998 fprintf (f, "%ld\n", i);
12999 }
13000 else
13001 {
13002 unsigned long i = ulongval ();
13003 if (i != ((long) (sizeof (long long))))
13004 exit (1);
13005 fprintf (f, "%lu\n", i);
13006 }
13007 exit (ferror (f) || fclose (f) != 0);
13008
13009 ;
13010 return 0;
13011}
5464f5a1 13012_ACEOF
2ba49b59
KC
13013rm -f conftest$ac_exeext
13014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13015 (eval $ac_link) 2>&5
5464f5a1 13016 ac_status=$?
5464f5a1 13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
13018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020 (eval $ac_try) 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13024 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 13025else
2ba49b59
KC
13026 echo "$as_me: program exited with status $ac_status" >&5
13027echo "$as_me: failed program was:" >&5
5464f5a1
NN
13028sed 's/^/| /' conftest.$ac_ext >&5
13029
2ba49b59 13030( exit $ac_status )
7357c5b6
AM
13031{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13032echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
13033{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13034See \`config.log' for more details." >&5
13035echo "$as_me: error: cannot compute sizeof (long long), 77
13036See \`config.log' for more details." >&2;}
7357c5b6 13037 { (exit 1); exit 1; }; }; }
252b5132 13038fi
2ba49b59
KC
13039rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13040fi
13041fi
13042rm -f conftest.val
6be7c12c 13043else
2ba49b59 13044 ac_cv_sizeof_long_long=0
5464f5a1 13045fi
5464f5a1 13046fi
2ba49b59
KC
13047echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13048echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13049cat >>confdefs.h <<_ACEOF
13050#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
13051_ACEOF
13052
5464f5a1 13053
d2df793a
NC
13054echo "$as_me:$LINENO: checking for void *" >&5
13055echo $ECHO_N "checking for void *... $ECHO_C" >&6
13056if test "${ac_cv_type_void_p+set}" = set; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13058else
13059 cat >conftest.$ac_ext <<_ACEOF
13060/* confdefs.h. */
13061_ACEOF
13062cat confdefs.h >>conftest.$ac_ext
13063cat >>conftest.$ac_ext <<_ACEOF
13064/* end confdefs.h. */
13065$ac_includes_default
13066int
13067main ()
13068{
13069if ((void * *) 0)
13070 return 0;
13071if (sizeof (void *))
13072 return 0;
13073 ;
13074 return 0;
13075}
13076_ACEOF
13077rm -f conftest.$ac_objext
13078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13079 (eval $ac_compile) 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
7357c5b6
AM
13086 { ac_try='test -z "$ac_c_werror_flag"
13087 || test ! -s conftest.err'
d2df793a
NC
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; } &&
13093 { ac_try='test -s conftest.$ac_objext'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13099 ac_cv_type_void_p=yes
13100else
13101 echo "$as_me: failed program was:" >&5
13102sed 's/^/| /' conftest.$ac_ext >&5
13103
13104ac_cv_type_void_p=no
13105fi
13106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13107fi
13108echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13109echo "${ECHO_T}$ac_cv_type_void_p" >&6
13110
13111echo "$as_me:$LINENO: checking size of void *" >&5
13112echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13113if test "${ac_cv_sizeof_void_p+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13115else
13116 if test "$ac_cv_type_void_p" = yes; then
13117 # The cast to unsigned long works around a bug in the HP C Compiler
13118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13120 # This bug is HP SR number 8606223364.
13121 if test "$cross_compiling" = yes; then
13122 # Depending upon the size, compute the lo and hi bounds.
13123cat >conftest.$ac_ext <<_ACEOF
13124/* confdefs.h. */
13125_ACEOF
13126cat confdefs.h >>conftest.$ac_ext
13127cat >>conftest.$ac_ext <<_ACEOF
13128/* end confdefs.h. */
13129$ac_includes_default
13130int
13131main ()
13132{
13133static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13134test_array [0] = 0
13135
13136 ;
13137 return 0;
13138}
13139_ACEOF
13140rm -f conftest.$ac_objext
13141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13142 (eval $ac_compile) 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
7357c5b6
AM
13149 { ac_try='test -z "$ac_c_werror_flag"
13150 || test ! -s conftest.err'
d2df793a
NC
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest.$ac_objext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_lo=0 ac_mid=0
13163 while :; do
13164 cat >conftest.$ac_ext <<_ACEOF
13165/* confdefs.h. */
13166_ACEOF
13167cat confdefs.h >>conftest.$ac_ext
13168cat >>conftest.$ac_ext <<_ACEOF
13169/* end confdefs.h. */
13170$ac_includes_default
13171int
13172main ()
13173{
13174static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13175test_array [0] = 0
13176
13177 ;
13178 return 0;
13179}
13180_ACEOF
13181rm -f conftest.$ac_objext
13182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13183 (eval $ac_compile) 2>conftest.er1
13184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } &&
7357c5b6
AM
13190 { ac_try='test -z "$ac_c_werror_flag"
13191 || test ! -s conftest.err'
d2df793a
NC
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } &&
13197 { ac_try='test -s conftest.$ac_objext'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 ac_hi=$ac_mid; break
13204else
13205 echo "$as_me: failed program was:" >&5
13206sed 's/^/| /' conftest.$ac_ext >&5
13207
13208ac_lo=`expr $ac_mid + 1`
13209 if test $ac_lo -le $ac_mid; then
13210 ac_lo= ac_hi=
13211 break
13212 fi
13213 ac_mid=`expr 2 '*' $ac_mid + 1`
13214fi
13215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13216 done
13217else
13218 echo "$as_me: failed program was:" >&5
13219sed 's/^/| /' conftest.$ac_ext >&5
13220
13221cat >conftest.$ac_ext <<_ACEOF
13222/* confdefs.h. */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
13226/* end confdefs.h. */
13227$ac_includes_default
13228int
13229main ()
13230{
13231static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13232test_array [0] = 0
13233
13234 ;
13235 return 0;
13236}
13237_ACEOF
13238rm -f conftest.$ac_objext
13239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240 (eval $ac_compile) 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
7357c5b6
AM
13247 { ac_try='test -z "$ac_c_werror_flag"
13248 || test ! -s conftest.err'
d2df793a
NC
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest.$ac_objext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_hi=-1 ac_mid=-1
13261 while :; do
13262 cat >conftest.$ac_ext <<_ACEOF
13263/* confdefs.h. */
13264_ACEOF
13265cat confdefs.h >>conftest.$ac_ext
13266cat >>conftest.$ac_ext <<_ACEOF
13267/* end confdefs.h. */
13268$ac_includes_default
13269int
13270main ()
13271{
13272static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13273test_array [0] = 0
13274
13275 ;
13276 return 0;
13277}
13278_ACEOF
13279rm -f conftest.$ac_objext
13280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13281 (eval $ac_compile) 2>conftest.er1
13282 ac_status=$?
13283 grep -v '^ *+' conftest.er1 >conftest.err
13284 rm -f conftest.er1
13285 cat conftest.err >&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } &&
7357c5b6
AM
13288 { ac_try='test -z "$ac_c_werror_flag"
13289 || test ! -s conftest.err'
d2df793a
NC
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; } &&
13295 { ac_try='test -s conftest.$ac_objext'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 ac_lo=$ac_mid; break
13302else
13303 echo "$as_me: failed program was:" >&5
13304sed 's/^/| /' conftest.$ac_ext >&5
13305
13306ac_hi=`expr '(' $ac_mid ')' - 1`
13307 if test $ac_mid -le $ac_hi; then
13308 ac_lo= ac_hi=
13309 break
13310 fi
13311 ac_mid=`expr 2 '*' $ac_mid`
13312fi
13313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13314 done
13315else
13316 echo "$as_me: failed program was:" >&5
13317sed 's/^/| /' conftest.$ac_ext >&5
13318
13319ac_lo= ac_hi=
13320fi
13321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13322fi
13323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13324# Binary search between lo and hi bounds.
13325while test "x$ac_lo" != "x$ac_hi"; do
13326 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13327 cat >conftest.$ac_ext <<_ACEOF
13328/* confdefs.h. */
13329_ACEOF
13330cat confdefs.h >>conftest.$ac_ext
13331cat >>conftest.$ac_ext <<_ACEOF
13332/* end confdefs.h. */
13333$ac_includes_default
13334int
13335main ()
13336{
13337static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13338test_array [0] = 0
13339
13340 ;
13341 return 0;
13342}
13343_ACEOF
13344rm -f conftest.$ac_objext
13345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13346 (eval $ac_compile) 2>conftest.er1
13347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } &&
7357c5b6
AM
13353 { ac_try='test -z "$ac_c_werror_flag"
13354 || test ! -s conftest.err'
d2df793a
NC
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; } &&
13360 { ac_try='test -s conftest.$ac_objext'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; }; then
13366 ac_hi=$ac_mid
13367else
13368 echo "$as_me: failed program was:" >&5
13369sed 's/^/| /' conftest.$ac_ext >&5
13370
13371ac_lo=`expr '(' $ac_mid ')' + 1`
13372fi
13373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13374done
13375case $ac_lo in
13376?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
13377'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13378echo "$as_me: error: in \`$ac_pwd':" >&2;}
13379{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d2df793a
NC
13380See \`config.log' for more details." >&5
13381echo "$as_me: error: cannot compute sizeof (void *), 77
13382See \`config.log' for more details." >&2;}
7357c5b6 13383 { (exit 1); exit 1; }; }; } ;;
d2df793a
NC
13384esac
13385else
13386 if test "$cross_compiling" = yes; then
7357c5b6
AM
13387 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13388echo "$as_me: error: in \`$ac_pwd':" >&2;}
13389{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13390See \`config.log' for more details." >&5
13391echo "$as_me: error: cannot run test program while cross compiling
13392See \`config.log' for more details." >&2;}
13393 { (exit 1); exit 1; }; }; }
d2df793a
NC
13394else
13395 cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401$ac_includes_default
13402long longval () { return (long) (sizeof (void *)); }
13403unsigned long ulongval () { return (long) (sizeof (void *)); }
13404#include <stdio.h>
13405#include <stdlib.h>
13406int
13407main ()
13408{
13409
13410 FILE *f = fopen ("conftest.val", "w");
13411 if (! f)
13412 exit (1);
13413 if (((long) (sizeof (void *))) < 0)
13414 {
13415 long i = longval ();
13416 if (i != ((long) (sizeof (void *))))
13417 exit (1);
13418 fprintf (f, "%ld\n", i);
13419 }
13420 else
13421 {
13422 unsigned long i = ulongval ();
13423 if (i != ((long) (sizeof (void *))))
13424 exit (1);
13425 fprintf (f, "%lu\n", i);
13426 }
13427 exit (ferror (f) || fclose (f) != 0);
13428
13429 ;
13430 return 0;
13431}
13432_ACEOF
13433rm -f conftest$ac_exeext
13434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435 (eval $ac_link) 2>&5
13436 ac_status=$?
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 ac_cv_sizeof_void_p=`cat conftest.val`
13445else
13446 echo "$as_me: program exited with status $ac_status" >&5
13447echo "$as_me: failed program was:" >&5
13448sed 's/^/| /' conftest.$ac_ext >&5
13449
13450( exit $ac_status )
7357c5b6
AM
13451{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13452echo "$as_me: error: in \`$ac_pwd':" >&2;}
d2df793a
NC
13453{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13454See \`config.log' for more details." >&5
13455echo "$as_me: error: cannot compute sizeof (void *), 77
13456See \`config.log' for more details." >&2;}
7357c5b6 13457 { (exit 1); exit 1; }; }; }
d2df793a
NC
13458fi
13459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13460fi
13461fi
13462rm -f conftest.val
13463else
13464 ac_cv_sizeof_void_p=0
13465fi
13466fi
13467echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13468echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13469cat >>confdefs.h <<_ACEOF
13470#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13471_ACEOF
13472
13473
2ba49b59
KC
13474echo "$as_me:$LINENO: checking for long" >&5
13475echo $ECHO_N "checking for long... $ECHO_C" >&6
13476if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13478else
13479 cat >conftest.$ac_ext <<_ACEOF
13480/* confdefs.h. */
13481_ACEOF
13482cat confdefs.h >>conftest.$ac_ext
13483cat >>conftest.$ac_ext <<_ACEOF
13484/* end confdefs.h. */
2ba49b59 13485$ac_includes_default
5464f5a1
NN
13486int
13487main ()
13488{
2ba49b59
KC
13489if ((long *) 0)
13490 return 0;
13491if (sizeof (long))
13492 return 0;
5464f5a1
NN
13493 ;
13494 return 0;
13495}
13496_ACEOF
13497rm -f conftest.$ac_objext
13498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13499 (eval $ac_compile) 2>conftest.er1
13500 ac_status=$?
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -f conftest.er1
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } &&
7357c5b6
AM
13506 { ac_try='test -z "$ac_c_werror_flag"
13507 || test ! -s conftest.err'
5464f5a1
NN
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; } &&
13513 { ac_try='test -s conftest.$ac_objext'
13514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515 (eval $ac_try) 2>&5
13516 ac_status=$?
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; }; then
2ba49b59 13519 ac_cv_type_long=yes
252b5132 13520else
5464f5a1
NN
13521 echo "$as_me: failed program was:" >&5
13522sed 's/^/| /' conftest.$ac_ext >&5
13523
2ba49b59 13524ac_cv_type_long=no
252b5132 13525fi
5464f5a1 13526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13527fi
2ba49b59
KC
13528echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13529echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 13530
2ba49b59
KC
13531echo "$as_me:$LINENO: checking size of long" >&5
13532echo $ECHO_N "checking size of long... $ECHO_C" >&6
13533if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535else
2ba49b59
KC
13536 if test "$ac_cv_type_long" = yes; then
13537 # The cast to unsigned long works around a bug in the HP C Compiler
13538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13540 # This bug is HP SR number 8606223364.
13541 if test "$cross_compiling" = yes; then
13542 # Depending upon the size, compute the lo and hi bounds.
13543cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13544/* confdefs.h. */
13545_ACEOF
13546cat confdefs.h >>conftest.$ac_ext
13547cat >>conftest.$ac_ext <<_ACEOF
13548/* end confdefs.h. */
2ba49b59 13549$ac_includes_default
5464f5a1
NN
13550int
13551main ()
13552{
2ba49b59
KC
13553static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13554test_array [0] = 0
13555
5464f5a1
NN
13556 ;
13557 return 0;
13558}
13559_ACEOF
13560rm -f conftest.$ac_objext
13561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13562 (eval $ac_compile) 2>conftest.er1
13563 ac_status=$?
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
7357c5b6
AM
13569 { ac_try='test -z "$ac_c_werror_flag"
13570 || test ! -s conftest.err'
5464f5a1
NN
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest.$ac_objext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
2ba49b59
KC
13582 ac_lo=0 ac_mid=0
13583 while :; do
13584 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13585/* confdefs.h. */
13586_ACEOF
13587cat confdefs.h >>conftest.$ac_ext
13588cat >>conftest.$ac_ext <<_ACEOF
13589/* end confdefs.h. */
2ba49b59 13590$ac_includes_default
5464f5a1
NN
13591int
13592main ()
13593{
2ba49b59
KC
13594static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13595test_array [0] = 0
13596
5464f5a1
NN
13597 ;
13598 return 0;
13599}
13600_ACEOF
2ba49b59
KC
13601rm -f conftest.$ac_objext
13602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13604 ac_status=$?
13605 grep -v '^ *+' conftest.er1 >conftest.err
13606 rm -f conftest.er1
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
7357c5b6
AM
13610 { ac_try='test -z "$ac_c_werror_flag"
13611 || test ! -s conftest.err'
5464f5a1
NN
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; } &&
2ba49b59 13617 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
2ba49b59 13623 ac_hi=$ac_mid; break
5464f5a1
NN
13624else
13625 echo "$as_me: failed program was:" >&5
13626sed 's/^/| /' conftest.$ac_ext >&5
13627
2ba49b59
KC
13628ac_lo=`expr $ac_mid + 1`
13629 if test $ac_lo -le $ac_mid; then
13630 ac_lo= ac_hi=
13631 break
13632 fi
13633 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 13634fi
2ba49b59
KC
13635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13636 done
13637else
13638 echo "$as_me: failed program was:" >&5
13639sed 's/^/| /' conftest.$ac_ext >&5
13640
13641cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13642/* confdefs.h. */
13643_ACEOF
13644cat confdefs.h >>conftest.$ac_ext
13645cat >>conftest.$ac_ext <<_ACEOF
13646/* end confdefs.h. */
2ba49b59 13647$ac_includes_default
5464f5a1
NN
13648int
13649main ()
13650{
2ba49b59
KC
13651static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13652test_array [0] = 0
13653
5464f5a1
NN
13654 ;
13655 return 0;
13656}
13657_ACEOF
2ba49b59
KC
13658rm -f conftest.$ac_objext
13659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13661 ac_status=$?
13662 grep -v '^ *+' conftest.er1 >conftest.err
13663 rm -f conftest.er1
13664 cat conftest.err >&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
7357c5b6
AM
13667 { ac_try='test -z "$ac_c_werror_flag"
13668 || test ! -s conftest.err'
5464f5a1
NN
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; } &&
2ba49b59 13674 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
2ba49b59
KC
13680 ac_hi=-1 ac_mid=-1
13681 while :; do
13682 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13683/* confdefs.h. */
13684_ACEOF
13685cat confdefs.h >>conftest.$ac_ext
13686cat >>conftest.$ac_ext <<_ACEOF
13687/* end confdefs.h. */
2ba49b59 13688$ac_includes_default
5464f5a1
NN
13689int
13690main ()
13691{
2ba49b59
KC
13692static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13693test_array [0] = 0
13694
5464f5a1
NN
13695 ;
13696 return 0;
13697}
13698_ACEOF
2ba49b59
KC
13699rm -f conftest.$ac_objext
13700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13702 ac_status=$?
13703 grep -v '^ *+' conftest.er1 >conftest.err
13704 rm -f conftest.er1
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
7357c5b6
AM
13708 { ac_try='test -z "$ac_c_werror_flag"
13709 || test ! -s conftest.err'
5464f5a1
NN
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
2ba49b59 13715 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
2ba49b59 13721 ac_lo=$ac_mid; break
5464f5a1
NN
13722else
13723 echo "$as_me: failed program was:" >&5
13724sed 's/^/| /' conftest.$ac_ext >&5
13725
2ba49b59
KC
13726ac_hi=`expr '(' $ac_mid ')' - 1`
13727 if test $ac_mid -le $ac_hi; then
13728 ac_lo= ac_hi=
13729 break
13730 fi
13731 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 13732fi
2ba49b59
KC
13733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13734 done
13735else
13736 echo "$as_me: failed program was:" >&5
13737sed 's/^/| /' conftest.$ac_ext >&5
13738
13739ac_lo= ac_hi=
13740fi
13741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13742fi
13743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13744# Binary search between lo and hi bounds.
13745while test "x$ac_lo" != "x$ac_hi"; do
13746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13747 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13748/* confdefs.h. */
13749_ACEOF
13750cat confdefs.h >>conftest.$ac_ext
13751cat >>conftest.$ac_ext <<_ACEOF
13752/* end confdefs.h. */
2ba49b59 13753$ac_includes_default
5464f5a1
NN
13754int
13755main ()
13756{
2ba49b59
KC
13757static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13758test_array [0] = 0
13759
5464f5a1
NN
13760 ;
13761 return 0;
13762}
13763_ACEOF
2ba49b59
KC
13764rm -f conftest.$ac_objext
13765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
7357c5b6
AM
13773 { ac_try='test -z "$ac_c_werror_flag"
13774 || test ! -s conftest.err'
5464f5a1
NN
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; } &&
2ba49b59 13780 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
2ba49b59 13786 ac_hi=$ac_mid
5464f5a1
NN
13787else
13788 echo "$as_me: failed program was:" >&5
13789sed 's/^/| /' conftest.$ac_ext >&5
13790
2ba49b59 13791ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 13792fi
2ba49b59
KC
13793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13794done
13795case $ac_lo in
13796?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
13797'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13798echo "$as_me: error: in \`$ac_pwd':" >&2;}
13799{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
2ba49b59
KC
13800See \`config.log' for more details." >&5
13801echo "$as_me: error: cannot compute sizeof (long), 77
13802See \`config.log' for more details." >&2;}
7357c5b6 13803 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
13804esac
13805else
13806 if test "$cross_compiling" = yes; then
7357c5b6
AM
13807 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13808echo "$as_me: error: in \`$ac_pwd':" >&2;}
13809{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13810See \`config.log' for more details." >&5
13811echo "$as_me: error: cannot run test program while cross compiling
13812See \`config.log' for more details." >&2;}
13813 { (exit 1); exit 1; }; }; }
2e0fbf77
JW
13814else
13815 cat >conftest.$ac_ext <<_ACEOF
13816/* confdefs.h. */
13817_ACEOF
13818cat confdefs.h >>conftest.$ac_ext
13819cat >>conftest.$ac_ext <<_ACEOF
13820/* end confdefs.h. */
2ba49b59
KC
13821$ac_includes_default
13822long longval () { return (long) (sizeof (long)); }
13823unsigned long ulongval () { return (long) (sizeof (long)); }
13824#include <stdio.h>
13825#include <stdlib.h>
2e0fbf77
JW
13826int
13827main ()
13828{
13829
2ba49b59
KC
13830 FILE *f = fopen ("conftest.val", "w");
13831 if (! f)
13832 exit (1);
13833 if (((long) (sizeof (long))) < 0)
13834 {
13835 long i = longval ();
13836 if (i != ((long) (sizeof (long))))
13837 exit (1);
13838 fprintf (f, "%ld\n", i);
13839 }
13840 else
13841 {
13842 unsigned long i = ulongval ();
13843 if (i != ((long) (sizeof (long))))
13844 exit (1);
13845 fprintf (f, "%lu\n", i);
13846 }
13847 exit (ferror (f) || fclose (f) != 0);
13848
2e0fbf77
JW
13849 ;
13850 return 0;
13851}
13852_ACEOF
2ba49b59
KC
13853rm -f conftest$ac_exeext
13854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13855 (eval $ac_link) 2>&5
2e0fbf77
JW
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 13858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
2ba49b59 13864 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 13865else
2ba49b59
KC
13866 echo "$as_me: program exited with status $ac_status" >&5
13867echo "$as_me: failed program was:" >&5
2e0fbf77
JW
13868sed 's/^/| /' conftest.$ac_ext >&5
13869
2ba49b59 13870( exit $ac_status )
7357c5b6
AM
13871{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13872echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
13873{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13874See \`config.log' for more details." >&5
13875echo "$as_me: error: cannot compute sizeof (long), 77
13876See \`config.log' for more details." >&2;}
7357c5b6 13877 { (exit 1); exit 1; }; }; }
2e0fbf77 13878fi
2ba49b59 13879rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 13880fi
2ba49b59
KC
13881fi
13882rm -f conftest.val
13883else
13884 ac_cv_sizeof_long=0
13885fi
13886fi
13887echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13888echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13889cat >>confdefs.h <<_ACEOF
13890#define SIZEOF_LONG $ac_cv_sizeof_long
13891_ACEOF
13892
13893
d2df793a
NC
13894
13895if test "x${ac_cv_sizeof_void_p}" = "x8"; then
2ba49b59 13896 host64=true
bce5e5c9
AM
13897fi
13898
13899if test "x${ac_cv_sizeof_long}" = "x8"; then
2ba49b59
KC
13900 BFD_HOST_64BIT_LONG=1
13901 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13902 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13903elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
bce5e5c9 13904 BFD_HOST_64BIT_LONG_LONG=1
2ba49b59
KC
13905 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13906 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
bce5e5c9
AM
13907 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13908 BFD_HOSTPTR_T="unsigned long long"
13909 fi
2ba49b59
KC
13910fi
13911
13912if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13913 BFD_HOST_64_BIT_DEFINED=1
13914 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13915 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13916fi
13917
13918
13919
13920
13921
13922
13923
d2df793a 13924
2ba49b59
KC
13925# Put a plausible default for CC_FOR_BUILD in Makefile.
13926if test -z "$CC_FOR_BUILD"; then
13927 if test "x$cross_compiling" = "xno"; then
13928 CC_FOR_BUILD='$(CC)'
13929 else
13930 CC_FOR_BUILD=gcc
13931 fi
13932fi
13933
13934# Also set EXEEXT_FOR_BUILD.
13935if test "x$cross_compiling" = "xno"; then
13936 EXEEXT_FOR_BUILD='$(EXEEXT)'
13937else
13938 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13939echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13940if test "${bfd_cv_build_exeext+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13942else
13943 rm -f conftest*
13944 echo 'int main () { return 0; }' > conftest.c
13945 bfd_cv_build_exeext=
13946 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13947 for file in conftest.*; do
13948 case $file in
13949 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13950 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13951 esac
13952 done
13953 rm -f conftest*
13954 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13955fi
13956echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13957echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13958 EXEEXT_FOR_BUILD=""
13959 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13960fi
13961
13962
13963
13964
13965
13966
13967
13968
8bc9c892
NC
13969
13970for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
2ba49b59
KC
13971do
13972as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13973if eval "test \"\${$as_ac_Header+set}\" = set"; then
13974 echo "$as_me:$LINENO: checking for $ac_header" >&5
13975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13976if eval "test \"\${$as_ac_Header+set}\" = set"; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13978fi
13979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13981else
13982 # Is the header compilable?
13983echo "$as_me:$LINENO: checking $ac_header usability" >&5
13984echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13985cat >conftest.$ac_ext <<_ACEOF
13986/* confdefs.h. */
13987_ACEOF
13988cat confdefs.h >>conftest.$ac_ext
13989cat >>conftest.$ac_ext <<_ACEOF
13990/* end confdefs.h. */
13991$ac_includes_default
13992#include <$ac_header>
13993_ACEOF
13994rm -f conftest.$ac_objext
13995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13996 (eval $ac_compile) 2>conftest.er1
13997 ac_status=$?
13998 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
7357c5b6
AM
14003 { ac_try='test -z "$ac_c_werror_flag"
14004 || test ! -s conftest.err'
2ba49b59
KC
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try='test -s conftest.$ac_objext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_header_compiler=yes
14017else
14018 echo "$as_me: failed program was:" >&5
14019sed 's/^/| /' conftest.$ac_ext >&5
14020
14021ac_header_compiler=no
14022fi
14023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14024echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14025echo "${ECHO_T}$ac_header_compiler" >&6
14026
14027# Is the header present?
14028echo "$as_me:$LINENO: checking $ac_header presence" >&5
14029echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14030cat >conftest.$ac_ext <<_ACEOF
14031/* confdefs.h. */
14032_ACEOF
14033cat confdefs.h >>conftest.$ac_ext
14034cat >>conftest.$ac_ext <<_ACEOF
14035/* end confdefs.h. */
14036#include <$ac_header>
14037_ACEOF
14038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14040 ac_status=$?
14041 grep -v '^ *+' conftest.er1 >conftest.err
14042 rm -f conftest.er1
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } >/dev/null; then
14046 if test -s conftest.err; then
14047 ac_cpp_err=$ac_c_preproc_warn_flag
14048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14049 else
14050 ac_cpp_err=
14051 fi
14052else
14053 ac_cpp_err=yes
14054fi
14055if test -z "$ac_cpp_err"; then
14056 ac_header_preproc=yes
14057else
14058 echo "$as_me: failed program was:" >&5
14059sed 's/^/| /' conftest.$ac_ext >&5
14060
14061 ac_header_preproc=no
14062fi
14063rm -f conftest.err conftest.$ac_ext
14064echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14065echo "${ECHO_T}$ac_header_preproc" >&6
14066
14067# So? What about this header?
14068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14069 yes:no: )
14070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14071echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14073echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14074 ac_header_preproc=yes
14075 ;;
14076 no:yes:* )
14077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14080echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14082echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14084echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14086echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14088echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14089 (
14090 cat <<\_ASBOX
14091## ------------------------------------------ ##
14092## Report this to the AC_PACKAGE_NAME lists. ##
14093## ------------------------------------------ ##
14094_ASBOX
14095 ) |
14096 sed "s/^/$as_me: WARNING: /" >&2
14097 ;;
14098esac
14099echo "$as_me:$LINENO: checking for $ac_header" >&5
14100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14101if eval "test \"\${$as_ac_Header+set}\" = set"; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14103else
14104 eval "$as_ac_Header=\$ac_header_preproc"
14105fi
14106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14108
14109fi
14110if test `eval echo '${'$as_ac_Header'}'` = yes; then
14111 cat >>confdefs.h <<_ACEOF
14112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14113_ACEOF
14114
14115fi
14116
14117done
14118
14119
14120
14121
efde2f2c
NC
14122
14123for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
2ba49b59
KC
14124do
14125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14126if eval "test \"\${$as_ac_Header+set}\" = set"; then
14127 echo "$as_me:$LINENO: checking for $ac_header" >&5
14128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14129if eval "test \"\${$as_ac_Header+set}\" = set"; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14131fi
14132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14133echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14134else
14135 # Is the header compilable?
14136echo "$as_me:$LINENO: checking $ac_header usability" >&5
14137echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14138cat >conftest.$ac_ext <<_ACEOF
14139/* confdefs.h. */
14140_ACEOF
14141cat confdefs.h >>conftest.$ac_ext
14142cat >>conftest.$ac_ext <<_ACEOF
14143/* end confdefs.h. */
14144$ac_includes_default
14145#include <$ac_header>
14146_ACEOF
14147rm -f conftest.$ac_objext
14148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14149 (eval $ac_compile) 2>conftest.er1
14150 ac_status=$?
14151 grep -v '^ *+' conftest.er1 >conftest.err
14152 rm -f conftest.er1
14153 cat conftest.err >&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } &&
7357c5b6
AM
14156 { ac_try='test -z "$ac_c_werror_flag"
14157 || test ! -s conftest.err'
2ba49b59
KC
14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14160 ac_status=$?
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; } &&
14163 { ac_try='test -s conftest.$ac_objext'
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; }; then
14169 ac_header_compiler=yes
14170else
14171 echo "$as_me: failed program was:" >&5
14172sed 's/^/| /' conftest.$ac_ext >&5
14173
14174ac_header_compiler=no
14175fi
14176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14177echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14178echo "${ECHO_T}$ac_header_compiler" >&6
14179
14180# Is the header present?
14181echo "$as_me:$LINENO: checking $ac_header presence" >&5
14182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14183cat >conftest.$ac_ext <<_ACEOF
14184/* confdefs.h. */
14185_ACEOF
14186cat confdefs.h >>conftest.$ac_ext
14187cat >>conftest.$ac_ext <<_ACEOF
14188/* end confdefs.h. */
14189#include <$ac_header>
14190_ACEOF
14191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } >/dev/null; then
14199 if test -s conftest.err; then
14200 ac_cpp_err=$ac_c_preproc_warn_flag
14201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14202 else
14203 ac_cpp_err=
14204 fi
14205else
14206 ac_cpp_err=yes
14207fi
14208if test -z "$ac_cpp_err"; then
14209 ac_header_preproc=yes
14210else
14211 echo "$as_me: failed program was:" >&5
14212sed 's/^/| /' conftest.$ac_ext >&5
14213
14214 ac_header_preproc=no
14215fi
14216rm -f conftest.err conftest.$ac_ext
14217echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14218echo "${ECHO_T}$ac_header_preproc" >&6
14219
14220# So? What about this header?
14221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14222 yes:no: )
14223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14224echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14226echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14227 ac_header_preproc=yes
14228 ;;
14229 no:yes:* )
14230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14231echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14233echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14235echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14237echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14239echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14241echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14242 (
14243 cat <<\_ASBOX
14244## ------------------------------------------ ##
14245## Report this to the AC_PACKAGE_NAME lists. ##
14246## ------------------------------------------ ##
14247_ASBOX
14248 ) |
14249 sed "s/^/$as_me: WARNING: /" >&2
14250 ;;
14251esac
14252echo "$as_me:$LINENO: checking for $ac_header" >&5
14253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14254if eval "test \"\${$as_ac_Header+set}\" = set"; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14256else
14257 eval "$as_ac_Header=\$ac_header_preproc"
14258fi
14259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14261
14262fi
14263if test `eval echo '${'$as_ac_Header'}'` = yes; then
14264 cat >>confdefs.h <<_ACEOF
14265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14266_ACEOF
14267
14268fi
14269
14270done
14271
d5efd9fc
AM
14272
14273
14274inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14275
14276acx_cv_header_stdint=stddef.h
14277acx_cv_header_stdint_kind="(already complete)"
14278for i in stdint.h $inttype_headers; do
14279 unset ac_cv_type_uintptr_t
14280 unset ac_cv_type_uintmax_t
14281 unset ac_cv_type_int_least32_t
14282 unset ac_cv_type_int_fast32_t
14283 unset ac_cv_type_uint64_t
14284 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14285 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14286echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14287if test "${ac_cv_type_uintmax_t+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14289else
14290 cat >conftest.$ac_ext <<_ACEOF
14291/* confdefs.h. */
14292_ACEOF
14293cat confdefs.h >>conftest.$ac_ext
14294cat >>conftest.$ac_ext <<_ACEOF
14295/* end confdefs.h. */
14296#include <sys/types.h>
14297#include <$i>
14298
14299int
14300main ()
14301{
14302if ((uintmax_t *) 0)
14303 return 0;
14304if (sizeof (uintmax_t))
14305 return 0;
14306 ;
14307 return 0;
14308}
14309_ACEOF
14310rm -f conftest.$ac_objext
14311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14312 (eval $ac_compile) 2>conftest.er1
14313 ac_status=$?
14314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
7357c5b6
AM
14319 { ac_try='test -z "$ac_c_werror_flag"
14320 || test ! -s conftest.err'
d5efd9fc
AM
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest.$ac_objext'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 ac_cv_type_uintmax_t=yes
14333else
14334 echo "$as_me: failed program was:" >&5
14335sed 's/^/| /' conftest.$ac_ext >&5
14336
14337ac_cv_type_uintmax_t=no
14338fi
14339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14340fi
14341echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14342echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14343if test $ac_cv_type_uintmax_t = yes; then
14344 acx_cv_header_stdint=$i
14345else
14346 continue
14347fi
14348
14349 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14350echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14351if test "${ac_cv_type_uintptr_t+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14353else
14354 cat >conftest.$ac_ext <<_ACEOF
14355/* confdefs.h. */
14356_ACEOF
14357cat confdefs.h >>conftest.$ac_ext
14358cat >>conftest.$ac_ext <<_ACEOF
14359/* end confdefs.h. */
14360#include <sys/types.h>
14361#include <$i>
14362
14363int
14364main ()
14365{
14366if ((uintptr_t *) 0)
14367 return 0;
14368if (sizeof (uintptr_t))
14369 return 0;
14370 ;
14371 return 0;
14372}
14373_ACEOF
14374rm -f conftest.$ac_objext
14375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
7357c5b6
AM
14383 { ac_try='test -z "$ac_c_werror_flag"
14384 || test ! -s conftest.err'
d5efd9fc
AM
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest.$ac_objext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 ac_cv_type_uintptr_t=yes
14397else
14398 echo "$as_me: failed program was:" >&5
14399sed 's/^/| /' conftest.$ac_ext >&5
14400
14401ac_cv_type_uintptr_t=no
14402fi
14403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14404fi
14405echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14406echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14407if test $ac_cv_type_uintptr_t = yes; then
14408 :
14409else
14410 acx_cv_header_stdint_kind="(mostly complete)"
14411fi
14412
14413 echo "$as_me:$LINENO: checking for int_least32_t" >&5
14414echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14415if test "${ac_cv_type_int_least32_t+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14417else
14418 cat >conftest.$ac_ext <<_ACEOF
14419/* confdefs.h. */
14420_ACEOF
14421cat confdefs.h >>conftest.$ac_ext
14422cat >>conftest.$ac_ext <<_ACEOF
14423/* end confdefs.h. */
14424#include <sys/types.h>
14425#include <$i>
14426
14427int
14428main ()
14429{
14430if ((int_least32_t *) 0)
14431 return 0;
14432if (sizeof (int_least32_t))
14433 return 0;
14434 ;
14435 return 0;
14436}
14437_ACEOF
14438rm -f conftest.$ac_objext
14439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14440 (eval $ac_compile) 2>conftest.er1
14441 ac_status=$?
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
7357c5b6
AM
14447 { ac_try='test -z "$ac_c_werror_flag"
14448 || test ! -s conftest.err'
d5efd9fc
AM
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest.$ac_objext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_cv_type_int_least32_t=yes
14461else
14462 echo "$as_me: failed program was:" >&5
14463sed 's/^/| /' conftest.$ac_ext >&5
14464
14465ac_cv_type_int_least32_t=no
14466fi
14467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14468fi
14469echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14470echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14471if test $ac_cv_type_int_least32_t = yes; then
14472 :
14473else
14474 acx_cv_header_stdint_kind="(mostly complete)"
14475fi
14476
14477 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14478echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14479if test "${ac_cv_type_int_fast32_t+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14481else
14482 cat >conftest.$ac_ext <<_ACEOF
14483/* confdefs.h. */
14484_ACEOF
14485cat confdefs.h >>conftest.$ac_ext
14486cat >>conftest.$ac_ext <<_ACEOF
14487/* end confdefs.h. */
14488#include <sys/types.h>
14489#include <$i>
14490
14491int
14492main ()
14493{
14494if ((int_fast32_t *) 0)
14495 return 0;
14496if (sizeof (int_fast32_t))
14497 return 0;
14498 ;
14499 return 0;
14500}
14501_ACEOF
14502rm -f conftest.$ac_objext
14503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14504 (eval $ac_compile) 2>conftest.er1
14505 ac_status=$?
14506 grep -v '^ *+' conftest.er1 >conftest.err
14507 rm -f conftest.er1
14508 cat conftest.err >&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); } &&
7357c5b6
AM
14511 { ac_try='test -z "$ac_c_werror_flag"
14512 || test ! -s conftest.err'
d5efd9fc
AM
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; } &&
14518 { ac_try='test -s conftest.$ac_objext'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
14524 ac_cv_type_int_fast32_t=yes
14525else
14526 echo "$as_me: failed program was:" >&5
14527sed 's/^/| /' conftest.$ac_ext >&5
14528
14529ac_cv_type_int_fast32_t=no
14530fi
14531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14532fi
14533echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14534echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14535if test $ac_cv_type_int_fast32_t = yes; then
14536 :
14537else
14538 acx_cv_header_stdint_kind="(mostly complete)"
14539fi
14540
14541 echo "$as_me:$LINENO: checking for uint64_t" >&5
14542echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14543if test "${ac_cv_type_uint64_t+set}" = set; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14545else
14546 cat >conftest.$ac_ext <<_ACEOF
14547/* confdefs.h. */
14548_ACEOF
14549cat confdefs.h >>conftest.$ac_ext
14550cat >>conftest.$ac_ext <<_ACEOF
14551/* end confdefs.h. */
14552#include <sys/types.h>
14553#include <$i>
14554
14555int
14556main ()
14557{
14558if ((uint64_t *) 0)
14559 return 0;
14560if (sizeof (uint64_t))
14561 return 0;
14562 ;
14563 return 0;
14564}
14565_ACEOF
14566rm -f conftest.$ac_objext
14567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14568 (eval $ac_compile) 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
7357c5b6
AM
14575 { ac_try='test -z "$ac_c_werror_flag"
14576 || test ! -s conftest.err'
d5efd9fc
AM
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 ac_cv_type_uint64_t=yes
14589else
14590 echo "$as_me: failed program was:" >&5
14591sed 's/^/| /' conftest.$ac_ext >&5
14592
14593ac_cv_type_uint64_t=no
14594fi
14595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14596fi
14597echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14598echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14599if test $ac_cv_type_uint64_t = yes; then
14600 :
14601else
14602 acx_cv_header_stdint_kind="(lacks uint64_t)"
14603fi
14604
14605 break
14606done
14607if test "$acx_cv_header_stdint" = stddef.h; then
14608 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14609 for i in stdint.h $inttype_headers; do
14610 unset ac_cv_type_uintptr_t
14611 unset ac_cv_type_uint32_t
14612 unset ac_cv_type_uint64_t
14613 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14614 echo "$as_me:$LINENO: checking for uint32_t" >&5
14615echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14616if test "${ac_cv_type_uint32_t+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618else
14619 cat >conftest.$ac_ext <<_ACEOF
14620/* confdefs.h. */
14621_ACEOF
14622cat confdefs.h >>conftest.$ac_ext
14623cat >>conftest.$ac_ext <<_ACEOF
14624/* end confdefs.h. */
14625#include <sys/types.h>
14626#include <$i>
14627
14628int
14629main ()
14630{
14631if ((uint32_t *) 0)
14632 return 0;
14633if (sizeof (uint32_t))
14634 return 0;
14635 ;
14636 return 0;
14637}
14638_ACEOF
14639rm -f conftest.$ac_objext
14640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641 (eval $ac_compile) 2>conftest.er1
14642 ac_status=$?
14643 grep -v '^ *+' conftest.er1 >conftest.err
14644 rm -f conftest.er1
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
7357c5b6
AM
14648 { ac_try='test -z "$ac_c_werror_flag"
14649 || test ! -s conftest.err'
d5efd9fc
AM
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } &&
14655 { ac_try='test -s conftest.$ac_objext'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14658 ac_status=$?
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14661 ac_cv_type_uint32_t=yes
14662else
14663 echo "$as_me: failed program was:" >&5
14664sed 's/^/| /' conftest.$ac_ext >&5
14665
14666ac_cv_type_uint32_t=no
14667fi
14668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14669fi
14670echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14671echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14672if test $ac_cv_type_uint32_t = yes; then
14673 acx_cv_header_stdint=$i
14674else
14675 continue
14676fi
14677
14678 echo "$as_me:$LINENO: checking for uint64_t" >&5
14679echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14680if test "${ac_cv_type_uint64_t+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14682else
14683 cat >conftest.$ac_ext <<_ACEOF
14684/* confdefs.h. */
14685_ACEOF
14686cat confdefs.h >>conftest.$ac_ext
14687cat >>conftest.$ac_ext <<_ACEOF
14688/* end confdefs.h. */
14689#include <sys/types.h>
14690#include <$i>
14691
14692int
14693main ()
14694{
14695if ((uint64_t *) 0)
14696 return 0;
14697if (sizeof (uint64_t))
14698 return 0;
14699 ;
14700 return 0;
14701}
14702_ACEOF
14703rm -f conftest.$ac_objext
14704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14705 (eval $ac_compile) 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } &&
7357c5b6
AM
14712 { ac_try='test -z "$ac_c_werror_flag"
14713 || test ! -s conftest.err'
d5efd9fc
AM
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14716 ac_status=$?
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; } &&
14719 { ac_try='test -s conftest.$ac_objext'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; }; then
14725 ac_cv_type_uint64_t=yes
14726else
14727 echo "$as_me: failed program was:" >&5
14728sed 's/^/| /' conftest.$ac_ext >&5
14729
14730ac_cv_type_uint64_t=no
14731fi
14732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14733fi
14734echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14735echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14736
14737 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14738echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14739if test "${ac_cv_type_uintptr_t+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741else
14742 cat >conftest.$ac_ext <<_ACEOF
14743/* confdefs.h. */
14744_ACEOF
14745cat confdefs.h >>conftest.$ac_ext
14746cat >>conftest.$ac_ext <<_ACEOF
14747/* end confdefs.h. */
14748#include <sys/types.h>
14749#include <$i>
14750
14751int
14752main ()
14753{
14754if ((uintptr_t *) 0)
14755 return 0;
14756if (sizeof (uintptr_t))
14757 return 0;
14758 ;
14759 return 0;
14760}
14761_ACEOF
14762rm -f conftest.$ac_objext
14763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14764 (eval $ac_compile) 2>conftest.er1
14765 ac_status=$?
14766 grep -v '^ *+' conftest.er1 >conftest.err
14767 rm -f conftest.er1
14768 cat conftest.err >&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } &&
7357c5b6
AM
14771 { ac_try='test -z "$ac_c_werror_flag"
14772 || test ! -s conftest.err'
d5efd9fc
AM
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try='test -s conftest.$ac_objext'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 ac_cv_type_uintptr_t=yes
14785else
14786 echo "$as_me: failed program was:" >&5
14787sed 's/^/| /' conftest.$ac_ext >&5
14788
14789ac_cv_type_uintptr_t=no
14790fi
14791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14792fi
14793echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14794echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14795
14796 break
14797 done
14798fi
14799if test "$acx_cv_header_stdint" = stddef.h; then
14800 acx_cv_header_stdint_kind="(u_intXX_t style)"
14801 for i in sys/types.h $inttype_headers; do
14802 unset ac_cv_type_u_int32_t
14803 unset ac_cv_type_u_int64_t
14804 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14805 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14806echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14807if test "${ac_cv_type_u_int32_t+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14809else
14810 cat >conftest.$ac_ext <<_ACEOF
14811/* confdefs.h. */
14812_ACEOF
14813cat confdefs.h >>conftest.$ac_ext
14814cat >>conftest.$ac_ext <<_ACEOF
14815/* end confdefs.h. */
14816#include <sys/types.h>
14817#include <$i>
14818
14819int
14820main ()
14821{
14822if ((u_int32_t *) 0)
14823 return 0;
14824if (sizeof (u_int32_t))
14825 return 0;
14826 ;
14827 return 0;
14828}
14829_ACEOF
14830rm -f conftest.$ac_objext
14831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832 (eval $ac_compile) 2>conftest.er1
14833 ac_status=$?
14834 grep -v '^ *+' conftest.er1 >conftest.err
14835 rm -f conftest.er1
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
7357c5b6
AM
14839 { ac_try='test -z "$ac_c_werror_flag"
14840 || test ! -s conftest.err'
d5efd9fc
AM
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest.$ac_objext'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 ac_cv_type_u_int32_t=yes
14853else
14854 echo "$as_me: failed program was:" >&5
14855sed 's/^/| /' conftest.$ac_ext >&5
14856
14857ac_cv_type_u_int32_t=no
14858fi
14859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14860fi
14861echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14862echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14863if test $ac_cv_type_u_int32_t = yes; then
14864 acx_cv_header_stdint=$i
14865else
14866 continue
14867fi
14868
14869 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14870echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14871if test "${ac_cv_type_u_int64_t+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14873else
14874 cat >conftest.$ac_ext <<_ACEOF
14875/* confdefs.h. */
14876_ACEOF
14877cat confdefs.h >>conftest.$ac_ext
14878cat >>conftest.$ac_ext <<_ACEOF
14879/* end confdefs.h. */
14880#include <sys/types.h>
14881#include <$i>
14882
14883int
14884main ()
14885{
14886if ((u_int64_t *) 0)
14887 return 0;
14888if (sizeof (u_int64_t))
14889 return 0;
14890 ;
14891 return 0;
14892}
14893_ACEOF
14894rm -f conftest.$ac_objext
14895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14896 (eval $ac_compile) 2>conftest.er1
14897 ac_status=$?
14898 grep -v '^ *+' conftest.er1 >conftest.err
14899 rm -f conftest.er1
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
7357c5b6
AM
14903 { ac_try='test -z "$ac_c_werror_flag"
14904 || test ! -s conftest.err'
d5efd9fc
AM
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14907 ac_status=$?
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; } &&
14910 { ac_try='test -s conftest.$ac_objext'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14916 ac_cv_type_u_int64_t=yes
14917else
14918 echo "$as_me: failed program was:" >&5
14919sed 's/^/| /' conftest.$ac_ext >&5
14920
14921ac_cv_type_u_int64_t=no
14922fi
14923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14924fi
14925echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14926echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14927
14928 break
14929 done
14930fi
14931if test "$acx_cv_header_stdint" = stddef.h; then
14932 acx_cv_header_stdint_kind="(using manual detection)"
14933fi
14934
14935test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14936test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14937test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14938test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14939test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14940
14941# ----------------- Summarize what we found so far
14942
14943echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14944echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14945
14946case `$as_basename bfd_stdint.h ||
14947$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14948 Xbfd_stdint.h : 'X\(//\)$' \| \
14949 Xbfd_stdint.h : 'X\(/\)$' \| \
14950 . : '\(.\)' 2>/dev/null ||
14951echo X/bfd_stdint.h |
14952 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14953 /^X\/\(\/\/\)$/{ s//\1/; q; }
14954 /^X\/\(\/\).*/{ s//\1/; q; }
14955 s/.*/./; q'` in
14956 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14957echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14958 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14959echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14960 *) ;;
14961esac
14962
14963echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14964echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14965
14966# ----------------- done included file, check C basic types --------
14967
14968# Lacking an uintptr_t? Test size of void *
14969case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14970 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14971echo $ECHO_N "checking for void *... $ECHO_C" >&6
14972if test "${ac_cv_type_void_p+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974else
14975 cat >conftest.$ac_ext <<_ACEOF
14976/* confdefs.h. */
14977_ACEOF
14978cat confdefs.h >>conftest.$ac_ext
14979cat >>conftest.$ac_ext <<_ACEOF
14980/* end confdefs.h. */
14981$ac_includes_default
14982int
14983main ()
14984{
14985if ((void * *) 0)
14986 return 0;
14987if (sizeof (void *))
14988 return 0;
14989 ;
14990 return 0;
14991}
14992_ACEOF
14993rm -f conftest.$ac_objext
14994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14995 (eval $ac_compile) 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
7357c5b6
AM
15002 { ac_try='test -z "$ac_c_werror_flag"
15003 || test ! -s conftest.err'
d5efd9fc
AM
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15015 ac_cv_type_void_p=yes
15016else
15017 echo "$as_me: failed program was:" >&5
15018sed 's/^/| /' conftest.$ac_ext >&5
15019
15020ac_cv_type_void_p=no
15021fi
15022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15023fi
15024echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15025echo "${ECHO_T}$ac_cv_type_void_p" >&6
15026
15027echo "$as_me:$LINENO: checking size of void *" >&5
15028echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15029if test "${ac_cv_sizeof_void_p+set}" = set; then
15030 echo $ECHO_N "(cached) $ECHO_C" >&6
15031else
15032 if test "$ac_cv_type_void_p" = yes; then
15033 # The cast to unsigned long works around a bug in the HP C Compiler
15034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15036 # This bug is HP SR number 8606223364.
15037 if test "$cross_compiling" = yes; then
15038 # Depending upon the size, compute the lo and hi bounds.
15039cat >conftest.$ac_ext <<_ACEOF
15040/* confdefs.h. */
15041_ACEOF
15042cat confdefs.h >>conftest.$ac_ext
15043cat >>conftest.$ac_ext <<_ACEOF
15044/* end confdefs.h. */
15045$ac_includes_default
15046int
15047main ()
15048{
15049static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15050test_array [0] = 0
15051
15052 ;
15053 return 0;
15054}
15055_ACEOF
15056rm -f conftest.$ac_objext
15057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058 (eval $ac_compile) 2>conftest.er1
15059 ac_status=$?
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
7357c5b6
AM
15065 { ac_try='test -z "$ac_c_werror_flag"
15066 || test ! -s conftest.err'
d5efd9fc
AM
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest.$ac_objext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_lo=0 ac_mid=0
15079 while :; do
15080 cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086$ac_includes_default
15087int
15088main ()
15089{
15090static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
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=$ac_mid; break
15120else
15121 echo "$as_me: failed program was:" >&5
15122sed 's/^/| /' conftest.$ac_ext >&5
15123
15124ac_lo=`expr $ac_mid + 1`
15125 if test $ac_lo -le $ac_mid; then
15126 ac_lo= ac_hi=
15127 break
15128 fi
15129 ac_mid=`expr 2 '*' $ac_mid + 1`
15130fi
15131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15132 done
15133else
15134 echo "$as_me: failed program was:" >&5
15135sed 's/^/| /' conftest.$ac_ext >&5
15136
15137cat >conftest.$ac_ext <<_ACEOF
15138/* confdefs.h. */
15139_ACEOF
15140cat confdefs.h >>conftest.$ac_ext
15141cat >>conftest.$ac_ext <<_ACEOF
15142/* end confdefs.h. */
15143$ac_includes_default
15144int
15145main ()
15146{
15147static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15148test_array [0] = 0
15149
15150 ;
15151 return 0;
15152}
15153_ACEOF
15154rm -f conftest.$ac_objext
15155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15156 (eval $ac_compile) 2>conftest.er1
15157 ac_status=$?
15158 grep -v '^ *+' conftest.er1 >conftest.err
15159 rm -f conftest.er1
15160 cat conftest.err >&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } &&
7357c5b6
AM
15163 { ac_try='test -z "$ac_c_werror_flag"
15164 || test ! -s conftest.err'
d5efd9fc
AM
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; } &&
15170 { ac_try='test -s conftest.$ac_objext'
15171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15173 ac_status=$?
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; }; then
15176 ac_hi=-1 ac_mid=-1
15177 while :; do
15178 cat >conftest.$ac_ext <<_ACEOF
15179/* confdefs.h. */
15180_ACEOF
15181cat confdefs.h >>conftest.$ac_ext
15182cat >>conftest.$ac_ext <<_ACEOF
15183/* end confdefs.h. */
15184$ac_includes_default
15185int
15186main ()
15187{
15188static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15189test_array [0] = 0
15190
15191 ;
15192 return 0;
15193}
15194_ACEOF
15195rm -f conftest.$ac_objext
15196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15197 (eval $ac_compile) 2>conftest.er1
15198 ac_status=$?
15199 grep -v '^ *+' conftest.er1 >conftest.err
15200 rm -f conftest.er1
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } &&
7357c5b6
AM
15204 { ac_try='test -z "$ac_c_werror_flag"
15205 || test ! -s conftest.err'
d5efd9fc
AM
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15208 ac_status=$?
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; } &&
15211 { ac_try='test -s conftest.$ac_objext'
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15214 ac_status=$?
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; }; then
15217 ac_lo=$ac_mid; break
15218else
15219 echo "$as_me: failed program was:" >&5
15220sed 's/^/| /' conftest.$ac_ext >&5
15221
15222ac_hi=`expr '(' $ac_mid ')' - 1`
15223 if test $ac_mid -le $ac_hi; then
15224 ac_lo= ac_hi=
15225 break
15226 fi
15227 ac_mid=`expr 2 '*' $ac_mid`
15228fi
15229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15230 done
15231else
15232 echo "$as_me: failed program was:" >&5
15233sed 's/^/| /' conftest.$ac_ext >&5
15234
15235ac_lo= ac_hi=
15236fi
15237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15238fi
15239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15240# Binary search between lo and hi bounds.
15241while test "x$ac_lo" != "x$ac_hi"; do
15242 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15243 cat >conftest.$ac_ext <<_ACEOF
15244/* confdefs.h. */
15245_ACEOF
15246cat confdefs.h >>conftest.$ac_ext
15247cat >>conftest.$ac_ext <<_ACEOF
15248/* end confdefs.h. */
15249$ac_includes_default
15250int
15251main ()
15252{
15253static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15254test_array [0] = 0
15255
15256 ;
15257 return 0;
15258}
15259_ACEOF
15260rm -f conftest.$ac_objext
15261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15262 (eval $ac_compile) 2>conftest.er1
15263 ac_status=$?
15264 grep -v '^ *+' conftest.er1 >conftest.err
15265 rm -f conftest.er1
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
7357c5b6
AM
15269 { ac_try='test -z "$ac_c_werror_flag"
15270 || test ! -s conftest.err'
d5efd9fc
AM
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } &&
15276 { ac_try='test -s conftest.$ac_objext'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 ac_hi=$ac_mid
15283else
15284 echo "$as_me: failed program was:" >&5
15285sed 's/^/| /' conftest.$ac_ext >&5
15286
15287ac_lo=`expr '(' $ac_mid ')' + 1`
15288fi
15289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15290done
15291case $ac_lo in
15292?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
15293'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15294echo "$as_me: error: in \`$ac_pwd':" >&2;}
15295{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d5efd9fc
AM
15296See \`config.log' for more details." >&5
15297echo "$as_me: error: cannot compute sizeof (void *), 77
15298See \`config.log' for more details." >&2;}
7357c5b6 15299 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15300esac
15301else
15302 if test "$cross_compiling" = yes; then
7357c5b6
AM
15303 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15304echo "$as_me: error: in \`$ac_pwd':" >&2;}
15305{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15306See \`config.log' for more details." >&5
15307echo "$as_me: error: cannot run test program while cross compiling
15308See \`config.log' for more details." >&2;}
15309 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15310else
15311 cat >conftest.$ac_ext <<_ACEOF
15312/* confdefs.h. */
15313_ACEOF
15314cat confdefs.h >>conftest.$ac_ext
15315cat >>conftest.$ac_ext <<_ACEOF
15316/* end confdefs.h. */
15317$ac_includes_default
15318long longval () { return (long) (sizeof (void *)); }
15319unsigned long ulongval () { return (long) (sizeof (void *)); }
15320#include <stdio.h>
15321#include <stdlib.h>
15322int
15323main ()
15324{
15325
15326 FILE *f = fopen ("conftest.val", "w");
15327 if (! f)
15328 exit (1);
15329 if (((long) (sizeof (void *))) < 0)
15330 {
15331 long i = longval ();
15332 if (i != ((long) (sizeof (void *))))
15333 exit (1);
15334 fprintf (f, "%ld\n", i);
15335 }
15336 else
15337 {
15338 unsigned long i = ulongval ();
15339 if (i != ((long) (sizeof (void *))))
15340 exit (1);
15341 fprintf (f, "%lu\n", i);
15342 }
15343 exit (ferror (f) || fclose (f) != 0);
15344
15345 ;
15346 return 0;
15347}
15348_ACEOF
15349rm -f conftest$ac_exeext
15350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15351 (eval $ac_link) 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 ac_cv_sizeof_void_p=`cat conftest.val`
15361else
15362 echo "$as_me: program exited with status $ac_status" >&5
15363echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
15366( exit $ac_status )
7357c5b6
AM
15367{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15368echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15369{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15370See \`config.log' for more details." >&5
15371echo "$as_me: error: cannot compute sizeof (void *), 77
15372See \`config.log' for more details." >&2;}
7357c5b6 15373 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15374fi
15375rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15376fi
15377fi
15378rm -f conftest.val
15379else
15380 ac_cv_sizeof_void_p=0
15381fi
15382fi
15383echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15384echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15385cat >>confdefs.h <<_ACEOF
15386#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15387_ACEOF
15388
15389 ;;
15390esac
15391
15392# Lacking an uint64_t? Test size of long
15393case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15394 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15395echo $ECHO_N "checking for long... $ECHO_C" >&6
15396if test "${ac_cv_type_long+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15398else
15399 cat >conftest.$ac_ext <<_ACEOF
15400/* confdefs.h. */
15401_ACEOF
15402cat confdefs.h >>conftest.$ac_ext
15403cat >>conftest.$ac_ext <<_ACEOF
15404/* end confdefs.h. */
15405$ac_includes_default
15406int
15407main ()
15408{
15409if ((long *) 0)
15410 return 0;
15411if (sizeof (long))
15412 return 0;
15413 ;
15414 return 0;
15415}
15416_ACEOF
15417rm -f conftest.$ac_objext
15418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15419 (eval $ac_compile) 2>conftest.er1
15420 ac_status=$?
15421 grep -v '^ *+' conftest.er1 >conftest.err
15422 rm -f conftest.er1
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } &&
7357c5b6
AM
15426 { ac_try='test -z "$ac_c_werror_flag"
15427 || test ! -s conftest.err'
d5efd9fc
AM
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; } &&
15433 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15439 ac_cv_type_long=yes
15440else
15441 echo "$as_me: failed program was:" >&5
15442sed 's/^/| /' conftest.$ac_ext >&5
15443
15444ac_cv_type_long=no
15445fi
15446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15447fi
15448echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15449echo "${ECHO_T}$ac_cv_type_long" >&6
15450
15451echo "$as_me:$LINENO: checking size of long" >&5
15452echo $ECHO_N "checking size of long... $ECHO_C" >&6
15453if test "${ac_cv_sizeof_long+set}" = set; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15455else
15456 if test "$ac_cv_type_long" = yes; then
15457 # The cast to unsigned long works around a bug in the HP C Compiler
15458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15460 # This bug is HP SR number 8606223364.
15461 if test "$cross_compiling" = yes; then
15462 # Depending upon the size, compute the lo and hi bounds.
15463cat >conftest.$ac_ext <<_ACEOF
15464/* confdefs.h. */
15465_ACEOF
15466cat confdefs.h >>conftest.$ac_ext
15467cat >>conftest.$ac_ext <<_ACEOF
15468/* end confdefs.h. */
15469$ac_includes_default
15470int
15471main ()
15472{
15473static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15474test_array [0] = 0
15475
15476 ;
15477 return 0;
15478}
15479_ACEOF
15480rm -f conftest.$ac_objext
15481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15482 (eval $ac_compile) 2>conftest.er1
15483 ac_status=$?
15484 grep -v '^ *+' conftest.er1 >conftest.err
15485 rm -f conftest.er1
15486 cat conftest.err >&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } &&
7357c5b6
AM
15489 { ac_try='test -z "$ac_c_werror_flag"
15490 || test ! -s conftest.err'
d5efd9fc
AM
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15493 ac_status=$?
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; } &&
15496 { ac_try='test -s conftest.$ac_objext'
15497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; }; then
15502 ac_lo=0 ac_mid=0
15503 while :; do
15504 cat >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))) <= $ac_mid)];
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=$ac_mid; break
15544else
15545 echo "$as_me: failed program was:" >&5
15546sed 's/^/| /' conftest.$ac_ext >&5
15547
15548ac_lo=`expr $ac_mid + 1`
15549 if test $ac_lo -le $ac_mid; then
15550 ac_lo= ac_hi=
15551 break
15552 fi
15553 ac_mid=`expr 2 '*' $ac_mid + 1`
15554fi
15555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15556 done
15557else
15558 echo "$as_me: failed program was:" >&5
15559sed 's/^/| /' conftest.$ac_ext >&5
15560
15561cat >conftest.$ac_ext <<_ACEOF
15562/* confdefs.h. */
15563_ACEOF
15564cat confdefs.h >>conftest.$ac_ext
15565cat >>conftest.$ac_ext <<_ACEOF
15566/* end confdefs.h. */
15567$ac_includes_default
15568int
15569main ()
15570{
15571static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15572test_array [0] = 0
15573
15574 ;
15575 return 0;
15576}
15577_ACEOF
15578rm -f conftest.$ac_objext
15579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15580 (eval $ac_compile) 2>conftest.er1
15581 ac_status=$?
15582 grep -v '^ *+' conftest.er1 >conftest.err
15583 rm -f conftest.er1
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } &&
7357c5b6
AM
15587 { ac_try='test -z "$ac_c_werror_flag"
15588 || test ! -s conftest.err'
d5efd9fc
AM
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; } &&
15594 { ac_try='test -s conftest.$ac_objext'
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; }; then
15600 ac_hi=-1 ac_mid=-1
15601 while :; do
15602 cat >conftest.$ac_ext <<_ACEOF
15603/* confdefs.h. */
15604_ACEOF
15605cat confdefs.h >>conftest.$ac_ext
15606cat >>conftest.$ac_ext <<_ACEOF
15607/* end confdefs.h. */
15608$ac_includes_default
15609int
15610main ()
15611{
15612static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15613test_array [0] = 0
15614
15615 ;
15616 return 0;
15617}
15618_ACEOF
15619rm -f conftest.$ac_objext
15620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15621 (eval $ac_compile) 2>conftest.er1
15622 ac_status=$?
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
7357c5b6
AM
15628 { ac_try='test -z "$ac_c_werror_flag"
15629 || test ! -s conftest.err'
d5efd9fc
AM
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest.$ac_objext'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_lo=$ac_mid; break
15642else
15643 echo "$as_me: failed program was:" >&5
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
15646ac_hi=`expr '(' $ac_mid ')' - 1`
15647 if test $ac_mid -le $ac_hi; then
15648 ac_lo= ac_hi=
15649 break
15650 fi
15651 ac_mid=`expr 2 '*' $ac_mid`
15652fi
15653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15654 done
15655else
15656 echo "$as_me: failed program was:" >&5
15657sed 's/^/| /' conftest.$ac_ext >&5
15658
15659ac_lo= ac_hi=
15660fi
15661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15662fi
15663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15664# Binary search between lo and hi bounds.
15665while test "x$ac_lo" != "x$ac_hi"; do
15666 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15667 cat >conftest.$ac_ext <<_ACEOF
15668/* confdefs.h. */
15669_ACEOF
15670cat confdefs.h >>conftest.$ac_ext
15671cat >>conftest.$ac_ext <<_ACEOF
15672/* end confdefs.h. */
15673$ac_includes_default
15674int
15675main ()
15676{
15677static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15678test_array [0] = 0
15679
15680 ;
15681 return 0;
15682}
15683_ACEOF
15684rm -f conftest.$ac_objext
15685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15686 (eval $ac_compile) 2>conftest.er1
15687 ac_status=$?
15688 grep -v '^ *+' conftest.er1 >conftest.err
15689 rm -f conftest.er1
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } &&
7357c5b6
AM
15693 { ac_try='test -z "$ac_c_werror_flag"
15694 || test ! -s conftest.err'
d5efd9fc
AM
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; } &&
15700 { ac_try='test -s conftest.$ac_objext'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 ac_hi=$ac_mid
15707else
15708 echo "$as_me: failed program was:" >&5
15709sed 's/^/| /' conftest.$ac_ext >&5
15710
15711ac_lo=`expr '(' $ac_mid ')' + 1`
15712fi
15713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15714done
15715case $ac_lo in
15716?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
15717'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15718echo "$as_me: error: in \`$ac_pwd':" >&2;}
15719{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
d5efd9fc
AM
15720See \`config.log' for more details." >&5
15721echo "$as_me: error: cannot compute sizeof (long), 77
15722See \`config.log' for more details." >&2;}
7357c5b6 15723 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15724esac
15725else
15726 if test "$cross_compiling" = yes; then
7357c5b6
AM
15727 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15728echo "$as_me: error: in \`$ac_pwd':" >&2;}
15729{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15730See \`config.log' for more details." >&5
15731echo "$as_me: error: cannot run test program while cross compiling
15732See \`config.log' for more details." >&2;}
15733 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15734else
15735 cat >conftest.$ac_ext <<_ACEOF
15736/* confdefs.h. */
15737_ACEOF
15738cat confdefs.h >>conftest.$ac_ext
15739cat >>conftest.$ac_ext <<_ACEOF
15740/* end confdefs.h. */
15741$ac_includes_default
15742long longval () { return (long) (sizeof (long)); }
15743unsigned long ulongval () { return (long) (sizeof (long)); }
15744#include <stdio.h>
15745#include <stdlib.h>
15746int
15747main ()
15748{
15749
15750 FILE *f = fopen ("conftest.val", "w");
15751 if (! f)
15752 exit (1);
15753 if (((long) (sizeof (long))) < 0)
15754 {
15755 long i = longval ();
15756 if (i != ((long) (sizeof (long))))
15757 exit (1);
15758 fprintf (f, "%ld\n", i);
15759 }
15760 else
15761 {
15762 unsigned long i = ulongval ();
15763 if (i != ((long) (sizeof (long))))
15764 exit (1);
15765 fprintf (f, "%lu\n", i);
15766 }
15767 exit (ferror (f) || fclose (f) != 0);
15768
15769 ;
15770 return 0;
15771}
15772_ACEOF
15773rm -f conftest$ac_exeext
15774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15775 (eval $ac_link) 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 ac_cv_sizeof_long=`cat conftest.val`
15785else
15786 echo "$as_me: program exited with status $ac_status" >&5
15787echo "$as_me: failed program was:" >&5
15788sed 's/^/| /' conftest.$ac_ext >&5
15789
15790( exit $ac_status )
7357c5b6
AM
15791{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15792echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15793{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15794See \`config.log' for more details." >&5
15795echo "$as_me: error: cannot compute sizeof (long), 77
15796See \`config.log' for more details." >&2;}
7357c5b6 15797 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15798fi
15799rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15800fi
15801fi
15802rm -f conftest.val
15803else
15804 ac_cv_sizeof_long=0
15805fi
15806fi
15807echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15808echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15809cat >>confdefs.h <<_ACEOF
15810#define SIZEOF_LONG $ac_cv_sizeof_long
15811_ACEOF
15812
15813 ;;
15814esac
15815
15816if test $acx_cv_header_stdint = stddef.h; then
15817 # Lacking a good header? Test size of everything and deduce all types.
15818 echo "$as_me:$LINENO: checking for int" >&5
15819echo $ECHO_N "checking for int... $ECHO_C" >&6
15820if test "${ac_cv_type_int+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15822else
15823 cat >conftest.$ac_ext <<_ACEOF
15824/* confdefs.h. */
15825_ACEOF
15826cat confdefs.h >>conftest.$ac_ext
15827cat >>conftest.$ac_ext <<_ACEOF
15828/* end confdefs.h. */
15829$ac_includes_default
15830int
15831main ()
15832{
15833if ((int *) 0)
15834 return 0;
15835if (sizeof (int))
15836 return 0;
15837 ;
15838 return 0;
15839}
15840_ACEOF
15841rm -f conftest.$ac_objext
15842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15843 (eval $ac_compile) 2>conftest.er1
15844 ac_status=$?
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
7357c5b6
AM
15850 { ac_try='test -z "$ac_c_werror_flag"
15851 || test ! -s conftest.err'
d5efd9fc
AM
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; } &&
15857 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15863 ac_cv_type_int=yes
15864else
15865 echo "$as_me: failed program was:" >&5
15866sed 's/^/| /' conftest.$ac_ext >&5
15867
15868ac_cv_type_int=no
15869fi
15870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15871fi
15872echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15873echo "${ECHO_T}$ac_cv_type_int" >&6
15874
15875echo "$as_me:$LINENO: checking size of int" >&5
15876echo $ECHO_N "checking size of int... $ECHO_C" >&6
15877if test "${ac_cv_sizeof_int+set}" = set; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15879else
15880 if test "$ac_cv_type_int" = yes; then
15881 # The cast to unsigned long works around a bug in the HP C Compiler
15882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15884 # This bug is HP SR number 8606223364.
15885 if test "$cross_compiling" = yes; then
15886 # Depending upon the size, compute the lo and hi bounds.
15887cat >conftest.$ac_ext <<_ACEOF
15888/* confdefs.h. */
15889_ACEOF
15890cat confdefs.h >>conftest.$ac_ext
15891cat >>conftest.$ac_ext <<_ACEOF
15892/* end confdefs.h. */
15893$ac_includes_default
15894int
15895main ()
15896{
15897static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15898test_array [0] = 0
15899
15900 ;
15901 return 0;
15902}
15903_ACEOF
15904rm -f conftest.$ac_objext
15905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15906 (eval $ac_compile) 2>conftest.er1
15907 ac_status=$?
15908 grep -v '^ *+' conftest.er1 >conftest.err
15909 rm -f conftest.er1
15910 cat conftest.err >&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
7357c5b6
AM
15913 { ac_try='test -z "$ac_c_werror_flag"
15914 || test ! -s conftest.err'
d5efd9fc
AM
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; } &&
15920 { ac_try='test -s conftest.$ac_objext'
15921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
15923 ac_status=$?
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; }; then
15926 ac_lo=0 ac_mid=0
15927 while :; do
15928 cat >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))) <= $ac_mid)];
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=$ac_mid; break
15968else
15969 echo "$as_me: failed program was:" >&5
15970sed 's/^/| /' conftest.$ac_ext >&5
15971
15972ac_lo=`expr $ac_mid + 1`
15973 if test $ac_lo -le $ac_mid; then
15974 ac_lo= ac_hi=
15975 break
15976 fi
15977 ac_mid=`expr 2 '*' $ac_mid + 1`
15978fi
15979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15980 done
15981else
15982 echo "$as_me: failed program was:" >&5
15983sed 's/^/| /' conftest.$ac_ext >&5
15984
15985cat >conftest.$ac_ext <<_ACEOF
15986/* confdefs.h. */
15987_ACEOF
15988cat confdefs.h >>conftest.$ac_ext
15989cat >>conftest.$ac_ext <<_ACEOF
15990/* end confdefs.h. */
15991$ac_includes_default
15992int
15993main ()
15994{
15995static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15996test_array [0] = 0
15997
15998 ;
15999 return 0;
16000}
16001_ACEOF
16002rm -f conftest.$ac_objext
16003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16004 (eval $ac_compile) 2>conftest.er1
16005 ac_status=$?
16006 grep -v '^ *+' conftest.er1 >conftest.err
16007 rm -f conftest.er1
16008 cat conftest.err >&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } &&
7357c5b6
AM
16011 { ac_try='test -z "$ac_c_werror_flag"
16012 || test ! -s conftest.err'
d5efd9fc
AM
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest.$ac_objext'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_hi=-1 ac_mid=-1
16025 while :; do
16026 cat >conftest.$ac_ext <<_ACEOF
16027/* confdefs.h. */
16028_ACEOF
16029cat confdefs.h >>conftest.$ac_ext
16030cat >>conftest.$ac_ext <<_ACEOF
16031/* end confdefs.h. */
16032$ac_includes_default
16033int
16034main ()
16035{
16036static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16037test_array [0] = 0
16038
16039 ;
16040 return 0;
16041}
16042_ACEOF
16043rm -f conftest.$ac_objext
16044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16045 (eval $ac_compile) 2>conftest.er1
16046 ac_status=$?
16047 grep -v '^ *+' conftest.er1 >conftest.err
16048 rm -f conftest.er1
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
7357c5b6
AM
16052 { ac_try='test -z "$ac_c_werror_flag"
16053 || test ! -s conftest.err'
d5efd9fc
AM
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest.$ac_objext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16062 ac_status=$?
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ac_lo=$ac_mid; break
16066else
16067 echo "$as_me: failed program was:" >&5
16068sed 's/^/| /' conftest.$ac_ext >&5
16069
16070ac_hi=`expr '(' $ac_mid ')' - 1`
16071 if test $ac_mid -le $ac_hi; then
16072 ac_lo= ac_hi=
16073 break
16074 fi
16075 ac_mid=`expr 2 '*' $ac_mid`
16076fi
16077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16078 done
16079else
16080 echo "$as_me: failed program was:" >&5
16081sed 's/^/| /' conftest.$ac_ext >&5
16082
16083ac_lo= ac_hi=
16084fi
16085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16086fi
16087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16088# Binary search between lo and hi bounds.
16089while test "x$ac_lo" != "x$ac_hi"; do
16090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16091 cat >conftest.$ac_ext <<_ACEOF
16092/* confdefs.h. */
16093_ACEOF
16094cat confdefs.h >>conftest.$ac_ext
16095cat >>conftest.$ac_ext <<_ACEOF
16096/* end confdefs.h. */
16097$ac_includes_default
16098int
16099main ()
16100{
16101static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16102test_array [0] = 0
16103
16104 ;
16105 return 0;
16106}
16107_ACEOF
16108rm -f conftest.$ac_objext
16109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16110 (eval $ac_compile) 2>conftest.er1
16111 ac_status=$?
16112 grep -v '^ *+' conftest.er1 >conftest.err
16113 rm -f conftest.er1
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } &&
7357c5b6
AM
16117 { ac_try='test -z "$ac_c_werror_flag"
16118 || test ! -s conftest.err'
d5efd9fc
AM
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16121 ac_status=$?
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; } &&
16124 { ac_try='test -s conftest.$ac_objext'
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 ac_hi=$ac_mid
16131else
16132 echo "$as_me: failed program was:" >&5
16133sed 's/^/| /' conftest.$ac_ext >&5
16134
16135ac_lo=`expr '(' $ac_mid ')' + 1`
16136fi
16137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16138done
16139case $ac_lo in
16140?*) ac_cv_sizeof_int=$ac_lo;;
7357c5b6
AM
16141'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16142echo "$as_me: error: in \`$ac_pwd':" >&2;}
16143{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
d5efd9fc
AM
16144See \`config.log' for more details." >&5
16145echo "$as_me: error: cannot compute sizeof (int), 77
16146See \`config.log' for more details." >&2;}
7357c5b6 16147 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16148esac
16149else
16150 if test "$cross_compiling" = yes; then
7357c5b6
AM
16151 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16152echo "$as_me: error: in \`$ac_pwd':" >&2;}
16153{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16154See \`config.log' for more details." >&5
16155echo "$as_me: error: cannot run test program while cross compiling
16156See \`config.log' for more details." >&2;}
16157 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16158else
16159 cat >conftest.$ac_ext <<_ACEOF
16160/* confdefs.h. */
16161_ACEOF
16162cat confdefs.h >>conftest.$ac_ext
16163cat >>conftest.$ac_ext <<_ACEOF
16164/* end confdefs.h. */
16165$ac_includes_default
16166long longval () { return (long) (sizeof (int)); }
16167unsigned long ulongval () { return (long) (sizeof (int)); }
16168#include <stdio.h>
16169#include <stdlib.h>
16170int
16171main ()
16172{
16173
16174 FILE *f = fopen ("conftest.val", "w");
16175 if (! f)
16176 exit (1);
16177 if (((long) (sizeof (int))) < 0)
16178 {
16179 long i = longval ();
16180 if (i != ((long) (sizeof (int))))
16181 exit (1);
16182 fprintf (f, "%ld\n", i);
16183 }
16184 else
16185 {
16186 unsigned long i = ulongval ();
16187 if (i != ((long) (sizeof (int))))
16188 exit (1);
16189 fprintf (f, "%lu\n", i);
16190 }
16191 exit (ferror (f) || fclose (f) != 0);
16192
16193 ;
16194 return 0;
16195}
16196_ACEOF
16197rm -f conftest$ac_exeext
16198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16199 (eval $ac_link) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16208 ac_cv_sizeof_int=`cat conftest.val`
16209else
16210 echo "$as_me: program exited with status $ac_status" >&5
16211echo "$as_me: failed program was:" >&5
16212sed 's/^/| /' conftest.$ac_ext >&5
16213
16214( exit $ac_status )
7357c5b6
AM
16215{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16216echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
16217{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16218See \`config.log' for more details." >&5
16219echo "$as_me: error: cannot compute sizeof (int), 77
16220See \`config.log' for more details." >&2;}
7357c5b6 16221 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16222fi
16223rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16224fi
16225fi
16226rm -f conftest.val
16227else
16228 ac_cv_sizeof_int=0
16229fi
16230fi
16231echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16232echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16233cat >>confdefs.h <<_ACEOF
16234#define SIZEOF_INT $ac_cv_sizeof_int
16235_ACEOF
16236
16237
16238 echo "$as_me:$LINENO: checking for short" >&5
16239echo $ECHO_N "checking for short... $ECHO_C" >&6
16240if test "${ac_cv_type_short+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16242else
16243 cat >conftest.$ac_ext <<_ACEOF
16244/* confdefs.h. */
16245_ACEOF
16246cat confdefs.h >>conftest.$ac_ext
16247cat >>conftest.$ac_ext <<_ACEOF
16248/* end confdefs.h. */
16249$ac_includes_default
16250int
16251main ()
16252{
16253if ((short *) 0)
16254 return 0;
16255if (sizeof (short))
16256 return 0;
16257 ;
16258 return 0;
16259}
16260_ACEOF
16261rm -f conftest.$ac_objext
16262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263 (eval $ac_compile) 2>conftest.er1
16264 ac_status=$?
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
7357c5b6
AM
16270 { ac_try='test -z "$ac_c_werror_flag"
16271 || test ! -s conftest.err'
d5efd9fc
AM
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } &&
16277 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16283 ac_cv_type_short=yes
16284else
16285 echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
16288ac_cv_type_short=no
16289fi
16290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16291fi
16292echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16293echo "${ECHO_T}$ac_cv_type_short" >&6
16294
16295echo "$as_me:$LINENO: checking size of short" >&5
16296echo $ECHO_N "checking size of short... $ECHO_C" >&6
16297if test "${ac_cv_sizeof_short+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16299else
16300 if test "$ac_cv_type_short" = yes; then
16301 # The cast to unsigned long works around a bug in the HP C Compiler
16302 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16303 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16304 # This bug is HP SR number 8606223364.
16305 if test "$cross_compiling" = yes; then
16306 # Depending upon the size, compute the lo and hi bounds.
16307cat >conftest.$ac_ext <<_ACEOF
16308/* confdefs.h. */
16309_ACEOF
16310cat confdefs.h >>conftest.$ac_ext
16311cat >>conftest.$ac_ext <<_ACEOF
16312/* end confdefs.h. */
16313$ac_includes_default
16314int
16315main ()
16316{
16317static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16318test_array [0] = 0
16319
16320 ;
16321 return 0;
16322}
16323_ACEOF
16324rm -f conftest.$ac_objext
16325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16326 (eval $ac_compile) 2>conftest.er1
16327 ac_status=$?
16328 grep -v '^ *+' conftest.er1 >conftest.err
16329 rm -f conftest.er1
16330 cat conftest.err >&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } &&
7357c5b6
AM
16333 { ac_try='test -z "$ac_c_werror_flag"
16334 || test ! -s conftest.err'
d5efd9fc
AM
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; } &&
16340 { ac_try='test -s conftest.$ac_objext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16346 ac_lo=0 ac_mid=0
16347 while :; do
16348 cat >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))) <= $ac_mid)];
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=$ac_mid; break
16388else
16389 echo "$as_me: failed program was:" >&5
16390sed 's/^/| /' conftest.$ac_ext >&5
16391
16392ac_lo=`expr $ac_mid + 1`
16393 if test $ac_lo -le $ac_mid; then
16394 ac_lo= ac_hi=
16395 break
16396 fi
16397 ac_mid=`expr 2 '*' $ac_mid + 1`
16398fi
16399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16400 done
16401else
16402 echo "$as_me: failed program was:" >&5
16403sed 's/^/| /' conftest.$ac_ext >&5
16404
16405cat >conftest.$ac_ext <<_ACEOF
16406/* confdefs.h. */
16407_ACEOF
16408cat confdefs.h >>conftest.$ac_ext
16409cat >>conftest.$ac_ext <<_ACEOF
16410/* end confdefs.h. */
16411$ac_includes_default
16412int
16413main ()
16414{
16415static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16416test_array [0] = 0
16417
16418 ;
16419 return 0;
16420}
16421_ACEOF
16422rm -f conftest.$ac_objext
16423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16424 (eval $ac_compile) 2>conftest.er1
16425 ac_status=$?
16426 grep -v '^ *+' conftest.er1 >conftest.err
16427 rm -f conftest.er1
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
7357c5b6
AM
16431 { ac_try='test -z "$ac_c_werror_flag"
16432 || test ! -s conftest.err'
d5efd9fc
AM
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; } &&
16438 { ac_try='test -s conftest.$ac_objext'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; }; then
16444 ac_hi=-1 ac_mid=-1
16445 while :; do
16446 cat >conftest.$ac_ext <<_ACEOF
16447/* confdefs.h. */
16448_ACEOF
16449cat confdefs.h >>conftest.$ac_ext
16450cat >>conftest.$ac_ext <<_ACEOF
16451/* end confdefs.h. */
16452$ac_includes_default
16453int
16454main ()
16455{
16456static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16457test_array [0] = 0
16458
16459 ;
16460 return 0;
16461}
16462_ACEOF
16463rm -f conftest.$ac_objext
16464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16465 (eval $ac_compile) 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
7357c5b6
AM
16472 { ac_try='test -z "$ac_c_werror_flag"
16473 || test ! -s conftest.err'
d5efd9fc
AM
16474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475 (eval $ac_try) 2>&5
16476 ac_status=$?
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; } &&
16479 { ac_try='test -s conftest.$ac_objext'
16480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16482 ac_status=$?
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16485 ac_lo=$ac_mid; break
16486else
16487 echo "$as_me: failed program was:" >&5
16488sed 's/^/| /' conftest.$ac_ext >&5
16489
16490ac_hi=`expr '(' $ac_mid ')' - 1`
16491 if test $ac_mid -le $ac_hi; then
16492 ac_lo= ac_hi=
16493 break
16494 fi
16495 ac_mid=`expr 2 '*' $ac_mid`
16496fi
16497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16498 done
16499else
16500 echo "$as_me: failed program was:" >&5
16501sed 's/^/| /' conftest.$ac_ext >&5
16502
16503ac_lo= ac_hi=
16504fi
16505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16506fi
16507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16508# Binary search between lo and hi bounds.
16509while test "x$ac_lo" != "x$ac_hi"; do
16510 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16511 cat >conftest.$ac_ext <<_ACEOF
16512/* confdefs.h. */
16513_ACEOF
16514cat confdefs.h >>conftest.$ac_ext
16515cat >>conftest.$ac_ext <<_ACEOF
16516/* end confdefs.h. */
16517$ac_includes_default
16518int
16519main ()
16520{
16521static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16522test_array [0] = 0
16523
16524 ;
16525 return 0;
16526}
16527_ACEOF
16528rm -f conftest.$ac_objext
16529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16530 (eval $ac_compile) 2>conftest.er1
16531 ac_status=$?
16532 grep -v '^ *+' conftest.er1 >conftest.err
16533 rm -f conftest.er1
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } &&
7357c5b6
AM
16537 { ac_try='test -z "$ac_c_werror_flag"
16538 || test ! -s conftest.err'
d5efd9fc
AM
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16550 ac_hi=$ac_mid
16551else
16552 echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
16555ac_lo=`expr '(' $ac_mid ')' + 1`
16556fi
16557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16558done
16559case $ac_lo in
16560?*) ac_cv_sizeof_short=$ac_lo;;
7357c5b6
AM
16561'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16562echo "$as_me: error: in \`$ac_pwd':" >&2;}
16563{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
d5efd9fc
AM
16564See \`config.log' for more details." >&5
16565echo "$as_me: error: cannot compute sizeof (short), 77
16566See \`config.log' for more details." >&2;}
7357c5b6 16567 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16568esac
16569else
16570 if test "$cross_compiling" = yes; then
7357c5b6
AM
16571 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16572echo "$as_me: error: in \`$ac_pwd':" >&2;}
16573{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16574See \`config.log' for more details." >&5
16575echo "$as_me: error: cannot run test program while cross compiling
16576See \`config.log' for more details." >&2;}
16577 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16578else
16579 cat >conftest.$ac_ext <<_ACEOF
16580/* confdefs.h. */
16581_ACEOF
16582cat confdefs.h >>conftest.$ac_ext
16583cat >>conftest.$ac_ext <<_ACEOF
16584/* end confdefs.h. */
16585$ac_includes_default
16586long longval () { return (long) (sizeof (short)); }
16587unsigned long ulongval () { return (long) (sizeof (short)); }
16588#include <stdio.h>
16589#include <stdlib.h>
16590int
16591main ()
16592{
16593
16594 FILE *f = fopen ("conftest.val", "w");
16595 if (! f)
16596 exit (1);
16597 if (((long) (sizeof (short))) < 0)
16598 {
16599 long i = longval ();
16600 if (i != ((long) (sizeof (short))))
16601 exit (1);
16602 fprintf (f, "%ld\n", i);
16603 }
16604 else
16605 {
16606 unsigned long i = ulongval ();
16607 if (i != ((long) (sizeof (short))))
16608 exit (1);
16609 fprintf (f, "%lu\n", i);
16610 }
16611 exit (ferror (f) || fclose (f) != 0);
16612
16613 ;
16614 return 0;
16615}
16616_ACEOF
16617rm -f conftest$ac_exeext
16618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16619 (eval $ac_link) 2>&5
16620 ac_status=$?
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_sizeof_short=`cat conftest.val`
16629else
16630 echo "$as_me: program exited with status $ac_status" >&5
16631echo "$as_me: failed program was:" >&5
16632sed 's/^/| /' conftest.$ac_ext >&5
16633
16634( exit $ac_status )
7357c5b6
AM
16635{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16636echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
16637{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16638See \`config.log' for more details." >&5
16639echo "$as_me: error: cannot compute sizeof (short), 77
16640See \`config.log' for more details." >&2;}
7357c5b6 16641 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16642fi
16643rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16644fi
16645fi
16646rm -f conftest.val
16647else
16648 ac_cv_sizeof_short=0
16649fi
16650fi
16651echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16652echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16653cat >>confdefs.h <<_ACEOF
16654#define SIZEOF_SHORT $ac_cv_sizeof_short
16655_ACEOF
16656
16657
16658 echo "$as_me:$LINENO: checking for char" >&5
16659echo $ECHO_N "checking for char... $ECHO_C" >&6
16660if test "${ac_cv_type_char+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662else
16663 cat >conftest.$ac_ext <<_ACEOF
16664/* confdefs.h. */
16665_ACEOF
16666cat confdefs.h >>conftest.$ac_ext
16667cat >>conftest.$ac_ext <<_ACEOF
16668/* end confdefs.h. */
16669$ac_includes_default
16670int
16671main ()
16672{
16673if ((char *) 0)
16674 return 0;
16675if (sizeof (char))
16676 return 0;
16677 ;
16678 return 0;
16679}
16680_ACEOF
16681rm -f conftest.$ac_objext
16682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16683 (eval $ac_compile) 2>conftest.er1
16684 ac_status=$?
16685 grep -v '^ *+' conftest.er1 >conftest.err
16686 rm -f conftest.er1
16687 cat conftest.err >&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); } &&
7357c5b6
AM
16690 { ac_try='test -z "$ac_c_werror_flag"
16691 || test ! -s conftest.err'
d5efd9fc
AM
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; } &&
16697 { ac_try='test -s conftest.$ac_objext'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703 ac_cv_type_char=yes
16704else
16705 echo "$as_me: failed program was:" >&5
16706sed 's/^/| /' conftest.$ac_ext >&5
16707
16708ac_cv_type_char=no
16709fi
16710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16711fi
16712echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16713echo "${ECHO_T}$ac_cv_type_char" >&6
16714
16715echo "$as_me:$LINENO: checking size of char" >&5
16716echo $ECHO_N "checking size of char... $ECHO_C" >&6
16717if test "${ac_cv_sizeof_char+set}" = set; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
16719else
16720 if test "$ac_cv_type_char" = yes; then
16721 # The cast to unsigned long works around a bug in the HP C Compiler
16722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16724 # This bug is HP SR number 8606223364.
16725 if test "$cross_compiling" = yes; then
16726 # Depending upon the size, compute the lo and hi bounds.
16727cat >conftest.$ac_ext <<_ACEOF
16728/* confdefs.h. */
16729_ACEOF
16730cat confdefs.h >>conftest.$ac_ext
16731cat >>conftest.$ac_ext <<_ACEOF
16732/* end confdefs.h. */
16733$ac_includes_default
16734int
16735main ()
16736{
16737static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16738test_array [0] = 0
16739
16740 ;
16741 return 0;
16742}
16743_ACEOF
16744rm -f conftest.$ac_objext
16745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16746 (eval $ac_compile) 2>conftest.er1
16747 ac_status=$?
16748 grep -v '^ *+' conftest.er1 >conftest.err
16749 rm -f conftest.er1
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } &&
7357c5b6
AM
16753 { ac_try='test -z "$ac_c_werror_flag"
16754 || test ! -s conftest.err'
d5efd9fc
AM
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16757 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; } &&
16760 { ac_try='test -s conftest.$ac_objext'
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16766 ac_lo=0 ac_mid=0
16767 while :; do
16768 cat >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))) <= $ac_mid)];
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=$ac_mid; break
16808else
16809 echo "$as_me: failed program was:" >&5
16810sed 's/^/| /' conftest.$ac_ext >&5
16811
16812ac_lo=`expr $ac_mid + 1`
16813 if test $ac_lo -le $ac_mid; then
16814 ac_lo= ac_hi=
16815 break
16816 fi
16817 ac_mid=`expr 2 '*' $ac_mid + 1`
16818fi
16819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16820 done
16821else
16822 echo "$as_me: failed program was:" >&5
16823sed 's/^/| /' conftest.$ac_ext >&5
16824
16825cat >conftest.$ac_ext <<_ACEOF
16826/* confdefs.h. */
16827_ACEOF
16828cat confdefs.h >>conftest.$ac_ext
16829cat >>conftest.$ac_ext <<_ACEOF
16830/* end confdefs.h. */
16831$ac_includes_default
16832int
16833main ()
16834{
16835static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16836test_array [0] = 0
16837
16838 ;
16839 return 0;
16840}
16841_ACEOF
16842rm -f conftest.$ac_objext
16843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16844 (eval $ac_compile) 2>conftest.er1
16845 ac_status=$?
16846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } &&
7357c5b6
AM
16851 { ac_try='test -z "$ac_c_werror_flag"
16852 || test ! -s conftest.err'
d5efd9fc
AM
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest.$ac_objext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_hi=-1 ac_mid=-1
16865 while :; do
16866 cat >conftest.$ac_ext <<_ACEOF
16867/* confdefs.h. */
16868_ACEOF
16869cat confdefs.h >>conftest.$ac_ext
16870cat >>conftest.$ac_ext <<_ACEOF
16871/* end confdefs.h. */
16872$ac_includes_default
16873int
16874main ()
16875{
16876static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16877test_array [0] = 0
16878
16879 ;
16880 return 0;
16881}
16882_ACEOF
16883rm -f conftest.$ac_objext
16884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16885 (eval $ac_compile) 2>conftest.er1
16886 ac_status=$?
16887 grep -v '^ *+' conftest.er1 >conftest.err
16888 rm -f conftest.er1
16889 cat conftest.err >&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
7357c5b6
AM
16892 { ac_try='test -z "$ac_c_werror_flag"
16893 || test ! -s conftest.err'
d5efd9fc
AM
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; } &&
16899 { ac_try='test -s conftest.$ac_objext'
16900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901 (eval $ac_try) 2>&5
16902 ac_status=$?
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; }; then
16905 ac_lo=$ac_mid; break
16906else
16907 echo "$as_me: failed program was:" >&5
16908sed 's/^/| /' conftest.$ac_ext >&5
16909
16910ac_hi=`expr '(' $ac_mid ')' - 1`
16911 if test $ac_mid -le $ac_hi; then
16912 ac_lo= ac_hi=
16913 break
16914 fi
16915 ac_mid=`expr 2 '*' $ac_mid`
16916fi
16917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16918 done
16919else
16920 echo "$as_me: failed program was:" >&5
16921sed 's/^/| /' conftest.$ac_ext >&5
16922
16923ac_lo= ac_hi=
16924fi
16925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16926fi
16927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16928# Binary search between lo and hi bounds.
16929while test "x$ac_lo" != "x$ac_hi"; do
16930 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16931 cat >conftest.$ac_ext <<_ACEOF
16932/* confdefs.h. */
16933_ACEOF
16934cat confdefs.h >>conftest.$ac_ext
16935cat >>conftest.$ac_ext <<_ACEOF
16936/* end confdefs.h. */
16937$ac_includes_default
16938int
16939main ()
16940{
16941static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16942test_array [0] = 0
16943
16944 ;
16945 return 0;
16946}
16947_ACEOF
16948rm -f conftest.$ac_objext
16949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16950 (eval $ac_compile) 2>conftest.er1
16951 ac_status=$?
16952 grep -v '^ *+' conftest.er1 >conftest.err
16953 rm -f conftest.er1
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } &&
7357c5b6
AM
16957 { ac_try='test -z "$ac_c_werror_flag"
16958 || test ! -s conftest.err'
d5efd9fc
AM
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; } &&
16964 { ac_try='test -s conftest.$ac_objext'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
16970 ac_hi=$ac_mid
16971else
16972 echo "$as_me: failed program was:" >&5
16973sed 's/^/| /' conftest.$ac_ext >&5
16974
16975ac_lo=`expr '(' $ac_mid ')' + 1`
16976fi
16977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16978done
16979case $ac_lo in
16980?*) ac_cv_sizeof_char=$ac_lo;;
7357c5b6
AM
16981'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16982echo "$as_me: error: in \`$ac_pwd':" >&2;}
16983{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
d5efd9fc
AM
16984See \`config.log' for more details." >&5
16985echo "$as_me: error: cannot compute sizeof (char), 77
16986See \`config.log' for more details." >&2;}
7357c5b6 16987 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16988esac
16989else
16990 if test "$cross_compiling" = yes; then
7357c5b6
AM
16991 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16992echo "$as_me: error: in \`$ac_pwd':" >&2;}
16993{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16994See \`config.log' for more details." >&5
16995echo "$as_me: error: cannot run test program while cross compiling
16996See \`config.log' for more details." >&2;}
16997 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16998else
16999 cat >conftest.$ac_ext <<_ACEOF
17000/* confdefs.h. */
17001_ACEOF
17002cat confdefs.h >>conftest.$ac_ext
17003cat >>conftest.$ac_ext <<_ACEOF
17004/* end confdefs.h. */
17005$ac_includes_default
17006long longval () { return (long) (sizeof (char)); }
17007unsigned long ulongval () { return (long) (sizeof (char)); }
17008#include <stdio.h>
17009#include <stdlib.h>
17010int
17011main ()
17012{
17013
17014 FILE *f = fopen ("conftest.val", "w");
17015 if (! f)
17016 exit (1);
17017 if (((long) (sizeof (char))) < 0)
17018 {
17019 long i = longval ();
17020 if (i != ((long) (sizeof (char))))
17021 exit (1);
17022 fprintf (f, "%ld\n", i);
17023 }
17024 else
17025 {
17026 unsigned long i = ulongval ();
17027 if (i != ((long) (sizeof (char))))
17028 exit (1);
17029 fprintf (f, "%lu\n", i);
17030 }
17031 exit (ferror (f) || fclose (f) != 0);
17032
17033 ;
17034 return 0;
17035}
17036_ACEOF
17037rm -f conftest$ac_exeext
17038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17039 (eval $ac_link) 2>&5
17040 ac_status=$?
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 ac_cv_sizeof_char=`cat conftest.val`
17049else
17050 echo "$as_me: program exited with status $ac_status" >&5
17051echo "$as_me: failed program was:" >&5
17052sed 's/^/| /' conftest.$ac_ext >&5
17053
17054( exit $ac_status )
7357c5b6
AM
17055{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17056echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
17057{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17058See \`config.log' for more details." >&5
17059echo "$as_me: error: cannot compute sizeof (char), 77
17060See \`config.log' for more details." >&2;}
7357c5b6 17061 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
17062fi
17063rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17064fi
17065fi
17066rm -f conftest.val
17067else
17068 ac_cv_sizeof_char=0
17069fi
17070fi
17071echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17072echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17073cat >>confdefs.h <<_ACEOF
17074#define SIZEOF_CHAR $ac_cv_sizeof_char
17075_ACEOF
17076
17077
17078
17079 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17080echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17081 case "$ac_cv_sizeof_char" in
17082 1) acx_cv_type_int8_t=char ;;
17083 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17084echo "$as_me: error: no 8-bit type" >&2;}
17085 { (exit please report a bug); exit please report a bug; }; }
17086 esac
17087 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17088echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17089
17090 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17091echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17092 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17093 2:*) acx_cv_type_int16_t=int ;;
17094 *:2) acx_cv_type_int16_t=short ;;
17095 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17096echo "$as_me: error: no 16-bit type" >&2;}
17097 { (exit please report a bug); exit please report a bug; }; }
17098 esac
17099 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17100echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17101
17102 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17103echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17104 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17105 4:*) acx_cv_type_int32_t=int ;;
17106 *:4) acx_cv_type_int32_t=long ;;
17107 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17108echo "$as_me: error: no 32-bit type" >&2;}
17109 { (exit please report a bug); exit please report a bug; }; }
17110 esac
17111 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17112echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17113fi
17114
17115# These tests are here to make the output prettier
17116
17117if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17118 case "$ac_cv_sizeof_long" in
17119 8) acx_cv_type_int64_t=long ;;
17120 esac
17121 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17122echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17123 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17124echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17125fi
17126
17127# Now we can use the above types
17128
17129if test "$ac_cv_type_uintptr_t" != yes; then
17130 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17131echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17132 case $ac_cv_sizeof_void_p in
17133 2) acx_cv_type_intptr_t=int16_t ;;
17134 4) acx_cv_type_intptr_t=int32_t ;;
17135 8) acx_cv_type_intptr_t=int64_t ;;
17136 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17137echo "$as_me: error: no equivalent for intptr_t" >&2;}
17138 { (exit please report a bug); exit please report a bug; }; }
17139 esac
17140 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17141echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17142fi
17143
17144# ----------------- done all checks, emit header -------------
17145 ac_config_commands="$ac_config_commands bfd_stdint.h"
17146
17147
17148
2ba49b59
KC
17149echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17150echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17151if test "${ac_cv_header_time+set}" = set; then
17152 echo $ECHO_N "(cached) $ECHO_C" >&6
17153else
17154 cat >conftest.$ac_ext <<_ACEOF
17155/* confdefs.h. */
17156_ACEOF
17157cat confdefs.h >>conftest.$ac_ext
17158cat >>conftest.$ac_ext <<_ACEOF
17159/* end confdefs.h. */
17160#include <sys/types.h>
17161#include <sys/time.h>
17162#include <time.h>
17163
17164int
17165main ()
17166{
17167if ((struct tm *) 0)
17168return 0;
17169 ;
17170 return 0;
17171}
17172_ACEOF
17173rm -f conftest.$ac_objext
17174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17175 (eval $ac_compile) 2>conftest.er1
17176 ac_status=$?
17177 grep -v '^ *+' conftest.er1 >conftest.err
17178 rm -f conftest.er1
17179 cat conftest.err >&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } &&
7357c5b6
AM
17182 { ac_try='test -z "$ac_c_werror_flag"
17183 || test ! -s conftest.err'
2ba49b59
KC
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17186 ac_status=$?
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; } &&
17189 { ac_try='test -s conftest.$ac_objext'
17190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191 (eval $ac_try) 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; }; then
17195 ac_cv_header_time=yes
17196else
17197 echo "$as_me: failed program was:" >&5
17198sed 's/^/| /' conftest.$ac_ext >&5
17199
17200ac_cv_header_time=no
17201fi
17202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17203fi
17204echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17205echo "${ECHO_T}$ac_cv_header_time" >&6
17206if test $ac_cv_header_time = yes; then
17207
17208cat >>confdefs.h <<\_ACEOF
17209#define TIME_WITH_SYS_TIME 1
17210_ACEOF
17211
17212fi
17213
17214
17215
17216
17217
17218
17219ac_header_dirent=no
17220for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17221 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17222echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17223echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17224if eval "test \"\${$as_ac_Header+set}\" = set"; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17226else
17227 cat >conftest.$ac_ext <<_ACEOF
17228/* confdefs.h. */
17229_ACEOF
17230cat confdefs.h >>conftest.$ac_ext
17231cat >>conftest.$ac_ext <<_ACEOF
17232/* end confdefs.h. */
17233#include <sys/types.h>
17234#include <$ac_hdr>
17235
17236int
17237main ()
17238{
17239if ((DIR *) 0)
17240return 0;
17241 ;
17242 return 0;
17243}
17244_ACEOF
17245rm -f conftest.$ac_objext
17246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17247 (eval $ac_compile) 2>conftest.er1
17248 ac_status=$?
17249 grep -v '^ *+' conftest.er1 >conftest.err
17250 rm -f conftest.er1
17251 cat conftest.err >&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
7357c5b6
AM
17254 { ac_try='test -z "$ac_c_werror_flag"
17255 || test ! -s conftest.err'
2ba49b59
KC
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try='test -s conftest.$ac_objext'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 eval "$as_ac_Header=yes"
17268else
17269 echo "$as_me: failed program was:" >&5
17270sed 's/^/| /' conftest.$ac_ext >&5
17271
17272eval "$as_ac_Header=no"
17273fi
17274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17275fi
17276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17278if test `eval echo '${'$as_ac_Header'}'` = yes; then
17279 cat >>confdefs.h <<_ACEOF
17280#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17281_ACEOF
17282
17283ac_header_dirent=$ac_hdr; break
17284fi
17285
17286done
17287# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17288if test $ac_header_dirent = dirent.h; then
17289 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17290echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17291if test "${ac_cv_search_opendir+set}" = set; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17293else
17294 ac_func_search_save_LIBS=$LIBS
17295ac_cv_search_opendir=no
17296cat >conftest.$ac_ext <<_ACEOF
17297/* confdefs.h. */
17298_ACEOF
17299cat confdefs.h >>conftest.$ac_ext
17300cat >>conftest.$ac_ext <<_ACEOF
17301/* end confdefs.h. */
17302
17303/* Override any gcc2 internal prototype to avoid an error. */
17304#ifdef __cplusplus
17305extern "C"
17306#endif
17307/* We use char because int might match the return type of a gcc2
17308 builtin and then its argument prototype would still apply. */
17309char opendir ();
17310int
17311main ()
17312{
17313opendir ();
17314 ;
17315 return 0;
17316}
17317_ACEOF
17318rm -f conftest.$ac_objext conftest$ac_exeext
17319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17320 (eval $ac_link) 2>conftest.er1
17321 ac_status=$?
17322 grep -v '^ *+' conftest.er1 >conftest.err
17323 rm -f conftest.er1
17324 cat conftest.err >&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } &&
7357c5b6
AM
17327 { ac_try='test -z "$ac_c_werror_flag"
17328 || test ! -s conftest.err'
2ba49b59
KC
17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330 (eval $ac_try) 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; } &&
17334 { ac_try='test -s conftest$ac_exeext'
17335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336 (eval $ac_try) 2>&5
17337 ac_status=$?
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; }; then
17340 ac_cv_search_opendir="none required"
17341else
17342 echo "$as_me: failed program was:" >&5
17343sed 's/^/| /' conftest.$ac_ext >&5
17344
17345fi
17346rm -f conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
17348if test "$ac_cv_search_opendir" = no; then
17349 for ac_lib in dir; do
17350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17351 cat >conftest.$ac_ext <<_ACEOF
17352/* confdefs.h. */
17353_ACEOF
17354cat confdefs.h >>conftest.$ac_ext
17355cat >>conftest.$ac_ext <<_ACEOF
17356/* end confdefs.h. */
17357
17358/* Override any gcc2 internal prototype to avoid an error. */
17359#ifdef __cplusplus
17360extern "C"
17361#endif
17362/* We use char because int might match the return type of a gcc2
17363 builtin and then its argument prototype would still apply. */
17364char opendir ();
17365int
17366main ()
17367{
17368opendir ();
17369 ;
17370 return 0;
17371}
17372_ACEOF
17373rm -f conftest.$ac_objext conftest$ac_exeext
17374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17375 (eval $ac_link) 2>conftest.er1
17376 ac_status=$?
17377 grep -v '^ *+' conftest.er1 >conftest.err
17378 rm -f conftest.er1
17379 cat conftest.err >&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } &&
7357c5b6
AM
17382 { ac_try='test -z "$ac_c_werror_flag"
17383 || test ! -s conftest.err'
2ba49b59
KC
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest$ac_exeext'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395 ac_cv_search_opendir="-l$ac_lib"
17396break
17397else
17398 echo "$as_me: failed program was:" >&5
17399sed 's/^/| /' conftest.$ac_ext >&5
17400
17401fi
17402rm -f conftest.err conftest.$ac_objext \
17403 conftest$ac_exeext conftest.$ac_ext
17404 done
17405fi
17406LIBS=$ac_func_search_save_LIBS
17407fi
17408echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17409echo "${ECHO_T}$ac_cv_search_opendir" >&6
17410if test "$ac_cv_search_opendir" != no; then
17411 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17412
17413fi
17414
17415else
17416 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17417echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17418if test "${ac_cv_search_opendir+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420else
17421 ac_func_search_save_LIBS=$LIBS
17422ac_cv_search_opendir=no
17423cat >conftest.$ac_ext <<_ACEOF
17424/* confdefs.h. */
17425_ACEOF
17426cat confdefs.h >>conftest.$ac_ext
17427cat >>conftest.$ac_ext <<_ACEOF
17428/* end confdefs.h. */
17429
17430/* Override any gcc2 internal prototype to avoid an error. */
17431#ifdef __cplusplus
17432extern "C"
17433#endif
17434/* We use char because int might match the return type of a gcc2
17435 builtin and then its argument prototype would still apply. */
17436char opendir ();
17437int
17438main ()
17439{
17440opendir ();
17441 ;
17442 return 0;
17443}
17444_ACEOF
17445rm -f conftest.$ac_objext conftest$ac_exeext
17446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17447 (eval $ac_link) 2>conftest.er1
17448 ac_status=$?
17449 grep -v '^ *+' conftest.er1 >conftest.err
17450 rm -f conftest.er1
17451 cat conftest.err >&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } &&
7357c5b6
AM
17454 { ac_try='test -z "$ac_c_werror_flag"
17455 || test ! -s conftest.err'
2ba49b59
KC
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; } &&
17461 { ac_try='test -s conftest$ac_exeext'
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; }; then
17467 ac_cv_search_opendir="none required"
17468else
17469 echo "$as_me: failed program was:" >&5
17470sed 's/^/| /' conftest.$ac_ext >&5
17471
17472fi
17473rm -f conftest.err conftest.$ac_objext \
17474 conftest$ac_exeext conftest.$ac_ext
17475if test "$ac_cv_search_opendir" = no; then
17476 for ac_lib in x; do
17477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17478 cat >conftest.$ac_ext <<_ACEOF
17479/* confdefs.h. */
17480_ACEOF
17481cat confdefs.h >>conftest.$ac_ext
17482cat >>conftest.$ac_ext <<_ACEOF
17483/* end confdefs.h. */
17484
17485/* Override any gcc2 internal prototype to avoid an error. */
17486#ifdef __cplusplus
17487extern "C"
17488#endif
17489/* We use char because int might match the return type of a gcc2
17490 builtin and then its argument prototype would still apply. */
17491char opendir ();
17492int
17493main ()
17494{
17495opendir ();
17496 ;
17497 return 0;
17498}
17499_ACEOF
17500rm -f conftest.$ac_objext conftest$ac_exeext
17501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17502 (eval $ac_link) 2>conftest.er1
17503 ac_status=$?
17504 grep -v '^ *+' conftest.er1 >conftest.err
17505 rm -f conftest.er1
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } &&
7357c5b6
AM
17509 { ac_try='test -z "$ac_c_werror_flag"
17510 || test ! -s conftest.err'
2ba49b59
KC
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; } &&
17516 { ac_try='test -s conftest$ac_exeext'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
17522 ac_cv_search_opendir="-l$ac_lib"
17523break
17524else
17525 echo "$as_me: failed program was:" >&5
17526sed 's/^/| /' conftest.$ac_ext >&5
17527
17528fi
17529rm -f conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17531 done
17532fi
17533LIBS=$ac_func_search_save_LIBS
17534fi
17535echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17536echo "${ECHO_T}$ac_cv_search_opendir" >&6
17537if test "$ac_cv_search_opendir" != no; then
17538 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17539
17540fi
17541
17542fi
17543
17544echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
17545echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
17546if test "${gcc_cv_header_string+set}" = set; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17548else
17549 cat >conftest.$ac_ext <<_ACEOF
17550/* confdefs.h. */
17551_ACEOF
17552cat confdefs.h >>conftest.$ac_ext
17553cat >>conftest.$ac_ext <<_ACEOF
17554/* end confdefs.h. */
17555#include <string.h>
17556#include <strings.h>
17557int
17558main ()
17559{
17560
17561 ;
17562 return 0;
17563}
17564_ACEOF
17565rm -f conftest.$ac_objext
17566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17567 (eval $ac_compile) 2>conftest.er1
17568 ac_status=$?
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
7357c5b6
AM
17574 { ac_try='test -z "$ac_c_werror_flag"
17575 || test ! -s conftest.err'
2ba49b59
KC
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try='test -s conftest.$ac_objext'
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 gcc_cv_header_string=yes
17588else
17589 echo "$as_me: failed program was:" >&5
17590sed 's/^/| /' conftest.$ac_ext >&5
17591
17592gcc_cv_header_string=no
17593fi
17594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17595fi
17596echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
17597echo "${ECHO_T}$gcc_cv_header_string" >&6
17598if test $gcc_cv_header_string = yes; then
17599
17600cat >>confdefs.h <<\_ACEOF
17601#define STRING_WITH_STRINGS 1
17602_ACEOF
17603
2e0fbf77
JW
17604fi
17605
5464f5a1
NN
17606
17607
17608
17609
17610
17611
17612
428b207a
TT
17613
17614for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
252b5132 17615do
5464f5a1
NN
17616as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17617echo "$as_me:$LINENO: checking for $ac_func" >&5
17618echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17619if eval "test \"\${$as_ac_var+set}\" = set"; then
17620 echo $ECHO_N "(cached) $ECHO_C" >&6
17621else
17622 cat >conftest.$ac_ext <<_ACEOF
17623/* confdefs.h. */
17624_ACEOF
17625cat confdefs.h >>conftest.$ac_ext
17626cat >>conftest.$ac_ext <<_ACEOF
17627/* end confdefs.h. */
17628/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17630#define $ac_func innocuous_$ac_func
17631
252b5132 17632/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
17633 which can conflict with char $ac_func (); below.
17634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17635 <limits.h> exists even on freestanding compilers. */
17636
17637#ifdef __STDC__
17638# include <limits.h>
17639#else
17640# include <assert.h>
17641#endif
6be7c12c 17642
5464f5a1 17643#undef $ac_func
252b5132 17644
5464f5a1
NN
17645/* Override any gcc2 internal prototype to avoid an error. */
17646#ifdef __cplusplus
17647extern "C"
17648{
17649#endif
17650/* We use char because int might match the return type of a gcc2
17651 builtin and then its argument prototype would still apply. */
17652char $ac_func ();
252b5132
RH
17653/* The GNU C library defines this for functions which it implements
17654 to always fail with ENOSYS. Some functions are actually named
17655 something starting with __ and the normal name is an alias. */
17656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17657choke me
17658#else
5464f5a1
NN
17659char (*f) () = $ac_func;
17660#endif
17661#ifdef __cplusplus
17662}
252b5132
RH
17663#endif
17664
5464f5a1
NN
17665int
17666main ()
17667{
17668return f != $ac_func;
17669 ;
17670 return 0;
17671}
17672_ACEOF
17673rm -f conftest.$ac_objext conftest$ac_exeext
17674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17675 (eval $ac_link) 2>conftest.er1
17676 ac_status=$?
17677 grep -v '^ *+' conftest.er1 >conftest.err
17678 rm -f conftest.er1
17679 cat conftest.err >&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } &&
7357c5b6
AM
17682 { ac_try='test -z "$ac_c_werror_flag"
17683 || test ! -s conftest.err'
5464f5a1
NN
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; } &&
17689 { ac_try='test -s conftest$ac_exeext'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
17695 eval "$as_ac_var=yes"
17696else
17697 echo "$as_me: failed program was:" >&5
17698sed 's/^/| /' conftest.$ac_ext >&5
17699
17700eval "$as_ac_var=no"
17701fi
17702rm -f conftest.err conftest.$ac_objext \
17703 conftest$ac_exeext conftest.$ac_ext
17704fi
17705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17706echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17707if test `eval echo '${'$as_ac_var'}'` = yes; then
17708 cat >>confdefs.h <<_ACEOF
17709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17710_ACEOF
252b5132 17711
252b5132
RH
17712fi
17713done
17714
5464f5a1 17715
49c97a80
ILT
17716for ac_func in strtoull
17717do
5464f5a1
NN
17718as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17719echo "$as_me:$LINENO: checking for $ac_func" >&5
17720echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17721if eval "test \"\${$as_ac_var+set}\" = set"; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723else
17724 cat >conftest.$ac_ext <<_ACEOF
17725/* confdefs.h. */
17726_ACEOF
17727cat confdefs.h >>conftest.$ac_ext
17728cat >>conftest.$ac_ext <<_ACEOF
17729/* end confdefs.h. */
17730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17732#define $ac_func innocuous_$ac_func
17733
49c97a80 17734/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
17735 which can conflict with char $ac_func (); below.
17736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17737 <limits.h> exists even on freestanding compilers. */
17738
17739#ifdef __STDC__
17740# include <limits.h>
17741#else
17742# include <assert.h>
17743#endif
49c97a80 17744
5464f5a1 17745#undef $ac_func
49c97a80 17746
5464f5a1
NN
17747/* Override any gcc2 internal prototype to avoid an error. */
17748#ifdef __cplusplus
17749extern "C"
17750{
17751#endif
17752/* We use char because int might match the return type of a gcc2
17753 builtin and then its argument prototype would still apply. */
17754char $ac_func ();
49c97a80
ILT
17755/* The GNU C library defines this for functions which it implements
17756 to always fail with ENOSYS. Some functions are actually named
17757 something starting with __ and the normal name is an alias. */
17758#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17759choke me
17760#else
5464f5a1
NN
17761char (*f) () = $ac_func;
17762#endif
17763#ifdef __cplusplus
17764}
49c97a80
ILT
17765#endif
17766
5464f5a1
NN
17767int
17768main ()
17769{
17770return f != $ac_func;
17771 ;
17772 return 0;
17773}
17774_ACEOF
17775rm -f conftest.$ac_objext conftest$ac_exeext
17776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17777 (eval $ac_link) 2>conftest.er1
17778 ac_status=$?
17779 grep -v '^ *+' conftest.er1 >conftest.err
17780 rm -f conftest.er1
17781 cat conftest.err >&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
7357c5b6
AM
17784 { ac_try='test -z "$ac_c_werror_flag"
17785 || test ! -s conftest.err'
5464f5a1
NN
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; } &&
17791 { ac_try='test -s conftest$ac_exeext'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; }; then
17797 eval "$as_ac_var=yes"
17798else
17799 echo "$as_me: failed program was:" >&5
17800sed 's/^/| /' conftest.$ac_ext >&5
17801
17802eval "$as_ac_var=no"
17803fi
17804rm -f conftest.err conftest.$ac_objext \
17805 conftest$ac_exeext conftest.$ac_ext
17806fi
17807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17808echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17809if test `eval echo '${'$as_ac_var'}'` = yes; then
17810 cat >>confdefs.h <<_ACEOF
17811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17812_ACEOF
49c97a80 17813
49c97a80
ILT
17814fi
17815done
17816
6be7c12c 17817
2e9ebff5
JG
17818echo "$as_me:$LINENO: checking whether basename is declared" >&5
17819echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17820if test "${ac_cv_have_decl_basename+set}" = set; then
17821 echo $ECHO_N "(cached) $ECHO_C" >&6
17822else
17823 cat >conftest.$ac_ext <<_ACEOF
17824/* confdefs.h. */
17825_ACEOF
17826cat confdefs.h >>conftest.$ac_ext
17827cat >>conftest.$ac_ext <<_ACEOF
17828/* end confdefs.h. */
ec7b76fe 17829$ac_includes_default
2e9ebff5
JG
17830int
17831main ()
17832{
17833#ifndef basename
17834 char *p = (char *) basename;
17835#endif
17836
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext
17842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17843 (eval $ac_compile) 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
7357c5b6
AM
17850 { ac_try='test -z "$ac_c_werror_flag"
17851 || test ! -s conftest.err'
2e9ebff5
JG
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } &&
17857 { ac_try='test -s conftest.$ac_objext'
17858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
17863 ac_cv_have_decl_basename=yes
17864else
17865 echo "$as_me: failed program was:" >&5
17866sed 's/^/| /' conftest.$ac_ext >&5
17867
17868ac_cv_have_decl_basename=no
17869fi
17870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17871fi
17872echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17873echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17874if test $ac_cv_have_decl_basename = yes; then
17875
17876cat >>confdefs.h <<_ACEOF
17877#define HAVE_DECL_BASENAME 1
17878_ACEOF
17879
17880
17881else
17882 cat >>confdefs.h <<_ACEOF
17883#define HAVE_DECL_BASENAME 0
17884_ACEOF
17885
17886
17887fi
17888
17889
ec7b76fe
JG
17890echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17891echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17892if test "${ac_cv_have_decl_ftello+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894else
17895 cat >conftest.$ac_ext <<_ACEOF
17896/* confdefs.h. */
17897_ACEOF
17898cat confdefs.h >>conftest.$ac_ext
17899cat >>conftest.$ac_ext <<_ACEOF
17900/* end confdefs.h. */
17901$ac_includes_default
17902int
17903main ()
17904{
17905#ifndef ftello
17906 char *p = (char *) ftello;
17907#endif
17908
17909 ;
17910 return 0;
17911}
17912_ACEOF
17913rm -f conftest.$ac_objext
17914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17915 (eval $ac_compile) 2>conftest.er1
17916 ac_status=$?
17917 grep -v '^ *+' conftest.er1 >conftest.err
17918 rm -f conftest.er1
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } &&
7357c5b6
AM
17922 { ac_try='test -z "$ac_c_werror_flag"
17923 || test ! -s conftest.err'
ec7b76fe
JG
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; } &&
17929 { ac_try='test -s conftest.$ac_objext'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
17935 ac_cv_have_decl_ftello=yes
17936else
17937 echo "$as_me: failed program was:" >&5
17938sed 's/^/| /' conftest.$ac_ext >&5
17939
17940ac_cv_have_decl_ftello=no
17941fi
17942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17943fi
17944echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17945echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17946if test $ac_cv_have_decl_ftello = yes; then
17947
17948cat >>confdefs.h <<_ACEOF
17949#define HAVE_DECL_FTELLO 1
17950_ACEOF
17951
17952
17953else
17954 cat >>confdefs.h <<_ACEOF
17955#define HAVE_DECL_FTELLO 0
17956_ACEOF
17957
17958
17959fi
17960
17961
17962echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17963echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17964if test "${ac_cv_have_decl_ftello64+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17966else
17967 cat >conftest.$ac_ext <<_ACEOF
17968/* confdefs.h. */
17969_ACEOF
17970cat confdefs.h >>conftest.$ac_ext
17971cat >>conftest.$ac_ext <<_ACEOF
17972/* end confdefs.h. */
17973$ac_includes_default
17974int
17975main ()
17976{
17977#ifndef ftello64
17978 char *p = (char *) ftello64;
17979#endif
17980
17981 ;
17982 return 0;
17983}
17984_ACEOF
17985rm -f conftest.$ac_objext
17986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17987 (eval $ac_compile) 2>conftest.er1
17988 ac_status=$?
17989 grep -v '^ *+' conftest.er1 >conftest.err
17990 rm -f conftest.er1
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
7357c5b6
AM
17994 { ac_try='test -z "$ac_c_werror_flag"
17995 || test ! -s conftest.err'
ec7b76fe
JG
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 ac_cv_have_decl_ftello64=yes
18008else
18009 echo "$as_me: failed program was:" >&5
18010sed 's/^/| /' conftest.$ac_ext >&5
18011
18012ac_cv_have_decl_ftello64=no
18013fi
18014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18015fi
18016echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
18017echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
18018if test $ac_cv_have_decl_ftello64 = yes; then
18019
18020cat >>confdefs.h <<_ACEOF
18021#define HAVE_DECL_FTELLO64 1
18022_ACEOF
18023
18024
18025else
18026 cat >>confdefs.h <<_ACEOF
18027#define HAVE_DECL_FTELLO64 0
18028_ACEOF
18029
18030
18031fi
18032
18033
18034echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
18035echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
18036if test "${ac_cv_have_decl_fseeko+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18038else
18039 cat >conftest.$ac_ext <<_ACEOF
18040/* confdefs.h. */
18041_ACEOF
18042cat confdefs.h >>conftest.$ac_ext
18043cat >>conftest.$ac_ext <<_ACEOF
18044/* end confdefs.h. */
18045$ac_includes_default
18046int
18047main ()
18048{
18049#ifndef fseeko
18050 char *p = (char *) fseeko;
18051#endif
18052
18053 ;
18054 return 0;
18055}
18056_ACEOF
18057rm -f conftest.$ac_objext
18058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18059 (eval $ac_compile) 2>conftest.er1
18060 ac_status=$?
18061 grep -v '^ *+' conftest.er1 >conftest.err
18062 rm -f conftest.er1
18063 cat conftest.err >&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } &&
7357c5b6
AM
18066 { ac_try='test -z "$ac_c_werror_flag"
18067 || test ! -s conftest.err'
ec7b76fe
JG
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } &&
18073 { ac_try='test -s conftest.$ac_objext'
18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 (eval $ac_try) 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 ac_cv_have_decl_fseeko=yes
18080else
18081 echo "$as_me: failed program was:" >&5
18082sed 's/^/| /' conftest.$ac_ext >&5
18083
18084ac_cv_have_decl_fseeko=no
18085fi
18086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18087fi
18088echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
18089echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
18090if test $ac_cv_have_decl_fseeko = yes; then
18091
18092cat >>confdefs.h <<_ACEOF
18093#define HAVE_DECL_FSEEKO 1
18094_ACEOF
18095
18096
18097else
18098 cat >>confdefs.h <<_ACEOF
18099#define HAVE_DECL_FSEEKO 0
18100_ACEOF
18101
18102
18103fi
18104
18105
18106echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
18107echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
18108if test "${ac_cv_have_decl_fseeko64+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18110else
18111 cat >conftest.$ac_ext <<_ACEOF
18112/* confdefs.h. */
18113_ACEOF
18114cat confdefs.h >>conftest.$ac_ext
18115cat >>conftest.$ac_ext <<_ACEOF
18116/* end confdefs.h. */
18117$ac_includes_default
18118int
18119main ()
18120{
18121#ifndef fseeko64
18122 char *p = (char *) fseeko64;
18123#endif
18124
18125 ;
18126 return 0;
18127}
18128_ACEOF
18129rm -f conftest.$ac_objext
18130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18131 (eval $ac_compile) 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
7357c5b6
AM
18138 { ac_try='test -z "$ac_c_werror_flag"
18139 || test ! -s conftest.err'
ec7b76fe
JG
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest.$ac_objext'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18148 ac_status=$?
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
18151 ac_cv_have_decl_fseeko64=yes
18152else
18153 echo "$as_me: failed program was:" >&5
18154sed 's/^/| /' conftest.$ac_ext >&5
18155
18156ac_cv_have_decl_fseeko64=no
18157fi
18158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18159fi
18160echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
18161echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
18162if test $ac_cv_have_decl_fseeko64 = yes; then
18163
18164cat >>confdefs.h <<_ACEOF
18165#define HAVE_DECL_FSEEKO64 1
18166_ACEOF
18167
18168
18169else
18170 cat >>confdefs.h <<_ACEOF
18171#define HAVE_DECL_FSEEKO64 0
18172_ACEOF
18173
18174
18175fi
18176
18177
2e9ebff5 18178
6be7c12c 18179
252b5132 18180case "${host}" in
855b0be7 18181*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
18182
18183cat >>confdefs.h <<\_ACEOF
252b5132 18184#define USE_BINARY_FOPEN 1
5464f5a1 18185_ACEOF
252b5132
RH
18186 ;;
18187esac
18188
d34a2b1d
JG
18189echo "$as_me:$LINENO: checking whether ffs is declared" >&5
18190echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
18191if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 18192 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18193else
5464f5a1
NN
18194 cat >conftest.$ac_ext <<_ACEOF
18195/* confdefs.h. */
18196_ACEOF
18197cat confdefs.h >>conftest.$ac_ext
18198cat >>conftest.$ac_ext <<_ACEOF
18199/* end confdefs.h. */
d34a2b1d 18200$ac_includes_default
5464f5a1
NN
18201int
18202main ()
18203{
d34a2b1d
JG
18204#ifndef ffs
18205 char *p = (char *) ffs;
18206#endif
18207
5464f5a1
NN
18208 ;
18209 return 0;
18210}
18211_ACEOF
18212rm -f conftest.$ac_objext
18213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18214 (eval $ac_compile) 2>conftest.er1
18215 ac_status=$?
18216 grep -v '^ *+' conftest.er1 >conftest.err
18217 rm -f conftest.er1
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
7357c5b6
AM
18221 { ac_try='test -z "$ac_c_werror_flag"
18222 || test ! -s conftest.err'
5464f5a1
NN
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest.$ac_objext'
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
d34a2b1d 18234 ac_cv_have_decl_ffs=yes
252b5132 18235else
5464f5a1
NN
18236 echo "$as_me: failed program was:" >&5
18237sed 's/^/| /' conftest.$ac_ext >&5
18238
d34a2b1d 18239ac_cv_have_decl_ffs=no
252b5132 18240fi
5464f5a1 18241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18242fi
d34a2b1d
JG
18243echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
18244echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
18245if test $ac_cv_have_decl_ffs = yes; then
252b5132 18246
d34a2b1d
JG
18247cat >>confdefs.h <<_ACEOF
18248#define HAVE_DECL_FFS 1
18249_ACEOF
5464f5a1 18250
d34a2b1d
JG
18251
18252else
18253 cat >>confdefs.h <<_ACEOF
18254#define HAVE_DECL_FFS 0
5464f5a1 18255_ACEOF
252b5132 18256
d34a2b1d 18257
252b5132
RH
18258fi
18259
d34a2b1d
JG
18260
18261echo "$as_me:$LINENO: checking whether free is declared" >&5
18262echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18263if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 18264 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18265else
5464f5a1
NN
18266 cat >conftest.$ac_ext <<_ACEOF
18267/* confdefs.h. */
18268_ACEOF
18269cat confdefs.h >>conftest.$ac_ext
18270cat >>conftest.$ac_ext <<_ACEOF
18271/* end confdefs.h. */
d34a2b1d 18272$ac_includes_default
5464f5a1
NN
18273int
18274main ()
18275{
d34a2b1d
JG
18276#ifndef free
18277 char *p = (char *) free;
18278#endif
18279
5464f5a1
NN
18280 ;
18281 return 0;
18282}
18283_ACEOF
18284rm -f conftest.$ac_objext
18285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18286 (eval $ac_compile) 2>conftest.er1
18287 ac_status=$?
18288 grep -v '^ *+' conftest.er1 >conftest.err
18289 rm -f conftest.er1
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
7357c5b6
AM
18293 { ac_try='test -z "$ac_c_werror_flag"
18294 || test ! -s conftest.err'
5464f5a1
NN
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest.$ac_objext'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
d34a2b1d 18306 ac_cv_have_decl_free=yes
252b5132 18307else
5464f5a1
NN
18308 echo "$as_me: failed program was:" >&5
18309sed 's/^/| /' conftest.$ac_ext >&5
18310
d34a2b1d 18311ac_cv_have_decl_free=no
252b5132 18312fi
5464f5a1 18313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18314fi
d34a2b1d
JG
18315echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18316echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18317if test $ac_cv_have_decl_free = yes; then
18318
18319cat >>confdefs.h <<_ACEOF
18320#define HAVE_DECL_FREE 1
18321_ACEOF
252b5132 18322
5464f5a1 18323
d34a2b1d
JG
18324else
18325 cat >>confdefs.h <<_ACEOF
18326#define HAVE_DECL_FREE 0
5464f5a1 18327_ACEOF
252b5132 18328
d34a2b1d 18329
252b5132
RH
18330fi
18331
d34a2b1d
JG
18332
18333echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18334echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18335if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 18336 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18337else
5464f5a1
NN
18338 cat >conftest.$ac_ext <<_ACEOF
18339/* confdefs.h. */
18340_ACEOF
18341cat confdefs.h >>conftest.$ac_ext
18342cat >>conftest.$ac_ext <<_ACEOF
18343/* end confdefs.h. */
d34a2b1d 18344$ac_includes_default
5464f5a1
NN
18345int
18346main ()
18347{
d34a2b1d
JG
18348#ifndef getenv
18349 char *p = (char *) getenv;
18350#endif
18351
5464f5a1
NN
18352 ;
18353 return 0;
18354}
18355_ACEOF
18356rm -f conftest.$ac_objext
18357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18358 (eval $ac_compile) 2>conftest.er1
18359 ac_status=$?
18360 grep -v '^ *+' conftest.er1 >conftest.err
18361 rm -f conftest.er1
18362 cat conftest.err >&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } &&
7357c5b6
AM
18365 { ac_try='test -z "$ac_c_werror_flag"
18366 || test ! -s conftest.err'
5464f5a1
NN
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18369 ac_status=$?
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; } &&
18372 { ac_try='test -s conftest.$ac_objext'
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
18375 ac_status=$?
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; }; then
d34a2b1d 18378 ac_cv_have_decl_getenv=yes
252b5132 18379else
5464f5a1
NN
18380 echo "$as_me: failed program was:" >&5
18381sed 's/^/| /' conftest.$ac_ext >&5
18382
d34a2b1d 18383ac_cv_have_decl_getenv=no
252b5132 18384fi
5464f5a1 18385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18386fi
d34a2b1d
JG
18387echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18388echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18389if test $ac_cv_have_decl_getenv = yes; then
252b5132 18390
d34a2b1d
JG
18391cat >>confdefs.h <<_ACEOF
18392#define HAVE_DECL_GETENV 1
18393_ACEOF
5464f5a1 18394
d34a2b1d
JG
18395
18396else
18397 cat >>confdefs.h <<_ACEOF
18398#define HAVE_DECL_GETENV 0
5464f5a1 18399_ACEOF
252b5132 18400
d34a2b1d 18401
252b5132
RH
18402fi
18403
d34a2b1d
JG
18404
18405echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18406echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18407if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 18408 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18409else
5464f5a1
NN
18410 cat >conftest.$ac_ext <<_ACEOF
18411/* confdefs.h. */
18412_ACEOF
18413cat confdefs.h >>conftest.$ac_ext
18414cat >>conftest.$ac_ext <<_ACEOF
18415/* end confdefs.h. */
d34a2b1d 18416$ac_includes_default
5464f5a1
NN
18417int
18418main ()
18419{
d34a2b1d
JG
18420#ifndef malloc
18421 char *p = (char *) malloc;
18422#endif
18423
5464f5a1
NN
18424 ;
18425 return 0;
18426}
18427_ACEOF
18428rm -f conftest.$ac_objext
18429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18430 (eval $ac_compile) 2>conftest.er1
18431 ac_status=$?
18432 grep -v '^ *+' conftest.er1 >conftest.err
18433 rm -f conftest.er1
18434 cat conftest.err >&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
7357c5b6
AM
18437 { ac_try='test -z "$ac_c_werror_flag"
18438 || test ! -s conftest.err'
5464f5a1
NN
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; } &&
18444 { ac_try='test -s conftest.$ac_objext'
18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18447 ac_status=$?
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
d34a2b1d 18450 ac_cv_have_decl_malloc=yes
252b5132 18451else
5464f5a1
NN
18452 echo "$as_me: failed program was:" >&5
18453sed 's/^/| /' conftest.$ac_ext >&5
18454
d34a2b1d 18455ac_cv_have_decl_malloc=no
252b5132 18456fi
5464f5a1 18457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18458fi
d34a2b1d
JG
18459echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18460echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18461if test $ac_cv_have_decl_malloc = yes; then
252b5132 18462
d34a2b1d
JG
18463cat >>confdefs.h <<_ACEOF
18464#define HAVE_DECL_MALLOC 1
18465_ACEOF
5464f5a1 18466
d34a2b1d
JG
18467
18468else
18469 cat >>confdefs.h <<_ACEOF
18470#define HAVE_DECL_MALLOC 0
5464f5a1 18471_ACEOF
252b5132 18472
d34a2b1d 18473
252b5132
RH
18474fi
18475
d34a2b1d
JG
18476
18477echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18478echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18479if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 18480 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18481else
5464f5a1
NN
18482 cat >conftest.$ac_ext <<_ACEOF
18483/* confdefs.h. */
18484_ACEOF
18485cat confdefs.h >>conftest.$ac_ext
18486cat >>conftest.$ac_ext <<_ACEOF
18487/* end confdefs.h. */
d34a2b1d 18488$ac_includes_default
5464f5a1
NN
18489int
18490main ()
18491{
d34a2b1d
JG
18492#ifndef realloc
18493 char *p = (char *) realloc;
18494#endif
18495
5464f5a1
NN
18496 ;
18497 return 0;
18498}
18499_ACEOF
18500rm -f conftest.$ac_objext
18501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18502 (eval $ac_compile) 2>conftest.er1
18503 ac_status=$?
18504 grep -v '^ *+' conftest.er1 >conftest.err
18505 rm -f conftest.er1
18506 cat conftest.err >&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } &&
7357c5b6
AM
18509 { ac_try='test -z "$ac_c_werror_flag"
18510 || test ! -s conftest.err'
5464f5a1
NN
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; } &&
18516 { ac_try='test -s conftest.$ac_objext'
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; }; then
d34a2b1d 18522 ac_cv_have_decl_realloc=yes
252b5132 18523else
5464f5a1
NN
18524 echo "$as_me: failed program was:" >&5
18525sed 's/^/| /' conftest.$ac_ext >&5
18526
d34a2b1d 18527ac_cv_have_decl_realloc=no
252b5132 18528fi
5464f5a1 18529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18530fi
d34a2b1d
JG
18531echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18532echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18533if test $ac_cv_have_decl_realloc = yes; then
18534
18535cat >>confdefs.h <<_ACEOF
18536#define HAVE_DECL_REALLOC 1
18537_ACEOF
252b5132 18538
5464f5a1 18539
d34a2b1d
JG
18540else
18541 cat >>confdefs.h <<_ACEOF
18542#define HAVE_DECL_REALLOC 0
efa9bda4
AL
18543_ACEOF
18544
d34a2b1d 18545
efa9bda4
AL
18546fi
18547
d34a2b1d 18548
be5cacdb
L
18549echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
18550echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
18551if test "${ac_cv_have_decl_stpcpy+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553else
18554 cat >conftest.$ac_ext <<_ACEOF
18555/* confdefs.h. */
18556_ACEOF
18557cat confdefs.h >>conftest.$ac_ext
18558cat >>conftest.$ac_ext <<_ACEOF
18559/* end confdefs.h. */
18560$ac_includes_default
18561int
18562main ()
18563{
18564#ifndef stpcpy
18565 char *p = (char *) stpcpy;
18566#endif
18567
18568 ;
18569 return 0;
18570}
18571_ACEOF
18572rm -f conftest.$ac_objext
18573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18574 (eval $ac_compile) 2>conftest.er1
18575 ac_status=$?
18576 grep -v '^ *+' conftest.er1 >conftest.err
18577 rm -f conftest.er1
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
7357c5b6
AM
18581 { ac_try='test -z "$ac_c_werror_flag"
18582 || test ! -s conftest.err'
be5cacdb
L
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18585 ac_status=$?
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; } &&
18588 { ac_try='test -s conftest.$ac_objext'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18591 ac_status=$?
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
18594 ac_cv_have_decl_stpcpy=yes
18595else
18596 echo "$as_me: failed program was:" >&5
18597sed 's/^/| /' conftest.$ac_ext >&5
18598
18599ac_cv_have_decl_stpcpy=no
18600fi
18601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18602fi
18603echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
18604echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
18605if test $ac_cv_have_decl_stpcpy = yes; then
18606
18607cat >>confdefs.h <<_ACEOF
18608#define HAVE_DECL_STPCPY 1
18609_ACEOF
18610
18611
18612else
18613 cat >>confdefs.h <<_ACEOF
18614#define HAVE_DECL_STPCPY 0
18615_ACEOF
18616
18617
18618fi
18619
18620
d34a2b1d
JG
18621echo "$as_me:$LINENO: checking whether strstr is declared" >&5
18622echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
18623if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18625else
18626 cat >conftest.$ac_ext <<_ACEOF
18627/* confdefs.h. */
18628_ACEOF
18629cat confdefs.h >>conftest.$ac_ext
18630cat >>conftest.$ac_ext <<_ACEOF
18631/* end confdefs.h. */
d34a2b1d 18632$ac_includes_default
efa9bda4
AL
18633int
18634main ()
18635{
d34a2b1d
JG
18636#ifndef strstr
18637 char *p = (char *) strstr;
18638#endif
18639
efa9bda4
AL
18640 ;
18641 return 0;
18642}
18643_ACEOF
18644rm -f conftest.$ac_objext
18645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18646 (eval $ac_compile) 2>conftest.er1
18647 ac_status=$?
18648 grep -v '^ *+' conftest.er1 >conftest.err
18649 rm -f conftest.er1
18650 cat conftest.err >&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } &&
7357c5b6
AM
18653 { ac_try='test -z "$ac_c_werror_flag"
18654 || test ! -s conftest.err'
efa9bda4
AL
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; } &&
18660 { ac_try='test -s conftest.$ac_objext'
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; }; then
d34a2b1d 18666 ac_cv_have_decl_strstr=yes
efa9bda4
AL
18667else
18668 echo "$as_me: failed program was:" >&5
18669sed 's/^/| /' conftest.$ac_ext >&5
18670
d34a2b1d 18671ac_cv_have_decl_strstr=no
efa9bda4
AL
18672fi
18673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18674fi
d34a2b1d
JG
18675echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
18676echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
18677if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 18678
d34a2b1d
JG
18679cat >>confdefs.h <<_ACEOF
18680#define HAVE_DECL_STRSTR 1
18681_ACEOF
efa9bda4 18682
d34a2b1d
JG
18683
18684else
18685 cat >>confdefs.h <<_ACEOF
18686#define HAVE_DECL_STRSTR 0
5464f5a1 18687_ACEOF
252b5132 18688
d34a2b1d 18689
252b5132
RH
18690fi
18691
6be7c12c 18692
36527912
AJ
18693echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18694echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
18695if test "${ac_cv_have_decl_snprintf+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18697else
18698 cat >conftest.$ac_ext <<_ACEOF
18699/* confdefs.h. */
18700_ACEOF
18701cat confdefs.h >>conftest.$ac_ext
18702cat >>conftest.$ac_ext <<_ACEOF
18703/* end confdefs.h. */
18704$ac_includes_default
18705int
18706main ()
18707{
18708#ifndef snprintf
18709 char *p = (char *) snprintf;
18710#endif
18711
18712 ;
18713 return 0;
18714}
18715_ACEOF
18716rm -f conftest.$ac_objext
18717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18718 (eval $ac_compile) 2>conftest.er1
18719 ac_status=$?
18720 grep -v '^ *+' conftest.er1 >conftest.err
18721 rm -f conftest.er1
18722 cat conftest.err >&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); } &&
7357c5b6
AM
18725 { ac_try='test -z "$ac_c_werror_flag"
18726 || test ! -s conftest.err'
36527912
AJ
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; } &&
18732 { ac_try='test -s conftest.$ac_objext'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
18738 ac_cv_have_decl_snprintf=yes
18739else
18740 echo "$as_me: failed program was:" >&5
18741sed 's/^/| /' conftest.$ac_ext >&5
18742
18743ac_cv_have_decl_snprintf=no
18744fi
18745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18746fi
18747echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18748echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18749if test $ac_cv_have_decl_snprintf = yes; then
18750
18751cat >>confdefs.h <<_ACEOF
18752#define HAVE_DECL_SNPRINTF 1
18753_ACEOF
18754
18755
18756else
18757 cat >>confdefs.h <<_ACEOF
18758#define HAVE_DECL_SNPRINTF 0
18759_ACEOF
18760
18761
18762fi
18763
18764
18765echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18766echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18767if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18769else
18770 cat >conftest.$ac_ext <<_ACEOF
18771/* confdefs.h. */
18772_ACEOF
18773cat confdefs.h >>conftest.$ac_ext
18774cat >>conftest.$ac_ext <<_ACEOF
18775/* end confdefs.h. */
18776$ac_includes_default
18777int
18778main ()
18779{
18780#ifndef vsnprintf
18781 char *p = (char *) vsnprintf;
18782#endif
18783
18784 ;
18785 return 0;
18786}
18787_ACEOF
18788rm -f conftest.$ac_objext
18789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790 (eval $ac_compile) 2>conftest.er1
18791 ac_status=$?
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
7357c5b6
AM
18797 { ac_try='test -z "$ac_c_werror_flag"
18798 || test ! -s conftest.err'
36527912
AJ
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest.$ac_objext'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 ac_cv_have_decl_vsnprintf=yes
18811else
18812 echo "$as_me: failed program was:" >&5
18813sed 's/^/| /' conftest.$ac_ext >&5
18814
18815ac_cv_have_decl_vsnprintf=no
18816fi
18817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18818fi
18819echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18820echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18821if test $ac_cv_have_decl_vsnprintf = yes; then
18822
18823cat >>confdefs.h <<_ACEOF
18824#define HAVE_DECL_VSNPRINTF 1
18825_ACEOF
18826
18827
18828else
18829 cat >>confdefs.h <<_ACEOF
18830#define HAVE_DECL_VSNPRINTF 0
18831_ACEOF
18832
18833
18834fi
18835
18836
d34a2b1d 18837
efde2f2c
NC
18838# Support for VMS timestamps via cross compile
18839
18840if test "$ac_cv_header_time_h" = yes; then
18841 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff in time.h" >&5
18842echo $ECHO_N "checking for struct tm.tm_gmtoff in time.h... $ECHO_C" >&6
18843 if test "${bfd_cv_have_time_type_member_tm_gmtoff+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845else
18846 cat >conftest.$ac_ext <<_ACEOF
18847/* confdefs.h. */
18848_ACEOF
18849cat confdefs.h >>conftest.$ac_ext
18850cat >>conftest.$ac_ext <<_ACEOF
18851/* end confdefs.h. */
18852
18853#define _BSD_SOURCE 1
18854#include <time.h>
18855int
18856main ()
18857{
18858struct tm avar; void* aref = (void*) &avar.tm_gmtoff
18859 ;
18860 return 0;
18861}
18862_ACEOF
18863rm -f conftest.$ac_objext
18864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18865 (eval $ac_compile) 2>conftest.er1
18866 ac_status=$?
18867 grep -v '^ *+' conftest.er1 >conftest.err
18868 rm -f conftest.er1
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } &&
18872 { ac_try='test -z "$ac_c_werror_flag"
18873 || test ! -s conftest.err'
18874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18876 ac_status=$?
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; } &&
18879 { ac_try='test -s conftest.$ac_objext'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18885 bfd_cv_have_time_type_member_tm_gmtoff=yes
18886else
18887 echo "$as_me: failed program was:" >&5
18888sed 's/^/| /' conftest.$ac_ext >&5
18889
18890bfd_cv_have_time_type_member_tm_gmtoff=no
18891
18892fi
18893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18894fi
18895
18896 if test $bfd_cv_have_time_type_member_tm_gmtoff = yes; then
18897
18898cat >>confdefs.h <<\_ACEOF
18899#define HAVE_TM_GMTOFF 1
18900_ACEOF
18901
18902 fi
18903 echo "$as_me:$LINENO: result: $bfd_cv_have_time_type_member_tm_gmtoff" >&5
18904echo "${ECHO_T}$bfd_cv_have_time_type_member_tm_gmtoff" >&6
18905
18906fi
18907
18908if test "$ac_cv_header_sys_stat_h" = yes; then
18909 echo "$as_me:$LINENO: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
18910echo $ECHO_N "checking for struct stat.st_mtim.tv_sec in sys/stat.h... $ECHO_C" >&6
18911 if test "${bfd_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18913else
18914 cat >conftest.$ac_ext <<_ACEOF
18915/* confdefs.h. */
18916_ACEOF
18917cat confdefs.h >>conftest.$ac_ext
18918cat >>conftest.$ac_ext <<_ACEOF
18919/* end confdefs.h. */
18920
18921#define _BSD_SOURCE 1
18922#include <sys/stat.h>
18923int
18924main ()
18925{
18926struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
18927 ;
18928 return 0;
18929}
18930_ACEOF
18931rm -f conftest.$ac_objext
18932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18933 (eval $ac_compile) 2>conftest.er1
18934 ac_status=$?
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
18940 { ac_try='test -z "$ac_c_werror_flag"
18941 || test ! -s conftest.err'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try='test -s conftest.$ac_objext'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 bfd_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
18954else
18955 echo "$as_me: failed program was:" >&5
18956sed 's/^/| /' conftest.$ac_ext >&5
18957
18958bfd_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
18959
18960fi
18961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18962fi
18963
18964 if test $bfd_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
18965
18966cat >>confdefs.h <<\_ACEOF
18967#define HAVE_ST_MTIM_TV_SEC 1
18968_ACEOF
18969
18970 fi
18971 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
18972echo "${ECHO_T}$bfd_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6
18973
18974 echo "$as_me:$LINENO: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
18975echo $ECHO_N "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... $ECHO_C" >&6
18976 if test "${bfd_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18978else
18979 cat >conftest.$ac_ext <<_ACEOF
18980/* confdefs.h. */
18981_ACEOF
18982cat confdefs.h >>conftest.$ac_ext
18983cat >>conftest.$ac_ext <<_ACEOF
18984/* end confdefs.h. */
18985
18986#define _BSD_SOURCE 1
18987#include <sys/stat.h>
18988int
18989main ()
18990{
18991struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
18992 ;
18993 return 0;
18994}
18995_ACEOF
18996rm -f conftest.$ac_objext
18997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18998 (eval $ac_compile) 2>conftest.er1
18999 ac_status=$?
19000 grep -v '^ *+' conftest.er1 >conftest.err
19001 rm -f conftest.er1
19002 cat conftest.err >&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } &&
19005 { ac_try='test -z "$ac_c_werror_flag"
19006 || test ! -s conftest.err'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19009 ac_status=$?
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; } &&
19012 { ac_try='test -s conftest.$ac_objext'
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19015 ac_status=$?
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; }; then
19018 bfd_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
19019else
19020 echo "$as_me: failed program was:" >&5
19021sed 's/^/| /' conftest.$ac_ext >&5
19022
19023bfd_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
19024
19025fi
19026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19027fi
19028
19029 if test $bfd_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
19030
19031cat >>confdefs.h <<\_ACEOF
19032#define HAVE_ST_MTIM_TV_NSEC 1
19033_ACEOF
19034
19035 fi
19036 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
19037echo "${ECHO_T}$bfd_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6
19038
19039fi
19040
1b315056 19041# Link in zlib if we can. This allows us to read compressed debug sections.
7357c5b6 19042# This is used only by compress.c.
1b315056
CS
19043echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
19044echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
19045if test "${ac_cv_search_zlibVersion+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19047else
19048 ac_func_search_save_LIBS=$LIBS
19049ac_cv_search_zlibVersion=no
19050cat >conftest.$ac_ext <<_ACEOF
19051/* confdefs.h. */
19052_ACEOF
19053cat confdefs.h >>conftest.$ac_ext
19054cat >>conftest.$ac_ext <<_ACEOF
19055/* end confdefs.h. */
19056
19057/* Override any gcc2 internal prototype to avoid an error. */
19058#ifdef __cplusplus
19059extern "C"
19060#endif
19061/* We use char because int might match the return type of a gcc2
19062 builtin and then its argument prototype would still apply. */
19063char zlibVersion ();
19064int
19065main ()
19066{
19067zlibVersion ();
19068 ;
19069 return 0;
19070}
19071_ACEOF
19072rm -f conftest.$ac_objext conftest$ac_exeext
19073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19074 (eval $ac_link) 2>conftest.er1
19075 ac_status=$?
19076 grep -v '^ *+' conftest.er1 >conftest.err
19077 rm -f conftest.er1
19078 cat conftest.err >&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } &&
7357c5b6
AM
19081 { ac_try='test -z "$ac_c_werror_flag"
19082 || test ! -s conftest.err'
1b315056
CS
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; } &&
19088 { ac_try='test -s conftest$ac_exeext'
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); }; }; then
19094 ac_cv_search_zlibVersion="none required"
19095else
19096 echo "$as_me: failed program was:" >&5
19097sed 's/^/| /' conftest.$ac_ext >&5
19098
19099fi
19100rm -f conftest.err conftest.$ac_objext \
19101 conftest$ac_exeext conftest.$ac_ext
19102if test "$ac_cv_search_zlibVersion" = no; then
19103 for ac_lib in z; do
19104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19105 cat >conftest.$ac_ext <<_ACEOF
19106/* confdefs.h. */
19107_ACEOF
19108cat confdefs.h >>conftest.$ac_ext
19109cat >>conftest.$ac_ext <<_ACEOF
19110/* end confdefs.h. */
19111
19112/* Override any gcc2 internal prototype to avoid an error. */
19113#ifdef __cplusplus
19114extern "C"
19115#endif
19116/* We use char because int might match the return type of a gcc2
19117 builtin and then its argument prototype would still apply. */
19118char zlibVersion ();
19119int
19120main ()
19121{
19122zlibVersion ();
19123 ;
19124 return 0;
19125}
19126_ACEOF
19127rm -f conftest.$ac_objext conftest$ac_exeext
19128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19129 (eval $ac_link) 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } &&
7357c5b6
AM
19136 { ac_try='test -z "$ac_c_werror_flag"
19137 || test ! -s conftest.err'
1b315056
CS
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try='test -s conftest$ac_exeext'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19149 ac_cv_search_zlibVersion="-l$ac_lib"
19150break
19151else
19152 echo "$as_me: failed program was:" >&5
19153sed 's/^/| /' conftest.$ac_ext >&5
19154
19155fi
19156rm -f conftest.err conftest.$ac_objext \
19157 conftest$ac_exeext conftest.$ac_ext
19158 done
19159fi
19160LIBS=$ac_func_search_save_LIBS
19161fi
19162echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
19163echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
19164if test "$ac_cv_search_zlibVersion" != no; then
19165 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
19166
19167for ac_header in zlib.h
19168do
19169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19170if eval "test \"\${$as_ac_Header+set}\" = set"; then
19171 echo "$as_me:$LINENO: checking for $ac_header" >&5
19172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19173if eval "test \"\${$as_ac_Header+set}\" = set"; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19175fi
19176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19178else
19179 # Is the header compilable?
19180echo "$as_me:$LINENO: checking $ac_header usability" >&5
19181echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19182cat >conftest.$ac_ext <<_ACEOF
19183/* confdefs.h. */
19184_ACEOF
19185cat confdefs.h >>conftest.$ac_ext
19186cat >>conftest.$ac_ext <<_ACEOF
19187/* end confdefs.h. */
19188$ac_includes_default
19189#include <$ac_header>
19190_ACEOF
19191rm -f conftest.$ac_objext
19192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19193 (eval $ac_compile) 2>conftest.er1
19194 ac_status=$?
19195 grep -v '^ *+' conftest.er1 >conftest.err
19196 rm -f conftest.er1
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } &&
7357c5b6
AM
19200 { ac_try='test -z "$ac_c_werror_flag"
19201 || test ! -s conftest.err'
1b315056
CS
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19204 ac_status=$?
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; } &&
19207 { ac_try='test -s conftest.$ac_objext'
19208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209 (eval $ac_try) 2>&5
19210 ac_status=$?
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19213 ac_header_compiler=yes
19214else
19215 echo "$as_me: failed program was:" >&5
19216sed 's/^/| /' conftest.$ac_ext >&5
19217
19218ac_header_compiler=no
19219fi
19220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19221echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19222echo "${ECHO_T}$ac_header_compiler" >&6
19223
19224# Is the header present?
19225echo "$as_me:$LINENO: checking $ac_header presence" >&5
19226echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19227cat >conftest.$ac_ext <<_ACEOF
19228/* confdefs.h. */
19229_ACEOF
19230cat confdefs.h >>conftest.$ac_ext
19231cat >>conftest.$ac_ext <<_ACEOF
19232/* end confdefs.h. */
19233#include <$ac_header>
19234_ACEOF
19235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19237 ac_status=$?
19238 grep -v '^ *+' conftest.er1 >conftest.err
19239 rm -f conftest.er1
19240 cat conftest.err >&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } >/dev/null; then
19243 if test -s conftest.err; then
19244 ac_cpp_err=$ac_c_preproc_warn_flag
19245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19246 else
19247 ac_cpp_err=
19248 fi
19249else
19250 ac_cpp_err=yes
19251fi
19252if test -z "$ac_cpp_err"; then
19253 ac_header_preproc=yes
19254else
19255 echo "$as_me: failed program was:" >&5
19256sed 's/^/| /' conftest.$ac_ext >&5
19257
19258 ac_header_preproc=no
19259fi
19260rm -f conftest.err conftest.$ac_ext
19261echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19262echo "${ECHO_T}$ac_header_preproc" >&6
19263
19264# So? What about this header?
19265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19266 yes:no: )
19267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19268echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19270echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19271 ac_header_preproc=yes
19272 ;;
19273 no:yes:* )
19274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19275echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19277echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19279echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19281echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19285echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19286 (
19287 cat <<\_ASBOX
19288## ------------------------------------------ ##
19289## Report this to the AC_PACKAGE_NAME lists. ##
19290## ------------------------------------------ ##
19291_ASBOX
19292 ) |
19293 sed "s/^/$as_me: WARNING: /" >&2
19294 ;;
19295esac
19296echo "$as_me:$LINENO: checking for $ac_header" >&5
19297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19298if eval "test \"\${$as_ac_Header+set}\" = set"; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
19300else
19301 eval "$as_ac_Header=\$ac_header_preproc"
19302fi
19303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19305
19306fi
19307if test `eval echo '${'$as_ac_Header'}'` = yes; then
19308 cat >>confdefs.h <<_ACEOF
19309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19310_ACEOF
19311
19312fi
19313
19314done
19315
19316fi
19317
19318
252b5132
RH
19319# If we are configured native, pick a core file support file.
19320COREFILE=
19321COREFLAG=
19322TRAD_HEADER=
19323if test "${target}" = "${host}"; then
19324 case "${host}" in
13dfd2d0 19325 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
19326 COREFILE=''
19327 ;;
ed84e695 19328 alpha*-*-linux-*)
252b5132
RH
19329 COREFILE=trad-core.lo
19330 TRAD_HEADER='"hosts/alphalinux.h"'
19331 ;;
690cc98b
NC
19332 alpha*-*-netbsd* | alpha*-*-openbsd*)
19333 COREFILE=netbsd-core.lo
19334 ;;
252b5132 19335 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
19336 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
19337 COREFILE='' ;;
e33533a4
MK
19338 arm-*-netbsd* | arm-*-openbsd*)
19339 COREFILE=netbsd-core.lo
19340 ;;
252b5132
RH
19341 arm-*-riscix) COREFILE=trad-core.lo ;;
19342 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
19343 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
19344 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
19345 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
19346 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
19347 hppa*-*-netbsd* | hppa*-*-openbsd*)
19348 COREFILE=netbsd-core.lo
19349 ;;
19350
dc810e39 19351 i370-*-*)
5b93d8bb
AM
19352 COREFILE=trad-core.lo
19353 TRAD_HEADER='"hosts/i370linux.h"'
19354 ;;
19355
80c7c40a 19356 i[3-7]86-sequent-bsd*)
5b93d8bb 19357 COREFILE=trad-core.lo
252b5132
RH
19358 TRAD_HEADER='"hosts/symmetry.h"'
19359 ;;
80c7c40a
NC
19360 i[3-7]86-sequent-sysv4*) ;;
19361 i[3-7]86-sequent-sysv*)
252b5132
RH
19362 COREFILE=trad-core.lo
19363 TRAD_HEADER='"hosts/symmetry.h"'
19364 ;;
80c7c40a 19365 i[3-7]86-*-bsdi)
7e3b3466
NC
19366 COREFILE=
19367 ;;
d2bef492 19368 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
19369 COREFILE=trad-core.lo
19370 TRAD_HEADER='"hosts/i386bsd.h"'
19371 ;;
0b3e17e9 19372 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
d4af9775
DB
19373 COREFILE=''
19374 TRAD_HEADER='"hosts/i386bsd.h"'
19375 ;;
4615568e 19376 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
19377 COREFILE=netbsd-core.lo
19378 ;;
80c7c40a 19379 i[3-7]86-esix-sysv3*)
252b5132
RH
19380 COREFILE=trad-core.lo
19381 TRAD_HEADER='"hosts/esix.h"'
19382 ;;
80c7c40a 19383 i[3-7]86-*-sco3.2v5*)
252b5132
RH
19384 COREFILE=sco5-core.lo
19385 ;;
80c7c40a 19386 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
19387 COREFILE=trad-core.lo
19388 TRAD_HEADER='"hosts/i386sco.h"'
19389 ;;
80c7c40a 19390 i[3-7]86-*-mach3*)
252b5132
RH
19391 COREFILE=trad-core.lo
19392 TRAD_HEADER='"hosts/i386mach3.h"'
19393 ;;
ed84e695 19394 i[3-7]86-*-linux-*)
252b5132
RH
19395 COREFILE=trad-core.lo
19396 TRAD_HEADER='"hosts/i386linux.h"'
19397 ;;
80c7c40a
NC
19398 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
19399 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
19400 i860-*-mach3* | i860-*-osf1*)
19401 COREFILE=trad-core.lo
19402 TRAD_HEADER='"hosts/i860mach3.h"'
19403 ;;
252b5132
RH
19404 mips-*-netbsd* | mips*-*-openbsd*)
19405 COREFILE=netbsd-core.lo
19406 ;;
19407 mips-dec-*)
19408 COREFILE=trad-core.lo
19409 TRAD_HEADER='"hosts/decstation.h"'
19410 ;;
19411 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
19412 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
19413 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
19414 mips-*-sysv4*) ;;
19415 mips-*-sysv* | mips-*-riscos*)
19416 COREFILE=trad-core.lo
19417 TRAD_HEADER='"hosts/riscos.h"'
19418 ;;
19419 mips-sony-bsd*)
19420 COREFILE=trad-core.lo
19421 TRAD_HEADER='"hosts/news-mips.h"'
19422 ;;
19423 m68*-bull*-sysv*)
19424 COREFILE=trad-core.lo
19425 TRAD_HEADER='"hosts/dpx2.h"'
19426 ;;
19427 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
19428 m68*-hp-bsd*)
19429 COREFILE=trad-core.lo
19430 TRAD_HEADER='"hosts/hp300bsd.h"'
19431 ;;
ed84e695 19432 m68*-*-linux-*)
252b5132
RH
19433 COREFILE=trad-core.lo
19434 TRAD_HEADER='"hosts/m68klinux.h"'
19435 ;;
19436 m68*-motorola-sysv*)
19437 COREFILE=trad-core.lo
19438 TRAD_HEADER='"hosts/delta68.h"'
19439 ;;
19440 m68*-sony-*)
19441 COREFILE=trad-core.lo
19442 TRAD_HEADER='"hosts/news.h"'
19443 ;;
19444 m68*-*-netbsd* | m68*-*-openbsd*)
19445 COREFILE=netbsd-core.lo
19446 ;;
19447 m68*-apple-aux*)
19448 COREFILE=trad-core.lo
19449 TRAD_HEADER='"hosts/m68kaux.h"'
19450 ;;
eb1e0e80
NC
19451 m88*-*-sysv4*)
19452 ;;
19453 m88*-motorola-sysv*)
19454 COREFILE=ptrace-core.lo
19455 ;;
252b5132
RH
19456 m88*-*-mach3*)
19457 COREFILE=trad-core.lo
19458 TRAD_HEADER='"hosts/m88kmach3.h"'
19459 ;;
c6f8758f
NC
19460 m88*-*-openbsd*)
19461 COREFILE=netbsd-core.lo
19462 ;;
252b5132
RH
19463 ns32k-pc532-mach)
19464 COREFILE=trad-core.lo
19465 TRAD_HEADER='"hosts/pc532mach.h"'
19466 ;;
19467 ns32k-*-netbsd* | ns32k-*-openbsd*)
19468 COREFILE=netbsd-core.lo
19469 ;;
eb1e0e80
NC
19470 rs6000-*-lynx*)
19471 COREFILE=lynx-core.lo
19472 ;;
e5231592 19473 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
eb1e0e80
NC
19474 COREFILE=rs6000-core.lo
19475 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
19476 ;;
83954261 19477 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
19478 COREFILE=rs6000-core.lo
19479 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
19480 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
19481 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
19482 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
19483echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
19484 cat >conftest.$ac_ext <<_ACEOF
19485/* confdefs.h. */
19486_ACEOF
19487cat confdefs.h >>conftest.$ac_ext
19488cat >>conftest.$ac_ext <<_ACEOF
19489/* end confdefs.h. */
83954261 19490#include <core.h>
5464f5a1
NN
19491int
19492main ()
19493{
83954261 19494struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
19495 ;
19496 return 0;
19497}
19498_ACEOF
19499rm -f conftest.$ac_objext
19500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19501 (eval $ac_compile) 2>conftest.er1
19502 ac_status=$?
19503 grep -v '^ *+' conftest.er1 >conftest.err
19504 rm -f conftest.er1
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
7357c5b6
AM
19508 { ac_try='test -z "$ac_c_werror_flag"
19509 || test ! -s conftest.err'
5464f5a1
NN
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } &&
19515 { ac_try='test -s conftest.$ac_objext'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521
19522cat >>confdefs.h <<\_ACEOF
83954261 19523#define HAVE_ST_C_IMPL 1
5464f5a1 19524_ACEOF
83954261 19525
5464f5a1
NN
19526 echo "$as_me:$LINENO: result: yes" >&5
19527echo "${ECHO_T}yes" >&6
83954261 19528else
5464f5a1
NN
19529 echo "$as_me: failed program was:" >&5
19530sed 's/^/| /' conftest.$ac_ext >&5
19531
19532echo "$as_me:$LINENO: result: no" >&5
19533echo "${ECHO_T}no" >&6
83954261 19534fi
5464f5a1 19535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 19536 ;;
252b5132
RH
19537 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
19538 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
19539 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
19540 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
19541 powerpc-*-beos*) ;;
13dfd2d0
NC
19542 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
19543 COREFILE='' ;;
252b5132 19544 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 19545 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 19546 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
19547 sh*-*-netbsd* | sh*-*-openbsd*)
19548 COREFILE=netbsd-core.lo
19549 ;;
a9bf1154 19550 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
19551 COREFILE=netbsd-core.lo
19552 ;;
19553 tahoe-*-*)
19554 COREFILE=trad-core.lo
19555 TRAD_HEADER='"hosts/tahoe.h"'
19556 ;;
de6e5e1a
NC
19557 vax-*-netbsd* | vax-*-openbsd*)
19558 COREFILE=netbsd-core.lo
19559 ;;
252b5132
RH
19560 vax-*-ultrix2*)
19561 COREFILE=trad-core.lo
19562 TRAD_HEADER='"hosts/vaxult2.h"'
19563 ;;
19564 vax-*-ultrix*)
19565 COREFILE=trad-core.lo
19566 TRAD_HEADER='"hosts/vaxult2.h"'
19567 ;;
ed84e695 19568 vax-*-linux-*)
f8fc3443
NC
19569 COREFILE=trad-core.lo
19570 TRAD_HEADER='"hosts/vaxlinux.h"'
19571 ;;
252b5132
RH
19572 vax-*-*)
19573 COREFILE=trad-core.lo
19574 TRAD_HEADER='"hosts/vaxbsd.h"'
19575 ;;
85cfd8d3
MK
19576 x86_64-*-netbsd* | x86_64-*-openbsd*)
19577 COREFILE=netbsd-core.lo
19578 ;;
252b5132
RH
19579 esac
19580
19581 case "$COREFILE" in
19582 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
19583 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
19584 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
19585 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
19586 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
19587 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
19588 osf-core.lo) COREFLAG=-DOSF_CORE ;;
19589 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
19590 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
19591 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
19592 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
19593 esac
19594
19595 # ELF corefile support has several flavors, but all of
19596 # them use something called <sys/procfs.h>
5464f5a1
NN
19597
19598for ac_header in sys/procfs.h
252b5132 19599do
5464f5a1
NN
19600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19601if eval "test \"\${$as_ac_Header+set}\" = set"; then
19602 echo "$as_me:$LINENO: checking for $ac_header" >&5
19603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19604if eval "test \"\${$as_ac_Header+set}\" = set"; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19606fi
19607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19609else
19610 # Is the header compilable?
19611echo "$as_me:$LINENO: checking $ac_header usability" >&5
19612echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19613cat >conftest.$ac_ext <<_ACEOF
19614/* confdefs.h. */
19615_ACEOF
19616cat confdefs.h >>conftest.$ac_ext
19617cat >>conftest.$ac_ext <<_ACEOF
19618/* end confdefs.h. */
19619$ac_includes_default
19620#include <$ac_header>
19621_ACEOF
19622rm -f conftest.$ac_objext
19623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19624 (eval $ac_compile) 2>conftest.er1
19625 ac_status=$?
19626 grep -v '^ *+' conftest.er1 >conftest.err
19627 rm -f conftest.er1
19628 cat conftest.err >&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
7357c5b6
AM
19631 { ac_try='test -z "$ac_c_werror_flag"
19632 || test ! -s conftest.err'
5464f5a1
NN
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_header_compiler=yes
19645else
19646 echo "$as_me: failed program was:" >&5
19647sed 's/^/| /' conftest.$ac_ext >&5
19648
19649ac_header_compiler=no
19650fi
19651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19652echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19653echo "${ECHO_T}$ac_header_compiler" >&6
19654
19655# Is the header present?
19656echo "$as_me:$LINENO: checking $ac_header presence" >&5
19657echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19658cat >conftest.$ac_ext <<_ACEOF
19659/* confdefs.h. */
19660_ACEOF
19661cat confdefs.h >>conftest.$ac_ext
19662cat >>conftest.$ac_ext <<_ACEOF
19663/* end confdefs.h. */
19664#include <$ac_header>
19665_ACEOF
19666if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19668 ac_status=$?
19669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } >/dev/null; then
19674 if test -s conftest.err; then
19675 ac_cpp_err=$ac_c_preproc_warn_flag
19676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19677 else
19678 ac_cpp_err=
19679 fi
252b5132 19680else
5464f5a1 19681 ac_cpp_err=yes
252b5132 19682fi
5464f5a1
NN
19683if test -z "$ac_cpp_err"; then
19684 ac_header_preproc=yes
19685else
19686 echo "$as_me: failed program was:" >&5
19687sed 's/^/| /' conftest.$ac_ext >&5
19688
19689 ac_header_preproc=no
252b5132 19690fi
5464f5a1
NN
19691rm -f conftest.err conftest.$ac_ext
19692echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19693echo "${ECHO_T}$ac_header_preproc" >&6
19694
19695# So? What about this header?
19696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19697 yes:no: )
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19699echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19701echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19702 ac_header_preproc=yes
19703 ;;
19704 no:yes:* )
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19706echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19708echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19710echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19712echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19714echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19716echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19717 (
19718 cat <<\_ASBOX
19719## ------------------------------------------ ##
19720## Report this to the AC_PACKAGE_NAME lists. ##
19721## ------------------------------------------ ##
19722_ASBOX
19723 ) |
19724 sed "s/^/$as_me: WARNING: /" >&2
19725 ;;
19726esac
19727echo "$as_me:$LINENO: checking for $ac_header" >&5
19728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19729if eval "test \"\${$as_ac_Header+set}\" = set"; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 19731else
5464f5a1
NN
19732 eval "$as_ac_Header=\$ac_header_preproc"
19733fi
19734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19735echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19736
252b5132 19737fi
5464f5a1
NN
19738if test `eval echo '${'$as_ac_Header'}'` = yes; then
19739 cat >>confdefs.h <<_ACEOF
19740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19741_ACEOF
19742
19743fi
19744
252b5132
RH
19745done
19746
19747 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
19748 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
19749echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
19750 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19752else
19753 cat >conftest.$ac_ext <<_ACEOF
19754/* confdefs.h. */
19755_ACEOF
19756cat confdefs.h >>conftest.$ac_ext
19757cat >>conftest.$ac_ext <<_ACEOF
19758/* end confdefs.h. */
7ee38065
MS
19759
19760#define _SYSCALL32
252b5132 19761#include <sys/procfs.h>
5464f5a1
NN
19762int
19763main ()
19764{
252b5132 19765prstatus_t avar
5464f5a1
NN
19766 ;
19767 return 0;
19768}
19769_ACEOF
19770rm -f conftest.$ac_objext
19771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772 (eval $ac_compile) 2>conftest.er1
19773 ac_status=$?
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
7357c5b6
AM
19779 { ac_try='test -z "$ac_c_werror_flag"
19780 || test ! -s conftest.err'
5464f5a1
NN
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
252b5132
RH
19792 bfd_cv_have_sys_procfs_type_prstatus_t=yes
19793else
5464f5a1
NN
19794 echo "$as_me: failed program was:" >&5
19795sed 's/^/| /' conftest.$ac_ext >&5
19796
19797bfd_cv_have_sys_procfs_type_prstatus_t=no
19798
252b5132 19799fi
5464f5a1 19800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19801fi
19802
19803 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
19804
19805cat >>confdefs.h <<\_ACEOF
252b5132 19806#define HAVE_PRSTATUS_T 1
5464f5a1 19807_ACEOF
252b5132
RH
19808
19809 fi
5464f5a1
NN
19810 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
19811echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 19812
5464f5a1
NN
19813 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
19814echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
19815 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19817else
5464f5a1
NN
19818 cat >conftest.$ac_ext <<_ACEOF
19819/* confdefs.h. */
19820_ACEOF
19821cat confdefs.h >>conftest.$ac_ext
19822cat >>conftest.$ac_ext <<_ACEOF
19823/* end confdefs.h. */
7ee38065
MS
19824
19825#define _SYSCALL32
19826#include <sys/procfs.h>
5464f5a1
NN
19827int
19828main ()
19829{
7ee38065 19830prstatus32_t avar
5464f5a1
NN
19831 ;
19832 return 0;
19833}
19834_ACEOF
19835rm -f conftest.$ac_objext
19836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19837 (eval $ac_compile) 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
7357c5b6
AM
19844 { ac_try='test -z "$ac_c_werror_flag"
19845 || test ! -s conftest.err'
5464f5a1
NN
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest.$ac_objext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
7ee38065
MS
19857 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
19858else
5464f5a1
NN
19859 echo "$as_me: failed program was:" >&5
19860sed 's/^/| /' conftest.$ac_ext >&5
19861
19862bfd_cv_have_sys_procfs_type_prstatus32_t=no
19863
7ee38065 19864fi
5464f5a1 19865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19866fi
19867
19868 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
19869
19870cat >>confdefs.h <<\_ACEOF
7ee38065 19871#define HAVE_PRSTATUS32_T 1
5464f5a1 19872_ACEOF
7ee38065
MS
19873
19874 fi
5464f5a1
NN
19875 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
19876echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 19877
5464f5a1
NN
19878 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
19879echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19880 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19882else
5464f5a1
NN
19883 cat >conftest.$ac_ext <<_ACEOF
19884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
7ee38065
MS
19889
19890#define _SYSCALL32
252b5132 19891#include <sys/procfs.h>
5464f5a1
NN
19892int
19893main ()
19894{
252b5132 19895prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
19896 ;
19897 return 0;
19898}
19899_ACEOF
19900rm -f conftest.$ac_objext
19901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19902 (eval $ac_compile) 2>conftest.er1
19903 ac_status=$?
19904 grep -v '^ *+' conftest.er1 >conftest.err
19905 rm -f conftest.er1
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
7357c5b6
AM
19909 { ac_try='test -z "$ac_c_werror_flag"
19910 || test ! -s conftest.err'
5464f5a1
NN
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
252b5132
RH
19922 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
19923else
5464f5a1
NN
19924 echo "$as_me: failed program was:" >&5
19925sed 's/^/| /' conftest.$ac_ext >&5
19926
19927bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
19928
252b5132 19929fi
5464f5a1 19930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19931fi
19932
19933 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
19934
19935cat >>confdefs.h <<\_ACEOF
252b5132 19936#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 19937_ACEOF
252b5132
RH
19938
19939 fi
5464f5a1
NN
19940 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19941echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 19942
5464f5a1
NN
19943 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19944echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19945 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19947else
5464f5a1
NN
19948 cat >conftest.$ac_ext <<_ACEOF
19949/* confdefs.h. */
19950_ACEOF
19951cat confdefs.h >>conftest.$ac_ext
19952cat >>conftest.$ac_ext <<_ACEOF
19953/* end confdefs.h. */
7ee38065
MS
19954
19955#define _SYSCALL32
19956#include <sys/procfs.h>
5464f5a1
NN
19957int
19958main ()
19959{
7ee38065 19960prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
19961 ;
19962 return 0;
19963}
19964_ACEOF
19965rm -f conftest.$ac_objext
19966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19967 (eval $ac_compile) 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } &&
7357c5b6
AM
19974 { ac_try='test -z "$ac_c_werror_flag"
19975 || test ! -s conftest.err'
5464f5a1
NN
19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19978 ac_status=$?
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; } &&
19981 { ac_try='test -s conftest.$ac_objext'
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19984 ac_status=$?
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; }; then
7ee38065
MS
19987 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19988else
5464f5a1
NN
19989 echo "$as_me: failed program was:" >&5
19990sed 's/^/| /' conftest.$ac_ext >&5
19991
19992bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19993
7ee38065 19994fi
5464f5a1 19995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19996fi
19997
19998 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
19999
20000cat >>confdefs.h <<\_ACEOF
7ee38065 20001#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 20002_ACEOF
7ee38065
MS
20003
20004 fi
5464f5a1
NN
20005 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
20006echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 20007
5464f5a1
NN
20008 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
20009echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
20010 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20012else
5464f5a1
NN
20013 cat >conftest.$ac_ext <<_ACEOF
20014/* confdefs.h. */
20015_ACEOF
20016cat confdefs.h >>conftest.$ac_ext
20017cat >>conftest.$ac_ext <<_ACEOF
20018/* end confdefs.h. */
7ee38065
MS
20019
20020#define _SYSCALL32
252b5132 20021#include <sys/procfs.h>
5464f5a1
NN
20022int
20023main ()
20024{
252b5132 20025pstatus_t avar
5464f5a1
NN
20026 ;
20027 return 0;
20028}
20029_ACEOF
20030rm -f conftest.$ac_objext
20031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20032 (eval $ac_compile) 2>conftest.er1
20033 ac_status=$?
20034 grep -v '^ *+' conftest.er1 >conftest.err
20035 rm -f conftest.er1
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
7357c5b6
AM
20039 { ac_try='test -z "$ac_c_werror_flag"
20040 || test ! -s conftest.err'
5464f5a1
NN
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest.$ac_objext'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
252b5132
RH
20052 bfd_cv_have_sys_procfs_type_pstatus_t=yes
20053else
5464f5a1
NN
20054 echo "$as_me: failed program was:" >&5
20055sed 's/^/| /' conftest.$ac_ext >&5
20056
20057bfd_cv_have_sys_procfs_type_pstatus_t=no
20058
252b5132 20059fi
5464f5a1 20060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20061fi
20062
20063 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
20064
20065cat >>confdefs.h <<\_ACEOF
252b5132 20066#define HAVE_PSTATUS_T 1
5464f5a1 20067_ACEOF
252b5132
RH
20068
20069 fi
5464f5a1
NN
20070 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
20071echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 20072
5464f5a1
NN
20073 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
20074echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
20075 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 20077else
5464f5a1
NN
20078 cat >conftest.$ac_ext <<_ACEOF
20079/* confdefs.h. */
20080_ACEOF
20081cat confdefs.h >>conftest.$ac_ext
20082cat >>conftest.$ac_ext <<_ACEOF
20083/* end confdefs.h. */
f572a39d
AM
20084
20085#define _SYSCALL32
20086#include <sys/procfs.h>
5464f5a1
NN
20087int
20088main ()
20089{
f572a39d 20090pxstatus_t avar
5464f5a1
NN
20091 ;
20092 return 0;
20093}
20094_ACEOF
20095rm -f conftest.$ac_objext
20096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20097 (eval $ac_compile) 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } &&
7357c5b6
AM
20104 { ac_try='test -z "$ac_c_werror_flag"
20105 || test ! -s conftest.err'
5464f5a1
NN
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; } &&
20111 { ac_try='test -s conftest.$ac_objext'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
f572a39d
AM
20117 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
20118else
5464f5a1
NN
20119 echo "$as_me: failed program was:" >&5
20120sed 's/^/| /' conftest.$ac_ext >&5
20121
20122bfd_cv_have_sys_procfs_type_pxstatus_t=no
20123
f572a39d 20124fi
5464f5a1 20125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
20126fi
20127
20128 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
20129
20130cat >>confdefs.h <<\_ACEOF
f572a39d 20131#define HAVE_PXSTATUS_T 1
5464f5a1 20132_ACEOF
f572a39d
AM
20133
20134 fi
5464f5a1
NN
20135 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
20136echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 20137
5464f5a1
NN
20138 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
20139echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
20140 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 20142else
5464f5a1
NN
20143 cat >conftest.$ac_ext <<_ACEOF
20144/* confdefs.h. */
20145_ACEOF
20146cat confdefs.h >>conftest.$ac_ext
20147cat >>conftest.$ac_ext <<_ACEOF
20148/* end confdefs.h. */
7ee38065
MS
20149
20150#define _SYSCALL32
20151#include <sys/procfs.h>
5464f5a1
NN
20152int
20153main ()
20154{
7ee38065 20155pstatus32_t avar
5464f5a1
NN
20156 ;
20157 return 0;
20158}
20159_ACEOF
20160rm -f conftest.$ac_objext
20161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20162 (eval $ac_compile) 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } &&
7357c5b6
AM
20169 { ac_try='test -z "$ac_c_werror_flag"
20170 || test ! -s conftest.err'
5464f5a1
NN
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; } &&
20176 { ac_try='test -s conftest.$ac_objext'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; }; then
7ee38065
MS
20182 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
20183else
5464f5a1
NN
20184 echo "$as_me: failed program was:" >&5
20185sed 's/^/| /' conftest.$ac_ext >&5
20186
20187bfd_cv_have_sys_procfs_type_pstatus32_t=no
20188
7ee38065 20189fi
5464f5a1 20190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
20191fi
20192
20193 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
20194
20195cat >>confdefs.h <<\_ACEOF
7ee38065 20196#define HAVE_PSTATUS32_T 1
5464f5a1 20197_ACEOF
7ee38065
MS
20198
20199 fi
5464f5a1
NN
20200 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
20201echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 20202
5464f5a1
NN
20203 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
20204echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
20205 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
20206 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20207else
5464f5a1
NN
20208 cat >conftest.$ac_ext <<_ACEOF
20209/* confdefs.h. */
20210_ACEOF
20211cat confdefs.h >>conftest.$ac_ext
20212cat >>conftest.$ac_ext <<_ACEOF
20213/* end confdefs.h. */
7ee38065
MS
20214
20215#define _SYSCALL32
252b5132 20216#include <sys/procfs.h>
5464f5a1
NN
20217int
20218main ()
20219{
252b5132 20220prpsinfo_t avar
5464f5a1
NN
20221 ;
20222 return 0;
20223}
20224_ACEOF
20225rm -f conftest.$ac_objext
20226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
7357c5b6
AM
20234 { ac_try='test -z "$ac_c_werror_flag"
20235 || test ! -s conftest.err'
5464f5a1
NN
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
252b5132
RH
20247 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
20248else
5464f5a1
NN
20249 echo "$as_me: failed program was:" >&5
20250sed 's/^/| /' conftest.$ac_ext >&5
20251
20252bfd_cv_have_sys_procfs_type_prpsinfo_t=no
20253
252b5132 20254fi
5464f5a1 20255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20256fi
20257
20258 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
20259
20260cat >>confdefs.h <<\_ACEOF
252b5132 20261#define HAVE_PRPSINFO_T 1
5464f5a1 20262_ACEOF
252b5132
RH
20263
20264 fi
5464f5a1
NN
20265 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
20266echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 20267
5464f5a1
NN
20268 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
20269echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
20270 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 20272else
5464f5a1
NN
20273 cat >conftest.$ac_ext <<_ACEOF
20274/* confdefs.h. */
20275_ACEOF
20276cat confdefs.h >>conftest.$ac_ext
20277cat >>conftest.$ac_ext <<_ACEOF
20278/* end confdefs.h. */
7ee38065
MS
20279
20280#define _SYSCALL32
20281#include <sys/procfs.h>
5464f5a1
NN
20282int
20283main ()
20284{
7ee38065 20285prpsinfo32_t avar
5464f5a1
NN
20286 ;
20287 return 0;
20288}
20289_ACEOF
20290rm -f conftest.$ac_objext
20291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20292 (eval $ac_compile) 2>conftest.er1
20293 ac_status=$?
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } &&
7357c5b6
AM
20299 { ac_try='test -z "$ac_c_werror_flag"
20300 || test ! -s conftest.err'
5464f5a1
NN
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; } &&
20306 { ac_try='test -s conftest.$ac_objext'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
7ee38065
MS
20312 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
20313else
5464f5a1
NN
20314 echo "$as_me: failed program was:" >&5
20315sed 's/^/| /' conftest.$ac_ext >&5
20316
20317bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
20318
7ee38065 20319fi
5464f5a1 20320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
20321fi
20322
20323 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
20324
20325cat >>confdefs.h <<\_ACEOF
7ee38065 20326#define HAVE_PRPSINFO32_T 1
5464f5a1 20327_ACEOF
7ee38065
MS
20328
20329 fi
5464f5a1
NN
20330 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
20331echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 20332
5464f5a1
NN
20333 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
20334echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
20335 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20337else
5464f5a1
NN
20338 cat >conftest.$ac_ext <<_ACEOF
20339/* confdefs.h. */
20340_ACEOF
20341cat confdefs.h >>conftest.$ac_ext
20342cat >>conftest.$ac_ext <<_ACEOF
20343/* end confdefs.h. */
7ee38065
MS
20344
20345#define _SYSCALL32
252b5132 20346#include <sys/procfs.h>
5464f5a1
NN
20347int
20348main ()
20349{
252b5132 20350psinfo_t avar
5464f5a1
NN
20351 ;
20352 return 0;
20353}
20354_ACEOF
20355rm -f conftest.$ac_objext
20356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357 (eval $ac_compile) 2>conftest.er1
20358 ac_status=$?
20359 grep -v '^ *+' conftest.er1 >conftest.err
20360 rm -f conftest.er1
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
7357c5b6
AM
20364 { ac_try='test -z "$ac_c_werror_flag"
20365 || test ! -s conftest.err'
5464f5a1
NN
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest.$ac_objext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
252b5132
RH
20377 bfd_cv_have_sys_procfs_type_psinfo_t=yes
20378else
5464f5a1
NN
20379 echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
20382bfd_cv_have_sys_procfs_type_psinfo_t=no
20383
252b5132 20384fi
5464f5a1 20385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20386fi
20387
20388 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
20389
20390cat >>confdefs.h <<\_ACEOF
252b5132 20391#define HAVE_PSINFO_T 1
5464f5a1 20392_ACEOF
252b5132
RH
20393
20394 fi
5464f5a1
NN
20395 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
20396echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 20397
5464f5a1
NN
20398 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
20399echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
20400 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 20402else
5464f5a1
NN
20403 cat >conftest.$ac_ext <<_ACEOF
20404/* confdefs.h. */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h. */
7ee38065
MS
20409
20410#define _SYSCALL32
20411#include <sys/procfs.h>
5464f5a1
NN
20412int
20413main ()
20414{
7ee38065 20415psinfo32_t avar
5464f5a1
NN
20416 ;
20417 return 0;
20418}
20419_ACEOF
20420rm -f conftest.$ac_objext
20421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20422 (eval $ac_compile) 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
7357c5b6
AM
20429 { ac_try='test -z "$ac_c_werror_flag"
20430 || test ! -s conftest.err'
5464f5a1
NN
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; } &&
20436 { ac_try='test -s conftest.$ac_objext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
7ee38065
MS
20442 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
20443else
5464f5a1
NN
20444 echo "$as_me: failed program was:" >&5
20445sed 's/^/| /' conftest.$ac_ext >&5
20446
20447bfd_cv_have_sys_procfs_type_psinfo32_t=no
20448
7ee38065 20449fi
5464f5a1 20450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
20451fi
20452
20453 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
20454
20455cat >>confdefs.h <<\_ACEOF
7ee38065 20456#define HAVE_PSINFO32_T 1
5464f5a1 20457_ACEOF
7ee38065
MS
20458
20459 fi
5464f5a1
NN
20460 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
20461echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 20462
5464f5a1
NN
20463 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
20464echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
20465 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20467else
5464f5a1
NN
20468 cat >conftest.$ac_ext <<_ACEOF
20469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
7ee38065
MS
20474
20475#define _SYSCALL32
252b5132 20476#include <sys/procfs.h>
5464f5a1
NN
20477int
20478main ()
20479{
252b5132 20480lwpstatus_t avar
5464f5a1
NN
20481 ;
20482 return 0;
20483}
20484_ACEOF
20485rm -f conftest.$ac_objext
20486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>conftest.er1
20488 ac_status=$?
20489 grep -v '^ *+' conftest.er1 >conftest.err
20490 rm -f conftest.er1
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } &&
7357c5b6
AM
20494 { ac_try='test -z "$ac_c_werror_flag"
20495 || test ! -s conftest.err'
5464f5a1
NN
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
252b5132
RH
20507 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
20508else
5464f5a1
NN
20509 echo "$as_me: failed program was:" >&5
20510sed 's/^/| /' conftest.$ac_ext >&5
20511
20512bfd_cv_have_sys_procfs_type_lwpstatus_t=no
20513
252b5132 20514fi
5464f5a1 20515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20516fi
20517
20518 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
20519
20520cat >>confdefs.h <<\_ACEOF
252b5132 20521#define HAVE_LWPSTATUS_T 1
5464f5a1 20522_ACEOF
252b5132
RH
20523
20524 fi
5464f5a1
NN
20525 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
20526echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 20527
5464f5a1
NN
20528 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
20529echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
20530 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 20532else
5464f5a1
NN
20533 cat >conftest.$ac_ext <<_ACEOF
20534/* confdefs.h. */
20535_ACEOF
20536cat confdefs.h >>conftest.$ac_ext
20537cat >>conftest.$ac_ext <<_ACEOF
20538/* end confdefs.h. */
f572a39d
AM
20539
20540#define _SYSCALL32
20541#include <sys/procfs.h>
5464f5a1
NN
20542int
20543main ()
20544{
f572a39d 20545lwpxstatus_t avar
5464f5a1
NN
20546 ;
20547 return 0;
20548}
20549_ACEOF
20550rm -f conftest.$ac_objext
20551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20552 (eval $ac_compile) 2>conftest.er1
20553 ac_status=$?
20554 grep -v '^ *+' conftest.er1 >conftest.err
20555 rm -f conftest.er1
20556 cat conftest.err >&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } &&
7357c5b6
AM
20559 { ac_try='test -z "$ac_c_werror_flag"
20560 || test ! -s conftest.err'
5464f5a1
NN
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; } &&
20566 { ac_try='test -s conftest.$ac_objext'
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
f572a39d
AM
20572 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
20573else
5464f5a1
NN
20574 echo "$as_me: failed program was:" >&5
20575sed 's/^/| /' conftest.$ac_ext >&5
20576
20577bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
20578
f572a39d 20579fi
5464f5a1 20580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
20581fi
20582
20583 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
20584
20585cat >>confdefs.h <<\_ACEOF
f572a39d 20586#define HAVE_LWPXSTATUS_T 1
5464f5a1 20587_ACEOF
f572a39d
AM
20588
20589 fi
5464f5a1
NN
20590 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
20591echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 20592
5464f5a1
NN
20593 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
20594echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
20595 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20597else
5464f5a1
NN
20598 cat >conftest.$ac_ext <<_ACEOF
20599/* confdefs.h. */
20600_ACEOF
20601cat confdefs.h >>conftest.$ac_ext
20602cat >>conftest.$ac_ext <<_ACEOF
20603/* end confdefs.h. */
7ee38065
MS
20604
20605#define _SYSCALL32
252b5132 20606#include <sys/procfs.h>
5464f5a1
NN
20607int
20608main ()
20609{
252b5132 20610lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
20611 ;
20612 return 0;
20613}
20614_ACEOF
20615rm -f conftest.$ac_objext
20616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617 (eval $ac_compile) 2>conftest.er1
20618 ac_status=$?
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
7357c5b6
AM
20624 { ac_try='test -z "$ac_c_werror_flag"
20625 || test ! -s conftest.err'
5464f5a1
NN
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; } &&
20631 { ac_try='test -s conftest.$ac_objext'
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; }; then
252b5132
RH
20637 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
20638else
5464f5a1
NN
20639 echo "$as_me: failed program was:" >&5
20640sed 's/^/| /' conftest.$ac_ext >&5
20641
20642bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
20643
252b5132 20644fi
5464f5a1 20645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20646fi
20647
20648 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
20649
20650cat >>confdefs.h <<\_ACEOF
252b5132 20651#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 20652_ACEOF
252b5132
RH
20653
20654 fi
5464f5a1
NN
20655 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
20656echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 20657
5464f5a1
NN
20658 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
20659echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
20660 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20662else
5464f5a1
NN
20663 cat >conftest.$ac_ext <<_ACEOF
20664/* confdefs.h. */
20665_ACEOF
20666cat confdefs.h >>conftest.$ac_ext
20667cat >>conftest.$ac_ext <<_ACEOF
20668/* end confdefs.h. */
7ee38065
MS
20669
20670#define _SYSCALL32
252b5132 20671#include <sys/procfs.h>
5464f5a1
NN
20672int
20673main ()
20674{
252b5132 20675lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
20676 ;
20677 return 0;
20678}
20679_ACEOF
20680rm -f conftest.$ac_objext
20681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20682 (eval $ac_compile) 2>conftest.er1
20683 ac_status=$?
20684 grep -v '^ *+' conftest.er1 >conftest.err
20685 rm -f conftest.er1
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } &&
7357c5b6
AM
20689 { ac_try='test -z "$ac_c_werror_flag"
20690 || test ! -s conftest.err'
5464f5a1
NN
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; } &&
20696 { ac_try='test -s conftest.$ac_objext'
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; }; then
252b5132
RH
20702 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
20703else
5464f5a1
NN
20704 echo "$as_me: failed program was:" >&5
20705sed 's/^/| /' conftest.$ac_ext >&5
20706
20707bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
20708
252b5132 20709fi
5464f5a1 20710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20711fi
20712
20713 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
20714
20715cat >>confdefs.h <<\_ACEOF
252b5132 20716#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 20717_ACEOF
252b5132
RH
20718
20719 fi
5464f5a1
NN
20720 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
20721echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 20722
5464f5a1
NN
20723 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
20724echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
20725 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
20726 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 20727else
5464f5a1
NN
20728 cat >conftest.$ac_ext <<_ACEOF
20729/* confdefs.h. */
20730_ACEOF
20731cat confdefs.h >>conftest.$ac_ext
20732cat >>conftest.$ac_ext <<_ACEOF
20733/* end confdefs.h. */
7ee38065
MS
20734
20735#define _SYSCALL32
e3c976c4 20736#include <sys/procfs.h>
5464f5a1
NN
20737int
20738main ()
20739{
e3c976c4 20740win32_pstatus_t avar
5464f5a1
NN
20741 ;
20742 return 0;
20743}
20744_ACEOF
20745rm -f conftest.$ac_objext
20746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20747 (eval $ac_compile) 2>conftest.er1
20748 ac_status=$?
20749 grep -v '^ *+' conftest.er1 >conftest.err
20750 rm -f conftest.er1
20751 cat conftest.err >&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } &&
7357c5b6
AM
20754 { ac_try='test -z "$ac_c_werror_flag"
20755 || test ! -s conftest.err'
5464f5a1
NN
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; } &&
20761 { ac_try='test -s conftest.$ac_objext'
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
e3c976c4
ILT
20767 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
20768else
5464f5a1
NN
20769 echo "$as_me: failed program was:" >&5
20770sed 's/^/| /' conftest.$ac_ext >&5
20771
20772bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
20773
e3c976c4 20774fi
5464f5a1 20775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20776fi
20777
e3c976c4 20778 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
20779
20780cat >>confdefs.h <<\_ACEOF
e3c976c4 20781#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 20782_ACEOF
16e9c715
NC
20783
20784 fi
5464f5a1
NN
20785 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
20786echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
20787
20788 fi
20789fi
16e9c715 20790
b3baf5d0 20791
6be7c12c 20792if test -n "$TRAD_HEADER"; then
5464f5a1
NN
20793
20794cat >>confdefs.h <<_ACEOF
252b5132 20795#define TRAD_HEADER $TRAD_HEADER
5464f5a1 20796_ACEOF
252b5132 20797
3f9b03b5 20798fi
252b5132 20799
51dec227
AM
20800# Check if linker supports --as-needed and --no-as-needed options
20801echo "$as_me:$LINENO: checking linker --as-needed support" >&5
20802echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
20803if test "${bfd_cv_ld_as_needed+set}" = set; then
20804 echo $ECHO_N "(cached) $ECHO_C" >&6
20805else
20806 bfd_cv_ld_as_needed=no
20807 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
20808 bfd_cv_ld_as_needed=yes
20809 fi
20810
20811fi
20812echo "$as_me:$LINENO: result: $bfd_cv_ld_as_needed" >&5
20813echo "${ECHO_T}$bfd_cv_ld_as_needed" >&6
20814
20815LIBM=
20816case $host in
20817*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
20818 # These system don't have libm, or don't need it
20819 ;;
20820*-ncr-sysv4.3*)
20821 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
20822echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
20823if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20825else
20826 ac_check_lib_save_LIBS=$LIBS
20827LIBS="-lmw $LIBS"
20828cat >conftest.$ac_ext <<_ACEOF
20829/* confdefs.h. */
20830_ACEOF
20831cat confdefs.h >>conftest.$ac_ext
20832cat >>conftest.$ac_ext <<_ACEOF
20833/* end confdefs.h. */
20834
20835/* Override any gcc2 internal prototype to avoid an error. */
20836#ifdef __cplusplus
20837extern "C"
20838#endif
20839/* We use char because int might match the return type of a gcc2
20840 builtin and then its argument prototype would still apply. */
20841char _mwvalidcheckl ();
20842int
20843main ()
20844{
20845_mwvalidcheckl ();
20846 ;
20847 return 0;
20848}
20849_ACEOF
20850rm -f conftest.$ac_objext conftest$ac_exeext
20851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20852 (eval $ac_link) 2>conftest.er1
20853 ac_status=$?
20854 grep -v '^ *+' conftest.er1 >conftest.err
20855 rm -f conftest.er1
20856 cat conftest.err >&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } &&
20859 { ac_try='test -z "$ac_c_werror_flag"
20860 || test ! -s conftest.err'
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20863 ac_status=$?
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; } &&
20866 { ac_try='test -s conftest$ac_exeext'
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20869 ac_status=$?
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; }; then
20872 ac_cv_lib_mw__mwvalidcheckl=yes
20873else
20874 echo "$as_me: failed program was:" >&5
20875sed 's/^/| /' conftest.$ac_ext >&5
20876
20877ac_cv_lib_mw__mwvalidcheckl=no
20878fi
20879rm -f conftest.err conftest.$ac_objext \
20880 conftest$ac_exeext conftest.$ac_ext
20881LIBS=$ac_check_lib_save_LIBS
20882fi
20883echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
20884echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
20885if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
20886 LIBM="-lmw"
20887fi
20888
20889 echo "$as_me:$LINENO: checking for cos in -lm" >&5
20890echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20891if test "${ac_cv_lib_m_cos+set}" = set; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20893else
20894 ac_check_lib_save_LIBS=$LIBS
20895LIBS="-lm $LIBS"
20896cat >conftest.$ac_ext <<_ACEOF
20897/* confdefs.h. */
20898_ACEOF
20899cat confdefs.h >>conftest.$ac_ext
20900cat >>conftest.$ac_ext <<_ACEOF
20901/* end confdefs.h. */
20902
20903/* Override any gcc2 internal prototype to avoid an error. */
20904#ifdef __cplusplus
20905extern "C"
20906#endif
20907/* We use char because int might match the return type of a gcc2
20908 builtin and then its argument prototype would still apply. */
20909char cos ();
20910int
20911main ()
20912{
20913cos ();
20914 ;
20915 return 0;
20916}
20917_ACEOF
20918rm -f conftest.$ac_objext conftest$ac_exeext
20919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20920 (eval $ac_link) 2>conftest.er1
20921 ac_status=$?
20922 grep -v '^ *+' conftest.er1 >conftest.err
20923 rm -f conftest.er1
20924 cat conftest.err >&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
20927 { ac_try='test -z "$ac_c_werror_flag"
20928 || test ! -s conftest.err'
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20931 ac_status=$?
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; } &&
20934 { ac_try='test -s conftest$ac_exeext'
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20937 ac_status=$?
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; }; then
20940 ac_cv_lib_m_cos=yes
20941else
20942 echo "$as_me: failed program was:" >&5
20943sed 's/^/| /' conftest.$ac_ext >&5
20944
20945ac_cv_lib_m_cos=no
20946fi
20947rm -f conftest.err conftest.$ac_objext \
20948 conftest$ac_exeext conftest.$ac_ext
20949LIBS=$ac_check_lib_save_LIBS
20950fi
20951echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20952echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20953if test $ac_cv_lib_m_cos = yes; then
20954 LIBM="$LIBM -lm"
20955fi
20956
20957 ;;
20958*)
20959 echo "$as_me:$LINENO: checking for cos in -lm" >&5
20960echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20961if test "${ac_cv_lib_m_cos+set}" = set; then
20962 echo $ECHO_N "(cached) $ECHO_C" >&6
20963else
20964 ac_check_lib_save_LIBS=$LIBS
20965LIBS="-lm $LIBS"
20966cat >conftest.$ac_ext <<_ACEOF
20967/* confdefs.h. */
20968_ACEOF
20969cat confdefs.h >>conftest.$ac_ext
20970cat >>conftest.$ac_ext <<_ACEOF
20971/* end confdefs.h. */
20972
20973/* Override any gcc2 internal prototype to avoid an error. */
20974#ifdef __cplusplus
20975extern "C"
20976#endif
20977/* We use char because int might match the return type of a gcc2
20978 builtin and then its argument prototype would still apply. */
20979char cos ();
20980int
20981main ()
20982{
20983cos ();
20984 ;
20985 return 0;
20986}
20987_ACEOF
20988rm -f conftest.$ac_objext conftest$ac_exeext
20989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20990 (eval $ac_link) 2>conftest.er1
20991 ac_status=$?
20992 grep -v '^ *+' conftest.er1 >conftest.err
20993 rm -f conftest.er1
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } &&
20997 { ac_try='test -z "$ac_c_werror_flag"
20998 || test ! -s conftest.err'
20999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21001 ac_status=$?
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; } &&
21004 { ac_try='test -s conftest$ac_exeext'
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21007 ac_status=$?
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; }; then
21010 ac_cv_lib_m_cos=yes
21011else
21012 echo "$as_me: failed program was:" >&5
21013sed 's/^/| /' conftest.$ac_ext >&5
21014
21015ac_cv_lib_m_cos=no
21016fi
21017rm -f conftest.err conftest.$ac_objext \
21018 conftest$ac_exeext conftest.$ac_ext
21019LIBS=$ac_check_lib_save_LIBS
21020fi
21021echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
21022echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
21023if test $ac_cv_lib_m_cos = yes; then
21024 LIBM="-lm"
21025fi
21026
21027 ;;
21028esac
21029
21030
21031
29670fb9
AM
21032# When building a shared libbfd, link against the pic version of libiberty
21033# so that apps that use libbfd won't need libiberty just to satisfy any
21034# libbfd references.
21035# We can't do that if a pic libiberty is unavailable since including non-pic
21036# code would insert text relocations into libbfd.
21037SHARED_LIBADD=
21038SHARED_LDFLAGS=
21039if test "$enable_shared" = "yes"; then
c5cb8442
TS
21040 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
21041 if test -n "$x"; then
29670fb9 21042 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
c5cb8442 21043 fi
29670fb9
AM
21044
21045# More hacks to build DLLs on Windows.
21046 case "${host}" in
21047 *-*-cygwin*)
21048 SHARED_LDFLAGS="-no-undefined"
21049 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
39691762 21050 ;;
29670fb9 21051 esac
51dec227
AM
21052
21053 if test -n "$SHARED_LIBADD"; then
21054 if test -n "$LIBM"; then
21055 if test x"$bfd_cv_ld_as_needed" = xyes; then
21056 # Link against libm only when needed. Put -lc, -lm inside -Wl
21057 # to stop libtool reordering these options.
21058 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
21059 else
21060 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
21061 fi
21062 fi
21063 fi
29670fb9 21064fi
252b5132 21065
6be7c12c
AO
21066
21067
252b5132
RH
21068# target stuff:
21069
21070# Canonicalize the secondary target names.
21071if test -n "$enable_targets" ; then
21072 for targ in `echo $enable_targets | sed 's/,/ /g'`
21073 do
6d83c84b 21074 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
21075 if test -n "$result" ; then
21076 canon_targets="$canon_targets $result"
21077 else
21078 # Allow targets that config.sub doesn't recognize, like "all".
21079 canon_targets="$canon_targets $targ"
21080 fi
21081 done
21082fi
21083
21084all_targets=false
21085defvec=
21086selvecs=
08f74004 21087assocvecs=
252b5132
RH
21088selarchs=
21089TDEFINES=
21090for targ in $target $canon_targets
21091do
21092 if test "x$targ" = "xall"; then
21093 all_targets=true
08f74004 21094 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
21095 else
21096 . $srcdir/config.bfd
21097 if test "x$targ" = "x$target"; then
21098 defvec=$targ_defvec
21099 fi
21100 selvecs="$selvecs $targ_defvec $targ_selvecs"
21101 selarchs="$selarchs $targ_archs"
21102 TDEFINES="$TDEFINES $targ_cflags"
21103 fi
21104done
21105
6be7c12c 21106
252b5132
RH
21107# This processing still needs to be done if we're to decide properly whether
21108# 64-bit support needs to be compiled in. Currently, it will be included if
21109# the default or any other explicitly requested target requires it; it
21110# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 21111# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
21112# used.
21113
21114# uniq the default and selected vectors in all the configured targets.
21115f=""
21116for i in $selvecs ; do
21117 case " $f " in
21118 *" $i "*) ;;
21119 *) f="$f $i" ;;
21120 esac
21121done
21122selvecs="$f"
21123
6be7c12c 21124
08f74004
AM
21125# uniq the associated vectors in all the configured targets.
21126f=""
21127for i in $assocvecs ; do
21128 case " $f " in
21129 *" $i "*) ;;
21130 *) f="$f $i" ;;
21131 esac
21132done
21133assocvecs="$f"
21134
21135
252b5132
RH
21136# uniq the architectures in all the configured targets.
21137f=""
21138for i in $selarchs ; do
21139 case " $f " in
21140 *" $i "*) ;;
21141 *) f="$f $i" ;;
21142 esac
21143done
21144selarchs="$f"
21145
21146# Target backend .o files.
21147tb=
21148
6de2ae4a
L
21149elf="elf.lo elflink.lo elf-attrs.lo elf-ifunc.lo elf-strtab.lo
21150 elf-eh-frame.lo dwarf1.lo"
252b5132
RH
21151
21152for vec in $selvecs
21153do
69263e90 21154 target_size=32
252b5132
RH
21155 case "$vec" in
21156 # This list is alphabetized to make it easy to compare
dc810e39
AM
21157 # with the two vector lists in targets.c. For the same reason,
21158 # use one entry per line, even though this leads to long lines.
252b5132 21159 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 21160 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
21161 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
21162 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
21163 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 21164 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
21165 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
21166 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
21167 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
21168 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
21169 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
21170 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
21171 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
21172 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
21173 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
21174 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
21175 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
21176 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
21177 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
21178 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
21179 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
21180 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
21181 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
92dd4511 21182 bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 21183 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 21184 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 21185 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 21186 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 21187 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 21188 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 21189 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 21190 bfd_elf32_bigarm_symbian_vec)
00a97672 21191 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 21192 bfd_elf32_bigarm_vxworks_vec)
00a97672 21193 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
21194 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
21195 bfd_elf32_bigmips_vxworks_vec)
21196 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
3d3d428f 21197 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
0949843d 21198 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 21199 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 21200 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
21201 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
21202 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 21203 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 21204 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 21205 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 21206 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20135e4c 21207 bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
e01b0e69 21208 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 21209 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 21210 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 21211 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 21212 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
0b3e17e9
NC
21213 bfd_elf32_i386_dragonfly_vec)
21214 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
eac338cf
PB
21215 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
21216 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
21217 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 21218 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 21219 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 21220 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 21221 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 21222 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 21223 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 21224 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
84e94c90
NC
21225 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
21226 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
252b5132 21227 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 21228 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 21229 bfd_elf32_littlearm_symbian_vec)
00a97672 21230 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 21231 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
21232 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
21233 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
21234 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
21235 bfd_elf32_littlemips_vxworks_vec)
21236 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 21237 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 21238 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
21239 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
21240 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
21241 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
21242 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
21243 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
21244 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
21245 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
21246 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
21247 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
21248 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
21249 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
7ba29e2a 21250 bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
252b5132
RH
21251 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
21252 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 21253 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 21254 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
21255 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21256 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21257 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
21258 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 21259 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 21260 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
21261 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
21262 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
21263 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
21264 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
21265 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 21266 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
02b1cb40
NC
21267 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
21268 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
eb1e0e80
NC
21269 # FIXME: We include cofflink.lo not because it's needed for
21270 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
21271 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
21272 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
21273 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
21274 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
21275 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
21276 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
21277 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
21278 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
21279 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
21280 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
21281 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
21282 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
21283 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
21284 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 21285 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 21286 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
21287 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
21288 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 21289 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
21290 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
21291 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 21292 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 21293 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 21294 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 21295 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 21296 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
21297 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
21298 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 21299 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
21300 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
21301 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 21302 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
21303 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
21304 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 21305 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 21306 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 21307 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
cc2420d5 21308 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf vmsutil.lo"; target_size=64 ;;
dc810e39 21309 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 21310 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 21311 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
21312 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
21313 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
21314 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
21315 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21316 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
21317 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21318 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21319 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
21320 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 21321 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 21322 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
21323 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 ;;
21324 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 21325 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 21326 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
8a9036a4
L
21327 bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
21328 bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 21329 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
21330 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
21331 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
21332 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
21333 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 21334 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 21335 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 21336 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 21337 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
21338 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
21339 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
21340 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
21341 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
21342 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
21343 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
21344 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
21345 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
21346 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
21347 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
21348 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
21349 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 21350 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
21351 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
21352 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
21353 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
21354 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
21355 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
21356 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 21357 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
21358 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
21359 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
21360 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
21361 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
21362 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
21363 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
21364 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
21365 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
21366 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
21367 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
21368 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
21369 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
21370 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
21371 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
21372 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 21373 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
21374 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
21375 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 21376 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 21377 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 21378 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
21379 mach_o_be_vec) tb="$tb mach-o.lo" ;;
21380 mach_o_le_vec) tb="$tb mach-o.lo" ;;
21381 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
154a1ee5 21382 mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
277d1b5e
ILT
21383 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
21384 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
21385 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
21386 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
21387 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
21388 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 21389 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 21390 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 21391 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 21392 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 21393 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 21394 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 21395 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 21396 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
21397 pef_vec) tb="$tb pef.lo" ;;
21398 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 21399 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
ce3c775b 21400 plugin_vec) tb="$tb plugin.lo" ;;
6768c14a 21401 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 21402 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 21403 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 21404 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 21405 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 21406 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 21407 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 21408 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 21409 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
21410 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
21411 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 21412 som_vec) tb="$tb som.lo" ;;
dc810e39 21413 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
21414 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
21415 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
21416 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
21417 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
21418 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 21419 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 21420 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
21421 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
21422 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
21423 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
21424 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
21425 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
21426 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
21427 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
21428 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 21429 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 21430 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 21431 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 21432 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 21433 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 21434 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 21435 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 21436 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 21437 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 21438 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 21439 versados_vec) tb="$tb versados.lo" ;;
dc810e39 21440 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
21441 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
21442 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
21443 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 21444 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 21445 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 21446
341ca622
AM
21447 # These appear out of order in targets.c
21448 srec_vec) tb="$tb srec.lo" ;;
21449 symbolsrec_vec) tb="$tb srec.lo" ;;
21450 tekhex_vec) tb="$tb tekhex.lo" ;;
21451 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
21452 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
21453
252b5132 21454 "") ;;
5464f5a1
NN
21455 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
21456echo "$as_me: error: *** unknown target vector $vec" >&2;}
21457 { (exit 1); exit 1; }; } ;;
252b5132 21458 esac
69263e90
AM
21459
21460 if test ${target_size} = 64; then
21461 target64=true
21462 fi
21463 if test x"${vec}" = x"${defvec}"; then
21464 bfd_default_target_size=${target_size}
21465 fi
252b5132
RH
21466done
21467
21468# Target architecture .o files.
21469# A couple of CPUs use shorter file names to avoid problems on DOS
21470# filesystems.
d031aafb 21471ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
21472
21473# Weed out duplicate .o files.
21474f=""
21475for i in $tb ; do
21476 case " $f " in
21477 *" $i "*) ;;
21478 *) f="$f $i" ;;
21479 esac
21480done
21481tb="$f"
21482
21483f=""
21484for i in $ta ; do
21485 case " $f " in
21486 *" $i "*) ;;
21487 *) f="$f $i" ;;
21488 esac
21489done
21490ta="$f"
21491
21492bfd_backends="$tb"
21493bfd_machines="$ta"
21494
21495if test x${all_targets} = xtrue ; then
21496 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
21497 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
21498 selvecs=
21499 havevecs=
21500 selarchs=
08f74004
AM
21501 test -n "$assocvecs" &&
21502 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
21503else # all_targets is true
21504 # Only set these if they will be nonempty, for the clever echo.
21505 havevecs=
08f74004 21506 assocvecs=
252b5132
RH
21507 test -n "$selvecs" &&
21508 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
21509 test -n "$selvecs" &&
21510 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21511 test -n "$selarchs" &&
21512 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21513fi # all_targets is true
21514
21515case ${host64}-${target64}-${want64} in
21516 *true*)
21517 wordsize=64
21e40a48 21518 bfd64_libs='$(BFD64_LIBS)'
252b5132 21519 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 21520 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
21521 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
21522echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
21524echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 21525 fi
966abd70
HPN
21526 if test -n "$GCC" ; then
21527 bad_64bit_gcc=no;
5464f5a1
NN
21528 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
21529echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 21530 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
21531 cat >conftest.$ac_ext <<_ACEOF
21532/* confdefs.h. */
21533_ACEOF
21534cat confdefs.h >>conftest.$ac_ext
21535cat >>conftest.$ac_ext <<_ACEOF
21536/* end confdefs.h. */
966abd70 21537:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 21538_ACEOF
966abd70 21539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 21540 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 21541 bad_64bit_gcc=yes;
5464f5a1
NN
21542 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
21543echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 21544else
5464f5a1
NN
21545 echo "$as_me:$LINENO: result: no" >&5
21546echo "${ECHO_T}no" >&6
966abd70
HPN
21547fi
21548rm -f conftest*
21549
21550 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
21551 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
21552echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
21553 { (exit 1); exit 1; }; }
966abd70
HPN
21554 fi
21555 fi
252b5132
RH
21556 ;;
21557 false-false-false)
21558 wordsize=32
21559 all_backends='$(BFD32_BACKENDS)'
21560 ;;
21561esac
21562
6be7c12c
AO
21563
21564
21565
21566
21567
69263e90 21568
2858ef35 21569
ce3c775b
NC
21570if test "$plugins" = "yes"; then
21571 supports_plugins=1
21572else
21573 supports_plugins=0
21574fi
21575
21576
1012372a
AC
21577# Determine the host dependant file_ptr a.k.a. off_t type. In order
21578# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
21579# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
21580# Hopefully a reasonable assumption since fseeko et.al. should be
21581# upward compatible.
5464f5a1
NN
21582
21583
21584
21585
2e6f4fae
DJ
21586
21587for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 21588do
5464f5a1
NN
21589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21590echo "$as_me:$LINENO: checking for $ac_func" >&5
21591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21592if eval "test \"\${$as_ac_var+set}\" = set"; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21594else
2ba49b59
KC
21595 cat >conftest.$ac_ext <<_ACEOF
21596/* confdefs.h. */
21597_ACEOF
21598cat confdefs.h >>conftest.$ac_ext
21599cat >>conftest.$ac_ext <<_ACEOF
21600/* end confdefs.h. */
21601/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21603#define $ac_func innocuous_$ac_func
21604
21605/* System header to define __stub macros and hopefully few prototypes,
21606 which can conflict with char $ac_func (); below.
21607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21608 <limits.h> exists even on freestanding compilers. */
21609
21610#ifdef __STDC__
21611# include <limits.h>
21612#else
21613# include <assert.h>
21614#endif
21615
21616#undef $ac_func
21617
21618/* Override any gcc2 internal prototype to avoid an error. */
21619#ifdef __cplusplus
21620extern "C"
21621{
21622#endif
21623/* We use char because int might match the return type of a gcc2
21624 builtin and then its argument prototype would still apply. */
21625char $ac_func ();
21626/* The GNU C library defines this for functions which it implements
21627 to always fail with ENOSYS. Some functions are actually named
21628 something starting with __ and the normal name is an alias. */
21629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21630choke me
21631#else
21632char (*f) () = $ac_func;
21633#endif
21634#ifdef __cplusplus
21635}
21636#endif
21637
21638int
21639main ()
21640{
21641return f != $ac_func;
21642 ;
21643 return 0;
21644}
21645_ACEOF
21646rm -f conftest.$ac_objext conftest$ac_exeext
21647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648 (eval $ac_link) 2>conftest.er1
21649 ac_status=$?
21650 grep -v '^ *+' conftest.er1 >conftest.err
21651 rm -f conftest.er1
21652 cat conftest.err >&5
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); } &&
7357c5b6
AM
21655 { ac_try='test -z "$ac_c_werror_flag"
21656 || test ! -s conftest.err'
2ba49b59
KC
21657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21658 (eval $ac_try) 2>&5
21659 ac_status=$?
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); }; } &&
21662 { ac_try='test -s conftest$ac_exeext'
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21665 ac_status=$?
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; }; then
21668 eval "$as_ac_var=yes"
21669else
21670 echo "$as_me: failed program was:" >&5
21671sed 's/^/| /' conftest.$ac_ext >&5
21672
21673eval "$as_ac_var=no"
21674fi
21675rm -f conftest.err conftest.$ac_objext \
21676 conftest$ac_exeext conftest.$ac_ext
21677fi
21678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21679echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21680if test `eval echo '${'$as_ac_var'}'` = yes; then
21681 cat >>confdefs.h <<_ACEOF
21682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21683_ACEOF
21684
21685fi
21686done
21687
21688if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
21689 echo "$as_me:$LINENO: checking for off_t" >&5
21690echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21691if test "${ac_cv_type_off_t+set}" = set; then
21692 echo $ECHO_N "(cached) $ECHO_C" >&6
21693else
21694 cat >conftest.$ac_ext <<_ACEOF
21695/* confdefs.h. */
21696_ACEOF
21697cat confdefs.h >>conftest.$ac_ext
21698cat >>conftest.$ac_ext <<_ACEOF
21699/* end confdefs.h. */
21700$ac_includes_default
21701int
21702main ()
21703{
21704if ((off_t *) 0)
21705 return 0;
21706if (sizeof (off_t))
21707 return 0;
21708 ;
21709 return 0;
21710}
21711_ACEOF
21712rm -f conftest.$ac_objext
21713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21714 (eval $ac_compile) 2>conftest.er1
21715 ac_status=$?
21716 grep -v '^ *+' conftest.er1 >conftest.err
21717 rm -f conftest.er1
21718 cat conftest.err >&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } &&
7357c5b6
AM
21721 { ac_try='test -z "$ac_c_werror_flag"
21722 || test ! -s conftest.err'
2ba49b59
KC
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21725 ac_status=$?
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; } &&
21728 { ac_try='test -s conftest.$ac_objext'
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21731 ac_status=$?
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; }; then
21734 ac_cv_type_off_t=yes
21735else
21736 echo "$as_me: failed program was:" >&5
21737sed 's/^/| /' conftest.$ac_ext >&5
21738
21739ac_cv_type_off_t=no
21740fi
21741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21742fi
21743echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21744echo "${ECHO_T}$ac_cv_type_off_t" >&6
21745
21746echo "$as_me:$LINENO: checking size of off_t" >&5
21747echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21748if test "${ac_cv_sizeof_off_t+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21750else
21751 if test "$ac_cv_type_off_t" = yes; then
21752 # The cast to unsigned long works around a bug in the HP C Compiler
21753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21755 # This bug is HP SR number 8606223364.
21756 if test "$cross_compiling" = yes; then
21757 # Depending upon the size, compute the lo and hi bounds.
21758cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
21759/* confdefs.h. */
21760_ACEOF
21761cat confdefs.h >>conftest.$ac_ext
21762cat >>conftest.$ac_ext <<_ACEOF
21763/* end confdefs.h. */
2ba49b59
KC
21764$ac_includes_default
21765int
21766main ()
21767{
21768static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21769test_array [0] = 0
5464f5a1 21770
2ba49b59
KC
21771 ;
21772 return 0;
21773}
21774_ACEOF
21775rm -f conftest.$ac_objext
21776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21777 (eval $ac_compile) 2>conftest.er1
21778 ac_status=$?
21779 grep -v '^ *+' conftest.er1 >conftest.err
21780 rm -f conftest.er1
21781 cat conftest.err >&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } &&
7357c5b6
AM
21784 { ac_try='test -z "$ac_c_werror_flag"
21785 || test ! -s conftest.err'
2ba49b59
KC
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; } &&
21791 { ac_try='test -s conftest.$ac_objext'
21792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21793 (eval $ac_try) 2>&5
21794 ac_status=$?
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); }; }; then
21797 ac_lo=0 ac_mid=0
21798 while :; do
21799 cat >conftest.$ac_ext <<_ACEOF
21800/* confdefs.h. */
21801_ACEOF
21802cat confdefs.h >>conftest.$ac_ext
21803cat >>conftest.$ac_ext <<_ACEOF
21804/* end confdefs.h. */
21805$ac_includes_default
21806int
21807main ()
21808{
21809static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21810test_array [0] = 0
5464f5a1 21811
2ba49b59
KC
21812 ;
21813 return 0;
21814}
21815_ACEOF
21816rm -f conftest.$ac_objext
21817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21818 (eval $ac_compile) 2>conftest.er1
21819 ac_status=$?
21820 grep -v '^ *+' conftest.er1 >conftest.err
21821 rm -f conftest.er1
21822 cat conftest.err >&5
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } &&
7357c5b6
AM
21825 { ac_try='test -z "$ac_c_werror_flag"
21826 || test ! -s conftest.err'
2ba49b59
KC
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; } &&
21832 { ac_try='test -s conftest.$ac_objext'
21833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834 (eval $ac_try) 2>&5
21835 ac_status=$?
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); }; }; then
21838 ac_hi=$ac_mid; break
21839else
21840 echo "$as_me: failed program was:" >&5
21841sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21842
2ba49b59
KC
21843ac_lo=`expr $ac_mid + 1`
21844 if test $ac_lo -le $ac_mid; then
21845 ac_lo= ac_hi=
21846 break
21847 fi
21848 ac_mid=`expr 2 '*' $ac_mid + 1`
21849fi
21850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21851 done
21852else
21853 echo "$as_me: failed program was:" >&5
21854sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21855
2ba49b59
KC
21856cat >conftest.$ac_ext <<_ACEOF
21857/* confdefs.h. */
21858_ACEOF
21859cat confdefs.h >>conftest.$ac_ext
21860cat >>conftest.$ac_ext <<_ACEOF
21861/* end confdefs.h. */
21862$ac_includes_default
21863int
21864main ()
5464f5a1 21865{
2ba49b59
KC
21866static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21867test_array [0] = 0
1012372a 21868
2ba49b59
KC
21869 ;
21870 return 0;
21871}
21872_ACEOF
21873rm -f conftest.$ac_objext
21874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21875 (eval $ac_compile) 2>conftest.er1
21876 ac_status=$?
21877 grep -v '^ *+' conftest.er1 >conftest.err
21878 rm -f conftest.er1
21879 cat conftest.err >&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } &&
7357c5b6
AM
21882 { ac_try='test -z "$ac_c_werror_flag"
21883 || test ! -s conftest.err'
2ba49b59
KC
21884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885 (eval $ac_try) 2>&5
21886 ac_status=$?
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; } &&
21889 { ac_try='test -s conftest.$ac_objext'
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; }; then
21895 ac_hi=-1 ac_mid=-1
21896 while :; do
21897 cat >conftest.$ac_ext <<_ACEOF
21898/* confdefs.h. */
21899_ACEOF
21900cat confdefs.h >>conftest.$ac_ext
21901cat >>conftest.$ac_ext <<_ACEOF
21902/* end confdefs.h. */
21903$ac_includes_default
5464f5a1
NN
21904int
21905main ()
21906{
2ba49b59
KC
21907static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21908test_array [0] = 0
21909
5464f5a1
NN
21910 ;
21911 return 0;
21912}
21913_ACEOF
2ba49b59
KC
21914rm -f conftest.$ac_objext
21915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21916 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
21917 ac_status=$?
21918 grep -v '^ *+' conftest.er1 >conftest.err
21919 rm -f conftest.er1
21920 cat conftest.err >&5
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); } &&
7357c5b6
AM
21923 { ac_try='test -z "$ac_c_werror_flag"
21924 || test ! -s conftest.err'
5464f5a1
NN
21925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926 (eval $ac_try) 2>&5
21927 ac_status=$?
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); }; } &&
2ba49b59 21930 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
21931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21932 (eval $ac_try) 2>&5
21933 ac_status=$?
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); }; }; then
2ba49b59 21936 ac_lo=$ac_mid; break
5464f5a1
NN
21937else
21938 echo "$as_me: failed program was:" >&5
21939sed 's/^/| /' conftest.$ac_ext >&5
21940
2ba49b59
KC
21941ac_hi=`expr '(' $ac_mid ')' - 1`
21942 if test $ac_mid -le $ac_hi; then
21943 ac_lo= ac_hi=
21944 break
21945 fi
21946 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 21947fi
2ba49b59
KC
21948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21949 done
21950else
21951 echo "$as_me: failed program was:" >&5
21952sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21953
2ba49b59 21954ac_lo= ac_hi=
1012372a 21955fi
2ba49b59
KC
21956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21957fi
21958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21959# Binary search between lo and hi bounds.
21960while test "x$ac_lo" != "x$ac_hi"; do
21961 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
21962 cat >conftest.$ac_ext <<_ACEOF
21963/* confdefs.h. */
21964_ACEOF
21965cat confdefs.h >>conftest.$ac_ext
21966cat >>conftest.$ac_ext <<_ACEOF
21967/* end confdefs.h. */
2ba49b59 21968$ac_includes_default
5464f5a1
NN
21969int
21970main ()
21971{
2ba49b59
KC
21972static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21973test_array [0] = 0
21974
5464f5a1
NN
21975 ;
21976 return 0;
21977}
21978_ACEOF
21979rm -f conftest.$ac_objext
21980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21981 (eval $ac_compile) 2>conftest.er1
21982 ac_status=$?
21983 grep -v '^ *+' conftest.er1 >conftest.err
21984 rm -f conftest.er1
21985 cat conftest.err >&5
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } &&
7357c5b6
AM
21988 { ac_try='test -z "$ac_c_werror_flag"
21989 || test ! -s conftest.err'
5464f5a1
NN
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; } &&
21995 { ac_try='test -s conftest.$ac_objext'
21996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997 (eval $ac_try) 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; }; then
2ba49b59 22001 ac_hi=$ac_mid
1012372a 22002else
5464f5a1
NN
22003 echo "$as_me: failed program was:" >&5
22004sed 's/^/| /' conftest.$ac_ext >&5
22005
2ba49b59 22006ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 22007fi
5464f5a1 22008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 22009done
2ba49b59
KC
22010case $ac_lo in
22011?*) ac_cv_sizeof_off_t=$ac_lo;;
7357c5b6
AM
22012'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22013echo "$as_me: error: in \`$ac_pwd':" >&2;}
22014{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
2ba49b59
KC
22015See \`config.log' for more details." >&5
22016echo "$as_me: error: cannot compute sizeof (off_t), 77
22017See \`config.log' for more details." >&2;}
7357c5b6 22018 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
22019esac
22020else
22021 if test "$cross_compiling" = yes; then
7357c5b6
AM
22022 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22023echo "$as_me: error: in \`$ac_pwd':" >&2;}
22024{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22025See \`config.log' for more details." >&5
22026echo "$as_me: error: cannot run test program while cross compiling
22027See \`config.log' for more details." >&2;}
22028 { (exit 1); exit 1; }; }; }
2ba49b59
KC
22029else
22030 cat >conftest.$ac_ext <<_ACEOF
22031/* confdefs.h. */
22032_ACEOF
22033cat confdefs.h >>conftest.$ac_ext
22034cat >>conftest.$ac_ext <<_ACEOF
22035/* end confdefs.h. */
22036$ac_includes_default
22037long longval () { return (long) (sizeof (off_t)); }
22038unsigned long ulongval () { return (long) (sizeof (off_t)); }
22039#include <stdio.h>
22040#include <stdlib.h>
22041int
22042main ()
22043{
1012372a 22044
2ba49b59
KC
22045 FILE *f = fopen ("conftest.val", "w");
22046 if (! f)
22047 exit (1);
22048 if (((long) (sizeof (off_t))) < 0)
22049 {
22050 long i = longval ();
22051 if (i != ((long) (sizeof (off_t))))
22052 exit (1);
22053 fprintf (f, "%ld\n", i);
22054 }
22055 else
22056 {
22057 unsigned long i = ulongval ();
22058 if (i != ((long) (sizeof (off_t))))
22059 exit (1);
22060 fprintf (f, "%lu\n", i);
22061 }
22062 exit (ferror (f) || fclose (f) != 0);
22063
22064 ;
22065 return 0;
22066}
22067_ACEOF
22068rm -f conftest$ac_exeext
22069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22070 (eval $ac_link) 2>&5
22071 ac_status=$?
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22075 (eval $ac_try) 2>&5
22076 ac_status=$?
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); }; }; then
22079 ac_cv_sizeof_off_t=`cat conftest.val`
22080else
22081 echo "$as_me: program exited with status $ac_status" >&5
22082echo "$as_me: failed program was:" >&5
22083sed 's/^/| /' conftest.$ac_ext >&5
1012372a 22084
2ba49b59 22085( exit $ac_status )
7357c5b6
AM
22086{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22087echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
22088{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
22089See \`config.log' for more details." >&5
22090echo "$as_me: error: cannot compute sizeof (off_t), 77
22091See \`config.log' for more details." >&2;}
7357c5b6 22092 { (exit 1); exit 1; }; }; }
1012372a 22093fi
2ba49b59
KC
22094rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22095fi
22096fi
22097rm -f conftest.val
22098else
22099 ac_cv_sizeof_off_t=0
22100fi
22101fi
5464f5a1
NN
22102echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
22103echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 22104cat >>confdefs.h <<_ACEOF
1012372a 22105#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 22106_ACEOF
1012372a
AC
22107
22108
1012372a 22109fi
5464f5a1
NN
22110echo "$as_me:$LINENO: checking file_ptr type" >&5
22111echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
22112bfd_file_ptr="long"
22113bfd_ufile_ptr="unsigned long"
22114if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
22115 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
22116 bfd_file_ptr=BFD_HOST_64_BIT
22117 bfd_ufile_ptr=BFD_HOST_U_64_BIT
22118fi
5464f5a1
NN
22119echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
22120echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
22121
22122
22123
22124
252b5132
RH
22125tdefaults=""
22126test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
22127test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 22128test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
22129test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
22130test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
22131
6be7c12c 22132
5464f5a1
NN
22133
22134
22135for ac_header in stdlib.h unistd.h
252b5132 22136do
5464f5a1
NN
22137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22138if eval "test \"\${$as_ac_Header+set}\" = set"; then
22139 echo "$as_me:$LINENO: checking for $ac_header" >&5
22140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22141if eval "test \"\${$as_ac_Header+set}\" = set"; then
22142 echo $ECHO_N "(cached) $ECHO_C" >&6
22143fi
22144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22146else
22147 # Is the header compilable?
22148echo "$as_me:$LINENO: checking $ac_header usability" >&5
22149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22150cat >conftest.$ac_ext <<_ACEOF
22151/* confdefs.h. */
22152_ACEOF
22153cat confdefs.h >>conftest.$ac_ext
22154cat >>conftest.$ac_ext <<_ACEOF
22155/* end confdefs.h. */
22156$ac_includes_default
22157#include <$ac_header>
22158_ACEOF
22159rm -f conftest.$ac_objext
22160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22161 (eval $ac_compile) 2>conftest.er1
22162 ac_status=$?
22163 grep -v '^ *+' conftest.er1 >conftest.err
22164 rm -f conftest.er1
22165 cat conftest.err >&5
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); } &&
7357c5b6
AM
22168 { ac_try='test -z "$ac_c_werror_flag"
22169 || test ! -s conftest.err'
5464f5a1
NN
22170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171 (eval $ac_try) 2>&5
22172 ac_status=$?
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; } &&
22175 { ac_try='test -s conftest.$ac_objext'
22176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22177 (eval $ac_try) 2>&5
22178 ac_status=$?
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; }; then
22181 ac_header_compiler=yes
22182else
22183 echo "$as_me: failed program was:" >&5
22184sed 's/^/| /' conftest.$ac_ext >&5
22185
22186ac_header_compiler=no
22187fi
22188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22189echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22190echo "${ECHO_T}$ac_header_compiler" >&6
22191
22192# Is the header present?
22193echo "$as_me:$LINENO: checking $ac_header presence" >&5
22194echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22195cat >conftest.$ac_ext <<_ACEOF
22196/* confdefs.h. */
22197_ACEOF
22198cat confdefs.h >>conftest.$ac_ext
22199cat >>conftest.$ac_ext <<_ACEOF
22200/* end confdefs.h. */
22201#include <$ac_header>
22202_ACEOF
22203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22205 ac_status=$?
22206 grep -v '^ *+' conftest.er1 >conftest.err
22207 rm -f conftest.er1
22208 cat conftest.err >&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); } >/dev/null; then
22211 if test -s conftest.err; then
22212 ac_cpp_err=$ac_c_preproc_warn_flag
22213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22214 else
22215 ac_cpp_err=
22216 fi
252b5132 22217else
5464f5a1 22218 ac_cpp_err=yes
252b5132 22219fi
5464f5a1
NN
22220if test -z "$ac_cpp_err"; then
22221 ac_header_preproc=yes
22222else
22223 echo "$as_me: failed program was:" >&5
22224sed 's/^/| /' conftest.$ac_ext >&5
22225
22226 ac_header_preproc=no
252b5132 22227fi
5464f5a1
NN
22228rm -f conftest.err conftest.$ac_ext
22229echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22230echo "${ECHO_T}$ac_header_preproc" >&6
22231
22232# So? What about this header?
22233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22234 yes:no: )
22235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22236echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22238echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22239 ac_header_preproc=yes
22240 ;;
22241 no:yes:* )
22242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22243echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22245echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22247echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22249echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22253echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22254 (
22255 cat <<\_ASBOX
22256## ------------------------------------------ ##
22257## Report this to the AC_PACKAGE_NAME lists. ##
22258## ------------------------------------------ ##
22259_ASBOX
22260 ) |
22261 sed "s/^/$as_me: WARNING: /" >&2
22262 ;;
22263esac
22264echo "$as_me:$LINENO: checking for $ac_header" >&5
22265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22266if eval "test \"\${$as_ac_Header+set}\" = set"; then
22267 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 22268else
5464f5a1
NN
22269 eval "$as_ac_Header=\$ac_header_preproc"
22270fi
22271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22273
22274fi
22275if test `eval echo '${'$as_ac_Header'}'` = yes; then
22276 cat >>confdefs.h <<_ACEOF
22277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22278_ACEOF
22279
252b5132 22280fi
5464f5a1 22281
252b5132
RH
22282done
22283
5464f5a1 22284
252b5132
RH
22285for ac_func in getpagesize
22286do
5464f5a1
NN
22287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22288echo "$as_me:$LINENO: checking for $ac_func" >&5
22289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22290if eval "test \"\${$as_ac_var+set}\" = set"; then
22291 echo $ECHO_N "(cached) $ECHO_C" >&6
22292else
22293 cat >conftest.$ac_ext <<_ACEOF
22294/* confdefs.h. */
22295_ACEOF
22296cat confdefs.h >>conftest.$ac_ext
22297cat >>conftest.$ac_ext <<_ACEOF
22298/* end confdefs.h. */
22299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22301#define $ac_func innocuous_$ac_func
22302
252b5132 22303/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
22304 which can conflict with char $ac_func (); below.
22305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22306 <limits.h> exists even on freestanding compilers. */
22307
22308#ifdef __STDC__
22309# include <limits.h>
22310#else
22311# include <assert.h>
22312#endif
6be7c12c 22313
5464f5a1 22314#undef $ac_func
252b5132 22315
5464f5a1
NN
22316/* Override any gcc2 internal prototype to avoid an error. */
22317#ifdef __cplusplus
22318extern "C"
22319{
22320#endif
22321/* We use char because int might match the return type of a gcc2
22322 builtin and then its argument prototype would still apply. */
22323char $ac_func ();
252b5132
RH
22324/* The GNU C library defines this for functions which it implements
22325 to always fail with ENOSYS. Some functions are actually named
22326 something starting with __ and the normal name is an alias. */
22327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22328choke me
22329#else
5464f5a1
NN
22330char (*f) () = $ac_func;
22331#endif
22332#ifdef __cplusplus
22333}
252b5132
RH
22334#endif
22335
5464f5a1
NN
22336int
22337main ()
22338{
22339return f != $ac_func;
22340 ;
22341 return 0;
22342}
22343_ACEOF
22344rm -f conftest.$ac_objext conftest$ac_exeext
22345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22346 (eval $ac_link) 2>conftest.er1
22347 ac_status=$?
22348 grep -v '^ *+' conftest.er1 >conftest.err
22349 rm -f conftest.er1
22350 cat conftest.err >&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); } &&
7357c5b6
AM
22353 { ac_try='test -z "$ac_c_werror_flag"
22354 || test ! -s conftest.err'
5464f5a1
NN
22355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356 (eval $ac_try) 2>&5
22357 ac_status=$?
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); }; } &&
22360 { ac_try='test -s conftest$ac_exeext'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22363 ac_status=$?
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; }; then
22366 eval "$as_ac_var=yes"
22367else
22368 echo "$as_me: failed program was:" >&5
22369sed 's/^/| /' conftest.$ac_ext >&5
22370
22371eval "$as_ac_var=no"
22372fi
22373rm -f conftest.err conftest.$ac_objext \
22374 conftest$ac_exeext conftest.$ac_ext
22375fi
22376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22378if test `eval echo '${'$as_ac_var'}'` = yes; then
22379 cat >>confdefs.h <<_ACEOF
22380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22381_ACEOF
252b5132 22382
252b5132
RH
22383fi
22384done
22385
5464f5a1
NN
22386echo "$as_me:$LINENO: checking for working mmap" >&5
22387echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22388if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
22390else
22391 if test "$cross_compiling" = yes; then
22392 ac_cv_func_mmap_fixed_mapped=no
22393else
5464f5a1
NN
22394 cat >conftest.$ac_ext <<_ACEOF
22395/* confdefs.h. */
22396_ACEOF
22397cat confdefs.h >>conftest.$ac_ext
22398cat >>conftest.$ac_ext <<_ACEOF
22399/* end confdefs.h. */
22400$ac_includes_default
22401/* malloc might have been renamed as rpl_malloc. */
22402#undef malloc
6be7c12c 22403
252b5132
RH
22404/* Thanks to Mike Haertel and Jim Avera for this test.
22405 Here is a matrix of mmap possibilities:
22406 mmap private not fixed
22407 mmap private fixed at somewhere currently unmapped
22408 mmap private fixed at somewhere already mapped
22409 mmap shared not fixed
22410 mmap shared fixed at somewhere currently unmapped
22411 mmap shared fixed at somewhere already mapped
22412 For private mappings, we should verify that changes cannot be read()
22413 back from the file, nor mmap's back from the file at a different
22414 address. (There have been systems where private was not correctly
22415 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 22416 VM page cache was not coherent with the file system buffer cache
252b5132
RH
22417 like early versions of FreeBSD and possibly contemporary NetBSD.)
22418 For shared mappings, we should conversely verify that changes get
5464f5a1 22419 propagated back to all the places they're supposed to be.
252b5132
RH
22420
22421 Grep wants private fixed already mapped.
22422 The main things grep needs to know about mmap are:
22423 * does it exist and is it safe to write into the mmap'd area
22424 * how to use it (BSD variants) */
5464f5a1 22425
252b5132
RH
22426#include <fcntl.h>
22427#include <sys/mman.h>
22428
5464f5a1
NN
22429#if !STDC_HEADERS && !HAVE_STDLIB_H
22430char *malloc ();
22431#endif
6be7c12c 22432
5464f5a1
NN
22433/* This mess was copied from the GNU getpagesize.h. */
22434#if !HAVE_GETPAGESIZE
252b5132 22435/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 22436# if !HAVE_SYS_PARAM_H
252b5132
RH
22437# define HAVE_SYS_PARAM_H 1
22438# endif
22439
22440# ifdef _SC_PAGESIZE
22441# define getpagesize() sysconf(_SC_PAGESIZE)
22442# else /* no _SC_PAGESIZE */
5464f5a1 22443# if HAVE_SYS_PARAM_H
252b5132
RH
22444# include <sys/param.h>
22445# ifdef EXEC_PAGESIZE
22446# define getpagesize() EXEC_PAGESIZE
22447# else /* no EXEC_PAGESIZE */
22448# ifdef NBPG
22449# define getpagesize() NBPG * CLSIZE
22450# ifndef CLSIZE
22451# define CLSIZE 1
22452# endif /* no CLSIZE */
22453# else /* no NBPG */
22454# ifdef NBPC
22455# define getpagesize() NBPC
22456# else /* no NBPC */
22457# ifdef PAGESIZE
22458# define getpagesize() PAGESIZE
22459# endif /* PAGESIZE */
22460# endif /* no NBPC */
22461# endif /* no NBPG */
22462# endif /* no EXEC_PAGESIZE */
22463# else /* no HAVE_SYS_PARAM_H */
22464# define getpagesize() 8192 /* punt totally */
22465# endif /* no HAVE_SYS_PARAM_H */
22466# endif /* no _SC_PAGESIZE */
22467
5464f5a1
NN
22468#endif /* no HAVE_GETPAGESIZE */
22469
22470int
22471main ()
22472{
22473 char *data, *data2, *data3;
22474 int i, pagesize;
22475 int fd;
22476
22477 pagesize = getpagesize ();
22478
22479 /* First, make a file with some known garbage in it. */
22480 data = (char *) malloc (pagesize);
22481 if (!data)
22482 exit (1);
22483 for (i = 0; i < pagesize; ++i)
22484 *(data + i) = rand ();
22485 umask (0);
22486 fd = creat ("conftest.mmap", 0600);
22487 if (fd < 0)
22488 exit (1);
22489 if (write (fd, data, pagesize) != pagesize)
22490 exit (1);
22491 close (fd);
22492
22493 /* Next, try to mmap the file at a fixed address which already has
22494 something else allocated at it. If we can, also make sure that
22495 we see the same garbage. */
22496 fd = open ("conftest.mmap", O_RDWR);
22497 if (fd < 0)
22498 exit (1);
22499 data2 = (char *) malloc (2 * pagesize);
22500 if (!data2)
22501 exit (1);
22502 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22503 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22504 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22505 exit (1);
22506 for (i = 0; i < pagesize; ++i)
22507 if (*(data + i) != *(data2 + i))
22508 exit (1);
22509
22510 /* Finally, make sure that changes to the mapped area do not
22511 percolate back to the file as seen by read(). (This is a bug on
22512 some variants of i386 svr4.0.) */
22513 for (i = 0; i < pagesize; ++i)
22514 *(data2 + i) = *(data2 + i) + 1;
22515 data3 = (char *) malloc (pagesize);
22516 if (!data3)
22517 exit (1);
22518 if (read (fd, data3, pagesize) != pagesize)
22519 exit (1);
22520 for (i = 0; i < pagesize; ++i)
22521 if (*(data + i) != *(data3 + i))
22522 exit (1);
22523 close (fd);
22524 exit (0);
22525}
22526_ACEOF
22527rm -f conftest$ac_exeext
22528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22529 (eval $ac_link) 2>&5
22530 ac_status=$?
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22535 ac_status=$?
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 ac_cv_func_mmap_fixed_mapped=yes
22539else
22540 echo "$as_me: program exited with status $ac_status" >&5
22541echo "$as_me: failed program was:" >&5
22542sed 's/^/| /' conftest.$ac_ext >&5
22543
22544( exit $ac_status )
22545ac_cv_func_mmap_fixed_mapped=no
22546fi
22547rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22548fi
22549fi
22550echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22551echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22552if test $ac_cv_func_mmap_fixed_mapped = yes; then
22553
22554cat >>confdefs.h <<\_ACEOF
22555#define HAVE_MMAP 1
22556_ACEOF
22557
22558fi
22559rm -f conftest.mmap
22560
22561
22562
22563for ac_func in madvise mprotect
22564do
22565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22566echo "$as_me:$LINENO: checking for $ac_func" >&5
22567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22568if eval "test \"\${$as_ac_var+set}\" = set"; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22570else
22571 cat >conftest.$ac_ext <<_ACEOF
22572/* confdefs.h. */
22573_ACEOF
22574cat confdefs.h >>conftest.$ac_ext
22575cat >>conftest.$ac_ext <<_ACEOF
22576/* end confdefs.h. */
22577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22579#define $ac_func innocuous_$ac_func
22580
22581/* System header to define __stub macros and hopefully few prototypes,
22582 which can conflict with char $ac_func (); below.
22583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22584 <limits.h> exists even on freestanding compilers. */
22585
22586#ifdef __STDC__
22587# include <limits.h>
22588#else
22589# include <assert.h>
22590#endif
22591
22592#undef $ac_func
22593
22594/* Override any gcc2 internal prototype to avoid an error. */
22595#ifdef __cplusplus
22596extern "C"
22597{
22598#endif
22599/* We use char because int might match the return type of a gcc2
22600 builtin and then its argument prototype would still apply. */
22601char $ac_func ();
22602/* The GNU C library defines this for functions which it implements
22603 to always fail with ENOSYS. Some functions are actually named
22604 something starting with __ and the normal name is an alias. */
22605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22606choke me
22607#else
22608char (*f) () = $ac_func;
22609#endif
22610#ifdef __cplusplus
22611}
22612#endif
22613
22614int
22615main ()
22616{
22617return f != $ac_func;
22618 ;
22619 return 0;
22620}
22621_ACEOF
22622rm -f conftest.$ac_objext conftest$ac_exeext
22623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22624 (eval $ac_link) 2>conftest.er1
22625 ac_status=$?
22626 grep -v '^ *+' conftest.er1 >conftest.err
22627 rm -f conftest.er1
22628 cat conftest.err >&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); } &&
7357c5b6
AM
22631 { ac_try='test -z "$ac_c_werror_flag"
22632 || test ! -s conftest.err'
5464f5a1
NN
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; } &&
22638 { ac_try='test -s conftest$ac_exeext'
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }; then
22644 eval "$as_ac_var=yes"
22645else
22646 echo "$as_me: failed program was:" >&5
22647sed 's/^/| /' conftest.$ac_ext >&5
22648
22649eval "$as_ac_var=no"
22650fi
22651rm -f conftest.err conftest.$ac_objext \
22652 conftest$ac_exeext conftest.$ac_ext
22653fi
22654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22655echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22656if test `eval echo '${'$as_ac_var'}'` = yes; then
22657 cat >>confdefs.h <<_ACEOF
22658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22659_ACEOF
22660
22661fi
22662done
22663
22664case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
22665 true+yes )
22666cat >>confdefs.h <<\_ACEOF
22667#define USE_MMAP 1
22668_ACEOF
22669 ;;
22670esac
22671
22672rm -f doc/config.status
22673 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
22674
20e95c23 22675
5464f5a1
NN
22676 ac_config_commands="$ac_config_commands default"
22677
108a6f8e
CD
22678
22679
22680
22681
22682
31dd3154 22683
5464f5a1
NN
22684cat >confcache <<\_ACEOF
22685# This file is a shell script that caches the results of configure
22686# tests run on this system so they can be shared between configure
22687# scripts and configure runs, see configure's option --config-cache.
22688# It is not useful on other systems. If it contains results you don't
22689# want to keep, you may remove or edit it.
22690#
22691# config.status only pays attention to the cache file if you give it
22692# the --recheck option to rerun configure.
22693#
22694# `ac_cv_env_foo' variables (set or unset) will be overridden when
22695# loading this file, other *unset* `ac_cv_foo' will be assigned the
22696# following values.
22697
22698_ACEOF
22699
22700# The following way of writing the cache mishandles newlines in values,
22701# but we know of no workaround that is simple, portable, and efficient.
22702# So, don't put newlines in cache variables' values.
22703# Ultrix sh set writes to stderr and can't be redirected directly,
22704# and sets the high bit in the cache file unless we assign to the vars.
22705{
22706 (set) 2>&1 |
22707 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22708 *ac_space=\ *)
22709 # `set' does not quote correctly, so add quotes (double-quote
22710 # substitution turns \\\\ into \\, and sed turns \\ into \).
22711 sed -n \
22712 "s/'/'\\\\''/g;
22713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22714 ;;
22715 *)
22716 # `set' quotes correctly as required by POSIX, so do not add quotes.
22717 sed -n \
22718 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22719 ;;
22720 esac;
22721} |
22722 sed '
22723 t clear
22724 : clear
22725 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22726 t end
22727 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22728 : end' >>confcache
22729if diff $cache_file confcache >/dev/null 2>&1; then :; else
22730 if test -w $cache_file; then
22731 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22732 cat confcache >$cache_file
22733 else
22734 echo "not updating unwritable cache $cache_file"
22735 fi
22736fi
22737rm -f confcache
22738
22739test "x$prefix" = xNONE && prefix=$ac_default_prefix
22740# Let make expand exec_prefix.
22741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22742
22743# VPATH may cause trouble with some makes, so we remove $(srcdir),
22744# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22745# trailing colons and then remove the whole line if VPATH becomes empty
22746# (actually we leave an empty line to preserve line numbers).
22747if test "x$srcdir" = x.; then
22748 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22749s/:*\$(srcdir):*/:/;
22750s/:*\${srcdir}:*/:/;
22751s/:*@srcdir@:*/:/;
22752s/^\([^=]*=[ ]*\):*/\1/;
22753s/:*$//;
22754s/^[^=]*=[ ]*$//;
22755}'
22756fi
22757
22758DEFS=-DHAVE_CONFIG_H
22759
22760ac_libobjs=
22761ac_ltlibobjs=
22762for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22763 # 1. Remove the extension, and $U if already installed.
22764 ac_i=`echo "$ac_i" |
22765 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22766 # 2. Add them.
22767 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22768 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22769done
22770LIBOBJS=$ac_libobjs
22771
22772LTLIBOBJS=$ac_ltlibobjs
22773
22774
f5385ebf
AM
22775if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22776 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22777Usually this means the macro was only invoked conditionally." >&5
22778echo "$as_me: error: conditional \"AMDEP\" was never defined.
22779Usually this means the macro was only invoked conditionally." >&2;}
22780 { (exit 1); exit 1; }; }
22781fi
22782if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22783 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22784Usually this means the macro was only invoked conditionally." >&5
22785echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22786Usually this means the macro was only invoked conditionally." >&2;}
22787 { (exit 1); exit 1; }; }
22788fi
ce3c775b
NC
22789if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
22790 { { echo "$as_me:$LINENO: error: conditional \"PLUGINS\" was never defined.
22791Usually this means the macro was only invoked conditionally." >&5
22792echo "$as_me: error: conditional \"PLUGINS\" was never defined.
22793Usually this means the macro was only invoked conditionally." >&2;}
22794 { (exit 1); exit 1; }; }
22795fi
f5385ebf
AM
22796if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22797 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22798Usually this means the macro was only invoked conditionally." >&5
22799echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22800Usually this means the macro was only invoked conditionally." >&2;}
22801 { (exit 1); exit 1; }; }
22802fi
d5fbea21
DJ
22803if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
22804 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
22805Usually this means the macro was only invoked conditionally." >&5
22806echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
22807Usually this means the macro was only invoked conditionally." >&2;}
22808 { (exit 1); exit 1; }; }
22809fi
f5385ebf
AM
22810if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
22811 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
22812Usually this means the macro was only invoked conditionally." >&5
22813echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
22814Usually this means the macro was only invoked conditionally." >&2;}
22815 { (exit 1); exit 1; }; }
22816fi
5464f5a1
NN
22817
22818: ${CONFIG_STATUS=./config.status}
22819ac_clean_files_save=$ac_clean_files
22820ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22821{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22822echo "$as_me: creating $CONFIG_STATUS" >&6;}
22823cat >$CONFIG_STATUS <<_ACEOF
22824#! $SHELL
22825# Generated by $as_me.
22826# Run this file to recreate the current configuration.
22827# Compiler output produced by configure, useful for debugging
22828# configure, is in config.log if it exists.
22829
22830debug=false
22831ac_cs_recheck=false
22832ac_cs_silent=false
22833SHELL=\${CONFIG_SHELL-$SHELL}
22834_ACEOF
22835
22836cat >>$CONFIG_STATUS <<\_ACEOF
22837## --------------------- ##
22838## M4sh Initialization. ##
22839## --------------------- ##
22840
22841# Be Bourne compatible
22842if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22843 emulate sh
22844 NULLCMD=:
22845 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22846 # is contrary to our usage. Disable this feature.
22847 alias -g '${1+"$@"}'='"$@"'
22848elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22849 set -o posix
22850fi
22851DUALCASE=1; export DUALCASE # for MKS sh
22852
22853# Support unset when possible.
22854if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22855 as_unset=unset
22856else
22857 as_unset=false
22858fi
22859
22860
22861# Work around bugs in pre-3.0 UWIN ksh.
22862$as_unset ENV MAIL MAILPATH
22863PS1='$ '
22864PS2='> '
22865PS4='+ '
22866
22867# NLS nuisances.
22868for as_var in \
22869 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22870 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22871 LC_TELEPHONE LC_TIME
22872do
22873 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22874 eval $as_var=C; export $as_var
22875 else
22876 $as_unset $as_var
22877 fi
22878done
22879
22880# Required to use basename.
22881if expr a : '\(a\)' >/dev/null 2>&1; then
22882 as_expr=expr
22883else
22884 as_expr=false
22885fi
22886
22887if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22888 as_basename=basename
22889else
22890 as_basename=false
22891fi
252b5132 22892
6be7c12c 22893
5464f5a1
NN
22894# Name of the executable.
22895as_me=`$as_basename "$0" ||
22896$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22897 X"$0" : 'X\(//\)$' \| \
22898 X"$0" : 'X\(/\)$' \| \
22899 . : '\(.\)' 2>/dev/null ||
22900echo X/"$0" |
22901 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22902 /^X\/\(\/\/\)$/{ s//\1/; q; }
22903 /^X\/\(\/\).*/{ s//\1/; q; }
22904 s/.*/./; q'`
22905
22906
22907# PATH needs CR, and LINENO needs CR and PATH.
22908# Avoid depending upon Character Ranges.
22909as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22910as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22911as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22912as_cr_digits='0123456789'
22913as_cr_alnum=$as_cr_Letters$as_cr_digits
22914
22915# The user is always right.
22916if test "${PATH_SEPARATOR+set}" != set; then
22917 echo "#! /bin/sh" >conf$$.sh
22918 echo "exit 0" >>conf$$.sh
22919 chmod +x conf$$.sh
22920 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22921 PATH_SEPARATOR=';'
22922 else
22923 PATH_SEPARATOR=:
22924 fi
22925 rm -f conf$$.sh
22926fi
22927
22928
22929 as_lineno_1=$LINENO
22930 as_lineno_2=$LINENO
22931 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22932 test "x$as_lineno_1" != "x$as_lineno_2" &&
22933 test "x$as_lineno_3" = "x$as_lineno_2" || {
22934 # Find who we are. Look in the path if we contain no path at all
22935 # relative or not.
22936 case $0 in
22937 *[\\/]* ) as_myself=$0 ;;
22938 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22939for as_dir in $PATH
22940do
22941 IFS=$as_save_IFS
22942 test -z "$as_dir" && as_dir=.
22943 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22944done
22945
22946 ;;
22947 esac
22948 # We did not find ourselves, most probably we were run as `sh COMMAND'
22949 # in which case we are not to be found in the path.
22950 if test "x$as_myself" = x; then
22951 as_myself=$0
22952 fi
22953 if test ! -f "$as_myself"; then
22954 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22955echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22956 { (exit 1); exit 1; }; }
22957 fi
22958 case $CONFIG_SHELL in
22959 '')
22960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22961for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22962do
22963 IFS=$as_save_IFS
22964 test -z "$as_dir" && as_dir=.
22965 for as_base in sh bash ksh sh5; do
22966 case $as_dir in
22967 /*)
22968 if ("$as_dir/$as_base" -c '
22969 as_lineno_1=$LINENO
22970 as_lineno_2=$LINENO
22971 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22972 test "x$as_lineno_1" != "x$as_lineno_2" &&
22973 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22974 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22975 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22976 CONFIG_SHELL=$as_dir/$as_base
22977 export CONFIG_SHELL
22978 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22979 fi;;
22980 esac
22981 done
22982done
22983;;
22984 esac
22985
22986 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22987 # uniformly replaced by the line number. The first 'sed' inserts a
22988 # line-number line before each line; the second 'sed' does the real
22989 # work. The second script uses 'N' to pair each line-number line
22990 # with the numbered line, and appends trailing '-' during
22991 # substitution so that $LINENO is not a special case at line end.
22992 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22993 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22994 sed '=' <$as_myself |
22995 sed '
22996 N
22997 s,$,-,
22998 : loop
22999 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23000 t loop
23001 s,-$,,
23002 s,^['$as_cr_digits']*\n,,
23003 ' >$as_me.lineno &&
23004 chmod +x $as_me.lineno ||
23005 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23006echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23007 { (exit 1); exit 1; }; }
23008
23009 # Don't try to exec as it changes $[0], causing all sort of problems
23010 # (the dirname of $[0] is not the place where we might find the
23011 # original and so on. Autoconf is especially sensible to this).
23012 . ./$as_me.lineno
23013 # Exit status is that of the last command.
23014 exit
252b5132 23015}
6be7c12c 23016
5464f5a1
NN
23017
23018case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23019 *c*,-n*) ECHO_N= ECHO_C='
23020' ECHO_T=' ' ;;
23021 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23022 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23023esac
23024
23025if expr a : '\(a\)' >/dev/null 2>&1; then
23026 as_expr=expr
252b5132 23027else
5464f5a1 23028 as_expr=false
252b5132 23029fi
5464f5a1
NN
23030
23031rm -f conf$$ conf$$.exe conf$$.file
23032echo >conf$$.file
23033if ln -s conf$$.file conf$$ 2>/dev/null; then
23034 # We could just check for DJGPP; but this test a) works b) is more generic
23035 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23036 if test -f conf$$.exe; then
23037 # Don't use ln at all; we don't have any links
23038 as_ln_s='cp -p'
23039 else
23040 as_ln_s='ln -s'
23041 fi
23042elif ln conf$$.file conf$$ 2>/dev/null; then
23043 as_ln_s=ln
23044else
23045 as_ln_s='cp -p'
252b5132 23046fi
5464f5a1 23047rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 23048
5464f5a1
NN
23049if mkdir -p . 2>/dev/null; then
23050 as_mkdir_p=:
23051else
23052 test -d ./-p && rmdir ./-p
23053 as_mkdir_p=false
252b5132 23054fi
b3baf5d0 23055
5464f5a1 23056as_executable_p="test -f"
252b5132 23057
5464f5a1
NN
23058# Sed expression to map a string onto a valid CPP name.
23059as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 23060
5464f5a1
NN
23061# Sed expression to map a string onto a valid variable name.
23062as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 23063
252b5132 23064
5464f5a1
NN
23065# IFS
23066# We need space, tab and new line, in precisely that order.
23067as_nl='
23068'
23069IFS=" $as_nl"
252b5132 23070
5464f5a1
NN
23071# CDPATH.
23072$as_unset CDPATH
23073
23074exec 6>&1
23075
23076# Open the log real soon, to keep \$[0] and so on meaningful, and to
23077# report actual input values of CONFIG_FILES etc. instead of their
23078# values after options handling. Logging --version etc. is OK.
23079exec 5>>config.log
23080{
23081 echo
23082 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23083## Running $as_me. ##
23084_ASBOX
23085} >&5
23086cat >&5 <<_CSEOF
23087
23088This file was extended by $as_me, which was
23089generated by GNU Autoconf 2.59. Invocation command line was
23090
23091 CONFIG_FILES = $CONFIG_FILES
23092 CONFIG_HEADERS = $CONFIG_HEADERS
23093 CONFIG_LINKS = $CONFIG_LINKS
23094 CONFIG_COMMANDS = $CONFIG_COMMANDS
23095 $ $0 $@
23096
23097_CSEOF
23098echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23099echo >&5
23100_ACEOF
23101
23102# Files that config.status was made for.
23103if test -n "$ac_config_files"; then
23104 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 23105fi
5464f5a1
NN
23106
23107if test -n "$ac_config_headers"; then
23108 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 23109fi
252b5132 23110
5464f5a1
NN
23111if test -n "$ac_config_links"; then
23112 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 23113fi
252b5132 23114
5464f5a1
NN
23115if test -n "$ac_config_commands"; then
23116 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23117fi
252b5132 23118
5464f5a1
NN
23119cat >>$CONFIG_STATUS <<\_ACEOF
23120
23121ac_cs_usage="\
23122\`$as_me' instantiates files from templates according to the
23123current configuration.
23124
23125Usage: $0 [OPTIONS] [FILE]...
23126
23127 -h, --help print this help, then exit
23128 -V, --version print version number, then exit
23129 -q, --quiet do not print progress messages
23130 -d, --debug don't remove temporary files
23131 --recheck update $as_me by reconfiguring in the same conditions
23132 --file=FILE[:TEMPLATE]
23133 instantiate the configuration file FILE
23134 --header=FILE[:TEMPLATE]
23135 instantiate the configuration header FILE
23136
23137Configuration files:
23138$config_files
23139
23140Configuration headers:
23141$config_headers
23142
23143Configuration commands:
23144$config_commands
23145
23146Report bugs to <bug-autoconf@gnu.org>."
23147_ACEOF
23148
23149cat >>$CONFIG_STATUS <<_ACEOF
23150ac_cs_version="\\
23151config.status
23152configured by $0, generated by GNU Autoconf 2.59,
23153 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23154
23155Copyright (C) 2003 Free Software Foundation, Inc.
23156This config.status script is free software; the Free Software Foundation
23157gives unlimited permission to copy, distribute and modify it."
23158srcdir=$srcdir
23159INSTALL="$INSTALL"
23160_ACEOF
23161
23162cat >>$CONFIG_STATUS <<\_ACEOF
23163# If no file are specified by the user, then we need to provide default
23164# value. By we need to know if files were specified by the user.
23165ac_need_defaults=:
23166while test $# != 0
23167do
23168 case $1 in
23169 --*=*)
23170 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23171 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23172 ac_shift=:
6be7c12c 23173 ;;
5464f5a1
NN
23174 -*)
23175 ac_option=$1
23176 ac_optarg=$2
23177 ac_shift=shift
6be7c12c 23178 ;;
5464f5a1
NN
23179 *) # This is not an option, so the user has probably given explicit
23180 # arguments.
23181 ac_option=$1
23182 ac_need_defaults=false;;
23183 esac
252b5132 23184
5464f5a1
NN
23185 case $ac_option in
23186 # Handling of the options.
23187_ACEOF
23188cat >>$CONFIG_STATUS <<\_ACEOF
23189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23190 ac_cs_recheck=: ;;
23191 --version | --vers* | -V )
23192 echo "$ac_cs_version"; exit 0 ;;
23193 --he | --h)
23194 # Conflict between --help and --header
23195 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23196Try \`$0 --help' for more information." >&5
23197echo "$as_me: error: ambiguous option: $1
23198Try \`$0 --help' for more information." >&2;}
23199 { (exit 1); exit 1; }; };;
23200 --help | --hel | -h )
23201 echo "$ac_cs_usage"; exit 0 ;;
23202 --debug | --d* | -d )
23203 debug=: ;;
23204 --file | --fil | --fi | --f )
23205 $ac_shift
23206 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23207 ac_need_defaults=false;;
23208 --header | --heade | --head | --hea )
23209 $ac_shift
23210 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23211 ac_need_defaults=false;;
23212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23213 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23214 ac_cs_silent=: ;;
6be7c12c 23215
5464f5a1
NN
23216 # This is an error.
23217 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23218Try \`$0 --help' for more information." >&5
23219echo "$as_me: error: unrecognized option: $1
23220Try \`$0 --help' for more information." >&2;}
23221 { (exit 1); exit 1; }; } ;;
252b5132 23222
5464f5a1 23223 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 23224
5464f5a1
NN
23225 esac
23226 shift
23227done
6be7c12c 23228
5464f5a1 23229ac_configure_extra_args=
252b5132 23230
5464f5a1
NN
23231if $ac_cs_silent; then
23232 exec 6>/dev/null
23233 ac_configure_extra_args="$ac_configure_extra_args --silent"
23234fi
6be7c12c 23235
5464f5a1
NN
23236_ACEOF
23237cat >>$CONFIG_STATUS <<_ACEOF
23238if \$ac_cs_recheck; then
23239 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23240 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23241fi
23242
23243_ACEOF
23244
23245cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 23246#
5464f5a1 23247# INIT-COMMANDS section.
6be7c12c 23248#
b3baf5d0 23249
f5385ebf 23250AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
23251
23252
23253# The HP-UX ksh and POSIX shell print the target directory to stdout
23254# if CDPATH is set.
23255(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23256
23257sed_quote_subst='$sed_quote_subst'
23258double_quote_subst='$double_quote_subst'
23259delay_variable_subst='$delay_variable_subst'
23260enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
23261macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
23262macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
23263enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
23264pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
23265enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
23266host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
23267host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
23268host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
23269build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
23270build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
23271build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
23272SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
23273Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
23274GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
23275EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
23276FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
23277LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
23278NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
23279LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
23280max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
23281ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
23282exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
23283lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
23284lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
23285lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
23286reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
23287reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 23288OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
23289deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
23290file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
23291AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
23292AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23293STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
23294RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
23295old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23296old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23297old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23298CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
23299CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23300compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
23301GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
23302lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
23303lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
23304lt_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 23305lt_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
23306objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
23307SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
23308ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
23309MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
23310lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
23311lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
23312lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
23313lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
23314lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
23315need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8
SE
23316DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
23317NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
23318LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
23319OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23320OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
23321libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
23322shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23323extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23324archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
23325enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
23326export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23327whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23328compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
23329old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23330old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23331archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23332archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23333module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23334module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23335with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
23336allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23337no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23338hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23339hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23340hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23341hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23342hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23343hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23344hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23345hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23346inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23347link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23348fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23349always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23350export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23351exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23352include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23353prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23354file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23355variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23356need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23357need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23358version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23359runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23360shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23361shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23362libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23363library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
23364soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23365postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23366postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23367finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23368finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
23369hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
23370sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23371sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23372hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
23373enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
23374enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
23375enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
23376old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
23377striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
23378
23379LTCC='$LTCC'
23380LTCFLAGS='$LTCFLAGS'
23381compiler='$compiler_DEFAULT'
23382
23383# Quote evaled strings.
23384for var in SED \
23385GREP \
23386EGREP \
23387FGREP \
23388LD \
23389NM \
23390LN_S \
23391lt_SP2NL \
23392lt_NL2SP \
23393reload_flag \
718a6fd8 23394OBJDUMP \
d7040cdb
SE
23395deplibs_check_method \
23396file_magic_cmd \
23397AR \
23398AR_FLAGS \
23399STRIP \
23400RANLIB \
23401CC \
23402CFLAGS \
23403compiler \
23404lt_cv_sys_global_symbol_pipe \
23405lt_cv_sys_global_symbol_to_cdecl \
23406lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 23407lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
23408SHELL \
23409ECHO \
23410lt_prog_compiler_no_builtin_flag \
23411lt_prog_compiler_wl \
23412lt_prog_compiler_pic \
23413lt_prog_compiler_static \
23414lt_cv_prog_compiler_c_o \
23415need_locks \
718a6fd8
SE
23416DSYMUTIL \
23417NMEDIT \
23418LIPO \
23419OTOOL \
23420OTOOL64 \
d7040cdb
SE
23421shrext_cmds \
23422export_dynamic_flag_spec \
23423whole_archive_flag_spec \
23424compiler_needs_object \
23425with_gnu_ld \
23426allow_undefined_flag \
23427no_undefined_flag \
23428hardcode_libdir_flag_spec \
23429hardcode_libdir_flag_spec_ld \
23430hardcode_libdir_separator \
23431fix_srcfile_path \
23432exclude_expsyms \
23433include_expsyms \
23434file_list_spec \
23435variables_saved_for_relink \
23436libname_spec \
23437library_names_spec \
23438soname_spec \
23439finish_eval \
23440old_striplib \
23441striplib; do
23442 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23443 *[\\\\\\\`\\"\\\$]*)
23444 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23445 ;;
23446 *)
23447 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23448 ;;
23449 esac
23450done
23451
23452# Double-quote double-evaled strings.
23453for var in reload_cmds \
23454old_postinstall_cmds \
23455old_postuninstall_cmds \
23456old_archive_cmds \
23457extract_expsyms_cmds \
23458old_archive_from_new_cmds \
23459old_archive_from_expsyms_cmds \
23460archive_cmds \
23461archive_expsym_cmds \
23462module_cmds \
23463module_expsym_cmds \
23464export_symbols_cmds \
23465prelink_cmds \
23466postinstall_cmds \
23467postuninstall_cmds \
23468finish_cmds \
23469sys_lib_search_path_spec \
23470sys_lib_dlsearch_path_spec; do
23471 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23472 *[\\\\\\\`\\"\\\$]*)
23473 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23474 ;;
23475 *)
23476 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23477 ;;
23478 esac
23479done
23480
23481# Fix-up fallback echo if it was mangled by the above quoting rules.
23482case \$lt_ECHO in
23483*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23484 ;;
23485esac
23486
23487ac_aux_dir='$ac_aux_dir'
23488xsi_shell='$xsi_shell'
23489lt_shell_append='$lt_shell_append'
23490
23491# See if we are running on zsh, and set the options which allow our
23492# commands through without removal of \ escapes INIT.
23493if test -n "\${ZSH_VERSION+set}" ; then
23494 setopt NO_GLOB_SUBST
23495fi
23496
23497
23498 PACKAGE='$PACKAGE'
23499 VERSION='$VERSION'
23500 TIMESTAMP='$TIMESTAMP'
23501 RM='$RM'
23502 ofile='$ofile'
23503
23504
23505
20e95c23
DJ
23506# Capture the value of obsolete ALL_LINGUAS because we need it to compute
23507 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
23508 # from automake.
23509 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23510 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23511 LINGUAS="${LINGUAS-%UNSET%}"
23512
5464f5a1 23513
d5efd9fc
AM
23514GCC="$GCC"
23515CC="$CC"
23516acx_cv_header_stdint="$acx_cv_header_stdint"
23517acx_cv_type_int8_t="$acx_cv_type_int8_t"
23518acx_cv_type_int16_t="$acx_cv_type_int16_t"
23519acx_cv_type_int32_t="$acx_cv_type_int32_t"
23520acx_cv_type_int64_t="$acx_cv_type_int64_t"
23521acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23522ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23523ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23524ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23525ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23526ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23527ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23528ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23529ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23530
23531
5464f5a1
NN
23532
23533_ACEOF
23534
23535
23536
23537cat >>$CONFIG_STATUS <<\_ACEOF
23538for ac_config_target in $ac_config_targets
252b5132 23539do
5464f5a1
NN
23540 case "$ac_config_target" in
23541 # Handling of arguments.
23542 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23543 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23544 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
23545 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 23546 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 23547 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 23548 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 23549 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
23550 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23551 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23552 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23553echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23554 { (exit 1); exit 1; }; };;
252b5132
RH
23555 esac
23556done
23557
5464f5a1
NN
23558# If the user did not use the arguments to specify the items to instantiate,
23559# then the envvar interface is used. Set only those that are not.
23560# We use the long form for the default assignment because of an extremely
23561# bizarre bug on SunOS 4.1.3.
23562if $ac_need_defaults; then
23563 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23564 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23565 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23566fi
23567
23568# Have a temporary directory for convenience. Make it in the build tree
23569# simply because there is no reason to put it here, and in addition,
23570# creating and moving files from /tmp can sometimes cause problems.
23571# Create a temporary directory, and hook for its removal unless debugging.
23572$debug ||
23573{
23574 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23575 trap '{ (exit 1); exit 1; }' 1 2 13 15
23576}
b3baf5d0 23577
5464f5a1 23578# Create a (secure) tmp directory for tmp files.
b3baf5d0 23579
5464f5a1
NN
23580{
23581 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23582 test -n "$tmp" && test -d "$tmp"
23583} ||
23584{
23585 tmp=./confstat$$-$RANDOM
23586 (umask 077 && mkdir $tmp)
23587} ||
23588{
23589 echo "$me: cannot create a temporary directory in ." >&2
23590 { (exit 1); exit 1; }
23591}
23592
23593_ACEOF
23594
23595cat >>$CONFIG_STATUS <<_ACEOF
23596
23597#
23598# CONFIG_FILES section.
23599#
b3baf5d0 23600
5464f5a1
NN
23601# No need to generate the scripts if there are no CONFIG_FILES.
23602# This happens for instance when ./config.status config.h
23603if test -n "\$CONFIG_FILES"; then
23604 # Protect against being on the right side of a sed subst in config.status.
23605 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23606 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23607s,@SHELL@,$SHELL,;t t
23608s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23609s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23610s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23611s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23612s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23613s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23614s,@exec_prefix@,$exec_prefix,;t t
23615s,@prefix@,$prefix,;t t
23616s,@program_transform_name@,$program_transform_name,;t t
23617s,@bindir@,$bindir,;t t
23618s,@sbindir@,$sbindir,;t t
23619s,@libexecdir@,$libexecdir,;t t
23620s,@datadir@,$datadir,;t t
23621s,@sysconfdir@,$sysconfdir,;t t
23622s,@sharedstatedir@,$sharedstatedir,;t t
23623s,@localstatedir@,$localstatedir,;t t
23624s,@libdir@,$libdir,;t t
23625s,@includedir@,$includedir,;t t
23626s,@oldincludedir@,$oldincludedir,;t t
23627s,@infodir@,$infodir,;t t
23628s,@mandir@,$mandir,;t t
23629s,@build_alias@,$build_alias,;t t
23630s,@host_alias@,$host_alias,;t t
23631s,@target_alias@,$target_alias,;t t
23632s,@DEFS@,$DEFS,;t t
23633s,@ECHO_C@,$ECHO_C,;t t
23634s,@ECHO_N@,$ECHO_N,;t t
23635s,@ECHO_T@,$ECHO_T,;t t
23636s,@LIBS@,$LIBS,;t t
23637s,@build@,$build,;t t
23638s,@build_cpu@,$build_cpu,;t t
23639s,@build_vendor@,$build_vendor,;t t
23640s,@build_os@,$build_os,;t t
23641s,@host@,$host,;t t
23642s,@host_cpu@,$host_cpu,;t t
23643s,@host_vendor@,$host_vendor,;t t
23644s,@host_os@,$host_os,;t t
23645s,@target@,$target,;t t
23646s,@target_cpu@,$target_cpu,;t t
23647s,@target_vendor@,$target_vendor,;t t
23648s,@target_os@,$target_os,;t t
23649s,@CC@,$CC,;t t
23650s,@CFLAGS@,$CFLAGS,;t t
23651s,@LDFLAGS@,$LDFLAGS,;t t
23652s,@CPPFLAGS@,$CPPFLAGS,;t t
23653s,@ac_ct_CC@,$ac_ct_CC,;t t
23654s,@EXEEXT@,$EXEEXT,;t t
23655s,@OBJEXT@,$OBJEXT,;t t
23656s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23657s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23658s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 23659s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
23660s,@PACKAGE@,$PACKAGE,;t t
23661s,@VERSION@,$VERSION,;t t
23662s,@ACLOCAL@,$ACLOCAL,;t t
23663s,@AUTOCONF@,$AUTOCONF,;t t
23664s,@AUTOMAKE@,$AUTOMAKE,;t t
23665s,@AUTOHEADER@,$AUTOHEADER,;t t
23666s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
23667s,@install_sh@,$install_sh,;t t
23668s,@STRIP@,$STRIP,;t t
23669s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23670s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23671s,@mkdir_p@,$mkdir_p,;t t
23672s,@AWK@,$AWK,;t t
5464f5a1 23673s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
23674s,@am__leading_dot@,$am__leading_dot,;t t
23675s,@AMTAR@,$AMTAR,;t t
23676s,@am__tar@,$am__tar,;t t
23677s,@am__untar@,$am__untar,;t t
23678s,@DEPDIR@,$DEPDIR,;t t
23679s,@am__include@,$am__include,;t t
23680s,@am__quote@,$am__quote,;t t
23681s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23682s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23683s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23684s,@CCDEPMODE@,$CCDEPMODE,;t t
23685s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23686s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
23687s,@AR@,$AR,;t t
23688s,@ac_ct_AR@,$ac_ct_AR,;t t
23689s,@RANLIB@,$RANLIB,;t t
23690s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7357c5b6
AM
23691s,@CPP@,$CPP,;t t
23692s,@EGREP@,$EGREP,;t t
5464f5a1 23693s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb 23694s,@SED@,$SED,;t t
d7040cdb
SE
23695s,@FGREP@,$FGREP,;t t
23696s,@GREP@,$GREP,;t t
23697s,@LD@,$LD,;t t
23698s,@DUMPBIN@,$DUMPBIN,;t t
23699s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23700s,@NM@,$NM,;t t
23701s,@LN_S@,$LN_S,;t t
718a6fd8
SE
23702s,@OBJDUMP@,$OBJDUMP,;t t
23703s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
d7040cdb 23704s,@lt_ECHO@,$lt_ECHO,;t t
718a6fd8
SE
23705s,@DSYMUTIL@,$DSYMUTIL,;t t
23706s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
23707s,@NMEDIT@,$NMEDIT,;t t
23708s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
23709s,@LIPO@,$LIPO,;t t
23710s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
23711s,@OTOOL@,$OTOOL,;t t
23712s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
23713s,@OTOOL64@,$OTOOL64,;t t
23714s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
ce3c775b
NC
23715s,@PLUGINS_TRUE@,$PLUGINS_TRUE,;t t
23716s,@PLUGINS_FALSE@,$PLUGINS_FALSE,;t t
0d4a1476 23717s,@DEBUGDIR@,$DEBUGDIR,;t t
92f01d61 23718s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
23719s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23720s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 23721s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 23722s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
23723s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23724s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23725s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
23726s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
23727s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
23728s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
23729s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
23730s,@host_noncanonical@,$host_noncanonical,;t t
23731s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
23732s,@bfdlibdir@,$bfdlibdir,;t t
23733s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 23734s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
23735s,@LIBINTL@,$LIBINTL,;t t
23736s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23737s,@INCINTL@,$INCINTL,;t t
5464f5a1 23738s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
23739s,@GMSGFMT@,$GMSGFMT,;t t
23740s,@POSUB@,$POSUB,;t t
5464f5a1 23741s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 23742s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 23743s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
23744s,@GENCAT@,$GENCAT,;t t
23745s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 23746s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
23747s,@MSGFMT@,$MSGFMT,;t t
23748s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
23749s,@HDEFINES@,$HDEFINES,;t t
23750s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
d2df793a 23751s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
5464f5a1
NN
23752s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
23753s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
23754s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
d2df793a 23755s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
5464f5a1
NN
23756s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23757s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
23758s,@COREFILE@,$COREFILE,;t t
23759s,@COREFLAG@,$COREFLAG,;t t
51dec227 23760s,@LIBM@,$LIBM,;t t
29670fb9
AM
23761s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
23762s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
5464f5a1
NN
23763s,@TDEFINES@,$TDEFINES,;t t
23764s,@wordsize@,$wordsize,;t t
21e40a48 23765s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
23766s,@all_backends@,$all_backends,;t t
23767s,@bfd_backends@,$bfd_backends,;t t
23768s,@bfd_machines@,$bfd_machines,;t t
23769s,@bfd_default_target_size@,$bfd_default_target_size,;t t
ce3c775b 23770s,@supports_plugins@,$supports_plugins,;t t
5464f5a1
NN
23771s,@bfd_file_ptr@,$bfd_file_ptr,;t t
23772s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
23773s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
23774s,@datarootdir@,$datarootdir,;t t
23775s,@docdir@,$docdir,;t t
23776s,@htmldir@,$htmldir,;t t
31dd3154 23777s,@pdfdir@,$pdfdir,;t t
5464f5a1
NN
23778s,@LIBOBJS@,$LIBOBJS,;t t
23779s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 23780CEOF
252b5132 23781
5464f5a1
NN
23782_ACEOF
23783
23784 cat >>$CONFIG_STATUS <<\_ACEOF
23785 # Split the substitutions into bite-sized pieces for seds with
23786 # small command number limits, like on Digital OSF/1 and HP-UX.
23787 ac_max_sed_lines=48
23788 ac_sed_frag=1 # Number of current file.
23789 ac_beg=1 # First line for current file.
23790 ac_end=$ac_max_sed_lines # Line after last line for current file.
23791 ac_more_lines=:
23792 ac_sed_cmds=
23793 while $ac_more_lines; do
23794 if test $ac_beg -gt 1; then
23795 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 23796 else
5464f5a1
NN
23797 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23798 fi
23799 if test ! -s $tmp/subs.frag; then
23800 ac_more_lines=false
23801 else
23802 # The purpose of the label and of the branching condition is to
23803 # speed up the sed processing (if there are no `@' at all, there
23804 # is no need to browse any of the substitutions).
23805 # These are the two extra sed commands mentioned above.
23806 (echo ':t
23807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23808 if test -z "$ac_sed_cmds"; then
23809 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23810 else
23811 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23812 fi
23813 ac_sed_frag=`expr $ac_sed_frag + 1`
23814 ac_beg=$ac_end
23815 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 23816 fi
5464f5a1
NN
23817 done
23818 if test -z "$ac_sed_cmds"; then
23819 ac_sed_cmds=cat
252b5132 23820 fi
5464f5a1 23821fi # test -n "$CONFIG_FILES"
6be7c12c 23822
5464f5a1
NN
23823_ACEOF
23824cat >>$CONFIG_STATUS <<\_ACEOF
23825for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 23826 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
23827 case $ac_file in
23828 - | *:- | *:-:* ) # input from stdin
23829 cat >$tmp/stdin
23830 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23832 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23833 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23834 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
23835 esac
23836
5464f5a1
NN
23837 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23838 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23839$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23840 X"$ac_file" : 'X\(//\)[^/]' \| \
23841 X"$ac_file" : 'X\(//\)$' \| \
23842 X"$ac_file" : 'X\(/\)' \| \
23843 . : '\(.\)' 2>/dev/null ||
23844echo X"$ac_file" |
23845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23847 /^X\(\/\/\)$/{ s//\1/; q; }
23848 /^X\(\/\).*/{ s//\1/; q; }
23849 s/.*/./; q'`
23850 { if $as_mkdir_p; then
23851 mkdir -p "$ac_dir"
252b5132 23852 else
5464f5a1
NN
23853 as_dir="$ac_dir"
23854 as_dirs=
23855 while test ! -d "$as_dir"; do
23856 as_dirs="$as_dir $as_dirs"
23857 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23858$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23859 X"$as_dir" : 'X\(//\)[^/]' \| \
23860 X"$as_dir" : 'X\(//\)$' \| \
23861 X"$as_dir" : 'X\(/\)' \| \
23862 . : '\(.\)' 2>/dev/null ||
23863echo X"$as_dir" |
23864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23866 /^X\(\/\/\)$/{ s//\1/; q; }
23867 /^X\(\/\).*/{ s//\1/; q; }
23868 s/.*/./; q'`
23869 done
23870 test ! -n "$as_dirs" || mkdir $as_dirs
23871 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23872echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23873 { (exit 1); exit 1; }; }; }
23874
23875 ac_builddir=.
23876
23877if test "$ac_dir" != .; then
23878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23879 # A "../" for each directory in $ac_dir_suffix.
23880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23881else
23882 ac_dir_suffix= ac_top_builddir=
23883fi
252b5132 23884
5464f5a1
NN
23885case $srcdir in
23886 .) # No --srcdir option. We are building in place.
23887 ac_srcdir=.
23888 if test -z "$ac_top_builddir"; then
23889 ac_top_srcdir=.
23890 else
23891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23892 fi ;;
23893 [\\/]* | ?:[\\/]* ) # Absolute path.
23894 ac_srcdir=$srcdir$ac_dir_suffix;
23895 ac_top_srcdir=$srcdir ;;
252b5132 23896 *) # Relative path.
5464f5a1
NN
23897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23899esac
252b5132 23900
5464f5a1
NN
23901# Do not use `cd foo && pwd` to compute absolute paths, because
23902# the directories may not exist.
23903case `pwd` in
23904.) ac_abs_builddir="$ac_dir";;
23905*)
23906 case "$ac_dir" in
23907 .) ac_abs_builddir=`pwd`;;
23908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23910 esac;;
23911esac
23912case $ac_abs_builddir in
23913.) ac_abs_top_builddir=${ac_top_builddir}.;;
23914*)
23915 case ${ac_top_builddir}. in
23916 .) ac_abs_top_builddir=$ac_abs_builddir;;
23917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23919 esac;;
23920esac
23921case $ac_abs_builddir in
23922.) ac_abs_srcdir=$ac_srcdir;;
23923*)
23924 case $ac_srcdir in
23925 .) ac_abs_srcdir=$ac_abs_builddir;;
23926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23928 esac;;
23929esac
23930case $ac_abs_builddir in
23931.) ac_abs_top_srcdir=$ac_top_srcdir;;
23932*)
23933 case $ac_top_srcdir in
23934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23937 esac;;
23938esac
252b5132 23939
5464f5a1
NN
23940
23941 case $INSTALL in
23942 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23943 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 23944 esac
252b5132 23945
7357c5b6
AM
23946 if test x"$ac_file" != x-; then
23947 { echo "$as_me:$LINENO: creating $ac_file" >&5
23948echo "$as_me: creating $ac_file" >&6;}
23949 rm -f "$ac_file"
23950 fi
5464f5a1
NN
23951 # Let's still pretend it is `configure' which instantiates (i.e., don't
23952 # use $as_me), people would be surprised to read:
23953 # /* config.h. Generated by config.status. */
23954 if test x"$ac_file" = x-; then
23955 configure_input=
23956 else
23957 configure_input="$ac_file. "
23958 fi
23959 configure_input=$configure_input"Generated from `echo $ac_file_in |
23960 sed 's,.*/,,'` by configure."
23961
23962 # First look for the input files in the build tree, otherwise in the
23963 # src tree.
23964 ac_file_inputs=`IFS=:
23965 for f in $ac_file_in; do
23966 case $f in
23967 -) echo $tmp/stdin ;;
23968 [\\/$]*)
23969 # Absolute (can't be DOS-style, as IFS=:)
23970 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23971echo "$as_me: error: cannot find input file: $f" >&2;}
23972 { (exit 1); exit 1; }; }
23973 echo "$f";;
23974 *) # Relative
23975 if test -f "$f"; then
23976 # Build tree
23977 echo "$f"
23978 elif test -f "$srcdir/$f"; then
23979 # Source tree
23980 echo "$srcdir/$f"
23981 else
23982 # /dev/null tree
23983 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23984echo "$as_me: error: cannot find input file: $f" >&2;}
23985 { (exit 1); exit 1; }; }
23986 fi;;
23987 esac
23988 done` || { (exit 1); exit 1; }
5464f5a1
NN
23989_ACEOF
23990cat >>$CONFIG_STATUS <<_ACEOF
23991 sed "$ac_vpsub
23992$extrasub
23993_ACEOF
23994cat >>$CONFIG_STATUS <<\_ACEOF
23995:t
23996/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23997s,@configure_input@,$configure_input,;t t
23998s,@srcdir@,$ac_srcdir,;t t
23999s,@abs_srcdir@,$ac_abs_srcdir,;t t
24000s,@top_srcdir@,$ac_top_srcdir,;t t
24001s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24002s,@builddir@,$ac_builddir,;t t
24003s,@abs_builddir@,$ac_abs_builddir,;t t
24004s,@top_builddir@,$ac_top_builddir,;t t
24005s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24006s,@INSTALL@,$ac_INSTALL,;t t
24007" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24008 rm -f $tmp/stdin
24009 if test x"$ac_file" != x-; then
24010 mv $tmp/out $ac_file
24011 else
24012 cat $tmp/out
24013 rm -f $tmp/out
24014 fi
24015
24016done
24017_ACEOF
24018cat >>$CONFIG_STATUS <<\_ACEOF
24019
24020#
24021# CONFIG_HEADER section.
24022#
252b5132
RH
24023
24024# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24025# NAME is the cpp macro being defined and VALUE is the value it is being given.
24026#
24027# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
24028ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24029ac_dB='[ ].*$,\1#\2'
24030ac_dC=' '
24031ac_dD=',;t'
24032# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24033ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24034ac_uB='$,\1#\2define\3'
252b5132 24035ac_uC=' '
5464f5a1
NN
24036ac_uD=',;t'
24037
24038for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 24039 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
24040 case $ac_file in
24041 - | *:- | *:-:* ) # input from stdin
24042 cat >$tmp/stdin
24043 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24044 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24045 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24047 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
24048 esac
24049
5464f5a1
NN
24050 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24051echo "$as_me: creating $ac_file" >&6;}
24052
24053 # First look for the input files in the build tree, otherwise in the
24054 # src tree.
24055 ac_file_inputs=`IFS=:
24056 for f in $ac_file_in; do
24057 case $f in
24058 -) echo $tmp/stdin ;;
24059 [\\/$]*)
24060 # Absolute (can't be DOS-style, as IFS=:)
24061 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24062echo "$as_me: error: cannot find input file: $f" >&2;}
24063 { (exit 1); exit 1; }; }
24064 # Do quote $f, to prevent DOS paths from being IFS'd.
24065 echo "$f";;
24066 *) # Relative
24067 if test -f "$f"; then
24068 # Build tree
24069 echo "$f"
24070 elif test -f "$srcdir/$f"; then
24071 # Source tree
24072 echo "$srcdir/$f"
24073 else
24074 # /dev/null tree
24075 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24076echo "$as_me: error: cannot find input file: $f" >&2;}
24077 { (exit 1); exit 1; }; }
24078 fi;;
24079 esac
24080 done` || { (exit 1); exit 1; }
24081 # Remove the trailing spaces.
24082 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24083
24084_ACEOF
24085
24086# Transform confdefs.h into two sed scripts, `conftest.defines' and
24087# `conftest.undefs', that substitutes the proper values into
24088# config.h.in to produce config.h. The first handles `#define'
24089# templates, and the second `#undef' templates.
24090# And first: Protect against being on the right side of a sed subst in
24091# config.status. Protect against being in an unquoted here document
24092# in config.status.
24093rm -f conftest.defines conftest.undefs
24094# Using a here document instead of a string reduces the quoting nightmare.
24095# Putting comments in sed scripts is not portable.
24096#
24097# `end' is used to avoid that the second main sed command (meant for
24098# 0-ary CPP macros) applies to n-ary macro definitions.
24099# See the Autoconf documentation for `clear'.
24100cat >confdef2sed.sed <<\_ACEOF
24101s/[\\&,]/\\&/g
24102s,[\\$`],\\&,g
24103t clear
24104: clear
24105s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24106t end
24107s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24108: end
24109_ACEOF
24110# If some macros were called several times there might be several times
24111# the same #defines, which is useless. Nevertheless, we may not want to
24112# sort them, since we want the *last* AC-DEFINE to be honored.
24113uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24114sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24115rm -f confdef2sed.sed
252b5132
RH
24116
24117# This sed command replaces #undef with comments. This is necessary, for
24118# example, in the case of _POSIX_SOURCE, which is predefined and required
24119# on some systems where configure will not decide to define it.
5464f5a1
NN
24120cat >>conftest.undefs <<\_ACEOF
24121s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24122_ACEOF
24123
24124# Break up conftest.defines because some shells have a limit on the size
24125# of here documents, and old seds have small limits too (100 cmds).
24126echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24127echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24128echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24129echo ' :' >>$CONFIG_STATUS
24130rm -f conftest.tail
24131while grep . conftest.defines >/dev/null
24132do
24133 # Write a limited-size here document to $tmp/defines.sed.
24134 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24135 # Speed up: don't consider the non `#define' lines.
24136 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24137 # Work around the forget-to-reset-the-flag bug.
24138 echo 't clr' >>$CONFIG_STATUS
24139 echo ': clr' >>$CONFIG_STATUS
24140 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24141 echo 'CEOF
24142 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24143 rm -f $tmp/in
24144 mv $tmp/out $tmp/in
24145' >>$CONFIG_STATUS
24146 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24147 rm -f conftest.defines
24148 mv conftest.tail conftest.defines
24149done
24150rm -f conftest.defines
24151echo ' fi # grep' >>$CONFIG_STATUS
24152echo >>$CONFIG_STATUS
252b5132 24153
5464f5a1
NN
24154# Break up conftest.undefs because some shells have a limit on the size
24155# of here documents, and old seds have small limits too (100 cmds).
24156echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 24157rm -f conftest.tail
5464f5a1 24158while grep . conftest.undefs >/dev/null
252b5132 24159do
5464f5a1
NN
24160 # Write a limited-size here document to $tmp/undefs.sed.
24161 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24162 # Speed up: don't consider the non `#undef'
24163 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24164 # Work around the forget-to-reset-the-flag bug.
24165 echo 't clr' >>$CONFIG_STATUS
24166 echo ': clr' >>$CONFIG_STATUS
24167 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 24168 echo 'CEOF
5464f5a1
NN
24169 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24170 rm -f $tmp/in
24171 mv $tmp/out $tmp/in
24172' >>$CONFIG_STATUS
24173 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24174 rm -f conftest.undefs
24175 mv conftest.tail conftest.undefs
252b5132 24176done
5464f5a1
NN
24177rm -f conftest.undefs
24178
24179cat >>$CONFIG_STATUS <<\_ACEOF
24180 # Let's still pretend it is `configure' which instantiates (i.e., don't
24181 # use $as_me), people would be surprised to read:
24182 # /* config.h. Generated by config.status. */
24183 if test x"$ac_file" = x-; then
24184 echo "/* Generated by configure. */" >$tmp/config.h
24185 else
24186 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24187 fi
24188 cat $tmp/in >>$tmp/config.h
24189 rm -f $tmp/in
24190 if test x"$ac_file" != x-; then
24191 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24192 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24193echo "$as_me: $ac_file is unchanged" >&6;}
24194 else
24195 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24196$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24197 X"$ac_file" : 'X\(//\)[^/]' \| \
24198 X"$ac_file" : 'X\(//\)$' \| \
24199 X"$ac_file" : 'X\(/\)' \| \
24200 . : '\(.\)' 2>/dev/null ||
24201echo X"$ac_file" |
24202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24204 /^X\(\/\/\)$/{ s//\1/; q; }
24205 /^X\(\/\).*/{ s//\1/; q; }
24206 s/.*/./; q'`
24207 { if $as_mkdir_p; then
24208 mkdir -p "$ac_dir"
252b5132 24209 else
5464f5a1
NN
24210 as_dir="$ac_dir"
24211 as_dirs=
24212 while test ! -d "$as_dir"; do
24213 as_dirs="$as_dir $as_dirs"
24214 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24215$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24216 X"$as_dir" : 'X\(//\)[^/]' \| \
24217 X"$as_dir" : 'X\(//\)$' \| \
24218 X"$as_dir" : 'X\(/\)' \| \
24219 . : '\(.\)' 2>/dev/null ||
24220echo X"$as_dir" |
24221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24223 /^X\(\/\/\)$/{ s//\1/; q; }
24224 /^X\(\/\).*/{ s//\1/; q; }
24225 s/.*/./; q'`
24226 done
24227 test ! -n "$as_dirs" || mkdir $as_dirs
24228 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24229echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24230 { (exit 1); exit 1; }; }; }
24231
24232 rm -f $ac_file
24233 mv $tmp/config.h $ac_file
252b5132 24234 fi
5464f5a1
NN
24235 else
24236 cat $tmp/config.h
24237 rm -f $tmp/config.h
252b5132 24238 fi
f5385ebf
AM
24239# Compute $ac_file's index in $config_headers.
24240_am_stamp_count=1
24241for _am_header in $config_headers :; do
24242 case $_am_header in
24243 $ac_file | $ac_file:* )
24244 break ;;
24245 * )
24246 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24247 esac
24248done
24249echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24250$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24251 X$ac_file : 'X\(//\)[^/]' \| \
24252 X$ac_file : 'X\(//\)$' \| \
24253 X$ac_file : 'X\(/\)' \| \
24254 . : '\(.\)' 2>/dev/null ||
24255echo X$ac_file |
24256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24258 /^X\(\/\/\)$/{ s//\1/; q; }
24259 /^X\(\/\).*/{ s//\1/; q; }
24260 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
24261done
24262_ACEOF
24263cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 24264
5464f5a1
NN
24265#
24266# CONFIG_COMMANDS section.
24267#
24268for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24269 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24270 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24271 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24272$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24273 X"$ac_dest" : 'X\(//\)[^/]' \| \
24274 X"$ac_dest" : 'X\(//\)$' \| \
24275 X"$ac_dest" : 'X\(/\)' \| \
24276 . : '\(.\)' 2>/dev/null ||
24277echo X"$ac_dest" |
24278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24280 /^X\(\/\/\)$/{ s//\1/; q; }
24281 /^X\(\/\).*/{ s//\1/; q; }
24282 s/.*/./; q'`
24283 { if $as_mkdir_p; then
24284 mkdir -p "$ac_dir"
24285 else
24286 as_dir="$ac_dir"
24287 as_dirs=
24288 while test ! -d "$as_dir"; do
24289 as_dirs="$as_dir $as_dirs"
24290 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24292 X"$as_dir" : 'X\(//\)[^/]' \| \
24293 X"$as_dir" : 'X\(//\)$' \| \
24294 X"$as_dir" : 'X\(/\)' \| \
24295 . : '\(.\)' 2>/dev/null ||
24296echo X"$as_dir" |
24297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24299 /^X\(\/\/\)$/{ s//\1/; q; }
24300 /^X\(\/\).*/{ s//\1/; q; }
24301 s/.*/./; q'`
24302 done
24303 test ! -n "$as_dirs" || mkdir $as_dirs
24304 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24305echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24306 { (exit 1); exit 1; }; }; }
b3baf5d0 24307
5464f5a1 24308 ac_builddir=.
b3baf5d0 24309
5464f5a1
NN
24310if test "$ac_dir" != .; then
24311 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24312 # A "../" for each directory in $ac_dir_suffix.
24313 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24314else
24315 ac_dir_suffix= ac_top_builddir=
24316fi
24317
24318case $srcdir in
24319 .) # No --srcdir option. We are building in place.
24320 ac_srcdir=.
24321 if test -z "$ac_top_builddir"; then
24322 ac_top_srcdir=.
24323 else
24324 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24325 fi ;;
24326 [\\/]* | ?:[\\/]* ) # Absolute path.
24327 ac_srcdir=$srcdir$ac_dir_suffix;
24328 ac_top_srcdir=$srcdir ;;
24329 *) # Relative path.
24330 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24331 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24332esac
24333
24334# Do not use `cd foo && pwd` to compute absolute paths, because
24335# the directories may not exist.
24336case `pwd` in
24337.) ac_abs_builddir="$ac_dir";;
24338*)
24339 case "$ac_dir" in
24340 .) ac_abs_builddir=`pwd`;;
24341 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24342 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24343 esac;;
24344esac
24345case $ac_abs_builddir in
24346.) ac_abs_top_builddir=${ac_top_builddir}.;;
24347*)
24348 case ${ac_top_builddir}. in
24349 .) ac_abs_top_builddir=$ac_abs_builddir;;
24350 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24351 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24352 esac;;
24353esac
24354case $ac_abs_builddir in
24355.) ac_abs_srcdir=$ac_srcdir;;
24356*)
24357 case $ac_srcdir in
24358 .) ac_abs_srcdir=$ac_abs_builddir;;
24359 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24360 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24361 esac;;
24362esac
24363case $ac_abs_builddir in
24364.) ac_abs_top_srcdir=$ac_top_srcdir;;
24365*)
24366 case $ac_top_srcdir in
24367 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24368 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24369 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24370 esac;;
24371esac
24372
24373
24374 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24375echo "$as_me: executing $ac_dest commands" >&6;}
24376 case $ac_dest in
f5385ebf
AM
24377 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24378 # Strip MF so we end up with the name of the file.
24379 mf=`echo "$mf" | sed -e 's/:.*$//'`
24380 # Check whether this is an Automake generated Makefile or not.
24381 # We used to match only the files named `Makefile.in', but
24382 # some people rename them; so instead we look at the file content.
24383 # Grep'ing the first line is not enough: some people post-process
24384 # each Makefile.in and add a new line on top of each file to say so.
24385 # So let's grep whole file.
24386 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24387 dirpart=`(dirname "$mf") 2>/dev/null ||
24388$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24389 X"$mf" : 'X\(//\)[^/]' \| \
24390 X"$mf" : 'X\(//\)$' \| \
24391 X"$mf" : 'X\(/\)' \| \
24392 . : '\(.\)' 2>/dev/null ||
24393echo X"$mf" |
24394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24396 /^X\(\/\/\)$/{ s//\1/; q; }
24397 /^X\(\/\).*/{ s//\1/; q; }
24398 s/.*/./; q'`
24399 else
24400 continue
24401 fi
24402 # Extract the definition of DEPDIR, am__include, and am__quote
24403 # from the Makefile without running `make'.
24404 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24405 test -z "$DEPDIR" && continue
24406 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24407 test -z "am__include" && continue
24408 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24409 # When using ansi2knr, U may be empty or an underscore; expand it
24410 U=`sed -n 's/^U = //p' < "$mf"`
24411 # Find all dependency output files, they are included files with
24412 # $(DEPDIR) in their names. We invoke sed twice because it is the
24413 # simplest approach to changing $(DEPDIR) to its actual value in the
24414 # expansion.
24415 for file in `sed -n "
24416 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24417 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24418 # Make sure the directory exists.
24419 test -f "$dirpart/$file" && continue
24420 fdir=`(dirname "$file") 2>/dev/null ||
24421$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24422 X"$file" : 'X\(//\)[^/]' \| \
24423 X"$file" : 'X\(//\)$' \| \
24424 X"$file" : 'X\(/\)' \| \
24425 . : '\(.\)' 2>/dev/null ||
24426echo X"$file" |
24427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24429 /^X\(\/\/\)$/{ s//\1/; q; }
24430 /^X\(\/\).*/{ s//\1/; q; }
24431 s/.*/./; q'`
24432 { if $as_mkdir_p; then
24433 mkdir -p $dirpart/$fdir
24434 else
24435 as_dir=$dirpart/$fdir
24436 as_dirs=
24437 while test ! -d "$as_dir"; do
24438 as_dirs="$as_dir $as_dirs"
24439 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24440$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24441 X"$as_dir" : 'X\(//\)[^/]' \| \
24442 X"$as_dir" : 'X\(//\)$' \| \
24443 X"$as_dir" : 'X\(/\)' \| \
24444 . : '\(.\)' 2>/dev/null ||
24445echo X"$as_dir" |
24446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24448 /^X\(\/\/\)$/{ s//\1/; q; }
24449 /^X\(\/\).*/{ s//\1/; q; }
24450 s/.*/./; q'`
24451 done
24452 test ! -n "$as_dirs" || mkdir $as_dirs
24453 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24454echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24455 { (exit 1); exit 1; }; }; }
24456
24457 # echo "creating $dirpart/$file"
24458 echo '# dummy' > "$dirpart/$file"
24459 done
24460done
d7040cdb
SE
24461 ;;
24462 libtool )
24463
24464 # See if we are running on zsh, and set the options which allow our
24465 # commands through without removal of \ escapes.
24466 if test -n "${ZSH_VERSION+set}" ; then
24467 setopt NO_GLOB_SUBST
24468 fi
24469
24470 cfgfile="${ofile}T"
24471 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24472 $RM "$cfgfile"
24473
24474 cat <<_LT_EOF >> "$cfgfile"
24475#! $SHELL
24476
24477# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 24478# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
24479# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24480# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24481#
718a6fd8
SE
24482# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24483# 2006, 2007, 2008 Free Software Foundation, Inc.
24484# Written by Gordon Matzigkeit, 1996
d7040cdb 24485#
718a6fd8 24486# This file is part of GNU Libtool.
d7040cdb 24487#
718a6fd8
SE
24488# GNU Libtool is free software; you can redistribute it and/or
24489# modify it under the terms of the GNU General Public License as
24490# published by the Free Software Foundation; either version 2 of
24491# the License, or (at your option) any later version.
d7040cdb 24492#
718a6fd8
SE
24493# As a special exception to the GNU General Public License,
24494# if you distribute this file as part of a program or library that
24495# is built using GNU Libtool, you may include this file under the
24496# same distribution terms that you use for the rest of that program.
d7040cdb 24497#
718a6fd8
SE
24498# GNU Libtool is distributed in the hope that it will be useful,
24499# but WITHOUT ANY WARRANTY; without even the implied warranty of
24500# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24501# GNU General Public License for more details.
d7040cdb 24502#
718a6fd8
SE
24503# You should have received a copy of the GNU General Public License
24504# along with GNU Libtool; see the file COPYING. If not, a copy
24505# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24506# obtained by writing to the Free Software Foundation, Inc.,
24507# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
24508
24509
24510# The names of the tagged configurations supported by this script.
24511available_tags=""
24512
24513# ### BEGIN LIBTOOL CONFIG
24514
24515# Whether or not to build shared libraries.
24516build_libtool_libs=$enable_shared
24517
24518# Which release of libtool.m4 was used?
24519macro_version=$macro_version
24520macro_revision=$macro_revision
24521
24522# Whether or not to build static libraries.
24523build_old_libs=$enable_static
24524
24525# What type of objects to build.
24526pic_mode=$pic_mode
24527
24528# Whether or not to optimize for fast installation.
24529fast_install=$enable_fast_install
24530
24531# The host system.
24532host_alias=$host_alias
24533host=$host
24534host_os=$host_os
24535
24536# The build system.
24537build_alias=$build_alias
24538build=$build
24539build_os=$build_os
24540
24541# A sed program that does not truncate output.
24542SED=$lt_SED
24543
24544# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24545Xsed="\$SED -e 1s/^X//"
24546
24547# A grep program that handles long lines.
24548GREP=$lt_GREP
24549
24550# An ERE matcher.
24551EGREP=$lt_EGREP
24552
24553# A literal string matcher.
24554FGREP=$lt_FGREP
24555
24556# A BSD- or MS-compatible name lister.
24557NM=$lt_NM
24558
24559# Whether we need soft or hard links.
24560LN_S=$lt_LN_S
24561
24562# What is the maximum length of a command?
24563max_cmd_len=$max_cmd_len
24564
24565# Object file suffix (normally "o").
24566objext=$ac_objext
24567
24568# Executable file suffix (normally "").
24569exeext=$exeext
24570
24571# whether the shell understands "unset".
24572lt_unset=$lt_unset
24573
24574# turn spaces into newlines.
24575SP2NL=$lt_lt_SP2NL
24576
24577# turn newlines into spaces.
24578NL2SP=$lt_lt_NL2SP
24579
24580# How to create reloadable object files.
24581reload_flag=$lt_reload_flag
24582reload_cmds=$lt_reload_cmds
24583
718a6fd8
SE
24584# An object symbol dumper.
24585OBJDUMP=$lt_OBJDUMP
24586
d7040cdb
SE
24587# Method to check whether dependent libraries are shared objects.
24588deplibs_check_method=$lt_deplibs_check_method
24589
24590# Command to use when deplibs_check_method == "file_magic".
24591file_magic_cmd=$lt_file_magic_cmd
24592
24593# The archiver.
24594AR=$lt_AR
24595AR_FLAGS=$lt_AR_FLAGS
24596
24597# A symbol stripping program.
24598STRIP=$lt_STRIP
24599
24600# Commands used to install an old-style archive.
24601RANLIB=$lt_RANLIB
24602old_postinstall_cmds=$lt_old_postinstall_cmds
24603old_postuninstall_cmds=$lt_old_postuninstall_cmds
24604
24605# A C compiler.
24606LTCC=$lt_CC
24607
24608# LTCC compiler flags.
24609LTCFLAGS=$lt_CFLAGS
24610
24611# Take the output of nm and produce a listing of raw symbols and C names.
24612global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24613
24614# Transform the output of nm in a proper C declaration.
24615global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24616
24617# Transform the output of nm in a C name address pair.
24618global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24619
718a6fd8
SE
24620# Transform the output of nm in a C name address pair when lib prefix is needed.
24621global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24622
d7040cdb
SE
24623# The name of the directory that contains temporary libtool files.
24624objdir=$objdir
24625
24626# Shell to use when invoking shell scripts.
24627SHELL=$lt_SHELL
24628
24629# An echo program that does not interpret backslashes.
24630ECHO=$lt_ECHO
24631
24632# Used to examine libraries when file_magic_cmd begins with "file".
24633MAGIC_CMD=$MAGIC_CMD
24634
24635# Must we lock files when doing compilation?
24636need_locks=$lt_need_locks
24637
718a6fd8
SE
24638# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24639DSYMUTIL=$lt_DSYMUTIL
24640
24641# Tool to change global to local symbols on Mac OS X.
24642NMEDIT=$lt_NMEDIT
24643
24644# Tool to manipulate fat objects and archives on Mac OS X.
24645LIPO=$lt_LIPO
24646
24647# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24648OTOOL=$lt_OTOOL
24649
24650# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24651OTOOL64=$lt_OTOOL64
24652
d7040cdb
SE
24653# Old archive suffix (normally "a").
24654libext=$libext
24655
24656# Shared library suffix (normally ".so").
24657shrext_cmds=$lt_shrext_cmds
24658
24659# The commands to extract the exported symbol list from a shared archive.
24660extract_expsyms_cmds=$lt_extract_expsyms_cmds
24661
24662# Variables whose values should be saved in libtool wrapper scripts and
24663# restored at link time.
24664variables_saved_for_relink=$lt_variables_saved_for_relink
24665
24666# Do we need the "lib" prefix for modules?
24667need_lib_prefix=$need_lib_prefix
24668
24669# Do we need a version for libraries?
24670need_version=$need_version
24671
24672# Library versioning type.
24673version_type=$version_type
24674
24675# Shared library runtime path variable.
24676runpath_var=$runpath_var
24677
24678# Shared library path variable.
24679shlibpath_var=$shlibpath_var
24680
24681# Is shlibpath searched before the hard-coded library search path?
24682shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24683
24684# Format of library name prefix.
24685libname_spec=$lt_libname_spec
24686
24687# List of archive names. First name is the real one, the rest are links.
24688# The last name is the one that the linker finds with -lNAME
24689library_names_spec=$lt_library_names_spec
24690
24691# The coded name of the library, if different from the real name.
24692soname_spec=$lt_soname_spec
24693
24694# Command to use after installation of a shared archive.
24695postinstall_cmds=$lt_postinstall_cmds
24696
24697# Command to use after uninstallation of a shared archive.
24698postuninstall_cmds=$lt_postuninstall_cmds
24699
24700# Commands used to finish a libtool library installation in a directory.
24701finish_cmds=$lt_finish_cmds
24702
24703# As "finish_cmds", except a single script fragment to be evaled but
24704# not shown.
24705finish_eval=$lt_finish_eval
24706
24707# Whether we should hardcode library paths into libraries.
24708hardcode_into_libs=$hardcode_into_libs
24709
24710# Compile-time system search path for libraries.
24711sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24712
24713# Run-time system search path for libraries.
24714sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24715
24716# Whether dlopen is supported.
24717dlopen_support=$enable_dlopen
24718
24719# Whether dlopen of programs is supported.
24720dlopen_self=$enable_dlopen_self
24721
24722# Whether dlopen of statically linked programs is supported.
24723dlopen_self_static=$enable_dlopen_self_static
24724
24725# Commands to strip libraries.
24726old_striplib=$lt_old_striplib
24727striplib=$lt_striplib
24728
24729
24730# The linker used to build libraries.
24731LD=$lt_LD
24732
24733# Commands used to build an old-style archive.
24734old_archive_cmds=$lt_old_archive_cmds
24735
24736# A language specific compiler.
24737CC=$lt_compiler
24738
24739# Is the compiler the GNU compiler?
24740with_gcc=$GCC
24741
24742# Compiler flag to turn off builtin functions.
24743no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24744
24745# How to pass a linker flag through the compiler.
24746wl=$lt_lt_prog_compiler_wl
24747
24748# Additional compiler flags for building library objects.
24749pic_flag=$lt_lt_prog_compiler_pic
24750
24751# Compiler flag to prevent dynamic linking.
24752link_static_flag=$lt_lt_prog_compiler_static
24753
24754# Does compiler simultaneously support -c and -o options?
24755compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24756
24757# Whether or not to add -lc for building shared libraries.
24758build_libtool_need_lc=$archive_cmds_need_lc
24759
24760# Whether or not to disallow shared libs when runtime libs are static.
24761allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24762
24763# Compiler flag to allow reflexive dlopens.
24764export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24765
24766# Compiler flag to generate shared objects directly from archives.
24767whole_archive_flag_spec=$lt_whole_archive_flag_spec
24768
24769# Whether the compiler copes with passing no objects directly.
24770compiler_needs_object=$lt_compiler_needs_object
24771
24772# Create an old-style archive from a shared archive.
24773old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24774
24775# Create a temporary old-style archive to link instead of a shared archive.
24776old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24777
24778# Commands used to build a shared archive.
24779archive_cmds=$lt_archive_cmds
24780archive_expsym_cmds=$lt_archive_expsym_cmds
24781
24782# Commands used to build a loadable module if different from building
24783# a shared archive.
24784module_cmds=$lt_module_cmds
24785module_expsym_cmds=$lt_module_expsym_cmds
24786
24787# Whether we are building with GNU ld or not.
24788with_gnu_ld=$lt_with_gnu_ld
24789
24790# Flag that allows shared libraries with undefined symbols to be built.
24791allow_undefined_flag=$lt_allow_undefined_flag
24792
24793# Flag that enforces no undefined symbols.
24794no_undefined_flag=$lt_no_undefined_flag
24795
24796# Flag to hardcode \$libdir into a binary during linking.
24797# This must work even if \$libdir does not exist
24798hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24799
24800# If ld is used when linking, flag to hardcode \$libdir into a binary
24801# during linking. This must work even if \$libdir does not exist.
24802hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24803
24804# Whether we need a single "-rpath" flag with a separated argument.
24805hardcode_libdir_separator=$lt_hardcode_libdir_separator
24806
24807# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24808# DIR into the resulting binary.
24809hardcode_direct=$hardcode_direct
24810
24811# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24812# DIR into the resulting binary and the resulting library dependency is
24813# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24814# library is relocated.
24815hardcode_direct_absolute=$hardcode_direct_absolute
24816
24817# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24818# into the resulting binary.
24819hardcode_minus_L=$hardcode_minus_L
24820
24821# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24822# into the resulting binary.
24823hardcode_shlibpath_var=$hardcode_shlibpath_var
24824
24825# Set to "yes" if building a shared library automatically hardcodes DIR
24826# into the library and all subsequent libraries and executables linked
24827# against it.
24828hardcode_automatic=$hardcode_automatic
24829
24830# Set to yes if linker adds runtime paths of dependent libraries
24831# to runtime path list.
24832inherit_rpath=$inherit_rpath
24833
24834# Whether libtool must link a program against all its dependency libraries.
24835link_all_deplibs=$link_all_deplibs
24836
24837# Fix the shell variable \$srcfile for the compiler.
24838fix_srcfile_path=$lt_fix_srcfile_path
24839
24840# Set to "yes" if exported symbols are required.
24841always_export_symbols=$always_export_symbols
24842
24843# The commands to list exported symbols.
24844export_symbols_cmds=$lt_export_symbols_cmds
24845
24846# Symbols that should not be listed in the preloaded symbols.
24847exclude_expsyms=$lt_exclude_expsyms
24848
24849# Symbols that must always be exported.
24850include_expsyms=$lt_include_expsyms
24851
24852# Commands necessary for linking programs (against libraries) with templates.
24853prelink_cmds=$lt_prelink_cmds
24854
24855# Specify filename containing input files.
24856file_list_spec=$lt_file_list_spec
24857
24858# How to hardcode a shared library path into an executable.
24859hardcode_action=$hardcode_action
24860
24861# ### END LIBTOOL CONFIG
24862
24863_LT_EOF
24864
24865 case $host_os in
24866 aix3*)
24867 cat <<\_LT_EOF >> "$cfgfile"
24868# AIX sometimes has problems with the GCC collect2 program. For some
24869# reason, if we set the COLLECT_NAMES environment variable, the problems
24870# vanish in a puff of smoke.
24871if test "X${COLLECT_NAMES+set}" != Xset; then
24872 COLLECT_NAMES=
24873 export COLLECT_NAMES
24874fi
24875_LT_EOF
24876 ;;
24877 esac
24878
24879
24880ltmain="$ac_aux_dir/ltmain.sh"
24881
24882
24883 # We use sed instead of cat because bash on DJGPP gets confused if
24884 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24885 # text mode, it properly converts lines to CR/LF. This bash problem
24886 # is reportedly fixed, but why not run on old versions too?
24887 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24888 || (rm -f "$cfgfile"; exit 1)
24889
24890 case $xsi_shell in
24891 yes)
24892 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 24893
d7040cdb
SE
24894# func_dirname file append nondir_replacement
24895# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24896# otherwise set result to NONDIR_REPLACEMENT.
24897func_dirname ()
24898{
24899 case ${1} in
24900 */*) func_dirname_result="${1%/*}${2}" ;;
24901 * ) func_dirname_result="${3}" ;;
24902 esac
24903}
24904
24905# func_basename file
24906func_basename ()
24907{
24908 func_basename_result="${1##*/}"
24909}
24910
718a6fd8
SE
24911# func_dirname_and_basename file append nondir_replacement
24912# perform func_basename and func_dirname in a single function
24913# call:
24914# dirname: Compute the dirname of FILE. If nonempty,
24915# add APPEND to the result, otherwise set result
24916# to NONDIR_REPLACEMENT.
24917# value returned in "$func_dirname_result"
24918# basename: Compute filename of FILE.
24919# value retuned in "$func_basename_result"
24920# Implementation must be kept synchronized with func_dirname
24921# and func_basename. For efficiency, we do not delegate to
24922# those functions but instead duplicate the functionality here.
24923func_dirname_and_basename ()
24924{
24925 case ${1} in
24926 */*) func_dirname_result="${1%/*}${2}" ;;
24927 * ) func_dirname_result="${3}" ;;
24928 esac
24929 func_basename_result="${1##*/}"
24930}
24931
d7040cdb
SE
24932# func_stripname prefix suffix name
24933# strip PREFIX and SUFFIX off of NAME.
24934# PREFIX and SUFFIX must not contain globbing or regex special
24935# characters, hashes, percent signs, but SUFFIX may contain a leading
24936# dot (in which case that matches only a dot).
24937func_stripname ()
24938{
24939 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24940 # positional parameters, so assign one to ordinary parameter first.
24941 func_stripname_result=${3}
24942 func_stripname_result=${func_stripname_result#"${1}"}
24943 func_stripname_result=${func_stripname_result%"${2}"}
24944}
24945
24946# func_opt_split
24947func_opt_split ()
24948{
24949 func_opt_split_opt=${1%%=*}
24950 func_opt_split_arg=${1#*=}
24951}
24952
24953# func_lo2o object
24954func_lo2o ()
24955{
24956 case ${1} in
24957 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24958 *) func_lo2o_result=${1} ;;
24959 esac
24960}
718a6fd8
SE
24961
24962# func_xform libobj-or-source
24963func_xform ()
24964{
24965 func_xform_result=${1%.*}.lo
24966}
24967
24968# func_arith arithmetic-term...
24969func_arith ()
24970{
24971 func_arith_result=$(( $* ))
24972}
24973
24974# func_len string
24975# STRING may not start with a hyphen.
24976func_len ()
24977{
24978 func_len_result=${#1}
24979}
24980
d7040cdb
SE
24981_LT_EOF
24982 ;;
24983 *) # Bourne compatible functions.
24984 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 24985
d7040cdb
SE
24986# func_dirname file append nondir_replacement
24987# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24988# otherwise set result to NONDIR_REPLACEMENT.
24989func_dirname ()
24990{
24991 # Extract subdirectory from the argument.
24992 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24993 if test "X$func_dirname_result" = "X${1}"; then
24994 func_dirname_result="${3}"
24995 else
24996 func_dirname_result="$func_dirname_result${2}"
24997 fi
24998}
24999
25000# func_basename file
25001func_basename ()
25002{
25003 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
25004}
25005
718a6fd8 25006
d7040cdb
SE
25007# func_stripname prefix suffix name
25008# strip PREFIX and SUFFIX off of NAME.
25009# PREFIX and SUFFIX must not contain globbing or regex special
25010# characters, hashes, percent signs, but SUFFIX may contain a leading
25011# dot (in which case that matches only a dot).
25012# func_strip_suffix prefix name
25013func_stripname ()
25014{
25015 case ${2} in
25016 .*) func_stripname_result=`$ECHO "X${3}" \
25017 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
25018 *) func_stripname_result=`$ECHO "X${3}" \
25019 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
25020 esac
25021}
25022
25023# sed scripts:
25024my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25025my_sed_long_arg='1s/^-[^=]*=//'
25026
25027# func_opt_split
25028func_opt_split ()
25029{
25030 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
25031 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
25032}
25033
25034# func_lo2o object
25035func_lo2o ()
25036{
25037 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
25038}
718a6fd8
SE
25039
25040# func_xform libobj-or-source
25041func_xform ()
25042{
25043 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
25044}
25045
25046# func_arith arithmetic-term...
25047func_arith ()
25048{
25049 func_arith_result=`expr "$@"`
25050}
25051
25052# func_len string
25053# STRING may not start with a hyphen.
25054func_len ()
25055{
25056 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25057}
25058
d7040cdb
SE
25059_LT_EOF
25060esac
25061
25062case $lt_shell_append in
25063 yes)
25064 cat << \_LT_EOF >> "$cfgfile"
25065
25066# func_append var value
25067# Append VALUE to the end of shell variable VAR.
25068func_append ()
25069{
25070 eval "$1+=\$2"
25071}
25072_LT_EOF
25073 ;;
25074 *)
25075 cat << \_LT_EOF >> "$cfgfile"
25076
25077# func_append var value
25078# Append VALUE to the end of shell variable VAR.
25079func_append ()
25080{
25081 eval "$1=\$$1\$2"
25082}
718a6fd8 25083
d7040cdb
SE
25084_LT_EOF
25085 ;;
25086 esac
25087
25088
25089 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25090 || (rm -f "$cfgfile"; exit 1)
25091
25092 mv -f "$cfgfile" "$ofile" ||
25093 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25094 chmod +x "$ofile"
25095
f5385ebf 25096 ;;
20e95c23
DJ
25097 default-1 )
25098 for ac_file in $CONFIG_FILES; do
25099 # Support "outfile[:infile[:infile...]]"
25100 case "$ac_file" in
25101 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25102 esac
25103 # PO directories have a Makefile.in generated from Makefile.in.in.
25104 case "$ac_file" in */Makefile.in)
25105 # Adjust a relative srcdir.
25106 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25107 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25108 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25109 # In autoconf-2.13 it is called $ac_given_srcdir.
25110 # In autoconf-2.50 it is called $srcdir.
25111 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25112 case "$ac_given_srcdir" in
25113 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25114 /*) top_srcdir="$ac_given_srcdir" ;;
25115 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25116 esac
25117 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25118 rm -f "$ac_dir/POTFILES"
25119 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25120 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25121 POMAKEFILEDEPS="POTFILES.in"
25122 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
25123 # on $ac_dir but don't depend on user-specified configuration
25124 # parameters.
25125 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25126 # The LINGUAS file contains the set of available languages.
25127 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25128 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25129 fi
25130 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25131 # Hide the ALL_LINGUAS assigment from automake.
25132 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25133 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25134 else
25135 # The set of available languages was given in configure.in.
25136 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25137 fi
25138 case "$ac_given_srcdir" in
25139 .) srcdirpre= ;;
25140 *) srcdirpre='$(srcdir)/' ;;
25141 esac
25142 POFILES=
25143 GMOFILES=
25144 UPDATEPOFILES=
25145 DUMMYPOFILES=
25146 for lang in $ALL_LINGUAS; do
25147 POFILES="$POFILES $srcdirpre$lang.po"
25148 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25149 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25150 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25151 done
25152 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25153 # environment variable.
25154 INST_LINGUAS=
25155 if test -n "$ALL_LINGUAS"; then
25156 for presentlang in $ALL_LINGUAS; do
25157 useit=no
25158 if test "%UNSET%" != "$LINGUAS"; then
25159 desiredlanguages="$LINGUAS"
25160 else
25161 desiredlanguages="$ALL_LINGUAS"
25162 fi
25163 for desiredlang in $desiredlanguages; do
25164 # Use the presentlang catalog if desiredlang is
25165 # a. equal to presentlang, or
25166 # b. a variant of presentlang (because in this case,
25167 # presentlang can be used as a fallback for messages
25168 # which are not translated in the desiredlang catalog).
25169 case "$desiredlang" in
25170 "$presentlang"*) useit=yes;;
25171 esac
25172 done
25173 if test $useit = yes; then
25174 INST_LINGUAS="$INST_LINGUAS $presentlang"
25175 fi
25176 done
25177 fi
25178 CATALOGS=
25179 if test -n "$INST_LINGUAS"; then
25180 for lang in $INST_LINGUAS; do
25181 CATALOGS="$CATALOGS $lang.gmo"
25182 done
25183 fi
25184 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25185 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"
25186 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25187 if test -f "$f"; then
25188 case "$f" in
25189 *.orig | *.bak | *~) ;;
25190 *) cat "$f" >> "$ac_dir/Makefile" ;;
25191 esac
25192 fi
25193 done
25194 fi
25195 ;;
25196 esac
25197 done ;;
d5efd9fc
AM
25198 bfd_stdint.h )
25199if test "$GCC" = yes; then
25200 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25201else
25202 echo "/* generated for $CC */" > tmp-stdint.h
25203fi
25204
25205sed 's/^ *//' >> tmp-stdint.h <<EOF
25206
25207 #ifndef GCC_GENERATED_STDINT_H
25208 #define GCC_GENERATED_STDINT_H 1
25209
25210 #include <sys/types.h>
25211EOF
25212
25213if test "$acx_cv_header_stdint" != stdint.h; then
25214 echo "#include <stddef.h>" >> tmp-stdint.h
25215fi
25216if test "$acx_cv_header_stdint" != stddef.h; then
25217 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25218fi
25219
25220sed 's/^ *//' >> tmp-stdint.h <<EOF
25221 /* glibc uses these symbols as guards to prevent redefinitions. */
25222 #ifdef __int8_t_defined
25223 #define _INT8_T
25224 #define _INT16_T
25225 #define _INT32_T
25226 #endif
25227 #ifdef __uint32_t_defined
25228 #define _UINT32_T
25229 #endif
25230
25231EOF
25232
25233# ----------------- done header, emit basic int types -------------
25234if test "$acx_cv_header_stdint" = stddef.h; then
25235 sed 's/^ *//' >> tmp-stdint.h <<EOF
25236
25237 #ifndef _UINT8_T
25238 #define _UINT8_T
25239 #ifndef __uint8_t_defined
25240 #define __uint8_t_defined
25241 typedef unsigned $acx_cv_type_int8_t uint8_t;
25242 #endif
25243 #endif
25244
25245 #ifndef _UINT16_T
25246 #define _UINT16_T
25247 #ifndef __uint16_t_defined
25248 #define __uint16_t_defined
25249 typedef unsigned $acx_cv_type_int16_t uint16_t;
25250 #endif
25251 #endif
25252
25253 #ifndef _UINT32_T
25254 #define _UINT32_T
25255 #ifndef __uint32_t_defined
25256 #define __uint32_t_defined
25257 typedef unsigned $acx_cv_type_int32_t uint32_t;
25258 #endif
25259 #endif
25260
25261 #ifndef _INT8_T
25262 #define _INT8_T
25263 #ifndef __int8_t_defined
25264 #define __int8_t_defined
25265 typedef $acx_cv_type_int8_t int8_t;
25266 #endif
25267 #endif
25268
25269 #ifndef _INT16_T
25270 #define _INT16_T
25271 #ifndef __int16_t_defined
25272 #define __int16_t_defined
25273 typedef $acx_cv_type_int16_t int16_t;
25274 #endif
25275 #endif
25276
25277 #ifndef _INT32_T
25278 #define _INT32_T
25279 #ifndef __int32_t_defined
25280 #define __int32_t_defined
25281 typedef $acx_cv_type_int32_t int32_t;
25282 #endif
25283 #endif
25284EOF
25285elif test "$ac_cv_type_u_int32_t" = yes; then
25286 sed 's/^ *//' >> tmp-stdint.h <<EOF
25287
25288 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25289 #ifndef _INT8_T
25290 #define _INT8_T
25291 #endif
25292 #ifndef _INT16_T
25293 #define _INT16_T
25294 #endif
25295 #ifndef _INT32_T
25296 #define _INT32_T
25297 #endif
25298
25299 #ifndef _UINT8_T
25300 #define _UINT8_T
25301 #ifndef __uint8_t_defined
25302 #define __uint8_t_defined
25303 typedef u_int8_t uint8_t;
25304 #endif
25305 #endif
25306
25307 #ifndef _UINT16_T
25308 #define _UINT16_T
25309 #ifndef __uint16_t_defined
25310 #define __uint16_t_defined
25311 typedef u_int16_t uint16_t;
25312 #endif
25313 #endif
25314
25315 #ifndef _UINT32_T
25316 #define _UINT32_T
25317 #ifndef __uint32_t_defined
25318 #define __uint32_t_defined
25319 typedef u_int32_t uint32_t;
25320 #endif
25321 #endif
25322EOF
25323else
25324 sed 's/^ *//' >> tmp-stdint.h <<EOF
25325
25326 /* Some systems have guard macros to prevent redefinitions, define them. */
25327 #ifndef _INT8_T
25328 #define _INT8_T
25329 #endif
25330 #ifndef _INT16_T
25331 #define _INT16_T
25332 #endif
25333 #ifndef _INT32_T
25334 #define _INT32_T
25335 #endif
25336 #ifndef _UINT8_T
25337 #define _UINT8_T
25338 #endif
25339 #ifndef _UINT16_T
25340 #define _UINT16_T
25341 #endif
25342 #ifndef _UINT32_T
25343 #define _UINT32_T
25344 #endif
25345EOF
25346fi
25347
25348# ------------- done basic int types, emit int64_t types ------------
25349if test "$ac_cv_type_uint64_t" = yes; then
25350 sed 's/^ *//' >> tmp-stdint.h <<EOF
25351
25352 /* system headers have good uint64_t and int64_t */
25353 #ifndef _INT64_T
25354 #define _INT64_T
25355 #endif
25356 #ifndef _UINT64_T
25357 #define _UINT64_T
25358 #endif
25359EOF
25360elif test "$ac_cv_type_u_int64_t" = yes; then
25361 sed 's/^ *//' >> tmp-stdint.h <<EOF
25362
25363 /* system headers have an u_int64_t (and int64_t) */
25364 #ifndef _INT64_T
25365 #define _INT64_T
25366 #endif
25367 #ifndef _UINT64_T
25368 #define _UINT64_T
25369 #ifndef __uint64_t_defined
25370 #define __uint64_t_defined
25371 typedef u_int64_t uint64_t;
25372 #endif
25373 #endif
25374EOF
25375elif test -n "$acx_cv_type_int64_t"; then
25376 sed 's/^ *//' >> tmp-stdint.h <<EOF
25377
25378 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25379 #ifndef _INT64_T
25380 #define _INT64_T
25381 typedef $acx_cv_type_int64_t int64_t;
25382 #endif
25383 #ifndef _UINT64_T
25384 #define _UINT64_T
25385 #ifndef __uint64_t_defined
25386 #define __uint64_t_defined
25387 typedef unsigned $acx_cv_type_int64_t uint64_t;
25388 #endif
25389 #endif
25390EOF
25391else
25392 sed 's/^ *//' >> tmp-stdint.h <<EOF
25393
25394 /* some common heuristics for int64_t, using compiler-specific tests */
25395 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
25396 #ifndef _INT64_T
25397 #define _INT64_T
25398 #ifndef __int64_t_defined
25399 typedef long long int64_t;
25400 #endif
25401 #endif
25402 #ifndef _UINT64_T
25403 #define _UINT64_T
25404 typedef unsigned long long uint64_t;
25405 #endif
25406
25407 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
25408 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
25409 does not implement __extension__. But that compiler doesn't define
25410 __GNUC_MINOR__. */
25411 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
25412 # define __extension__
25413 # endif
25414
25415 # ifndef _INT64_T
25416 # define _INT64_T
25417 __extension__ typedef long long int64_t;
25418 # endif
25419 # ifndef _UINT64_T
25420 # define _UINT64_T
25421 __extension__ typedef unsigned long long uint64_t;
25422 # endif
25423
25424 #elif !defined __STRICT_ANSI__
25425 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
25426
25427 # ifndef _INT64_T
25428 # define _INT64_T
25429 typedef __int64 int64_t;
25430 # endif
25431 # ifndef _UINT64_T
25432 # define _UINT64_T
25433 typedef unsigned __int64 uint64_t;
25434 # endif
25435 # endif /* compiler */
25436
25437 #endif /* ANSI version */
25438EOF
25439fi
25440
25441# ------------- done int64_t types, emit intptr types ------------
25442if test "$ac_cv_type_uintptr_t" != yes; then
25443 sed 's/^ *//' >> tmp-stdint.h <<EOF
25444
25445 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
25446 #ifndef __uintptr_t_defined
25447 typedef u$acx_cv_type_intptr_t uintptr_t;
25448 #endif
25449 #ifndef __intptr_t_defined
25450 typedef $acx_cv_type_intptr_t intptr_t;
25451 #endif
25452EOF
25453fi
25454
25455# ------------- done intptr types, emit int_least types ------------
25456if test "$ac_cv_type_int_least32_t" != yes; then
25457 sed 's/^ *//' >> tmp-stdint.h <<EOF
25458
25459 /* Define int_least types */
25460 typedef int8_t int_least8_t;
25461 typedef int16_t int_least16_t;
25462 typedef int32_t int_least32_t;
25463 #ifdef _INT64_T
25464 typedef int64_t int_least64_t;
25465 #endif
25466
25467 typedef uint8_t uint_least8_t;
25468 typedef uint16_t uint_least16_t;
25469 typedef uint32_t uint_least32_t;
25470 #ifdef _UINT64_T
25471 typedef uint64_t uint_least64_t;
25472 #endif
25473EOF
25474fi
25475
25476# ------------- done intptr types, emit int_fast types ------------
25477if test "$ac_cv_type_int_fast32_t" != yes; then
25478 sed 's/^ *//' >> tmp-stdint.h <<EOF
25479
25480 /* Define int_fast types. short is often slow */
25481 typedef int8_t int_fast8_t;
25482 typedef int int_fast16_t;
25483 typedef int32_t int_fast32_t;
25484 #ifdef _INT64_T
25485 typedef int64_t int_fast64_t;
25486 #endif
25487
25488 typedef uint8_t uint_fast8_t;
25489 typedef unsigned int uint_fast16_t;
25490 typedef uint32_t uint_fast32_t;
25491 #ifdef _UINT64_T
25492 typedef uint64_t uint_fast64_t;
25493 #endif
25494EOF
25495fi
25496
25497if test "$ac_cv_type_uintmax_t" != yes; then
25498 sed 's/^ *//' >> tmp-stdint.h <<EOF
25499
25500 /* Define intmax based on what we found */
25501 #ifdef _INT64_T
25502 typedef int64_t intmax_t;
25503 #else
25504 typedef long intmax_t;
25505 #endif
25506 #ifdef _UINT64_T
25507 typedef uint64_t uintmax_t;
25508 #else
25509 typedef unsigned long uintmax_t;
25510 #endif
25511EOF
25512fi
25513
25514sed 's/^ *//' >> tmp-stdint.h <<EOF
25515
25516 #endif /* GCC_GENERATED_STDINT_H */
25517EOF
25518
25519if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
25520 rm -f tmp-stdint.h
25521else
25522 mv -f tmp-stdint.h bfd_stdint.h
25523fi
25524
25525 ;;
20e95c23
DJ
25526 default )
25527case "$srcdir" in
25528 .) srcdirpre= ;;
25529 *) srcdirpre='$(srcdir)/' ;;
25530esac
25531POFILES=
25532GMOFILES=
25533for lang in dummy $OBSOLETE_ALL_LINGUAS; do
25534 if test $lang != dummy; then
25535 POFILES="$POFILES $srcdirpre$lang.po"
25536 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25537 fi
25538done
25539sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
25540 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
25541 -e "s,@POFILES@,$POFILES," \
25542 -e "s,@GMOFILES@,$GMOFILES," \
25543 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
25544 esac
25545done
25546_ACEOF
25547
25548cat >>$CONFIG_STATUS <<\_ACEOF
25549
25550{ (exit 0); exit 0; }
25551_ACEOF
252b5132 25552chmod +x $CONFIG_STATUS
5464f5a1
NN
25553ac_clean_files=$ac_clean_files_save
25554
25555
25556# configure is writing to config.log, and then calls config.status.
25557# config.status does its own redirection, appending to config.log.
25558# Unfortunately, on DOS this fails, as config.log is still kept open
25559# by configure, so config.status won't be able to write to it; its
25560# output is simply discarded. So we exec the FD to /dev/null,
25561# effectively closing config.log, so it can be properly (re)opened and
25562# appended to by config.status. When coming back to configure, we
25563# need to make the FD available again.
25564if test "$no_create" != yes; then
25565 ac_cs_success=:
25566 ac_config_status_args=
25567 test "$silent" = yes &&
25568 ac_config_status_args="$ac_config_status_args --quiet"
25569 exec 5>/dev/null
25570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25571 exec 5>>config.log
25572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25573 # would make configure fail if this is the last instruction.
25574 $ac_cs_success || { (exit 1); exit 1; }
25575fi
252b5132 25576
55c80943 25577