]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/configure
* elf32-hppa.c (hppa32_elf_local_refcounts): New function.
[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
31dd3154 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG SHARED_LDFLAGS SHARED_LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size 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]
d053aef8 1007 --disable-largefile omit support for large files
d7040cdb
SE
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
5464f5a1
NN
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1014 --enable-targets alternative target configurations
6ec7057a 1015 --enable-secureplt Default to creating read-only plt entries
504b7d20 1016 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
241a6c40
AM
1017 --enable-werror treat compile warnings as errors
1018 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1019 --enable-maintainer-mode enable make rules and dependencies not useful
1020 (and sometimes confusing) to the casual installer
5464f5a1
NN
1021 --enable-install-libbfd controls installation of libbfd and related headers
1022 --disable-nls do not use Native Language Support
1023
1024Optional Packages:
1025 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1026 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1027 --with-pic try to use only PIC/non-PIC objects [default=use
1028 both]
1029 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1030 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1031 --with-separate-debug-dir=DIR
1032 Look for global separate debug info in DIR
1033 [default=LIBDIR/debug]
a1ac8190
JM
1034 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1035 Binutils"
c428fa83 1036 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
1037
1038Some influential environment variables:
1039 CC C compiler command
1040 CFLAGS C compiler flags
1041 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1042 nonstandard directory <lib dir>
1043 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1044 headers in a nonstandard directory <include dir>
1045 CPP C preprocessor
1046
1047Use these variables to override the choices made by `configure' or to help
1048it to find libraries and programs with nonstandard names/locations.
1049
1050_ACEOF
1051fi
1052
1053if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1055 ac_popdir=`pwd`
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1058 ac_builddir=.
1059
1060if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064else
1065 ac_dir_suffix= ac_top_builddir=
1066fi
1067
1068case $srcdir in
1069 .) # No --srcdir option. We are building in place.
1070 ac_srcdir=.
1071 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=.
1073 else
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 fi ;;
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1079 *) # Relative path.
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
1082esac
1083
5464f5a1
NN
1084# Do not use `cd foo && pwd` to compute absolute paths, because
1085# the directories may not exist.
1086case `pwd` in
1087.) ac_abs_builddir="$ac_dir";;
1088*)
1089 case "$ac_dir" in
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_top_builddir=${ac_top_builddir}.;;
1097*)
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102 esac;;
1103esac
1104case $ac_abs_builddir in
1105.) ac_abs_srcdir=$ac_srcdir;;
1106*)
1107 case $ac_srcdir in
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111 esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_srcdir=$ac_top_srcdir;;
1115*)
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120 esac;;
1121esac
6be7c12c 1122
5464f5a1
NN
1123 cd $ac_dir
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1126 echo
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1129 echo
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1133 echo
1134 $ac_configure --help
1135 else
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137 fi
7357c5b6 1138 cd $ac_popdir
5464f5a1 1139 done
6be7c12c
AO
1140fi
1141
5464f5a1
NN
1142test -n "$ac_init_help" && exit 0
1143if $ac_init_version; then
1144 cat <<\_ACEOF
6be7c12c 1145
5464f5a1
NN
1146Copyright (C) 2003 Free Software Foundation, Inc.
1147This configure script is free software; the Free Software Foundation
1148gives unlimited permission to copy, distribute and modify it.
1149_ACEOF
1150 exit 0
1151fi
1152exec 5>config.log
1153cat >&5 <<_ACEOF
1154This file contains any messages produced by compilers while
1155running configure, to aid debugging if configure makes a mistake.
6be7c12c 1156
5464f5a1
NN
1157It was created by $as_me, which was
1158generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1159
5464f5a1 1160 $ $0 $@
6be7c12c 1161
5464f5a1
NN
1162_ACEOF
1163{
1164cat <<_ASUNAME
1165## --------- ##
1166## Platform. ##
1167## --------- ##
1168
1169hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174
1175/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1177
1178/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1182/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1185
1186_ASUNAME
1187
1188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189for as_dir in $PATH
1190do
1191 IFS=$as_save_IFS
1192 test -z "$as_dir" && as_dir=.
1193 echo "PATH: $as_dir"
1194done
6be7c12c 1195
5464f5a1 1196} >&5
66e25bab 1197
5464f5a1 1198cat >&5 <<_ACEOF
b3baf5d0 1199
6be7c12c 1200
5464f5a1
NN
1201## ----------- ##
1202## Core tests. ##
1203## ----------- ##
252b5132 1204
5464f5a1 1205_ACEOF
c5d1701e 1206
6be7c12c 1207
5464f5a1
NN
1208# Keep a trace of the command line.
1209# Strip out --no-create and --no-recursion so they do not pile up.
1210# Strip out --silent because we don't want to record it for future runs.
1211# Also quote any args containing shell meta-characters.
1212# Make two passes to allow for proper duplicate-argument suppression.
1213ac_configure_args=
1214ac_configure_args0=
1215ac_configure_args1=
1216ac_sep=
1217ac_must_keep_next=false
1218for ac_pass in 1 2
1219do
1220 for ac_arg
1221 do
1222 case $ac_arg in
1223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 continue ;;
1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229 esac
1230 case $ac_pass in
1231 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232 2)
1233 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234 if test $ac_must_keep_next = true; then
1235 ac_must_keep_next=false # Got value, back to normal.
1236 else
1237 case $ac_arg in
1238 *=* | --config-cache | -C | -disable-* | --disable-* \
1239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241 | -with-* | --with-* | -without-* | --without-* | --x)
1242 case "$ac_configure_args0 " in
1243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244 esac
1245 ;;
1246 -* ) ac_must_keep_next=true ;;
1247 esac
1248 fi
1249 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250 # Get rid of the leading space.
1251 ac_sep=" "
1252 ;;
1253 esac
1254 done
1255done
1256$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258
1259# When interrupted or exit'd, cleanup temporary files, and complete
1260# config.log. We remove comments because anyway the quotes in there
1261# would cause problems or look ugly.
1262# WARNING: Be sure not to use single quotes in there, as some shells,
1263# such as our DU 5.0 friend, will then `close' the trap.
1264trap 'exit_status=$?
1265 # Save into config.log some information that might help in debugging.
1266 {
1267 echo
1268
1269 cat <<\_ASBOX
1270## ---------------- ##
1271## Cache variables. ##
1272## ---------------- ##
1273_ASBOX
1274 echo
1275 # The following way of writing the cache mishandles newlines in values,
1276{
1277 (set) 2>&1 |
1278 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279 *ac_space=\ *)
1280 sed -n \
1281 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283 ;;
1284 *)
1285 sed -n \
1286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1287 ;;
1288 esac;
1289}
1290 echo
1291
1292 cat <<\_ASBOX
1293## ----------------- ##
1294## Output variables. ##
1295## ----------------- ##
1296_ASBOX
1297 echo
1298 for ac_var in $ac_subst_vars
1299 do
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1302 done | sort
1303 echo
1304
1305 if test -n "$ac_subst_files"; then
1306 cat <<\_ASBOX
1307## ------------- ##
1308## Output files. ##
1309## ------------- ##
1310_ASBOX
1311 echo
1312 for ac_var in $ac_subst_files
1313 do
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1316 done | sort
1317 echo
1318 fi
1319
1320 if test -s confdefs.h; then
1321 cat <<\_ASBOX
1322## ----------- ##
1323## confdefs.h. ##
1324## ----------- ##
1325_ASBOX
1326 echo
1327 sed "/^$/d" confdefs.h | sort
1328 echo
1329 fi
1330 test "$ac_signal" != 0 &&
1331 echo "$as_me: caught signal $ac_signal"
1332 echo "$as_me: exit $exit_status"
1333 } >&5
1334 rm -f core *.core &&
1335 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336 exit $exit_status
1337 ' 0
1338for ac_signal in 1 2 13 15; do
1339 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340done
1341ac_signal=0
1342
1343# confdefs.h avoids OS command line length limits that DEFS can exceed.
1344rm -rf conftest* confdefs.h
1345# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346echo >confdefs.h
1347
1348# Predefined preprocessor variables.
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_NAME "$PACKAGE_NAME"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_VERSION "$PACKAGE_VERSION"
1362_ACEOF
1363
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_STRING "$PACKAGE_STRING"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372_ACEOF
1373
1374
1375# Let the site file select an alternate cache file if it wants to.
1376# Prefer explicitly selected file to automatically selected ones.
1377if test -z "$CONFIG_SITE"; then
1378 if test "x$prefix" != xNONE; then
1379 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380 else
1381 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382 fi
1383fi
1384for ac_site_file in $CONFIG_SITE; do
1385 if test -r "$ac_site_file"; then
1386 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387echo "$as_me: loading site script $ac_site_file" >&6;}
1388 sed 's/^/| /' "$ac_site_file" >&5
1389 . "$ac_site_file"
1390 fi
1391done
1392
1393if test -r "$cache_file"; then
1394 # Some versions of bash will fail to source /dev/null (special
1395 # files actually), so we avoid doing that.
1396 if test -f "$cache_file"; then
1397 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398echo "$as_me: loading cache $cache_file" >&6;}
1399 case $cache_file in
1400 [\\/]* | ?:[\\/]* ) . $cache_file;;
1401 *) . ./$cache_file;;
1402 esac
1403 fi
1404else
1405 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406echo "$as_me: creating cache $cache_file" >&6;}
1407 >$cache_file
1408fi
1409
1410# Check that the precious variables saved in the cache have kept the same
1411# value.
1412ac_cache_corrupted=false
1413for ac_var in `(set) 2>&1 |
1414 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416 eval ac_new_set=\$ac_env_${ac_var}_set
1417 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418 eval ac_new_val="\$ac_env_${ac_var}_value"
1419 case $ac_old_set,$ac_new_set in
1420 set,)
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1424 ,set)
1425 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427 ac_cache_corrupted=: ;;
1428 ,);;
1429 *)
1430 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1431 # differences in whitespace do not lead to failure.
1432 ac_old_val_w=`echo x $ac_old_val`
1433 ac_new_val_w=`echo x $ac_new_val`
1434 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1435 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
5464f5a1 1436echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1437 ac_cache_corrupted=:
1438 else
1439 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1440echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1441 eval $ac_var=\$ac_old_val
1442 fi
1443 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1444echo "$as_me: former value: \`$ac_old_val'" >&2;}
1445 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1446echo "$as_me: current value: \`$ac_new_val'" >&2;}
5464f5a1
NN
1447 fi;;
1448 esac
1449 # Pass precious variables to config.status.
1450 if test "$ac_new_set" = set; then
1451 case $ac_new_val in
1452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1453 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1454 *) ac_arg=$ac_var=$ac_new_val ;;
1455 esac
1456 case " $ac_configure_args " in
1457 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1458 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1459 esac
1460 fi
1461done
1462if $ac_cache_corrupted; then
7357c5b6
AM
1463 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1464echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
1465 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1466echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1467 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1468echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1469 { (exit 1); exit 1; }; }
1470fi
1471
1472ac_ext=c
1473ac_cpp='$CPP $CPPFLAGS'
1474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
7357c5b6
AM
1494
1495
1496
5464f5a1
NN
1497
1498
1499
1500
1501ac_aux_dir=
1502for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 break
1507 elif test -f $ac_dir/install.sh; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 break
1511 elif test -f $ac_dir/shtool; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 break
1515 fi
1516done
1517if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1521fi
1522ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526# Make sure we can run config.sub.
1527$ac_config_sub sun4 >/dev/null 2>&1 ||
1528 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530 { (exit 1); exit 1; }; }
1531
1532echo "$as_me:$LINENO: checking build system type" >&5
1533echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534if test "${ac_cv_build+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537 ac_cv_build_alias=$build_alias
1538test -z "$ac_cv_build_alias" &&
1539 ac_cv_build_alias=`$ac_config_guess`
1540test -z "$ac_cv_build_alias" &&
1541 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543 { (exit 1); exit 1; }; }
1544ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549fi
1550echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551echo "${ECHO_T}$ac_cv_build" >&6
1552build=$ac_cv_build
1553build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556
1557
1558echo "$as_me:$LINENO: checking host system type" >&5
1559echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 ac_cv_host_alias=$host_alias
1564test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571fi
1572echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573echo "${ECHO_T}$ac_cv_host" >&6
1574host=$ac_cv_host
1575host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580echo "$as_me:$LINENO: checking target system type" >&5
1581echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 ac_cv_target_alias=$target_alias
1586test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1592
1593fi
1594echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595echo "${ECHO_T}$ac_cv_target" >&6
1596target=$ac_cv_target
1597target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600
1601
1602# The aliases save the names the user supplied, while $host etc.
1603# will get canonicalized.
1604test -n "$target_alias" &&
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1606 NONENONEs,x,x, &&
1607 program_prefix=${target_alias}-
1608ac_ext=c
1609ac_cpp='$CPP $CPPFLAGS'
1610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1612ac_compiler_gnu=$ac_cv_c_compiler_gnu
1613if test -n "$ac_tool_prefix"; then
1614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1615set dummy ${ac_tool_prefix}gcc; ac_word=$2
1616echo "$as_me:$LINENO: checking for $ac_word" >&5
1617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618if test "${ac_cv_prog_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1623else
1624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625for as_dir in $PATH
1626do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1634 fi
1635done
1636done
1637
1638fi
1639fi
1640CC=$ac_cv_prog_CC
1641if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643echo "${ECHO_T}$CC" >&6
1644else
1645 echo "$as_me:$LINENO: result: no" >&5
1646echo "${ECHO_T}no" >&6
1647fi
1648
1649fi
1650if test -z "$ac_cv_prog_CC"; then
1651 ac_ct_CC=$CC
1652 # Extract the first word of "gcc", so it can be a program name with args.
1653set dummy gcc; ac_word=$2
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659 if test -n "$ac_ct_CC"; then
1660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_ac_ct_CC="gcc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673done
1674done
1675
1676fi
1677fi
1678ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679if test -n "$ac_ct_CC"; then
1680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1681echo "${ECHO_T}$ac_ct_CC" >&6
1682else
1683 echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685fi
1686
1687 CC=$ac_ct_CC
1688else
1689 CC="$ac_cv_prog_CC"
1690fi
1691
1692if test -z "$CC"; then
1693 if test -n "$ac_tool_prefix"; then
1694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1695set dummy ${ac_tool_prefix}cc; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701 if test -n "$CC"; then
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_CC="${ac_tool_prefix}cc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1714 fi
1715done
1716done
1717
1718fi
1719fi
1720CC=$ac_cv_prog_CC
1721if test -n "$CC"; then
1722 echo "$as_me:$LINENO: result: $CC" >&5
1723echo "${ECHO_T}$CC" >&6
1724else
1725 echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729fi
1730if test -z "$ac_cv_prog_CC"; then
1731 ac_ct_CC=$CC
1732 # Extract the first word of "cc", so it can be a program name with args.
1733set dummy cc; ac_word=$2
1734echo "$as_me:$LINENO: checking for $ac_word" >&5
1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741else
1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743for as_dir in $PATH
1744do
1745 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="cc"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 break 2
1752 fi
1753done
1754done
1755
1756fi
1757fi
1758ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761echo "${ECHO_T}$ac_ct_CC" >&6
1762else
1763 echo "$as_me:$LINENO: result: no" >&5
1764echo "${ECHO_T}no" >&6
1765fi
1766
1767 CC=$ac_ct_CC
1768else
1769 CC="$ac_cv_prog_CC"
1770fi
1771
1772fi
1773if test -z "$CC"; then
1774 # Extract the first word of "cc", so it can be a program name with args.
1775set dummy cc; ac_word=$2
1776echo "$as_me:$LINENO: checking for $ac_word" >&5
1777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778if test "${ac_cv_prog_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780else
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC="$CC" # Let the user override the test.
1783else
1784 ac_prog_rejected=no
1785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786for as_dir in $PATH
1787do
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1793 ac_prog_rejected=yes
1794 continue
1795 fi
1796 ac_cv_prog_CC="cc"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 break 2
1799 fi
1800done
1801done
1802
1803if test $ac_prog_rejected = yes; then
1804 # We found a bogon in the path, so make sure we never use it.
1805 set dummy $ac_cv_prog_CC
1806 shift
1807 if test $# != 0; then
1808 # We chose a different compiler from the bogus one.
1809 # However, it has the same basename, so the bogon will be chosen
1810 # first if we set CC to just the basename; use the full file name.
1811 shift
1812 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1813 fi
1814fi
1815fi
1816fi
1817CC=$ac_cv_prog_CC
1818if test -n "$CC"; then
1819 echo "$as_me:$LINENO: result: $CC" >&5
1820echo "${ECHO_T}$CC" >&6
1821else
1822 echo "$as_me:$LINENO: result: no" >&5
1823echo "${ECHO_T}no" >&6
1824fi
1825
1826fi
1827if test -z "$CC"; then
1828 if test -n "$ac_tool_prefix"; then
1829 for ac_prog in cl
1830 do
1831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1832set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1833echo "$as_me:$LINENO: checking for $ac_word" >&5
1834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837else
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC="$CC" # Let the user override the test.
1840else
1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842for as_dir in $PATH
1843do
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1851 fi
1852done
1853done
1854
1855fi
1856fi
1857CC=$ac_cv_prog_CC
1858if test -n "$CC"; then
1859 echo "$as_me:$LINENO: result: $CC" >&5
1860echo "${ECHO_T}$CC" >&6
1861else
1862 echo "$as_me:$LINENO: result: no" >&5
1863echo "${ECHO_T}no" >&6
1864fi
1865
1866 test -n "$CC" && break
1867 done
1868fi
1869if test -z "$CC"; then
1870 ac_ct_CC=$CC
1871 for ac_prog in cl
1872do
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874set dummy $ac_prog; ac_word=$2
1875echo "$as_me:$LINENO: checking for $ac_word" >&5
1876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879else
1880 if test -n "$ac_ct_CC"; then
1881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1882else
1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884for as_dir in $PATH
1885do
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_ac_ct_CC="$ac_prog"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1893 fi
1894done
1895done
1896
1897fi
1898fi
1899ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900if test -n "$ac_ct_CC"; then
1901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1902echo "${ECHO_T}$ac_ct_CC" >&6
1903else
1904 echo "$as_me:$LINENO: result: no" >&5
1905echo "${ECHO_T}no" >&6
1906fi
1907
1908 test -n "$ac_ct_CC" && break
1909done
1910
1911 CC=$ac_ct_CC
1912fi
1913
1914fi
1915
1916
7357c5b6
AM
1917test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1918echo "$as_me: error: in \`$ac_pwd':" >&2;}
1919{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5464f5a1
NN
1920See \`config.log' for more details." >&5
1921echo "$as_me: error: no acceptable C compiler found in \$PATH
1922See \`config.log' for more details." >&2;}
7357c5b6 1923 { (exit 1); exit 1; }; }; }
5464f5a1
NN
1924
1925# Provide some information about the compiler.
1926echo "$as_me:$LINENO:" \
1927 "checking for C compiler version" >&5
1928ac_compiler=`set X $ac_compile; echo $2`
1929{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1930 (eval $ac_compiler --version </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1935 (eval $ac_compiler -v </dev/null >&5) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1939{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1940 (eval $ac_compiler -V </dev/null >&5) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }
1944
1945cat >conftest.$ac_ext <<_ACEOF
1946/* confdefs.h. */
1947_ACEOF
1948cat confdefs.h >>conftest.$ac_ext
1949cat >>conftest.$ac_ext <<_ACEOF
1950/* end confdefs.h. */
1951
1952int
1953main ()
1954{
1955
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960ac_clean_files_save=$ac_clean_files
1961ac_clean_files="$ac_clean_files a.out a.exe b.out"
1962# Try to create an executable without -o first, disregard a.out.
1963# It will help us diagnose broken compilers, and finding out an intuition
1964# of exeext.
1965echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1966echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1967ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1968if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1969 (eval $ac_link_default) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; then
1973 # Find the output, starting from the most likely. This scheme is
1974# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1975# resort.
1976
1977# Be careful to initialize this variable, since it used to be cached.
1978# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1979ac_cv_exeext=
1980# b.out is created by i960 compilers.
1981for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1982do
1983 test -f "$ac_file" || continue
1984 case $ac_file in
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1986 ;;
1987 conftest.$ac_ext )
1988 # This is the source file.
1989 ;;
1990 [ab].out )
1991 # We found the default executable, but exeext='' is most
1992 # certainly right.
1993 break;;
1994 *.* )
1995 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1996 # FIXME: I believe we export ac_cv_exeext for Libtool,
1997 # but it would be cool to find out if it's true. Does anybody
1998 # maintain Libtool? --akim.
1999 export ac_cv_exeext
2000 break;;
2001 * )
2002 break;;
2003 esac
2004done
2005else
2006 echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
7357c5b6
AM
2009{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2010echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
2011{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2012See \`config.log' for more details." >&5
2013echo "$as_me: error: C compiler cannot create executables
2014See \`config.log' for more details." >&2;}
7357c5b6 2015 { (exit 77); exit 77; }; }; }
5464f5a1
NN
2016fi
2017
2018ac_exeext=$ac_cv_exeext
2019echo "$as_me:$LINENO: result: $ac_file" >&5
2020echo "${ECHO_T}$ac_file" >&6
2021
2022# Check the compiler produces executables we can run. If not, either
2023# the compiler is broken, or we cross compile.
2024echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2025echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2026# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2027# If not cross compiling, check that we can run a simple program.
2028if test "$cross_compiling" != yes; then
2029 if { ac_try='./$ac_file'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 (eval $ac_try) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; }; then
2035 cross_compiling=no
2036 else
2037 if test "$cross_compiling" = maybe; then
2038 cross_compiling=yes
2039 else
7357c5b6
AM
2040 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2041echo "$as_me: error: in \`$ac_pwd':" >&2;}
2042{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5464f5a1
NN
2043If you meant to cross compile, use \`--host'.
2044See \`config.log' for more details." >&5
2045echo "$as_me: error: cannot run C compiled programs.
2046If you meant to cross compile, use \`--host'.
2047See \`config.log' for more details." >&2;}
7357c5b6 2048 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2049 fi
2050 fi
2051fi
2052echo "$as_me:$LINENO: result: yes" >&5
2053echo "${ECHO_T}yes" >&6
2054
2055rm -f a.out a.exe conftest$ac_cv_exeext b.out
2056ac_clean_files=$ac_clean_files_save
2057# Check the compiler produces executables we can run. If not, either
2058# the compiler is broken, or we cross compile.
2059echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2060echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2061echo "$as_me:$LINENO: result: $cross_compiling" >&5
2062echo "${ECHO_T}$cross_compiling" >&6
2063
2064echo "$as_me:$LINENO: checking for suffix of executables" >&5
2065echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2067 (eval $ac_link) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; then
2071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2072# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2073# work properly (i.e., refer to `conftest.exe'), while it won't with
2074# `rm'.
2075for ac_file in conftest.exe conftest conftest.*; do
2076 test -f "$ac_file" || continue
2077 case $ac_file in
2078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2080 export ac_cv_exeext
2081 break;;
2082 * ) break;;
2083 esac
2084done
2085else
7357c5b6
AM
2086 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2087echo "$as_me: error: in \`$ac_pwd':" >&2;}
2088{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5464f5a1
NN
2089See \`config.log' for more details." >&5
2090echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2091See \`config.log' for more details." >&2;}
7357c5b6 2092 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2093fi
2094
2095rm -f conftest$ac_cv_exeext
2096echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2097echo "${ECHO_T}$ac_cv_exeext" >&6
2098
2099rm -f conftest.$ac_ext
2100EXEEXT=$ac_cv_exeext
2101ac_exeext=$EXEEXT
2102echo "$as_me:$LINENO: checking for suffix of object files" >&5
2103echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2104if test "${ac_cv_objext+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
2107 cat >conftest.$ac_ext <<_ACEOF
2108/* confdefs.h. */
2109_ACEOF
2110cat confdefs.h >>conftest.$ac_ext
2111cat >>conftest.$ac_ext <<_ACEOF
2112/* end confdefs.h. */
2113
2114int
2115main ()
2116{
2117
2118 ;
2119 return 0;
2120}
2121_ACEOF
2122rm -f conftest.o conftest.obj
2123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124 (eval $ac_compile) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2129 case $ac_file in
2130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2132 break;;
2133 esac
2134done
2135else
2136 echo "$as_me: failed program was:" >&5
2137sed 's/^/| /' conftest.$ac_ext >&5
2138
7357c5b6
AM
2139{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2140echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
2141{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2142See \`config.log' for more details." >&5
2143echo "$as_me: error: cannot compute suffix of object files: cannot compile
2144See \`config.log' for more details." >&2;}
7357c5b6 2145 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2146fi
2147
2148rm -f conftest.$ac_cv_objext conftest.$ac_ext
2149fi
2150echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2151echo "${ECHO_T}$ac_cv_objext" >&6
2152OBJEXT=$ac_cv_objext
2153ac_objext=$OBJEXT
2154echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2155echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2156if test "${ac_cv_c_compiler_gnu+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159 cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h. */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h. */
2165
2166int
2167main ()
2168{
2169#ifndef __GNUC__
2170 choke me
2171#endif
2172
2173 ;
2174 return 0;
2175}
2176_ACEOF
2177rm -f conftest.$ac_objext
2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>conftest.er1
2180 ac_status=$?
2181 grep -v '^ *+' conftest.er1 >conftest.err
2182 rm -f conftest.er1
2183 cat conftest.err >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
7357c5b6
AM
2186 { ac_try='test -z "$ac_c_werror_flag"
2187 || test ! -s conftest.err'
5464f5a1
NN
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; } &&
2193 { ac_try='test -s conftest.$ac_objext'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 (eval $ac_try) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; }; then
2199 ac_compiler_gnu=yes
2200else
2201 echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204ac_compiler_gnu=no
2205fi
2206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207ac_cv_c_compiler_gnu=$ac_compiler_gnu
2208
2209fi
2210echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212GCC=`test $ac_compiler_gnu = yes && echo yes`
2213ac_test_CFLAGS=${CFLAGS+set}
2214ac_save_CFLAGS=$CFLAGS
2215CFLAGS="-g"
2216echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218if test "${ac_cv_prog_cc_g+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221 cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h. */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h. */
2227
2228int
2229main ()
2230{
2231
2232 ;
2233 return 0;
2234}
2235_ACEOF
2236rm -f conftest.$ac_objext
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>conftest.er1
2239 ac_status=$?
2240 grep -v '^ *+' conftest.er1 >conftest.err
2241 rm -f conftest.er1
2242 cat conftest.err >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } &&
7357c5b6
AM
2245 { ac_try='test -z "$ac_c_werror_flag"
2246 || test ! -s conftest.err'
5464f5a1
NN
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; } &&
2252 { ac_try='test -s conftest.$ac_objext'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 (eval $ac_try) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2258 ac_cv_prog_cc_g=yes
2259else
2260 echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263ac_cv_prog_cc_g=no
2264fi
2265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269if test "$ac_test_CFLAGS" = set; then
2270 CFLAGS=$ac_save_CFLAGS
2271elif test $ac_cv_prog_cc_g = yes; then
2272 if test "$GCC" = yes; then
2273 CFLAGS="-g -O2"
2274 else
2275 CFLAGS="-g"
2276 fi
2277else
2278 if test "$GCC" = yes; then
2279 CFLAGS="-O2"
2280 else
2281 CFLAGS=
2282 fi
2283fi
2284echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2285echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2286if test "${ac_cv_prog_cc_stdc+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289 ac_cv_prog_cc_stdc=no
2290ac_save_CC=$CC
2291cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h. */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h. */
2297#include <stdarg.h>
2298#include <stdio.h>
2299#include <sys/types.h>
2300#include <sys/stat.h>
2301/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2302struct buf { int x; };
2303FILE * (*rcsopen) (struct buf *, struct stat *, int);
2304static char *e (p, i)
2305 char **p;
2306 int i;
2307{
2308 return p[i];
2309}
2310static char *f (char * (*g) (char **, int), char **p, ...)
2311{
2312 char *s;
2313 va_list v;
2314 va_start (v,p);
2315 s = g (p, va_arg (v,int));
2316 va_end (v);
2317 return s;
2318}
2319
2320/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2321 function prototypes and stuff, but not '\xHH' hex character constants.
2322 These don't provoke an error unfortunately, instead are silently treated
2323 as 'x'. The following induces an error, until -std1 is added to get
2324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2325 array size at least. It's necessary to write '\x00'==0 to get something
2326 that's true only with -std1. */
2327int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2328
2329int test (int i, double x);
2330struct s1 {int (*f) (int a);};
2331struct s2 {int (*f) (double a);};
2332int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2333int argc;
2334char **argv;
2335int
2336main ()
2337{
2338return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2339 ;
2340 return 0;
2341}
2342_ACEOF
2343# Don't try gcc -ansi; that turns off useful extensions and
2344# breaks some systems' header files.
2345# AIX -qlanglvl=ansi
2346# Ultrix and OSF/1 -std1
2347# HP-UX 10.20 and later -Ae
2348# HP-UX older versions -Aa -D_HPUX_SOURCE
2349# SVR4 -Xc -D__EXTENSIONS__
2350for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2351do
2352 CC="$ac_save_CC $ac_arg"
2353 rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>conftest.er1
2356 ac_status=$?
2357 grep -v '^ *+' conftest.er1 >conftest.err
2358 rm -f conftest.er1
2359 cat conftest.err >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
7357c5b6
AM
2362 { ac_try='test -z "$ac_c_werror_flag"
2363 || test ! -s conftest.err'
5464f5a1
NN
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try='test -s conftest.$ac_objext'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 ac_cv_prog_cc_stdc=$ac_arg
2376break
2377else
2378 echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381fi
2382rm -f conftest.err conftest.$ac_objext
2383done
2384rm -f conftest.$ac_ext conftest.$ac_objext
2385CC=$ac_save_CC
2386
2387fi
2388
2389case "x$ac_cv_prog_cc_stdc" in
2390 x|xno)
2391 echo "$as_me:$LINENO: result: none needed" >&5
2392echo "${ECHO_T}none needed" >&6 ;;
2393 *)
2394 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2395echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2396 CC="$CC $ac_cv_prog_cc_stdc" ;;
2397esac
2398
2399# Some people use a C++ compiler to compile C. Since we use `exit',
2400# in C++ we need to declare it. In case someone uses the same compiler
2401# for both compiling C and C++ we need to have the C++ compiler decide
2402# the declaration of exit, since it's the most demanding environment.
2403cat >conftest.$ac_ext <<_ACEOF
2404#ifndef __cplusplus
2405 choke me
2406#endif
2407_ACEOF
2408rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>conftest.er1
2411 ac_status=$?
2412 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
7357c5b6
AM
2417 { ac_try='test -z "$ac_c_werror_flag"
2418 || test ! -s conftest.err'
5464f5a1
NN
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 for ac_declaration in \
2431 '' \
2432 'extern "C" void std::exit (int) throw (); using std::exit;' \
2433 'extern "C" void std::exit (int); using std::exit;' \
2434 'extern "C" void exit (int) throw ();' \
2435 'extern "C" void exit (int);' \
2436 'void exit (int);'
2437do
2438 cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h. */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h. */
2444$ac_declaration
2445#include <stdlib.h>
2446int
2447main ()
2448{
2449exit (42);
2450 ;
2451 return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
7357c5b6
AM
2463 { ac_try='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
5464f5a1
NN
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 :
2477else
2478 echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481continue
2482fi
2483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484 cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
2490$ac_declaration
2491int
2492main ()
2493{
2494exit (42);
2495 ;
2496 return 0;
2497}
2498_ACEOF
2499rm -f conftest.$ac_objext
2500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
7357c5b6
AM
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
5464f5a1
NN
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 break
2522else
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528done
2529rm -f conftest*
2530if test -n "$ac_declaration"; then
2531 echo '#ifdef __cplusplus' >>confdefs.h
2532 echo $ac_declaration >>confdefs.h
2533 echo '#endif' >>confdefs.h
2534fi
2535
2536else
2537 echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540fi
2541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542ac_ext=c
2543ac_cpp='$CPP $CPPFLAGS'
2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548
f5385ebf
AM
2549echo "$as_me:$LINENO: checking for library containing strerror" >&5
2550echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2551if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553else
f5385ebf
AM
2554 ac_func_search_save_LIBS=$LIBS
2555ac_cv_search_strerror=no
5464f5a1
NN
2556cat >conftest.$ac_ext <<_ACEOF
2557/* confdefs.h. */
2558_ACEOF
2559cat confdefs.h >>conftest.$ac_ext
2560cat >>conftest.$ac_ext <<_ACEOF
2561/* end confdefs.h. */
2562
2563/* Override any gcc2 internal prototype to avoid an error. */
2564#ifdef __cplusplus
2565extern "C"
2566#endif
2567/* We use char because int might match the return type of a gcc2
2568 builtin and then its argument prototype would still apply. */
2569char strerror ();
2570int
2571main ()
2572{
2573strerror ();
2574 ;
2575 return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext conftest$ac_exeext
2579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580 (eval $ac_link) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
7357c5b6
AM
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
5464f5a1
NN
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest$ac_exeext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
f5385ebf 2600 ac_cv_search_strerror="none required"
5464f5a1
NN
2601else
2602 echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
5464f5a1
NN
2605fi
2606rm -f conftest.err conftest.$ac_objext \
2607 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2608if test "$ac_cv_search_strerror" = no; then
2609 for ac_lib in cposix; do
2610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2611 cat >conftest.$ac_ext <<_ACEOF
2612/* confdefs.h. */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h. */
2617
2618/* Override any gcc2 internal prototype to avoid an error. */
2619#ifdef __cplusplus
2620extern "C"
2621#endif
2622/* We use char because int might match the return type of a gcc2
2623 builtin and then its argument prototype would still apply. */
2624char strerror ();
2625int
2626main ()
2627{
2628strerror ();
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633rm -f conftest.$ac_objext conftest$ac_exeext
2634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2635 (eval $ac_link) 2>conftest.er1
2636 ac_status=$?
2637 grep -v '^ *+' conftest.er1 >conftest.err
2638 rm -f conftest.er1
2639 cat conftest.err >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
7357c5b6
AM
2642 { ac_try='test -z "$ac_c_werror_flag"
2643 || test ! -s conftest.err'
f5385ebf
AM
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; } &&
2649 { ac_try='test -s conftest$ac_exeext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2655 ac_cv_search_strerror="-l$ac_lib"
2656break
2657else
2658 echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
5464f5a1 2661fi
f5385ebf
AM
2662rm -f conftest.err conftest.$ac_objext \
2663 conftest$ac_exeext conftest.$ac_ext
2664 done
5464f5a1 2665fi
f5385ebf
AM
2666LIBS=$ac_func_search_save_LIBS
2667fi
2668echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2669echo "${ECHO_T}$ac_cv_search_strerror" >&6
2670if test "$ac_cv_search_strerror" != no; then
2671 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2672
f5385ebf 2673fi
5464f5a1
NN
2674
2675
f5385ebf 2676am__api_version="1.9"
5464f5a1
NN
2677# Find a good install program. We prefer a C program (faster),
2678# so one script is as good as another. But avoid the broken or
2679# incompatible versions:
2680# SysV /etc/install, /usr/sbin/install
2681# SunOS /usr/etc/install
2682# IRIX /sbin/install
2683# AIX /bin/install
2684# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2685# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2686# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2687# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2688# OS/2's system install, which has a completely different semantic
252b5132 2689# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2690# Reject install programs that cannot install multiple files.
5464f5a1
NN
2691echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2692echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2693if test -z "$INSTALL"; then
5464f5a1
NN
2694if test "${ac_cv_path_install+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2696else
5464f5a1
NN
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 # Account for people who put trailing slashes in PATH elements.
2703case $as_dir/ in
2704 ./ | .// | /cC/* | \
2705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2706 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2707 /usr/ucb/* ) ;;
2708 *)
2709 # OSF1 and SCO ODT 3.0 have their own names for install.
2710 # Don't use installbsd from OSF since it installs stuff as root
2711 # by default.
2712 for ac_prog in ginstall scoinst install; do
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2715 if test $ac_prog = install &&
5464f5a1 2716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2717 # AIX install. It has an incompatible calling convention.
2718 :
5464f5a1
NN
2719 elif test $ac_prog = install &&
2720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2721 # program-specific install script used by HP pwplus--don't use.
2722 :
252b5132 2723 else
58c85be7
RW
2724 rm -rf conftest.one conftest.two conftest.dir
2725 echo one > conftest.one
2726 echo two > conftest.two
2727 mkdir conftest.dir
2728 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2729 test -s conftest.one && test -s conftest.two &&
2730 test -s conftest.dir/conftest.one &&
2731 test -s conftest.dir/conftest.two
2732 then
2733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2734 break 3
2735 fi
252b5132
RH
2736 fi
2737 fi
2738 done
5464f5a1
NN
2739 done
2740 ;;
2741esac
2742done
2743
58c85be7 2744rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2745
2746fi
2747 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2748 INSTALL=$ac_cv_path_install
252b5132 2749 else
58c85be7
RW
2750 # As a last resort, use the slow shell script. Don't cache a
2751 # value for INSTALL within a source directory, because that will
252b5132 2752 # break other packages using the cache if that directory is
58c85be7 2753 # removed, or if the value is a relative name.
5464f5a1 2754 INSTALL=$ac_install_sh
252b5132
RH
2755 fi
2756fi
5464f5a1
NN
2757echo "$as_me:$LINENO: result: $INSTALL" >&5
2758echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2759
2760# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761# It thinks the first close brace ends the variable substitution.
2762test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2763
5464f5a1 2764test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2765
2766test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2767
5464f5a1
NN
2768echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2769echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2770# Just in case
2771sleep 1
f5385ebf 2772echo timestamp > conftest.file
252b5132
RH
2773# Do `set' in a subshell so we don't clobber the current shell's
2774# arguments. Must try -L first in case configure is actually a
2775# symlink; some systems play weird games with the mod time of symlinks
2776# (eg FreeBSD returns the mod time of the symlink's containing
2777# directory).
2778if (
f5385ebf 2779 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2780 if test "$*" = "X"; then
2781 # -L didn't work.
f5385ebf 2782 set X `ls -t $srcdir/configure conftest.file`
252b5132 2783 fi
f5385ebf
AM
2784 rm -f conftest.file
2785 if test "$*" != "X $srcdir/configure conftest.file" \
2786 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2787
2788 # If neither matched, then we have a broken ls. This can happen
2789 # if, for instance, CONFIG_SHELL is bash and it inherits a
2790 # broken ls alias from the environment. This has actually
2791 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2792 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2793alias in your environment" >&5
2794echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2795alias in your environment" >&2;}
2796 { (exit 1); exit 1; }; }
252b5132
RH
2797 fi
2798
f5385ebf 2799 test "$2" = conftest.file
252b5132
RH
2800 )
2801then
2802 # Ok.
2803 :
2804else
5464f5a1
NN
2805 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2806Check your system clock" >&5
2807echo "$as_me: error: newly created file is older than distributed files!
2808Check your system clock" >&2;}
2809 { (exit 1); exit 1; }; }
252b5132 2810fi
5464f5a1
NN
2811echo "$as_me:$LINENO: result: yes" >&5
2812echo "${ECHO_T}yes" >&6
252b5132 2813test "$program_prefix" != NONE &&
5464f5a1 2814 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2815# Use a double $ so make ignores it.
2816test "$program_suffix" != NONE &&
5464f5a1
NN
2817 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2818# Double any \ or $. echo might interpret backslashes.
2819# By default was `s,x,x', remove it if useless.
2820cat <<\_ACEOF >conftest.sed
2821s/[\\$]/&&/g;s/;s,x,x,$//
2822_ACEOF
2823program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2824rm conftest.sed
2825
f5385ebf
AM
2826# expand $ac_aux_dir to an absolute path
2827am_aux_dir=`cd $ac_aux_dir && pwd`
2828
2829test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2830# Use eval to expand $SHELL
2831if eval "$MISSING --run true"; then
2832 am_missing_run="$MISSING --run "
2833else
2834 am_missing_run=
2835 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2836echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2837fi
2838
2839if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2840 # We used to keeping the `.' as first argument, in order to
2841 # allow $(mkdir_p) to be used without argument. As in
2842 # $(mkdir_p) $(somedir)
2843 # where $(somedir) is conditionally defined. However this is wrong
2844 # for two reasons:
2845 # 1. if the package is installed by a user who cannot write `.'
2846 # make install will fail,
2847 # 2. the above comment should most certainly read
2848 # $(mkdir_p) $(DESTDIR)$(somedir)
2849 # so it does not work when $(somedir) is undefined and
2850 # $(DESTDIR) is not.
2851 # To support the latter case, we have to write
2852 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2853 # so the `.' trick is pointless.
2854 mkdir_p='mkdir -p --'
2855else
2856 # On NextStep and OpenStep, the `mkdir' command does not
2857 # recognize any option. It will interpret all options as
2858 # directories to create, and then abort because `.' already
2859 # exists.
2860 for d in ./-p ./--version;
2861 do
2862 test -d $d && rmdir $d
2863 done
2864 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2865 if test -f "$ac_aux_dir/mkinstalldirs"; then
2866 mkdir_p='$(mkinstalldirs)'
2867 else
2868 mkdir_p='$(install_sh) -d'
2869 fi
2870fi
2871
2872for ac_prog in gawk mawk nawk awk
2873do
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875set dummy $ac_prog; ac_word=$2
2876echo "$as_me:$LINENO: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878if test "${ac_cv_prog_AWK+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 if test -n "$AWK"; then
2882 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_AWK="$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895done
2896done
2897
2898fi
2899fi
2900AWK=$ac_cv_prog_AWK
2901if test -n "$AWK"; then
2902 echo "$as_me:$LINENO: result: $AWK" >&5
2903echo "${ECHO_T}$AWK" >&6
2904else
2905 echo "$as_me:$LINENO: result: no" >&5
2906echo "${ECHO_T}no" >&6
2907fi
2908
2909 test -n "$AWK" && break
2910done
2911
5464f5a1
NN
2912echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2913echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2914set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2915if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918 cat >conftest.make <<\_ACEOF
252b5132 2919all:
5464f5a1
NN
2920 @echo 'ac_maketemp="$(MAKE)"'
2921_ACEOF
252b5132 2922# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2923eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2924if test -n "$ac_maketemp"; then
2925 eval ac_cv_prog_make_${ac_make}_set=yes
2926else
2927 eval ac_cv_prog_make_${ac_make}_set=no
2928fi
5464f5a1 2929rm -f conftest.make
252b5132
RH
2930fi
2931if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2932 echo "$as_me:$LINENO: result: yes" >&5
2933echo "${ECHO_T}yes" >&6
252b5132
RH
2934 SET_MAKE=
2935else
5464f5a1
NN
2936 echo "$as_me:$LINENO: result: no" >&5
2937echo "${ECHO_T}no" >&6
252b5132
RH
2938 SET_MAKE="MAKE=${MAKE-make}"
2939fi
2940
f5385ebf
AM
2941rm -rf .tst 2>/dev/null
2942mkdir .tst 2>/dev/null
2943if test -d .tst; then
2944 am__leading_dot=.
2945else
2946 am__leading_dot=_
2947fi
2948rmdir .tst 2>/dev/null
2949
2950DEPDIR="${am__leading_dot}deps"
2951
2952 ac_config_commands="$ac_config_commands depfiles"
2953
2954
2955am_make=${MAKE-make}
2956cat > confinc << 'END'
2957am__doit:
2958 @echo done
2959.PHONY: am__doit
2960END
2961# If we don't find an include directive, just comment out the code.
2962echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2963echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2964am__include="#"
2965am__quote=
2966_am_result=none
2967# First try GNU make style include.
2968echo "include confinc" > confmf
2969# We grep out `Entering directory' and `Leaving directory'
2970# messages which can occur if `w' ends up in MAKEFLAGS.
2971# In particular we don't look at `^make:' because GNU make might
2972# be invoked under some other name (usually "gmake"), in which
2973# case it prints its new name instead of `make'.
2974if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2975 am__include=include
2976 am__quote=
2977 _am_result=GNU
2978fi
2979# Now try BSD make style include.
2980if test "$am__include" = "#"; then
2981 echo '.include "confinc"' > confmf
2982 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2983 am__include=.include
2984 am__quote="\""
2985 _am_result=BSD
2986 fi
2987fi
2988
2989
2990echo "$as_me:$LINENO: result: $_am_result" >&5
2991echo "${ECHO_T}$_am_result" >&6
2992rm -f confinc confmf
2993
2994# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2995if test "${enable_dependency_tracking+set}" = set; then
2996 enableval="$enable_dependency_tracking"
2997
2998fi;
2999if test "x$enable_dependency_tracking" != xno; then
3000 am_depcomp="$ac_aux_dir/depcomp"
3001 AMDEPBACKSLASH='\'
3002fi
3003
3004
3005if test "x$enable_dependency_tracking" != xno; then
3006 AMDEP_TRUE=
3007 AMDEP_FALSE='#'
3008else
3009 AMDEP_TRUE='#'
3010 AMDEP_FALSE=
3011fi
6be7c12c 3012
252b5132 3013
252b5132 3014
f5385ebf
AM
3015# test to see if srcdir already configured
3016if test "`cd $srcdir && pwd`" != "`pwd`" &&
3017 test -f $srcdir/config.status; then
5464f5a1
NN
3018 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3019echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3020 { (exit 1); exit 1; }; }
252b5132 3021fi
5464f5a1 3022
f5385ebf
AM
3023# test whether we have cygpath
3024if test -z "$CYGPATH_W"; then
3025 if (cygpath --version) >/dev/null 2>/dev/null; then
3026 CYGPATH_W='cygpath -w'
3027 else
3028 CYGPATH_W=echo
3029 fi
3030fi
3031
3032
3033# Define the identity of the package.
3034 PACKAGE=bfd
ae5a3597 3035 VERSION=2.19.51
f5385ebf
AM
3036
3037
5464f5a1 3038cat >>confdefs.h <<_ACEOF
252b5132 3039#define PACKAGE "$PACKAGE"
5464f5a1 3040_ACEOF
252b5132 3041
5464f5a1
NN
3042
3043cat >>confdefs.h <<_ACEOF
252b5132 3044#define VERSION "$VERSION"
5464f5a1 3045_ACEOF
252b5132 3046
f5385ebf
AM
3047# Some tools Automake needs.
3048
3049ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3050
3051
3052AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3053
3054
3055AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3056
3057
3058AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3059
3060
3061MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 3062
f5385ebf 3063install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 3064
f5385ebf
AM
3065# Installed binaries are usually stripped using `strip' when the user
3066# run `make install-strip'. However `strip' might not be the right
3067# tool to use in cross-compilation environments, therefore Automake
3068# will honor the `STRIP' environment variable to overrule this program.
3069if test "$cross_compiling" != no; then
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3072set dummy ${ac_tool_prefix}strip; ac_word=$2
3073echo "$as_me:$LINENO: checking for $ac_word" >&5
3074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075if test "${ac_cv_prog_STRIP+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077else
3078 if test -n "$STRIP"; then
3079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3080else
f5385ebf
AM
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092done
3093done
3094
3095fi
3096fi
3097STRIP=$ac_cv_prog_STRIP
3098if test -n "$STRIP"; then
3099 echo "$as_me:$LINENO: result: $STRIP" >&5
3100echo "${ECHO_T}$STRIP" >&6
3101else
3102 echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
3104fi
3105
252b5132 3106fi
f5385ebf
AM
3107if test -z "$ac_cv_prog_STRIP"; then
3108 ac_ct_STRIP=$STRIP
3109 # Extract the first word of "strip", so it can be a program name with args.
3110set dummy strip; ac_word=$2
3111echo "$as_me:$LINENO: checking for $ac_word" >&5
3112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3113if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115else
3116 if test -n "$ac_ct_STRIP"; then
3117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3118else
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_ac_ct_STRIP="strip"
3127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130done
3131done
252b5132 3132
f5385ebf
AM
3133 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3134fi
3135fi
3136ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3137if test -n "$ac_ct_STRIP"; then
3138 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3139echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3140else
f5385ebf
AM
3141 echo "$as_me:$LINENO: result: no" >&5
3142echo "${ECHO_T}no" >&6
252b5132
RH
3143fi
3144
f5385ebf 3145 STRIP=$ac_ct_STRIP
252b5132 3146else
f5385ebf
AM
3147 STRIP="$ac_cv_prog_STRIP"
3148fi
3149
252b5132 3150fi
f5385ebf
AM
3151INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3152
3153# We need awk for the "check" target. The system "awk" is bad on
3154# some platforms.
3155# Always define AMTAR for backward compatibility.
3156
3157AMTAR=${AMTAR-"${am_missing_run}tar"}
3158
3159am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3160
252b5132 3161
f5385ebf
AM
3162
3163
3164depcc="$CC" am_compiler_list=
3165
3166echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3167echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3168if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3170else
f5385ebf
AM
3171 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3172 # We make a subdir and do the tests there. Otherwise we can end up
3173 # making bogus files that we don't know about and never remove. For
3174 # instance it was reported that on HP-UX the gcc test will end up
3175 # making a dummy file named `D' -- because `-MD' means `put the output
3176 # in D'.
3177 mkdir conftest.dir
3178 # Copy depcomp to subdir because otherwise we won't find it if we're
3179 # using a relative directory.
3180 cp "$am_depcomp" conftest.dir
3181 cd conftest.dir
3182 # We will build objects and dependencies in a subdirectory because
3183 # it helps to detect inapplicable dependency modes. For instance
3184 # both Tru64's cc and ICC support -MD to output dependencies as a
3185 # side effect of compilation, but ICC will put the dependencies in
3186 # the current directory while Tru64 will put them in the object
3187 # directory.
3188 mkdir sub
3189
3190 am_cv_CC_dependencies_compiler_type=none
3191 if test "$am_compiler_list" = ""; then
3192 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3193 fi
3194 for depmode in $am_compiler_list; do
3195 # Setup a source with many dependencies, because some compilers
3196 # like to wrap large dependency lists on column 80 (with \), and
3197 # we should not choose a depcomp mode which is confused by this.
3198 #
3199 # We need to recreate these files for each test, as the compiler may
3200 # overwrite some of them when testing with obscure command lines.
3201 # This happens at least with the AIX C compiler.
3202 : > sub/conftest.c
3203 for i in 1 2 3 4 5 6; do
3204 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3205 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3206 # Solaris 8's {/usr,}/bin/sh.
3207 touch sub/conftst$i.h
3208 done
3209 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3210
3211 case $depmode in
3212 nosideeffect)
3213 # after this tag, mechanisms are not by side-effect, so they'll
3214 # only be used when explicitly requested
3215 if test "x$enable_dependency_tracking" = xyes; then
3216 continue
3217 else
3218 break
3219 fi
3220 ;;
3221 none) break ;;
3222 esac
3223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3224 # mode. It turns out that the SunPro C++ compiler does not properly
3225 # handle `-M -o', and we need to detect this.
3226 if depmode=$depmode \
3227 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3229 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3230 >/dev/null 2>conftest.err &&
3231 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3232 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3233 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3234 # icc doesn't choke on unknown options, it will just issue warnings
3235 # or remarks (even with -Werror). So we grep stderr for any message
3236 # that says an option was ignored or not supported.
3237 # When given -MP, icc 7.0 and 7.1 complain thusly:
3238 # icc: Command line warning: ignoring option '-M'; no argument required
3239 # The diagnosis changed in icc 8.0:
3240 # icc: Command line remark: option '-MP' not supported
3241 if (grep 'ignoring option' conftest.err ||
3242 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3243 am_cv_CC_dependencies_compiler_type=$depmode
3244 break
3245 fi
3246 fi
3247 done
3248
3249 cd ..
3250 rm -rf conftest.dir
3251else
3252 am_cv_CC_dependencies_compiler_type=none
3253fi
3254
252b5132 3255fi
f5385ebf
AM
3256echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3257echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3258CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3259
f5385ebf
AM
3260
3261
3262if
3263 test "x$enable_dependency_tracking" != xno \
3264 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3265 am__fastdepCC_TRUE=
3266 am__fastdepCC_FALSE='#'
252b5132 3267else
f5385ebf
AM
3268 am__fastdepCC_TRUE='#'
3269 am__fastdepCC_FALSE=
252b5132
RH
3270fi
3271
6be7c12c 3272
e43d48cc 3273
f5385ebf 3274
5464f5a1
NN
3275if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3277set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3278echo "$as_me:$LINENO: checking for $ac_word" >&5
3279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280if test "${ac_cv_prog_AR+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3282else
3283 if test -n "$AR"; then
3284 ac_cv_prog_AR="$AR" # Let the user override the test.
3285else
5464f5a1
NN
3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_AR="${ac_tool_prefix}ar"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297done
3298done
3299
252b5132
RH
3300fi
3301fi
5464f5a1 3302AR=$ac_cv_prog_AR
252b5132 3303if test -n "$AR"; then
5464f5a1
NN
3304 echo "$as_me:$LINENO: result: $AR" >&5
3305echo "${ECHO_T}$AR" >&6
252b5132 3306else
5464f5a1
NN
3307 echo "$as_me:$LINENO: result: no" >&5
3308echo "${ECHO_T}no" >&6
3309fi
3310
252b5132 3311fi
5464f5a1
NN
3312if test -z "$ac_cv_prog_AR"; then
3313 ac_ct_AR=$AR
3314 # Extract the first word of "ar", so it can be a program name with args.
3315set dummy ar; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321 if test -n "$ac_ct_AR"; then
3322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_AR="ar"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335done
3336done
252b5132 3337
5464f5a1
NN
3338fi
3339fi
3340ac_ct_AR=$ac_cv_prog_ac_ct_AR
3341if test -n "$ac_ct_AR"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3343echo "${ECHO_T}$ac_ct_AR" >&6
3344else
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347fi
252b5132 3348
5464f5a1
NN
3349 AR=$ac_ct_AR
3350else
3351 AR="$ac_cv_prog_AR"
3352fi
6be7c12c 3353
5464f5a1
NN
3354if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3356set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3357echo "$as_me:$LINENO: checking for $ac_word" >&5
3358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359if test "${ac_cv_prog_RANLIB+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3361else
3362 if test -n "$RANLIB"; then
3363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3364else
5464f5a1
NN
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376done
3377done
3378
252b5132
RH
3379fi
3380fi
5464f5a1 3381RANLIB=$ac_cv_prog_RANLIB
252b5132 3382if test -n "$RANLIB"; then
5464f5a1
NN
3383 echo "$as_me:$LINENO: result: $RANLIB" >&5
3384echo "${ECHO_T}$RANLIB" >&6
252b5132 3385else
5464f5a1
NN
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
252b5132
RH
3388fi
3389
5464f5a1 3390fi
252b5132 3391if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3392 ac_ct_RANLIB=$RANLIB
252b5132
RH
3393 # Extract the first word of "ranlib", so it can be a program name with args.
3394set dummy ranlib; ac_word=$2
5464f5a1
NN
3395echo "$as_me:$LINENO: checking for $ac_word" >&5
3396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3399else
5464f5a1
NN
3400 if test -n "$ac_ct_RANLIB"; then
3401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3402else
5464f5a1
NN
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_ac_ct_RANLIB="ranlib"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414done
3415done
3416
3417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3418fi
3419fi
5464f5a1
NN
3420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3421if test -n "$ac_ct_RANLIB"; then
3422 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3423echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3424else
5464f5a1
NN
3425 echo "$as_me:$LINENO: result: no" >&5
3426echo "${ECHO_T}no" >&6
252b5132
RH
3427fi
3428
5464f5a1 3429 RANLIB=$ac_ct_RANLIB
252b5132 3430else
5464f5a1 3431 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3432fi
3433
252b5132
RH
3434
3435# Check whether --enable-shared or --disable-shared was given.
3436if test "${enable_shared+set}" = set; then
3437 enableval="$enable_shared"
3438 p=${PACKAGE-default}
d7040cdb
SE
3439 case $enableval in
3440 yes) enable_shared=yes ;;
3441 no) enable_shared=no ;;
3442 *)
3443 enable_shared=no
3444 # Look at the argument we got. We use all the common list separators.
3445 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3446 for pkg in $enableval; do
3447 IFS="$lt_save_ifs"
3448 if test "X$pkg" = "X$p"; then
3449 enable_shared=yes
3450 fi
3451 done
3452 IFS="$lt_save_ifs"
3453 ;;
3454 esac
252b5132
RH
3455else
3456 enable_shared=no
5464f5a1 3457fi;
252b5132 3458
d7040cdb
SE
3459
3460
3461
3462
3463
3464
3465
3466
cfbc9945
SE
3467ac_ext=c
3468ac_cpp='$CPP $CPPFLAGS'
3469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474set dummy ${ac_tool_prefix}gcc; ac_word=$2
3475echo "$as_me:$LINENO: checking for $ac_word" >&5
3476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477if test "${ac_cv_prog_CC+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3479else
cfbc9945
SE
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 3482else
cfbc9945
SE
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494done
3495done
c5d1701e 3496
cfbc9945
SE
3497fi
3498fi
3499CC=$ac_cv_prog_CC
3500if test -n "$CC"; then
3501 echo "$as_me:$LINENO: result: $CC" >&5
3502echo "${ECHO_T}$CC" >&6
252b5132 3503else
cfbc9945
SE
3504 echo "$as_me:$LINENO: result: no" >&5
3505echo "${ECHO_T}no" >&6
252b5132 3506fi
cfbc9945
SE
3507
3508fi
3509if test -z "$ac_cv_prog_CC"; then
3510 ac_ct_CC=$CC
3511 # Extract the first word of "gcc", so it can be a program name with args.
3512set dummy gcc; ac_word=$2
3513echo "$as_me:$LINENO: checking for $ac_word" >&5
3514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3516 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3517else
cfbc9945
SE
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3520else
cfbc9945
SE
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_ac_ct_CC="gcc"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532done
3533done
3534
252b5132
RH
3535fi
3536fi
cfbc9945
SE
3537ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538if test -n "$ac_ct_CC"; then
3539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3541else
5464f5a1
NN
3542 echo "$as_me:$LINENO: result: no" >&5
3543echo "${ECHO_T}no" >&6
252b5132 3544fi
cfbc9945
SE
3545
3546 CC=$ac_ct_CC
3547else
3548 CC="$ac_cv_prog_CC"
3549fi
3550
3551if test -z "$CC"; then
3552 if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3554set dummy ${ac_tool_prefix}cc; ac_word=$2
3555echo "$as_me:$LINENO: checking for $ac_word" >&5
3556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3558 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3559else
cfbc9945
SE
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3562else
cfbc9945
SE
3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564for as_dir in $PATH
3565do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_CC="${ac_tool_prefix}cc"
3571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3573 fi
3574done
3575done
3576
252b5132
RH
3577fi
3578fi
cfbc9945
SE
3579CC=$ac_cv_prog_CC
3580if test -n "$CC"; then
3581 echo "$as_me:$LINENO: result: $CC" >&5
3582echo "${ECHO_T}$CC" >&6
ac48eca1 3583else
cfbc9945
SE
3584 echo "$as_me:$LINENO: result: no" >&5
3585echo "${ECHO_T}no" >&6
ac48eca1 3586fi
ac48eca1 3587
cfbc9945
SE
3588fi
3589if test -z "$ac_cv_prog_CC"; then
3590 ac_ct_CC=$CC
3591 # Extract the first word of "cc", so it can be a program name with args.
3592set dummy cc; ac_word=$2
3593echo "$as_me:$LINENO: checking for $ac_word" >&5
3594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3595if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3596 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3597else
cfbc9945
SE
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3600else
cfbc9945
SE
3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="cc"
3609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612done
3613done
3614
252b5132 3615fi
cfbc9945
SE
3616fi
3617ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618if test -n "$ac_ct_CC"; then
3619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3620echo "${ECHO_T}$ac_ct_CC" >&6
3621else
3622 echo "$as_me:$LINENO: result: no" >&5
3623echo "${ECHO_T}no" >&6
252b5132
RH
3624fi
3625
cfbc9945
SE
3626 CC=$ac_ct_CC
3627else
3628 CC="$ac_cv_prog_CC"
3629fi
252b5132 3630
cfbc9945
SE
3631fi
3632if test -z "$CC"; then
3633 # Extract the first word of "cc", so it can be a program name with args.
3634set dummy cc; ac_word=$2
3635echo "$as_me:$LINENO: checking for $ac_word" >&5
3636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637if test "${ac_cv_prog_CC+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3639else
cfbc9945
SE
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642else
3643 ac_prog_rejected=no
3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645for as_dir in $PATH
3646do
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3652 ac_prog_rejected=yes
3653 continue
3654 fi
3655 ac_cv_prog_CC="cc"
3656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659done
3660done
3661
3662if test $ac_prog_rejected = yes; then
3663 # We found a bogon in the path, so make sure we never use it.
3664 set dummy $ac_cv_prog_CC
3665 shift
3666 if test $# != 0; then
3667 # We chose a different compiler from the bogus one.
3668 # However, it has the same basename, so the bogon will be chosen
3669 # first if we set CC to just the basename; use the full file name.
3670 shift
3671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3672 fi
3673fi
3674fi
3675fi
3676CC=$ac_cv_prog_CC
3677if test -n "$CC"; then
3678 echo "$as_me:$LINENO: result: $CC" >&5
3679echo "${ECHO_T}$CC" >&6
3680else
3681 echo "$as_me:$LINENO: result: no" >&5
3682echo "${ECHO_T}no" >&6
252b5132
RH
3683fi
3684
cfbc9945
SE
3685fi
3686if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog in cl
3689 do
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692echo "$as_me:$LINENO: checking for $ac_word" >&5
3693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3695 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3696else
cfbc9945
SE
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699else
3700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701for as_dir in $PATH
3702do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3710 fi
3711done
3712done
ac48eca1 3713
cfbc9945
SE
3714fi
3715fi
3716CC=$ac_cv_prog_CC
3717if test -n "$CC"; then
3718 echo "$as_me:$LINENO: result: $CC" >&5
3719echo "${ECHO_T}$CC" >&6
3720else
3721 echo "$as_me:$LINENO: result: no" >&5
3722echo "${ECHO_T}no" >&6
3723fi
ac48eca1 3724
cfbc9945
SE
3725 test -n "$CC" && break
3726 done
3727fi
3728if test -z "$CC"; then
3729 ac_ct_CC=$CC
3730 for ac_prog in cl
3731do
3732 # Extract the first word of "$ac_prog", so it can be a program name with args.
3733set dummy $ac_prog; ac_word=$2
3734echo "$as_me:$LINENO: checking for $ac_word" >&5
3735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739 if test -n "$ac_ct_CC"; then
3740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_ac_ct_CC="$ac_prog"
3750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3752 fi
3753done
3754done
ac48eca1 3755
cfbc9945
SE
3756fi
3757fi
3758ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759if test -n "$ac_ct_CC"; then
3760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3761echo "${ECHO_T}$ac_ct_CC" >&6
3762else
3763 echo "$as_me:$LINENO: result: no" >&5
3764echo "${ECHO_T}no" >&6
3765fi
ac48eca1 3766
cfbc9945
SE
3767 test -n "$ac_ct_CC" && break
3768done
ac48eca1 3769
cfbc9945
SE
3770 CC=$ac_ct_CC
3771fi
55c80943 3772
cfbc9945 3773fi
ac48eca1 3774
ac48eca1 3775
7357c5b6
AM
3776test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3777echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
cfbc9945
SE
3779See \`config.log' for more details." >&5
3780echo "$as_me: error: no acceptable C compiler found in \$PATH
3781See \`config.log' for more details." >&2;}
7357c5b6 3782 { (exit 1); exit 1; }; }; }
ac48eca1 3783
cfbc9945
SE
3784# Provide some information about the compiler.
3785echo "$as_me:$LINENO:" \
3786 "checking for C compiler version" >&5
3787ac_compiler=`set X $ac_compile; echo $2`
3788{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3789 (eval $ac_compiler --version </dev/null >&5) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }
3793{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3794 (eval $ac_compiler -v </dev/null >&5) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }
3798{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3799 (eval $ac_compiler -V </dev/null >&5) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }
ac48eca1 3803
cfbc9945
SE
3804echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3805echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3806if test "${ac_cv_c_compiler_gnu+set}" = set; then
5464f5a1 3807 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3808else
cfbc9945
SE
3809 cat >conftest.$ac_ext <<_ACEOF
3810/* confdefs.h. */
3811_ACEOF
3812cat confdefs.h >>conftest.$ac_ext
3813cat >>conftest.$ac_ext <<_ACEOF
3814/* end confdefs.h. */
ac48eca1 3815
cfbc9945
SE
3816int
3817main ()
3818{
3819#ifndef __GNUC__
3820 choke me
3821#endif
5464f5a1 3822
cfbc9945
SE
3823 ;
3824 return 0;
3825}
3826_ACEOF
3827rm -f conftest.$ac_objext
3828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829 (eval $ac_compile) 2>conftest.er1
3830 ac_status=$?
3831 grep -v '^ *+' conftest.er1 >conftest.err
3832 rm -f conftest.er1
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
7357c5b6
AM
3836 { ac_try='test -z "$ac_c_werror_flag"
3837 || test ! -s conftest.err'
cfbc9945
SE
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 ac_compiler_gnu=yes
ac48eca1 3850else
cfbc9945
SE
3851 echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854ac_compiler_gnu=no
ac48eca1 3855fi
cfbc9945
SE
3856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3858
5464f5a1 3859fi
cfbc9945
SE
3860echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3861echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3862GCC=`test $ac_compiler_gnu = yes && echo yes`
3863ac_test_CFLAGS=${CFLAGS+set}
3864ac_save_CFLAGS=$CFLAGS
3865CFLAGS="-g"
3866echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3867echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3868if test "${ac_cv_prog_cc_g+set}" = set; then
5464f5a1 3869 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3870else
cfbc9945
SE
3871 cat >conftest.$ac_ext <<_ACEOF
3872/* confdefs.h. */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h. */
3877
3878int
3879main ()
3880{
3881
3882 ;
3883 return 0;
3884}
3885_ACEOF
3886rm -f conftest.$ac_objext
3887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>conftest.er1
3889 ac_status=$?
3890 grep -v '^ *+' conftest.er1 >conftest.err
3891 rm -f conftest.er1
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
7357c5b6
AM
3895 { ac_try='test -z "$ac_c_werror_flag"
3896 || test ! -s conftest.err'
cfbc9945
SE
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; }; then
3908 ac_cv_prog_cc_g=yes
6be7c12c 3909else
cfbc9945
SE
3910 echo "$as_me: failed program was:" >&5
3911sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3912
cfbc9945 3913ac_cv_prog_cc_g=no
ac48eca1 3914fi
cfbc9945 3915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3916fi
cfbc9945
SE
3917echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3918echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3919if test "$ac_test_CFLAGS" = set; then
3920 CFLAGS=$ac_save_CFLAGS
3921elif test $ac_cv_prog_cc_g = yes; then
3922 if test "$GCC" = yes; then
3923 CFLAGS="-g -O2"
3924 else
3925 CFLAGS="-g"
3926 fi
ac48eca1 3927else
cfbc9945
SE
3928 if test "$GCC" = yes; then
3929 CFLAGS="-O2"
3930 else
3931 CFLAGS=
3932 fi
ac48eca1 3933fi
cfbc9945
SE
3934echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3935echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3936if test "${ac_cv_prog_cc_stdc+set}" = set; then
5464f5a1 3937 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3938else
cfbc9945
SE
3939 ac_cv_prog_cc_stdc=no
3940ac_save_CC=$CC
3941cat >conftest.$ac_ext <<_ACEOF
3942/* confdefs.h. */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
3946/* end confdefs.h. */
3947#include <stdarg.h>
3948#include <stdio.h>
3949#include <sys/types.h>
3950#include <sys/stat.h>
3951/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3952struct buf { int x; };
3953FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954static char *e (p, i)
3955 char **p;
3956 int i;
3957{
3958 return p[i];
3959}
3960static char *f (char * (*g) (char **, int), char **p, ...)
3961{
3962 char *s;
3963 va_list v;
3964 va_start (v,p);
3965 s = g (p, va_arg (v,int));
3966 va_end (v);
3967 return s;
3968}
5464f5a1 3969
cfbc9945
SE
3970/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3971 function prototypes and stuff, but not '\xHH' hex character constants.
3972 These don't provoke an error unfortunately, instead are silently treated
3973 as 'x'. The following induces an error, until -std1 is added to get
3974 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3975 array size at least. It's necessary to write '\x00'==0 to get something
3976 that's true only with -std1. */
3977int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3978
3979int test (int i, double x);
3980struct s1 {int (*f) (int a);};
3981struct s2 {int (*f) (double a);};
3982int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3983int argc;
3984char **argv;
3985int
3986main ()
3987{
3988return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3989 ;
3990 return 0;
3991}
3992_ACEOF
3993# Don't try gcc -ansi; that turns off useful extensions and
3994# breaks some systems' header files.
3995# AIX -qlanglvl=ansi
3996# Ultrix and OSF/1 -std1
3997# HP-UX 10.20 and later -Ae
3998# HP-UX older versions -Aa -D_HPUX_SOURCE
3999# SVR4 -Xc -D__EXTENSIONS__
4000for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4001do
4002 CC="$ac_save_CC $ac_arg"
4003 rm -f conftest.$ac_objext
4004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
7357c5b6
AM
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
cfbc9945
SE
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_cv_prog_cc_stdc=$ac_arg
4026break
ac48eca1 4027else
cfbc9945
SE
4028 echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4030
5464f5a1 4031fi
cfbc9945 4032rm -f conftest.err conftest.$ac_objext
5464f5a1 4033done
cfbc9945
SE
4034rm -f conftest.$ac_ext conftest.$ac_objext
4035CC=$ac_save_CC
5464f5a1 4036
ac48eca1 4037fi
252b5132 4038
cfbc9945
SE
4039case "x$ac_cv_prog_cc_stdc" in
4040 x|xno)
4041 echo "$as_me:$LINENO: result: none needed" >&5
4042echo "${ECHO_T}none needed" >&6 ;;
4043 *)
4044 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4045echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4046 CC="$CC $ac_cv_prog_cc_stdc" ;;
4047esac
6be7c12c 4048
cfbc9945
SE
4049# Some people use a C++ compiler to compile C. Since we use `exit',
4050# in C++ we need to declare it. In case someone uses the same compiler
4051# for both compiling C and C++ we need to have the C++ compiler decide
4052# the declaration of exit, since it's the most demanding environment.
4053cat >conftest.$ac_ext <<_ACEOF
4054#ifndef __cplusplus
4055 choke me
4056#endif
4057_ACEOF
4058rm -f conftest.$ac_objext
4059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
5464f5a1 4061 ac_status=$?
cfbc9945
SE
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
5464f5a1 4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945 4066 (exit $ac_status); } &&
7357c5b6
AM
4067 { ac_try='test -z "$ac_c_werror_flag"
4068 || test ! -s conftest.err'
cfbc9945
SE
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
5464f5a1
NN
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
d70c5fc7
NC
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4079 (exit $ac_status); }; }; then
4080 for ac_declaration in \
4081 '' \
4082 'extern "C" void std::exit (int) throw (); using std::exit;' \
4083 'extern "C" void std::exit (int); using std::exit;' \
4084 'extern "C" void exit (int) throw ();' \
4085 'extern "C" void exit (int);' \
4086 'void exit (int);'
4087do
4088 cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h. */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h. */
4094$ac_declaration
4095#include <stdlib.h>
4096int
4097main ()
4098{
4099exit (42);
4100 ;
4101 return 0;
4102}
4103_ACEOF
4104rm -f conftest.$ac_objext
4105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106 (eval $ac_compile) 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
7357c5b6
AM
4113 { ac_try='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
cfbc9945
SE
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 :
b2ef150d 4127else
cfbc9945
SE
4128 echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 4130
cfbc9945
SE
4131continue
4132fi
4133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
4135/* confdefs.h. */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
4139/* end confdefs.h. */
cfbc9945 4140$ac_declaration
5464f5a1
NN
4141int
4142main ()
4143{
cfbc9945 4144exit (42);
5464f5a1
NN
4145 ;
4146 return 0;
4147}
4148_ACEOF
cfbc9945
SE
4149rm -f conftest.$ac_objext
4150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
7357c5b6
AM
4158 { ac_try='test -z "$ac_c_werror_flag"
4159 || test ! -s conftest.err'
5464f5a1
NN
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
cfbc9945 4165 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
cfbc9945 4171 break
b2ef150d 4172else
5464f5a1
NN
4173 echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
4175
b2ef150d 4176fi
cfbc9945
SE
4177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178done
4179rm -f conftest*
4180if test -n "$ac_declaration"; then
4181 echo '#ifdef __cplusplus' >>confdefs.h
4182 echo $ac_declaration >>confdefs.h
4183 echo '#endif' >>confdefs.h
6ec7057a 4184fi
cfbc9945 4185
92f01d61 4186else
cfbc9945
SE
4187 echo "$as_me: failed program was:" >&5
4188sed 's/^/| /' conftest.$ac_ext >&5
92f01d61 4189
cfbc9945
SE
4190fi
4191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192ac_ext=c
4193ac_cpp='$CPP $CPPFLAGS'
4194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61
JM
4197
4198
cfbc9945
SE
4199cat >>confdefs.h <<\_ACEOF
4200#define _GNU_SOURCE 1
4201_ACEOF
a1ac8190 4202
c428fa83 4203
7357c5b6
AM
4204ac_ext=c
4205ac_cpp='$CPP $CPPFLAGS'
4206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4210echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4211# On Suns, sometimes $CPP names a directory.
4212if test -n "$CPP" && test -d "$CPP"; then
4213 CPP=
4214fi
4215if test -z "$CPP"; then
4216 if test "${ac_cv_prog_CPP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219 # Double quotes because CPP needs to be expanded
4220 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4221 do
4222 ac_preproc_ok=false
4223for ac_c_preproc_warn_flag in '' yes
4224do
4225 # Use a header file that comes with gcc, so configuring glibc
4226 # with a fresh cross-compiler works.
4227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4228 # <limits.h> exists even on freestanding compilers.
4229 # On the NeXT, cc -E runs the code through the compiler's parser,
4230 # not just through cpp. "Syntax error" is here to catch this case.
4231 cat >conftest.$ac_ext <<_ACEOF
4232/* confdefs.h. */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h. */
4237#ifdef __STDC__
4238# include <limits.h>
4239#else
4240# include <assert.h>
4241#endif
4242 Syntax error
4243_ACEOF
4244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } >/dev/null; then
4252 if test -s conftest.err; then
4253 ac_cpp_err=$ac_c_preproc_warn_flag
4254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4255 else
4256 ac_cpp_err=
4257 fi
4258else
4259 ac_cpp_err=yes
4260fi
4261if test -z "$ac_cpp_err"; then
4262 :
4263else
4264 echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
cfbc9945 4266
7357c5b6
AM
4267 # Broken: fails on valid input.
4268continue
4269fi
4270rm -f conftest.err conftest.$ac_ext
d7040cdb 4271
7357c5b6
AM
4272 # OK, works on sane cases. Now check whether non-existent headers
4273 # can be detected and how.
4274 cat >conftest.$ac_ext <<_ACEOF
4275/* confdefs.h. */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h. */
4280#include <ac_nonexistent.h>
4281_ACEOF
4282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } >/dev/null; then
4290 if test -s conftest.err; then
4291 ac_cpp_err=$ac_c_preproc_warn_flag
4292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4293 else
4294 ac_cpp_err=
4295 fi
4296else
4297 ac_cpp_err=yes
4298fi
4299if test -z "$ac_cpp_err"; then
4300 # Broken: success on invalid input.
4301continue
4302else
4303 echo "$as_me: failed program was:" >&5
4304sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4305
7357c5b6
AM
4306 # Passes both tests.
4307ac_preproc_ok=:
4308break
4309fi
4310rm -f conftest.err conftest.$ac_ext
d7040cdb 4311
7357c5b6
AM
4312done
4313# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314rm -f conftest.err conftest.$ac_ext
4315if $ac_preproc_ok; then
4316 break
4317fi
d7040cdb 4318
7357c5b6
AM
4319 done
4320 ac_cv_prog_CPP=$CPP
d7040cdb 4321
7357c5b6
AM
4322fi
4323 CPP=$ac_cv_prog_CPP
4324else
4325 ac_cv_prog_CPP=$CPP
4326fi
4327echo "$as_me:$LINENO: result: $CPP" >&5
4328echo "${ECHO_T}$CPP" >&6
4329ac_preproc_ok=false
4330for ac_c_preproc_warn_flag in '' yes
4331do
4332 # Use a header file that comes with gcc, so configuring glibc
4333 # with a fresh cross-compiler works.
4334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4335 # <limits.h> exists even on freestanding compilers.
4336 # On the NeXT, cc -E runs the code through the compiler's parser,
4337 # not just through cpp. "Syntax error" is here to catch this case.
4338 cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h. */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h. */
4344#ifdef __STDC__
4345# include <limits.h>
4346#else
4347# include <assert.h>
4348#endif
4349 Syntax error
4350_ACEOF
4351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } >/dev/null; then
4359 if test -s conftest.err; then
4360 ac_cpp_err=$ac_c_preproc_warn_flag
4361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4362 else
4363 ac_cpp_err=
4364 fi
4365else
4366 ac_cpp_err=yes
4367fi
4368if test -z "$ac_cpp_err"; then
4369 :
4370else
4371 echo "$as_me: failed program was:" >&5
4372sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4373
7357c5b6
AM
4374 # Broken: fails on valid input.
4375continue
4376fi
4377rm -f conftest.err conftest.$ac_ext
d7040cdb 4378
7357c5b6
AM
4379 # OK, works on sane cases. Now check whether non-existent headers
4380 # can be detected and how.
4381 cat >conftest.$ac_ext <<_ACEOF
4382/* confdefs.h. */
4383_ACEOF
4384cat confdefs.h >>conftest.$ac_ext
4385cat >>conftest.$ac_ext <<_ACEOF
4386/* end confdefs.h. */
4387#include <ac_nonexistent.h>
4388_ACEOF
4389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } >/dev/null; then
4397 if test -s conftest.err; then
4398 ac_cpp_err=$ac_c_preproc_warn_flag
4399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4400 else
4401 ac_cpp_err=
4402 fi
4403else
4404 ac_cpp_err=yes
4405fi
4406if test -z "$ac_cpp_err"; then
4407 # Broken: success on invalid input.
4408continue
4409else
4410 echo "$as_me: failed program was:" >&5
4411sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4412
7357c5b6
AM
4413 # Passes both tests.
4414ac_preproc_ok=:
4415break
4416fi
4417rm -f conftest.err conftest.$ac_ext
d7040cdb 4418
7357c5b6
AM
4419done
4420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421rm -f conftest.err conftest.$ac_ext
4422if $ac_preproc_ok; then
4423 :
4424else
4425 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4426echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4428See \`config.log' for more details." >&5
4429echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4430See \`config.log' for more details." >&2;}
4431 { (exit 1); exit 1; }; }; }
4432fi
d7040cdb 4433
7357c5b6
AM
4434ac_ext=c
4435ac_cpp='$CPP $CPPFLAGS'
4436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4439
d7040cdb 4440
7357c5b6
AM
4441echo "$as_me:$LINENO: checking for egrep" >&5
4442echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4443if test "${ac_cv_prog_egrep+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4447 then ac_cv_prog_egrep='grep -E'
4448 else ac_cv_prog_egrep='egrep'
4449 fi
4450fi
4451echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4452echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4453 EGREP=$ac_cv_prog_egrep
d7040cdb
SE
4454
4455
7357c5b6
AM
4456echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4457echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4458if test "${ac_cv_header_stdc+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461 cat >conftest.$ac_ext <<_ACEOF
4462/* confdefs.h. */
4463_ACEOF
4464cat confdefs.h >>conftest.$ac_ext
4465cat >>conftest.$ac_ext <<_ACEOF
4466/* end confdefs.h. */
4467#include <stdlib.h>
4468#include <stdarg.h>
4469#include <string.h>
4470#include <float.h>
d7040cdb 4471
7357c5b6
AM
4472int
4473main ()
4474{
d7040cdb 4475
7357c5b6
AM
4476 ;
4477 return 0;
4478}
4479_ACEOF
4480rm -f conftest.$ac_objext
4481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>conftest.er1
4483 ac_status=$?
4484 grep -v '^ *+' conftest.er1 >conftest.err
4485 rm -f conftest.er1
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -z "$ac_c_werror_flag"
4490 || test ! -s conftest.err'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_cv_header_stdc=yes
c428fa83 4503else
7357c5b6
AM
4504 echo "$as_me: failed program was:" >&5
4505sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4506
7357c5b6
AM
4507ac_cv_header_stdc=no
4508fi
4509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4510
7357c5b6
AM
4511if test $ac_cv_header_stdc = yes; then
4512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4513 cat >conftest.$ac_ext <<_ACEOF
4514/* confdefs.h. */
4515_ACEOF
4516cat confdefs.h >>conftest.$ac_ext
4517cat >>conftest.$ac_ext <<_ACEOF
4518/* end confdefs.h. */
4519#include <string.h>
d7040cdb 4520
7357c5b6
AM
4521_ACEOF
4522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 $EGREP "memchr" >/dev/null 2>&1; then
4524 :
4525else
4526 ac_cv_header_stdc=no
4527fi
4528rm -f conftest*
d7040cdb 4529
7357c5b6 4530fi
d7040cdb 4531
7357c5b6
AM
4532if test $ac_cv_header_stdc = yes; then
4533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4534 cat >conftest.$ac_ext <<_ACEOF
4535/* confdefs.h. */
4536_ACEOF
4537cat confdefs.h >>conftest.$ac_ext
4538cat >>conftest.$ac_ext <<_ACEOF
4539/* end confdefs.h. */
4540#include <stdlib.h>
d7040cdb 4541
7357c5b6
AM
4542_ACEOF
4543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544 $EGREP "free" >/dev/null 2>&1; then
4545 :
4546else
4547 ac_cv_header_stdc=no
4548fi
4549rm -f conftest*
d7040cdb 4550
7357c5b6 4551fi
d7040cdb 4552
7357c5b6
AM
4553if test $ac_cv_header_stdc = yes; then
4554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4555 if test "$cross_compiling" = yes; then
4556 :
4557else
4558 cat >conftest.$ac_ext <<_ACEOF
4559/* confdefs.h. */
4560_ACEOF
4561cat confdefs.h >>conftest.$ac_ext
4562cat >>conftest.$ac_ext <<_ACEOF
4563/* end confdefs.h. */
4564#include <ctype.h>
4565#if ((' ' & 0x0FF) == 0x020)
4566# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4567# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4568#else
4569# define ISLOWER(c) \
4570 (('a' <= (c) && (c) <= 'i') \
4571 || ('j' <= (c) && (c) <= 'r') \
4572 || ('s' <= (c) && (c) <= 'z'))
4573# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4574#endif
d7040cdb 4575
7357c5b6
AM
4576#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4577int
4578main ()
4579{
4580 int i;
4581 for (i = 0; i < 256; i++)
4582 if (XOR (islower (i), ISLOWER (i))
4583 || toupper (i) != TOUPPER (i))
4584 exit(2);
4585 exit (0);
4586}
4587_ACEOF
4588rm -f conftest$ac_exeext
4589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590 (eval $ac_link) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4599 :
d7040cdb 4600else
7357c5b6
AM
4601 echo "$as_me: program exited with status $ac_status" >&5
4602echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4604
7357c5b6
AM
4605( exit $ac_status )
4606ac_cv_header_stdc=no
4607fi
4608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4609fi
4610fi
4611fi
4612echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4613echo "${ECHO_T}$ac_cv_header_stdc" >&6
4614if test $ac_cv_header_stdc = yes; then
d7040cdb 4615
7357c5b6
AM
4616cat >>confdefs.h <<\_ACEOF
4617#define STDC_HEADERS 1
4618_ACEOF
d7040cdb 4619
7357c5b6 4620fi
d7040cdb 4621
7357c5b6 4622# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4623
4624
4625
4626
c428fa83 4627
d7040cdb
SE
4628
4629
4630
4631
7357c5b6
AM
4632for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4633 inttypes.h stdint.h unistd.h
4634do
4635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636echo "$as_me:$LINENO: checking for $ac_header" >&5
4637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640else
4641 cat >conftest.$ac_ext <<_ACEOF
4642/* confdefs.h. */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h. */
4647$ac_includes_default
d7040cdb 4648
7357c5b6
AM
4649#include <$ac_header>
4650_ACEOF
4651rm -f conftest.$ac_objext
4652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 eval "$as_ac_Header=yes"
4674else
4675 echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4677
7357c5b6
AM
4678eval "$as_ac_Header=no"
4679fi
4680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681fi
4682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4684if test `eval echo '${'$as_ac_Header'}'` = yes; then
4685 cat >>confdefs.h <<_ACEOF
4686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687_ACEOF
d7040cdb 4688
7357c5b6
AM
4689fi
4690
4691done
4692
4693
4694
4695 if test "${ac_cv_header_minix_config_h+set}" = set; then
4696 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4697echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4698if test "${ac_cv_header_minix_config_h+set}" = set; then
d7040cdb 4699 echo $ECHO_N "(cached) $ECHO_C" >&6
7357c5b6
AM
4700fi
4701echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4702echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
d7040cdb 4703else
7357c5b6
AM
4704 # Is the header compilable?
4705echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4706echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4707cat >conftest.$ac_ext <<_ACEOF
4708/* confdefs.h. */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h. */
4713$ac_includes_default
4714#include <minix/config.h>
4715_ACEOF
4716rm -f conftest.$ac_objext
4717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_header_compiler=yes
4739else
4740 echo "$as_me: failed program was:" >&5
4741sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4742
7357c5b6 4743ac_header_compiler=no
d7040cdb 4744fi
7357c5b6
AM
4745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4747echo "${ECHO_T}$ac_header_compiler" >&6
d7040cdb 4748
7357c5b6
AM
4749# Is the header present?
4750echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4751echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4752cat >conftest.$ac_ext <<_ACEOF
4753/* confdefs.h. */
4754_ACEOF
4755cat confdefs.h >>conftest.$ac_ext
4756cat >>conftest.$ac_ext <<_ACEOF
4757/* end confdefs.h. */
4758#include <minix/config.h>
4759_ACEOF
4760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } >/dev/null; then
4768 if test -s conftest.err; then
4769 ac_cpp_err=$ac_c_preproc_warn_flag
4770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4771 else
4772 ac_cpp_err=
4773 fi
4774else
4775 ac_cpp_err=yes
4776fi
4777if test -z "$ac_cpp_err"; then
4778 ac_header_preproc=yes
4779else
4780 echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4782
7357c5b6
AM
4783 ac_header_preproc=no
4784fi
4785rm -f conftest.err conftest.$ac_ext
4786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4787echo "${ECHO_T}$ac_header_preproc" >&6
d7040cdb 4788
7357c5b6
AM
4789# So? What about this header?
4790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4791 yes:no: )
4792 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4793echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4794 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4795echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4796 ac_header_preproc=yes
4797 ;;
4798 no:yes:* )
4799 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4800echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4802echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4803 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4804echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4805 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4806echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4807 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4808echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4809 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4810echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4811 (
4812 cat <<\_ASBOX
4813## ------------------------------------------ ##
4814## Report this to the AC_PACKAGE_NAME lists. ##
4815## ------------------------------------------ ##
4816_ASBOX
4817 ) |
4818 sed "s/^/$as_me: WARNING: /" >&2
4819 ;;
4820esac
4821echo "$as_me:$LINENO: checking for minix/config.h" >&5
4822echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4823if test "${ac_cv_header_minix_config_h+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825else
4826 ac_cv_header_minix_config_h=$ac_header_preproc
4827fi
4828echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4829echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4830
4831fi
4832if test $ac_cv_header_minix_config_h = yes; then
4833 MINIX=yes
4834else
4835 MINIX=
4836fi
d7040cdb
SE
4837
4838
7357c5b6 4839 if test "$MINIX" = yes; then
d7040cdb 4840
7357c5b6
AM
4841cat >>confdefs.h <<\_ACEOF
4842#define _POSIX_SOURCE 1
4843_ACEOF
d7040cdb
SE
4844
4845
7357c5b6
AM
4846cat >>confdefs.h <<\_ACEOF
4847#define _POSIX_1_SOURCE 2
4848_ACEOF
d7040cdb
SE
4849
4850
7357c5b6
AM
4851cat >>confdefs.h <<\_ACEOF
4852#define _MINIX 1
4853_ACEOF
d7040cdb 4854
7357c5b6 4855 fi
d7040cdb
SE
4856
4857
4858
7357c5b6
AM
4859 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4860echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4861if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
d7040cdb
SE
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
7357c5b6
AM
4864 cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
d7040cdb 4870
7357c5b6
AM
4871# define __EXTENSIONS__ 1
4872 $ac_includes_default
4873int
4874main ()
4875{
d7040cdb 4876
7357c5b6
AM
4877 ;
4878 return 0;
4879}
4880_ACEOF
4881rm -f conftest.$ac_objext
4882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4904else
7357c5b6
AM
4905 echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908ac_cv_safe_to_define___extensions__=no
d7040cdb 4909fi
7357c5b6
AM
4910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911fi
4912echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4913echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4914 test $ac_cv_safe_to_define___extensions__ = yes &&
4915 cat >>confdefs.h <<\_ACEOF
4916#define __EXTENSIONS__ 1
4917_ACEOF
d7040cdb 4918
7357c5b6
AM
4919 cat >>confdefs.h <<\_ACEOF
4920#define _ALL_SOURCE 1
4921_ACEOF
d7040cdb 4922
7357c5b6
AM
4923 cat >>confdefs.h <<\_ACEOF
4924#define _GNU_SOURCE 1
4925_ACEOF
d7040cdb 4926
7357c5b6
AM
4927 cat >>confdefs.h <<\_ACEOF
4928#define _POSIX_PTHREAD_SEMANTICS 1
4929_ACEOF
d7040cdb 4930
7357c5b6
AM
4931 cat >>confdefs.h <<\_ACEOF
4932#define _TANDEM_SOURCE 1
4933_ACEOF
d7040cdb
SE
4934
4935
08c13eba
JB
4936
4937case "${target}" in
85f77068
JB
4938 sparc-*-solaris*|i[3-7]86-*-solaris*)
4939 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4940 # are mutually exclusive; and without procfs support, the elf module
08c13eba
JB
4941 # cannot provide certain routines such as elfcore_write_prpsinfo
4942 # or elfcore_write_prstatus. So unless the user explicitly requested
4943 # large-file support through the --enable-largefile switch, disable
4944 # large-file support in favor of procfs support.
4945 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
4946 enable_largefile="no"
4947 fi
4948 ;;
4949esac
4950
d053aef8
JK
4951# Check whether --enable-largefile or --disable-largefile was given.
4952if test "${enable_largefile+set}" = set; then
4953 enableval="$enable_largefile"
4954
4955fi;
4956if test "$enable_largefile" != no; then
4957
4958 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4959echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4960if test "${ac_cv_sys_largefile_CC+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962else
4963 ac_cv_sys_largefile_CC=no
4964 if test "$GCC" != yes; then
4965 ac_save_CC=$CC
4966 while :; do
4967 # IRIX 6.2 and later do not support large files by default,
4968 # so use the C compiler's -n32 option if that helps.
4969 cat >conftest.$ac_ext <<_ACEOF
4970/* confdefs.h. */
4971_ACEOF
4972cat confdefs.h >>conftest.$ac_ext
4973cat >>conftest.$ac_ext <<_ACEOF
4974/* end confdefs.h. */
4975#include <sys/types.h>
4976 /* Check that off_t can represent 2**63 - 1 correctly.
4977 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4978 since some C++ compilers masquerading as C compilers
4979 incorrectly reject 9223372036854775807. */
4980#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4981 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4982 && LARGE_OFF_T % 2147483647 == 1)
4983 ? 1 : -1];
4984int
4985main ()
4986{
4987
4988 ;
4989 return 0;
4990}
4991_ACEOF
4992 rm -f conftest.$ac_objext
4993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>conftest.er1
4995 ac_status=$?
4996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -z "$ac_c_werror_flag"
5002 || test ! -s conftest.err'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; } &&
5008 { ac_try='test -s conftest.$ac_objext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
5014 break
5015else
5016 echo "$as_me: failed program was:" >&5
5017sed 's/^/| /' conftest.$ac_ext >&5
5018
5019fi
5020rm -f conftest.err conftest.$ac_objext
5021 CC="$CC -n32"
5022 rm -f conftest.$ac_objext
5023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_cv_sys_largefile_CC=' -n32'; break
5045else
5046 echo "$as_me: failed program was:" >&5
5047sed 's/^/| /' conftest.$ac_ext >&5
5048
5049fi
5050rm -f conftest.err conftest.$ac_objext
5051 break
5052 done
5053 CC=$ac_save_CC
5054 rm -f conftest.$ac_ext
5055 fi
5056fi
5057echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5058echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5059 if test "$ac_cv_sys_largefile_CC" != no; then
5060 CC=$CC$ac_cv_sys_largefile_CC
5061 fi
5062
5063 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5064echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5065if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067else
5068 while :; do
5069 ac_cv_sys_file_offset_bits=no
5070 cat >conftest.$ac_ext <<_ACEOF
5071/* confdefs.h. */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h. */
5076#include <sys/types.h>
5077 /* Check that off_t can represent 2**63 - 1 correctly.
5078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5079 since some C++ compilers masquerading as C compilers
5080 incorrectly reject 9223372036854775807. */
5081#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5083 && LARGE_OFF_T % 2147483647 == 1)
5084 ? 1 : -1];
5085int
5086main ()
5087{
5088
5089 ;
5090 return 0;
5091}
5092_ACEOF
5093rm -f conftest.$ac_objext
5094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -z "$ac_c_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 break
5116else
5117 echo "$as_me: failed program was:" >&5
5118sed 's/^/| /' conftest.$ac_ext >&5
5119
5120fi
5121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5122 cat >conftest.$ac_ext <<_ACEOF
5123/* confdefs.h. */
5124_ACEOF
5125cat confdefs.h >>conftest.$ac_ext
5126cat >>conftest.$ac_ext <<_ACEOF
5127/* end confdefs.h. */
5128#define _FILE_OFFSET_BITS 64
5129#include <sys/types.h>
5130 /* Check that off_t can represent 2**63 - 1 correctly.
5131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5132 since some C++ compilers masquerading as C compilers
5133 incorrectly reject 9223372036854775807. */
5134#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5136 && LARGE_OFF_T % 2147483647 == 1)
5137 ? 1 : -1];
5138int
5139main ()
5140{
5141
5142 ;
5143 return 0;
5144}
5145_ACEOF
5146rm -f conftest.$ac_objext
5147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>conftest.er1
5149 ac_status=$?
5150 grep -v '^ *+' conftest.er1 >conftest.err
5151 rm -f conftest.er1
5152 cat conftest.err >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } &&
5155 { ac_try='test -z "$ac_c_werror_flag"
5156 || test ! -s conftest.err'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 (eval $ac_try) 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; } &&
5162 { ac_try='test -s conftest.$ac_objext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 (eval $ac_try) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 ac_cv_sys_file_offset_bits=64; break
5169else
5170 echo "$as_me: failed program was:" >&5
5171sed 's/^/| /' conftest.$ac_ext >&5
5172
5173fi
5174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5175 break
5176done
5177fi
5178echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5179echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5180if test "$ac_cv_sys_file_offset_bits" != no; then
5181
5182cat >>confdefs.h <<_ACEOF
5183#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5184_ACEOF
5185
5186fi
5187rm -f conftest*
5188 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5189echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5190if test "${ac_cv_sys_large_files+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193 while :; do
5194 ac_cv_sys_large_files=no
5195 cat >conftest.$ac_ext <<_ACEOF
5196/* confdefs.h. */
5197_ACEOF
5198cat confdefs.h >>conftest.$ac_ext
5199cat >>conftest.$ac_ext <<_ACEOF
5200/* end confdefs.h. */
5201#include <sys/types.h>
5202 /* Check that off_t can represent 2**63 - 1 correctly.
5203 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5204 since some C++ compilers masquerading as C compilers
5205 incorrectly reject 9223372036854775807. */
5206#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5207 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5208 && LARGE_OFF_T % 2147483647 == 1)
5209 ? 1 : -1];
5210int
5211main ()
5212{
5213
5214 ;
5215 return 0;
5216}
5217_ACEOF
5218rm -f conftest.$ac_objext
5219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220 (eval $ac_compile) 2>conftest.er1
5221 ac_status=$?
5222 grep -v '^ *+' conftest.er1 >conftest.err
5223 rm -f conftest.er1
5224 cat conftest.err >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } &&
5227 { ac_try='test -z "$ac_c_werror_flag"
5228 || test ! -s conftest.err'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 (eval $ac_try) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; } &&
5234 { ac_try='test -s conftest.$ac_objext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 (eval $ac_try) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 break
5241else
5242 echo "$as_me: failed program was:" >&5
5243sed 's/^/| /' conftest.$ac_ext >&5
5244
5245fi
5246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 cat >conftest.$ac_ext <<_ACEOF
5248/* confdefs.h. */
5249_ACEOF
5250cat confdefs.h >>conftest.$ac_ext
5251cat >>conftest.$ac_ext <<_ACEOF
5252/* end confdefs.h. */
5253#define _LARGE_FILES 1
5254#include <sys/types.h>
5255 /* Check that off_t can represent 2**63 - 1 correctly.
5256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5257 since some C++ compilers masquerading as C compilers
5258 incorrectly reject 9223372036854775807. */
5259#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5261 && LARGE_OFF_T % 2147483647 == 1)
5262 ? 1 : -1];
5263int
5264main ()
5265{
5266
5267 ;
5268 return 0;
5269}
5270_ACEOF
5271rm -f conftest.$ac_objext
5272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5273 (eval $ac_compile) 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } &&
5280 { ac_try='test -z "$ac_c_werror_flag"
5281 || test ! -s conftest.err'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; } &&
5287 { ac_try='test -s conftest.$ac_objext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 ac_cv_sys_large_files=1; break
5294else
5295 echo "$as_me: failed program was:" >&5
5296sed 's/^/| /' conftest.$ac_ext >&5
5297
5298fi
5299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5300 break
5301done
5302fi
5303echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5304echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5305if test "$ac_cv_sys_large_files" != no; then
5306
5307cat >>confdefs.h <<_ACEOF
5308#define _LARGE_FILES $ac_cv_sys_large_files
5309_ACEOF
5310
5311fi
5312rm -f conftest*
5313fi
5314
d7040cdb 5315
718a6fd8
SE
5316case `pwd` in
5317 *\ * | *\ *)
5318 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5319echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5320esac
d7040cdb
SE
5321
5322
7357c5b6 5323
718a6fd8
SE
5324macro_version='2.2.6'
5325macro_revision='1.3012'
7357c5b6
AM
5326
5327
5328
5329
5330
5331
7357c5b6
AM
5332
5333
5334
5335
5336
5337
5338
718a6fd8 5339ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6
AM
5340
5341echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5342echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5343if test "${lt_cv_path_SED+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346 # Loop through the user's path and test for sed and gsed.
5347# Then use that list of sed's as ones to test for truncation.
5348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $PATH
5350do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for lt_ac_prog in sed gsed; do
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5356 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5357 fi
5358 done
5359 done
5360done
5361IFS=$as_save_IFS
5362lt_ac_max=0
5363lt_ac_count=0
5364# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5365# along with /bin/sed that truncates output.
5366for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5367 test ! -f $lt_ac_sed && continue
5368 cat /dev/null > conftest.in
5369 lt_ac_count=0
5370 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5371 # Check for GNU sed and select it if it is found.
5372 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5373 lt_cv_path_SED=$lt_ac_sed
5374 break
5375 fi
5376 while true; do
5377 cat conftest.in conftest.in >conftest.tmp
5378 mv conftest.tmp conftest.in
5379 cp conftest.in conftest.nl
5380 echo >>conftest.nl
5381 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5382 cmp -s conftest.out conftest.nl || break
5383 # 10000 chars as input seems more than enough
5384 test $lt_ac_count -gt 10 && break
5385 lt_ac_count=`expr $lt_ac_count + 1`
5386 if test $lt_ac_count -gt $lt_ac_max; then
5387 lt_ac_max=$lt_ac_count
5388 lt_cv_path_SED=$lt_ac_sed
5389 fi
5390 done
5391done
5392
5393fi
5394
5395SED=$lt_cv_path_SED
5396
5397echo "$as_me:$LINENO: result: $SED" >&5
5398echo "${ECHO_T}$SED" >&6
5399
5400test -z "$SED" && SED=sed
5401Xsed="$SED -e 1s/^X//"
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413echo "$as_me:$LINENO: checking for fgrep" >&5
5414echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5415if test "${ac_cv_prog_fgrep+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417else
5418 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5419 then ac_cv_prog_fgrep='grep -F'
5420 else ac_cv_prog_fgrep='fgrep'
5421 fi
5422fi
5423echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5424echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5425 FGREP=$ac_cv_prog_fgrep
5426
5427
5428test -z "$GREP" && GREP=grep
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448# Check whether --with-gnu-ld or --without-gnu-ld was given.
5449if test "${with_gnu_ld+set}" = set; then
5450 withval="$with_gnu_ld"
5451 test "$withval" = no || with_gnu_ld=yes
5452else
5453 with_gnu_ld=no
5454fi;
5455ac_prog=ld
5456if test "$GCC" = yes; then
5457 # Check if gcc -print-prog-name=ld gives a path.
5458 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5459echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5460 case $host in
5461 *-*-mingw*)
5462 # gcc leaves a trailing carriage return which upsets mingw
5463 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5464 *)
5465 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5466 esac
5467 case $ac_prog in
5468 # Accept absolute paths.
5469 [\\/]* | ?:[\\/]*)
5470 re_direlt='/[^/][^/]*/\.\./'
5471 # Canonicalize the pathname of ld
5472 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5473 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
d7040cdb 5474 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
5475 done
5476 test -z "$LD" && LD="$ac_prog"
5477 ;;
5bd8253d 5478 "")
cfbc9945
SE
5479 # If it fails, then pretend we aren't using GCC.
5480 ac_prog=ld
5bd8253d
L
5481 ;;
5482 *)
cfbc9945
SE
5483 # If it is relative, then search for the first ld in PATH.
5484 with_gnu_ld=unknown
5bd8253d 5485 ;;
cfbc9945
SE
5486 esac
5487elif test "$with_gnu_ld" = yes; then
5488 echo "$as_me:$LINENO: checking for GNU ld" >&5
5489echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5490else
5491 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5492echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5493fi
5494if test "${lt_cv_path_LD+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496else
5497 if test -z "$LD"; then
d7040cdb 5498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 5499 for ac_dir in $PATH; do
d7040cdb 5500 IFS="$lt_save_ifs"
cfbc9945
SE
5501 test -z "$ac_dir" && ac_dir=.
5502 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5503 lt_cv_path_LD="$ac_dir/$ac_prog"
5504 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5505 # but apparently some variants of GNU ld only accept -v.
cfbc9945 5506 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5507 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5508 *GNU* | *'with BFD'*)
cfbc9945 5509 test "$with_gnu_ld" != no && break
d7040cdb
SE
5510 ;;
5511 *)
cfbc9945 5512 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5513 ;;
5514 esac
cfbc9945
SE
5515 fi
5516 done
d7040cdb 5517 IFS="$lt_save_ifs"
cfbc9945
SE
5518else
5519 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 5520fi
1ad12f97
NC
5521fi
5522
cfbc9945
SE
5523LD="$lt_cv_path_LD"
5524if test -n "$LD"; then
5525 echo "$as_me:$LINENO: result: $LD" >&5
5526echo "${ECHO_T}$LD" >&6
5527else
5528 echo "$as_me:$LINENO: result: no" >&5
5529echo "${ECHO_T}no" >&6
5530fi
5531test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5532echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5533 { (exit 1); exit 1; }; }
5534echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5535echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5536if test "${lt_cv_prog_gnu_ld+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538else
d7040cdb
SE
5539 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5540case `$LD -v 2>&1 </dev/null` in
5541*GNU* | *'with BFD'*)
cfbc9945 5542 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5543 ;;
5544*)
cfbc9945 5545 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5546 ;;
5547esac
49c96104 5548fi
cfbc9945
SE
5549echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5550echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5551with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 5552
9e9b66a9 5553
cfbc9945 5554
d7040cdb
SE
5555
5556
5557
5558
5559
5560
d7040cdb
SE
5561echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5562echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
cfbc9945
SE
5563if test "${lt_cv_path_NM+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565else
5566 if test -n "$NM"; then
5567 # Let the user override the test.
5568 lt_cv_path_NM="$NM"
5569else
d7040cdb
SE
5570 lt_nm_to_check="${ac_tool_prefix}nm"
5571 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5572 lt_nm_to_check="$lt_nm_to_check nm"
5573 fi
5574 for lt_tmp_nm in $lt_nm_to_check; do
5575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5576 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5577 IFS="$lt_save_ifs"
5578 test -z "$ac_dir" && ac_dir=.
5579 tmp_nm="$ac_dir/$lt_tmp_nm"
5580 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5581 # Check to see if the nm accepts a BSD-compat flag.
5582 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5583 # nm: unknown option "B" ignored
5584 # Tru64's nm complains that /dev/null is an invalid object file
5585 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5586 */dev/null* | *'Invalid file or object type'*)
5587 lt_cv_path_NM="$tmp_nm -B"
5588 break
5589 ;;
5590 *)
5591 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5592 */dev/null*)
5593 lt_cv_path_NM="$tmp_nm -p"
5594 break
5595 ;;
5596 *)
5597 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5598 continue # so that we can try to find one that supports BSD flags
5599 ;;
5600 esac
5601 ;;
5602 esac
cfbc9945 5603 fi
d7040cdb
SE
5604 done
5605 IFS="$lt_save_ifs"
cfbc9945 5606 done
d7040cdb 5607 : ${lt_cv_path_NM=no}
cfbc9945 5608fi
a2d91340 5609fi
d7040cdb
SE
5610echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5611echo "${ECHO_T}$lt_cv_path_NM" >&6
5612if test "$lt_cv_path_NM" != "no"; then
5613 NM="$lt_cv_path_NM"
cfbc9945 5614else
d7040cdb
SE
5615 # Didn't find any BSD compatible name lister, look for dumpbin.
5616 if test -n "$ac_tool_prefix"; then
5617 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5618 do
5619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5621echo "$as_me:$LINENO: checking for $ac_word" >&5
5622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5623if test "${ac_cv_prog_DUMPBIN+set}" = set; then
cfbc9945 5624 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5625else
d7040cdb
SE
5626 if test -n "$DUMPBIN"; then
5627 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5628else
5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 break 2
5639 fi
5640done
5641done
5464f5a1 5642
d7040cdb
SE
5643fi
5644fi
5645DUMPBIN=$ac_cv_prog_DUMPBIN
5646if test -n "$DUMPBIN"; then
5647 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5648echo "${ECHO_T}$DUMPBIN" >&6
5649else
5650 echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6
5652fi
d5fbea21 5653
d7040cdb
SE
5654 test -n "$DUMPBIN" && break
5655 done
5656fi
5657if test -z "$DUMPBIN"; then
5658 ac_ct_DUMPBIN=$DUMPBIN
5659 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5660do
5661 # Extract the first word of "$ac_prog", so it can be a program name with args.
5662set dummy $ac_prog; ac_word=$2
5663echo "$as_me:$LINENO: checking for $ac_word" >&5
5664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5665if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667else
5668 if test -n "$ac_ct_DUMPBIN"; then
5669 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 break 2
cfbc9945 5681 fi
d7040cdb
SE
5682done
5683done
d5fbea21 5684
d7040cdb
SE
5685fi
5686fi
5687ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5688if test -n "$ac_ct_DUMPBIN"; then
5689 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5690echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5691else
5692 echo "$as_me:$LINENO: result: no" >&5
5693echo "${ECHO_T}no" >&6
5694fi
d5fbea21 5695
d7040cdb
SE
5696 test -n "$ac_ct_DUMPBIN" && break
5697done
5698test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
24443139 5699
d7040cdb
SE
5700 DUMPBIN=$ac_ct_DUMPBIN
5701fi
24443139 5702
24443139 5703
d7040cdb
SE
5704 if test "$DUMPBIN" != ":"; then
5705 NM="$DUMPBIN"
cfbc9945 5706 fi
d7040cdb
SE
5707fi
5708test -z "$NM" && NM=nm
a703a6ea 5709
f5385ebf 5710
cfbc9945 5711
24443139
AS
5712
5713
5714
d7040cdb
SE
5715echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5716echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5717if test "${lt_cv_nm_interface+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719else
5720 lt_cv_nm_interface="BSD nm"
5721 echo "int some_variable = 0;" > conftest.$ac_ext
29670fb9 5722 (eval echo "\"\$as_me:5722: $ac_compile\"" >&5)
d7040cdb
SE
5723 (eval "$ac_compile" 2>conftest.err)
5724 cat conftest.err >&5
29670fb9 5725 (eval echo "\"\$as_me:5725: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5726 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5727 cat conftest.err >&5
29670fb9 5728 (eval echo "\"\$as_me:5728: output\"" >&5)
d7040cdb
SE
5729 cat conftest.out >&5
5730 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5731 lt_cv_nm_interface="MS dumpbin"
5732 fi
5733 rm -f conftest*
cfbc9945 5734fi
d7040cdb
SE
5735echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5736echo "${ECHO_T}$lt_cv_nm_interface" >&6
a703a6ea 5737
d7040cdb
SE
5738echo "$as_me:$LINENO: checking whether ln -s works" >&5
5739echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5740LN_S=$as_ln_s
5741if test "$LN_S" = "ln -s"; then
5742 echo "$as_me:$LINENO: result: yes" >&5
5743echo "${ECHO_T}yes" >&6
5744else
5745 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5746echo "${ECHO_T}no, using $LN_S" >&6
5747fi
252b5132 5748
cfbc9945
SE
5749# find the maximum length of command line arguments
5750echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5751echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5752if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754else
5755 i=0
5756 teststring="ABCD"
5464f5a1 5757
cfbc9945
SE
5758 case $build_os in
5759 msdosdjgpp*)
5760 # On DJGPP, this test can blow up pretty badly due to problems in libc
5761 # (any single argument exceeding 2000 bytes causes a buffer overrun
5762 # during glob expansion). Even if it were fixed, the result of this
5763 # check would be larger than it should be.
5764 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5765 ;;
5464f5a1 5766
d7040cdb
SE
5767 gnu*)
5768 # Under GNU Hurd, this test is not required because there is
5769 # no limit to the length of command line arguments.
5770 # Libtool will interpret -1 as no limit whatsoever
5771 lt_cv_sys_max_cmd_len=-1;
5772 ;;
5773
718a6fd8 5774 cygwin* | mingw* | cegcc*)
cfbc9945
SE
5775 # On Win9x/ME, this test blows up -- it succeeds, but takes
5776 # about 5 minutes as the teststring grows exponentially.
5777 # Worse, since 9x/ME are not pre-emptively multitasking,
5778 # you end up with a "frozen" computer, even though with patience
5779 # the test eventually succeeds (with a max line length of 256k).
5780 # Instead, let's just punt: use the minimum linelength reported by
5781 # all of the supported platforms: 8192 (on NT/2K/XP).
5782 lt_cv_sys_max_cmd_len=8192;
5783 ;;
5464f5a1 5784
cfbc9945
SE
5785 amigaos*)
5786 # On AmigaOS with pdksh, this test takes hours, literally.
5787 # So we just punt and use a minimum line length of 8192.
5788 lt_cv_sys_max_cmd_len=8192;
5789 ;;
5464f5a1 5790
cfbc9945
SE
5791 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5792 # This has been around since 386BSD, at least. Likely further.
5793 if test -x /sbin/sysctl; then
5794 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5795 elif test -x /usr/sbin/sysctl; then
5796 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5797 else
d7040cdb 5798 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
5799 fi
5800 # And add a safety zone
5801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5803 ;;
d7040cdb
SE
5804
5805 interix*)
5806 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5807 lt_cv_sys_max_cmd_len=196608
5808 ;;
5809
5810 osf*)
5811 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5812 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5813 # nice to cause kernel panics so lets avoid the loop below.
5814 # First set a reasonable default.
5815 lt_cv_sys_max_cmd_len=16384
5816 #
5817 if test -x /sbin/sysconfig; then
5818 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5819 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5820 esac
5821 fi
5822 ;;
5823 sco3.2v5*)
5824 lt_cv_sys_max_cmd_len=102400
5825 ;;
5826 sysv5* | sco5v6* | sysv4.2uw2*)
5827 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5828 if test -n "$kargmax"; then
5829 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5830 else
5831 lt_cv_sys_max_cmd_len=32768
5832 fi
5833 ;;
5834 *)
718a6fd8
SE
5835 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5836 if test -n "$lt_cv_sys_max_cmd_len"; then
79887925
L
5837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5839 else
5840 # Make teststring a little bigger before we do anything with it.
5841 # a 1K string should be a reasonable start.
5842 for i in 1 2 3 4 5 6 7 8 ; do
5843 teststring=$teststring$teststring
5844 done
5845 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5846 # If test is not a shell built-in, we'll probably end up computing a
5847 # maximum length that is only half of the actual maximum length, but
5848 # we can't tell.
5849 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5850 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5851 test $i != 17 # 1/2 MB should be enough
5852 do
5853 i=`expr $i + 1`
5854 teststring=$teststring$teststring
5855 done
5856 # Only check the string length outside the loop.
5857 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5858 teststring=
5859 # Add a significant safety factor because C++ compilers can tack on
5860 # massive amounts of additional arguments before passing them to the
5861 # linker. It appears as though 1/2 is a usable value.
5862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5863 fi
d7040cdb 5864 ;;
cfbc9945 5865 esac
5464f5a1 5866
252b5132 5867fi
cfbc9945 5868
d7040cdb 5869if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
5870 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5871echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 5872else
cfbc9945
SE
5873 echo "$as_me:$LINENO: result: none" >&5
5874echo "${ECHO_T}none" >&6
5464f5a1 5875fi
d7040cdb 5876max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5877
cfbc9945 5878
252b5132 5879
cfbc9945 5880
cfbc9945 5881
d7040cdb 5882
d7040cdb
SE
5883: ${CP="cp -f"}
5884: ${MV="mv -f"}
5885: ${RM="rm -f"}
5886
5887echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5888echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5889# Try some XSI features
5890xsi_shell=no
5891( _lt_dummy="a/b/c"
5892 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
5893 = c,a/b,, \
5894 && eval 'test $(( 1 + 1 )) -eq 2 \
5895 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb
SE
5896 && xsi_shell=yes
5897echo "$as_me:$LINENO: result: $xsi_shell" >&5
5898echo "${ECHO_T}$xsi_shell" >&6
5899
5900
5901echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5902echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5903lt_shell_append=no
5904( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5905 >/dev/null 2>&1 \
5906 && lt_shell_append=yes
5907echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5908echo "${ECHO_T}$lt_shell_append" >&6
5909
5910
5911if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5912 lt_unset=unset
5464f5a1 5913else
d7040cdb 5914 lt_unset=false
5464f5a1 5915fi
252b5132 5916
d7040cdb
SE
5917
5918
5919
5920
5921# test EBCDIC or ASCII
5922case `echo X|tr X '\101'` in
5923 A) # ASCII based system
5924 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5925 lt_SP2NL='tr \040 \012'
5926 lt_NL2SP='tr \015\012 \040\040'
5927 ;;
5928 *) # EBCDIC based system
5929 lt_SP2NL='tr \100 \n'
5930 lt_NL2SP='tr \r\n \100\100'
5931 ;;
5932esac
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5943echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5944if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946else
d7040cdb
SE
5947 lt_cv_ld_reload_flag='-r'
5948fi
5949echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5950echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5951reload_flag=$lt_cv_ld_reload_flag
5952case $reload_flag in
5953"" | " "*) ;;
5954*) reload_flag=" $reload_flag" ;;
5955esac
5956reload_cmds='$LD$reload_flag -o $output$reload_objs'
5957case $host_os in
5958 darwin*)
5959 if test "$GCC" = yes; then
5960 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5961 else
5962 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5963 fi
5964 ;;
5965esac
5966
5967
5968
5969
5970
5971
5972
5973
5974
718a6fd8
SE
5975if test -n "$ac_tool_prefix"; then
5976 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5977set dummy ${ac_tool_prefix}objdump; ac_word=$2
5978echo "$as_me:$LINENO: checking for $ac_word" >&5
5979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5980if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982else
5983 if test -n "$OBJDUMP"; then
5984 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5985else
5986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH
5988do
5989 IFS=$as_save_IFS
5990 test -z "$as_dir" && as_dir=.
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5993 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 break 2
5996 fi
5997done
5998done
5999
6000fi
6001fi
6002OBJDUMP=$ac_cv_prog_OBJDUMP
6003if test -n "$OBJDUMP"; then
6004 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6005echo "${ECHO_T}$OBJDUMP" >&6
6006else
6007 echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6
6009fi
6010
6011fi
6012if test -z "$ac_cv_prog_OBJDUMP"; then
6013 ac_ct_OBJDUMP=$OBJDUMP
6014 # Extract the first word of "objdump", so it can be a program name with args.
6015set dummy objdump; ac_word=$2
6016echo "$as_me:$LINENO: checking for $ac_word" >&5
6017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6018if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020else
6021 if test -n "$ac_ct_OBJDUMP"; then
6022 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6023else
6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035done
6036done
6037
6038 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6039fi
6040fi
6041ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6042if test -n "$ac_ct_OBJDUMP"; then
6043 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6044echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6045else
6046 echo "$as_me:$LINENO: result: no" >&5
6047echo "${ECHO_T}no" >&6
6048fi
6049
6050 OBJDUMP=$ac_ct_OBJDUMP
6051else
6052 OBJDUMP="$ac_cv_prog_OBJDUMP"
6053fi
6054
6055test -z "$OBJDUMP" && OBJDUMP=objdump
6056
6057
6058
6059
6060
6061
6062
6063
d7040cdb
SE
6064
6065echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6066echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6067if test "${lt_cv_deplibs_check_method+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069else
6070 lt_cv_file_magic_cmd='$MAGIC_CMD'
6071lt_cv_file_magic_test_file=
6072lt_cv_deplibs_check_method='unknown'
6073# Need to set the preceding variable on all platforms that support
6074# interlibrary dependencies.
6075# 'none' -- dependencies not supported.
6076# `unknown' -- same as none, but documents that we really don't know.
6077# 'pass_all' -- all dependencies passed with no checks.
6078# 'test_compile' -- check by making test program.
6079# 'file_magic [[regex]]' -- check by looking for files in library path
6080# which responds to the $file_magic_cmd with a given extended regex.
6081# If you have `file' or equivalent on your system and you're not sure
6082# whether `pass_all' will *always* work, you probably want this one.
6083
6084case $host_os in
e81819a5 6085aix[4-9]*)
d7040cdb
SE
6086 lt_cv_deplibs_check_method=pass_all
6087 ;;
6088
6089beos*)
6090 lt_cv_deplibs_check_method=pass_all
6091 ;;
6092
6093bsdi[45]*)
6094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6095 lt_cv_file_magic_cmd='/usr/bin/file -L'
6096 lt_cv_file_magic_test_file=/shlib/libc.so
6097 ;;
6098
6099cygwin*)
6100 # func_win32_libid is a shell function defined in ltmain.sh
6101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6102 lt_cv_file_magic_cmd='func_win32_libid'
6103 ;;
6104
6105mingw* | pw32*)
6106 # Base MSYS/MinGW do not provide the 'file' command needed by
6107 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6108 # unless we find 'file', for example because we are cross-compiling.
6109 if ( file / ) >/dev/null 2>&1; then
6110 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6111 lt_cv_file_magic_cmd='func_win32_libid'
6112 else
6113 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6114 lt_cv_file_magic_cmd='$OBJDUMP -f'
6115 fi
6116 ;;
6117
718a6fd8
SE
6118cegcc)
6119 # use the weaker test based on 'objdump'. See mingw*.
6120 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6121 lt_cv_file_magic_cmd='$OBJDUMP -f'
6122 ;;
6123
d7040cdb
SE
6124darwin* | rhapsody*)
6125 lt_cv_deplibs_check_method=pass_all
cfbc9945 6126 ;;
d7040cdb
SE
6127
6128freebsd* | dragonfly*)
6129 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6130 case $host_cpu in
6131 i*86 )
6132 # Not sure whether the presence of OpenBSD here was a mistake.
6133 # Let's accept both of them until this is cleared up.
6134 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6135 lt_cv_file_magic_cmd=/usr/bin/file
6136 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6137 ;;
6138 esac
6139 else
6140 lt_cv_deplibs_check_method=pass_all
6141 fi
6142 ;;
6143
6144gnu*)
6145 lt_cv_deplibs_check_method=pass_all
cfbc9945 6146 ;;
d7040cdb
SE
6147
6148hpux10.20* | hpux11*)
6149 lt_cv_file_magic_cmd=/usr/bin/file
6150 case $host_cpu in
6151 ia64*)
6152 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6153 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6154 ;;
6155 hppa*64*)
6156 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]'
6157 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6158 ;;
cfbc9945 6159 *)
d7040cdb
SE
6160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6161 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6162 ;;
6163 esac
6164 ;;
6be7c12c 6165
d7040cdb
SE
6166interix[3-9]*)
6167 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6169 ;;
cfbc9945 6170
d7040cdb
SE
6171irix5* | irix6* | nonstopux*)
6172 case $LD in
6173 *-32|*"-32 ") libmagic=32-bit;;
6174 *-n32|*"-n32 ") libmagic=N32;;
6175 *-64|*"-64 ") libmagic=64-bit;;
6176 *) libmagic=never-match;;
6177 esac
6178 lt_cv_deplibs_check_method=pass_all
cfbc9945 6179 ;;
cfbc9945 6180
d7040cdb
SE
6181# This must be Linux ELF.
6182linux* | k*bsd*-gnu)
6183 lt_cv_deplibs_check_method=pass_all
6184 ;;
5464f5a1 6185
d7040cdb
SE
6186netbsd*)
6187 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 6189 else
d7040cdb 6190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 6191 fi
d7040cdb
SE
6192 ;;
6193
6194newos6*)
6195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6196 lt_cv_file_magic_cmd=/usr/bin/file
6197 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6198 ;;
6199
6200*nto* | *qnx*)
6201 lt_cv_deplibs_check_method=pass_all
6202 ;;
cfbc9945 6203
d7040cdb
SE
6204openbsd*)
6205 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6207 else
6208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
6209 fi
6210 ;;
d7040cdb
SE
6211
6212osf3* | osf4* | osf5*)
6213 lt_cv_deplibs_check_method=pass_all
6214 ;;
6215
6216rdos*)
6217 lt_cv_deplibs_check_method=pass_all
6218 ;;
6219
6220solaris*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223
6224sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6225 lt_cv_deplibs_check_method=pass_all
6226 ;;
6227
6228sysv4 | sysv4.3*)
6229 case $host_vendor in
6230 motorola)
6231 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]'
6232 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6233 ;;
6234 ncr)
6235 lt_cv_deplibs_check_method=pass_all
6236 ;;
6237 sequent)
6238 lt_cv_file_magic_cmd='/bin/file'
6239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6240 ;;
6241 sni)
6242 lt_cv_file_magic_cmd='/bin/file'
6243 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6244 lt_cv_file_magic_test_file=/lib/libc.so
6245 ;;
6246 siemens)
6247 lt_cv_deplibs_check_method=pass_all
6248 ;;
6249 pc)
6250 lt_cv_deplibs_check_method=pass_all
6251 ;;
6252 esac
6253 ;;
6254
6255tpf*)
6256 lt_cv_deplibs_check_method=pass_all
6257 ;;
cfbc9945
SE
6258esac
6259
d7040cdb
SE
6260fi
6261echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6262echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6263file_magic_cmd=$lt_cv_file_magic_cmd
6264deplibs_check_method=$lt_cv_deplibs_check_method
6265test -z "$deplibs_check_method" && deplibs_check_method=unknown
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
cfbc9945 6278if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6279 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6280set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
6281echo "$as_me:$LINENO: checking for $ac_word" >&5
6282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6283if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285else
d7040cdb
SE
6286 if test -n "$AR"; then
6287 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
6288else
6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6296 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
6297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6299 fi
6300done
6301done
6302
6303fi
6304fi
d7040cdb
SE
6305AR=$ac_cv_prog_AR
6306if test -n "$AR"; then
6307 echo "$as_me:$LINENO: result: $AR" >&5
6308echo "${ECHO_T}$AR" >&6
5464f5a1
NN
6309else
6310 echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6
6312fi
6313
5464f5a1 6314fi
d7040cdb
SE
6315if test -z "$ac_cv_prog_AR"; then
6316 ac_ct_AR=$AR
6317 # Extract the first word of "ar", so it can be a program name with args.
6318set dummy ar; ac_word=$2
5464f5a1
NN
6319echo "$as_me:$LINENO: checking for $ac_word" >&5
6320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6321if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 6322 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6323else
d7040cdb
SE
6324 if test -n "$ac_ct_AR"; then
6325 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 6326else
5464f5a1
NN
6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6334 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
6335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6337 fi
6338done
6339done
6340
d7040cdb 6341 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
6342fi
6343fi
d7040cdb
SE
6344ac_ct_AR=$ac_cv_prog_ac_ct_AR
6345if test -n "$ac_ct_AR"; then
6346 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6347echo "${ECHO_T}$ac_ct_AR" >&6
6348else
6349 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
6350echo "${ECHO_T}no" >&6
6351fi
6352
d7040cdb 6353 AR=$ac_ct_AR
cfbc9945 6354else
d7040cdb 6355 AR="$ac_cv_prog_AR"
5464f5a1 6356fi
cfbc9945 6357
d7040cdb
SE
6358test -z "$AR" && AR=ar
6359test -z "$AR_FLAGS" && AR_FLAGS=cru
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
cfbc9945
SE
6371if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6373set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
6374echo "$as_me:$LINENO: checking for $ac_word" >&5
6375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 6376if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378else
cfbc9945
SE
6379 if test -n "$STRIP"; then
6380 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
6381else
6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383for as_dir in $PATH
6384do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 6389 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393done
6394done
6395
6396fi
6397fi
cfbc9945
SE
6398STRIP=$ac_cv_prog_STRIP
6399if test -n "$STRIP"; then
6400 echo "$as_me:$LINENO: result: $STRIP" >&5
6401echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
6402else
6403 echo "$as_me:$LINENO: result: no" >&5
6404echo "${ECHO_T}no" >&6
6405fi
6406
252b5132 6407fi
cfbc9945
SE
6408if test -z "$ac_cv_prog_STRIP"; then
6409 ac_ct_STRIP=$STRIP
6410 # Extract the first word of "strip", so it can be a program name with args.
6411set dummy strip; ac_word=$2
5464f5a1
NN
6412echo "$as_me:$LINENO: checking for $ac_word" >&5
6413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 6414if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416else
cfbc9945
SE
6417 if test -n "$ac_ct_STRIP"; then
6418 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
6419else
6420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421for as_dir in $PATH
6422do
6423 IFS=$as_save_IFS
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 6427 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
6428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 break 2
6430 fi
6431done
6432done
6433
cfbc9945 6434 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
6435fi
6436fi
cfbc9945
SE
6437ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6438if test -n "$ac_ct_STRIP"; then
6439 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6440echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
6441else
6442 echo "$as_me:$LINENO: result: no" >&5
6443echo "${ECHO_T}no" >&6
6444fi
6445
cfbc9945
SE
6446 STRIP=$ac_ct_STRIP
6447else
6448 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
6449fi
6450
d7040cdb 6451test -z "$STRIP" && STRIP=:
5464f5a1 6452
cfbc9945
SE
6453
6454
cfbc9945 6455
cfbc9945
SE
6456
6457
d7040cdb
SE
6458if test -n "$ac_tool_prefix"; then
6459 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6460set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6461echo "$as_me:$LINENO: checking for $ac_word" >&5
6462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6463if test "${ac_cv_prog_RANLIB+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 6465else
d7040cdb
SE
6466 if test -n "$RANLIB"; then
6467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6468else
6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470for as_dir in $PATH
6471do
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 break 2
cfbc9945 6479 fi
d7040cdb
SE
6480done
6481done
cfbc9945 6482
d7040cdb
SE
6483fi
6484fi
6485RANLIB=$ac_cv_prog_RANLIB
6486if test -n "$RANLIB"; then
6487 echo "$as_me:$LINENO: result: $RANLIB" >&5
6488echo "${ECHO_T}$RANLIB" >&6
6489else
6490 echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6
6492fi
cfbc9945 6493
d7040cdb
SE
6494fi
6495if test -z "$ac_cv_prog_RANLIB"; then
6496 ac_ct_RANLIB=$RANLIB
6497 # Extract the first word of "ranlib", so it can be a program name with args.
6498set dummy ranlib; ac_word=$2
6499echo "$as_me:$LINENO: checking for $ac_word" >&5
6500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6501if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503else
6504 if test -n "$ac_ct_RANLIB"; then
6505 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6506else
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_ac_ct_RANLIB="ranlib"
6515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
cfbc9945 6517 fi
d7040cdb
SE
6518done
6519done
cfbc9945 6520
d7040cdb
SE
6521 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6522fi
6523fi
6524ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6525if test -n "$ac_ct_RANLIB"; then
6526 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6527echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 6528else
d7040cdb
SE
6529 echo "$as_me:$LINENO: result: no" >&5
6530echo "${ECHO_T}no" >&6
6531fi
5464f5a1 6532
d7040cdb
SE
6533 RANLIB=$ac_ct_RANLIB
6534else
6535 RANLIB="$ac_cv_prog_RANLIB"
6536fi
5464f5a1 6537
d7040cdb 6538test -z "$RANLIB" && RANLIB=:
5464f5a1 6539
5464f5a1 6540
5464f5a1 6541
cfbc9945 6542
cfbc9945 6543
d7040cdb
SE
6544
6545# Determine commands to create old-style static archives.
718a6fd8 6546old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6547old_postinstall_cmds='chmod 644 $oldlib'
6548old_postuninstall_cmds=
6549
6550if test -n "$RANLIB"; then
6551 case $host_os in
6552 openbsd*)
6553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6554 ;;
6555 *)
6556 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6557 ;;
6558 esac
6559 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 6560fi
cfbc9945
SE
6561
6562
cfbc9945
SE
6563
6564
cfbc9945 6565
cfbc9945 6566
cfbc9945 6567
cfbc9945 6568
cfbc9945
SE
6569
6570
cfbc9945 6571
cfbc9945 6572
cfbc9945
SE
6573
6574
6575
6576
6577
6578
6579
5464f5a1 6580
5464f5a1 6581
cfbc9945
SE
6582
6583
6584
5464f5a1 6585
5464f5a1 6586
cfbc9945
SE
6587
6588
6589
5464f5a1 6590
cfbc9945
SE
6591
6592
6593
6594
d7040cdb
SE
6595# If no C compiler was specified, use CC.
6596LTCC=${LTCC-"$CC"}
cfbc9945 6597
d7040cdb
SE
6598# If no C compiler flags were specified, use CFLAGS.
6599LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 6600
d7040cdb
SE
6601# Allow CC to be a program name with arguments.
6602compiler=$CC
cfbc9945 6603
cfbc9945 6604
d7040cdb
SE
6605# Check for command to grab the raw symbol name followed by C symbol from nm.
6606echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6607echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6608if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
5464f5a1 6611
d7040cdb
SE
6612# These are sane defaults that work on at least a few old systems.
6613# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 6614
d7040cdb
SE
6615# Character class describing NM global symbol codes.
6616symcode='[BCDEGRST]'
6617
6618# Regexp to match symbols that can be accessed directly from C.
6619sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6620
6621# Define system-specific variables.
6622case $host_os in
6623aix*)
6624 symcode='[BCDT]'
6625 ;;
718a6fd8 6626cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6627 symcode='[ABCDGISTW]'
6628 ;;
6629hpux*)
6630 if test "$host_cpu" = ia64; then
6631 symcode='[ABCDEGRST]'
6632 fi
6633 ;;
6634irix* | nonstopux*)
6635 symcode='[BCDEGRST]'
6636 ;;
6637osf*)
6638 symcode='[BCDEGQRST]'
6639 ;;
6640solaris*)
6641 symcode='[BDRT]'
6642 ;;
6643sco3.2v5*)
6644 symcode='[DT]'
6645 ;;
6646sysv4.2uw2*)
6647 symcode='[DT]'
6648 ;;
6649sysv5* | sco5v6* | unixware* | OpenUNIX*)
6650 symcode='[ABDT]'
6651 ;;
6652sysv4)
6653 symcode='[DFNSTU]'
6654 ;;
cfbc9945 6655esac
5464f5a1 6656
d7040cdb
SE
6657# If we're using GNU nm, then use its standard symbol codes.
6658case `$NM -V 2>&1` in
6659*GNU* | *'with BFD'*)
6660 symcode='[ABCDGIRSTW]' ;;
6661esac
5464f5a1 6662
d7040cdb
SE
6663# Transform an extracted symbol line into a proper C declaration.
6664# Some systems (esp. on ia64) link data and code symbols differently,
6665# so use this general approach.
6666lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 6667
d7040cdb
SE
6668# Transform an extracted symbol line into symbol name and symbol address
6669lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6670lt_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 6671
d7040cdb
SE
6672# Handle CRLF in mingw tool chain
6673opt_cr=
6674case $build_os in
6675mingw*)
6676 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6677 ;;
6678esac
5464f5a1 6679
d7040cdb
SE
6680# Try without a prefix underscore, then with it.
6681for ac_symprfx in "" "_"; do
6682
6683 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6684 symxfrm="\\1 $ac_symprfx\\2 \\2"
6685
6686 # Write the raw and C identifiers.
6687 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6688 # Fake it for dumpbin and say T for any non-static function
6689 # and D for any global variable.
6690 # Also find C++ and __fastcall symbols from MSVC++,
6691 # which start with @ or ?.
6692 lt_cv_sys_global_symbol_pipe="$AWK '"\
6693" {last_section=section; section=\$ 3};"\
6694" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6695" \$ 0!~/External *\|/{next};"\
6696" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6697" {if(hide[section]) next};"\
6698" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6699" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6700" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6701" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6702" ' prfx=^$ac_symprfx"
6703 else
6704 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6705 fi
cfbc9945 6706
d7040cdb
SE
6707 # Check to see that the pipe works correctly.
6708 pipe_works=no
cfbc9945 6709
d7040cdb
SE
6710 rm -f conftest*
6711 cat > conftest.$ac_ext <<_LT_EOF
6712#ifdef __cplusplus
6713extern "C" {
6714#endif
6715char nm_test_var;
6716void nm_test_func(void);
6717void nm_test_func(void){}
6718#ifdef __cplusplus
6719}
6720#endif
6721int main(){nm_test_var='a';nm_test_func();return(0);}
6722_LT_EOF
cfbc9945 6723
d7040cdb
SE
6724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6725 (eval $ac_compile) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; then
6729 # Now try to grab the symbols.
6730 nlist=conftest.nm
6731 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6732 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && test -s "$nlist"; then
6736 # Try sorting and uniquifying the output.
6737 if sort "$nlist" | uniq > "$nlist"T; then
6738 mv -f "$nlist"T "$nlist"
6739 else
6740 rm -f "$nlist"T
6741 fi
cfbc9945 6742
d7040cdb
SE
6743 # Make sure that we snagged all the symbols we need.
6744 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6745 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6746 cat <<_LT_EOF > conftest.$ac_ext
6747#ifdef __cplusplus
6748extern "C" {
6749#endif
cfbc9945 6750
d7040cdb
SE
6751_LT_EOF
6752 # Now generate the symbol file.
6753 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 6754
d7040cdb 6755 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 6756
d7040cdb
SE
6757/* The mapping between symbol names and symbols. */
6758const struct {
6759 const char *name;
6760 void *address;
6761}
6762lt__PROGRAM__LTX_preloaded_symbols[] =
6763{
6764 { "@PROGRAM@", (void *) 0 },
6765_LT_EOF
6766 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6767 cat <<\_LT_EOF >> conftest.$ac_ext
6768 {0, (void *) 0}
6769};
6770
6771/* This works around a problem in FreeBSD linker */
6772#ifdef FREEBSD_WORKAROUND
6773static const void *lt_preloaded_setup() {
6774 return lt__PROGRAM__LTX_preloaded_symbols;
6775}
6776#endif
cfbc9945 6777
d7040cdb
SE
6778#ifdef __cplusplus
6779}
6780#endif
6781_LT_EOF
6782 # Now try linking the two files.
6783 mv conftest.$ac_objext conftstm.$ac_objext
6784 lt_save_LIBS="$LIBS"
6785 lt_save_CFLAGS="$CFLAGS"
6786 LIBS="conftstm.$ac_objext"
6787 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6789 (eval $ac_link) 2>&5
6790 ac_status=$?
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6793 pipe_works=yes
6794 fi
6795 LIBS="$lt_save_LIBS"
6796 CFLAGS="$lt_save_CFLAGS"
6797 else
6798 echo "cannot find nm_test_func in $nlist" >&5
6799 fi
6800 else
6801 echo "cannot find nm_test_var in $nlist" >&5
6802 fi
6803 else
6804 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6805 fi
6806 else
6807 echo "$progname: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 fi
718a6fd8 6810 rm -rf conftest* conftst*
cfbc9945 6811
d7040cdb
SE
6812 # Do not use the global_symbol_pipe unless it works.
6813 if test "$pipe_works" = yes; then
6814 break
6815 else
6816 lt_cv_sys_global_symbol_pipe=
6817 fi
6818done
cfbc9945 6819
252b5132 6820fi
5464f5a1 6821
d7040cdb
SE
6822if test -z "$lt_cv_sys_global_symbol_pipe"; then
6823 lt_cv_sys_global_symbol_to_cdecl=
6824fi
6825if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6826 echo "$as_me:$LINENO: result: failed" >&5
6827echo "${ECHO_T}failed" >&6
b3baf5d0 6828else
d7040cdb
SE
6829 echo "$as_me:$LINENO: result: ok" >&5
6830echo "${ECHO_T}ok" >&6
6831fi
5464f5a1 6832
cfbc9945 6833
b3baf5d0 6834
cfbc9945
SE
6835
6836
6837
6838
5464f5a1 6839
4a2a2686
HPN
6840
6841
6842
cfbc9945
SE
6843
6844
cfbc9945 6845
cfbc9945 6846
718a6fd8
SE
6847
6848
6849
6850
6851
9d7cbccd 6852
20e95c23 6853
d7040cdb
SE
6854# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6855if test "${enable_libtool_lock+set}" = set; then
6856 enableval="$enable_libtool_lock"
20e95c23 6857
d7040cdb
SE
6858fi;
6859test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 6860
d7040cdb
SE
6861# Some flags need to be propagated to the compiler or linker for good
6862# libtool support.
6863case $host in
6864ia64-*-hpux*)
6865 # Find out which ABI we are using.
6866 echo 'int i;' > conftest.$ac_ext
6867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868 (eval $ac_compile) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; then
6872 case `/usr/bin/file conftest.$ac_objext` in
6873 *ELF-32*)
6874 HPUX_IA64_MODE="32"
6875 ;;
6876 *ELF-64*)
6877 HPUX_IA64_MODE="64"
6878 ;;
20e95c23 6879 esac
d7040cdb
SE
6880 fi
6881 rm -rf conftest*
6882 ;;
6883*-*-irix6*)
6884 # Find out which ABI we are using.
29670fb9 6885 echo '#line 6885 "configure"' > conftest.$ac_ext
d7040cdb
SE
6886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6887 (eval $ac_compile) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; then
6891 if test "$lt_cv_prog_gnu_ld" = yes; then
6892 case `/usr/bin/file conftest.$ac_objext` in
6893 *32-bit*)
6894 LD="${LD-ld} -melf32bsmip"
6895 ;;
6896 *N32*)
6897 LD="${LD-ld} -melf32bmipn32"
6898 ;;
6899 *64-bit*)
6900 LD="${LD-ld} -melf64bmip"
6901 ;;
6902 esac
20e95c23 6903 else
d7040cdb
SE
6904 case `/usr/bin/file conftest.$ac_objext` in
6905 *32-bit*)
6906 LD="${LD-ld} -32"
6907 ;;
6908 *N32*)
6909 LD="${LD-ld} -n32"
6910 ;;
6911 *64-bit*)
6912 LD="${LD-ld} -64"
6913 ;;
20e95c23
DJ
6914 esac
6915 fi
d7040cdb
SE
6916 fi
6917 rm -rf conftest*
6918 ;;
20e95c23 6919
d7040cdb
SE
6920x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6921s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6922 # Find out which ABI we are using.
6923 echo 'int i;' > conftest.$ac_ext
6924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6925 (eval $ac_compile) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; then
6929 case `/usr/bin/file conftest.o` in
6930 *32-bit*)
6931 case $host in
6932 x86_64-*kfreebsd*-gnu)
6933 LD="${LD-ld} -m elf_i386_fbsd"
6934 ;;
6935 x86_64-*linux*)
6936 LD="${LD-ld} -m elf_i386"
6937 ;;
6938 ppc64-*linux*|powerpc64-*linux*)
6939 LD="${LD-ld} -m elf32ppclinux"
6940 ;;
6941 s390x-*linux*)
6942 LD="${LD-ld} -m elf_s390"
6943 ;;
6944 sparc64-*linux*)
6945 LD="${LD-ld} -m elf32_sparc"
6946 ;;
6947 esac
6948 ;;
6949 *64-bit*)
6950 case $host in
6951 x86_64-*kfreebsd*-gnu)
6952 LD="${LD-ld} -m elf_x86_64_fbsd"
6953 ;;
6954 x86_64-*linux*)
6955 LD="${LD-ld} -m elf_x86_64"
6956 ;;
6957 ppc*-*linux*|powerpc*-*linux*)
6958 LD="${LD-ld} -m elf64ppc"
6959 ;;
6960 s390*-*linux*|s390*-*tpf*)
6961 LD="${LD-ld} -m elf64_s390"
6962 ;;
6963 sparc*-*linux*)
6964 LD="${LD-ld} -m elf64_sparc"
6965 ;;
6966 esac
6967 ;;
20e95c23
DJ
6968 esac
6969 fi
d7040cdb 6970 rm -rf conftest*
7357c5b6 6971 ;;
d7040cdb 6972
7357c5b6
AM
6973*-*-sco3.2v5*)
6974 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6975 SAVE_CFLAGS="$CFLAGS"
6976 CFLAGS="$CFLAGS -belf"
6977 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6978echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6979if test "${lt_cv_cc_needs_belf+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 6981else
7357c5b6
AM
6982 ac_ext=c
6983ac_cpp='$CPP $CPPFLAGS'
6984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6987
7357c5b6 6988 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
6989/* confdefs.h. */
6990_ACEOF
6991cat confdefs.h >>conftest.$ac_ext
6992cat >>conftest.$ac_ext <<_ACEOF
6993/* end confdefs.h. */
d7040cdb 6994
d7040cdb
SE
6995int
6996main ()
6997{
7357c5b6
AM
6998
6999 ;
7000 return 0;
d7040cdb
SE
7001}
7002_ACEOF
7357c5b6 7003rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb 7004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7357c5b6 7005 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7357c5b6
AM
7012 { ac_try='test -z "$ac_c_werror_flag"
7013 || test ! -s conftest.err'
d7040cdb
SE
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7357c5b6 7019 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7357c5b6 7025 lt_cv_cc_needs_belf=yes
d7040cdb
SE
7026else
7027 echo "$as_me: failed program was:" >&5
7028sed 's/^/| /' conftest.$ac_ext >&5
7029
7357c5b6 7030lt_cv_cc_needs_belf=no
d7040cdb 7031fi
7357c5b6
AM
7032rm -f conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 ac_ext=c
7035ac_cpp='$CPP $CPPFLAGS'
7036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7039
7040fi
7357c5b6
AM
7041echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7042echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7043 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7044 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7045 CFLAGS="$SAVE_CFLAGS"
7046 fi
7047 ;;
7048sparc*-*solaris*)
7049 # Find out which ABI we are using.
7050 echo 'int i;' > conftest.$ac_ext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7052 (eval $ac_compile) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; then
7056 case `/usr/bin/file conftest.o` in
7057 *64-bit*)
7058 case $lt_cv_prog_gnu_ld in
7059 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
7060 *)
7061 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7062 LD="${LD-ld} -64"
7063 fi
7064 ;;
7357c5b6
AM
7065 esac
7066 ;;
7067 esac
7068 fi
7069 rm -rf conftest*
7070 ;;
7071esac
d7040cdb 7072
7357c5b6 7073need_locks="$enable_libtool_lock"
d7040cdb
SE
7074
7075
718a6fd8
SE
7076 case $host_os in
7077 rhapsody* | darwin*)
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7080set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7081echo "$as_me:$LINENO: checking for $ac_word" >&5
7082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7083if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085else
7086 if test -n "$DSYMUTIL"; then
7087 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7088else
7089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090for as_dir in $PATH
7091do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100done
7101done
7102
7103fi
7104fi
7105DSYMUTIL=$ac_cv_prog_DSYMUTIL
7106if test -n "$DSYMUTIL"; then
7107 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7108echo "${ECHO_T}$DSYMUTIL" >&6
7109else
7110 echo "$as_me:$LINENO: result: no" >&5
7111echo "${ECHO_T}no" >&6
7112fi
7113
7114fi
7115if test -z "$ac_cv_prog_DSYMUTIL"; then
7116 ac_ct_DSYMUTIL=$DSYMUTIL
7117 # Extract the first word of "dsymutil", so it can be a program name with args.
7118set dummy dsymutil; ac_word=$2
7119echo "$as_me:$LINENO: checking for $ac_word" >&5
7120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7121if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123else
7124 if test -n "$ac_ct_DSYMUTIL"; then
7125 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7126else
7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7137 fi
7138done
7139done
7140
7141 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7142fi
7143fi
7144ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7145if test -n "$ac_ct_DSYMUTIL"; then
7146 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7147echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7148else
7149 echo "$as_me:$LINENO: result: no" >&5
7150echo "${ECHO_T}no" >&6
7151fi
7152
7153 DSYMUTIL=$ac_ct_DSYMUTIL
7154else
7155 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7156fi
7157
7158 if test -n "$ac_tool_prefix"; then
7159 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7160set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7161echo "$as_me:$LINENO: checking for $ac_word" >&5
7162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7163if test "${ac_cv_prog_NMEDIT+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165else
7166 if test -n "$NMEDIT"; then
7167 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7168else
7169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180done
7181done
7182
7183fi
7184fi
7185NMEDIT=$ac_cv_prog_NMEDIT
7186if test -n "$NMEDIT"; then
7187 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7188echo "${ECHO_T}$NMEDIT" >&6
7189else
7190 echo "$as_me:$LINENO: result: no" >&5
7191echo "${ECHO_T}no" >&6
7192fi
7193
7194fi
7195if test -z "$ac_cv_prog_NMEDIT"; then
7196 ac_ct_NMEDIT=$NMEDIT
7197 # Extract the first word of "nmedit", so it can be a program name with args.
7198set dummy nmedit; ac_word=$2
7199echo "$as_me:$LINENO: checking for $ac_word" >&5
7200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7201if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203else
7204 if test -n "$ac_ct_NMEDIT"; then
7205 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7206else
7207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208for as_dir in $PATH
7209do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218done
7219done
7220
7221 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7222fi
7223fi
7224ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7225if test -n "$ac_ct_NMEDIT"; then
7226 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7227echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7228else
7229 echo "$as_me:$LINENO: result: no" >&5
7230echo "${ECHO_T}no" >&6
7231fi
7232
7233 NMEDIT=$ac_ct_NMEDIT
7234else
7235 NMEDIT="$ac_cv_prog_NMEDIT"
7236fi
7237
7238 if test -n "$ac_tool_prefix"; then
7239 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7240set dummy ${ac_tool_prefix}lipo; ac_word=$2
7241echo "$as_me:$LINENO: checking for $ac_word" >&5
7242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7243if test "${ac_cv_prog_LIPO+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7245else
7246 if test -n "$LIPO"; then
7247 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7248else
7249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250for as_dir in $PATH
7251do
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7259 fi
7260done
7261done
7262
7263fi
7264fi
7265LIPO=$ac_cv_prog_LIPO
7266if test -n "$LIPO"; then
7267 echo "$as_me:$LINENO: result: $LIPO" >&5
7268echo "${ECHO_T}$LIPO" >&6
7269else
7270 echo "$as_me:$LINENO: result: no" >&5
7271echo "${ECHO_T}no" >&6
7272fi
7273
7274fi
7275if test -z "$ac_cv_prog_LIPO"; then
7276 ac_ct_LIPO=$LIPO
7277 # Extract the first word of "lipo", so it can be a program name with args.
7278set dummy lipo; ac_word=$2
7279echo "$as_me:$LINENO: checking for $ac_word" >&5
7280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7281if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283else
7284 if test -n "$ac_ct_LIPO"; then
7285 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7286else
7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288for as_dir in $PATH
7289do
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294 ac_cv_prog_ac_ct_LIPO="lipo"
7295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 break 2
7297 fi
7298done
7299done
7300
7301 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7302fi
7303fi
7304ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7305if test -n "$ac_ct_LIPO"; then
7306 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7307echo "${ECHO_T}$ac_ct_LIPO" >&6
7308else
7309 echo "$as_me:$LINENO: result: no" >&5
7310echo "${ECHO_T}no" >&6
7311fi
7312
7313 LIPO=$ac_ct_LIPO
7314else
7315 LIPO="$ac_cv_prog_LIPO"
7316fi
7317
7318 if test -n "$ac_tool_prefix"; then
7319 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7320set dummy ${ac_tool_prefix}otool; ac_word=$2
7321echo "$as_me:$LINENO: checking for $ac_word" >&5
7322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7323if test "${ac_cv_prog_OTOOL+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326 if test -n "$OTOOL"; then
7327 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7328else
7329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330for as_dir in $PATH
7331do
7332 IFS=$as_save_IFS
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7336 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 break 2
7339 fi
7340done
7341done
7342
7343fi
7344fi
7345OTOOL=$ac_cv_prog_OTOOL
7346if test -n "$OTOOL"; then
7347 echo "$as_me:$LINENO: result: $OTOOL" >&5
7348echo "${ECHO_T}$OTOOL" >&6
7349else
7350 echo "$as_me:$LINENO: result: no" >&5
7351echo "${ECHO_T}no" >&6
7352fi
7353
7354fi
7355if test -z "$ac_cv_prog_OTOOL"; then
7356 ac_ct_OTOOL=$OTOOL
7357 # Extract the first word of "otool", so it can be a program name with args.
7358set dummy otool; ac_word=$2
7359echo "$as_me:$LINENO: checking for $ac_word" >&5
7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7361if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364 if test -n "$ac_ct_OTOOL"; then
7365 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7366else
7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374 ac_cv_prog_ac_ct_OTOOL="otool"
7375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378done
7379done
7380
7381 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7382fi
7383fi
7384ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7385if test -n "$ac_ct_OTOOL"; then
7386 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7387echo "${ECHO_T}$ac_ct_OTOOL" >&6
7388else
7389 echo "$as_me:$LINENO: result: no" >&5
7390echo "${ECHO_T}no" >&6
7391fi
7392
7393 OTOOL=$ac_ct_OTOOL
7394else
7395 OTOOL="$ac_cv_prog_OTOOL"
7396fi
7397
7398 if test -n "$ac_tool_prefix"; then
7399 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7400set dummy ${ac_tool_prefix}otool64; ac_word=$2
7401echo "$as_me:$LINENO: checking for $ac_word" >&5
7402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7403if test "${ac_cv_prog_OTOOL64+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405else
7406 if test -n "$OTOOL64"; then
7407 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7408else
7409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410for as_dir in $PATH
7411do
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 break 2
7419 fi
7420done
7421done
7422
7423fi
7424fi
7425OTOOL64=$ac_cv_prog_OTOOL64
7426if test -n "$OTOOL64"; then
7427 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7428echo "${ECHO_T}$OTOOL64" >&6
7429else
7430 echo "$as_me:$LINENO: result: no" >&5
7431echo "${ECHO_T}no" >&6
7432fi
7433
7434fi
7435if test -z "$ac_cv_prog_OTOOL64"; then
7436 ac_ct_OTOOL64=$OTOOL64
7437 # Extract the first word of "otool64", so it can be a program name with args.
7438set dummy otool64; ac_word=$2
7439echo "$as_me:$LINENO: checking for $ac_word" >&5
7440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7441if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443else
7444 if test -n "$ac_ct_OTOOL64"; then
7445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7446else
7447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448for as_dir in $PATH
7449do
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_ac_ct_OTOOL64="otool64"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7457 fi
7458done
7459done
7460
7461 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7462fi
7463fi
7464ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7465if test -n "$ac_ct_OTOOL64"; then
7466 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7467echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7468else
7469 echo "$as_me:$LINENO: result: no" >&5
7470echo "${ECHO_T}no" >&6
7471fi
7472
7473 OTOOL64=$ac_ct_OTOOL64
7474else
7475 OTOOL64="$ac_cv_prog_OTOOL64"
7476fi
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7505echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7506if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509 lt_cv_apple_cc_single_mod=no
7510 if test -z "${LT_MULTI_MODULE}"; then
7511 # By default we will add the -single_module flag. You can override
7512 # by either setting the environment variable LT_MULTI_MODULE
7513 # non-empty at configure time, or by adding -multi_module to the
7514 # link flags.
7515 rm -rf libconftest.dylib*
7516 echo "int foo(void){return 1;}" > conftest.c
7517 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7518-dynamiclib -Wl,-single_module conftest.c" >&5
7519 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7520 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7521 _lt_result=$?
7522 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7523 lt_cv_apple_cc_single_mod=yes
7524 else
7525 cat conftest.err >&5
7526 fi
7527 rm -rf libconftest.dylib*
7528 rm -f conftest.*
7529 fi
7530fi
7531echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7532echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7533 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7534echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7535if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537else
7538 lt_cv_ld_exported_symbols_list=no
7539 save_LDFLAGS=$LDFLAGS
7540 echo "_main" > conftest.sym
7541 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7542 cat >conftest.$ac_ext <<_ACEOF
7543/* confdefs.h. */
7544_ACEOF
7545cat confdefs.h >>conftest.$ac_ext
7546cat >>conftest.$ac_ext <<_ACEOF
7547/* end confdefs.h. */
7548
7549int
7550main ()
7551{
7552
7553 ;
7554 return 0;
7555}
7556_ACEOF
7557rm -f conftest.$ac_objext conftest$ac_exeext
7558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7559 (eval $ac_link) 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } &&
7566 { ac_try='test -z "$ac_c_werror_flag"
7567 || test ! -s conftest.err'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 (eval $ac_try) 2>&5
7570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; } &&
7573 { ac_try='test -s conftest$ac_exeext'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 (eval $ac_try) 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; }; then
7579 lt_cv_ld_exported_symbols_list=yes
7580else
7581 echo "$as_me: failed program was:" >&5
7582sed 's/^/| /' conftest.$ac_ext >&5
7583
7584lt_cv_ld_exported_symbols_list=no
7585fi
7586rm -f conftest.err conftest.$ac_objext \
7587 conftest$ac_exeext conftest.$ac_ext
7588 LDFLAGS="$save_LDFLAGS"
7589
7590fi
7591echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7592echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7593 case $host_os in
7594 rhapsody* | darwin1.[012])
7595 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7596 darwin1.*)
7597 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7598 darwin*) # darwin 5.x on
7599 # if running on 10.5 or later, the deployment target defaults
7600 # to the OS version, if on x86, and 10.4, the deployment
7601 # target defaults to 10.4. Don't you love it?
7602 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7603 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7604 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7605 10.[012]*)
7606 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7607 10.*)
7608 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7609 esac
7610 ;;
7611 esac
7612 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7613 _lt_dar_single_mod='$single_module'
7614 fi
7615 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7616 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7617 else
7618 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7619 fi
7620 if test "$DSYMUTIL" != ":"; then
7621 _lt_dsymutil='~$DSYMUTIL $lib || :'
7622 else
7623 _lt_dsymutil=
7624 fi
7625 ;;
7626 esac
7627
7628
d7040cdb
SE
7629for ac_header in dlfcn.h
7630do
7631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632echo "$as_me:$LINENO: checking for $ac_header" >&5
7633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7634if eval "test \"\${$as_ac_Header+set}\" = set"; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636else
7637 cat >conftest.$ac_ext <<_ACEOF
7638/* confdefs.h. */
7639_ACEOF
7640cat confdefs.h >>conftest.$ac_ext
7641cat >>conftest.$ac_ext <<_ACEOF
7642/* end confdefs.h. */
7643$ac_includes_default
7644
7645#include <$ac_header>
7646_ACEOF
7647rm -f conftest.$ac_objext
7648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7357c5b6
AM
7656 { ac_try='test -z "$ac_c_werror_flag"
7657 || test ! -s conftest.err'
d7040cdb
SE
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 (eval $ac_try) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; } &&
7663 { ac_try='test -s conftest.$ac_objext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 eval "$as_ac_Header=yes"
7670else
7671 echo "$as_me: failed program was:" >&5
7672sed 's/^/| /' conftest.$ac_ext >&5
7673
7674eval "$as_ac_Header=no"
7675fi
7676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7677fi
7678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7680if test `eval echo '${'$as_ac_Header'}'` = yes; then
7681 cat >>confdefs.h <<_ACEOF
7682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7683_ACEOF
7684
7685fi
7686
7687done
7688
7689
7690
718a6fd8
SE
7691# Set options
7692
7693
7694
7695 enable_dlopen=no
7696
7697
7698 enable_win32_dll=no
7699
7700
7701
7702 # Check whether --enable-static or --disable-static was given.
7703if test "${enable_static+set}" = set; then
7704 enableval="$enable_static"
7705 p=${PACKAGE-default}
7706 case $enableval in
7707 yes) enable_static=yes ;;
7708 no) enable_static=no ;;
7709 *)
7710 enable_static=no
7711 # Look at the argument we got. We use all the common list separators.
7712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7713 for pkg in $enableval; do
7714 IFS="$lt_save_ifs"
7715 if test "X$pkg" = "X$p"; then
7716 enable_static=yes
7717 fi
7718 done
7719 IFS="$lt_save_ifs"
7720 ;;
7721 esac
7722else
7723 enable_static=yes
7724fi;
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734# Check whether --with-pic or --without-pic was given.
7735if test "${with_pic+set}" = set; then
7736 withval="$with_pic"
7737 pic_mode="$withval"
7738else
7739 pic_mode=default
7740fi;
7741
7742test -z "$pic_mode" && pic_mode=default
7743
7744
7745
7746
7747
7748
7749
7750 # Check whether --enable-fast-install or --disable-fast-install was given.
7751if test "${enable_fast_install+set}" = set; then
7752 enableval="$enable_fast_install"
7753 p=${PACKAGE-default}
7754 case $enableval in
7755 yes) enable_fast_install=yes ;;
7756 no) enable_fast_install=no ;;
7757 *)
7758 enable_fast_install=no
7759 # Look at the argument we got. We use all the common list separators.
7760 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7761 for pkg in $enableval; do
7762 IFS="$lt_save_ifs"
7763 if test "X$pkg" = "X$p"; then
7764 enable_fast_install=yes
7765 fi
7766 done
7767 IFS="$lt_save_ifs"
7768 ;;
7769 esac
7770else
7771 enable_fast_install=yes
7772fi;
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
d7040cdb
SE
7783# This can be used to rebuild libtool when needed
7784LIBTOOL_DEPS="$ltmain"
7785
7786# Always use our own libtool.
7787LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813test -z "$LN_S" && LN_S="ln -s"
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828if test -n "${ZSH_VERSION+set}" ; then
7829 setopt NO_GLOB_SUBST
7830fi
7831
7832echo "$as_me:$LINENO: checking for objdir" >&5
7833echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7834if test "${lt_cv_objdir+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836else
7837 rm -f .libs 2>/dev/null
7838mkdir .libs 2>/dev/null
7839if test -d .libs; then
7840 lt_cv_objdir=.libs
7841else
7842 # MS-DOS does not allow filenames that begin with a dot.
7843 lt_cv_objdir=_libs
7844fi
7845rmdir .libs 2>/dev/null
7846fi
7847echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7848echo "${ECHO_T}$lt_cv_objdir" >&6
7849objdir=$lt_cv_objdir
7850
7851
7852
7853
7854
7855cat >>confdefs.h <<_ACEOF
7856#define LT_OBJDIR "$lt_cv_objdir/"
7857_ACEOF
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875case $host_os in
7876aix3*)
7877 # AIX sometimes has problems with the GCC collect2 program. For some
7878 # reason, if we set the COLLECT_NAMES environment variable, the problems
7879 # vanish in a puff of smoke.
7880 if test "X${COLLECT_NAMES+set}" != Xset; then
7881 COLLECT_NAMES=
7882 export COLLECT_NAMES
7883 fi
7884 ;;
7885esac
7886
7887# Sed substitution that helps us do robust quoting. It backslashifies
7888# metacharacters that are still active within double-quoted strings.
7889sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7890
7891# Same as above, but do not quote variable references.
7892double_quote_subst='s/\(["`\\]\)/\\\1/g'
7893
7894# Sed substitution to delay expansion of an escaped shell variable in a
7895# double_quote_subst'ed string.
7896delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7897
7898# Sed substitution to delay expansion of an escaped single quote.
7899delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7900
7901# Sed substitution to avoid accidental globbing in evaled expressions
7902no_glob_subst='s/\*/\\\*/g'
7903
7904# Global variables:
7905ofile=libtool
7906can_build_shared=yes
7907
7908# All known linkers require a `.a' archive for static linking (except MSVC,
7909# which needs '.lib').
7910libext=a
7911
7912with_gnu_ld="$lt_cv_prog_gnu_ld"
7913
7914old_CC="$CC"
7915old_CFLAGS="$CFLAGS"
7916
7917# Set sane defaults for various variables
7918test -z "$CC" && CC=cc
7919test -z "$LTCC" && LTCC=$CC
7920test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7921test -z "$LD" && LD=ld
7922test -z "$ac_objext" && ac_objext=o
7923
7924for cc_temp in $compiler""; do
7925 case $cc_temp in
7926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7928 \-*) ;;
7929 *) break;;
7930 esac
7931done
7932cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7933
7934
7935# Only perform the check for file, if the check method requires it
7936test -z "$MAGIC_CMD" && MAGIC_CMD=file
7937case $deplibs_check_method in
7938file_magic*)
7939 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7940 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7941echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7942if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944else
7945 case $MAGIC_CMD in
7946[\\/*] | ?:[\\/]*)
7947 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7948 ;;
7949*)
7950 lt_save_MAGIC_CMD="$MAGIC_CMD"
7951 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7952 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7953 for ac_dir in $ac_dummy; do
7954 IFS="$lt_save_ifs"
7955 test -z "$ac_dir" && ac_dir=.
7956 if test -f $ac_dir/${ac_tool_prefix}file; then
7957 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7958 if test -n "$file_magic_test_file"; then
7959 case $deplibs_check_method in
7960 "file_magic "*)
7961 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7963 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7964 $EGREP "$file_magic_regex" > /dev/null; then
7965 :
7966 else
7967 cat <<_LT_EOF 1>&2
7968
7969*** Warning: the command libtool uses to detect shared libraries,
7970*** $file_magic_cmd, produces output that libtool cannot recognize.
7971*** The result is that libtool may fail to recognize shared libraries
7972*** as such. This will affect the creation of libtool libraries that
7973*** depend on shared libraries, but programs linked with such libtool
7974*** libraries will work regardless of this problem. Nevertheless, you
7975*** may want to report the problem to your system manager and/or to
7976*** bug-libtool@gnu.org
7977
7978_LT_EOF
7979 fi ;;
7980 esac
7981 fi
7982 break
7983 fi
7984 done
7985 IFS="$lt_save_ifs"
7986 MAGIC_CMD="$lt_save_MAGIC_CMD"
7987 ;;
7988esac
7989fi
7990
7991MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7992if test -n "$MAGIC_CMD"; then
7993 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7994echo "${ECHO_T}$MAGIC_CMD" >&6
7995else
7996 echo "$as_me:$LINENO: result: no" >&5
7997echo "${ECHO_T}no" >&6
7998fi
7999
8000
8001
8002
8003
8004if test -z "$lt_cv_path_MAGIC_CMD"; then
8005 if test -n "$ac_tool_prefix"; then
8006 echo "$as_me:$LINENO: checking for file" >&5
8007echo $ECHO_N "checking for file... $ECHO_C" >&6
8008if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010else
8011 case $MAGIC_CMD in
8012[\\/*] | ?:[\\/]*)
8013 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8014 ;;
8015*)
8016 lt_save_MAGIC_CMD="$MAGIC_CMD"
8017 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8018 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8019 for ac_dir in $ac_dummy; do
8020 IFS="$lt_save_ifs"
8021 test -z "$ac_dir" && ac_dir=.
8022 if test -f $ac_dir/file; then
8023 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8024 if test -n "$file_magic_test_file"; then
8025 case $deplibs_check_method in
8026 "file_magic "*)
8027 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8028 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8029 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8030 $EGREP "$file_magic_regex" > /dev/null; then
8031 :
8032 else
8033 cat <<_LT_EOF 1>&2
8034
8035*** Warning: the command libtool uses to detect shared libraries,
8036*** $file_magic_cmd, produces output that libtool cannot recognize.
8037*** The result is that libtool may fail to recognize shared libraries
8038*** as such. This will affect the creation of libtool libraries that
8039*** depend on shared libraries, but programs linked with such libtool
8040*** libraries will work regardless of this problem. Nevertheless, you
8041*** may want to report the problem to your system manager and/or to
8042*** bug-libtool@gnu.org
8043
8044_LT_EOF
8045 fi ;;
8046 esac
8047 fi
8048 break
8049 fi
8050 done
8051 IFS="$lt_save_ifs"
8052 MAGIC_CMD="$lt_save_MAGIC_CMD"
8053 ;;
8054esac
8055fi
8056
8057MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8058if test -n "$MAGIC_CMD"; then
8059 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8060echo "${ECHO_T}$MAGIC_CMD" >&6
8061else
8062 echo "$as_me:$LINENO: result: no" >&5
8063echo "${ECHO_T}no" >&6
8064fi
8065
8066
8067 else
8068 MAGIC_CMD=:
8069 fi
8070fi
8071
8072 fi
8073 ;;
8074esac
8075
8076# Use C for the default configuration in the libtool script
8077
8078lt_save_CC="$CC"
8079ac_ext=c
8080ac_cpp='$CPP $CPPFLAGS'
8081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8083ac_compiler_gnu=$ac_cv_c_compiler_gnu
8084
8085
8086# Source file extension for C test sources.
8087ac_ext=c
8088
8089# Object file extension for compiled C test sources.
8090objext=o
8091objext=$objext
8092
8093# Code to be used in simple compile tests
8094lt_simple_compile_test_code="int some_variable = 0;"
8095
8096# Code to be used in simple link tests
8097lt_simple_link_test_code='int main(){return(0);}'
8098
8099
8100
8101
8102
8103
8104
8105# If no C compiler was specified, use CC.
8106LTCC=${LTCC-"$CC"}
8107
8108# If no C compiler flags were specified, use CFLAGS.
8109LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8110
8111# Allow CC to be a program name with arguments.
8112compiler=$CC
8113
8114# Save the default compiler, since it gets overwritten when the other
8115# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8116compiler_DEFAULT=$CC
8117
8118# save warnings/boilerplate of simple test code
8119ac_outfile=conftest.$ac_objext
8120echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8121eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8122_lt_compiler_boilerplate=`cat conftest.err`
8123$RM conftest*
8124
8125ac_outfile=conftest.$ac_objext
8126echo "$lt_simple_link_test_code" >conftest.$ac_ext
8127eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8128_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8129$RM -r conftest*
d7040cdb
SE
8130
8131
8132## CAVEAT EMPTOR:
8133## There is no encapsulation within the following macros, do not change
8134## the running order or otherwise move them around unless you know exactly
8135## what you are doing...
8136if test -n "$compiler"; then
8137
8138lt_prog_compiler_no_builtin_flag=
8139
8140if test "$GCC" = yes; then
8141 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8142
8143 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8144echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8145if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147else
8148 lt_cv_prog_compiler_rtti_exceptions=no
8149 ac_outfile=conftest.$ac_objext
8150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8151 lt_compiler_flag="-fno-rtti -fno-exceptions"
8152 # Insert the option either (1) after the last *FLAGS variable, or
8153 # (2) before a word containing "conftest.", or (3) at the end.
8154 # Note that $ac_compile itself does not contain backslashes and begins
8155 # with a dollar sign (not a hyphen), so the echo should work correctly.
8156 # The option is referenced via a variable to avoid confusing sed.
8157 lt_compile=`echo "$ac_compile" | $SED \
8158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8160 -e 's:$: $lt_compiler_flag:'`
29670fb9 8161 (eval echo "\"\$as_me:8161: $lt_compile\"" >&5)
d7040cdb
SE
8162 (eval "$lt_compile" 2>conftest.err)
8163 ac_status=$?
8164 cat conftest.err >&5
29670fb9 8165 echo "$as_me:8165: \$? = $ac_status" >&5
d7040cdb
SE
8166 if (exit $ac_status) && test -s "$ac_outfile"; then
8167 # The compiler can only warn and ignore the option if not recognized
8168 # So say no if there are warnings other than the usual output.
8169 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8172 lt_cv_prog_compiler_rtti_exceptions=yes
8173 fi
8174 fi
8175 $RM conftest*
8176
8177fi
8178echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8179echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8180
8181if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8182 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8183else
8184 :
8185fi
8186
8187fi
8188
8189
8190
8191
8192
8193
8194 lt_prog_compiler_wl=
8195lt_prog_compiler_pic=
8196lt_prog_compiler_static=
8197
8198echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8199echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8200
8201 if test "$GCC" = yes; then
8202 lt_prog_compiler_wl='-Wl,'
8203 lt_prog_compiler_static='-static'
8204
8205 case $host_os in
8206 aix*)
8207 # All AIX code is PIC.
8208 if test "$host_cpu" = ia64; then
8209 # AIX 5 now supports IA64 processor
8210 lt_prog_compiler_static='-Bstatic'
8211 fi
8212 ;;
8213
8214 amigaos*)
718a6fd8
SE
8215 case $host_cpu in
8216 powerpc)
8217 # see comment about AmigaOS4 .so support
8218 lt_prog_compiler_pic='-fPIC'
8219 ;;
8220 m68k)
8221 # FIXME: we need at least 68020 code to build shared libraries, but
8222 # adding the `-m68020' flag to GCC prevents building anything better,
8223 # like `-m68040'.
8224 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8225 ;;
8226 esac
d7040cdb
SE
8227 ;;
8228
8229 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8230 # PIC is the default for these OSes.
8231 ;;
8232
718a6fd8 8233 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8234 # This hack is so that the source file can tell whether it is being
8235 # built for inclusion in a dll (and should export symbols for example).
8236 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8237 # (--disable-auto-import) libraries
8238 lt_prog_compiler_pic='-DDLL_EXPORT'
8239 ;;
8240
8241 darwin* | rhapsody*)
8242 # PIC is the default on this platform
8243 # Common symbols not allowed in MH_DYLIB files
8244 lt_prog_compiler_pic='-fno-common'
8245 ;;
8246
8247 hpux*)
718a6fd8
SE
8248 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8249 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8250 # sets the default TLS model and affects inlining.
d7040cdb 8251 case $host_cpu in
718a6fd8 8252 hppa*64*)
d7040cdb
SE
8253 # +Z the default
8254 ;;
8255 *)
8256 lt_prog_compiler_pic='-fPIC'
8257 ;;
8258 esac
8259 ;;
8260
8261 interix[3-9]*)
8262 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8263 # Instead, we relocate shared libraries at runtime.
8264 ;;
8265
8266 msdosdjgpp*)
8267 # Just because we use GCC doesn't mean we suddenly get shared libraries
8268 # on systems that don't support them.
8269 lt_prog_compiler_can_build_shared=no
8270 enable_shared=no
8271 ;;
8272
8273 *nto* | *qnx*)
8274 # QNX uses GNU C++, but need to define -shared option too, otherwise
8275 # it will coredump.
8276 lt_prog_compiler_pic='-fPIC -shared'
8277 ;;
8278
8279 sysv4*MP*)
8280 if test -d /usr/nec; then
8281 lt_prog_compiler_pic=-Kconform_pic
8282 fi
8283 ;;
8284
8285 *)
8286 lt_prog_compiler_pic='-fPIC'
8287 ;;
8288 esac
8289 else
8290 # PORTME Check for flag to pass linker flags through the system compiler.
8291 case $host_os in
8292 aix*)
8293 lt_prog_compiler_wl='-Wl,'
8294 if test "$host_cpu" = ia64; then
8295 # AIX 5 now supports IA64 processor
8296 lt_prog_compiler_static='-Bstatic'
8297 else
8298 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8299 fi
8300 ;;
d7040cdb 8301
718a6fd8 8302 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8303 # This hack is so that the source file can tell whether it is being
8304 # built for inclusion in a dll (and should export symbols for example).
8305 lt_prog_compiler_pic='-DDLL_EXPORT'
8306 ;;
8307
8308 hpux9* | hpux10* | hpux11*)
8309 lt_prog_compiler_wl='-Wl,'
8310 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8311 # not for PA HP-UX.
8312 case $host_cpu in
8313 hppa*64*|ia64*)
8314 # +Z the default
8315 ;;
8316 *)
8317 lt_prog_compiler_pic='+Z'
8318 ;;
8319 esac
8320 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8321 lt_prog_compiler_static='${wl}-a ${wl}archive'
8322 ;;
8323
8324 irix5* | irix6* | nonstopux*)
8325 lt_prog_compiler_wl='-Wl,'
8326 # PIC (with -KPIC) is the default.
8327 lt_prog_compiler_static='-non_shared'
8328 ;;
8329
8330 linux* | k*bsd*-gnu)
8331 case $cc_basename in
718a6fd8
SE
8332 # old Intel for x86_64 which still supported -KPIC.
8333 ecc*)
d7040cdb
SE
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-static'
8337 ;;
718a6fd8
SE
8338 # icc used to be incompatible with GCC.
8339 # ICC 10 doesn't accept -KPIC any more.
8340 icc* | ifort*)
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='-fPIC'
8343 lt_prog_compiler_static='-static'
8344 ;;
8345 # Lahey Fortran 8.1.
8346 lf95*)
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_pic='--shared'
8349 lt_prog_compiler_static='--static'
8350 ;;
d7040cdb
SE
8351 pgcc* | pgf77* | pgf90* | pgf95*)
8352 # Portland Group compilers (*not* the Pentium gcc compiler,
8353 # which looks to be a dead project)
8354 lt_prog_compiler_wl='-Wl,'
8355 lt_prog_compiler_pic='-fpic'
8356 lt_prog_compiler_static='-Bstatic'
8357 ;;
8358 ccc*)
8359 lt_prog_compiler_wl='-Wl,'
8360 # All Alpha code is PIC.
8361 lt_prog_compiler_static='-non_shared'
8362 ;;
718a6fd8
SE
8363 xl*)
8364 # IBM XL C 8.0/Fortran 10.1 on PPC
8365 lt_prog_compiler_wl='-Wl,'
8366 lt_prog_compiler_pic='-qpic'
8367 lt_prog_compiler_static='-qstaticlink'
8368 ;;
d7040cdb
SE
8369 *)
8370 case `$CC -V 2>&1 | sed 5q` in
8371 *Sun\ C*)
8372 # Sun C 5.9
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8375 lt_prog_compiler_wl='-Wl,'
8376 ;;
8377 *Sun\ F*)
8378 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8379 lt_prog_compiler_pic='-KPIC'
8380 lt_prog_compiler_static='-Bstatic'
8381 lt_prog_compiler_wl=''
8382 ;;
8383 esac
8384 ;;
8385 esac
8386 ;;
8387
8388 newsos6)
8389 lt_prog_compiler_pic='-KPIC'
8390 lt_prog_compiler_static='-Bstatic'
8391 ;;
8392
8393 *nto* | *qnx*)
8394 # QNX uses GNU C++, but need to define -shared option too, otherwise
8395 # it will coredump.
8396 lt_prog_compiler_pic='-fPIC -shared'
8397 ;;
8398
8399 osf3* | osf4* | osf5*)
8400 lt_prog_compiler_wl='-Wl,'
8401 # All OSF/1 code is PIC.
8402 lt_prog_compiler_static='-non_shared'
8403 ;;
8404
8405 rdos*)
8406 lt_prog_compiler_static='-non_shared'
8407 ;;
8408
8409 solaris*)
8410 lt_prog_compiler_pic='-KPIC'
8411 lt_prog_compiler_static='-Bstatic'
8412 case $cc_basename in
8413 f77* | f90* | f95*)
8414 lt_prog_compiler_wl='-Qoption ld ';;
8415 *)
8416 lt_prog_compiler_wl='-Wl,';;
8417 esac
8418 ;;
8419
8420 sunos4*)
8421 lt_prog_compiler_wl='-Qoption ld '
8422 lt_prog_compiler_pic='-PIC'
8423 lt_prog_compiler_static='-Bstatic'
8424 ;;
8425
8426 sysv4 | sysv4.2uw2* | sysv4.3*)
8427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_pic='-KPIC'
8429 lt_prog_compiler_static='-Bstatic'
8430 ;;
8431
8432 sysv4*MP*)
8433 if test -d /usr/nec ;then
8434 lt_prog_compiler_pic='-Kconform_pic'
8435 lt_prog_compiler_static='-Bstatic'
8436 fi
8437 ;;
8438
8439 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_pic='-KPIC'
8442 lt_prog_compiler_static='-Bstatic'
8443 ;;
8444
8445 unicos*)
8446 lt_prog_compiler_wl='-Wl,'
8447 lt_prog_compiler_can_build_shared=no
8448 ;;
8449
8450 uts4*)
8451 lt_prog_compiler_pic='-pic'
8452 lt_prog_compiler_static='-Bstatic'
8453 ;;
8454
8455 *)
8456 lt_prog_compiler_can_build_shared=no
8457 ;;
8458 esac
8459 fi
8460
8461case $host_os in
8462 # For platforms which do not support PIC, -DPIC is meaningless:
8463 *djgpp*)
8464 lt_prog_compiler_pic=
8465 ;;
8466 *)
8467 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8468 ;;
8469esac
8470echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8471echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8472
8473
8474
8475
8476
8477
8478#
8479# Check to make sure the PIC flag actually works.
8480#
8481if test -n "$lt_prog_compiler_pic"; then
8482 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8483echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
718a6fd8 8484if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
d7040cdb
SE
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8486else
718a6fd8 8487 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8488 ac_outfile=conftest.$ac_objext
8489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8490 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8491 # Insert the option either (1) after the last *FLAGS variable, or
8492 # (2) before a word containing "conftest.", or (3) at the end.
8493 # Note that $ac_compile itself does not contain backslashes and begins
8494 # with a dollar sign (not a hyphen), so the echo should work correctly.
8495 # The option is referenced via a variable to avoid confusing sed.
8496 lt_compile=`echo "$ac_compile" | $SED \
8497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8499 -e 's:$: $lt_compiler_flag:'`
29670fb9 8500 (eval echo "\"\$as_me:8500: $lt_compile\"" >&5)
d7040cdb
SE
8501 (eval "$lt_compile" 2>conftest.err)
8502 ac_status=$?
8503 cat conftest.err >&5
29670fb9 8504 echo "$as_me:8504: \$? = $ac_status" >&5
d7040cdb
SE
8505 if (exit $ac_status) && test -s "$ac_outfile"; then
8506 # The compiler can only warn and ignore the option if not recognized
8507 # So say no if there are warnings other than the usual output.
8508 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8510 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8511 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8512 fi
8513 fi
8514 $RM conftest*
8515
8516fi
718a6fd8
SE
8517echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8518echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
d7040cdb 8519
718a6fd8 8520if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8521 case $lt_prog_compiler_pic in
8522 "" | " "*) ;;
8523 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8524 esac
8525else
8526 lt_prog_compiler_pic=
8527 lt_prog_compiler_can_build_shared=no
8528fi
8529
8530fi
8531
8532
8533
8534
8535
8536
8537#
8538# Check to make sure the static flag actually works.
8539#
8540wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8541echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8542echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
718a6fd8 8543if test "${lt_cv_prog_compiler_static_works+set}" = set; then
d7040cdb
SE
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545else
718a6fd8 8546 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8547 save_LDFLAGS="$LDFLAGS"
8548 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8549 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8551 # The linker can only warn and ignore the option if not recognized
8552 # So say no if there are warnings
8553 if test -s conftest.err; then
8554 # Append any errors to the config.log.
8555 cat conftest.err 1>&5
8556 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8558 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8559 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8560 fi
8561 else
718a6fd8 8562 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8563 fi
8564 fi
718a6fd8 8565 $RM -r conftest*
d7040cdb
SE
8566 LDFLAGS="$save_LDFLAGS"
8567
8568fi
718a6fd8
SE
8569echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8570echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
d7040cdb 8571
718a6fd8 8572if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8573 :
8574else
8575 lt_prog_compiler_static=
8576fi
8577
8578
8579
8580
8581
8582
8583
8584 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8585echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8586if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588else
8589 lt_cv_prog_compiler_c_o=no
8590 $RM -r conftest 2>/dev/null
8591 mkdir conftest
8592 cd conftest
8593 mkdir out
8594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8595
8596 lt_compiler_flag="-o out/conftest2.$ac_objext"
8597 # Insert the option either (1) after the last *FLAGS variable, or
8598 # (2) before a word containing "conftest.", or (3) at the end.
8599 # Note that $ac_compile itself does not contain backslashes and begins
8600 # with a dollar sign (not a hyphen), so the echo should work correctly.
8601 lt_compile=`echo "$ac_compile" | $SED \
8602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8604 -e 's:$: $lt_compiler_flag:'`
29670fb9 8605 (eval echo "\"\$as_me:8605: $lt_compile\"" >&5)
d7040cdb
SE
8606 (eval "$lt_compile" 2>out/conftest.err)
8607 ac_status=$?
8608 cat out/conftest.err >&5
29670fb9 8609 echo "$as_me:8609: \$? = $ac_status" >&5
d7040cdb
SE
8610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8611 then
8612 # The compiler can only warn and ignore the option if not recognized
8613 # So say no if there are warnings
8614 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8615 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8616 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8617 lt_cv_prog_compiler_c_o=yes
8618 fi
8619 fi
8620 chmod u+w . 2>&5
8621 $RM conftest*
8622 # SGI C++ compiler will create directory out/ii_files/ for
8623 # template instantiation
8624 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8625 $RM out/* && rmdir out
8626 cd ..
8627 $RM -r conftest
8628 $RM conftest*
8629
8630fi
8631echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8632echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8633
8634
8635
8636
8637
8638
8639 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8640echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8641if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8643else
8644 lt_cv_prog_compiler_c_o=no
8645 $RM -r conftest 2>/dev/null
8646 mkdir conftest
8647 cd conftest
8648 mkdir out
8649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8650
8651 lt_compiler_flag="-o out/conftest2.$ac_objext"
8652 # Insert the option either (1) after the last *FLAGS variable, or
8653 # (2) before a word containing "conftest.", or (3) at the end.
8654 # Note that $ac_compile itself does not contain backslashes and begins
8655 # with a dollar sign (not a hyphen), so the echo should work correctly.
8656 lt_compile=`echo "$ac_compile" | $SED \
8657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8659 -e 's:$: $lt_compiler_flag:'`
29670fb9 8660 (eval echo "\"\$as_me:8660: $lt_compile\"" >&5)
d7040cdb
SE
8661 (eval "$lt_compile" 2>out/conftest.err)
8662 ac_status=$?
8663 cat out/conftest.err >&5
29670fb9 8664 echo "$as_me:8664: \$? = $ac_status" >&5
d7040cdb
SE
8665 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8666 then
8667 # The compiler can only warn and ignore the option if not recognized
8668 # So say no if there are warnings
8669 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8670 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8671 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8672 lt_cv_prog_compiler_c_o=yes
8673 fi
8674 fi
8675 chmod u+w . 2>&5
8676 $RM conftest*
8677 # SGI C++ compiler will create directory out/ii_files/ for
8678 # template instantiation
8679 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8680 $RM out/* && rmdir out
8681 cd ..
8682 $RM -r conftest
8683 $RM conftest*
8684
8685fi
8686echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8687echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8688
8689
8690
8691
8692hard_links="nottested"
8693if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8694 # do not overwrite the value of need_locks provided by the user
8695 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8696echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8697 hard_links=yes
8698 $RM conftest*
8699 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8700 touch conftest.a
8701 ln conftest.a conftest.b 2>&5 || hard_links=no
8702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8703 echo "$as_me:$LINENO: result: $hard_links" >&5
8704echo "${ECHO_T}$hard_links" >&6
8705 if test "$hard_links" = no; then
8706 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8707echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8708 need_locks=warn
8709 fi
8710else
8711 need_locks=no
8712fi
8713
8714
8715
8716
8717
8718
8719 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8720echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8721
8722 runpath_var=
8723 allow_undefined_flag=
8724 always_export_symbols=no
8725 archive_cmds=
8726 archive_expsym_cmds=
8727 compiler_needs_object=no
8728 enable_shared_with_static_runtimes=no
8729 export_dynamic_flag_spec=
8730 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8731 hardcode_automatic=no
8732 hardcode_direct=no
8733 hardcode_direct_absolute=no
8734 hardcode_libdir_flag_spec=
8735 hardcode_libdir_flag_spec_ld=
8736 hardcode_libdir_separator=
8737 hardcode_minus_L=no
8738 hardcode_shlibpath_var=unsupported
8739 inherit_rpath=no
8740 link_all_deplibs=unknown
8741 module_cmds=
8742 module_expsym_cmds=
8743 old_archive_from_new_cmds=
8744 old_archive_from_expsyms_cmds=
8745 thread_safe_flag_spec=
8746 whole_archive_flag_spec=
8747 # include_expsyms should be a list of space-separated symbols to be *always*
8748 # included in the symbol list
8749 include_expsyms=
8750 # exclude_expsyms can be an extended regexp of symbols to exclude
8751 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8752 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8753 # as well as any symbol that contains `d'.
718a6fd8 8754 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8755 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8756 # platforms (ab)use it in PIC code, but their linkers get confused if
8757 # the symbol is explicitly referenced. Since portable code cannot
8758 # rely on this symbol name, it's probably fine to never include it in
8759 # preloaded symbol tables.
718a6fd8 8760 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8761 extract_expsyms_cmds=
8762
8763 case $host_os in
718a6fd8 8764 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8765 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8766 # When not using gcc, we currently assume that we are using
8767 # Microsoft Visual C++.
8768 if test "$GCC" != yes; then
8769 with_gnu_ld=no
8770 fi
8771 ;;
8772 interix*)
8773 # we just hope/assume this is gcc and not c89 (= MSVC++)
8774 with_gnu_ld=yes
8775 ;;
8776 openbsd*)
8777 with_gnu_ld=no
8778 ;;
8779 esac
8780
8781 ld_shlibs=yes
8782 if test "$with_gnu_ld" = yes; then
8783 # If archive_cmds runs LD, not CC, wlarc should be empty
8784 wlarc='${wl}'
8785
8786 # Set some defaults for GNU ld with shared library support. These
8787 # are reset later if shared libraries are not supported. Putting them
8788 # here allows them to be overridden if necessary.
8789 runpath_var=LD_RUN_PATH
8790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8791 export_dynamic_flag_spec='${wl}--export-dynamic'
8792 # ancient GNU ld didn't support --whole-archive et. al.
8793 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8794 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8795 else
8796 whole_archive_flag_spec=
8797 fi
8798 supports_anon_versioning=no
8799 case `$LD -v 2>&1` in
8800 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8801 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8802 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8803 *\ 2.11.*) ;; # other 2.11 versions
8804 *) supports_anon_versioning=yes ;;
8805 esac
8806
8807 # See if GNU ld supports shared libraries.
8808 case $host_os in
e81819a5 8809 aix[3-9]*)
d7040cdb
SE
8810 # On AIX/PPC, the GNU linker is very broken
8811 if test "$host_cpu" != ia64; then
8812 ld_shlibs=no
8813 cat <<_LT_EOF 1>&2
8814
8815*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8816*** to be unable to reliably create shared libraries on AIX.
8817*** Therefore, libtool is disabling shared libraries support. If you
8818*** really care for shared libraries, you may want to modify your PATH
8819*** so that a non-GNU linker is found, and then restart.
8820
8821_LT_EOF
8822 fi
8823 ;;
8824
8825 amigaos*)
718a6fd8
SE
8826 case $host_cpu in
8827 powerpc)
8828 # see comment about AmigaOS4 .so support
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 archive_expsym_cmds=''
8831 ;;
8832 m68k)
8833 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)'
8834 hardcode_libdir_flag_spec='-L$libdir'
8835 hardcode_minus_L=yes
8836 ;;
8837 esac
d7040cdb
SE
8838 ;;
8839
8840 beos*)
8841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8842 allow_undefined_flag=unsupported
8843 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8844 # support --undefined. This deserves some investigation. FIXME
8845 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846 else
8847 ld_shlibs=no
8848 fi
8849 ;;
8850
718a6fd8 8851 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8852 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8853 # as there is no search path for DLLs.
8854 hardcode_libdir_flag_spec='-L$libdir'
8855 allow_undefined_flag=unsupported
8856 always_export_symbols=no
8857 enable_shared_with_static_runtimes=yes
8858 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8859
8860 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8862 # If the export-symbols file already is a .def file (1st line
8863 # is EXPORTS), use it as is; otherwise, prepend...
8864 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8865 cp $export_symbols $output_objdir/$soname.def;
8866 else
8867 echo EXPORTS > $output_objdir/$soname.def;
8868 cat $export_symbols >> $output_objdir/$soname.def;
8869 fi~
8870 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8871 else
8872 ld_shlibs=no
8873 fi
8874 ;;
8875
8876 interix[3-9]*)
8877 hardcode_direct=no
8878 hardcode_shlibpath_var=no
8879 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8880 export_dynamic_flag_spec='${wl}-E'
8881 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8882 # Instead, shared libraries are loaded at an image base (0x10000000 by
8883 # default) and relocated if they conflict, which is a slow very memory
8884 # consuming and fragmenting process. To avoid this, we pick a random,
8885 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8886 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8888 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'
8889 ;;
8890
8891 gnu* | linux* | tpf* | k*bsd*-gnu)
8892 tmp_diet=no
8893 if test "$host_os" = linux-dietlibc; then
8894 case $cc_basename in
8895 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8896 esac
8897 fi
8898 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8899 && test "$tmp_diet" = no
8900 then
8901 tmp_addflag=
718a6fd8 8902 tmp_sharedflag='-shared'
d7040cdb
SE
8903 case $cc_basename,$host_cpu in
8904 pgcc*) # Portland Group C compiler
8905 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'
8906 tmp_addflag=' $pic_flag'
8907 ;;
8908 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8909 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'
8910 tmp_addflag=' $pic_flag -Mnomain' ;;
8911 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8912 tmp_addflag=' -i_dynamic' ;;
8913 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8914 tmp_addflag=' -i_dynamic -nofor_main' ;;
8915 ifc* | ifort*) # Intel Fortran compiler
8916 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8917 lf95*) # Lahey Fortran 8.1
8918 whole_archive_flag_spec=
8919 tmp_sharedflag='--shared' ;;
8920 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8921 tmp_sharedflag='-qmkshrobj'
8922 tmp_addflag= ;;
d7040cdb
SE
8923 esac
8924 case `$CC -V 2>&1 | sed 5q` in
8925 *Sun\ C*) # Sun C 5.9
8926 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'
8927 compiler_needs_object=yes
8928 tmp_sharedflag='-G' ;;
8929 *Sun\ F*) # Sun Fortran 8.3
8930 tmp_sharedflag='-G' ;;
d7040cdb
SE
8931 esac
8932 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8933
8934 if test "x$supports_anon_versioning" = xyes; then
8935 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8937 echo "local: *; };" >> $output_objdir/$libname.ver~
8938 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8939 fi
718a6fd8
SE
8940
8941 case $cc_basename in
8942 xlf*)
8943 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8944 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8945 hardcode_libdir_flag_spec=
8946 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8947 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8948 if test "x$supports_anon_versioning" = xyes; then
8949 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8950 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8951 echo "local: *; };" >> $output_objdir/$libname.ver~
8952 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8953 fi
8954 ;;
8955 esac
d7040cdb
SE
8956 else
8957 ld_shlibs=no
8958 fi
8959 ;;
8960
8961 netbsd*)
8962 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8963 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8964 wlarc=
8965 else
8966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8968 fi
8969 ;;
8970
8971 solaris*)
8972 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8973 ld_shlibs=no
8974 cat <<_LT_EOF 1>&2
8975
8976*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8977*** create shared libraries on Solaris systems. Therefore, libtool
8978*** is disabling shared libraries support. We urge you to upgrade GNU
8979*** binutils to release 2.9.1 or newer. Another option is to modify
8980*** your PATH or compiler configuration so that the native linker is
8981*** used, and then restart.
8982
8983_LT_EOF
8984 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8987 else
8988 ld_shlibs=no
8989 fi
8990 ;;
8991
8992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8993 case `$LD -v 2>&1` in
8994 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8995 ld_shlibs=no
8996 cat <<_LT_EOF 1>&2
8997
8998*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8999*** reliably create shared libraries on SCO systems. Therefore, libtool
9000*** is disabling shared libraries support. We urge you to upgrade GNU
9001*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9002*** your PATH or compiler configuration so that the native linker is
9003*** used, and then restart.
9004
9005_LT_EOF
9006 ;;
9007 *)
9008 # For security reasons, it is highly recommended that you always
9009 # use absolute paths for naming shared libraries, and exclude the
9010 # DT_RUNPATH tag from executables and libraries. But doing so
9011 # requires that you compile everything twice, which is a pain.
9012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9016 else
9017 ld_shlibs=no
9018 fi
9019 ;;
9020 esac
9021 ;;
9022
9023 sunos4*)
9024 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9025 wlarc=
9026 hardcode_direct=yes
9027 hardcode_shlibpath_var=no
9028 ;;
9029
9030 *)
9031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9034 else
9035 ld_shlibs=no
9036 fi
9037 ;;
9038 esac
9039
9040 if test "$ld_shlibs" = no; then
9041 runpath_var=
9042 hardcode_libdir_flag_spec=
9043 export_dynamic_flag_spec=
9044 whole_archive_flag_spec=
9045 fi
9046 else
9047 # PORTME fill in a description of your system's linker (not GNU ld)
9048 case $host_os in
9049 aix3*)
9050 allow_undefined_flag=unsupported
9051 always_export_symbols=yes
9052 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'
9053 # Note: this linker hardcodes the directories in LIBPATH if there
9054 # are no directories specified by -L.
9055 hardcode_minus_L=yes
9056 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9057 # Neither direct hardcoding nor static linking is supported with a
9058 # broken collect2.
9059 hardcode_direct=unsupported
9060 fi
9061 ;;
9062
e81819a5 9063 aix[4-9]*)
d7040cdb
SE
9064 if test "$host_cpu" = ia64; then
9065 # On IA64, the linker does run time linking by default, so we don't
9066 # have to do anything special.
9067 aix_use_runtimelinking=no
9068 exp_sym_flag='-Bexport'
9069 no_entry_flag=""
9070 else
9071 # If we're using GNU nm, then we don't want the "-C" option.
9072 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9073 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9074 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'
9075 else
9076 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'
9077 fi
9078 aix_use_runtimelinking=no
9079
9080 # Test if we are trying to use run time linking or normal
9081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9082 # need to do runtime linking.
e81819a5 9083 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
9084 for ld_flag in $LDFLAGS; do
9085 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9086 aix_use_runtimelinking=yes
9087 break
9088 fi
9089 done
9090 ;;
9091 esac
9092
9093 exp_sym_flag='-bexport'
9094 no_entry_flag='-bnoentry'
9095 fi
9096
9097 # When large executables or shared objects are built, AIX ld can
9098 # have problems creating the table of contents. If linking a library
9099 # or program results in "error TOC overflow" add -mminimal-toc to
9100 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9101 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9102
9103 archive_cmds=''
9104 hardcode_direct=yes
9105 hardcode_direct_absolute=yes
9106 hardcode_libdir_separator=':'
9107 link_all_deplibs=yes
9108 file_list_spec='${wl}-f,'
9109
9110 if test "$GCC" = yes; then
9111 case $host_os in aix4.[012]|aix4.[012].*)
9112 # We only want to do this on AIX 4.2 and lower, the check
9113 # below for broken collect2 doesn't work under 4.3+
9114 collect2name=`${CC} -print-prog-name=collect2`
9115 if test -f "$collect2name" &&
9116 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9117 then
9118 # We have reworked collect2
9119 :
9120 else
9121 # We have old collect2
9122 hardcode_direct=unsupported
9123 # It fails to find uninstalled libraries when the uninstalled
9124 # path is not listed in the libpath. Setting hardcode_minus_L
9125 # to unsupported forces relinking
9126 hardcode_minus_L=yes
9127 hardcode_libdir_flag_spec='-L$libdir'
9128 hardcode_libdir_separator=
9129 fi
9130 ;;
9131 esac
9132 shared_flag='-shared'
9133 if test "$aix_use_runtimelinking" = yes; then
9134 shared_flag="$shared_flag "'${wl}-G'
9135 fi
9136 else
9137 # not using gcc
9138 if test "$host_cpu" = ia64; then
9139 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9140 # chokes on -Wl,-G. The following line is correct:
9141 shared_flag='-G'
9142 else
9143 if test "$aix_use_runtimelinking" = yes; then
9144 shared_flag='${wl}-G'
9145 else
9146 shared_flag='${wl}-bM:SRE'
9147 fi
9148 fi
9149 fi
9150
718a6fd8 9151 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9152 # It seems that -bexpall does not export symbols beginning with
9153 # underscore (_), so it is better to generate a list of symbols to export.
9154 always_export_symbols=yes
9155 if test "$aix_use_runtimelinking" = yes; then
9156 # Warning - without using the other runtime loading flags (-brtl),
9157 # -berok will link without error, but may produce a broken library.
9158 allow_undefined_flag='-berok'
9159 # Determine the default libpath from the value encoded in an
9160 # empty executable.
9161 cat >conftest.$ac_ext <<_ACEOF
9162/* confdefs.h. */
9163_ACEOF
9164cat confdefs.h >>conftest.$ac_ext
9165cat >>conftest.$ac_ext <<_ACEOF
9166/* end confdefs.h. */
9167
9168int
9169main ()
9170{
9171
9172 ;
9173 return 0;
9174}
9175_ACEOF
9176rm -f conftest.$ac_objext conftest$ac_exeext
9177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9178 (eval $ac_link) 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
7357c5b6
AM
9185 { ac_try='test -z "$ac_c_werror_flag"
9186 || test ! -s conftest.err'
d7040cdb
SE
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest$ac_exeext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 (eval $ac_try) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198
9199lt_aix_libpath_sed='
9200 /Import File Strings/,/^$/ {
9201 /^0/ {
9202 s/^0 *\(.*\)$/\1/
9203 p
9204 }
9205 }'
9206aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9207# Check for a 64-bit object if we didn't find anything.
9208if test -z "$aix_libpath"; then
9209 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9210fi
9211else
9212 echo "$as_me: failed program was:" >&5
9213sed 's/^/| /' conftest.$ac_ext >&5
9214
9215fi
9216rm -f conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9219
9220 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9221 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"
9222 else
9223 if test "$host_cpu" = ia64; then
9224 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9225 allow_undefined_flag="-z nodefs"
9226 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"
9227 else
9228 # Determine the default libpath from the value encoded in an
9229 # empty executable.
9230 cat >conftest.$ac_ext <<_ACEOF
9231/* confdefs.h. */
9232_ACEOF
9233cat confdefs.h >>conftest.$ac_ext
9234cat >>conftest.$ac_ext <<_ACEOF
9235/* end confdefs.h. */
9236
9237int
9238main ()
9239{
9240
9241 ;
9242 return 0;
9243}
9244_ACEOF
9245rm -f conftest.$ac_objext conftest$ac_exeext
9246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9247 (eval $ac_link) 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
7357c5b6
AM
9254 { ac_try='test -z "$ac_c_werror_flag"
9255 || test ! -s conftest.err'
d7040cdb
SE
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; } &&
9261 { ac_try='test -s conftest$ac_exeext'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
9267
9268lt_aix_libpath_sed='
9269 /Import File Strings/,/^$/ {
9270 /^0/ {
9271 s/^0 *\(.*\)$/\1/
9272 p
9273 }
9274 }'
9275aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9276# Check for a 64-bit object if we didn't find anything.
9277if test -z "$aix_libpath"; then
9278 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9279fi
9280else
9281 echo "$as_me: failed program was:" >&5
9282sed 's/^/| /' conftest.$ac_ext >&5
9283
9284fi
9285rm -f conftest.err conftest.$ac_objext \
9286 conftest$ac_exeext conftest.$ac_ext
9287if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9288
9289 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9290 # Warning - without using the other run time loading flags,
9291 # -berok will link without error, but may produce a broken library.
9292 no_undefined_flag=' ${wl}-bernotok'
9293 allow_undefined_flag=' ${wl}-berok'
9294 # Exported symbols can be pulled into shared objects from archives
9295 whole_archive_flag_spec='$convenience'
9296 archive_cmds_need_lc=yes
9297 # This is similar to how AIX traditionally builds its shared libraries.
9298 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'
9299 fi
9300 fi
9301 ;;
9302
9303 amigaos*)
718a6fd8
SE
9304 case $host_cpu in
9305 powerpc)
9306 # see comment about AmigaOS4 .so support
9307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308 archive_expsym_cmds=''
9309 ;;
9310 m68k)
9311 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)'
9312 hardcode_libdir_flag_spec='-L$libdir'
9313 hardcode_minus_L=yes
9314 ;;
9315 esac
d7040cdb
SE
9316 ;;
9317
9318 bsdi[45]*)
9319 export_dynamic_flag_spec=-rdynamic
9320 ;;
9321
718a6fd8 9322 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9323 # When not using gcc, we currently assume that we are using
9324 # Microsoft Visual C++.
9325 # hardcode_libdir_flag_spec is actually meaningless, as there is
9326 # no search path for DLLs.
9327 hardcode_libdir_flag_spec=' '
9328 allow_undefined_flag=unsupported
9329 # Tell ltmain to make .lib files, not .a files.
9330 libext=lib
9331 # Tell ltmain to make .dll files, not .so files.
9332 shrext_cmds=".dll"
9333 # FIXME: Setting linknames here is a bad hack.
9334 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9335 # The linker will automatically build a .lib file if we build a DLL.
9336 old_archive_from_new_cmds='true'
9337 # FIXME: Should let the user specify the lib program.
9338 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9339 fix_srcfile_path='`cygpath -w "$srcfile"`'
9340 enable_shared_with_static_runtimes=yes
9341 ;;
9342
9343 darwin* | rhapsody*)
d7040cdb 9344
718a6fd8
SE
9345
9346 archive_cmds_need_lc=no
9347 hardcode_direct=no
9348 hardcode_automatic=yes
9349 hardcode_shlibpath_var=unsupported
9350 whole_archive_flag_spec=''
9351 link_all_deplibs=yes
9352 allow_undefined_flag="$_lt_dar_allow_undefined"
9353 case $cc_basename in
9354 ifort*) _lt_dar_can_shared=yes ;;
9355 *) _lt_dar_can_shared=$GCC ;;
9356 esac
9357 if test "$_lt_dar_can_shared" = "yes"; then
9358 output_verbose_link_cmd=echo
9359 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9360 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9361 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}"
9362 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}"
9363
9364 else
9365 ld_shlibs=no
9366 fi
9367
d7040cdb
SE
9368 ;;
9369
9370 dgux*)
9371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_libdir_flag_spec='-L$libdir'
9373 hardcode_shlibpath_var=no
9374 ;;
9375
9376 freebsd1*)
9377 ld_shlibs=no
9378 ;;
9379
9380 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9381 # support. Future versions do this automatically, but an explicit c++rt0.o
9382 # does not break anything, and helps significantly (at the cost of a little
9383 # extra space).
9384 freebsd2.2*)
9385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9386 hardcode_libdir_flag_spec='-R$libdir'
9387 hardcode_direct=yes
9388 hardcode_shlibpath_var=no
9389 ;;
9390
9391 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9392 freebsd2*)
9393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9394 hardcode_direct=yes
9395 hardcode_minus_L=yes
9396 hardcode_shlibpath_var=no
9397 ;;
9398
9399 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9400 freebsd* | dragonfly*)
9401 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9402 hardcode_libdir_flag_spec='-R$libdir'
9403 hardcode_direct=yes
9404 hardcode_shlibpath_var=no
9405 ;;
9406
9407 hpux9*)
9408 if test "$GCC" = yes; then
9409 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'
9410 else
9411 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'
9412 fi
9413 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9414 hardcode_libdir_separator=:
9415 hardcode_direct=yes
9416
9417 # hardcode_minus_L: Not really in the search PATH,
9418 # but as the default location of the library.
9419 hardcode_minus_L=yes
9420 export_dynamic_flag_spec='${wl}-E'
9421 ;;
9422
9423 hpux10*)
9424 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9425 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9426 else
9427 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9428 fi
9429 if test "$with_gnu_ld" = no; then
9430 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9431 hardcode_libdir_flag_spec_ld='+b $libdir'
9432 hardcode_libdir_separator=:
9433 hardcode_direct=yes
9434 hardcode_direct_absolute=yes
9435 export_dynamic_flag_spec='${wl}-E'
9436 # hardcode_minus_L: Not really in the search PATH,
9437 # but as the default location of the library.
9438 hardcode_minus_L=yes
9439 fi
9440 ;;
9441
9442 hpux11*)
9443 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9444 case $host_cpu in
9445 hppa*64*)
9446 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9447 ;;
9448 ia64*)
718a6fd8 9449 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9450 ;;
9451 *)
9452 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9453 ;;
9454 esac
9455 else
9456 case $host_cpu in
9457 hppa*64*)
9458 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 ;;
9460 ia64*)
9461 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9462 ;;
9463 *)
9464 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9465 ;;
9466 esac
9467 fi
9468 if test "$with_gnu_ld" = no; then
9469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9470 hardcode_libdir_separator=:
9471
9472 case $host_cpu in
9473 hppa*64*|ia64*)
9474 hardcode_direct=no
9475 hardcode_shlibpath_var=no
9476 ;;
9477 *)
9478 hardcode_direct=yes
9479 hardcode_direct_absolute=yes
9480 export_dynamic_flag_spec='${wl}-E'
9481
9482 # hardcode_minus_L: Not really in the search PATH,
9483 # but as the default location of the library.
9484 hardcode_minus_L=yes
9485 ;;
9486 esac
9487 fi
9488 ;;
9489
9490 irix5* | irix6* | nonstopux*)
9491 if test "$GCC" = yes; then
9492 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'
9493 # Try to use the -exported_symbol ld option, if it does not
9494 # work, assume that -exports_file does not work either and
9495 # implicitly export all symbols.
9496 save_LDFLAGS="$LDFLAGS"
9497 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9498 cat >conftest.$ac_ext <<_ACEOF
9499int foo(void) {}
9500_ACEOF
9501rm -f conftest.$ac_objext conftest$ac_exeext
9502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503 (eval $ac_link) 2>conftest.er1
9504 ac_status=$?
9505 grep -v '^ *+' conftest.er1 >conftest.err
9506 rm -f conftest.er1
9507 cat conftest.err >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } &&
7357c5b6
AM
9510 { ac_try='test -z "$ac_c_werror_flag"
9511 || test ! -s conftest.err'
d7040cdb
SE
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; } &&
9517 { ac_try='test -s conftest$ac_exeext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 (eval $ac_try) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 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'
9524
9525else
9526 echo "$as_me: failed program was:" >&5
9527sed 's/^/| /' conftest.$ac_ext >&5
9528
9529fi
9530rm -f conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532 LDFLAGS="$save_LDFLAGS"
9533 else
9534 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'
9535 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'
9536 fi
9537 archive_cmds_need_lc='no'
9538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9539 hardcode_libdir_separator=:
9540 inherit_rpath=yes
9541 link_all_deplibs=yes
9542 ;;
9543
9544 netbsd*)
9545 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9547 else
9548 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9549 fi
9550 hardcode_libdir_flag_spec='-R$libdir'
9551 hardcode_direct=yes
9552 hardcode_shlibpath_var=no
9553 ;;
9554
9555 newsos6)
9556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9557 hardcode_direct=yes
9558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559 hardcode_libdir_separator=:
9560 hardcode_shlibpath_var=no
9561 ;;
9562
9563 *nto* | *qnx*)
9564 ;;
9565
9566 openbsd*)
718a6fd8
SE
9567 if test -f /usr/libexec/ld.so; then
9568 hardcode_direct=yes
9569 hardcode_shlibpath_var=no
9570 hardcode_direct_absolute=yes
9571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9573 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9575 export_dynamic_flag_spec='${wl}-E'
9576 else
9577 case $host_os in
9578 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_libdir_flag_spec='-R$libdir'
9581 ;;
9582 *)
9583 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9584 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9585 ;;
9586 esac
9587 fi
9588 else
9589 ld_shlibs=no
d7040cdb
SE
9590 fi
9591 ;;
9592
9593 os2*)
9594 hardcode_libdir_flag_spec='-L$libdir'
9595 hardcode_minus_L=yes
9596 allow_undefined_flag=unsupported
9597 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'
9598 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9599 ;;
9600
9601 osf3*)
9602 if test "$GCC" = yes; then
9603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9604 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'
9605 else
9606 allow_undefined_flag=' -expect_unresolved \*'
9607 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'
9608 fi
9609 archive_cmds_need_lc='no'
9610 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9611 hardcode_libdir_separator=:
9612 ;;
9613
9614 osf4* | osf5*) # as osf3* with the addition of -msym flag
9615 if test "$GCC" = yes; then
9616 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9617 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'
9618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619 else
9620 allow_undefined_flag=' -expect_unresolved \*'
9621 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'
9622 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~
9623 $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'
9624
9625 # Both c and cxx compiler support -rpath directly
9626 hardcode_libdir_flag_spec='-rpath $libdir'
9627 fi
9628 archive_cmds_need_lc='no'
9629 hardcode_libdir_separator=:
9630 ;;
9631
9632 solaris*)
9633 no_undefined_flag=' -z defs'
9634 if test "$GCC" = yes; then
9635 wlarc='${wl}'
9636 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9638 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9639 else
9640 case `$CC -V 2>&1` in
9641 *"Compilers 5.0"*)
9642 wlarc=''
9643 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9645 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9646 ;;
9647 *)
9648 wlarc='${wl}'
9649 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9651 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9652 ;;
9653 esac
9654 fi
9655 hardcode_libdir_flag_spec='-R$libdir'
9656 hardcode_shlibpath_var=no
9657 case $host_os in
9658 solaris2.[0-5] | solaris2.[0-5].*) ;;
9659 *)
9660 # The compiler driver will combine and reorder linker options,
9661 # but understands `-z linker_flag'. GCC discards it without `$wl',
9662 # but is careful enough not to reorder.
9663 # Supported since Solaris 2.6 (maybe 2.5.1?)
9664 if test "$GCC" = yes; then
9665 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9666 else
9667 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9668 fi
9669 ;;
9670 esac
9671 link_all_deplibs=yes
9672 ;;
9673
9674 sunos4*)
9675 if test "x$host_vendor" = xsequent; then
9676 # Use $CC to link under sequent, because it throws in some extra .o
9677 # files that make .init and .fini sections work.
9678 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9679 else
9680 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9681 fi
9682 hardcode_libdir_flag_spec='-L$libdir'
9683 hardcode_direct=yes
9684 hardcode_minus_L=yes
9685 hardcode_shlibpath_var=no
9686 ;;
9687
9688 sysv4)
9689 case $host_vendor in
9690 sni)
9691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9692 hardcode_direct=yes # is this really true???
9693 ;;
9694 siemens)
9695 ## LD is ld it makes a PLAMLIB
9696 ## CC just makes a GrossModule.
9697 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9698 reload_cmds='$CC -r -o $output$reload_objs'
9699 hardcode_direct=no
9700 ;;
9701 motorola)
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9704 ;;
9705 esac
9706 runpath_var='LD_RUN_PATH'
9707 hardcode_shlibpath_var=no
9708 ;;
9709
9710 sysv4.3*)
9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_shlibpath_var=no
9713 export_dynamic_flag_spec='-Bexport'
9714 ;;
9715
9716 sysv4*MP*)
9717 if test -d /usr/nec; then
9718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_shlibpath_var=no
9720 runpath_var=LD_RUN_PATH
9721 hardcode_runpath_var=yes
9722 ld_shlibs=yes
9723 fi
9724 ;;
9725
9726 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9727 no_undefined_flag='${wl}-z,text'
9728 archive_cmds_need_lc=no
9729 hardcode_shlibpath_var=no
9730 runpath_var='LD_RUN_PATH'
9731
9732 if test "$GCC" = yes; then
9733 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 else
9736 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9737 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 fi
9739 ;;
9740
9741 sysv5* | sco3.2v5* | sco5v6*)
9742 # Note: We can NOT use -z defs as we might desire, because we do not
9743 # link with -lc, and that would cause any symbols used from libc to
9744 # always be unresolved, which means just about no library would
9745 # ever link correctly. If we're not using GNU ld we use -z text
9746 # though, which does catch some bad symbols but isn't as heavy-handed
9747 # as -z defs.
9748 no_undefined_flag='${wl}-z,text'
9749 allow_undefined_flag='${wl}-z,nodefs'
9750 archive_cmds_need_lc=no
9751 hardcode_shlibpath_var=no
9752 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9753 hardcode_libdir_separator=':'
9754 link_all_deplibs=yes
9755 export_dynamic_flag_spec='${wl}-Bexport'
9756 runpath_var='LD_RUN_PATH'
9757
9758 if test "$GCC" = yes; then
9759 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761 else
9762 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9763 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9764 fi
9765 ;;
9766
9767 uts4*)
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_libdir_flag_spec='-L$libdir'
9770 hardcode_shlibpath_var=no
9771 ;;
9772
9773 *)
9774 ld_shlibs=no
9775 ;;
9776 esac
9777
9778 if test x$host_vendor = xsni; then
9779 case $host in
9780 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9781 export_dynamic_flag_spec='${wl}-Blargedynsym'
9782 ;;
9783 esac
9784 fi
9785 fi
9786
9787echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9788echo "${ECHO_T}$ld_shlibs" >&6
9789test "$ld_shlibs" = no && can_build_shared=no
9790
9791with_gnu_ld=$with_gnu_ld
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807#
9808# Do we need to explicitly link libc?
9809#
9810case "x$archive_cmds_need_lc" in
9811x|xyes)
9812 # Assume -lc should be added
9813 archive_cmds_need_lc=yes
9814
9815 if test "$enable_shared" = yes && test "$GCC" = yes; then
9816 case $archive_cmds in
9817 *'~'*)
9818 # FIXME: we may have to deal with multi-command sequences.
9819 ;;
9820 '$CC '*)
9821 # Test whether the compiler implicitly links with -lc since on some
9822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9823 # to ld, don't add -lc before -lgcc.
9824 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9825echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
39144654
RW
9826if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828else
9829 $RM conftest*
9830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9831
39144654 9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d7040cdb
SE
9833 (eval $ac_compile) 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } 2>conftest.err; then
39144654
RW
9837 soname=conftest
9838 lib=conftest
9839 libobjs=conftest.$ac_objext
9840 deplibs=
9841 wl=$lt_prog_compiler_wl
9842 pic_flag=$lt_prog_compiler_pic
9843 compiler_flags=-v
9844 linker_flags=-v
9845 verstring=
9846 output_objdir=.
9847 libname=conftest
9848 lt_save_allow_undefined_flag=$allow_undefined_flag
9849 allow_undefined_flag=
9850 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
d7040cdb
SE
9851 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }
39144654
RW
9855 then
9856 lt_cv_archive_cmds_need_lc=no
9857 else
9858 lt_cv_archive_cmds_need_lc=yes
9859 fi
9860 allow_undefined_flag=$lt_save_allow_undefined_flag
9861 else
9862 cat conftest.err 1>&5
9863 fi
9864 $RM conftest*
9865
9866fi
9867echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9868echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9869 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
9870 ;;
9871 esac
9872 fi
9873 ;;
9874esac
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10033echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
718a6fd8
SE
10034
10035if test "$GCC" = yes; then
d7040cdb
SE
10036 case $host_os in
10037 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10038 *) lt_awk_arg="/^libraries:/" ;;
10039 esac
10040 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10041 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10042 # if the path contains ";" then we assume it to be the separator
10043 # otherwise default to the standard path separator (i.e. ":") - it is
10044 # assumed that no part of a normal pathname contains ";" but that should
10045 # okay in the real world where ";" in dirpaths is itself problematic.
10046 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10047 else
10048 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10049 fi
10050 # Ok, now we have the path, separated by spaces, we can step through it
10051 # and add multilib dir if necessary.
10052 lt_tmp_lt_search_path_spec=
10053 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10054 for lt_sys_path in $lt_search_path_spec; do
10055 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10057 else
10058 test -d "$lt_sys_path" && \
10059 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10060 fi
10061 done
10062 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10063BEGIN {RS=" "; FS="/|\n";} {
10064 lt_foo="";
10065 lt_count=0;
10066 for (lt_i = NF; lt_i > 0; lt_i--) {
10067 if ($lt_i != "" && $lt_i != ".") {
10068 if ($lt_i == "..") {
10069 lt_count++;
10070 } else {
10071 if (lt_count == 0) {
10072 lt_foo="/" $lt_i lt_foo;
10073 } else {
10074 lt_count--;
10075 }
10076 }
10077 }
10078 }
10079 if (lt_foo != "") { lt_freq[lt_foo]++; }
10080 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10081}'`
10082 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10083else
10084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10085fi
10086library_names_spec=
10087libname_spec='lib$name'
10088soname_spec=
10089shrext_cmds=".so"
10090postinstall_cmds=
10091postuninstall_cmds=
10092finish_cmds=
10093finish_eval=
10094shlibpath_var=
10095shlibpath_overrides_runpath=unknown
10096version_type=none
10097dynamic_linker="$host_os ld.so"
10098sys_lib_dlsearch_path_spec="/lib /usr/lib"
10099need_lib_prefix=unknown
10100hardcode_into_libs=no
10101
10102# when you set need_version to no, make sure it does not cause -set_version
10103# flags to be left without arguments
10104need_version=unknown
10105
10106case $host_os in
10107aix3*)
10108 version_type=linux
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10110 shlibpath_var=LIBPATH
10111
10112 # AIX 3 has no versioning support, so we append a major version to the name.
10113 soname_spec='${libname}${release}${shared_ext}$major'
10114 ;;
10115
e81819a5 10116aix[4-9]*)
d7040cdb
SE
10117 version_type=linux
10118 need_lib_prefix=no
10119 need_version=no
10120 hardcode_into_libs=yes
10121 if test "$host_cpu" = ia64; then
10122 # AIX 5 supports IA64
10123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 else
10126 # With GCC up to 2.95.x, collect2 would create an import file
10127 # for dependence libraries. The import file would start with
10128 # the line `#! .'. This would cause the generated library to
10129 # depend on `.', always an invalid library. This was fixed in
10130 # development snapshots of GCC prior to 3.0.
10131 case $host_os in
10132 aix4 | aix4.[01] | aix4.[01].*)
10133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10134 echo ' yes '
10135 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10136 :
10137 else
10138 can_build_shared=no
10139 fi
10140 ;;
10141 esac
10142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10143 # soname into executable. Probably we can add versioning support to
10144 # collect2, so additional links can be useful in future.
10145 if test "$aix_use_runtimelinking" = yes; then
10146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10147 # instead of lib<name>.a to let people know that these are not
10148 # typical AIX shared libraries.
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150 else
10151 # We preserve .a as extension for shared libraries through AIX4.2
10152 # and later when we are not doing run time linking.
10153 library_names_spec='${libname}${release}.a $libname.a'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 fi
10156 shlibpath_var=LIBPATH
10157 fi
10158 ;;
10159
10160amigaos*)
718a6fd8
SE
10161 case $host_cpu in
10162 powerpc)
10163 # Since July 2007 AmigaOS4 officially supports .so libraries.
10164 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166 ;;
10167 m68k)
d7040cdb
SE
10168 library_names_spec='$libname.ixlibrary $libname.a'
10169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10170 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
10171 ;;
10172 esac
d7040cdb
SE
10173 ;;
10174
10175beos*)
10176 library_names_spec='${libname}${shared_ext}'
10177 dynamic_linker="$host_os ld.so"
10178 shlibpath_var=LIBRARY_PATH
10179 ;;
10180
10181bsdi[45]*)
10182 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10189 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10190 # the default ld.so.conf also contains /usr/contrib/lib and
10191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10192 # libtool to hard-code these into programs
10193 ;;
10194
718a6fd8 10195cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10196 version_type=windows
10197 shrext_cmds=".dll"
10198 need_version=no
10199 need_lib_prefix=no
10200
718a6fd8
SE
10201 case $GCC,$host_os in
10202 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10203 library_names_spec='$libname.dll.a'
10204 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10205 postinstall_cmds='base_file=`basename \${file}`~
10206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10207 dldir=$destdir/`dirname \$dlpath`~
10208 test -d \$dldir || mkdir -p \$dldir~
10209 $install_prog $dir/$dlname \$dldir/$dlname~
10210 chmod a+x \$dldir/$dlname~
10211 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10212 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10213 fi'
10214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10215 dlpath=$dir/\$dldll~
10216 $RM \$dlpath'
10217 shlibpath_overrides_runpath=yes
10218
10219 case $host_os in
10220 cygwin*)
10221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10223 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10224 ;;
718a6fd8 10225 mingw* | cegcc*)
d7040cdb
SE
10226 # MinGW DLLs use traditional 'lib' prefix
10227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10228 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10229 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10230 # It is most probably a Windows format PATH printed by
10231 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10232 # path with ; separators, and with drive letters. We can handle the
10233 # drive letters (cygwin fileutils understands them), so leave them,
10234 # especially as we might pass files found there to a mingw objdump,
10235 # which wouldn't understand a cygwinified path. Ahh.
10236 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10237 else
10238 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10239 fi
10240 ;;
10241 pw32*)
10242 # pw32 DLLs use 'pw' prefix rather than 'lib'
10243 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10244 ;;
10245 esac
10246 ;;
10247
10248 *)
10249 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10250 ;;
10251 esac
10252 dynamic_linker='Win32 ld.exe'
10253 # FIXME: first we should search . and the directory the executable is in
10254 shlibpath_var=PATH
10255 ;;
10256
10257darwin* | rhapsody*)
10258 dynamic_linker="$host_os dyld"
10259 version_type=darwin
10260 need_lib_prefix=no
10261 need_version=no
10262 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10263 soname_spec='${libname}${release}${major}$shared_ext'
10264 shlibpath_overrides_runpath=yes
10265 shlibpath_var=DYLD_LIBRARY_PATH
10266 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10267
10268 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10269 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10270 ;;
10271
10272dgux*)
10273 version_type=linux
10274 need_lib_prefix=no
10275 need_version=no
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 ;;
10280
10281freebsd1*)
10282 dynamic_linker=no
10283 ;;
10284
10285freebsd* | dragonfly*)
10286 # DragonFly does not have aout. When/if they implement a new
10287 # versioning mechanism, adjust this.
10288 if test -x /usr/bin/objformat; then
10289 objformat=`/usr/bin/objformat`
10290 else
10291 case $host_os in
10292 freebsd[123]*) objformat=aout ;;
10293 *) objformat=elf ;;
10294 esac
10295 fi
10296 version_type=freebsd-$objformat
10297 case $version_type in
10298 freebsd-elf*)
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10300 need_version=no
10301 need_lib_prefix=no
10302 ;;
10303 freebsd-*)
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10305 need_version=yes
10306 ;;
10307 esac
10308 shlibpath_var=LD_LIBRARY_PATH
10309 case $host_os in
10310 freebsd2*)
10311 shlibpath_overrides_runpath=yes
10312 ;;
10313 freebsd3.[01]* | freebsdelf3.[01]*)
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10316 ;;
10317 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10318 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10319 shlibpath_overrides_runpath=no
10320 hardcode_into_libs=yes
10321 ;;
10322 *) # from 4.6 on, and DragonFly
10323 shlibpath_overrides_runpath=yes
10324 hardcode_into_libs=yes
10325 ;;
10326 esac
10327 ;;
10328
10329gnu*)
10330 version_type=linux
10331 need_lib_prefix=no
10332 need_version=no
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 hardcode_into_libs=yes
10337 ;;
10338
10339hpux9* | hpux10* | hpux11*)
10340 # Give a soname corresponding to the major version so that dld.sl refuses to
10341 # link against other versions.
10342 version_type=sunos
10343 need_lib_prefix=no
10344 need_version=no
10345 case $host_cpu in
10346 ia64*)
10347 shrext_cmds='.so'
10348 hardcode_into_libs=yes
10349 dynamic_linker="$host_os dld.so"
10350 shlibpath_var=LD_LIBRARY_PATH
10351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 if test "X$HPUX_IA64_MODE" = X32; then
10355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10356 else
10357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10358 fi
10359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10360 ;;
10361 hppa*64*)
10362 shrext_cmds='.sl'
10363 hardcode_into_libs=yes
10364 dynamic_linker="$host_os dld.sl"
10365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10371 ;;
10372 *)
10373 shrext_cmds='.sl'
10374 dynamic_linker="$host_os dld.sl"
10375 shlibpath_var=SHLIB_PATH
10376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 ;;
10380 esac
10381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10382 postinstall_cmds='chmod 555 $lib'
10383 ;;
10384
10385interix[3-9]*)
10386 version_type=linux
10387 need_lib_prefix=no
10388 need_version=no
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=no
10394 hardcode_into_libs=yes
10395 ;;
10396
10397irix5* | irix6* | nonstopux*)
10398 case $host_os in
10399 nonstopux*) version_type=nonstopux ;;
10400 *)
10401 if test "$lt_cv_prog_gnu_ld" = yes; then
10402 version_type=linux
10403 else
10404 version_type=irix
10405 fi ;;
10406 esac
10407 need_lib_prefix=no
10408 need_version=no
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10411 case $host_os in
10412 irix5* | nonstopux*)
10413 libsuff= shlibsuff=
10414 ;;
10415 *)
10416 case $LD in # libtool.m4 will add one of these switches to LD
10417 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10418 libsuff= shlibsuff= libmagic=32-bit;;
10419 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10420 libsuff=32 shlibsuff=N32 libmagic=N32;;
10421 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10422 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10423 *) libsuff= shlibsuff= libmagic=never-match;;
10424 esac
10425 ;;
10426 esac
10427 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10428 shlibpath_overrides_runpath=no
10429 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10430 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10431 hardcode_into_libs=yes
10432 ;;
10433
10434# No shared lib support for Linux oldld, aout, or coff.
10435linux*oldld* | linux*aout* | linux*coff*)
10436 dynamic_linker=no
10437 ;;
10438
10439# This must be Linux ELF.
10440linux* | k*bsd*-gnu)
10441 version_type=linux
10442 need_lib_prefix=no
10443 need_version=no
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445 soname_spec='${libname}${release}${shared_ext}$major'
10446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10447 shlibpath_var=LD_LIBRARY_PATH
10448 shlibpath_overrides_runpath=no
39144654 10449
d7040cdb 10450 # Some binutils ld are patched to set DT_RUNPATH
39144654
RW
10451 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453else
10454 lt_cv_shlibpath_overrides_runpath=no
10455 save_LDFLAGS=$LDFLAGS
10456 save_libdir=$libdir
10457 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10458 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10459 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10460/* confdefs.h. */
10461_ACEOF
10462cat confdefs.h >>conftest.$ac_ext
10463cat >>conftest.$ac_ext <<_ACEOF
10464/* end confdefs.h. */
10465
10466int
10467main ()
10468{
10469
10470 ;
10471 return 0;
10472}
10473_ACEOF
10474rm -f conftest.$ac_objext conftest$ac_exeext
10475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
7357c5b6
AM
10483 { ac_try='test -z "$ac_c_werror_flag"
10484 || test ! -s conftest.err'
d7040cdb
SE
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest$ac_exeext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
718a6fd8 10496 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
39144654 10497 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb
SE
10498fi
10499
10500else
10501 echo "$as_me: failed program was:" >&5
10502sed 's/^/| /' conftest.$ac_ext >&5
10503
10504fi
10505rm -f conftest.err conftest.$ac_objext \
10506 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10507 LDFLAGS=$save_LDFLAGS
10508 libdir=$save_libdir
10509
10510fi
10511
10512 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10513
10514 # This implies no fast_install, which is unacceptable.
10515 # Some rework will be needed to allow for fast_install
10516 # before this can be enabled.
10517 hardcode_into_libs=yes
10518
10519 # Append ld.so.conf contents to the search path
10520 if test -f /etc/ld.so.conf; then
718a6fd8 10521 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
10522 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10523 fi
10524
10525 # We used to test for /lib/ld.so.1 and disable shared libraries on
10526 # powerpc, because MkLinux only supported shared libraries with the
10527 # GNU dynamic linker. Since this was broken with cross compilers,
10528 # most powerpc-linux boxes support dynamic linking these days and
10529 # people can always --disable-shared, the test was removed, and we
10530 # assume the GNU/Linux dynamic linker is in use.
10531 dynamic_linker='GNU/Linux ld.so'
10532 ;;
10533
10534netbsd*)
10535 version_type=sunos
10536 need_lib_prefix=no
10537 need_version=no
10538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10541 dynamic_linker='NetBSD (a.out) ld.so'
10542 else
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 dynamic_linker='NetBSD ld.elf_so'
10546 fi
10547 shlibpath_var=LD_LIBRARY_PATH
10548 shlibpath_overrides_runpath=yes
10549 hardcode_into_libs=yes
10550 ;;
10551
10552newsos6)
10553 version_type=linux
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 shlibpath_overrides_runpath=yes
10557 ;;
10558
10559*nto* | *qnx*)
10560 version_type=qnx
10561 need_lib_prefix=no
10562 need_version=no
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 shlibpath_overrides_runpath=no
10567 hardcode_into_libs=yes
10568 dynamic_linker='ldqnx.so'
10569 ;;
10570
10571openbsd*)
10572 version_type=sunos
10573 sys_lib_dlsearch_path_spec="/usr/lib"
10574 need_lib_prefix=no
10575 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10576 case $host_os in
10577 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10578 *) need_version=no ;;
10579 esac
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10584 case $host_os in
10585 openbsd2.[89] | openbsd2.[89].*)
10586 shlibpath_overrides_runpath=no
10587 ;;
10588 *)
10589 shlibpath_overrides_runpath=yes
10590 ;;
10591 esac
10592 else
10593 shlibpath_overrides_runpath=yes
10594 fi
10595 ;;
10596
10597os2*)
10598 libname_spec='$name'
10599 shrext_cmds=".dll"
10600 need_lib_prefix=no
10601 library_names_spec='$libname${shared_ext} $libname.a'
10602 dynamic_linker='OS/2 ld.exe'
10603 shlibpath_var=LIBPATH
10604 ;;
10605
10606osf3* | osf4* | osf5*)
10607 version_type=osf
10608 need_lib_prefix=no
10609 need_version=no
10610 soname_spec='${libname}${release}${shared_ext}$major'
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10615 ;;
10616
10617rdos*)
10618 dynamic_linker=no
10619 ;;
10620
10621solaris*)
10622 version_type=linux
10623 need_lib_prefix=no
10624 need_version=no
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=yes
10629 hardcode_into_libs=yes
10630 # ldd complains unless libraries are executable
10631 postinstall_cmds='chmod +x $lib'
10632 ;;
10633
10634sunos4*)
10635 version_type=sunos
10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10637 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10638 shlibpath_var=LD_LIBRARY_PATH
10639 shlibpath_overrides_runpath=yes
10640 if test "$with_gnu_ld" = yes; then
10641 need_lib_prefix=no
10642 fi
10643 need_version=yes
10644 ;;
10645
10646sysv4 | sysv4.3*)
10647 version_type=linux
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649 soname_spec='${libname}${release}${shared_ext}$major'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 case $host_vendor in
10652 sni)
10653 shlibpath_overrides_runpath=no
10654 need_lib_prefix=no
10655 runpath_var=LD_RUN_PATH
10656 ;;
10657 siemens)
10658 need_lib_prefix=no
10659 ;;
10660 motorola)
10661 need_lib_prefix=no
10662 need_version=no
10663 shlibpath_overrides_runpath=no
10664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10665 ;;
10666 esac
10667 ;;
10668
10669sysv4*MP*)
10670 if test -d /usr/nec ;then
10671 version_type=linux
10672 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10673 soname_spec='$libname${shared_ext}.$major'
10674 shlibpath_var=LD_LIBRARY_PATH
10675 fi
10676 ;;
10677
10678sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10679 version_type=freebsd-elf
10680 need_lib_prefix=no
10681 need_version=no
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 shlibpath_var=LD_LIBRARY_PATH
10685 shlibpath_overrides_runpath=yes
10686 hardcode_into_libs=yes
10687 if test "$with_gnu_ld" = yes; then
10688 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10689 else
10690 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10691 case $host_os in
10692 sco3.2v5*)
10693 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10694 ;;
10695 esac
10696 fi
10697 sys_lib_dlsearch_path_spec='/usr/lib'
10698 ;;
10699
10700tpf*)
10701 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10702 version_type=linux
10703 need_lib_prefix=no
10704 need_version=no
718a6fd8 10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10706 shlibpath_var=LD_LIBRARY_PATH
10707 shlibpath_overrides_runpath=no
10708 hardcode_into_libs=yes
10709 ;;
10710
10711uts4*)
10712 version_type=linux
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 ;;
10717
10718*)
10719 dynamic_linker=no
10720 ;;
10721esac
10722echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10723echo "${ECHO_T}$dynamic_linker" >&6
10724test "$dynamic_linker" = no && can_build_shared=no
10725
10726variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10727if test "$GCC" = yes; then
10728 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10729fi
10730
718a6fd8
SE
10731if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10732 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10733fi
10734if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10735 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10736fi
10737
d7040cdb
SE
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10825echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10826hardcode_action=
10827if test -n "$hardcode_libdir_flag_spec" ||
10828 test -n "$runpath_var" ||
10829 test "X$hardcode_automatic" = "Xyes" ; then
10830
10831 # We can hardcode non-existent directories.
10832 if test "$hardcode_direct" != no &&
10833 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10834 # have to relink, otherwise we might link with an installed library
10835 # when we should be linking with a yet-to-be-installed one
10836 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10837 test "$hardcode_minus_L" != no; then
10838 # Linking always hardcodes the temporary library directory.
10839 hardcode_action=relink
10840 else
10841 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10842 hardcode_action=immediate
10843 fi
10844else
10845 # We cannot hardcode anything, or else we can only hardcode existing
10846 # directories.
10847 hardcode_action=unsupported
10848fi
10849echo "$as_me:$LINENO: result: $hardcode_action" >&5
10850echo "${ECHO_T}$hardcode_action" >&6
10851
10852if test "$hardcode_action" = relink ||
10853 test "$inherit_rpath" = yes; then
10854 # Fast installation is not supported
10855 enable_fast_install=no
10856elif test "$shlibpath_overrides_runpath" = yes ||
10857 test "$enable_shared" = no; then
10858 # Fast installation is not necessary
10859 enable_fast_install=needless
10860fi
10861
10862
10863
10864
10865
10866
10867 if test "x$enable_dlopen" != xyes; then
10868 enable_dlopen=unknown
10869 enable_dlopen_self=unknown
10870 enable_dlopen_self_static=unknown
10871else
10872 lt_cv_dlopen=no
10873 lt_cv_dlopen_libs=
10874
10875 case $host_os in
10876 beos*)
10877 lt_cv_dlopen="load_add_on"
10878 lt_cv_dlopen_libs=
10879 lt_cv_dlopen_self=yes
10880 ;;
10881
718a6fd8 10882 mingw* | pw32* | cegcc*)
d7040cdb
SE
10883 lt_cv_dlopen="LoadLibrary"
10884 lt_cv_dlopen_libs=
10885 ;;
10886
10887 cygwin*)
10888 lt_cv_dlopen="dlopen"
10889 lt_cv_dlopen_libs=
10890 ;;
10891
10892 darwin*)
10893 # if libdl is installed we need to link against it
10894 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10895echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10896if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
10898else
10899 ac_check_lib_save_LIBS=$LIBS
10900LIBS="-ldl $LIBS"
10901cat >conftest.$ac_ext <<_ACEOF
10902/* confdefs.h. */
10903_ACEOF
10904cat confdefs.h >>conftest.$ac_ext
10905cat >>conftest.$ac_ext <<_ACEOF
10906/* end confdefs.h. */
10907
10908/* Override any gcc2 internal prototype to avoid an error. */
10909#ifdef __cplusplus
10910extern "C"
10911#endif
10912/* We use char because int might match the return type of a gcc2
10913 builtin and then its argument prototype would still apply. */
10914char dlopen ();
10915int
10916main ()
10917{
10918dlopen ();
10919 ;
10920 return 0;
10921}
10922_ACEOF
10923rm -f conftest.$ac_objext conftest$ac_exeext
10924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925 (eval $ac_link) 2>conftest.er1
10926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
7357c5b6
AM
10932 { ac_try='test -z "$ac_c_werror_flag"
10933 || test ! -s conftest.err'
d7040cdb
SE
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10936 ac_status=$?
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; } &&
10939 { ac_try='test -s conftest$ac_exeext'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 ac_cv_lib_dl_dlopen=yes
10946else
10947 echo "$as_me: failed program was:" >&5
10948sed 's/^/| /' conftest.$ac_ext >&5
10949
10950ac_cv_lib_dl_dlopen=no
10951fi
10952rm -f conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10954LIBS=$ac_check_lib_save_LIBS
10955fi
10956echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10957echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10958if test $ac_cv_lib_dl_dlopen = yes; then
10959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10960else
10961
10962 lt_cv_dlopen="dyld"
10963 lt_cv_dlopen_libs=
10964 lt_cv_dlopen_self=yes
10965
10966fi
10967
10968 ;;
10969
10970 *)
10971 echo "$as_me:$LINENO: checking for shl_load" >&5
10972echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10973if test "${ac_cv_func_shl_load+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975else
10976 cat >conftest.$ac_ext <<_ACEOF
10977/* confdefs.h. */
10978_ACEOF
10979cat confdefs.h >>conftest.$ac_ext
10980cat >>conftest.$ac_ext <<_ACEOF
10981/* end confdefs.h. */
10982/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10984#define shl_load innocuous_shl_load
10985
10986/* System header to define __stub macros and hopefully few prototypes,
10987 which can conflict with char shl_load (); below.
10988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10989 <limits.h> exists even on freestanding compilers. */
10990
10991#ifdef __STDC__
10992# include <limits.h>
10993#else
10994# include <assert.h>
10995#endif
10996
10997#undef shl_load
10998
10999/* Override any gcc2 internal prototype to avoid an error. */
11000#ifdef __cplusplus
11001extern "C"
11002{
11003#endif
11004/* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
11006char shl_load ();
11007/* The GNU C library defines this for functions which it implements
11008 to always fail with ENOSYS. Some functions are actually named
11009 something starting with __ and the normal name is an alias. */
11010#if defined (__stub_shl_load) || defined (__stub___shl_load)
11011choke me
11012#else
11013char (*f) () = shl_load;
11014#endif
11015#ifdef __cplusplus
11016}
11017#endif
11018
11019int
11020main ()
11021{
11022return f != shl_load;
11023 ;
11024 return 0;
11025}
11026_ACEOF
11027rm -f conftest.$ac_objext conftest$ac_exeext
11028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029 (eval $ac_link) 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
7357c5b6
AM
11036 { ac_try='test -z "$ac_c_werror_flag"
11037 || test ! -s conftest.err'
d7040cdb
SE
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest$ac_exeext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_cv_func_shl_load=yes
11050else
11051 echo "$as_me: failed program was:" >&5
11052sed 's/^/| /' conftest.$ac_ext >&5
11053
11054ac_cv_func_shl_load=no
11055fi
11056rm -f conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058fi
11059echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11060echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11061if test $ac_cv_func_shl_load = yes; then
11062 lt_cv_dlopen="shl_load"
11063else
11064 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11065echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11066if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068else
11069 ac_check_lib_save_LIBS=$LIBS
11070LIBS="-ldld $LIBS"
11071cat >conftest.$ac_ext <<_ACEOF
11072/* confdefs.h. */
11073_ACEOF
11074cat confdefs.h >>conftest.$ac_ext
11075cat >>conftest.$ac_ext <<_ACEOF
11076/* end confdefs.h. */
11077
11078/* Override any gcc2 internal prototype to avoid an error. */
11079#ifdef __cplusplus
11080extern "C"
11081#endif
11082/* We use char because int might match the return type of a gcc2
11083 builtin and then its argument prototype would still apply. */
11084char shl_load ();
11085int
11086main ()
11087{
11088shl_load ();
11089 ;
11090 return 0;
11091}
11092_ACEOF
11093rm -f conftest.$ac_objext conftest$ac_exeext
11094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11095 (eval $ac_link) 2>conftest.er1
11096 ac_status=$?
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
7357c5b6
AM
11102 { ac_try='test -z "$ac_c_werror_flag"
11103 || test ! -s conftest.err'
d7040cdb
SE
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest$ac_exeext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_lib_dld_shl_load=yes
11116else
11117 echo "$as_me: failed program was:" >&5
11118sed 's/^/| /' conftest.$ac_ext >&5
11119
11120ac_cv_lib_dld_shl_load=no
11121fi
11122rm -f conftest.err conftest.$ac_objext \
11123 conftest$ac_exeext conftest.$ac_ext
11124LIBS=$ac_check_lib_save_LIBS
11125fi
11126echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11127echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11128if test $ac_cv_lib_dld_shl_load = yes; then
718a6fd8 11129 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11130else
11131 echo "$as_me:$LINENO: checking for dlopen" >&5
11132echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11133if test "${ac_cv_func_dlopen+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11135else
11136 cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h. */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h. */
11142/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11144#define dlopen innocuous_dlopen
11145
11146/* System header to define __stub macros and hopefully few prototypes,
11147 which can conflict with char dlopen (); below.
11148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11149 <limits.h> exists even on freestanding compilers. */
11150
11151#ifdef __STDC__
11152# include <limits.h>
11153#else
11154# include <assert.h>
11155#endif
11156
11157#undef dlopen
11158
11159/* Override any gcc2 internal prototype to avoid an error. */
11160#ifdef __cplusplus
11161extern "C"
11162{
11163#endif
11164/* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */
11166char dlopen ();
11167/* The GNU C library defines this for functions which it implements
11168 to always fail with ENOSYS. Some functions are actually named
11169 something starting with __ and the normal name is an alias. */
11170#if defined (__stub_dlopen) || defined (__stub___dlopen)
11171choke me
11172#else
11173char (*f) () = dlopen;
11174#endif
11175#ifdef __cplusplus
11176}
11177#endif
11178
11179int
11180main ()
11181{
11182return f != dlopen;
11183 ;
11184 return 0;
11185}
11186_ACEOF
11187rm -f conftest.$ac_objext conftest$ac_exeext
11188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189 (eval $ac_link) 2>conftest.er1
11190 ac_status=$?
11191 grep -v '^ *+' conftest.er1 >conftest.err
11192 rm -f conftest.er1
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
7357c5b6
AM
11196 { ac_try='test -z "$ac_c_werror_flag"
11197 || test ! -s conftest.err'
d7040cdb
SE
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; } &&
11203 { ac_try='test -s conftest$ac_exeext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 ac_cv_func_dlopen=yes
11210else
11211 echo "$as_me: failed program was:" >&5
11212sed 's/^/| /' conftest.$ac_ext >&5
11213
11214ac_cv_func_dlopen=no
11215fi
11216rm -f conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext conftest.$ac_ext
11218fi
11219echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11220echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11221if test $ac_cv_func_dlopen = yes; then
11222 lt_cv_dlopen="dlopen"
11223else
11224 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11225echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11226if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11228else
11229 ac_check_lib_save_LIBS=$LIBS
11230LIBS="-ldl $LIBS"
11231cat >conftest.$ac_ext <<_ACEOF
11232/* confdefs.h. */
11233_ACEOF
11234cat confdefs.h >>conftest.$ac_ext
11235cat >>conftest.$ac_ext <<_ACEOF
11236/* end confdefs.h. */
11237
11238/* Override any gcc2 internal prototype to avoid an error. */
11239#ifdef __cplusplus
11240extern "C"
11241#endif
11242/* We use char because int might match the return type of a gcc2
11243 builtin and then its argument prototype would still apply. */
11244char dlopen ();
11245int
11246main ()
11247{
11248dlopen ();
11249 ;
11250 return 0;
11251}
11252_ACEOF
11253rm -f conftest.$ac_objext conftest$ac_exeext
11254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11255 (eval $ac_link) 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
7357c5b6
AM
11262 { ac_try='test -z "$ac_c_werror_flag"
11263 || test ! -s conftest.err'
d7040cdb
SE
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11266 ac_status=$?
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; } &&
11269 { ac_try='test -s conftest$ac_exeext'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
11275 ac_cv_lib_dl_dlopen=yes
11276else
11277 echo "$as_me: failed program was:" >&5
11278sed 's/^/| /' conftest.$ac_ext >&5
11279
11280ac_cv_lib_dl_dlopen=no
11281fi
11282rm -f conftest.err conftest.$ac_objext \
11283 conftest$ac_exeext conftest.$ac_ext
11284LIBS=$ac_check_lib_save_LIBS
11285fi
11286echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11287echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11288if test $ac_cv_lib_dl_dlopen = yes; then
11289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11290else
11291 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11292echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11293if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295else
11296 ac_check_lib_save_LIBS=$LIBS
11297LIBS="-lsvld $LIBS"
11298cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h. */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h. */
11304
11305/* Override any gcc2 internal prototype to avoid an error. */
11306#ifdef __cplusplus
11307extern "C"
11308#endif
11309/* We use char because int might match the return type of a gcc2
11310 builtin and then its argument prototype would still apply. */
11311char dlopen ();
11312int
11313main ()
11314{
11315dlopen ();
11316 ;
11317 return 0;
11318}
11319_ACEOF
11320rm -f conftest.$ac_objext conftest$ac_exeext
11321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11322 (eval $ac_link) 2>conftest.er1
11323 ac_status=$?
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
7357c5b6
AM
11329 { ac_try='test -z "$ac_c_werror_flag"
11330 || test ! -s conftest.err'
d7040cdb
SE
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; } &&
11336 { ac_try='test -s conftest$ac_exeext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 ac_cv_lib_svld_dlopen=yes
11343else
11344 echo "$as_me: failed program was:" >&5
11345sed 's/^/| /' conftest.$ac_ext >&5
11346
11347ac_cv_lib_svld_dlopen=no
11348fi
11349rm -f conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext conftest.$ac_ext
11351LIBS=$ac_check_lib_save_LIBS
11352fi
11353echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11354echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11355if test $ac_cv_lib_svld_dlopen = yes; then
11356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11357else
11358 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11359echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11360if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11362else
11363 ac_check_lib_save_LIBS=$LIBS
11364LIBS="-ldld $LIBS"
11365cat >conftest.$ac_ext <<_ACEOF
11366/* confdefs.h. */
11367_ACEOF
11368cat confdefs.h >>conftest.$ac_ext
11369cat >>conftest.$ac_ext <<_ACEOF
11370/* end confdefs.h. */
11371
11372/* Override any gcc2 internal prototype to avoid an error. */
11373#ifdef __cplusplus
11374extern "C"
11375#endif
11376/* We use char because int might match the return type of a gcc2
11377 builtin and then its argument prototype would still apply. */
11378char dld_link ();
11379int
11380main ()
11381{
11382dld_link ();
11383 ;
11384 return 0;
11385}
11386_ACEOF
11387rm -f conftest.$ac_objext conftest$ac_exeext
11388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11389 (eval $ac_link) 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } &&
7357c5b6
AM
11396 { ac_try='test -z "$ac_c_werror_flag"
11397 || test ! -s conftest.err'
d7040cdb
SE
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11400 ac_status=$?
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; } &&
11403 { ac_try='test -s conftest$ac_exeext'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 ac_cv_lib_dld_dld_link=yes
11410else
11411 echo "$as_me: failed program was:" >&5
11412sed 's/^/| /' conftest.$ac_ext >&5
11413
11414ac_cv_lib_dld_dld_link=no
11415fi
11416rm -f conftest.err conftest.$ac_objext \
11417 conftest$ac_exeext conftest.$ac_ext
11418LIBS=$ac_check_lib_save_LIBS
11419fi
11420echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11421echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11422if test $ac_cv_lib_dld_dld_link = yes; then
718a6fd8 11423 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11424fi
11425
11426
11427fi
11428
11429
11430fi
11431
11432
11433fi
11434
11435
11436fi
11437
11438
11439fi
11440
11441 ;;
11442 esac
11443
11444 if test "x$lt_cv_dlopen" != xno; then
11445 enable_dlopen=yes
20e95c23 11446 else
d7040cdb 11447 enable_dlopen=no
252b5132 11448 fi
5464f5a1 11449
d7040cdb
SE
11450 case $lt_cv_dlopen in
11451 dlopen)
11452 save_CPPFLAGS="$CPPFLAGS"
11453 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11454
11455 save_LDFLAGS="$LDFLAGS"
11456 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11457
11458 save_LIBS="$LIBS"
11459 LIBS="$lt_cv_dlopen_libs $LIBS"
11460
11461 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11462echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11463if test "${lt_cv_dlopen_self+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 11465else
d7040cdb
SE
11466 if test "$cross_compiling" = yes; then :
11467 lt_cv_dlopen_self=cross
11468else
11469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11470 lt_status=$lt_dlunknown
11471 cat > conftest.$ac_ext <<_LT_EOF
29670fb9 11472#line 11472 "configure"
d7040cdb
SE
11473#include "confdefs.h"
11474
11475#if HAVE_DLFCN_H
11476#include <dlfcn.h>
11477#endif
11478
11479#include <stdio.h>
11480
11481#ifdef RTLD_GLOBAL
11482# define LT_DLGLOBAL RTLD_GLOBAL
11483#else
11484# ifdef DL_GLOBAL
11485# define LT_DLGLOBAL DL_GLOBAL
11486# else
11487# define LT_DLGLOBAL 0
11488# endif
11489#endif
11490
11491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11492 find out it does not work in some platform. */
11493#ifndef LT_DLLAZY_OR_NOW
11494# ifdef RTLD_LAZY
11495# define LT_DLLAZY_OR_NOW RTLD_LAZY
11496# else
11497# ifdef DL_LAZY
11498# define LT_DLLAZY_OR_NOW DL_LAZY
11499# else
11500# ifdef RTLD_NOW
11501# define LT_DLLAZY_OR_NOW RTLD_NOW
11502# else
11503# ifdef DL_NOW
11504# define LT_DLLAZY_OR_NOW DL_NOW
11505# else
11506# define LT_DLLAZY_OR_NOW 0
11507# endif
11508# endif
11509# endif
11510# endif
11511#endif
11512
d7040cdb
SE
11513void fnord() { int i=42;}
11514int main ()
11515{
11516 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11517 int status = $lt_dlunknown;
11518
11519 if (self)
11520 {
11521 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11522 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11523 /* dlclose (self); */
11524 }
11525 else
11526 puts (dlerror ());
11527
718a6fd8 11528 return status;
d7040cdb
SE
11529}
11530_LT_EOF
11531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11532 (eval $ac_link) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11536 (./conftest; exit; ) >&5 2>/dev/null
11537 lt_status=$?
11538 case x$lt_status in
11539 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11540 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11541 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11542 esac
11543 else :
11544 # compilation failed
11545 lt_cv_dlopen_self=no
11546 fi
252b5132 11547fi
d7040cdb 11548rm -fr conftest*
20e95c23 11549
d7040cdb
SE
11550
11551fi
11552echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11553echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11554
11555 if test "x$lt_cv_dlopen_self" = xyes; then
11556 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11557 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11558echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11559if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561else
d7040cdb
SE
11562 if test "$cross_compiling" = yes; then :
11563 lt_cv_dlopen_self_static=cross
11564else
11565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11566 lt_status=$lt_dlunknown
11567 cat > conftest.$ac_ext <<_LT_EOF
29670fb9 11568#line 11568 "configure"
d7040cdb
SE
11569#include "confdefs.h"
11570
11571#if HAVE_DLFCN_H
11572#include <dlfcn.h>
11573#endif
11574
11575#include <stdio.h>
11576
11577#ifdef RTLD_GLOBAL
11578# define LT_DLGLOBAL RTLD_GLOBAL
11579#else
11580# ifdef DL_GLOBAL
11581# define LT_DLGLOBAL DL_GLOBAL
11582# else
11583# define LT_DLGLOBAL 0
11584# endif
11585#endif
11586
11587/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11588 find out it does not work in some platform. */
11589#ifndef LT_DLLAZY_OR_NOW
11590# ifdef RTLD_LAZY
11591# define LT_DLLAZY_OR_NOW RTLD_LAZY
11592# else
11593# ifdef DL_LAZY
11594# define LT_DLLAZY_OR_NOW DL_LAZY
11595# else
11596# ifdef RTLD_NOW
11597# define LT_DLLAZY_OR_NOW RTLD_NOW
11598# else
11599# ifdef DL_NOW
11600# define LT_DLLAZY_OR_NOW DL_NOW
11601# else
11602# define LT_DLLAZY_OR_NOW 0
11603# endif
11604# endif
11605# endif
11606# endif
11607#endif
11608
d7040cdb
SE
11609void fnord() { int i=42;}
11610int main ()
11611{
11612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11613 int status = $lt_dlunknown;
11614
11615 if (self)
11616 {
11617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11618 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11619 /* dlclose (self); */
11620 }
11621 else
11622 puts (dlerror ());
11623
718a6fd8 11624 return status;
d7040cdb
SE
11625}
11626_LT_EOF
11627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11628 (eval $ac_link) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11632 (./conftest; exit; ) >&5 2>/dev/null
11633 lt_status=$?
11634 case x$lt_status in
11635 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11636 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11637 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11638 esac
11639 else :
11640 # compilation failed
11641 lt_cv_dlopen_self_static=no
11642 fi
11643fi
11644rm -fr conftest*
11645
11646
11647fi
11648echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11649echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11650 fi
11651
11652 CPPFLAGS="$save_CPPFLAGS"
11653 LDFLAGS="$save_LDFLAGS"
11654 LIBS="$save_LIBS"
11655 ;;
11656 esac
11657
11658 case $lt_cv_dlopen_self in
11659 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11660 *) enable_dlopen_self=unknown ;;
11661 esac
11662
11663 case $lt_cv_dlopen_self_static in
11664 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11665 *) enable_dlopen_self_static=unknown ;;
11666 esac
11667fi
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685striplib=
11686old_striplib=
11687echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11688echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11689if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11690 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11691 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11692 echo "$as_me:$LINENO: result: yes" >&5
11693echo "${ECHO_T}yes" >&6
11694else
11695# FIXME - insert some real tests, host_os isn't really good enough
11696 case $host_os in
11697 darwin*)
11698 if test -n "$STRIP" ; then
11699 striplib="$STRIP -x"
11700 old_striplib="$STRIP -S"
11701 echo "$as_me:$LINENO: result: yes" >&5
11702echo "${ECHO_T}yes" >&6
11703 else
11704 echo "$as_me:$LINENO: result: no" >&5
11705echo "${ECHO_T}no" >&6
11706 fi
20e95c23
DJ
11707 ;;
11708 *)
d7040cdb
SE
11709 echo "$as_me:$LINENO: result: no" >&5
11710echo "${ECHO_T}no" >&6
11711 ;;
11712 esac
11713fi
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726 # Report which library types will actually be built
11727 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11728echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11729 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11730echo "${ECHO_T}$can_build_shared" >&6
11731
11732 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11733echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11734 test "$can_build_shared" = "no" && enable_shared=no
11735
11736 # On AIX, shared libraries and static libraries use the same namespace, and
11737 # are all built from PIC.
11738 case $host_os in
11739 aix3*)
11740 test "$enable_shared" = yes && enable_static=no
11741 if test -n "$RANLIB"; then
11742 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11743 postinstall_cmds='$RANLIB $lib'
11744 fi
11745 ;;
11746
e81819a5 11747 aix[4-9]*)
d7040cdb
SE
11748 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11749 test "$enable_shared" = yes && enable_static=no
11750 fi
20e95c23 11751 ;;
d7040cdb
SE
11752 esac
11753 echo "$as_me:$LINENO: result: $enable_shared" >&5
11754echo "${ECHO_T}$enable_shared" >&6
11755
11756 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11757echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11758 # Make sure either enable_shared or enable_static is yes.
11759 test "$enable_shared" = yes || enable_static=yes
11760 echo "$as_me:$LINENO: result: $enable_static" >&5
11761echo "${ECHO_T}$enable_static" >&6
11762
11763
11764
11765
11766fi
11767ac_ext=c
11768ac_cpp='$CPP $CPPFLAGS'
11769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11771ac_compiler_gnu=$ac_cv_c_compiler_gnu
11772
11773CC="$lt_save_CC"
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787 ac_config_commands="$ac_config_commands libtool"
11788
11789
11790
11791
11792# Only expand once:
11793
11794
11795
11796# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11797if test "${enable_64_bit_bfd+set}" = set; then
11798 enableval="$enable_64_bit_bfd"
11799 case "${enableval}" in
11800 yes) want64=true ;;
11801 no) want64=false ;;
11802 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11803echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11804 { (exit 1); exit 1; }; } ;;
11805esac
11806else
11807 want64=false
504b7d20
NC
11808fi;
11809# Check whether --enable-targets or --disable-targets was given.
d7040cdb
SE
11810if test "${enable_targets+set}" = set; then
11811 enableval="$enable_targets"
11812 case "${enableval}" in
11813 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11814echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11815 { (exit 1); exit 1; }; }
11816 ;;
11817 no) enable_targets= ;;
11818 *) enable_targets=$enableval ;;
11819esac
504b7d20 11820fi;
504b7d20 11821
d7040cdb
SE
11822# Check whether --with-mmap or --without-mmap was given.
11823if test "${with_mmap+set}" = set; then
11824 withval="$with_mmap"
11825 case "${withval}" in
11826 yes) want_mmap=true ;;
11827 no) want_mmap=false ;;
11828 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11829echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11830 { (exit 1); exit 1; }; } ;;
20e95c23 11831esac
252b5132 11832else
d7040cdb
SE
11833 want_mmap=false
11834fi;
11835# Check whether --enable-secureplt or --disable-secureplt was given.
11836if test "${enable_secureplt+set}" = set; then
11837 enableval="$enable_secureplt"
11838 case "${enableval}" in
11839 yes) use_secureplt=true ;;
11840 no) use_secureplt=false ;;
11841 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11842echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11843 { (exit 1); exit 1; }; } ;;
11844esac
252b5132 11845else
d7040cdb
SE
11846 use_secureplt=false
11847fi; if test $use_secureplt = true; then
11848
11849cat >>confdefs.h <<\_ACEOF
11850#define USE_SECUREPLT 1
11851_ACEOF
5464f5a1 11852
252b5132 11853fi
20e95c23 11854
0d4a1476
AS
11855DEBUGDIR=${libdir}/debug
11856
0d4a1476
AS
11857# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11858if test "${with_separate_debug_dir+set}" = set; then
11859 withval="$with_separate_debug_dir"
11860 DEBUGDIR="${withval}"
11861fi;
11862
11863
504b7d20
NC
11864# Check to see if we should allow the generation of
11865# symbols with the ELF standard's STT_COMMON type.
11866# Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11867if test "${enable_elf_stt_common+set}" = set; then
11868 enableval="$enable_elf_stt_common"
11869 case "${enableval}" in
11870 yes) want_elf_stt_common=true ;;
11871 no) want_elf_stt_common=false ;;
11872 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11873echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11874 { (exit 1); exit 1; }; } ;;
11875 esac
11876else
11877 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
11878# test whether the loader supports the STT_COMMON type, but that would
11879# mean that built binaries could not be exported to older systems where
11880# the loader does not support it. So by default we always choose to
11881# disable this feature.
504b7d20 11882 want_elf_stt_common=false
504b7d20
NC
11883fi; if test $want_elf_stt_common = true; then
11884
11885cat >>confdefs.h <<\_ACEOF
11886#define USE_STT_COMMON 1
11887_ACEOF
11888
11889fi
11890
11891
d7040cdb 11892
d7040cdb
SE
11893# Check whether --with-pkgversion or --without-pkgversion was given.
11894if test "${with_pkgversion+set}" = set; then
11895 withval="$with_pkgversion"
11896 case "$withval" in
11897 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11898echo "$as_me: error: package version not specified" >&2;}
11899 { (exit 1); exit 1; }; } ;;
11900 no) PKGVERSION= ;;
11901 *) PKGVERSION="($withval) " ;;
11902 esac
252b5132 11903else
d7040cdb 11904 PKGVERSION="(GNU Binutils) "
252b5132 11905
d7040cdb 11906fi;
20e95c23
DJ
11907
11908
5464f5a1 11909
20e95c23 11910
d7040cdb
SE
11911# Check whether --with-bugurl or --without-bugurl was given.
11912if test "${with_bugurl+set}" = set; then
11913 withval="$with_bugurl"
11914 case "$withval" in
11915 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11916echo "$as_me: error: bug URL not specified" >&2;}
11917 { (exit 1); exit 1; }; } ;;
11918 no) BUGURL=
11919 ;;
11920 *) BUGURL="$withval"
11921 ;;
11922 esac
252b5132 11923else
d7040cdb
SE
11924 BUGURL="http://www.sourceware.org/bugzilla/"
11925
11926fi;
11927 case ${BUGURL} in
11928 "")
11929 REPORT_BUGS_TO=
11930 REPORT_BUGS_TEXI=
20e95c23
DJ
11931 ;;
11932 *)
d7040cdb
SE
11933 REPORT_BUGS_TO="<$BUGURL>"
11934 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 11935 ;;
d7040cdb
SE
11936 esac;
11937
11938
11939
11940
11941
11942GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11943
11944# Check whether --enable-werror or --disable-werror was given.
11945if test "${enable_werror+set}" = set; then
11946 enableval="$enable_werror"
11947 case "${enableval}" in
11948 yes | y) ERROR_ON_WARNING="yes" ;;
11949 no | n) ERROR_ON_WARNING="no" ;;
11950 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11951echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11952 { (exit 1); exit 1; }; } ;;
11953 esac
11954fi;
11955
bb8541b9
L
11956# Enable -Wno-format by default when using gcc on mingw
11957case "${host}" in
11958 *-*-mingw32*)
11959 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11960 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11961 fi
11962 ;;
11963 *) ;;
11964esac
11965
d7040cdb
SE
11966# Enable -Werror by default when using gcc
11967if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11968 ERROR_ON_WARNING=yes
11969fi
11970
11971NO_WERROR=
11972if test "${ERROR_ON_WARNING}" = yes ; then
11973 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11974 NO_WERROR="-Wno-error"
11975fi
11976
11977if test "${GCC}" = yes ; then
11978 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11979fi
11980
11981# Check whether --enable-build-warnings or --disable-build-warnings was given.
11982if test "${enable_build_warnings+set}" = set; then
11983 enableval="$enable_build_warnings"
11984 case "${enableval}" in
11985 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11986 no) if test "${GCC}" = yes ; then
11987 WARN_CFLAGS="-w"
11988 fi;;
11989 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11990 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11991 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11992 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11993 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 11994esac
d7040cdb
SE
11995fi;
11996
11997if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11998 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 11999fi
d7040cdb
SE
12000
12001
12002
12003
12004
12005 ac_config_headers="$ac_config_headers config.h:config.in"
12006
12007
12008if test -z "$target" ; then
12009 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
12010echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
12011 { (exit 1); exit 1; }; }
20e95c23
DJ
12012fi
12013
d7040cdb
SE
12014echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12015echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12016 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12017if test "${enable_maintainer_mode+set}" = set; then
12018 enableval="$enable_maintainer_mode"
12019 USE_MAINTAINER_MODE=$enableval
12020else
12021 USE_MAINTAINER_MODE=no
12022fi;
12023 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12024echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
12025
12026
d7040cdb
SE
12027if test $USE_MAINTAINER_MODE = yes; then
12028 MAINTAINER_MODE_TRUE=
12029 MAINTAINER_MODE_FALSE='#'
12030else
12031 MAINTAINER_MODE_TRUE='#'
12032 MAINTAINER_MODE_FALSE=
6be7c12c 12033fi
5464f5a1 12034
d7040cdb
SE
12035 MAINT=$MAINTAINER_MODE_TRUE
12036
12037
12038
12039
12040if false; then
12041 GENINSRC_NEVER_TRUE=
12042 GENINSRC_NEVER_FALSE='#'
20e95c23 12043else
d7040cdb
SE
12044 GENINSRC_NEVER_TRUE='#'
12045 GENINSRC_NEVER_FALSE=
5464f5a1 12046fi
5464f5a1 12047
d7040cdb
SE
12048 case ${build_alias} in
12049 "") build_noncanonical=${build} ;;
12050 *) build_noncanonical=${build_alias} ;;
20e95c23 12051esac
d7040cdb
SE
12052
12053 case ${host_alias} in
12054 "") host_noncanonical=${build_noncanonical} ;;
12055 *) host_noncanonical=${host_alias} ;;
12056esac
12057
12058 case ${target_alias} in
12059 "") target_noncanonical=${host_noncanonical} ;;
12060 *) target_noncanonical=${target_alias} ;;
12061esac
12062
12063echo "$as_me:$LINENO: checking whether to install libbfd" >&5
12064echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
12065 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
12066if test "${enable_install_libbfd+set}" = set; then
12067 enableval="$enable_install_libbfd"
12068 install_libbfd_p=$enableval
252b5132 12069else
d7040cdb
SE
12070 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12071 install_libbfd_p=yes
12072 else
12073 install_libbfd_p=no
12074 fi
12075fi;
12076 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
12077echo "${ECHO_T}$install_libbfd_p" >&6
12078
12079
12080if test $install_libbfd_p = yes; then
12081 INSTALL_LIBBFD_TRUE=
12082 INSTALL_LIBBFD_FALSE='#'
12083else
12084 INSTALL_LIBBFD_TRUE='#'
12085 INSTALL_LIBBFD_FALSE=
5464f5a1 12086fi
5464f5a1 12087
d7040cdb 12088 # Need _noncanonical variables for this.
5464f5a1 12089
5464f5a1 12090
d7040cdb
SE
12091
12092
12093 # libbfd.a is a host library containing target dependent code
12094 bfdlibdir='$(libdir)'
12095 bfdincludedir='$(includedir)'
12096 if test "${host}" != "${target}"; then
12097 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12098 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 12099 fi
6be7c12c 12100
5464f5a1 12101
5464f5a1
NN
12102
12103
5464f5a1 12104
ac48eca1 12105
d7040cdb
SE
12106host64=false
12107target64=false
12108bfd_default_target_size=32
252b5132 12109
d7040cdb 12110# host stuff:
20e95c23 12111
8cc9115f 12112ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id"
d7040cdb
SE
12113# If we haven't got the data from the intl directory,
12114# assume NLS is disabled.
12115USE_NLS=no
12116LIBINTL=
12117LIBINTL_DEP=
12118INCINTL=
12119XGETTEXT=
12120GMSGFMT=
12121POSUB=
12122
12123if test -f ../intl/config.intl; then
12124 . ../intl/config.intl
252b5132 12125fi
d7040cdb
SE
12126echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12127echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12128if test x"$USE_NLS" != xyes; then
12129 echo "$as_me:$LINENO: result: no" >&5
12130echo "${ECHO_T}no" >&6
12131else
12132 echo "$as_me:$LINENO: result: yes" >&5
12133echo "${ECHO_T}yes" >&6
5464f5a1 12134
d7040cdb
SE
12135cat >>confdefs.h <<\_ACEOF
12136#define ENABLE_NLS 1
12137_ACEOF
252b5132 12138
6be7c12c 12139
d7040cdb
SE
12140 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12141echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12142 # Look for .po and .gmo files in the source directory.
12143 CATALOGS=
12144 XLINGUAS=
12145 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12146 # If there aren't any .gmo files the shell will give us the
12147 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12148 # weeded out.
12149 case "$cat" in *\**)
12150 continue;;
12151 esac
12152 # The quadruple backslash is collapsed to a double backslash
12153 # by the backticks, then collapsed again by the double quotes,
12154 # leaving us with one backslash in the sed expression (right
12155 # before the dot that mustn't act as a wildcard).
12156 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12157 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12158 # The user is allowed to set LINGUAS to a list of languages to
12159 # install catalogs for. If it's empty that means "all of them."
12160 if test "x$LINGUAS" = x; then
12161 CATALOGS="$CATALOGS $cat"
12162 XLINGUAS="$XLINGUAS $lang"
12163 else
12164 case "$LINGUAS" in *$lang*)
12165 CATALOGS="$CATALOGS $cat"
12166 XLINGUAS="$XLINGUAS $lang"
12167 ;;
12168 esac
12169 fi
12170 done
12171 LINGUAS="$XLINGUAS"
12172 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12173echo "${ECHO_T}$LINGUAS" >&6
12174
252b5132 12175
d7040cdb 12176 DATADIRNAME=share
252b5132 12177
d7040cdb 12178 INSTOBJEXT=.mo
5464f5a1 12179
d7040cdb 12180 GENCAT=gencat
20e95c23 12181
d7040cdb 12182 CATOBJEXT=.gmo
5464f5a1 12183
20e95c23 12184fi
5464f5a1 12185
d7040cdb
SE
12186 MKINSTALLDIRS=
12187 if test -n "$ac_aux_dir"; then
12188 case "$ac_aux_dir" in
12189 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12190 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12191 esac
12192 fi
12193 if test -z "$MKINSTALLDIRS"; then
12194 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 12195 fi
5464f5a1 12196
5464f5a1 12197
d7040cdb
SE
12198
12199 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12200echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12201 # Check whether --enable-nls or --disable-nls was given.
12202if test "${enable_nls+set}" = set; then
12203 enableval="$enable_nls"
12204 USE_NLS=$enableval
252b5132 12205else
d7040cdb
SE
12206 USE_NLS=yes
12207fi;
12208 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12209echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 12210
252b5132 12211
5464f5a1 12212
252b5132 12213
d7040cdb
SE
12214
12215
12216# Prepare PATH_SEPARATOR.
12217# The user is always right.
12218if test "${PATH_SEPARATOR+set}" != set; then
12219 echo "#! /bin/sh" >conf$$.sh
12220 echo "exit 0" >>conf$$.sh
12221 chmod +x conf$$.sh
12222 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12223 PATH_SEPARATOR=';'
20e95c23 12224 else
d7040cdb 12225 PATH_SEPARATOR=:
20e95c23 12226 fi
d7040cdb
SE
12227 rm -f conf$$.sh
12228fi
12229
12230# Find out how to test for executable files. Don't use a zero-byte file,
12231# as systems may use methods other than mode bits to determine executability.
12232cat >conf$$.file <<_ASEOF
12233#! /bin/sh
12234exit 0
12235_ASEOF
12236chmod +x conf$$.file
12237if test -x conf$$.file >/dev/null 2>&1; then
12238 ac_executable_p="test -x"
20e95c23 12239else
d7040cdb 12240 ac_executable_p="test -f"
20e95c23 12241fi
d7040cdb 12242rm -f conf$$.file
5464f5a1 12243
d7040cdb
SE
12244# Extract the first word of "msgfmt", so it can be a program name with args.
12245set dummy msgfmt; ac_word=$2
12246echo "$as_me:$LINENO: checking for $ac_word" >&5
12247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12248if test "${ac_cv_path_MSGFMT+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250else
12251 case "$MSGFMT" in
12252 [\\/]* | ?:[\\/]*)
12253 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12254 ;;
12255 *)
12256 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12257 for ac_dir in $PATH; do
12258 IFS="$ac_save_IFS"
12259 test -z "$ac_dir" && ac_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12262 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12263 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12264 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12265 break 2
12266 fi
12267 fi
12268 done
12269 done
12270 IFS="$ac_save_IFS"
12271 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12272 ;;
12273esac
5464f5a1 12274fi
d7040cdb
SE
12275MSGFMT="$ac_cv_path_MSGFMT"
12276if test "$MSGFMT" != ":"; then
12277 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12278echo "${ECHO_T}$MSGFMT" >&6
20e95c23 12279else
d7040cdb
SE
12280 echo "$as_me:$LINENO: result: no" >&5
12281echo "${ECHO_T}no" >&6
252b5132 12282fi
d7040cdb
SE
12283
12284 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12285set dummy gmsgfmt; ac_word=$2
12286echo "$as_me:$LINENO: checking for $ac_word" >&5
12287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12288if test "${ac_cv_path_GMSGFMT+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12290else
d7040cdb
SE
12291 case $GMSGFMT in
12292 [\\/]* | ?:[\\/]*)
12293 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12294 ;;
12295 *)
12296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12297for as_dir in $PATH
12298do
12299 IFS=$as_save_IFS
12300 test -z "$as_dir" && as_dir=.
12301 for ac_exec_ext in '' $ac_executable_extensions; do
12302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12303 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12305 break 2
12306 fi
12307done
12308done
5464f5a1 12309
d7040cdb
SE
12310 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12311 ;;
12312esac
252b5132 12313fi
d7040cdb 12314GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 12315
d7040cdb
SE
12316if test -n "$GMSGFMT"; then
12317 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12318echo "${ECHO_T}$GMSGFMT" >&6
252b5132 12319else
d7040cdb
SE
12320 echo "$as_me:$LINENO: result: no" >&5
12321echo "${ECHO_T}no" >&6
252b5132
RH
12322fi
12323
20e95c23
DJ
12324
12325
d7040cdb
SE
12326# Prepare PATH_SEPARATOR.
12327# The user is always right.
12328if test "${PATH_SEPARATOR+set}" != set; then
12329 echo "#! /bin/sh" >conf$$.sh
12330 echo "exit 0" >>conf$$.sh
12331 chmod +x conf$$.sh
12332 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12333 PATH_SEPARATOR=';'
12334 else
12335 PATH_SEPARATOR=:
12336 fi
12337 rm -f conf$$.sh
252b5132 12338fi
20e95c23 12339
d7040cdb
SE
12340# Find out how to test for executable files. Don't use a zero-byte file,
12341# as systems may use methods other than mode bits to determine executability.
12342cat >conf$$.file <<_ASEOF
12343#! /bin/sh
12344exit 0
12345_ASEOF
12346chmod +x conf$$.file
12347if test -x conf$$.file >/dev/null 2>&1; then
12348 ac_executable_p="test -x"
12349else
12350 ac_executable_p="test -f"
12351fi
12352rm -f conf$$.file
252b5132 12353
d7040cdb
SE
12354# Extract the first word of "xgettext", so it can be a program name with args.
12355set dummy xgettext; ac_word=$2
12356echo "$as_me:$LINENO: checking for $ac_word" >&5
12357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12358if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360else
d7040cdb
SE
12361 case "$XGETTEXT" in
12362 [\\/]* | ?:[\\/]*)
12363 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12364 ;;
12365 *)
12366 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12367 for ac_dir in $PATH; do
12368 IFS="$ac_save_IFS"
12369 test -z "$ac_dir" && ac_dir=.
12370 for ac_exec_ext in '' $ac_executable_extensions; do
12371 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12372 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12373 (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
12374 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12375 break 2
12376 fi
12377 fi
12378 done
12379 done
12380 IFS="$ac_save_IFS"
12381 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12382 ;;
12383esac
12384fi
12385XGETTEXT="$ac_cv_path_XGETTEXT"
12386if test "$XGETTEXT" != ":"; then
12387 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12388echo "${ECHO_T}$XGETTEXT" >&6
252b5132 12389else
d7040cdb
SE
12390 echo "$as_me:$LINENO: result: no" >&5
12391echo "${ECHO_T}no" >&6
252b5132
RH
12392fi
12393
d7040cdb 12394 rm -f messages.po
5464f5a1 12395
252b5132 12396
d7040cdb
SE
12397# Prepare PATH_SEPARATOR.
12398# The user is always right.
12399if test "${PATH_SEPARATOR+set}" != set; then
12400 echo "#! /bin/sh" >conf$$.sh
12401 echo "exit 0" >>conf$$.sh
12402 chmod +x conf$$.sh
12403 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12404 PATH_SEPARATOR=';'
12405 else
12406 PATH_SEPARATOR=:
12407 fi
12408 rm -f conf$$.sh
252b5132
RH
12409fi
12410
d7040cdb
SE
12411# Find out how to test for executable files. Don't use a zero-byte file,
12412# as systems may use methods other than mode bits to determine executability.
12413cat >conf$$.file <<_ASEOF
12414#! /bin/sh
12415exit 0
12416_ASEOF
12417chmod +x conf$$.file
12418if test -x conf$$.file >/dev/null 2>&1; then
12419 ac_executable_p="test -x"
5464f5a1 12420else
d7040cdb 12421 ac_executable_p="test -f"
20e95c23 12422fi
d7040cdb 12423rm -f conf$$.file
5464f5a1 12424
d7040cdb
SE
12425# Extract the first word of "msgmerge", so it can be a program name with args.
12426set dummy msgmerge; ac_word=$2
12427echo "$as_me:$LINENO: checking for $ac_word" >&5
12428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12429if test "${ac_cv_path_MSGMERGE+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12431else
12432 case "$MSGMERGE" in
12433 [\\/]* | ?:[\\/]*)
12434 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12435 ;;
12436 *)
12437 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12438 for ac_dir in $PATH; do
12439 IFS="$ac_save_IFS"
12440 test -z "$ac_dir" && ac_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12443 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12444 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12445 break 2
12446 fi
12447 fi
12448 done
12449 done
12450 IFS="$ac_save_IFS"
12451 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12452 ;;
12453esac
5464f5a1 12454fi
d7040cdb
SE
12455MSGMERGE="$ac_cv_path_MSGMERGE"
12456if test "$MSGMERGE" != ":"; then
12457 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12458echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 12459else
d7040cdb
SE
12460 echo "$as_me:$LINENO: result: no" >&5
12461echo "${ECHO_T}no" >&6
12462fi
20e95c23 12463
5464f5a1 12464
d7040cdb
SE
12465 if test "$GMSGFMT" != ":"; then
12466 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12467 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12468 : ;
12469 else
12470 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12471 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12472echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12473 GMSGFMT=":"
12474 fi
12475 fi
252b5132 12476
d7040cdb
SE
12477 if test "$XGETTEXT" != ":"; then
12478 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12479 (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
12480 : ;
12481 else
12482 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12483echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12484 XGETTEXT=":"
12485 fi
12486 rm -f messages.po
12487 fi
6be7c12c 12488
d7040cdb 12489 ac_config_commands="$ac_config_commands default-1"
5464f5a1 12490
252b5132 12491
5464f5a1 12492
d7040cdb
SE
12493# Permit host specific settings.
12494. ${srcdir}/configure.host
12495
12496
12497# Find a good install program. We prefer a C program (faster),
12498# so one script is as good as another. But avoid the broken or
12499# incompatible versions:
12500# SysV /etc/install, /usr/sbin/install
12501# SunOS /usr/etc/install
12502# IRIX /sbin/install
12503# AIX /bin/install
12504# AmigaOS /C/install, which installs bootblocks on floppy discs
12505# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12506# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12507# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12508# OS/2's system install, which has a completely different semantic
12509# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 12510# Reject install programs that cannot install multiple files.
d7040cdb
SE
12511echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12512echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12513if test -z "$INSTALL"; then
12514if test "${ac_cv_path_install+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12516else
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518for as_dir in $PATH
12519do
12520 IFS=$as_save_IFS
12521 test -z "$as_dir" && as_dir=.
12522 # Account for people who put trailing slashes in PATH elements.
12523case $as_dir/ in
12524 ./ | .// | /cC/* | \
12525 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12526 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12527 /usr/ucb/* ) ;;
12528 *)
12529 # OSF1 and SCO ODT 3.0 have their own names for install.
12530 # Don't use installbsd from OSF since it installs stuff as root
12531 # by default.
12532 for ac_prog in ginstall scoinst install; do
12533 for ac_exec_ext in '' $ac_executable_extensions; do
12534 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12535 if test $ac_prog = install &&
12536 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12537 # AIX install. It has an incompatible calling convention.
12538 :
12539 elif test $ac_prog = install &&
12540 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12541 # program-specific install script used by HP pwplus--don't use.
12542 :
12543 else
58c85be7
RW
12544 rm -rf conftest.one conftest.two conftest.dir
12545 echo one > conftest.one
12546 echo two > conftest.two
12547 mkdir conftest.dir
12548 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12549 test -s conftest.one && test -s conftest.two &&
12550 test -s conftest.dir/conftest.one &&
12551 test -s conftest.dir/conftest.two
12552 then
12553 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12554 break 3
12555 fi
d7040cdb
SE
12556 fi
12557 fi
12558 done
12559 done
12560 ;;
12561esac
12562done
12563
58c85be7 12564rm -rf conftest.one conftest.two conftest.dir
252b5132 12565
d7040cdb
SE
12566fi
12567 if test "${ac_cv_path_install+set}" = set; then
12568 INSTALL=$ac_cv_path_install
12569 else
58c85be7
RW
12570 # As a last resort, use the slow shell script. Don't cache a
12571 # value for INSTALL within a source directory, because that will
d7040cdb 12572 # break other packages using the cache if that directory is
58c85be7 12573 # removed, or if the value is a relative name.
d7040cdb
SE
12574 INSTALL=$ac_install_sh
12575 fi
12576fi
12577echo "$as_me:$LINENO: result: $INSTALL" >&5
12578echo "${ECHO_T}$INSTALL" >&6
5464f5a1 12579
d7040cdb
SE
12580# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12581# It thinks the first close brace ends the variable substitution.
12582test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 12583
d7040cdb 12584test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 12585
d7040cdb 12586test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 12587
252b5132 12588
d7040cdb 12589BFD_HOST_64BIT_LONG=0
d2df793a 12590BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
12591BFD_HOST_64_BIT_DEFINED=0
12592BFD_HOST_64_BIT=
12593BFD_HOST_U_64_BIT=
d2df793a 12594BFD_HOSTPTR_T="unsigned long"
6be7c12c 12595
d7040cdb
SE
12596echo "$as_me:$LINENO: checking for long long" >&5
12597echo $ECHO_N "checking for long long... $ECHO_C" >&6
2ba49b59 12598if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 12599 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 12600else
5464f5a1
NN
12601 cat >conftest.$ac_ext <<_ACEOF
12602/* confdefs.h. */
12603_ACEOF
12604cat confdefs.h >>conftest.$ac_ext
12605cat >>conftest.$ac_ext <<_ACEOF
12606/* end confdefs.h. */
2ba49b59 12607$ac_includes_default
5464f5a1
NN
12608int
12609main ()
12610{
2ba49b59
KC
12611if ((long long *) 0)
12612 return 0;
12613if (sizeof (long long))
12614 return 0;
5464f5a1
NN
12615 ;
12616 return 0;
12617}
12618_ACEOF
12619rm -f conftest.$ac_objext
12620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>conftest.er1
12622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } &&
7357c5b6
AM
12628 { ac_try='test -z "$ac_c_werror_flag"
12629 || test ! -s conftest.err'
5464f5a1
NN
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try='test -s conftest.$ac_objext'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12638 ac_status=$?
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; }; then
2ba49b59 12641 ac_cv_type_long_long=yes
6726e1ea 12642else
5464f5a1
NN
12643 echo "$as_me: failed program was:" >&5
12644sed 's/^/| /' conftest.$ac_ext >&5
12645
2ba49b59 12646ac_cv_type_long_long=no
6726e1ea 12647fi
5464f5a1 12648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 12649fi
2ba49b59
KC
12650echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12651echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 12652
2ba49b59
KC
12653echo "$as_me:$LINENO: checking size of long long" >&5
12654echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12655if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 12656 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 12657else
2ba49b59
KC
12658 if test "$ac_cv_type_long_long" = yes; then
12659 # The cast to unsigned long works around a bug in the HP C Compiler
12660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12662 # This bug is HP SR number 8606223364.
12663 if test "$cross_compiling" = yes; then
12664 # Depending upon the size, compute the lo and hi bounds.
12665cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12666/* confdefs.h. */
12667_ACEOF
12668cat confdefs.h >>conftest.$ac_ext
12669cat >>conftest.$ac_ext <<_ACEOF
12670/* end confdefs.h. */
2ba49b59
KC
12671$ac_includes_default
12672int
12673main ()
12674{
12675static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12676test_array [0] = 0
6726e1ea 12677
2ba49b59
KC
12678 ;
12679 return 0;
12680}
12681_ACEOF
12682rm -f conftest.$ac_objext
12683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684 (eval $ac_compile) 2>conftest.er1
12685 ac_status=$?
12686 grep -v '^ *+' conftest.er1 >conftest.err
12687 rm -f conftest.er1
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } &&
7357c5b6
AM
12691 { ac_try='test -z "$ac_c_werror_flag"
12692 || test ! -s conftest.err'
2ba49b59
KC
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest.$ac_objext'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; }; then
12704 ac_lo=0 ac_mid=0
12705 while :; do
12706 cat >conftest.$ac_ext <<_ACEOF
12707/* confdefs.h. */
12708_ACEOF
12709cat confdefs.h >>conftest.$ac_ext
12710cat >>conftest.$ac_ext <<_ACEOF
12711/* end confdefs.h. */
12712$ac_includes_default
5464f5a1
NN
12713int
12714main ()
12715{
2ba49b59
KC
12716static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12717test_array [0] = 0
12718
5464f5a1
NN
12719 ;
12720 return 0;
12721}
12722_ACEOF
12723rm -f conftest.$ac_objext
12724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12725 (eval $ac_compile) 2>conftest.er1
12726 ac_status=$?
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
7357c5b6
AM
12732 { ac_try='test -z "$ac_c_werror_flag"
12733 || test ! -s conftest.err'
5464f5a1
NN
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } &&
12739 { ac_try='test -s conftest.$ac_objext'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
2ba49b59 12745 ac_hi=$ac_mid; break
6726e1ea 12746else
5464f5a1
NN
12747 echo "$as_me: failed program was:" >&5
12748sed 's/^/| /' conftest.$ac_ext >&5
12749
2ba49b59
KC
12750ac_lo=`expr $ac_mid + 1`
12751 if test $ac_lo -le $ac_mid; then
12752 ac_lo= ac_hi=
12753 break
12754 fi
12755 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 12756fi
5464f5a1 12757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 12758 done
252b5132 12759else
2ba49b59
KC
12760 echo "$as_me: failed program was:" >&5
12761sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 12762
5464f5a1
NN
12763cat >conftest.$ac_ext <<_ACEOF
12764/* confdefs.h. */
12765_ACEOF
12766cat confdefs.h >>conftest.$ac_ext
12767cat >>conftest.$ac_ext <<_ACEOF
12768/* end confdefs.h. */
12769$ac_includes_default
2ba49b59
KC
12770int
12771main ()
12772{
12773static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12774test_array [0] = 0
12775
12776 ;
12777 return 0;
12778}
5464f5a1
NN
12779_ACEOF
12780rm -f conftest.$ac_objext
12781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12782 (eval $ac_compile) 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
7357c5b6
AM
12789 { ac_try='test -z "$ac_c_werror_flag"
12790 || test ! -s conftest.err'
5464f5a1
NN
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest.$ac_objext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
2ba49b59
KC
12802 ac_hi=-1 ac_mid=-1
12803 while :; do
12804 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12805/* confdefs.h. */
12806_ACEOF
12807cat confdefs.h >>conftest.$ac_ext
12808cat >>conftest.$ac_ext <<_ACEOF
12809/* end confdefs.h. */
2ba49b59
KC
12810$ac_includes_default
12811int
12812main ()
12813{
12814static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12815test_array [0] = 0
12816
12817 ;
12818 return 0;
12819}
5464f5a1 12820_ACEOF
2ba49b59
KC
12821rm -f conftest.$ac_objext
12822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12829 (exit $ac_status); } &&
7357c5b6
AM
12830 { ac_try='test -z "$ac_c_werror_flag"
12831 || test ! -s conftest.err'
2ba49b59
KC
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; } &&
12837 { ac_try='test -s conftest.$ac_objext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 ac_lo=$ac_mid; break
252b5132 12844else
2ba49b59
KC
12845 echo "$as_me: failed program was:" >&5
12846sed 's/^/| /' conftest.$ac_ext >&5
12847
12848ac_hi=`expr '(' $ac_mid ')' - 1`
12849 if test $ac_mid -le $ac_hi; then
12850 ac_lo= ac_hi=
12851 break
12852 fi
12853 ac_mid=`expr 2 '*' $ac_mid`
252b5132 12854fi
2ba49b59
KC
12855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12856 done
5464f5a1
NN
12857else
12858 echo "$as_me: failed program was:" >&5
12859sed 's/^/| /' conftest.$ac_ext >&5
12860
2ba49b59 12861ac_lo= ac_hi=
252b5132 12862fi
2ba49b59
KC
12863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12864fi
12865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12866# Binary search between lo and hi bounds.
12867while test "x$ac_lo" != "x$ac_hi"; do
12868 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12869 cat >conftest.$ac_ext <<_ACEOF
12870/* confdefs.h. */
12871_ACEOF
12872cat confdefs.h >>conftest.$ac_ext
12873cat >>conftest.$ac_ext <<_ACEOF
12874/* end confdefs.h. */
12875$ac_includes_default
12876int
12877main ()
12878{
12879static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12880test_array [0] = 0
5464f5a1 12881
2ba49b59
KC
12882 ;
12883 return 0;
12884}
5464f5a1
NN
12885_ACEOF
12886rm -f conftest.$ac_objext
12887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12888 (eval $ac_compile) 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
7357c5b6
AM
12895 { ac_try='test -z "$ac_c_werror_flag"
12896 || test ! -s conftest.err'
5464f5a1
NN
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; } &&
12902 { ac_try='test -s conftest.$ac_objext'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; }; then
2ba49b59 12908 ac_hi=$ac_mid
5464f5a1
NN
12909else
12910 echo "$as_me: failed program was:" >&5
12911sed 's/^/| /' conftest.$ac_ext >&5
12912
2ba49b59 12913ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
12914fi
12915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
12916done
12917case $ac_lo in
12918?*) ac_cv_sizeof_long_long=$ac_lo;;
7357c5b6
AM
12919'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12920echo "$as_me: error: in \`$ac_pwd':" >&2;}
12921{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
2ba49b59
KC
12922See \`config.log' for more details." >&5
12923echo "$as_me: error: cannot compute sizeof (long long), 77
12924See \`config.log' for more details." >&2;}
7357c5b6 12925 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
12926esac
12927else
12928 if test "$cross_compiling" = yes; then
7357c5b6
AM
12929 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12930echo "$as_me: error: in \`$ac_pwd':" >&2;}
12931{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12932See \`config.log' for more details." >&5
12933echo "$as_me: error: cannot run test program while cross compiling
12934See \`config.log' for more details." >&2;}
12935 { (exit 1); exit 1; }; }; }
2ba49b59
KC
12936else
12937 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12938/* confdefs.h. */
12939_ACEOF
12940cat confdefs.h >>conftest.$ac_ext
12941cat >>conftest.$ac_ext <<_ACEOF
12942/* end confdefs.h. */
2ba49b59
KC
12943$ac_includes_default
12944long longval () { return (long) (sizeof (long long)); }
12945unsigned long ulongval () { return (long) (sizeof (long long)); }
12946#include <stdio.h>
12947#include <stdlib.h>
12948int
12949main ()
12950{
12951
12952 FILE *f = fopen ("conftest.val", "w");
12953 if (! f)
12954 exit (1);
12955 if (((long) (sizeof (long long))) < 0)
12956 {
12957 long i = longval ();
12958 if (i != ((long) (sizeof (long long))))
12959 exit (1);
12960 fprintf (f, "%ld\n", i);
12961 }
12962 else
12963 {
12964 unsigned long i = ulongval ();
12965 if (i != ((long) (sizeof (long long))))
12966 exit (1);
12967 fprintf (f, "%lu\n", i);
12968 }
12969 exit (ferror (f) || fclose (f) != 0);
12970
12971 ;
12972 return 0;
12973}
5464f5a1 12974_ACEOF
2ba49b59
KC
12975rm -f conftest$ac_exeext
12976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12977 (eval $ac_link) 2>&5
5464f5a1 12978 ac_status=$?
5464f5a1 12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
12980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
12986 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 12987else
2ba49b59
KC
12988 echo "$as_me: program exited with status $ac_status" >&5
12989echo "$as_me: failed program was:" >&5
5464f5a1
NN
12990sed 's/^/| /' conftest.$ac_ext >&5
12991
2ba49b59 12992( exit $ac_status )
7357c5b6
AM
12993{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12994echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
12995{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12996See \`config.log' for more details." >&5
12997echo "$as_me: error: cannot compute sizeof (long long), 77
12998See \`config.log' for more details." >&2;}
7357c5b6 12999 { (exit 1); exit 1; }; }; }
252b5132 13000fi
2ba49b59
KC
13001rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13002fi
13003fi
13004rm -f conftest.val
6be7c12c 13005else
2ba49b59 13006 ac_cv_sizeof_long_long=0
5464f5a1 13007fi
5464f5a1 13008fi
2ba49b59
KC
13009echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13010echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13011cat >>confdefs.h <<_ACEOF
13012#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
13013_ACEOF
13014
5464f5a1 13015
d2df793a
NC
13016echo "$as_me:$LINENO: checking for void *" >&5
13017echo $ECHO_N "checking for void *... $ECHO_C" >&6
13018if test "${ac_cv_type_void_p+set}" = set; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13020else
13021 cat >conftest.$ac_ext <<_ACEOF
13022/* confdefs.h. */
13023_ACEOF
13024cat confdefs.h >>conftest.$ac_ext
13025cat >>conftest.$ac_ext <<_ACEOF
13026/* end confdefs.h. */
13027$ac_includes_default
13028int
13029main ()
13030{
13031if ((void * *) 0)
13032 return 0;
13033if (sizeof (void *))
13034 return 0;
13035 ;
13036 return 0;
13037}
13038_ACEOF
13039rm -f conftest.$ac_objext
13040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041 (eval $ac_compile) 2>conftest.er1
13042 ac_status=$?
13043 grep -v '^ *+' conftest.er1 >conftest.err
13044 rm -f conftest.er1
13045 cat conftest.err >&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
7357c5b6
AM
13048 { ac_try='test -z "$ac_c_werror_flag"
13049 || test ! -s conftest.err'
d2df793a
NC
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; } &&
13055 { ac_try='test -s conftest.$ac_objext'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; }; then
13061 ac_cv_type_void_p=yes
13062else
13063 echo "$as_me: failed program was:" >&5
13064sed 's/^/| /' conftest.$ac_ext >&5
13065
13066ac_cv_type_void_p=no
13067fi
13068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13069fi
13070echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13071echo "${ECHO_T}$ac_cv_type_void_p" >&6
13072
13073echo "$as_me:$LINENO: checking size of void *" >&5
13074echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13075if test "${ac_cv_sizeof_void_p+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13077else
13078 if test "$ac_cv_type_void_p" = yes; then
13079 # The cast to unsigned long works around a bug in the HP C Compiler
13080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13082 # This bug is HP SR number 8606223364.
13083 if test "$cross_compiling" = yes; then
13084 # Depending upon the size, compute the lo and hi bounds.
13085cat >conftest.$ac_ext <<_ACEOF
13086/* confdefs.h. */
13087_ACEOF
13088cat confdefs.h >>conftest.$ac_ext
13089cat >>conftest.$ac_ext <<_ACEOF
13090/* end confdefs.h. */
13091$ac_includes_default
13092int
13093main ()
13094{
13095static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13096test_array [0] = 0
13097
13098 ;
13099 return 0;
13100}
13101_ACEOF
13102rm -f conftest.$ac_objext
13103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13104 (eval $ac_compile) 2>conftest.er1
13105 ac_status=$?
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
7357c5b6
AM
13111 { ac_try='test -z "$ac_c_werror_flag"
13112 || test ! -s conftest.err'
d2df793a
NC
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest.$ac_objext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 ac_lo=0 ac_mid=0
13125 while :; do
13126 cat >conftest.$ac_ext <<_ACEOF
13127/* confdefs.h. */
13128_ACEOF
13129cat confdefs.h >>conftest.$ac_ext
13130cat >>conftest.$ac_ext <<_ACEOF
13131/* end confdefs.h. */
13132$ac_includes_default
13133int
13134main ()
13135{
13136static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13137test_array [0] = 0
13138
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143rm -f conftest.$ac_objext
13144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
7357c5b6
AM
13152 { ac_try='test -z "$ac_c_werror_flag"
13153 || test ! -s conftest.err'
d2df793a
NC
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; } &&
13159 { ac_try='test -s conftest.$ac_objext'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 ac_hi=$ac_mid; break
13166else
13167 echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
13170ac_lo=`expr $ac_mid + 1`
13171 if test $ac_lo -le $ac_mid; then
13172 ac_lo= ac_hi=
13173 break
13174 fi
13175 ac_mid=`expr 2 '*' $ac_mid + 1`
13176fi
13177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13178 done
13179else
13180 echo "$as_me: failed program was:" >&5
13181sed 's/^/| /' conftest.$ac_ext >&5
13182
13183cat >conftest.$ac_ext <<_ACEOF
13184/* confdefs.h. */
13185_ACEOF
13186cat confdefs.h >>conftest.$ac_ext
13187cat >>conftest.$ac_ext <<_ACEOF
13188/* end confdefs.h. */
13189$ac_includes_default
13190int
13191main ()
13192{
13193static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13194test_array [0] = 0
13195
13196 ;
13197 return 0;
13198}
13199_ACEOF
13200rm -f conftest.$ac_objext
13201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13202 (eval $ac_compile) 2>conftest.er1
13203 ac_status=$?
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
7357c5b6
AM
13209 { ac_try='test -z "$ac_c_werror_flag"
13210 || test ! -s conftest.err'
d2df793a
NC
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; } &&
13216 { ac_try='test -s conftest.$ac_objext'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 ac_hi=-1 ac_mid=-1
13223 while :; do
13224 cat >conftest.$ac_ext <<_ACEOF
13225/* confdefs.h. */
13226_ACEOF
13227cat confdefs.h >>conftest.$ac_ext
13228cat >>conftest.$ac_ext <<_ACEOF
13229/* end confdefs.h. */
13230$ac_includes_default
13231int
13232main ()
13233{
13234static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13235test_array [0] = 0
13236
13237 ;
13238 return 0;
13239}
13240_ACEOF
13241rm -f conftest.$ac_objext
13242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243 (eval $ac_compile) 2>conftest.er1
13244 ac_status=$?
13245 grep -v '^ *+' conftest.er1 >conftest.err
13246 rm -f conftest.er1
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
7357c5b6
AM
13250 { ac_try='test -z "$ac_c_werror_flag"
13251 || test ! -s conftest.err'
d2df793a
NC
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest.$ac_objext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 ac_lo=$ac_mid; break
13264else
13265 echo "$as_me: failed program was:" >&5
13266sed 's/^/| /' conftest.$ac_ext >&5
13267
13268ac_hi=`expr '(' $ac_mid ')' - 1`
13269 if test $ac_mid -le $ac_hi; then
13270 ac_lo= ac_hi=
13271 break
13272 fi
13273 ac_mid=`expr 2 '*' $ac_mid`
13274fi
13275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13276 done
13277else
13278 echo "$as_me: failed program was:" >&5
13279sed 's/^/| /' conftest.$ac_ext >&5
13280
13281ac_lo= ac_hi=
13282fi
13283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13284fi
13285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13286# Binary search between lo and hi bounds.
13287while test "x$ac_lo" != "x$ac_hi"; do
13288 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13289 cat >conftest.$ac_ext <<_ACEOF
13290/* confdefs.h. */
13291_ACEOF
13292cat confdefs.h >>conftest.$ac_ext
13293cat >>conftest.$ac_ext <<_ACEOF
13294/* end confdefs.h. */
13295$ac_includes_default
13296int
13297main ()
13298{
13299static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13300test_array [0] = 0
13301
13302 ;
13303 return 0;
13304}
13305_ACEOF
13306rm -f conftest.$ac_objext
13307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308 (eval $ac_compile) 2>conftest.er1
13309 ac_status=$?
13310 grep -v '^ *+' conftest.er1 >conftest.err
13311 rm -f conftest.er1
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
7357c5b6
AM
13315 { ac_try='test -z "$ac_c_werror_flag"
13316 || test ! -s conftest.err'
d2df793a
NC
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; } &&
13322 { ac_try='test -s conftest.$ac_objext'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13328 ac_hi=$ac_mid
13329else
13330 echo "$as_me: failed program was:" >&5
13331sed 's/^/| /' conftest.$ac_ext >&5
13332
13333ac_lo=`expr '(' $ac_mid ')' + 1`
13334fi
13335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13336done
13337case $ac_lo in
13338?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
13339'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13340echo "$as_me: error: in \`$ac_pwd':" >&2;}
13341{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d2df793a
NC
13342See \`config.log' for more details." >&5
13343echo "$as_me: error: cannot compute sizeof (void *), 77
13344See \`config.log' for more details." >&2;}
7357c5b6 13345 { (exit 1); exit 1; }; }; } ;;
d2df793a
NC
13346esac
13347else
13348 if test "$cross_compiling" = yes; then
7357c5b6
AM
13349 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13350echo "$as_me: error: in \`$ac_pwd':" >&2;}
13351{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13352See \`config.log' for more details." >&5
13353echo "$as_me: error: cannot run test program while cross compiling
13354See \`config.log' for more details." >&2;}
13355 { (exit 1); exit 1; }; }; }
d2df793a
NC
13356else
13357 cat >conftest.$ac_ext <<_ACEOF
13358/* confdefs.h. */
13359_ACEOF
13360cat confdefs.h >>conftest.$ac_ext
13361cat >>conftest.$ac_ext <<_ACEOF
13362/* end confdefs.h. */
13363$ac_includes_default
13364long longval () { return (long) (sizeof (void *)); }
13365unsigned long ulongval () { return (long) (sizeof (void *)); }
13366#include <stdio.h>
13367#include <stdlib.h>
13368int
13369main ()
13370{
13371
13372 FILE *f = fopen ("conftest.val", "w");
13373 if (! f)
13374 exit (1);
13375 if (((long) (sizeof (void *))) < 0)
13376 {
13377 long i = longval ();
13378 if (i != ((long) (sizeof (void *))))
13379 exit (1);
13380 fprintf (f, "%ld\n", i);
13381 }
13382 else
13383 {
13384 unsigned long i = ulongval ();
13385 if (i != ((long) (sizeof (void *))))
13386 exit (1);
13387 fprintf (f, "%lu\n", i);
13388 }
13389 exit (ferror (f) || fclose (f) != 0);
13390
13391 ;
13392 return 0;
13393}
13394_ACEOF
13395rm -f conftest$ac_exeext
13396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13397 (eval $ac_link) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 ac_cv_sizeof_void_p=`cat conftest.val`
13407else
13408 echo "$as_me: program exited with status $ac_status" >&5
13409echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
13412( exit $ac_status )
7357c5b6
AM
13413{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13414echo "$as_me: error: in \`$ac_pwd':" >&2;}
d2df793a
NC
13415{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13416See \`config.log' for more details." >&5
13417echo "$as_me: error: cannot compute sizeof (void *), 77
13418See \`config.log' for more details." >&2;}
7357c5b6 13419 { (exit 1); exit 1; }; }; }
d2df793a
NC
13420fi
13421rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13422fi
13423fi
13424rm -f conftest.val
13425else
13426 ac_cv_sizeof_void_p=0
13427fi
13428fi
13429echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13430echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13431cat >>confdefs.h <<_ACEOF
13432#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13433_ACEOF
13434
13435
2ba49b59
KC
13436echo "$as_me:$LINENO: checking for long" >&5
13437echo $ECHO_N "checking for long... $ECHO_C" >&6
13438if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13440else
13441 cat >conftest.$ac_ext <<_ACEOF
13442/* confdefs.h. */
13443_ACEOF
13444cat confdefs.h >>conftest.$ac_ext
13445cat >>conftest.$ac_ext <<_ACEOF
13446/* end confdefs.h. */
2ba49b59 13447$ac_includes_default
5464f5a1
NN
13448int
13449main ()
13450{
2ba49b59
KC
13451if ((long *) 0)
13452 return 0;
13453if (sizeof (long))
13454 return 0;
5464f5a1
NN
13455 ;
13456 return 0;
13457}
13458_ACEOF
13459rm -f conftest.$ac_objext
13460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13461 (eval $ac_compile) 2>conftest.er1
13462 ac_status=$?
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
7357c5b6
AM
13468 { ac_try='test -z "$ac_c_werror_flag"
13469 || test ! -s conftest.err'
5464f5a1
NN
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; } &&
13475 { ac_try='test -s conftest.$ac_objext'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }; then
2ba49b59 13481 ac_cv_type_long=yes
252b5132 13482else
5464f5a1
NN
13483 echo "$as_me: failed program was:" >&5
13484sed 's/^/| /' conftest.$ac_ext >&5
13485
2ba49b59 13486ac_cv_type_long=no
252b5132 13487fi
5464f5a1 13488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13489fi
2ba49b59
KC
13490echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13491echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 13492
2ba49b59
KC
13493echo "$as_me:$LINENO: checking size of long" >&5
13494echo $ECHO_N "checking size of long... $ECHO_C" >&6
13495if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13497else
2ba49b59
KC
13498 if test "$ac_cv_type_long" = yes; then
13499 # The cast to unsigned long works around a bug in the HP C Compiler
13500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13502 # This bug is HP SR number 8606223364.
13503 if test "$cross_compiling" = yes; then
13504 # Depending upon the size, compute the lo and hi bounds.
13505cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13506/* confdefs.h. */
13507_ACEOF
13508cat confdefs.h >>conftest.$ac_ext
13509cat >>conftest.$ac_ext <<_ACEOF
13510/* end confdefs.h. */
2ba49b59 13511$ac_includes_default
5464f5a1
NN
13512int
13513main ()
13514{
2ba49b59
KC
13515static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13516test_array [0] = 0
13517
5464f5a1
NN
13518 ;
13519 return 0;
13520}
13521_ACEOF
13522rm -f conftest.$ac_objext
13523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524 (eval $ac_compile) 2>conftest.er1
13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } &&
7357c5b6
AM
13531 { ac_try='test -z "$ac_c_werror_flag"
13532 || test ! -s conftest.err'
5464f5a1
NN
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; } &&
13538 { ac_try='test -s conftest.$ac_objext'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13541 ac_status=$?
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
2ba49b59
KC
13544 ac_lo=0 ac_mid=0
13545 while :; do
13546 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
2ba49b59 13552$ac_includes_default
5464f5a1
NN
13553int
13554main ()
13555{
2ba49b59
KC
13556static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13557test_array [0] = 0
13558
5464f5a1
NN
13559 ;
13560 return 0;
13561}
13562_ACEOF
2ba49b59
KC
13563rm -f conftest.$ac_objext
13564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13565 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13566 ac_status=$?
13567 grep -v '^ *+' conftest.er1 >conftest.err
13568 rm -f conftest.er1
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
7357c5b6
AM
13572 { ac_try='test -z "$ac_c_werror_flag"
13573 || test ! -s conftest.err'
5464f5a1
NN
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; } &&
2ba49b59 13579 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
2ba49b59 13585 ac_hi=$ac_mid; break
5464f5a1
NN
13586else
13587 echo "$as_me: failed program was:" >&5
13588sed 's/^/| /' conftest.$ac_ext >&5
13589
2ba49b59
KC
13590ac_lo=`expr $ac_mid + 1`
13591 if test $ac_lo -le $ac_mid; then
13592 ac_lo= ac_hi=
13593 break
13594 fi
13595 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 13596fi
2ba49b59
KC
13597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13598 done
13599else
13600 echo "$as_me: failed program was:" >&5
13601sed 's/^/| /' conftest.$ac_ext >&5
13602
13603cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13604/* confdefs.h. */
13605_ACEOF
13606cat confdefs.h >>conftest.$ac_ext
13607cat >>conftest.$ac_ext <<_ACEOF
13608/* end confdefs.h. */
2ba49b59 13609$ac_includes_default
5464f5a1
NN
13610int
13611main ()
13612{
2ba49b59
KC
13613static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13614test_array [0] = 0
13615
5464f5a1
NN
13616 ;
13617 return 0;
13618}
13619_ACEOF
2ba49b59
KC
13620rm -f conftest.$ac_objext
13621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13622 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
7357c5b6
AM
13629 { ac_try='test -z "$ac_c_werror_flag"
13630 || test ! -s conftest.err'
5464f5a1
NN
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; } &&
2ba49b59 13636 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
2ba49b59
KC
13642 ac_hi=-1 ac_mid=-1
13643 while :; do
13644 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13645/* confdefs.h. */
13646_ACEOF
13647cat confdefs.h >>conftest.$ac_ext
13648cat >>conftest.$ac_ext <<_ACEOF
13649/* end confdefs.h. */
2ba49b59 13650$ac_includes_default
5464f5a1
NN
13651int
13652main ()
13653{
2ba49b59
KC
13654static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13655test_array [0] = 0
13656
5464f5a1
NN
13657 ;
13658 return 0;
13659}
13660_ACEOF
2ba49b59
KC
13661rm -f conftest.$ac_objext
13662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
7357c5b6
AM
13670 { ac_try='test -z "$ac_c_werror_flag"
13671 || test ! -s conftest.err'
5464f5a1
NN
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
2ba49b59 13677 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
2ba49b59 13683 ac_lo=$ac_mid; break
5464f5a1
NN
13684else
13685 echo "$as_me: failed program was:" >&5
13686sed 's/^/| /' conftest.$ac_ext >&5
13687
2ba49b59
KC
13688ac_hi=`expr '(' $ac_mid ')' - 1`
13689 if test $ac_mid -le $ac_hi; then
13690 ac_lo= ac_hi=
13691 break
13692 fi
13693 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 13694fi
2ba49b59
KC
13695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13696 done
13697else
13698 echo "$as_me: failed program was:" >&5
13699sed 's/^/| /' conftest.$ac_ext >&5
13700
13701ac_lo= ac_hi=
13702fi
13703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13704fi
13705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13706# Binary search between lo and hi bounds.
13707while test "x$ac_lo" != "x$ac_hi"; do
13708 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13709 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13710/* confdefs.h. */
13711_ACEOF
13712cat confdefs.h >>conftest.$ac_ext
13713cat >>conftest.$ac_ext <<_ACEOF
13714/* end confdefs.h. */
2ba49b59 13715$ac_includes_default
5464f5a1
NN
13716int
13717main ()
13718{
2ba49b59
KC
13719static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13720test_array [0] = 0
13721
5464f5a1
NN
13722 ;
13723 return 0;
13724}
13725_ACEOF
2ba49b59
KC
13726rm -f conftest.$ac_objext
13727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13728 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13729 ac_status=$?
13730 grep -v '^ *+' conftest.er1 >conftest.err
13731 rm -f conftest.er1
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } &&
7357c5b6
AM
13735 { ac_try='test -z "$ac_c_werror_flag"
13736 || test ! -s conftest.err'
5464f5a1
NN
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; } &&
2ba49b59 13742 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
2ba49b59 13748 ac_hi=$ac_mid
5464f5a1
NN
13749else
13750 echo "$as_me: failed program was:" >&5
13751sed 's/^/| /' conftest.$ac_ext >&5
13752
2ba49b59 13753ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 13754fi
2ba49b59
KC
13755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13756done
13757case $ac_lo in
13758?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
13759'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13760echo "$as_me: error: in \`$ac_pwd':" >&2;}
13761{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
2ba49b59
KC
13762See \`config.log' for more details." >&5
13763echo "$as_me: error: cannot compute sizeof (long), 77
13764See \`config.log' for more details." >&2;}
7357c5b6 13765 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
13766esac
13767else
13768 if test "$cross_compiling" = yes; then
7357c5b6
AM
13769 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13770echo "$as_me: error: in \`$ac_pwd':" >&2;}
13771{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13772See \`config.log' for more details." >&5
13773echo "$as_me: error: cannot run test program while cross compiling
13774See \`config.log' for more details." >&2;}
13775 { (exit 1); exit 1; }; }; }
2e0fbf77
JW
13776else
13777 cat >conftest.$ac_ext <<_ACEOF
13778/* confdefs.h. */
13779_ACEOF
13780cat confdefs.h >>conftest.$ac_ext
13781cat >>conftest.$ac_ext <<_ACEOF
13782/* end confdefs.h. */
2ba49b59
KC
13783$ac_includes_default
13784long longval () { return (long) (sizeof (long)); }
13785unsigned long ulongval () { return (long) (sizeof (long)); }
13786#include <stdio.h>
13787#include <stdlib.h>
2e0fbf77
JW
13788int
13789main ()
13790{
13791
2ba49b59
KC
13792 FILE *f = fopen ("conftest.val", "w");
13793 if (! f)
13794 exit (1);
13795 if (((long) (sizeof (long))) < 0)
13796 {
13797 long i = longval ();
13798 if (i != ((long) (sizeof (long))))
13799 exit (1);
13800 fprintf (f, "%ld\n", i);
13801 }
13802 else
13803 {
13804 unsigned long i = ulongval ();
13805 if (i != ((long) (sizeof (long))))
13806 exit (1);
13807 fprintf (f, "%lu\n", i);
13808 }
13809 exit (ferror (f) || fclose (f) != 0);
13810
2e0fbf77
JW
13811 ;
13812 return 0;
13813}
13814_ACEOF
2ba49b59
KC
13815rm -f conftest$ac_exeext
13816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13817 (eval $ac_link) 2>&5
2e0fbf77
JW
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 13820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
2ba49b59 13826 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 13827else
2ba49b59
KC
13828 echo "$as_me: program exited with status $ac_status" >&5
13829echo "$as_me: failed program was:" >&5
2e0fbf77
JW
13830sed 's/^/| /' conftest.$ac_ext >&5
13831
2ba49b59 13832( exit $ac_status )
7357c5b6
AM
13833{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13834echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
13835{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13836See \`config.log' for more details." >&5
13837echo "$as_me: error: cannot compute sizeof (long), 77
13838See \`config.log' for more details." >&2;}
7357c5b6 13839 { (exit 1); exit 1; }; }; }
2e0fbf77 13840fi
2ba49b59 13841rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 13842fi
2ba49b59
KC
13843fi
13844rm -f conftest.val
13845else
13846 ac_cv_sizeof_long=0
13847fi
13848fi
13849echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13850echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13851cat >>confdefs.h <<_ACEOF
13852#define SIZEOF_LONG $ac_cv_sizeof_long
13853_ACEOF
13854
13855
d2df793a
NC
13856
13857if test "x${ac_cv_sizeof_void_p}" = "x8"; then
2ba49b59 13858 host64=true
bce5e5c9
AM
13859fi
13860
13861if test "x${ac_cv_sizeof_long}" = "x8"; then
2ba49b59
KC
13862 BFD_HOST_64BIT_LONG=1
13863 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13864 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13865elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
bce5e5c9 13866 BFD_HOST_64BIT_LONG_LONG=1
2ba49b59
KC
13867 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13868 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
bce5e5c9
AM
13869 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13870 BFD_HOSTPTR_T="unsigned long long"
13871 fi
2ba49b59
KC
13872fi
13873
13874if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13875 BFD_HOST_64_BIT_DEFINED=1
13876 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13877 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13878fi
13879
13880
13881
13882
13883
13884
13885
d2df793a 13886
2ba49b59
KC
13887# Put a plausible default for CC_FOR_BUILD in Makefile.
13888if test -z "$CC_FOR_BUILD"; then
13889 if test "x$cross_compiling" = "xno"; then
13890 CC_FOR_BUILD='$(CC)'
13891 else
13892 CC_FOR_BUILD=gcc
13893 fi
13894fi
13895
13896# Also set EXEEXT_FOR_BUILD.
13897if test "x$cross_compiling" = "xno"; then
13898 EXEEXT_FOR_BUILD='$(EXEEXT)'
13899else
13900 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13901echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13902if test "${bfd_cv_build_exeext+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905 rm -f conftest*
13906 echo 'int main () { return 0; }' > conftest.c
13907 bfd_cv_build_exeext=
13908 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13909 for file in conftest.*; do
13910 case $file in
13911 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13912 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13913 esac
13914 done
13915 rm -f conftest*
13916 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13917fi
13918echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13919echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13920 EXEEXT_FOR_BUILD=""
13921 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13922fi
13923
13924
13925
13926
13927
13928
13929
13930
8bc9c892
NC
13931
13932for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
2ba49b59
KC
13933do
13934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13935if eval "test \"\${$as_ac_Header+set}\" = set"; then
13936 echo "$as_me:$LINENO: checking for $ac_header" >&5
13937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13938if eval "test \"\${$as_ac_Header+set}\" = set"; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13940fi
13941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13943else
13944 # Is the header compilable?
13945echo "$as_me:$LINENO: checking $ac_header usability" >&5
13946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13947cat >conftest.$ac_ext <<_ACEOF
13948/* confdefs.h. */
13949_ACEOF
13950cat confdefs.h >>conftest.$ac_ext
13951cat >>conftest.$ac_ext <<_ACEOF
13952/* end confdefs.h. */
13953$ac_includes_default
13954#include <$ac_header>
13955_ACEOF
13956rm -f conftest.$ac_objext
13957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
7357c5b6
AM
13965 { ac_try='test -z "$ac_c_werror_flag"
13966 || test ! -s conftest.err'
2ba49b59
KC
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 ac_header_compiler=yes
13979else
13980 echo "$as_me: failed program was:" >&5
13981sed 's/^/| /' conftest.$ac_ext >&5
13982
13983ac_header_compiler=no
13984fi
13985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13986echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13987echo "${ECHO_T}$ac_header_compiler" >&6
13988
13989# Is the header present?
13990echo "$as_me:$LINENO: checking $ac_header presence" >&5
13991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13992cat >conftest.$ac_ext <<_ACEOF
13993/* confdefs.h. */
13994_ACEOF
13995cat confdefs.h >>conftest.$ac_ext
13996cat >>conftest.$ac_ext <<_ACEOF
13997/* end confdefs.h. */
13998#include <$ac_header>
13999_ACEOF
14000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14002 ac_status=$?
14003 grep -v '^ *+' conftest.er1 >conftest.err
14004 rm -f conftest.er1
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } >/dev/null; then
14008 if test -s conftest.err; then
14009 ac_cpp_err=$ac_c_preproc_warn_flag
14010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14011 else
14012 ac_cpp_err=
14013 fi
14014else
14015 ac_cpp_err=yes
14016fi
14017if test -z "$ac_cpp_err"; then
14018 ac_header_preproc=yes
14019else
14020 echo "$as_me: failed program was:" >&5
14021sed 's/^/| /' conftest.$ac_ext >&5
14022
14023 ac_header_preproc=no
14024fi
14025rm -f conftest.err conftest.$ac_ext
14026echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14027echo "${ECHO_T}$ac_header_preproc" >&6
14028
14029# So? What about this header?
14030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14031 yes:no: )
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14036 ac_header_preproc=yes
14037 ;;
14038 no:yes:* )
14039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14051 (
14052 cat <<\_ASBOX
14053## ------------------------------------------ ##
14054## Report this to the AC_PACKAGE_NAME lists. ##
14055## ------------------------------------------ ##
14056_ASBOX
14057 ) |
14058 sed "s/^/$as_me: WARNING: /" >&2
14059 ;;
14060esac
14061echo "$as_me:$LINENO: checking for $ac_header" >&5
14062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14063if eval "test \"\${$as_ac_Header+set}\" = set"; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065else
14066 eval "$as_ac_Header=\$ac_header_preproc"
14067fi
14068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14070
14071fi
14072if test `eval echo '${'$as_ac_Header'}'` = yes; then
14073 cat >>confdefs.h <<_ACEOF
14074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14075_ACEOF
14076
14077fi
14078
14079done
14080
14081
14082
14083
14084for ac_header in fcntl.h sys/file.h sys/time.h
14085do
14086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14087if eval "test \"\${$as_ac_Header+set}\" = set"; then
14088 echo "$as_me:$LINENO: checking for $ac_header" >&5
14089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14090if eval "test \"\${$as_ac_Header+set}\" = set"; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14092fi
14093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14095else
14096 # Is the header compilable?
14097echo "$as_me:$LINENO: checking $ac_header usability" >&5
14098echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14099cat >conftest.$ac_ext <<_ACEOF
14100/* confdefs.h. */
14101_ACEOF
14102cat confdefs.h >>conftest.$ac_ext
14103cat >>conftest.$ac_ext <<_ACEOF
14104/* end confdefs.h. */
14105$ac_includes_default
14106#include <$ac_header>
14107_ACEOF
14108rm -f conftest.$ac_objext
14109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14110 (eval $ac_compile) 2>conftest.er1
14111 ac_status=$?
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
7357c5b6
AM
14117 { ac_try='test -z "$ac_c_werror_flag"
14118 || test ! -s conftest.err'
2ba49b59
KC
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest.$ac_objext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 ac_header_compiler=yes
14131else
14132 echo "$as_me: failed program was:" >&5
14133sed 's/^/| /' conftest.$ac_ext >&5
14134
14135ac_header_compiler=no
14136fi
14137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14138echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14139echo "${ECHO_T}$ac_header_compiler" >&6
14140
14141# Is the header present?
14142echo "$as_me:$LINENO: checking $ac_header presence" >&5
14143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14144cat >conftest.$ac_ext <<_ACEOF
14145/* confdefs.h. */
14146_ACEOF
14147cat confdefs.h >>conftest.$ac_ext
14148cat >>conftest.$ac_ext <<_ACEOF
14149/* end confdefs.h. */
14150#include <$ac_header>
14151_ACEOF
14152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14154 ac_status=$?
14155 grep -v '^ *+' conftest.er1 >conftest.err
14156 rm -f conftest.er1
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } >/dev/null; then
14160 if test -s conftest.err; then
14161 ac_cpp_err=$ac_c_preproc_warn_flag
14162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14163 else
14164 ac_cpp_err=
14165 fi
14166else
14167 ac_cpp_err=yes
14168fi
14169if test -z "$ac_cpp_err"; then
14170 ac_header_preproc=yes
14171else
14172 echo "$as_me: failed program was:" >&5
14173sed 's/^/| /' conftest.$ac_ext >&5
14174
14175 ac_header_preproc=no
14176fi
14177rm -f conftest.err conftest.$ac_ext
14178echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14179echo "${ECHO_T}$ac_header_preproc" >&6
14180
14181# So? What about this header?
14182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14183 yes:no: )
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14187echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14188 ac_header_preproc=yes
14189 ;;
14190 no:yes:* )
14191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14192echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14194echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14196echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14198echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14202echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14203 (
14204 cat <<\_ASBOX
14205## ------------------------------------------ ##
14206## Report this to the AC_PACKAGE_NAME lists. ##
14207## ------------------------------------------ ##
14208_ASBOX
14209 ) |
14210 sed "s/^/$as_me: WARNING: /" >&2
14211 ;;
14212esac
14213echo "$as_me:$LINENO: checking for $ac_header" >&5
14214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14215if eval "test \"\${$as_ac_Header+set}\" = set"; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217else
14218 eval "$as_ac_Header=\$ac_header_preproc"
14219fi
14220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14222
14223fi
14224if test `eval echo '${'$as_ac_Header'}'` = yes; then
14225 cat >>confdefs.h <<_ACEOF
14226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14227_ACEOF
14228
14229fi
14230
14231done
14232
d5efd9fc
AM
14233
14234
14235inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14236
14237acx_cv_header_stdint=stddef.h
14238acx_cv_header_stdint_kind="(already complete)"
14239for i in stdint.h $inttype_headers; do
14240 unset ac_cv_type_uintptr_t
14241 unset ac_cv_type_uintmax_t
14242 unset ac_cv_type_int_least32_t
14243 unset ac_cv_type_int_fast32_t
14244 unset ac_cv_type_uint64_t
14245 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14246 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14247echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14248if test "${ac_cv_type_uintmax_t+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14250else
14251 cat >conftest.$ac_ext <<_ACEOF
14252/* confdefs.h. */
14253_ACEOF
14254cat confdefs.h >>conftest.$ac_ext
14255cat >>conftest.$ac_ext <<_ACEOF
14256/* end confdefs.h. */
14257#include <sys/types.h>
14258#include <$i>
14259
14260int
14261main ()
14262{
14263if ((uintmax_t *) 0)
14264 return 0;
14265if (sizeof (uintmax_t))
14266 return 0;
14267 ;
14268 return 0;
14269}
14270_ACEOF
14271rm -f conftest.$ac_objext
14272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14273 (eval $ac_compile) 2>conftest.er1
14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
7357c5b6
AM
14280 { ac_try='test -z "$ac_c_werror_flag"
14281 || test ! -s conftest.err'
d5efd9fc
AM
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest.$ac_objext'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_type_uintmax_t=yes
14294else
14295 echo "$as_me: failed program was:" >&5
14296sed 's/^/| /' conftest.$ac_ext >&5
14297
14298ac_cv_type_uintmax_t=no
14299fi
14300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14301fi
14302echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14303echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14304if test $ac_cv_type_uintmax_t = yes; then
14305 acx_cv_header_stdint=$i
14306else
14307 continue
14308fi
14309
14310 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14311echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14312if test "${ac_cv_type_uintptr_t+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314else
14315 cat >conftest.$ac_ext <<_ACEOF
14316/* confdefs.h. */
14317_ACEOF
14318cat confdefs.h >>conftest.$ac_ext
14319cat >>conftest.$ac_ext <<_ACEOF
14320/* end confdefs.h. */
14321#include <sys/types.h>
14322#include <$i>
14323
14324int
14325main ()
14326{
14327if ((uintptr_t *) 0)
14328 return 0;
14329if (sizeof (uintptr_t))
14330 return 0;
14331 ;
14332 return 0;
14333}
14334_ACEOF
14335rm -f conftest.$ac_objext
14336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14337 (eval $ac_compile) 2>conftest.er1
14338 ac_status=$?
14339 grep -v '^ *+' conftest.er1 >conftest.err
14340 rm -f conftest.er1
14341 cat conftest.err >&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } &&
7357c5b6
AM
14344 { ac_try='test -z "$ac_c_werror_flag"
14345 || test ! -s conftest.err'
d5efd9fc
AM
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; } &&
14351 { ac_try='test -s conftest.$ac_objext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 ac_cv_type_uintptr_t=yes
14358else
14359 echo "$as_me: failed program was:" >&5
14360sed 's/^/| /' conftest.$ac_ext >&5
14361
14362ac_cv_type_uintptr_t=no
14363fi
14364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14365fi
14366echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14367echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14368if test $ac_cv_type_uintptr_t = yes; then
14369 :
14370else
14371 acx_cv_header_stdint_kind="(mostly complete)"
14372fi
14373
14374 echo "$as_me:$LINENO: checking for int_least32_t" >&5
14375echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14376if test "${ac_cv_type_int_least32_t+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14378else
14379 cat >conftest.$ac_ext <<_ACEOF
14380/* confdefs.h. */
14381_ACEOF
14382cat confdefs.h >>conftest.$ac_ext
14383cat >>conftest.$ac_ext <<_ACEOF
14384/* end confdefs.h. */
14385#include <sys/types.h>
14386#include <$i>
14387
14388int
14389main ()
14390{
14391if ((int_least32_t *) 0)
14392 return 0;
14393if (sizeof (int_least32_t))
14394 return 0;
14395 ;
14396 return 0;
14397}
14398_ACEOF
14399rm -f conftest.$ac_objext
14400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401 (eval $ac_compile) 2>conftest.er1
14402 ac_status=$?
14403 grep -v '^ *+' conftest.er1 >conftest.err
14404 rm -f conftest.er1
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
7357c5b6
AM
14408 { ac_try='test -z "$ac_c_werror_flag"
14409 || test ! -s conftest.err'
d5efd9fc
AM
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; } &&
14415 { ac_try='test -s conftest.$ac_objext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 ac_cv_type_int_least32_t=yes
14422else
14423 echo "$as_me: failed program was:" >&5
14424sed 's/^/| /' conftest.$ac_ext >&5
14425
14426ac_cv_type_int_least32_t=no
14427fi
14428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14429fi
14430echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14431echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14432if test $ac_cv_type_int_least32_t = yes; then
14433 :
14434else
14435 acx_cv_header_stdint_kind="(mostly complete)"
14436fi
14437
14438 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14439echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14440if test "${ac_cv_type_int_fast32_t+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14442else
14443 cat >conftest.$ac_ext <<_ACEOF
14444/* confdefs.h. */
14445_ACEOF
14446cat confdefs.h >>conftest.$ac_ext
14447cat >>conftest.$ac_ext <<_ACEOF
14448/* end confdefs.h. */
14449#include <sys/types.h>
14450#include <$i>
14451
14452int
14453main ()
14454{
14455if ((int_fast32_t *) 0)
14456 return 0;
14457if (sizeof (int_fast32_t))
14458 return 0;
14459 ;
14460 return 0;
14461}
14462_ACEOF
14463rm -f conftest.$ac_objext
14464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14465 (eval $ac_compile) 2>conftest.er1
14466 ac_status=$?
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -f conftest.er1
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
7357c5b6
AM
14472 { ac_try='test -z "$ac_c_werror_flag"
14473 || test ! -s conftest.err'
d5efd9fc
AM
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; } &&
14479 { ac_try='test -s conftest.$ac_objext'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14485 ac_cv_type_int_fast32_t=yes
14486else
14487 echo "$as_me: failed program was:" >&5
14488sed 's/^/| /' conftest.$ac_ext >&5
14489
14490ac_cv_type_int_fast32_t=no
14491fi
14492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14493fi
14494echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14495echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14496if test $ac_cv_type_int_fast32_t = yes; then
14497 :
14498else
14499 acx_cv_header_stdint_kind="(mostly complete)"
14500fi
14501
14502 echo "$as_me:$LINENO: checking for uint64_t" >&5
14503echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14504if test "${ac_cv_type_uint64_t+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14506else
14507 cat >conftest.$ac_ext <<_ACEOF
14508/* confdefs.h. */
14509_ACEOF
14510cat confdefs.h >>conftest.$ac_ext
14511cat >>conftest.$ac_ext <<_ACEOF
14512/* end confdefs.h. */
14513#include <sys/types.h>
14514#include <$i>
14515
14516int
14517main ()
14518{
14519if ((uint64_t *) 0)
14520 return 0;
14521if (sizeof (uint64_t))
14522 return 0;
14523 ;
14524 return 0;
14525}
14526_ACEOF
14527rm -f conftest.$ac_objext
14528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14529 (eval $ac_compile) 2>conftest.er1
14530 ac_status=$?
14531 grep -v '^ *+' conftest.er1 >conftest.err
14532 rm -f conftest.er1
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
7357c5b6
AM
14536 { ac_try='test -z "$ac_c_werror_flag"
14537 || test ! -s conftest.err'
d5efd9fc
AM
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; } &&
14543 { ac_try='test -s conftest.$ac_objext'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }; then
14549 ac_cv_type_uint64_t=yes
14550else
14551 echo "$as_me: failed program was:" >&5
14552sed 's/^/| /' conftest.$ac_ext >&5
14553
14554ac_cv_type_uint64_t=no
14555fi
14556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14557fi
14558echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14559echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14560if test $ac_cv_type_uint64_t = yes; then
14561 :
14562else
14563 acx_cv_header_stdint_kind="(lacks uint64_t)"
14564fi
14565
14566 break
14567done
14568if test "$acx_cv_header_stdint" = stddef.h; then
14569 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14570 for i in stdint.h $inttype_headers; do
14571 unset ac_cv_type_uintptr_t
14572 unset ac_cv_type_uint32_t
14573 unset ac_cv_type_uint64_t
14574 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14575 echo "$as_me:$LINENO: checking for uint32_t" >&5
14576echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14577if test "${ac_cv_type_uint32_t+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14579else
14580 cat >conftest.$ac_ext <<_ACEOF
14581/* confdefs.h. */
14582_ACEOF
14583cat confdefs.h >>conftest.$ac_ext
14584cat >>conftest.$ac_ext <<_ACEOF
14585/* end confdefs.h. */
14586#include <sys/types.h>
14587#include <$i>
14588
14589int
14590main ()
14591{
14592if ((uint32_t *) 0)
14593 return 0;
14594if (sizeof (uint32_t))
14595 return 0;
14596 ;
14597 return 0;
14598}
14599_ACEOF
14600rm -f conftest.$ac_objext
14601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602 (eval $ac_compile) 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
7357c5b6
AM
14609 { ac_try='test -z "$ac_c_werror_flag"
14610 || test ! -s conftest.err'
d5efd9fc
AM
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; } &&
14616 { ac_try='test -s conftest.$ac_objext'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14619 ac_status=$?
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; }; then
14622 ac_cv_type_uint32_t=yes
14623else
14624 echo "$as_me: failed program was:" >&5
14625sed 's/^/| /' conftest.$ac_ext >&5
14626
14627ac_cv_type_uint32_t=no
14628fi
14629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14630fi
14631echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14632echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14633if test $ac_cv_type_uint32_t = yes; then
14634 acx_cv_header_stdint=$i
14635else
14636 continue
14637fi
14638
14639 echo "$as_me:$LINENO: checking for uint64_t" >&5
14640echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14641if test "${ac_cv_type_uint64_t+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14643else
14644 cat >conftest.$ac_ext <<_ACEOF
14645/* confdefs.h. */
14646_ACEOF
14647cat confdefs.h >>conftest.$ac_ext
14648cat >>conftest.$ac_ext <<_ACEOF
14649/* end confdefs.h. */
14650#include <sys/types.h>
14651#include <$i>
14652
14653int
14654main ()
14655{
14656if ((uint64_t *) 0)
14657 return 0;
14658if (sizeof (uint64_t))
14659 return 0;
14660 ;
14661 return 0;
14662}
14663_ACEOF
14664rm -f conftest.$ac_objext
14665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14666 (eval $ac_compile) 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } &&
7357c5b6
AM
14673 { ac_try='test -z "$ac_c_werror_flag"
14674 || test ! -s conftest.err'
d5efd9fc
AM
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; } &&
14680 { ac_try='test -s conftest.$ac_objext'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14683 ac_status=$?
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14686 ac_cv_type_uint64_t=yes
14687else
14688 echo "$as_me: failed program was:" >&5
14689sed 's/^/| /' conftest.$ac_ext >&5
14690
14691ac_cv_type_uint64_t=no
14692fi
14693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14694fi
14695echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14696echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14697
14698 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14699echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14700if test "${ac_cv_type_uintptr_t+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14702else
14703 cat >conftest.$ac_ext <<_ACEOF
14704/* confdefs.h. */
14705_ACEOF
14706cat confdefs.h >>conftest.$ac_ext
14707cat >>conftest.$ac_ext <<_ACEOF
14708/* end confdefs.h. */
14709#include <sys/types.h>
14710#include <$i>
14711
14712int
14713main ()
14714{
14715if ((uintptr_t *) 0)
14716 return 0;
14717if (sizeof (uintptr_t))
14718 return 0;
14719 ;
14720 return 0;
14721}
14722_ACEOF
14723rm -f conftest.$ac_objext
14724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14725 (eval $ac_compile) 2>conftest.er1
14726 ac_status=$?
14727 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1
14729 cat conftest.err >&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
7357c5b6
AM
14732 { ac_try='test -z "$ac_c_werror_flag"
14733 || test ! -s conftest.err'
d5efd9fc
AM
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; } &&
14739 { ac_try='test -s conftest.$ac_objext'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14745 ac_cv_type_uintptr_t=yes
14746else
14747 echo "$as_me: failed program was:" >&5
14748sed 's/^/| /' conftest.$ac_ext >&5
14749
14750ac_cv_type_uintptr_t=no
14751fi
14752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14753fi
14754echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14755echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14756
14757 break
14758 done
14759fi
14760if test "$acx_cv_header_stdint" = stddef.h; then
14761 acx_cv_header_stdint_kind="(u_intXX_t style)"
14762 for i in sys/types.h $inttype_headers; do
14763 unset ac_cv_type_u_int32_t
14764 unset ac_cv_type_u_int64_t
14765 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14766 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14767echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14768if test "${ac_cv_type_u_int32_t+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14770else
14771 cat >conftest.$ac_ext <<_ACEOF
14772/* confdefs.h. */
14773_ACEOF
14774cat confdefs.h >>conftest.$ac_ext
14775cat >>conftest.$ac_ext <<_ACEOF
14776/* end confdefs.h. */
14777#include <sys/types.h>
14778#include <$i>
14779
14780int
14781main ()
14782{
14783if ((u_int32_t *) 0)
14784 return 0;
14785if (sizeof (u_int32_t))
14786 return 0;
14787 ;
14788 return 0;
14789}
14790_ACEOF
14791rm -f conftest.$ac_objext
14792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793 (eval $ac_compile) 2>conftest.er1
14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
7357c5b6
AM
14800 { ac_try='test -z "$ac_c_werror_flag"
14801 || test ! -s conftest.err'
d5efd9fc
AM
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 ac_cv_type_u_int32_t=yes
14814else
14815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818ac_cv_type_u_int32_t=no
14819fi
14820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14821fi
14822echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14823echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14824if test $ac_cv_type_u_int32_t = yes; then
14825 acx_cv_header_stdint=$i
14826else
14827 continue
14828fi
14829
14830 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14831echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14832if test "${ac_cv_type_u_int64_t+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14834else
14835 cat >conftest.$ac_ext <<_ACEOF
14836/* confdefs.h. */
14837_ACEOF
14838cat confdefs.h >>conftest.$ac_ext
14839cat >>conftest.$ac_ext <<_ACEOF
14840/* end confdefs.h. */
14841#include <sys/types.h>
14842#include <$i>
14843
14844int
14845main ()
14846{
14847if ((u_int64_t *) 0)
14848 return 0;
14849if (sizeof (u_int64_t))
14850 return 0;
14851 ;
14852 return 0;
14853}
14854_ACEOF
14855rm -f conftest.$ac_objext
14856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14857 (eval $ac_compile) 2>conftest.er1
14858 ac_status=$?
14859 grep -v '^ *+' conftest.er1 >conftest.err
14860 rm -f conftest.er1
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
7357c5b6
AM
14864 { ac_try='test -z "$ac_c_werror_flag"
14865 || test ! -s conftest.err'
d5efd9fc
AM
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; } &&
14871 { ac_try='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 ac_cv_type_u_int64_t=yes
14878else
14879 echo "$as_me: failed program was:" >&5
14880sed 's/^/| /' conftest.$ac_ext >&5
14881
14882ac_cv_type_u_int64_t=no
14883fi
14884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14885fi
14886echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14887echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14888
14889 break
14890 done
14891fi
14892if test "$acx_cv_header_stdint" = stddef.h; then
14893 acx_cv_header_stdint_kind="(using manual detection)"
14894fi
14895
14896test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14897test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14898test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14899test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14900test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14901
14902# ----------------- Summarize what we found so far
14903
14904echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14905echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14906
14907case `$as_basename bfd_stdint.h ||
14908$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14909 Xbfd_stdint.h : 'X\(//\)$' \| \
14910 Xbfd_stdint.h : 'X\(/\)$' \| \
14911 . : '\(.\)' 2>/dev/null ||
14912echo X/bfd_stdint.h |
14913 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14914 /^X\/\(\/\/\)$/{ s//\1/; q; }
14915 /^X\/\(\/\).*/{ s//\1/; q; }
14916 s/.*/./; q'` in
14917 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14918echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14919 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14920echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14921 *) ;;
14922esac
14923
14924echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14925echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14926
14927# ----------------- done included file, check C basic types --------
14928
14929# Lacking an uintptr_t? Test size of void *
14930case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14931 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14932echo $ECHO_N "checking for void *... $ECHO_C" >&6
14933if test "${ac_cv_type_void_p+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14935else
14936 cat >conftest.$ac_ext <<_ACEOF
14937/* confdefs.h. */
14938_ACEOF
14939cat confdefs.h >>conftest.$ac_ext
14940cat >>conftest.$ac_ext <<_ACEOF
14941/* end confdefs.h. */
14942$ac_includes_default
14943int
14944main ()
14945{
14946if ((void * *) 0)
14947 return 0;
14948if (sizeof (void *))
14949 return 0;
14950 ;
14951 return 0;
14952}
14953_ACEOF
14954rm -f conftest.$ac_objext
14955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14956 (eval $ac_compile) 2>conftest.er1
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } &&
7357c5b6
AM
14963 { ac_try='test -z "$ac_c_werror_flag"
14964 || test ! -s conftest.err'
d5efd9fc
AM
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; } &&
14970 { ac_try='test -s conftest.$ac_objext'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 ac_cv_type_void_p=yes
14977else
14978 echo "$as_me: failed program was:" >&5
14979sed 's/^/| /' conftest.$ac_ext >&5
14980
14981ac_cv_type_void_p=no
14982fi
14983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14984fi
14985echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14986echo "${ECHO_T}$ac_cv_type_void_p" >&6
14987
14988echo "$as_me:$LINENO: checking size of void *" >&5
14989echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14990if test "${ac_cv_sizeof_void_p+set}" = set; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14992else
14993 if test "$ac_cv_type_void_p" = yes; then
14994 # The cast to unsigned long works around a bug in the HP C Compiler
14995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14997 # This bug is HP SR number 8606223364.
14998 if test "$cross_compiling" = yes; then
14999 # Depending upon the size, compute the lo and hi bounds.
15000cat >conftest.$ac_ext <<_ACEOF
15001/* confdefs.h. */
15002_ACEOF
15003cat confdefs.h >>conftest.$ac_ext
15004cat >>conftest.$ac_ext <<_ACEOF
15005/* end confdefs.h. */
15006$ac_includes_default
15007int
15008main ()
15009{
15010static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15011test_array [0] = 0
15012
15013 ;
15014 return 0;
15015}
15016_ACEOF
15017rm -f conftest.$ac_objext
15018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15019 (eval $ac_compile) 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
7357c5b6
AM
15026 { ac_try='test -z "$ac_c_werror_flag"
15027 || test ! -s conftest.err'
d5efd9fc
AM
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest.$ac_objext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 ac_lo=0 ac_mid=0
15040 while :; do
15041 cat >conftest.$ac_ext <<_ACEOF
15042/* confdefs.h. */
15043_ACEOF
15044cat confdefs.h >>conftest.$ac_ext
15045cat >>conftest.$ac_ext <<_ACEOF
15046/* end confdefs.h. */
15047$ac_includes_default
15048int
15049main ()
15050{
15051static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15052test_array [0] = 0
15053
15054 ;
15055 return 0;
15056}
15057_ACEOF
15058rm -f conftest.$ac_objext
15059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15060 (eval $ac_compile) 2>conftest.er1
15061 ac_status=$?
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
7357c5b6
AM
15067 { ac_try='test -z "$ac_c_werror_flag"
15068 || test ! -s conftest.err'
d5efd9fc
AM
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; } &&
15074 { ac_try='test -s conftest.$ac_objext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15077 ac_status=$?
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15080 ac_hi=$ac_mid; break
15081else
15082 echo "$as_me: failed program was:" >&5
15083sed 's/^/| /' conftest.$ac_ext >&5
15084
15085ac_lo=`expr $ac_mid + 1`
15086 if test $ac_lo -le $ac_mid; then
15087 ac_lo= ac_hi=
15088 break
15089 fi
15090 ac_mid=`expr 2 '*' $ac_mid + 1`
15091fi
15092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15093 done
15094else
15095 echo "$as_me: failed program was:" >&5
15096sed 's/^/| /' conftest.$ac_ext >&5
15097
15098cat >conftest.$ac_ext <<_ACEOF
15099/* confdefs.h. */
15100_ACEOF
15101cat confdefs.h >>conftest.$ac_ext
15102cat >>conftest.$ac_ext <<_ACEOF
15103/* end confdefs.h. */
15104$ac_includes_default
15105int
15106main ()
15107{
15108static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15109test_array [0] = 0
15110
15111 ;
15112 return 0;
15113}
15114_ACEOF
15115rm -f conftest.$ac_objext
15116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15117 (eval $ac_compile) 2>conftest.er1
15118 ac_status=$?
15119 grep -v '^ *+' conftest.er1 >conftest.err
15120 rm -f conftest.er1
15121 cat conftest.err >&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } &&
7357c5b6
AM
15124 { ac_try='test -z "$ac_c_werror_flag"
15125 || test ! -s conftest.err'
d5efd9fc
AM
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; } &&
15131 { ac_try='test -s conftest.$ac_objext'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_hi=-1 ac_mid=-1
15138 while :; do
15139 cat >conftest.$ac_ext <<_ACEOF
15140/* confdefs.h. */
15141_ACEOF
15142cat confdefs.h >>conftest.$ac_ext
15143cat >>conftest.$ac_ext <<_ACEOF
15144/* end confdefs.h. */
15145$ac_includes_default
15146int
15147main ()
15148{
15149static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15150test_array [0] = 0
15151
15152 ;
15153 return 0;
15154}
15155_ACEOF
15156rm -f conftest.$ac_objext
15157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15158 (eval $ac_compile) 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } &&
7357c5b6
AM
15165 { ac_try='test -z "$ac_c_werror_flag"
15166 || test ! -s conftest.err'
d5efd9fc
AM
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; } &&
15172 { ac_try='test -s conftest.$ac_objext'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15178 ac_lo=$ac_mid; break
15179else
15180 echo "$as_me: failed program was:" >&5
15181sed 's/^/| /' conftest.$ac_ext >&5
15182
15183ac_hi=`expr '(' $ac_mid ')' - 1`
15184 if test $ac_mid -le $ac_hi; then
15185 ac_lo= ac_hi=
15186 break
15187 fi
15188 ac_mid=`expr 2 '*' $ac_mid`
15189fi
15190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15191 done
15192else
15193 echo "$as_me: failed program was:" >&5
15194sed 's/^/| /' conftest.$ac_ext >&5
15195
15196ac_lo= ac_hi=
15197fi
15198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15199fi
15200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15201# Binary search between lo and hi bounds.
15202while test "x$ac_lo" != "x$ac_hi"; do
15203 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15204 cat >conftest.$ac_ext <<_ACEOF
15205/* confdefs.h. */
15206_ACEOF
15207cat confdefs.h >>conftest.$ac_ext
15208cat >>conftest.$ac_ext <<_ACEOF
15209/* end confdefs.h. */
15210$ac_includes_default
15211int
15212main ()
15213{
15214static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15215test_array [0] = 0
15216
15217 ;
15218 return 0;
15219}
15220_ACEOF
15221rm -f conftest.$ac_objext
15222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15223 (eval $ac_compile) 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
7357c5b6
AM
15230 { ac_try='test -z "$ac_c_werror_flag"
15231 || test ! -s conftest.err'
d5efd9fc
AM
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } &&
15237 { ac_try='test -s conftest.$ac_objext'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15240 ac_status=$?
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 ac_hi=$ac_mid
15244else
15245 echo "$as_me: failed program was:" >&5
15246sed 's/^/| /' conftest.$ac_ext >&5
15247
15248ac_lo=`expr '(' $ac_mid ')' + 1`
15249fi
15250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15251done
15252case $ac_lo in
15253?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
15254'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15255echo "$as_me: error: in \`$ac_pwd':" >&2;}
15256{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d5efd9fc
AM
15257See \`config.log' for more details." >&5
15258echo "$as_me: error: cannot compute sizeof (void *), 77
15259See \`config.log' for more details." >&2;}
7357c5b6 15260 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15261esac
15262else
15263 if test "$cross_compiling" = yes; then
7357c5b6
AM
15264 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15265echo "$as_me: error: in \`$ac_pwd':" >&2;}
15266{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15267See \`config.log' for more details." >&5
15268echo "$as_me: error: cannot run test program while cross compiling
15269See \`config.log' for more details." >&2;}
15270 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15271else
15272 cat >conftest.$ac_ext <<_ACEOF
15273/* confdefs.h. */
15274_ACEOF
15275cat confdefs.h >>conftest.$ac_ext
15276cat >>conftest.$ac_ext <<_ACEOF
15277/* end confdefs.h. */
15278$ac_includes_default
15279long longval () { return (long) (sizeof (void *)); }
15280unsigned long ulongval () { return (long) (sizeof (void *)); }
15281#include <stdio.h>
15282#include <stdlib.h>
15283int
15284main ()
15285{
15286
15287 FILE *f = fopen ("conftest.val", "w");
15288 if (! f)
15289 exit (1);
15290 if (((long) (sizeof (void *))) < 0)
15291 {
15292 long i = longval ();
15293 if (i != ((long) (sizeof (void *))))
15294 exit (1);
15295 fprintf (f, "%ld\n", i);
15296 }
15297 else
15298 {
15299 unsigned long i = ulongval ();
15300 if (i != ((long) (sizeof (void *))))
15301 exit (1);
15302 fprintf (f, "%lu\n", i);
15303 }
15304 exit (ferror (f) || fclose (f) != 0);
15305
15306 ;
15307 return 0;
15308}
15309_ACEOF
15310rm -f conftest$ac_exeext
15311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15312 (eval $ac_link) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }; then
15321 ac_cv_sizeof_void_p=`cat conftest.val`
15322else
15323 echo "$as_me: program exited with status $ac_status" >&5
15324echo "$as_me: failed program was:" >&5
15325sed 's/^/| /' conftest.$ac_ext >&5
15326
15327( exit $ac_status )
7357c5b6
AM
15328{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15329echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15330{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15331See \`config.log' for more details." >&5
15332echo "$as_me: error: cannot compute sizeof (void *), 77
15333See \`config.log' for more details." >&2;}
7357c5b6 15334 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15335fi
15336rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15337fi
15338fi
15339rm -f conftest.val
15340else
15341 ac_cv_sizeof_void_p=0
15342fi
15343fi
15344echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15345echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15346cat >>confdefs.h <<_ACEOF
15347#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15348_ACEOF
15349
15350 ;;
15351esac
15352
15353# Lacking an uint64_t? Test size of long
15354case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15355 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15356echo $ECHO_N "checking for long... $ECHO_C" >&6
15357if test "${ac_cv_type_long+set}" = set; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15359else
15360 cat >conftest.$ac_ext <<_ACEOF
15361/* confdefs.h. */
15362_ACEOF
15363cat confdefs.h >>conftest.$ac_ext
15364cat >>conftest.$ac_ext <<_ACEOF
15365/* end confdefs.h. */
15366$ac_includes_default
15367int
15368main ()
15369{
15370if ((long *) 0)
15371 return 0;
15372if (sizeof (long))
15373 return 0;
15374 ;
15375 return 0;
15376}
15377_ACEOF
15378rm -f conftest.$ac_objext
15379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15380 (eval $ac_compile) 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
7357c5b6
AM
15387 { ac_try='test -z "$ac_c_werror_flag"
15388 || test ! -s conftest.err'
d5efd9fc
AM
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; } &&
15394 { ac_try='test -s conftest.$ac_objext'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15400 ac_cv_type_long=yes
15401else
15402 echo "$as_me: failed program was:" >&5
15403sed 's/^/| /' conftest.$ac_ext >&5
15404
15405ac_cv_type_long=no
15406fi
15407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15408fi
15409echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15410echo "${ECHO_T}$ac_cv_type_long" >&6
15411
15412echo "$as_me:$LINENO: checking size of long" >&5
15413echo $ECHO_N "checking size of long... $ECHO_C" >&6
15414if test "${ac_cv_sizeof_long+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15416else
15417 if test "$ac_cv_type_long" = yes; then
15418 # The cast to unsigned long works around a bug in the HP C Compiler
15419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15421 # This bug is HP SR number 8606223364.
15422 if test "$cross_compiling" = yes; then
15423 # Depending upon the size, compute the lo and hi bounds.
15424cat >conftest.$ac_ext <<_ACEOF
15425/* confdefs.h. */
15426_ACEOF
15427cat confdefs.h >>conftest.$ac_ext
15428cat >>conftest.$ac_ext <<_ACEOF
15429/* end confdefs.h. */
15430$ac_includes_default
15431int
15432main ()
15433{
15434static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15435test_array [0] = 0
15436
15437 ;
15438 return 0;
15439}
15440_ACEOF
15441rm -f conftest.$ac_objext
15442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15443 (eval $ac_compile) 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
7357c5b6
AM
15450 { ac_try='test -z "$ac_c_werror_flag"
15451 || test ! -s conftest.err'
d5efd9fc
AM
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest.$ac_objext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_lo=0 ac_mid=0
15464 while :; do
15465 cat >conftest.$ac_ext <<_ACEOF
15466/* confdefs.h. */
15467_ACEOF
15468cat confdefs.h >>conftest.$ac_ext
15469cat >>conftest.$ac_ext <<_ACEOF
15470/* end confdefs.h. */
15471$ac_includes_default
15472int
15473main ()
15474{
15475static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15476test_array [0] = 0
15477
15478 ;
15479 return 0;
15480}
15481_ACEOF
15482rm -f conftest.$ac_objext
15483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15484 (eval $ac_compile) 2>conftest.er1
15485 ac_status=$?
15486 grep -v '^ *+' conftest.er1 >conftest.err
15487 rm -f conftest.er1
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
7357c5b6
AM
15491 { ac_try='test -z "$ac_c_werror_flag"
15492 || test ! -s conftest.err'
d5efd9fc
AM
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; } &&
15498 { ac_try='test -s conftest.$ac_objext'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 ac_hi=$ac_mid; break
15505else
15506 echo "$as_me: failed program was:" >&5
15507sed 's/^/| /' conftest.$ac_ext >&5
15508
15509ac_lo=`expr $ac_mid + 1`
15510 if test $ac_lo -le $ac_mid; then
15511 ac_lo= ac_hi=
15512 break
15513 fi
15514 ac_mid=`expr 2 '*' $ac_mid + 1`
15515fi
15516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15517 done
15518else
15519 echo "$as_me: failed program was:" >&5
15520sed 's/^/| /' conftest.$ac_ext >&5
15521
15522cat >conftest.$ac_ext <<_ACEOF
15523/* confdefs.h. */
15524_ACEOF
15525cat confdefs.h >>conftest.$ac_ext
15526cat >>conftest.$ac_ext <<_ACEOF
15527/* end confdefs.h. */
15528$ac_includes_default
15529int
15530main ()
15531{
15532static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15533test_array [0] = 0
15534
15535 ;
15536 return 0;
15537}
15538_ACEOF
15539rm -f conftest.$ac_objext
15540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15541 (eval $ac_compile) 2>conftest.er1
15542 ac_status=$?
15543 grep -v '^ *+' conftest.er1 >conftest.err
15544 rm -f conftest.er1
15545 cat conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
7357c5b6
AM
15548 { ac_try='test -z "$ac_c_werror_flag"
15549 || test ! -s conftest.err'
d5efd9fc
AM
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; } &&
15555 { ac_try='test -s conftest.$ac_objext'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 ac_hi=-1 ac_mid=-1
15562 while :; do
15563 cat >conftest.$ac_ext <<_ACEOF
15564/* confdefs.h. */
15565_ACEOF
15566cat confdefs.h >>conftest.$ac_ext
15567cat >>conftest.$ac_ext <<_ACEOF
15568/* end confdefs.h. */
15569$ac_includes_default
15570int
15571main ()
15572{
15573static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15574test_array [0] = 0
15575
15576 ;
15577 return 0;
15578}
15579_ACEOF
15580rm -f conftest.$ac_objext
15581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15582 (eval $ac_compile) 2>conftest.er1
15583 ac_status=$?
15584 grep -v '^ *+' conftest.er1 >conftest.err
15585 rm -f conftest.er1
15586 cat conftest.err >&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } &&
7357c5b6
AM
15589 { ac_try='test -z "$ac_c_werror_flag"
15590 || test ! -s conftest.err'
d5efd9fc
AM
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; } &&
15596 { ac_try='test -s conftest.$ac_objext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_lo=$ac_mid; break
15603else
15604 echo "$as_me: failed program was:" >&5
15605sed 's/^/| /' conftest.$ac_ext >&5
15606
15607ac_hi=`expr '(' $ac_mid ')' - 1`
15608 if test $ac_mid -le $ac_hi; then
15609 ac_lo= ac_hi=
15610 break
15611 fi
15612 ac_mid=`expr 2 '*' $ac_mid`
15613fi
15614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15615 done
15616else
15617 echo "$as_me: failed program was:" >&5
15618sed 's/^/| /' conftest.$ac_ext >&5
15619
15620ac_lo= ac_hi=
15621fi
15622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15623fi
15624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15625# Binary search between lo and hi bounds.
15626while test "x$ac_lo" != "x$ac_hi"; do
15627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15628 cat >conftest.$ac_ext <<_ACEOF
15629/* confdefs.h. */
15630_ACEOF
15631cat confdefs.h >>conftest.$ac_ext
15632cat >>conftest.$ac_ext <<_ACEOF
15633/* end confdefs.h. */
15634$ac_includes_default
15635int
15636main ()
15637{
15638static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15639test_array [0] = 0
15640
15641 ;
15642 return 0;
15643}
15644_ACEOF
15645rm -f conftest.$ac_objext
15646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15647 (eval $ac_compile) 2>conftest.er1
15648 ac_status=$?
15649 grep -v '^ *+' conftest.er1 >conftest.err
15650 rm -f conftest.er1
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
7357c5b6
AM
15654 { ac_try='test -z "$ac_c_werror_flag"
15655 || test ! -s conftest.err'
d5efd9fc
AM
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15658 ac_status=$?
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; } &&
15661 { ac_try='test -s conftest.$ac_objext'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15667 ac_hi=$ac_mid
15668else
15669 echo "$as_me: failed program was:" >&5
15670sed 's/^/| /' conftest.$ac_ext >&5
15671
15672ac_lo=`expr '(' $ac_mid ')' + 1`
15673fi
15674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15675done
15676case $ac_lo in
15677?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
15678'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15679echo "$as_me: error: in \`$ac_pwd':" >&2;}
15680{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
d5efd9fc
AM
15681See \`config.log' for more details." >&5
15682echo "$as_me: error: cannot compute sizeof (long), 77
15683See \`config.log' for more details." >&2;}
7357c5b6 15684 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15685esac
15686else
15687 if test "$cross_compiling" = yes; then
7357c5b6
AM
15688 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15689echo "$as_me: error: in \`$ac_pwd':" >&2;}
15690{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15691See \`config.log' for more details." >&5
15692echo "$as_me: error: cannot run test program while cross compiling
15693See \`config.log' for more details." >&2;}
15694 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15695else
15696 cat >conftest.$ac_ext <<_ACEOF
15697/* confdefs.h. */
15698_ACEOF
15699cat confdefs.h >>conftest.$ac_ext
15700cat >>conftest.$ac_ext <<_ACEOF
15701/* end confdefs.h. */
15702$ac_includes_default
15703long longval () { return (long) (sizeof (long)); }
15704unsigned long ulongval () { return (long) (sizeof (long)); }
15705#include <stdio.h>
15706#include <stdlib.h>
15707int
15708main ()
15709{
15710
15711 FILE *f = fopen ("conftest.val", "w");
15712 if (! f)
15713 exit (1);
15714 if (((long) (sizeof (long))) < 0)
15715 {
15716 long i = longval ();
15717 if (i != ((long) (sizeof (long))))
15718 exit (1);
15719 fprintf (f, "%ld\n", i);
15720 }
15721 else
15722 {
15723 unsigned long i = ulongval ();
15724 if (i != ((long) (sizeof (long))))
15725 exit (1);
15726 fprintf (f, "%lu\n", i);
15727 }
15728 exit (ferror (f) || fclose (f) != 0);
15729
15730 ;
15731 return 0;
15732}
15733_ACEOF
15734rm -f conftest$ac_exeext
15735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15736 (eval $ac_link) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_cv_sizeof_long=`cat conftest.val`
15746else
15747 echo "$as_me: program exited with status $ac_status" >&5
15748echo "$as_me: failed program was:" >&5
15749sed 's/^/| /' conftest.$ac_ext >&5
15750
15751( exit $ac_status )
7357c5b6
AM
15752{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15753echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15754{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15755See \`config.log' for more details." >&5
15756echo "$as_me: error: cannot compute sizeof (long), 77
15757See \`config.log' for more details." >&2;}
7357c5b6 15758 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15759fi
15760rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15761fi
15762fi
15763rm -f conftest.val
15764else
15765 ac_cv_sizeof_long=0
15766fi
15767fi
15768echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15769echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15770cat >>confdefs.h <<_ACEOF
15771#define SIZEOF_LONG $ac_cv_sizeof_long
15772_ACEOF
15773
15774 ;;
15775esac
15776
15777if test $acx_cv_header_stdint = stddef.h; then
15778 # Lacking a good header? Test size of everything and deduce all types.
15779 echo "$as_me:$LINENO: checking for int" >&5
15780echo $ECHO_N "checking for int... $ECHO_C" >&6
15781if test "${ac_cv_type_int+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15783else
15784 cat >conftest.$ac_ext <<_ACEOF
15785/* confdefs.h. */
15786_ACEOF
15787cat confdefs.h >>conftest.$ac_ext
15788cat >>conftest.$ac_ext <<_ACEOF
15789/* end confdefs.h. */
15790$ac_includes_default
15791int
15792main ()
15793{
15794if ((int *) 0)
15795 return 0;
15796if (sizeof (int))
15797 return 0;
15798 ;
15799 return 0;
15800}
15801_ACEOF
15802rm -f conftest.$ac_objext
15803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15804 (eval $ac_compile) 2>conftest.er1
15805 ac_status=$?
15806 grep -v '^ *+' conftest.er1 >conftest.err
15807 rm -f conftest.er1
15808 cat conftest.err >&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } &&
7357c5b6
AM
15811 { ac_try='test -z "$ac_c_werror_flag"
15812 || test ! -s conftest.err'
d5efd9fc
AM
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; } &&
15818 { ac_try='test -s conftest.$ac_objext'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_cv_type_int=yes
15825else
15826 echo "$as_me: failed program was:" >&5
15827sed 's/^/| /' conftest.$ac_ext >&5
15828
15829ac_cv_type_int=no
15830fi
15831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15832fi
15833echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15834echo "${ECHO_T}$ac_cv_type_int" >&6
15835
15836echo "$as_me:$LINENO: checking size of int" >&5
15837echo $ECHO_N "checking size of int... $ECHO_C" >&6
15838if test "${ac_cv_sizeof_int+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15840else
15841 if test "$ac_cv_type_int" = yes; then
15842 # The cast to unsigned long works around a bug in the HP C Compiler
15843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15845 # This bug is HP SR number 8606223364.
15846 if test "$cross_compiling" = yes; then
15847 # Depending upon the size, compute the lo and hi bounds.
15848cat >conftest.$ac_ext <<_ACEOF
15849/* confdefs.h. */
15850_ACEOF
15851cat confdefs.h >>conftest.$ac_ext
15852cat >>conftest.$ac_ext <<_ACEOF
15853/* end confdefs.h. */
15854$ac_includes_default
15855int
15856main ()
15857{
15858static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15859test_array [0] = 0
15860
15861 ;
15862 return 0;
15863}
15864_ACEOF
15865rm -f conftest.$ac_objext
15866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15867 (eval $ac_compile) 2>conftest.er1
15868 ac_status=$?
15869 grep -v '^ *+' conftest.er1 >conftest.err
15870 rm -f conftest.er1
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } &&
7357c5b6
AM
15874 { ac_try='test -z "$ac_c_werror_flag"
15875 || test ! -s conftest.err'
d5efd9fc
AM
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; } &&
15881 { ac_try='test -s conftest.$ac_objext'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 ac_lo=0 ac_mid=0
15888 while :; do
15889 cat >conftest.$ac_ext <<_ACEOF
15890/* confdefs.h. */
15891_ACEOF
15892cat confdefs.h >>conftest.$ac_ext
15893cat >>conftest.$ac_ext <<_ACEOF
15894/* end confdefs.h. */
15895$ac_includes_default
15896int
15897main ()
15898{
15899static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15900test_array [0] = 0
15901
15902 ;
15903 return 0;
15904}
15905_ACEOF
15906rm -f conftest.$ac_objext
15907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15908 (eval $ac_compile) 2>conftest.er1
15909 ac_status=$?
15910 grep -v '^ *+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } &&
7357c5b6
AM
15915 { ac_try='test -z "$ac_c_werror_flag"
15916 || test ! -s conftest.err'
d5efd9fc
AM
15917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15918 (eval $ac_try) 2>&5
15919 ac_status=$?
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; } &&
15922 { ac_try='test -s conftest.$ac_objext'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15925 ac_status=$?
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; }; then
15928 ac_hi=$ac_mid; break
15929else
15930 echo "$as_me: failed program was:" >&5
15931sed 's/^/| /' conftest.$ac_ext >&5
15932
15933ac_lo=`expr $ac_mid + 1`
15934 if test $ac_lo -le $ac_mid; then
15935 ac_lo= ac_hi=
15936 break
15937 fi
15938 ac_mid=`expr 2 '*' $ac_mid + 1`
15939fi
15940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15941 done
15942else
15943 echo "$as_me: failed program was:" >&5
15944sed 's/^/| /' conftest.$ac_ext >&5
15945
15946cat >conftest.$ac_ext <<_ACEOF
15947/* confdefs.h. */
15948_ACEOF
15949cat confdefs.h >>conftest.$ac_ext
15950cat >>conftest.$ac_ext <<_ACEOF
15951/* end confdefs.h. */
15952$ac_includes_default
15953int
15954main ()
15955{
15956static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15957test_array [0] = 0
15958
15959 ;
15960 return 0;
15961}
15962_ACEOF
15963rm -f conftest.$ac_objext
15964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15965 (eval $ac_compile) 2>conftest.er1
15966 ac_status=$?
15967 grep -v '^ *+' conftest.er1 >conftest.err
15968 rm -f conftest.er1
15969 cat conftest.err >&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } &&
7357c5b6
AM
15972 { ac_try='test -z "$ac_c_werror_flag"
15973 || test ! -s conftest.err'
d5efd9fc
AM
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15976 ac_status=$?
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; } &&
15979 { ac_try='test -s conftest.$ac_objext'
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 ac_hi=-1 ac_mid=-1
15986 while :; do
15987 cat >conftest.$ac_ext <<_ACEOF
15988/* confdefs.h. */
15989_ACEOF
15990cat confdefs.h >>conftest.$ac_ext
15991cat >>conftest.$ac_ext <<_ACEOF
15992/* end confdefs.h. */
15993$ac_includes_default
15994int
15995main ()
15996{
15997static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15998test_array [0] = 0
15999
16000 ;
16001 return 0;
16002}
16003_ACEOF
16004rm -f conftest.$ac_objext
16005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16006 (eval $ac_compile) 2>conftest.er1
16007 ac_status=$?
16008 grep -v '^ *+' conftest.er1 >conftest.err
16009 rm -f conftest.er1
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
7357c5b6
AM
16013 { ac_try='test -z "$ac_c_werror_flag"
16014 || test ! -s conftest.err'
d5efd9fc
AM
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; } &&
16020 { ac_try='test -s conftest.$ac_objext'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 ac_lo=$ac_mid; break
16027else
16028 echo "$as_me: failed program was:" >&5
16029sed 's/^/| /' conftest.$ac_ext >&5
16030
16031ac_hi=`expr '(' $ac_mid ')' - 1`
16032 if test $ac_mid -le $ac_hi; then
16033 ac_lo= ac_hi=
16034 break
16035 fi
16036 ac_mid=`expr 2 '*' $ac_mid`
16037fi
16038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16039 done
16040else
16041 echo "$as_me: failed program was:" >&5
16042sed 's/^/| /' conftest.$ac_ext >&5
16043
16044ac_lo= ac_hi=
16045fi
16046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16047fi
16048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16049# Binary search between lo and hi bounds.
16050while test "x$ac_lo" != "x$ac_hi"; do
16051 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16052 cat >conftest.$ac_ext <<_ACEOF
16053/* confdefs.h. */
16054_ACEOF
16055cat confdefs.h >>conftest.$ac_ext
16056cat >>conftest.$ac_ext <<_ACEOF
16057/* end confdefs.h. */
16058$ac_includes_default
16059int
16060main ()
16061{
16062static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16063test_array [0] = 0
16064
16065 ;
16066 return 0;
16067}
16068_ACEOF
16069rm -f conftest.$ac_objext
16070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16071 (eval $ac_compile) 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
7357c5b6
AM
16078 { ac_try='test -z "$ac_c_werror_flag"
16079 || test ! -s conftest.err'
d5efd9fc
AM
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16082 ac_status=$?
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; } &&
16085 { ac_try='test -s conftest.$ac_objext'
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; }; then
16091 ac_hi=$ac_mid
16092else
16093 echo "$as_me: failed program was:" >&5
16094sed 's/^/| /' conftest.$ac_ext >&5
16095
16096ac_lo=`expr '(' $ac_mid ')' + 1`
16097fi
16098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16099done
16100case $ac_lo in
16101?*) ac_cv_sizeof_int=$ac_lo;;
7357c5b6
AM
16102'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16103echo "$as_me: error: in \`$ac_pwd':" >&2;}
16104{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
d5efd9fc
AM
16105See \`config.log' for more details." >&5
16106echo "$as_me: error: cannot compute sizeof (int), 77
16107See \`config.log' for more details." >&2;}
7357c5b6 16108 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16109esac
16110else
16111 if test "$cross_compiling" = yes; then
7357c5b6
AM
16112 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16113echo "$as_me: error: in \`$ac_pwd':" >&2;}
16114{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16115See \`config.log' for more details." >&5
16116echo "$as_me: error: cannot run test program while cross compiling
16117See \`config.log' for more details." >&2;}
16118 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16119else
16120 cat >conftest.$ac_ext <<_ACEOF
16121/* confdefs.h. */
16122_ACEOF
16123cat confdefs.h >>conftest.$ac_ext
16124cat >>conftest.$ac_ext <<_ACEOF
16125/* end confdefs.h. */
16126$ac_includes_default
16127long longval () { return (long) (sizeof (int)); }
16128unsigned long ulongval () { return (long) (sizeof (int)); }
16129#include <stdio.h>
16130#include <stdlib.h>
16131int
16132main ()
16133{
16134
16135 FILE *f = fopen ("conftest.val", "w");
16136 if (! f)
16137 exit (1);
16138 if (((long) (sizeof (int))) < 0)
16139 {
16140 long i = longval ();
16141 if (i != ((long) (sizeof (int))))
16142 exit (1);
16143 fprintf (f, "%ld\n", i);
16144 }
16145 else
16146 {
16147 unsigned long i = ulongval ();
16148 if (i != ((long) (sizeof (int))))
16149 exit (1);
16150 fprintf (f, "%lu\n", i);
16151 }
16152 exit (ferror (f) || fclose (f) != 0);
16153
16154 ;
16155 return 0;
16156}
16157_ACEOF
16158rm -f conftest$ac_exeext
16159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16160 (eval $ac_link) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; }; then
16169 ac_cv_sizeof_int=`cat conftest.val`
16170else
16171 echo "$as_me: program exited with status $ac_status" >&5
16172echo "$as_me: failed program was:" >&5
16173sed 's/^/| /' conftest.$ac_ext >&5
16174
16175( exit $ac_status )
7357c5b6
AM
16176{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16177echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
16178{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16179See \`config.log' for more details." >&5
16180echo "$as_me: error: cannot compute sizeof (int), 77
16181See \`config.log' for more details." >&2;}
7357c5b6 16182 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16183fi
16184rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16185fi
16186fi
16187rm -f conftest.val
16188else
16189 ac_cv_sizeof_int=0
16190fi
16191fi
16192echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16193echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16194cat >>confdefs.h <<_ACEOF
16195#define SIZEOF_INT $ac_cv_sizeof_int
16196_ACEOF
16197
16198
16199 echo "$as_me:$LINENO: checking for short" >&5
16200echo $ECHO_N "checking for short... $ECHO_C" >&6
16201if test "${ac_cv_type_short+set}" = set; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203else
16204 cat >conftest.$ac_ext <<_ACEOF
16205/* confdefs.h. */
16206_ACEOF
16207cat confdefs.h >>conftest.$ac_ext
16208cat >>conftest.$ac_ext <<_ACEOF
16209/* end confdefs.h. */
16210$ac_includes_default
16211int
16212main ()
16213{
16214if ((short *) 0)
16215 return 0;
16216if (sizeof (short))
16217 return 0;
16218 ;
16219 return 0;
16220}
16221_ACEOF
16222rm -f conftest.$ac_objext
16223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16224 (eval $ac_compile) 2>conftest.er1
16225 ac_status=$?
16226 grep -v '^ *+' conftest.er1 >conftest.err
16227 rm -f conftest.er1
16228 cat conftest.err >&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
7357c5b6
AM
16231 { ac_try='test -z "$ac_c_werror_flag"
16232 || test ! -s conftest.err'
d5efd9fc
AM
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; } &&
16238 { ac_try='test -s conftest.$ac_objext'
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }; then
16244 ac_cv_type_short=yes
16245else
16246 echo "$as_me: failed program was:" >&5
16247sed 's/^/| /' conftest.$ac_ext >&5
16248
16249ac_cv_type_short=no
16250fi
16251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16252fi
16253echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16254echo "${ECHO_T}$ac_cv_type_short" >&6
16255
16256echo "$as_me:$LINENO: checking size of short" >&5
16257echo $ECHO_N "checking size of short... $ECHO_C" >&6
16258if test "${ac_cv_sizeof_short+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260else
16261 if test "$ac_cv_type_short" = yes; then
16262 # The cast to unsigned long works around a bug in the HP C Compiler
16263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16265 # This bug is HP SR number 8606223364.
16266 if test "$cross_compiling" = yes; then
16267 # Depending upon the size, compute the lo and hi bounds.
16268cat >conftest.$ac_ext <<_ACEOF
16269/* confdefs.h. */
16270_ACEOF
16271cat confdefs.h >>conftest.$ac_ext
16272cat >>conftest.$ac_ext <<_ACEOF
16273/* end confdefs.h. */
16274$ac_includes_default
16275int
16276main ()
16277{
16278static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16279test_array [0] = 0
16280
16281 ;
16282 return 0;
16283}
16284_ACEOF
16285rm -f conftest.$ac_objext
16286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16287 (eval $ac_compile) 2>conftest.er1
16288 ac_status=$?
16289 grep -v '^ *+' conftest.er1 >conftest.err
16290 rm -f conftest.er1
16291 cat conftest.err >&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
7357c5b6
AM
16294 { ac_try='test -z "$ac_c_werror_flag"
16295 || test ! -s conftest.err'
d5efd9fc
AM
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; } &&
16301 { ac_try='test -s conftest.$ac_objext'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; }; then
16307 ac_lo=0 ac_mid=0
16308 while :; do
16309 cat >conftest.$ac_ext <<_ACEOF
16310/* confdefs.h. */
16311_ACEOF
16312cat confdefs.h >>conftest.$ac_ext
16313cat >>conftest.$ac_ext <<_ACEOF
16314/* end confdefs.h. */
16315$ac_includes_default
16316int
16317main ()
16318{
16319static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16320test_array [0] = 0
16321
16322 ;
16323 return 0;
16324}
16325_ACEOF
16326rm -f conftest.$ac_objext
16327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16328 (eval $ac_compile) 2>conftest.er1
16329 ac_status=$?
16330 grep -v '^ *+' conftest.er1 >conftest.err
16331 rm -f conftest.er1
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
7357c5b6
AM
16335 { ac_try='test -z "$ac_c_werror_flag"
16336 || test ! -s conftest.err'
d5efd9fc
AM
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try='test -s conftest.$ac_objext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_hi=$ac_mid; break
16349else
16350 echo "$as_me: failed program was:" >&5
16351sed 's/^/| /' conftest.$ac_ext >&5
16352
16353ac_lo=`expr $ac_mid + 1`
16354 if test $ac_lo -le $ac_mid; then
16355 ac_lo= ac_hi=
16356 break
16357 fi
16358 ac_mid=`expr 2 '*' $ac_mid + 1`
16359fi
16360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16361 done
16362else
16363 echo "$as_me: failed program was:" >&5
16364sed 's/^/| /' conftest.$ac_ext >&5
16365
16366cat >conftest.$ac_ext <<_ACEOF
16367/* confdefs.h. */
16368_ACEOF
16369cat confdefs.h >>conftest.$ac_ext
16370cat >>conftest.$ac_ext <<_ACEOF
16371/* end confdefs.h. */
16372$ac_includes_default
16373int
16374main ()
16375{
16376static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16377test_array [0] = 0
16378
16379 ;
16380 return 0;
16381}
16382_ACEOF
16383rm -f conftest.$ac_objext
16384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16385 (eval $ac_compile) 2>conftest.er1
16386 ac_status=$?
16387 grep -v '^ *+' conftest.er1 >conftest.err
16388 rm -f conftest.er1
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
7357c5b6
AM
16392 { ac_try='test -z "$ac_c_werror_flag"
16393 || test ! -s conftest.err'
d5efd9fc
AM
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; } &&
16399 { ac_try='test -s conftest.$ac_objext'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16405 ac_hi=-1 ac_mid=-1
16406 while :; do
16407 cat >conftest.$ac_ext <<_ACEOF
16408/* confdefs.h. */
16409_ACEOF
16410cat confdefs.h >>conftest.$ac_ext
16411cat >>conftest.$ac_ext <<_ACEOF
16412/* end confdefs.h. */
16413$ac_includes_default
16414int
16415main ()
16416{
16417static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16418test_array [0] = 0
16419
16420 ;
16421 return 0;
16422}
16423_ACEOF
16424rm -f conftest.$ac_objext
16425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16426 (eval $ac_compile) 2>conftest.er1
16427 ac_status=$?
16428 grep -v '^ *+' conftest.er1 >conftest.err
16429 rm -f conftest.er1
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
7357c5b6
AM
16433 { ac_try='test -z "$ac_c_werror_flag"
16434 || test ! -s conftest.err'
d5efd9fc
AM
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest.$ac_objext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_lo=$ac_mid; break
16447else
16448 echo "$as_me: failed program was:" >&5
16449sed 's/^/| /' conftest.$ac_ext >&5
16450
16451ac_hi=`expr '(' $ac_mid ')' - 1`
16452 if test $ac_mid -le $ac_hi; then
16453 ac_lo= ac_hi=
16454 break
16455 fi
16456 ac_mid=`expr 2 '*' $ac_mid`
16457fi
16458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16459 done
16460else
16461 echo "$as_me: failed program was:" >&5
16462sed 's/^/| /' conftest.$ac_ext >&5
16463
16464ac_lo= ac_hi=
16465fi
16466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16467fi
16468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16469# Binary search between lo and hi bounds.
16470while test "x$ac_lo" != "x$ac_hi"; do
16471 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16472 cat >conftest.$ac_ext <<_ACEOF
16473/* confdefs.h. */
16474_ACEOF
16475cat confdefs.h >>conftest.$ac_ext
16476cat >>conftest.$ac_ext <<_ACEOF
16477/* end confdefs.h. */
16478$ac_includes_default
16479int
16480main ()
16481{
16482static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16483test_array [0] = 0
16484
16485 ;
16486 return 0;
16487}
16488_ACEOF
16489rm -f conftest.$ac_objext
16490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16491 (eval $ac_compile) 2>conftest.er1
16492 ac_status=$?
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
7357c5b6
AM
16498 { ac_try='test -z "$ac_c_werror_flag"
16499 || test ! -s conftest.err'
d5efd9fc
AM
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_hi=$ac_mid
16512else
16513 echo "$as_me: failed program was:" >&5
16514sed 's/^/| /' conftest.$ac_ext >&5
16515
16516ac_lo=`expr '(' $ac_mid ')' + 1`
16517fi
16518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16519done
16520case $ac_lo in
16521?*) ac_cv_sizeof_short=$ac_lo;;
7357c5b6
AM
16522'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16523echo "$as_me: error: in \`$ac_pwd':" >&2;}
16524{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
d5efd9fc
AM
16525See \`config.log' for more details." >&5
16526echo "$as_me: error: cannot compute sizeof (short), 77
16527See \`config.log' for more details." >&2;}
7357c5b6 16528 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16529esac
16530else
16531 if test "$cross_compiling" = yes; then
7357c5b6
AM
16532 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16533echo "$as_me: error: in \`$ac_pwd':" >&2;}
16534{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16535See \`config.log' for more details." >&5
16536echo "$as_me: error: cannot run test program while cross compiling
16537See \`config.log' for more details." >&2;}
16538 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16539else
16540 cat >conftest.$ac_ext <<_ACEOF
16541/* confdefs.h. */
16542_ACEOF
16543cat confdefs.h >>conftest.$ac_ext
16544cat >>conftest.$ac_ext <<_ACEOF
16545/* end confdefs.h. */
16546$ac_includes_default
16547long longval () { return (long) (sizeof (short)); }
16548unsigned long ulongval () { return (long) (sizeof (short)); }
16549#include <stdio.h>
16550#include <stdlib.h>
16551int
16552main ()
16553{
16554
16555 FILE *f = fopen ("conftest.val", "w");
16556 if (! f)
16557 exit (1);
16558 if (((long) (sizeof (short))) < 0)
16559 {
16560 long i = longval ();
16561 if (i != ((long) (sizeof (short))))
16562 exit (1);
16563 fprintf (f, "%ld\n", i);
16564 }
16565 else
16566 {
16567 unsigned long i = ulongval ();
16568 if (i != ((long) (sizeof (short))))
16569 exit (1);
16570 fprintf (f, "%lu\n", i);
16571 }
16572 exit (ferror (f) || fclose (f) != 0);
16573
16574 ;
16575 return 0;
16576}
16577_ACEOF
16578rm -f conftest$ac_exeext
16579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16580 (eval $ac_link) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; }; then
16589 ac_cv_sizeof_short=`cat conftest.val`
16590else
16591 echo "$as_me: program exited with status $ac_status" >&5
16592echo "$as_me: failed program was:" >&5
16593sed 's/^/| /' conftest.$ac_ext >&5
16594
16595( exit $ac_status )
7357c5b6
AM
16596{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16597echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
16598{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16599See \`config.log' for more details." >&5
16600echo "$as_me: error: cannot compute sizeof (short), 77
16601See \`config.log' for more details." >&2;}
7357c5b6 16602 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16603fi
16604rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16605fi
16606fi
16607rm -f conftest.val
16608else
16609 ac_cv_sizeof_short=0
16610fi
16611fi
16612echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16613echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16614cat >>confdefs.h <<_ACEOF
16615#define SIZEOF_SHORT $ac_cv_sizeof_short
16616_ACEOF
16617
16618
16619 echo "$as_me:$LINENO: checking for char" >&5
16620echo $ECHO_N "checking for char... $ECHO_C" >&6
16621if test "${ac_cv_type_char+set}" = set; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16623else
16624 cat >conftest.$ac_ext <<_ACEOF
16625/* confdefs.h. */
16626_ACEOF
16627cat confdefs.h >>conftest.$ac_ext
16628cat >>conftest.$ac_ext <<_ACEOF
16629/* end confdefs.h. */
16630$ac_includes_default
16631int
16632main ()
16633{
16634if ((char *) 0)
16635 return 0;
16636if (sizeof (char))
16637 return 0;
16638 ;
16639 return 0;
16640}
16641_ACEOF
16642rm -f conftest.$ac_objext
16643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16644 (eval $ac_compile) 2>conftest.er1
16645 ac_status=$?
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
7357c5b6
AM
16651 { ac_try='test -z "$ac_c_werror_flag"
16652 || test ! -s conftest.err'
d5efd9fc
AM
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_type_char=yes
16665else
16666 echo "$as_me: failed program was:" >&5
16667sed 's/^/| /' conftest.$ac_ext >&5
16668
16669ac_cv_type_char=no
16670fi
16671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16672fi
16673echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16674echo "${ECHO_T}$ac_cv_type_char" >&6
16675
16676echo "$as_me:$LINENO: checking size of char" >&5
16677echo $ECHO_N "checking size of char... $ECHO_C" >&6
16678if test "${ac_cv_sizeof_char+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16680else
16681 if test "$ac_cv_type_char" = yes; then
16682 # The cast to unsigned long works around a bug in the HP C Compiler
16683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16685 # This bug is HP SR number 8606223364.
16686 if test "$cross_compiling" = yes; then
16687 # Depending upon the size, compute the lo and hi bounds.
16688cat >conftest.$ac_ext <<_ACEOF
16689/* confdefs.h. */
16690_ACEOF
16691cat confdefs.h >>conftest.$ac_ext
16692cat >>conftest.$ac_ext <<_ACEOF
16693/* end confdefs.h. */
16694$ac_includes_default
16695int
16696main ()
16697{
16698static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16699test_array [0] = 0
16700
16701 ;
16702 return 0;
16703}
16704_ACEOF
16705rm -f conftest.$ac_objext
16706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16707 (eval $ac_compile) 2>conftest.er1
16708 ac_status=$?
16709 grep -v '^ *+' conftest.er1 >conftest.err
16710 rm -f conftest.er1
16711 cat conftest.err >&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
7357c5b6
AM
16714 { ac_try='test -z "$ac_c_werror_flag"
16715 || test ! -s conftest.err'
d5efd9fc
AM
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest.$ac_objext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727 ac_lo=0 ac_mid=0
16728 while :; do
16729 cat >conftest.$ac_ext <<_ACEOF
16730/* confdefs.h. */
16731_ACEOF
16732cat confdefs.h >>conftest.$ac_ext
16733cat >>conftest.$ac_ext <<_ACEOF
16734/* end confdefs.h. */
16735$ac_includes_default
16736int
16737main ()
16738{
16739static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16740test_array [0] = 0
16741
16742 ;
16743 return 0;
16744}
16745_ACEOF
16746rm -f conftest.$ac_objext
16747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16748 (eval $ac_compile) 2>conftest.er1
16749 ac_status=$?
16750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
7357c5b6
AM
16755 { ac_try='test -z "$ac_c_werror_flag"
16756 || test ! -s conftest.err'
d5efd9fc
AM
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest.$ac_objext'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 ac_hi=$ac_mid; break
16769else
16770 echo "$as_me: failed program was:" >&5
16771sed 's/^/| /' conftest.$ac_ext >&5
16772
16773ac_lo=`expr $ac_mid + 1`
16774 if test $ac_lo -le $ac_mid; then
16775 ac_lo= ac_hi=
16776 break
16777 fi
16778 ac_mid=`expr 2 '*' $ac_mid + 1`
16779fi
16780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16781 done
16782else
16783 echo "$as_me: failed program was:" >&5
16784sed 's/^/| /' conftest.$ac_ext >&5
16785
16786cat >conftest.$ac_ext <<_ACEOF
16787/* confdefs.h. */
16788_ACEOF
16789cat confdefs.h >>conftest.$ac_ext
16790cat >>conftest.$ac_ext <<_ACEOF
16791/* end confdefs.h. */
16792$ac_includes_default
16793int
16794main ()
16795{
16796static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16797test_array [0] = 0
16798
16799 ;
16800 return 0;
16801}
16802_ACEOF
16803rm -f conftest.$ac_objext
16804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16805 (eval $ac_compile) 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
7357c5b6
AM
16812 { ac_try='test -z "$ac_c_werror_flag"
16813 || test ! -s conftest.err'
d5efd9fc
AM
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest.$ac_objext'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; }; then
16825 ac_hi=-1 ac_mid=-1
16826 while :; do
16827 cat >conftest.$ac_ext <<_ACEOF
16828/* confdefs.h. */
16829_ACEOF
16830cat confdefs.h >>conftest.$ac_ext
16831cat >>conftest.$ac_ext <<_ACEOF
16832/* end confdefs.h. */
16833$ac_includes_default
16834int
16835main ()
16836{
16837static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16838test_array [0] = 0
16839
16840 ;
16841 return 0;
16842}
16843_ACEOF
16844rm -f conftest.$ac_objext
16845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16846 (eval $ac_compile) 2>conftest.er1
16847 ac_status=$?
16848 grep -v '^ *+' conftest.er1 >conftest.err
16849 rm -f conftest.er1
16850 cat conftest.err >&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
7357c5b6
AM
16853 { ac_try='test -z "$ac_c_werror_flag"
16854 || test ! -s conftest.err'
d5efd9fc
AM
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest.$ac_objext'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 ac_lo=$ac_mid; break
16867else
16868 echo "$as_me: failed program was:" >&5
16869sed 's/^/| /' conftest.$ac_ext >&5
16870
16871ac_hi=`expr '(' $ac_mid ')' - 1`
16872 if test $ac_mid -le $ac_hi; then
16873 ac_lo= ac_hi=
16874 break
16875 fi
16876 ac_mid=`expr 2 '*' $ac_mid`
16877fi
16878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16879 done
16880else
16881 echo "$as_me: failed program was:" >&5
16882sed 's/^/| /' conftest.$ac_ext >&5
16883
16884ac_lo= ac_hi=
16885fi
16886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16887fi
16888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16889# Binary search between lo and hi bounds.
16890while test "x$ac_lo" != "x$ac_hi"; do
16891 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16892 cat >conftest.$ac_ext <<_ACEOF
16893/* confdefs.h. */
16894_ACEOF
16895cat confdefs.h >>conftest.$ac_ext
16896cat >>conftest.$ac_ext <<_ACEOF
16897/* end confdefs.h. */
16898$ac_includes_default
16899int
16900main ()
16901{
16902static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16903test_array [0] = 0
16904
16905 ;
16906 return 0;
16907}
16908_ACEOF
16909rm -f conftest.$ac_objext
16910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911 (eval $ac_compile) 2>conftest.er1
16912 ac_status=$?
16913 grep -v '^ *+' conftest.er1 >conftest.err
16914 rm -f conftest.er1
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
7357c5b6
AM
16918 { ac_try='test -z "$ac_c_werror_flag"
16919 || test ! -s conftest.err'
d5efd9fc
AM
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; } &&
16925 { ac_try='test -s conftest.$ac_objext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_hi=$ac_mid
16932else
16933 echo "$as_me: failed program was:" >&5
16934sed 's/^/| /' conftest.$ac_ext >&5
16935
16936ac_lo=`expr '(' $ac_mid ')' + 1`
16937fi
16938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16939done
16940case $ac_lo in
16941?*) ac_cv_sizeof_char=$ac_lo;;
7357c5b6
AM
16942'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16943echo "$as_me: error: in \`$ac_pwd':" >&2;}
16944{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
d5efd9fc
AM
16945See \`config.log' for more details." >&5
16946echo "$as_me: error: cannot compute sizeof (char), 77
16947See \`config.log' for more details." >&2;}
7357c5b6 16948 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16949esac
16950else
16951 if test "$cross_compiling" = yes; then
7357c5b6
AM
16952 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16953echo "$as_me: error: in \`$ac_pwd':" >&2;}
16954{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16955See \`config.log' for more details." >&5
16956echo "$as_me: error: cannot run test program while cross compiling
16957See \`config.log' for more details." >&2;}
16958 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16959else
16960 cat >conftest.$ac_ext <<_ACEOF
16961/* confdefs.h. */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
16965/* end confdefs.h. */
16966$ac_includes_default
16967long longval () { return (long) (sizeof (char)); }
16968unsigned long ulongval () { return (long) (sizeof (char)); }
16969#include <stdio.h>
16970#include <stdlib.h>
16971int
16972main ()
16973{
16974
16975 FILE *f = fopen ("conftest.val", "w");
16976 if (! f)
16977 exit (1);
16978 if (((long) (sizeof (char))) < 0)
16979 {
16980 long i = longval ();
16981 if (i != ((long) (sizeof (char))))
16982 exit (1);
16983 fprintf (f, "%ld\n", i);
16984 }
16985 else
16986 {
16987 unsigned long i = ulongval ();
16988 if (i != ((long) (sizeof (char))))
16989 exit (1);
16990 fprintf (f, "%lu\n", i);
16991 }
16992 exit (ferror (f) || fclose (f) != 0);
16993
16994 ;
16995 return 0;
16996}
16997_ACEOF
16998rm -f conftest$ac_exeext
16999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17000 (eval $ac_link) 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 ac_cv_sizeof_char=`cat conftest.val`
17010else
17011 echo "$as_me: program exited with status $ac_status" >&5
17012echo "$as_me: failed program was:" >&5
17013sed 's/^/| /' conftest.$ac_ext >&5
17014
17015( exit $ac_status )
7357c5b6
AM
17016{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17017echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
17018{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17019See \`config.log' for more details." >&5
17020echo "$as_me: error: cannot compute sizeof (char), 77
17021See \`config.log' for more details." >&2;}
7357c5b6 17022 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
17023fi
17024rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17025fi
17026fi
17027rm -f conftest.val
17028else
17029 ac_cv_sizeof_char=0
17030fi
17031fi
17032echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17033echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17034cat >>confdefs.h <<_ACEOF
17035#define SIZEOF_CHAR $ac_cv_sizeof_char
17036_ACEOF
17037
17038
17039
17040 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17041echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17042 case "$ac_cv_sizeof_char" in
17043 1) acx_cv_type_int8_t=char ;;
17044 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17045echo "$as_me: error: no 8-bit type" >&2;}
17046 { (exit please report a bug); exit please report a bug; }; }
17047 esac
17048 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17049echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17050
17051 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17052echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17053 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17054 2:*) acx_cv_type_int16_t=int ;;
17055 *:2) acx_cv_type_int16_t=short ;;
17056 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17057echo "$as_me: error: no 16-bit type" >&2;}
17058 { (exit please report a bug); exit please report a bug; }; }
17059 esac
17060 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17061echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17062
17063 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17064echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17065 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17066 4:*) acx_cv_type_int32_t=int ;;
17067 *:4) acx_cv_type_int32_t=long ;;
17068 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17069echo "$as_me: error: no 32-bit type" >&2;}
17070 { (exit please report a bug); exit please report a bug; }; }
17071 esac
17072 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17073echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17074fi
17075
17076# These tests are here to make the output prettier
17077
17078if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17079 case "$ac_cv_sizeof_long" in
17080 8) acx_cv_type_int64_t=long ;;
17081 esac
17082 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17083echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17084 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17085echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17086fi
17087
17088# Now we can use the above types
17089
17090if test "$ac_cv_type_uintptr_t" != yes; then
17091 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17092echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17093 case $ac_cv_sizeof_void_p in
17094 2) acx_cv_type_intptr_t=int16_t ;;
17095 4) acx_cv_type_intptr_t=int32_t ;;
17096 8) acx_cv_type_intptr_t=int64_t ;;
17097 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17098echo "$as_me: error: no equivalent for intptr_t" >&2;}
17099 { (exit please report a bug); exit please report a bug; }; }
17100 esac
17101 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17102echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17103fi
17104
17105# ----------------- done all checks, emit header -------------
17106 ac_config_commands="$ac_config_commands bfd_stdint.h"
17107
17108
17109
2ba49b59
KC
17110echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17111echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17112if test "${ac_cv_header_time+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17114else
17115 cat >conftest.$ac_ext <<_ACEOF
17116/* confdefs.h. */
17117_ACEOF
17118cat confdefs.h >>conftest.$ac_ext
17119cat >>conftest.$ac_ext <<_ACEOF
17120/* end confdefs.h. */
17121#include <sys/types.h>
17122#include <sys/time.h>
17123#include <time.h>
17124
17125int
17126main ()
17127{
17128if ((struct tm *) 0)
17129return 0;
17130 ;
17131 return 0;
17132}
17133_ACEOF
17134rm -f conftest.$ac_objext
17135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17136 (eval $ac_compile) 2>conftest.er1
17137 ac_status=$?
17138 grep -v '^ *+' conftest.er1 >conftest.err
17139 rm -f conftest.er1
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } &&
7357c5b6
AM
17143 { ac_try='test -z "$ac_c_werror_flag"
17144 || test ! -s conftest.err'
2ba49b59
KC
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17147 ac_status=$?
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; } &&
17150 { ac_try='test -s conftest.$ac_objext'
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 ac_cv_header_time=yes
17157else
17158 echo "$as_me: failed program was:" >&5
17159sed 's/^/| /' conftest.$ac_ext >&5
17160
17161ac_cv_header_time=no
17162fi
17163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17164fi
17165echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17166echo "${ECHO_T}$ac_cv_header_time" >&6
17167if test $ac_cv_header_time = yes; then
17168
17169cat >>confdefs.h <<\_ACEOF
17170#define TIME_WITH_SYS_TIME 1
17171_ACEOF
17172
17173fi
17174
17175
17176
17177
17178
17179
17180ac_header_dirent=no
17181for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17182 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17183echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17184echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17185if eval "test \"\${$as_ac_Header+set}\" = set"; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17187else
17188 cat >conftest.$ac_ext <<_ACEOF
17189/* confdefs.h. */
17190_ACEOF
17191cat confdefs.h >>conftest.$ac_ext
17192cat >>conftest.$ac_ext <<_ACEOF
17193/* end confdefs.h. */
17194#include <sys/types.h>
17195#include <$ac_hdr>
17196
17197int
17198main ()
17199{
17200if ((DIR *) 0)
17201return 0;
17202 ;
17203 return 0;
17204}
17205_ACEOF
17206rm -f conftest.$ac_objext
17207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17208 (eval $ac_compile) 2>conftest.er1
17209 ac_status=$?
17210 grep -v '^ *+' conftest.er1 >conftest.err
17211 rm -f conftest.er1
17212 cat conftest.err >&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } &&
7357c5b6
AM
17215 { ac_try='test -z "$ac_c_werror_flag"
17216 || test ! -s conftest.err'
2ba49b59
KC
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; } &&
17222 { ac_try='test -s conftest.$ac_objext'
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; }; then
17228 eval "$as_ac_Header=yes"
17229else
17230 echo "$as_me: failed program was:" >&5
17231sed 's/^/| /' conftest.$ac_ext >&5
17232
17233eval "$as_ac_Header=no"
17234fi
17235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17236fi
17237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17239if test `eval echo '${'$as_ac_Header'}'` = yes; then
17240 cat >>confdefs.h <<_ACEOF
17241#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17242_ACEOF
17243
17244ac_header_dirent=$ac_hdr; break
17245fi
17246
17247done
17248# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17249if test $ac_header_dirent = dirent.h; then
17250 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17251echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17252if test "${ac_cv_search_opendir+set}" = set; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17254else
17255 ac_func_search_save_LIBS=$LIBS
17256ac_cv_search_opendir=no
17257cat >conftest.$ac_ext <<_ACEOF
17258/* confdefs.h. */
17259_ACEOF
17260cat confdefs.h >>conftest.$ac_ext
17261cat >>conftest.$ac_ext <<_ACEOF
17262/* end confdefs.h. */
17263
17264/* Override any gcc2 internal prototype to avoid an error. */
17265#ifdef __cplusplus
17266extern "C"
17267#endif
17268/* We use char because int might match the return type of a gcc2
17269 builtin and then its argument prototype would still apply. */
17270char opendir ();
17271int
17272main ()
17273{
17274opendir ();
17275 ;
17276 return 0;
17277}
17278_ACEOF
17279rm -f conftest.$ac_objext conftest$ac_exeext
17280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17281 (eval $ac_link) 2>conftest.er1
17282 ac_status=$?
17283 grep -v '^ *+' conftest.er1 >conftest.err
17284 rm -f conftest.er1
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } &&
7357c5b6
AM
17288 { ac_try='test -z "$ac_c_werror_flag"
17289 || test ! -s conftest.err'
2ba49b59
KC
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest$ac_exeext'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_cv_search_opendir="none required"
17302else
17303 echo "$as_me: failed program was:" >&5
17304sed 's/^/| /' conftest.$ac_ext >&5
17305
17306fi
17307rm -f conftest.err conftest.$ac_objext \
17308 conftest$ac_exeext conftest.$ac_ext
17309if test "$ac_cv_search_opendir" = no; then
17310 for ac_lib in dir; do
17311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17312 cat >conftest.$ac_ext <<_ACEOF
17313/* confdefs.h. */
17314_ACEOF
17315cat confdefs.h >>conftest.$ac_ext
17316cat >>conftest.$ac_ext <<_ACEOF
17317/* end confdefs.h. */
17318
17319/* Override any gcc2 internal prototype to avoid an error. */
17320#ifdef __cplusplus
17321extern "C"
17322#endif
17323/* We use char because int might match the return type of a gcc2
17324 builtin and then its argument prototype would still apply. */
17325char opendir ();
17326int
17327main ()
17328{
17329opendir ();
17330 ;
17331 return 0;
17332}
17333_ACEOF
17334rm -f conftest.$ac_objext conftest$ac_exeext
17335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17336 (eval $ac_link) 2>conftest.er1
17337 ac_status=$?
17338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
7357c5b6
AM
17343 { ac_try='test -z "$ac_c_werror_flag"
17344 || test ! -s conftest.err'
2ba49b59
KC
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17347 ac_status=$?
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; } &&
17350 { ac_try='test -s conftest$ac_exeext'
17351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 (eval $ac_try) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; }; then
17356 ac_cv_search_opendir="-l$ac_lib"
17357break
17358else
17359 echo "$as_me: failed program was:" >&5
17360sed 's/^/| /' conftest.$ac_ext >&5
17361
17362fi
17363rm -f conftest.err conftest.$ac_objext \
17364 conftest$ac_exeext conftest.$ac_ext
17365 done
17366fi
17367LIBS=$ac_func_search_save_LIBS
17368fi
17369echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17370echo "${ECHO_T}$ac_cv_search_opendir" >&6
17371if test "$ac_cv_search_opendir" != no; then
17372 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17373
17374fi
17375
17376else
17377 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17378echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17379if test "${ac_cv_search_opendir+set}" = set; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17381else
17382 ac_func_search_save_LIBS=$LIBS
17383ac_cv_search_opendir=no
17384cat >conftest.$ac_ext <<_ACEOF
17385/* confdefs.h. */
17386_ACEOF
17387cat confdefs.h >>conftest.$ac_ext
17388cat >>conftest.$ac_ext <<_ACEOF
17389/* end confdefs.h. */
17390
17391/* Override any gcc2 internal prototype to avoid an error. */
17392#ifdef __cplusplus
17393extern "C"
17394#endif
17395/* We use char because int might match the return type of a gcc2
17396 builtin and then its argument prototype would still apply. */
17397char opendir ();
17398int
17399main ()
17400{
17401opendir ();
17402 ;
17403 return 0;
17404}
17405_ACEOF
17406rm -f conftest.$ac_objext conftest$ac_exeext
17407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17408 (eval $ac_link) 2>conftest.er1
17409 ac_status=$?
17410 grep -v '^ *+' conftest.er1 >conftest.err
17411 rm -f conftest.er1
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } &&
7357c5b6
AM
17415 { ac_try='test -z "$ac_c_werror_flag"
17416 || test ! -s conftest.err'
2ba49b59
KC
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; } &&
17422 { ac_try='test -s conftest$ac_exeext'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 ac_cv_search_opendir="none required"
17429else
17430 echo "$as_me: failed program was:" >&5
17431sed 's/^/| /' conftest.$ac_ext >&5
17432
17433fi
17434rm -f conftest.err conftest.$ac_objext \
17435 conftest$ac_exeext conftest.$ac_ext
17436if test "$ac_cv_search_opendir" = no; then
17437 for ac_lib in x; do
17438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17439 cat >conftest.$ac_ext <<_ACEOF
17440/* confdefs.h. */
17441_ACEOF
17442cat confdefs.h >>conftest.$ac_ext
17443cat >>conftest.$ac_ext <<_ACEOF
17444/* end confdefs.h. */
17445
17446/* Override any gcc2 internal prototype to avoid an error. */
17447#ifdef __cplusplus
17448extern "C"
17449#endif
17450/* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17452char opendir ();
17453int
17454main ()
17455{
17456opendir ();
17457 ;
17458 return 0;
17459}
17460_ACEOF
17461rm -f conftest.$ac_objext conftest$ac_exeext
17462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17463 (eval $ac_link) 2>conftest.er1
17464 ac_status=$?
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
7357c5b6
AM
17470 { ac_try='test -z "$ac_c_werror_flag"
17471 || test ! -s conftest.err'
2ba49b59
KC
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest$ac_exeext'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; }; then
17483 ac_cv_search_opendir="-l$ac_lib"
17484break
17485else
17486 echo "$as_me: failed program was:" >&5
17487sed 's/^/| /' conftest.$ac_ext >&5
17488
17489fi
17490rm -f conftest.err conftest.$ac_objext \
17491 conftest$ac_exeext conftest.$ac_ext
17492 done
17493fi
17494LIBS=$ac_func_search_save_LIBS
17495fi
17496echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17497echo "${ECHO_T}$ac_cv_search_opendir" >&6
17498if test "$ac_cv_search_opendir" != no; then
17499 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17500
17501fi
17502
17503fi
17504
17505echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
17506echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
17507if test "${gcc_cv_header_string+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17509else
17510 cat >conftest.$ac_ext <<_ACEOF
17511/* confdefs.h. */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h. */
17516#include <string.h>
17517#include <strings.h>
17518int
17519main ()
17520{
17521
17522 ;
17523 return 0;
17524}
17525_ACEOF
17526rm -f conftest.$ac_objext
17527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17528 (eval $ac_compile) 2>conftest.er1
17529 ac_status=$?
17530 grep -v '^ *+' conftest.er1 >conftest.err
17531 rm -f conftest.er1
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
7357c5b6
AM
17535 { ac_try='test -z "$ac_c_werror_flag"
17536 || test ! -s conftest.err'
2ba49b59
KC
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest.$ac_objext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 gcc_cv_header_string=yes
17549else
17550 echo "$as_me: failed program was:" >&5
17551sed 's/^/| /' conftest.$ac_ext >&5
17552
17553gcc_cv_header_string=no
17554fi
17555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17556fi
17557echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
17558echo "${ECHO_T}$gcc_cv_header_string" >&6
17559if test $gcc_cv_header_string = yes; then
17560
17561cat >>confdefs.h <<\_ACEOF
17562#define STRING_WITH_STRINGS 1
17563_ACEOF
17564
2e0fbf77
JW
17565fi
17566
5464f5a1
NN
17567
17568
17569
17570
17571
17572
17573
428b207a
TT
17574
17575for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
252b5132 17576do
5464f5a1
NN
17577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17578echo "$as_me:$LINENO: checking for $ac_func" >&5
17579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17580if eval "test \"\${$as_ac_var+set}\" = set"; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17582else
17583 cat >conftest.$ac_ext <<_ACEOF
17584/* confdefs.h. */
17585_ACEOF
17586cat confdefs.h >>conftest.$ac_ext
17587cat >>conftest.$ac_ext <<_ACEOF
17588/* end confdefs.h. */
17589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17591#define $ac_func innocuous_$ac_func
17592
252b5132 17593/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
17594 which can conflict with char $ac_func (); below.
17595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17596 <limits.h> exists even on freestanding compilers. */
17597
17598#ifdef __STDC__
17599# include <limits.h>
17600#else
17601# include <assert.h>
17602#endif
6be7c12c 17603
5464f5a1 17604#undef $ac_func
252b5132 17605
5464f5a1
NN
17606/* Override any gcc2 internal prototype to avoid an error. */
17607#ifdef __cplusplus
17608extern "C"
17609{
17610#endif
17611/* We use char because int might match the return type of a gcc2
17612 builtin and then its argument prototype would still apply. */
17613char $ac_func ();
252b5132
RH
17614/* The GNU C library defines this for functions which it implements
17615 to always fail with ENOSYS. Some functions are actually named
17616 something starting with __ and the normal name is an alias. */
17617#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17618choke me
17619#else
5464f5a1
NN
17620char (*f) () = $ac_func;
17621#endif
17622#ifdef __cplusplus
17623}
252b5132
RH
17624#endif
17625
5464f5a1
NN
17626int
17627main ()
17628{
17629return f != $ac_func;
17630 ;
17631 return 0;
17632}
17633_ACEOF
17634rm -f conftest.$ac_objext conftest$ac_exeext
17635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17636 (eval $ac_link) 2>conftest.er1
17637 ac_status=$?
17638 grep -v '^ *+' conftest.er1 >conftest.err
17639 rm -f conftest.er1
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
7357c5b6
AM
17643 { ac_try='test -z "$ac_c_werror_flag"
17644 || test ! -s conftest.err'
5464f5a1
NN
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; } &&
17650 { ac_try='test -s conftest$ac_exeext'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
17656 eval "$as_ac_var=yes"
17657else
17658 echo "$as_me: failed program was:" >&5
17659sed 's/^/| /' conftest.$ac_ext >&5
17660
17661eval "$as_ac_var=no"
17662fi
17663rm -f conftest.err conftest.$ac_objext \
17664 conftest$ac_exeext conftest.$ac_ext
17665fi
17666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17667echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17668if test `eval echo '${'$as_ac_var'}'` = yes; then
17669 cat >>confdefs.h <<_ACEOF
17670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17671_ACEOF
252b5132 17672
252b5132
RH
17673fi
17674done
17675
5464f5a1 17676
49c97a80
ILT
17677for ac_func in strtoull
17678do
5464f5a1
NN
17679as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17680echo "$as_me:$LINENO: checking for $ac_func" >&5
17681echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17682if eval "test \"\${$as_ac_var+set}\" = set"; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17684else
17685 cat >conftest.$ac_ext <<_ACEOF
17686/* confdefs.h. */
17687_ACEOF
17688cat confdefs.h >>conftest.$ac_ext
17689cat >>conftest.$ac_ext <<_ACEOF
17690/* end confdefs.h. */
17691/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17693#define $ac_func innocuous_$ac_func
17694
49c97a80 17695/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
17696 which can conflict with char $ac_func (); below.
17697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17698 <limits.h> exists even on freestanding compilers. */
17699
17700#ifdef __STDC__
17701# include <limits.h>
17702#else
17703# include <assert.h>
17704#endif
49c97a80 17705
5464f5a1 17706#undef $ac_func
49c97a80 17707
5464f5a1
NN
17708/* Override any gcc2 internal prototype to avoid an error. */
17709#ifdef __cplusplus
17710extern "C"
17711{
17712#endif
17713/* We use char because int might match the return type of a gcc2
17714 builtin and then its argument prototype would still apply. */
17715char $ac_func ();
49c97a80
ILT
17716/* The GNU C library defines this for functions which it implements
17717 to always fail with ENOSYS. Some functions are actually named
17718 something starting with __ and the normal name is an alias. */
17719#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17720choke me
17721#else
5464f5a1
NN
17722char (*f) () = $ac_func;
17723#endif
17724#ifdef __cplusplus
17725}
49c97a80
ILT
17726#endif
17727
5464f5a1
NN
17728int
17729main ()
17730{
17731return f != $ac_func;
17732 ;
17733 return 0;
17734}
17735_ACEOF
17736rm -f conftest.$ac_objext conftest$ac_exeext
17737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17738 (eval $ac_link) 2>conftest.er1
17739 ac_status=$?
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } &&
7357c5b6
AM
17745 { ac_try='test -z "$ac_c_werror_flag"
17746 || test ! -s conftest.err'
5464f5a1
NN
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; } &&
17752 { ac_try='test -s conftest$ac_exeext'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 eval "$as_ac_var=yes"
17759else
17760 echo "$as_me: failed program was:" >&5
17761sed 's/^/| /' conftest.$ac_ext >&5
17762
17763eval "$as_ac_var=no"
17764fi
17765rm -f conftest.err conftest.$ac_objext \
17766 conftest$ac_exeext conftest.$ac_ext
17767fi
17768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17769echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17770if test `eval echo '${'$as_ac_var'}'` = yes; then
17771 cat >>confdefs.h <<_ACEOF
17772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17773_ACEOF
49c97a80 17774
49c97a80
ILT
17775fi
17776done
17777
6be7c12c 17778
2e9ebff5
JG
17779echo "$as_me:$LINENO: checking whether basename is declared" >&5
17780echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17781if test "${ac_cv_have_decl_basename+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17783else
17784 cat >conftest.$ac_ext <<_ACEOF
17785/* confdefs.h. */
17786_ACEOF
17787cat confdefs.h >>conftest.$ac_ext
17788cat >>conftest.$ac_ext <<_ACEOF
17789/* end confdefs.h. */
ec7b76fe 17790$ac_includes_default
2e9ebff5
JG
17791int
17792main ()
17793{
17794#ifndef basename
17795 char *p = (char *) basename;
17796#endif
17797
17798 ;
17799 return 0;
17800}
17801_ACEOF
17802rm -f conftest.$ac_objext
17803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17804 (eval $ac_compile) 2>conftest.er1
17805 ac_status=$?
17806 grep -v '^ *+' conftest.er1 >conftest.err
17807 rm -f conftest.er1
17808 cat conftest.err >&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
7357c5b6
AM
17811 { ac_try='test -z "$ac_c_werror_flag"
17812 || test ! -s conftest.err'
2e9ebff5
JG
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest.$ac_objext'
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_cv_have_decl_basename=yes
17825else
17826 echo "$as_me: failed program was:" >&5
17827sed 's/^/| /' conftest.$ac_ext >&5
17828
17829ac_cv_have_decl_basename=no
17830fi
17831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17832fi
17833echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17834echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17835if test $ac_cv_have_decl_basename = yes; then
17836
17837cat >>confdefs.h <<_ACEOF
17838#define HAVE_DECL_BASENAME 1
17839_ACEOF
17840
17841
17842else
17843 cat >>confdefs.h <<_ACEOF
17844#define HAVE_DECL_BASENAME 0
17845_ACEOF
17846
17847
17848fi
17849
17850
ec7b76fe
JG
17851echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17852echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17853if test "${ac_cv_have_decl_ftello+set}" = set; then
17854 echo $ECHO_N "(cached) $ECHO_C" >&6
17855else
17856 cat >conftest.$ac_ext <<_ACEOF
17857/* confdefs.h. */
17858_ACEOF
17859cat confdefs.h >>conftest.$ac_ext
17860cat >>conftest.$ac_ext <<_ACEOF
17861/* end confdefs.h. */
17862$ac_includes_default
17863int
17864main ()
17865{
17866#ifndef ftello
17867 char *p = (char *) ftello;
17868#endif
17869
17870 ;
17871 return 0;
17872}
17873_ACEOF
17874rm -f conftest.$ac_objext
17875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17876 (eval $ac_compile) 2>conftest.er1
17877 ac_status=$?
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
7357c5b6
AM
17883 { ac_try='test -z "$ac_c_werror_flag"
17884 || test ! -s conftest.err'
ec7b76fe
JG
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest.$ac_objext'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_have_decl_ftello=yes
17897else
17898 echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901ac_cv_have_decl_ftello=no
17902fi
17903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17904fi
17905echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17906echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17907if test $ac_cv_have_decl_ftello = yes; then
17908
17909cat >>confdefs.h <<_ACEOF
17910#define HAVE_DECL_FTELLO 1
17911_ACEOF
17912
17913
17914else
17915 cat >>confdefs.h <<_ACEOF
17916#define HAVE_DECL_FTELLO 0
17917_ACEOF
17918
17919
17920fi
17921
17922
17923echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17924echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17925if test "${ac_cv_have_decl_ftello64+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17927else
17928 cat >conftest.$ac_ext <<_ACEOF
17929/* confdefs.h. */
17930_ACEOF
17931cat confdefs.h >>conftest.$ac_ext
17932cat >>conftest.$ac_ext <<_ACEOF
17933/* end confdefs.h. */
17934$ac_includes_default
17935int
17936main ()
17937{
17938#ifndef ftello64
17939 char *p = (char *) ftello64;
17940#endif
17941
17942 ;
17943 return 0;
17944}
17945_ACEOF
17946rm -f conftest.$ac_objext
17947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17948 (eval $ac_compile) 2>conftest.er1
17949 ac_status=$?
17950 grep -v '^ *+' conftest.er1 >conftest.err
17951 rm -f conftest.er1
17952 cat conftest.err >&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } &&
7357c5b6
AM
17955 { ac_try='test -z "$ac_c_werror_flag"
17956 || test ! -s conftest.err'
ec7b76fe
JG
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17959 ac_status=$?
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; } &&
17962 { ac_try='test -s conftest.$ac_objext'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 ac_cv_have_decl_ftello64=yes
17969else
17970 echo "$as_me: failed program was:" >&5
17971sed 's/^/| /' conftest.$ac_ext >&5
17972
17973ac_cv_have_decl_ftello64=no
17974fi
17975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17976fi
17977echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
17978echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
17979if test $ac_cv_have_decl_ftello64 = yes; then
17980
17981cat >>confdefs.h <<_ACEOF
17982#define HAVE_DECL_FTELLO64 1
17983_ACEOF
17984
17985
17986else
17987 cat >>confdefs.h <<_ACEOF
17988#define HAVE_DECL_FTELLO64 0
17989_ACEOF
17990
17991
17992fi
17993
17994
17995echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
17996echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
17997if test "${ac_cv_have_decl_fseeko+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
17999else
18000 cat >conftest.$ac_ext <<_ACEOF
18001/* confdefs.h. */
18002_ACEOF
18003cat confdefs.h >>conftest.$ac_ext
18004cat >>conftest.$ac_ext <<_ACEOF
18005/* end confdefs.h. */
18006$ac_includes_default
18007int
18008main ()
18009{
18010#ifndef fseeko
18011 char *p = (char *) fseeko;
18012#endif
18013
18014 ;
18015 return 0;
18016}
18017_ACEOF
18018rm -f conftest.$ac_objext
18019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18020 (eval $ac_compile) 2>conftest.er1
18021 ac_status=$?
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
7357c5b6
AM
18027 { ac_try='test -z "$ac_c_werror_flag"
18028 || test ! -s conftest.err'
ec7b76fe
JG
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; } &&
18034 { ac_try='test -s conftest.$ac_objext'
18035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036 (eval $ac_try) 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18040 ac_cv_have_decl_fseeko=yes
18041else
18042 echo "$as_me: failed program was:" >&5
18043sed 's/^/| /' conftest.$ac_ext >&5
18044
18045ac_cv_have_decl_fseeko=no
18046fi
18047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18048fi
18049echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
18050echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
18051if test $ac_cv_have_decl_fseeko = yes; then
18052
18053cat >>confdefs.h <<_ACEOF
18054#define HAVE_DECL_FSEEKO 1
18055_ACEOF
18056
18057
18058else
18059 cat >>confdefs.h <<_ACEOF
18060#define HAVE_DECL_FSEEKO 0
18061_ACEOF
18062
18063
18064fi
18065
18066
18067echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
18068echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
18069if test "${ac_cv_have_decl_fseeko64+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18071else
18072 cat >conftest.$ac_ext <<_ACEOF
18073/* confdefs.h. */
18074_ACEOF
18075cat confdefs.h >>conftest.$ac_ext
18076cat >>conftest.$ac_ext <<_ACEOF
18077/* end confdefs.h. */
18078$ac_includes_default
18079int
18080main ()
18081{
18082#ifndef fseeko64
18083 char *p = (char *) fseeko64;
18084#endif
18085
18086 ;
18087 return 0;
18088}
18089_ACEOF
18090rm -f conftest.$ac_objext
18091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18092 (eval $ac_compile) 2>conftest.er1
18093 ac_status=$?
18094 grep -v '^ *+' conftest.er1 >conftest.err
18095 rm -f conftest.er1
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
7357c5b6
AM
18099 { ac_try='test -z "$ac_c_werror_flag"
18100 || test ! -s conftest.err'
ec7b76fe
JG
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; } &&
18106 { ac_try='test -s conftest.$ac_objext'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18112 ac_cv_have_decl_fseeko64=yes
18113else
18114 echo "$as_me: failed program was:" >&5
18115sed 's/^/| /' conftest.$ac_ext >&5
18116
18117ac_cv_have_decl_fseeko64=no
18118fi
18119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18120fi
18121echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
18122echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
18123if test $ac_cv_have_decl_fseeko64 = yes; then
18124
18125cat >>confdefs.h <<_ACEOF
18126#define HAVE_DECL_FSEEKO64 1
18127_ACEOF
18128
18129
18130else
18131 cat >>confdefs.h <<_ACEOF
18132#define HAVE_DECL_FSEEKO64 0
18133_ACEOF
18134
18135
18136fi
18137
18138
2e9ebff5 18139
6be7c12c 18140
252b5132 18141case "${host}" in
855b0be7 18142*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
18143
18144cat >>confdefs.h <<\_ACEOF
252b5132 18145#define USE_BINARY_FOPEN 1
5464f5a1 18146_ACEOF
252b5132
RH
18147 ;;
18148esac
18149
d34a2b1d
JG
18150echo "$as_me:$LINENO: checking whether ffs is declared" >&5
18151echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
18152if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 18153 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18154else
5464f5a1
NN
18155 cat >conftest.$ac_ext <<_ACEOF
18156/* confdefs.h. */
18157_ACEOF
18158cat confdefs.h >>conftest.$ac_ext
18159cat >>conftest.$ac_ext <<_ACEOF
18160/* end confdefs.h. */
d34a2b1d 18161$ac_includes_default
5464f5a1
NN
18162int
18163main ()
18164{
d34a2b1d
JG
18165#ifndef ffs
18166 char *p = (char *) ffs;
18167#endif
18168
5464f5a1
NN
18169 ;
18170 return 0;
18171}
18172_ACEOF
18173rm -f conftest.$ac_objext
18174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18175 (eval $ac_compile) 2>conftest.er1
18176 ac_status=$?
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
7357c5b6
AM
18182 { ac_try='test -z "$ac_c_werror_flag"
18183 || test ! -s conftest.err'
5464f5a1
NN
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest.$ac_objext'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
d34a2b1d 18195 ac_cv_have_decl_ffs=yes
252b5132 18196else
5464f5a1
NN
18197 echo "$as_me: failed program was:" >&5
18198sed 's/^/| /' conftest.$ac_ext >&5
18199
d34a2b1d 18200ac_cv_have_decl_ffs=no
252b5132 18201fi
5464f5a1 18202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18203fi
d34a2b1d
JG
18204echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
18205echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
18206if test $ac_cv_have_decl_ffs = yes; then
252b5132 18207
d34a2b1d
JG
18208cat >>confdefs.h <<_ACEOF
18209#define HAVE_DECL_FFS 1
18210_ACEOF
5464f5a1 18211
d34a2b1d
JG
18212
18213else
18214 cat >>confdefs.h <<_ACEOF
18215#define HAVE_DECL_FFS 0
5464f5a1 18216_ACEOF
252b5132 18217
d34a2b1d 18218
252b5132
RH
18219fi
18220
d34a2b1d
JG
18221
18222echo "$as_me:$LINENO: checking whether free is declared" >&5
18223echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18224if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 18225 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18226else
5464f5a1
NN
18227 cat >conftest.$ac_ext <<_ACEOF
18228/* confdefs.h. */
18229_ACEOF
18230cat confdefs.h >>conftest.$ac_ext
18231cat >>conftest.$ac_ext <<_ACEOF
18232/* end confdefs.h. */
d34a2b1d 18233$ac_includes_default
5464f5a1
NN
18234int
18235main ()
18236{
d34a2b1d
JG
18237#ifndef free
18238 char *p = (char *) free;
18239#endif
18240
5464f5a1
NN
18241 ;
18242 return 0;
18243}
18244_ACEOF
18245rm -f conftest.$ac_objext
18246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18247 (eval $ac_compile) 2>conftest.er1
18248 ac_status=$?
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
7357c5b6
AM
18254 { ac_try='test -z "$ac_c_werror_flag"
18255 || test ! -s conftest.err'
5464f5a1
NN
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest.$ac_objext'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
d34a2b1d 18267 ac_cv_have_decl_free=yes
252b5132 18268else
5464f5a1
NN
18269 echo "$as_me: failed program was:" >&5
18270sed 's/^/| /' conftest.$ac_ext >&5
18271
d34a2b1d 18272ac_cv_have_decl_free=no
252b5132 18273fi
5464f5a1 18274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18275fi
d34a2b1d
JG
18276echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18277echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18278if test $ac_cv_have_decl_free = yes; then
18279
18280cat >>confdefs.h <<_ACEOF
18281#define HAVE_DECL_FREE 1
18282_ACEOF
252b5132 18283
5464f5a1 18284
d34a2b1d
JG
18285else
18286 cat >>confdefs.h <<_ACEOF
18287#define HAVE_DECL_FREE 0
5464f5a1 18288_ACEOF
252b5132 18289
d34a2b1d 18290
252b5132
RH
18291fi
18292
d34a2b1d
JG
18293
18294echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18295echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18296if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 18297 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18298else
5464f5a1
NN
18299 cat >conftest.$ac_ext <<_ACEOF
18300/* confdefs.h. */
18301_ACEOF
18302cat confdefs.h >>conftest.$ac_ext
18303cat >>conftest.$ac_ext <<_ACEOF
18304/* end confdefs.h. */
d34a2b1d 18305$ac_includes_default
5464f5a1
NN
18306int
18307main ()
18308{
d34a2b1d
JG
18309#ifndef getenv
18310 char *p = (char *) getenv;
18311#endif
18312
5464f5a1
NN
18313 ;
18314 return 0;
18315}
18316_ACEOF
18317rm -f conftest.$ac_objext
18318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18319 (eval $ac_compile) 2>conftest.er1
18320 ac_status=$?
18321 grep -v '^ *+' conftest.er1 >conftest.err
18322 rm -f conftest.er1
18323 cat conftest.err >&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } &&
7357c5b6
AM
18326 { ac_try='test -z "$ac_c_werror_flag"
18327 || test ! -s conftest.err'
5464f5a1
NN
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; } &&
18333 { ac_try='test -s conftest.$ac_objext'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
d34a2b1d 18339 ac_cv_have_decl_getenv=yes
252b5132 18340else
5464f5a1
NN
18341 echo "$as_me: failed program was:" >&5
18342sed 's/^/| /' conftest.$ac_ext >&5
18343
d34a2b1d 18344ac_cv_have_decl_getenv=no
252b5132 18345fi
5464f5a1 18346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18347fi
d34a2b1d
JG
18348echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18349echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18350if test $ac_cv_have_decl_getenv = yes; then
252b5132 18351
d34a2b1d
JG
18352cat >>confdefs.h <<_ACEOF
18353#define HAVE_DECL_GETENV 1
18354_ACEOF
5464f5a1 18355
d34a2b1d
JG
18356
18357else
18358 cat >>confdefs.h <<_ACEOF
18359#define HAVE_DECL_GETENV 0
5464f5a1 18360_ACEOF
252b5132 18361
d34a2b1d 18362
252b5132
RH
18363fi
18364
d34a2b1d
JG
18365
18366echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18367echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18368if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 18369 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18370else
5464f5a1
NN
18371 cat >conftest.$ac_ext <<_ACEOF
18372/* confdefs.h. */
18373_ACEOF
18374cat confdefs.h >>conftest.$ac_ext
18375cat >>conftest.$ac_ext <<_ACEOF
18376/* end confdefs.h. */
d34a2b1d 18377$ac_includes_default
5464f5a1
NN
18378int
18379main ()
18380{
d34a2b1d
JG
18381#ifndef malloc
18382 char *p = (char *) malloc;
18383#endif
18384
5464f5a1
NN
18385 ;
18386 return 0;
18387}
18388_ACEOF
18389rm -f conftest.$ac_objext
18390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18391 (eval $ac_compile) 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
7357c5b6
AM
18398 { ac_try='test -z "$ac_c_werror_flag"
18399 || test ! -s conftest.err'
5464f5a1
NN
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; } &&
18405 { ac_try='test -s conftest.$ac_objext'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; }; then
d34a2b1d 18411 ac_cv_have_decl_malloc=yes
252b5132 18412else
5464f5a1
NN
18413 echo "$as_me: failed program was:" >&5
18414sed 's/^/| /' conftest.$ac_ext >&5
18415
d34a2b1d 18416ac_cv_have_decl_malloc=no
252b5132 18417fi
5464f5a1 18418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18419fi
d34a2b1d
JG
18420echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18421echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18422if test $ac_cv_have_decl_malloc = yes; then
252b5132 18423
d34a2b1d
JG
18424cat >>confdefs.h <<_ACEOF
18425#define HAVE_DECL_MALLOC 1
18426_ACEOF
5464f5a1 18427
d34a2b1d
JG
18428
18429else
18430 cat >>confdefs.h <<_ACEOF
18431#define HAVE_DECL_MALLOC 0
5464f5a1 18432_ACEOF
252b5132 18433
d34a2b1d 18434
252b5132
RH
18435fi
18436
d34a2b1d
JG
18437
18438echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18439echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18440if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 18441 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18442else
5464f5a1
NN
18443 cat >conftest.$ac_ext <<_ACEOF
18444/* confdefs.h. */
18445_ACEOF
18446cat confdefs.h >>conftest.$ac_ext
18447cat >>conftest.$ac_ext <<_ACEOF
18448/* end confdefs.h. */
d34a2b1d 18449$ac_includes_default
5464f5a1
NN
18450int
18451main ()
18452{
d34a2b1d
JG
18453#ifndef realloc
18454 char *p = (char *) realloc;
18455#endif
18456
5464f5a1
NN
18457 ;
18458 return 0;
18459}
18460_ACEOF
18461rm -f conftest.$ac_objext
18462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18463 (eval $ac_compile) 2>conftest.er1
18464 ac_status=$?
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
7357c5b6
AM
18470 { ac_try='test -z "$ac_c_werror_flag"
18471 || test ! -s conftest.err'
5464f5a1
NN
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; } &&
18477 { ac_try='test -s conftest.$ac_objext'
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
d34a2b1d 18483 ac_cv_have_decl_realloc=yes
252b5132 18484else
5464f5a1
NN
18485 echo "$as_me: failed program was:" >&5
18486sed 's/^/| /' conftest.$ac_ext >&5
18487
d34a2b1d 18488ac_cv_have_decl_realloc=no
252b5132 18489fi
5464f5a1 18490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18491fi
d34a2b1d
JG
18492echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18493echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18494if test $ac_cv_have_decl_realloc = yes; then
18495
18496cat >>confdefs.h <<_ACEOF
18497#define HAVE_DECL_REALLOC 1
18498_ACEOF
252b5132 18499
5464f5a1 18500
d34a2b1d
JG
18501else
18502 cat >>confdefs.h <<_ACEOF
18503#define HAVE_DECL_REALLOC 0
efa9bda4
AL
18504_ACEOF
18505
d34a2b1d 18506
efa9bda4
AL
18507fi
18508
d34a2b1d 18509
be5cacdb
L
18510echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
18511echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
18512if test "${ac_cv_have_decl_stpcpy+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18514else
18515 cat >conftest.$ac_ext <<_ACEOF
18516/* confdefs.h. */
18517_ACEOF
18518cat confdefs.h >>conftest.$ac_ext
18519cat >>conftest.$ac_ext <<_ACEOF
18520/* end confdefs.h. */
18521$ac_includes_default
18522int
18523main ()
18524{
18525#ifndef stpcpy
18526 char *p = (char *) stpcpy;
18527#endif
18528
18529 ;
18530 return 0;
18531}
18532_ACEOF
18533rm -f conftest.$ac_objext
18534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18535 (eval $ac_compile) 2>conftest.er1
18536 ac_status=$?
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
7357c5b6
AM
18542 { ac_try='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
be5cacdb
L
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest.$ac_objext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 ac_cv_have_decl_stpcpy=yes
18556else
18557 echo "$as_me: failed program was:" >&5
18558sed 's/^/| /' conftest.$ac_ext >&5
18559
18560ac_cv_have_decl_stpcpy=no
18561fi
18562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18563fi
18564echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
18565echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
18566if test $ac_cv_have_decl_stpcpy = yes; then
18567
18568cat >>confdefs.h <<_ACEOF
18569#define HAVE_DECL_STPCPY 1
18570_ACEOF
18571
18572
18573else
18574 cat >>confdefs.h <<_ACEOF
18575#define HAVE_DECL_STPCPY 0
18576_ACEOF
18577
18578
18579fi
18580
18581
d34a2b1d
JG
18582echo "$as_me:$LINENO: checking whether strstr is declared" >&5
18583echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
18584if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18586else
18587 cat >conftest.$ac_ext <<_ACEOF
18588/* confdefs.h. */
18589_ACEOF
18590cat confdefs.h >>conftest.$ac_ext
18591cat >>conftest.$ac_ext <<_ACEOF
18592/* end confdefs.h. */
d34a2b1d 18593$ac_includes_default
efa9bda4
AL
18594int
18595main ()
18596{
d34a2b1d
JG
18597#ifndef strstr
18598 char *p = (char *) strstr;
18599#endif
18600
efa9bda4
AL
18601 ;
18602 return 0;
18603}
18604_ACEOF
18605rm -f conftest.$ac_objext
18606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18607 (eval $ac_compile) 2>conftest.er1
18608 ac_status=$?
18609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } &&
7357c5b6
AM
18614 { ac_try='test -z "$ac_c_werror_flag"
18615 || test ! -s conftest.err'
efa9bda4
AL
18616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617 (eval $ac_try) 2>&5
18618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; } &&
18621 { ac_try='test -s conftest.$ac_objext'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; }; then
d34a2b1d 18627 ac_cv_have_decl_strstr=yes
efa9bda4
AL
18628else
18629 echo "$as_me: failed program was:" >&5
18630sed 's/^/| /' conftest.$ac_ext >&5
18631
d34a2b1d 18632ac_cv_have_decl_strstr=no
efa9bda4
AL
18633fi
18634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18635fi
d34a2b1d
JG
18636echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
18637echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
18638if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 18639
d34a2b1d
JG
18640cat >>confdefs.h <<_ACEOF
18641#define HAVE_DECL_STRSTR 1
18642_ACEOF
efa9bda4 18643
d34a2b1d
JG
18644
18645else
18646 cat >>confdefs.h <<_ACEOF
18647#define HAVE_DECL_STRSTR 0
5464f5a1 18648_ACEOF
252b5132 18649
d34a2b1d 18650
252b5132
RH
18651fi
18652
6be7c12c 18653
36527912
AJ
18654echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18655echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
18656if test "${ac_cv_have_decl_snprintf+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18658else
18659 cat >conftest.$ac_ext <<_ACEOF
18660/* confdefs.h. */
18661_ACEOF
18662cat confdefs.h >>conftest.$ac_ext
18663cat >>conftest.$ac_ext <<_ACEOF
18664/* end confdefs.h. */
18665$ac_includes_default
18666int
18667main ()
18668{
18669#ifndef snprintf
18670 char *p = (char *) snprintf;
18671#endif
18672
18673 ;
18674 return 0;
18675}
18676_ACEOF
18677rm -f conftest.$ac_objext
18678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18679 (eval $ac_compile) 2>conftest.er1
18680 ac_status=$?
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
7357c5b6
AM
18686 { ac_try='test -z "$ac_c_werror_flag"
18687 || test ! -s conftest.err'
36527912
AJ
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } &&
18693 { ac_try='test -s conftest.$ac_objext'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 ac_cv_have_decl_snprintf=yes
18700else
18701 echo "$as_me: failed program was:" >&5
18702sed 's/^/| /' conftest.$ac_ext >&5
18703
18704ac_cv_have_decl_snprintf=no
18705fi
18706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18707fi
18708echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18709echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18710if test $ac_cv_have_decl_snprintf = yes; then
18711
18712cat >>confdefs.h <<_ACEOF
18713#define HAVE_DECL_SNPRINTF 1
18714_ACEOF
18715
18716
18717else
18718 cat >>confdefs.h <<_ACEOF
18719#define HAVE_DECL_SNPRINTF 0
18720_ACEOF
18721
18722
18723fi
18724
18725
18726echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18727echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18728if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18730else
18731 cat >conftest.$ac_ext <<_ACEOF
18732/* confdefs.h. */
18733_ACEOF
18734cat confdefs.h >>conftest.$ac_ext
18735cat >>conftest.$ac_ext <<_ACEOF
18736/* end confdefs.h. */
18737$ac_includes_default
18738int
18739main ()
18740{
18741#ifndef vsnprintf
18742 char *p = (char *) vsnprintf;
18743#endif
18744
18745 ;
18746 return 0;
18747}
18748_ACEOF
18749rm -f conftest.$ac_objext
18750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18751 (eval $ac_compile) 2>conftest.er1
18752 ac_status=$?
18753 grep -v '^ *+' conftest.er1 >conftest.err
18754 rm -f conftest.er1
18755 cat conftest.err >&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
7357c5b6
AM
18758 { ac_try='test -z "$ac_c_werror_flag"
18759 || test ! -s conftest.err'
36527912
AJ
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest.$ac_objext'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_cv_have_decl_vsnprintf=yes
18772else
18773 echo "$as_me: failed program was:" >&5
18774sed 's/^/| /' conftest.$ac_ext >&5
18775
18776ac_cv_have_decl_vsnprintf=no
18777fi
18778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18779fi
18780echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18781echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18782if test $ac_cv_have_decl_vsnprintf = yes; then
18783
18784cat >>confdefs.h <<_ACEOF
18785#define HAVE_DECL_VSNPRINTF 1
18786_ACEOF
18787
18788
18789else
18790 cat >>confdefs.h <<_ACEOF
18791#define HAVE_DECL_VSNPRINTF 0
18792_ACEOF
18793
18794
18795fi
18796
18797
d34a2b1d 18798
1b315056 18799# Link in zlib if we can. This allows us to read compressed debug sections.
7357c5b6 18800# This is used only by compress.c.
1b315056
CS
18801echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18802echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18803if test "${ac_cv_search_zlibVersion+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18805else
18806 ac_func_search_save_LIBS=$LIBS
18807ac_cv_search_zlibVersion=no
18808cat >conftest.$ac_ext <<_ACEOF
18809/* confdefs.h. */
18810_ACEOF
18811cat confdefs.h >>conftest.$ac_ext
18812cat >>conftest.$ac_ext <<_ACEOF
18813/* end confdefs.h. */
18814
18815/* Override any gcc2 internal prototype to avoid an error. */
18816#ifdef __cplusplus
18817extern "C"
18818#endif
18819/* We use char because int might match the return type of a gcc2
18820 builtin and then its argument prototype would still apply. */
18821char zlibVersion ();
18822int
18823main ()
18824{
18825zlibVersion ();
18826 ;
18827 return 0;
18828}
18829_ACEOF
18830rm -f conftest.$ac_objext conftest$ac_exeext
18831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18832 (eval $ac_link) 2>conftest.er1
18833 ac_status=$?
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } &&
7357c5b6
AM
18839 { ac_try='test -z "$ac_c_werror_flag"
18840 || test ! -s conftest.err'
1b315056
CS
18841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 (eval $ac_try) 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; } &&
18846 { ac_try='test -s conftest$ac_exeext'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; }; then
18852 ac_cv_search_zlibVersion="none required"
18853else
18854 echo "$as_me: failed program was:" >&5
18855sed 's/^/| /' conftest.$ac_ext >&5
18856
18857fi
18858rm -f conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext conftest.$ac_ext
18860if test "$ac_cv_search_zlibVersion" = no; then
18861 for ac_lib in z; do
18862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18863 cat >conftest.$ac_ext <<_ACEOF
18864/* confdefs.h. */
18865_ACEOF
18866cat confdefs.h >>conftest.$ac_ext
18867cat >>conftest.$ac_ext <<_ACEOF
18868/* end confdefs.h. */
18869
18870/* Override any gcc2 internal prototype to avoid an error. */
18871#ifdef __cplusplus
18872extern "C"
18873#endif
18874/* We use char because int might match the return type of a gcc2
18875 builtin and then its argument prototype would still apply. */
18876char zlibVersion ();
18877int
18878main ()
18879{
18880zlibVersion ();
18881 ;
18882 return 0;
18883}
18884_ACEOF
18885rm -f conftest.$ac_objext conftest$ac_exeext
18886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18887 (eval $ac_link) 2>conftest.er1
18888 ac_status=$?
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } &&
7357c5b6
AM
18894 { ac_try='test -z "$ac_c_werror_flag"
18895 || test ! -s conftest.err'
1b315056
CS
18896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897 (eval $ac_try) 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; } &&
18901 { ac_try='test -s conftest$ac_exeext'
18902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18903 (eval $ac_try) 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; }; then
18907 ac_cv_search_zlibVersion="-l$ac_lib"
18908break
18909else
18910 echo "$as_me: failed program was:" >&5
18911sed 's/^/| /' conftest.$ac_ext >&5
18912
18913fi
18914rm -f conftest.err conftest.$ac_objext \
18915 conftest$ac_exeext conftest.$ac_ext
18916 done
18917fi
18918LIBS=$ac_func_search_save_LIBS
18919fi
18920echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18921echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18922if test "$ac_cv_search_zlibVersion" != no; then
18923 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18924
18925for ac_header in zlib.h
18926do
18927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18928if eval "test \"\${$as_ac_Header+set}\" = set"; then
18929 echo "$as_me:$LINENO: checking for $ac_header" >&5
18930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18931if eval "test \"\${$as_ac_Header+set}\" = set"; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18933fi
18934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18936else
18937 # Is the header compilable?
18938echo "$as_me:$LINENO: checking $ac_header usability" >&5
18939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18940cat >conftest.$ac_ext <<_ACEOF
18941/* confdefs.h. */
18942_ACEOF
18943cat confdefs.h >>conftest.$ac_ext
18944cat >>conftest.$ac_ext <<_ACEOF
18945/* end confdefs.h. */
18946$ac_includes_default
18947#include <$ac_header>
18948_ACEOF
18949rm -f conftest.$ac_objext
18950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18951 (eval $ac_compile) 2>conftest.er1
18952 ac_status=$?
18953 grep -v '^ *+' conftest.er1 >conftest.err
18954 rm -f conftest.er1
18955 cat conftest.err >&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); } &&
7357c5b6
AM
18958 { ac_try='test -z "$ac_c_werror_flag"
18959 || test ! -s conftest.err'
1b315056
CS
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18962 ac_status=$?
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; } &&
18965 { ac_try='test -s conftest.$ac_objext'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 ac_header_compiler=yes
18972else
18973 echo "$as_me: failed program was:" >&5
18974sed 's/^/| /' conftest.$ac_ext >&5
18975
18976ac_header_compiler=no
18977fi
18978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18980echo "${ECHO_T}$ac_header_compiler" >&6
18981
18982# Is the header present?
18983echo "$as_me:$LINENO: checking $ac_header presence" >&5
18984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18985cat >conftest.$ac_ext <<_ACEOF
18986/* confdefs.h. */
18987_ACEOF
18988cat confdefs.h >>conftest.$ac_ext
18989cat >>conftest.$ac_ext <<_ACEOF
18990/* end confdefs.h. */
18991#include <$ac_header>
18992_ACEOF
18993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18995 ac_status=$?
18996 grep -v '^ *+' conftest.er1 >conftest.err
18997 rm -f conftest.er1
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } >/dev/null; then
19001 if test -s conftest.err; then
19002 ac_cpp_err=$ac_c_preproc_warn_flag
19003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19004 else
19005 ac_cpp_err=
19006 fi
19007else
19008 ac_cpp_err=yes
19009fi
19010if test -z "$ac_cpp_err"; then
19011 ac_header_preproc=yes
19012else
19013 echo "$as_me: failed program was:" >&5
19014sed 's/^/| /' conftest.$ac_ext >&5
19015
19016 ac_header_preproc=no
19017fi
19018rm -f conftest.err conftest.$ac_ext
19019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19020echo "${ECHO_T}$ac_header_preproc" >&6
19021
19022# So? What about this header?
19023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19024 yes:no: )
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19029 ac_header_preproc=yes
19030 ;;
19031 no:yes:* )
19032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19035echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19039echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19044 (
19045 cat <<\_ASBOX
19046## ------------------------------------------ ##
19047## Report this to the AC_PACKAGE_NAME lists. ##
19048## ------------------------------------------ ##
19049_ASBOX
19050 ) |
19051 sed "s/^/$as_me: WARNING: /" >&2
19052 ;;
19053esac
19054echo "$as_me:$LINENO: checking for $ac_header" >&5
19055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19056if eval "test \"\${$as_ac_Header+set}\" = set"; then
19057 echo $ECHO_N "(cached) $ECHO_C" >&6
19058else
19059 eval "$as_ac_Header=\$ac_header_preproc"
19060fi
19061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19063
19064fi
19065if test `eval echo '${'$as_ac_Header'}'` = yes; then
19066 cat >>confdefs.h <<_ACEOF
19067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19068_ACEOF
19069
19070fi
19071
19072done
19073
19074fi
19075
19076
252b5132
RH
19077# If we are configured native, pick a core file support file.
19078COREFILE=
19079COREFLAG=
19080TRAD_HEADER=
19081if test "${target}" = "${host}"; then
19082 case "${host}" in
13dfd2d0 19083 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
19084 COREFILE=''
19085 ;;
ed84e695 19086 alpha*-*-linux-*)
252b5132
RH
19087 COREFILE=trad-core.lo
19088 TRAD_HEADER='"hosts/alphalinux.h"'
19089 ;;
690cc98b
NC
19090 alpha*-*-netbsd* | alpha*-*-openbsd*)
19091 COREFILE=netbsd-core.lo
19092 ;;
252b5132 19093 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
19094 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
19095 COREFILE='' ;;
e33533a4
MK
19096 arm-*-netbsd* | arm-*-openbsd*)
19097 COREFILE=netbsd-core.lo
19098 ;;
252b5132
RH
19099 arm-*-riscix) COREFILE=trad-core.lo ;;
19100 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
19101 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
19102 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
19103 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
19104 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
19105 hppa*-*-netbsd* | hppa*-*-openbsd*)
19106 COREFILE=netbsd-core.lo
19107 ;;
19108
dc810e39 19109 i370-*-*)
5b93d8bb
AM
19110 COREFILE=trad-core.lo
19111 TRAD_HEADER='"hosts/i370linux.h"'
19112 ;;
19113
80c7c40a 19114 i[3-7]86-sequent-bsd*)
5b93d8bb 19115 COREFILE=trad-core.lo
252b5132
RH
19116 TRAD_HEADER='"hosts/symmetry.h"'
19117 ;;
80c7c40a
NC
19118 i[3-7]86-sequent-sysv4*) ;;
19119 i[3-7]86-sequent-sysv*)
252b5132
RH
19120 COREFILE=trad-core.lo
19121 TRAD_HEADER='"hosts/symmetry.h"'
19122 ;;
80c7c40a 19123 i[3-7]86-*-bsdi)
7e3b3466
NC
19124 COREFILE=
19125 ;;
d2bef492 19126 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
19127 COREFILE=trad-core.lo
19128 TRAD_HEADER='"hosts/i386bsd.h"'
19129 ;;
0b3e17e9 19130 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
d4af9775
DB
19131 COREFILE=''
19132 TRAD_HEADER='"hosts/i386bsd.h"'
19133 ;;
4615568e 19134 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
19135 COREFILE=netbsd-core.lo
19136 ;;
80c7c40a 19137 i[3-7]86-esix-sysv3*)
252b5132
RH
19138 COREFILE=trad-core.lo
19139 TRAD_HEADER='"hosts/esix.h"'
19140 ;;
80c7c40a 19141 i[3-7]86-*-sco3.2v5*)
252b5132
RH
19142 COREFILE=sco5-core.lo
19143 ;;
80c7c40a 19144 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
19145 COREFILE=trad-core.lo
19146 TRAD_HEADER='"hosts/i386sco.h"'
19147 ;;
80c7c40a 19148 i[3-7]86-*-mach3*)
252b5132
RH
19149 COREFILE=trad-core.lo
19150 TRAD_HEADER='"hosts/i386mach3.h"'
19151 ;;
ed84e695 19152 i[3-7]86-*-linux-*)
252b5132
RH
19153 COREFILE=trad-core.lo
19154 TRAD_HEADER='"hosts/i386linux.h"'
19155 ;;
80c7c40a
NC
19156 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
19157 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
19158 i860-*-mach3* | i860-*-osf1*)
19159 COREFILE=trad-core.lo
19160 TRAD_HEADER='"hosts/i860mach3.h"'
19161 ;;
252b5132
RH
19162 mips-*-netbsd* | mips*-*-openbsd*)
19163 COREFILE=netbsd-core.lo
19164 ;;
19165 mips-dec-*)
19166 COREFILE=trad-core.lo
19167 TRAD_HEADER='"hosts/decstation.h"'
19168 ;;
19169 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
19170 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
19171 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
19172 mips-*-sysv4*) ;;
19173 mips-*-sysv* | mips-*-riscos*)
19174 COREFILE=trad-core.lo
19175 TRAD_HEADER='"hosts/riscos.h"'
19176 ;;
19177 mips-sony-bsd*)
19178 COREFILE=trad-core.lo
19179 TRAD_HEADER='"hosts/news-mips.h"'
19180 ;;
19181 m68*-bull*-sysv*)
19182 COREFILE=trad-core.lo
19183 TRAD_HEADER='"hosts/dpx2.h"'
19184 ;;
19185 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
19186 m68*-hp-bsd*)
19187 COREFILE=trad-core.lo
19188 TRAD_HEADER='"hosts/hp300bsd.h"'
19189 ;;
ed84e695 19190 m68*-*-linux-*)
252b5132
RH
19191 COREFILE=trad-core.lo
19192 TRAD_HEADER='"hosts/m68klinux.h"'
19193 ;;
19194 m68*-motorola-sysv*)
19195 COREFILE=trad-core.lo
19196 TRAD_HEADER='"hosts/delta68.h"'
19197 ;;
19198 m68*-sony-*)
19199 COREFILE=trad-core.lo
19200 TRAD_HEADER='"hosts/news.h"'
19201 ;;
19202 m68*-*-netbsd* | m68*-*-openbsd*)
19203 COREFILE=netbsd-core.lo
19204 ;;
19205 m68*-apple-aux*)
19206 COREFILE=trad-core.lo
19207 TRAD_HEADER='"hosts/m68kaux.h"'
19208 ;;
eb1e0e80
NC
19209 m88*-*-sysv4*)
19210 ;;
19211 m88*-motorola-sysv*)
19212 COREFILE=ptrace-core.lo
19213 ;;
252b5132
RH
19214 m88*-*-mach3*)
19215 COREFILE=trad-core.lo
19216 TRAD_HEADER='"hosts/m88kmach3.h"'
19217 ;;
c6f8758f
NC
19218 m88*-*-openbsd*)
19219 COREFILE=netbsd-core.lo
19220 ;;
252b5132
RH
19221 ns32k-pc532-mach)
19222 COREFILE=trad-core.lo
19223 TRAD_HEADER='"hosts/pc532mach.h"'
19224 ;;
19225 ns32k-*-netbsd* | ns32k-*-openbsd*)
19226 COREFILE=netbsd-core.lo
19227 ;;
eb1e0e80
NC
19228 rs6000-*-lynx*)
19229 COREFILE=lynx-core.lo
19230 ;;
19231 rs6000-*-aix5.* | powerpc-*-aix5.*)
19232 COREFILE=rs6000-core.lo
19233 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
19234 ;;
83954261 19235 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
19236 COREFILE=rs6000-core.lo
19237 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
19238 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
19239 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
19240 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
19241echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
19242 cat >conftest.$ac_ext <<_ACEOF
19243/* confdefs.h. */
19244_ACEOF
19245cat confdefs.h >>conftest.$ac_ext
19246cat >>conftest.$ac_ext <<_ACEOF
19247/* end confdefs.h. */
83954261 19248#include <core.h>
5464f5a1
NN
19249int
19250main ()
19251{
83954261 19252struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
19253 ;
19254 return 0;
19255}
19256_ACEOF
19257rm -f conftest.$ac_objext
19258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
7357c5b6
AM
19266 { ac_try='test -z "$ac_c_werror_flag"
19267 || test ! -s conftest.err'
5464f5a1
NN
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279
19280cat >>confdefs.h <<\_ACEOF
83954261 19281#define HAVE_ST_C_IMPL 1
5464f5a1 19282_ACEOF
83954261 19283
5464f5a1
NN
19284 echo "$as_me:$LINENO: result: yes" >&5
19285echo "${ECHO_T}yes" >&6
83954261 19286else
5464f5a1
NN
19287 echo "$as_me: failed program was:" >&5
19288sed 's/^/| /' conftest.$ac_ext >&5
19289
19290echo "$as_me:$LINENO: result: no" >&5
19291echo "${ECHO_T}no" >&6
83954261 19292fi
5464f5a1 19293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 19294 ;;
252b5132
RH
19295 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
19296 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
19297 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
19298 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
19299 powerpc-*-beos*) ;;
13dfd2d0
NC
19300 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
19301 COREFILE='' ;;
252b5132 19302 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 19303 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 19304 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
19305 sh*-*-netbsd* | sh*-*-openbsd*)
19306 COREFILE=netbsd-core.lo
19307 ;;
a9bf1154 19308 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
19309 COREFILE=netbsd-core.lo
19310 ;;
19311 tahoe-*-*)
19312 COREFILE=trad-core.lo
19313 TRAD_HEADER='"hosts/tahoe.h"'
19314 ;;
de6e5e1a
NC
19315 vax-*-netbsd* | vax-*-openbsd*)
19316 COREFILE=netbsd-core.lo
19317 ;;
252b5132
RH
19318 vax-*-ultrix2*)
19319 COREFILE=trad-core.lo
19320 TRAD_HEADER='"hosts/vaxult2.h"'
19321 ;;
19322 vax-*-ultrix*)
19323 COREFILE=trad-core.lo
19324 TRAD_HEADER='"hosts/vaxult2.h"'
19325 ;;
ed84e695 19326 vax-*-linux-*)
f8fc3443
NC
19327 COREFILE=trad-core.lo
19328 TRAD_HEADER='"hosts/vaxlinux.h"'
19329 ;;
252b5132
RH
19330 vax-*-*)
19331 COREFILE=trad-core.lo
19332 TRAD_HEADER='"hosts/vaxbsd.h"'
19333 ;;
85cfd8d3
MK
19334 x86_64-*-netbsd* | x86_64-*-openbsd*)
19335 COREFILE=netbsd-core.lo
19336 ;;
252b5132
RH
19337 esac
19338
19339 case "$COREFILE" in
19340 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
19341 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
19342 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
19343 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
19344 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
19345 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
19346 osf-core.lo) COREFLAG=-DOSF_CORE ;;
19347 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
19348 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
19349 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
19350 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
19351 esac
19352
19353 # ELF corefile support has several flavors, but all of
19354 # them use something called <sys/procfs.h>
5464f5a1
NN
19355
19356for ac_header in sys/procfs.h
252b5132 19357do
5464f5a1
NN
19358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19359if eval "test \"\${$as_ac_Header+set}\" = set"; then
19360 echo "$as_me:$LINENO: checking for $ac_header" >&5
19361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19362if eval "test \"\${$as_ac_Header+set}\" = set"; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19364fi
19365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19367else
19368 # Is the header compilable?
19369echo "$as_me:$LINENO: checking $ac_header usability" >&5
19370echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19371cat >conftest.$ac_ext <<_ACEOF
19372/* confdefs.h. */
19373_ACEOF
19374cat confdefs.h >>conftest.$ac_ext
19375cat >>conftest.$ac_ext <<_ACEOF
19376/* end confdefs.h. */
19377$ac_includes_default
19378#include <$ac_header>
19379_ACEOF
19380rm -f conftest.$ac_objext
19381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
7357c5b6
AM
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
5464f5a1
NN
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_header_compiler=yes
19403else
19404 echo "$as_me: failed program was:" >&5
19405sed 's/^/| /' conftest.$ac_ext >&5
19406
19407ac_header_compiler=no
19408fi
19409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19411echo "${ECHO_T}$ac_header_compiler" >&6
19412
19413# Is the header present?
19414echo "$as_me:$LINENO: checking $ac_header presence" >&5
19415echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19416cat >conftest.$ac_ext <<_ACEOF
19417/* confdefs.h. */
19418_ACEOF
19419cat confdefs.h >>conftest.$ac_ext
19420cat >>conftest.$ac_ext <<_ACEOF
19421/* end confdefs.h. */
19422#include <$ac_header>
19423_ACEOF
19424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19426 ac_status=$?
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } >/dev/null; then
19432 if test -s conftest.err; then
19433 ac_cpp_err=$ac_c_preproc_warn_flag
19434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19435 else
19436 ac_cpp_err=
19437 fi
252b5132 19438else
5464f5a1 19439 ac_cpp_err=yes
252b5132 19440fi
5464f5a1
NN
19441if test -z "$ac_cpp_err"; then
19442 ac_header_preproc=yes
19443else
19444 echo "$as_me: failed program was:" >&5
19445sed 's/^/| /' conftest.$ac_ext >&5
19446
19447 ac_header_preproc=no
252b5132 19448fi
5464f5a1
NN
19449rm -f conftest.err conftest.$ac_ext
19450echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19451echo "${ECHO_T}$ac_header_preproc" >&6
19452
19453# So? What about this header?
19454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19455 yes:no: )
19456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19459echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19460 ac_header_preproc=yes
19461 ;;
19462 no:yes:* )
19463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19466echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19468echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19470echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19472echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19474echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19475 (
19476 cat <<\_ASBOX
19477## ------------------------------------------ ##
19478## Report this to the AC_PACKAGE_NAME lists. ##
19479## ------------------------------------------ ##
19480_ASBOX
19481 ) |
19482 sed "s/^/$as_me: WARNING: /" >&2
19483 ;;
19484esac
19485echo "$as_me:$LINENO: checking for $ac_header" >&5
19486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19487if eval "test \"\${$as_ac_Header+set}\" = set"; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 19489else
5464f5a1
NN
19490 eval "$as_ac_Header=\$ac_header_preproc"
19491fi
19492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19494
252b5132 19495fi
5464f5a1
NN
19496if test `eval echo '${'$as_ac_Header'}'` = yes; then
19497 cat >>confdefs.h <<_ACEOF
19498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19499_ACEOF
19500
19501fi
19502
252b5132
RH
19503done
19504
19505 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
19506 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
19507echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
19508 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19510else
19511 cat >conftest.$ac_ext <<_ACEOF
19512/* confdefs.h. */
19513_ACEOF
19514cat confdefs.h >>conftest.$ac_ext
19515cat >>conftest.$ac_ext <<_ACEOF
19516/* end confdefs.h. */
7ee38065
MS
19517
19518#define _SYSCALL32
252b5132 19519#include <sys/procfs.h>
5464f5a1
NN
19520int
19521main ()
19522{
252b5132 19523prstatus_t avar
5464f5a1
NN
19524 ;
19525 return 0;
19526}
19527_ACEOF
19528rm -f conftest.$ac_objext
19529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19530 (eval $ac_compile) 2>conftest.er1
19531 ac_status=$?
19532 grep -v '^ *+' conftest.er1 >conftest.err
19533 rm -f conftest.er1
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } &&
7357c5b6
AM
19537 { ac_try='test -z "$ac_c_werror_flag"
19538 || test ! -s conftest.err'
5464f5a1
NN
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; } &&
19544 { ac_try='test -s conftest.$ac_objext'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
252b5132
RH
19550 bfd_cv_have_sys_procfs_type_prstatus_t=yes
19551else
5464f5a1
NN
19552 echo "$as_me: failed program was:" >&5
19553sed 's/^/| /' conftest.$ac_ext >&5
19554
19555bfd_cv_have_sys_procfs_type_prstatus_t=no
19556
252b5132 19557fi
5464f5a1 19558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19559fi
19560
19561 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
19562
19563cat >>confdefs.h <<\_ACEOF
252b5132 19564#define HAVE_PRSTATUS_T 1
5464f5a1 19565_ACEOF
252b5132
RH
19566
19567 fi
5464f5a1
NN
19568 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
19569echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 19570
5464f5a1
NN
19571 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
19572echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
19573 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19575else
5464f5a1
NN
19576 cat >conftest.$ac_ext <<_ACEOF
19577/* confdefs.h. */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>conftest.$ac_ext <<_ACEOF
19581/* end confdefs.h. */
7ee38065
MS
19582
19583#define _SYSCALL32
19584#include <sys/procfs.h>
5464f5a1
NN
19585int
19586main ()
19587{
7ee38065 19588prstatus32_t avar
5464f5a1
NN
19589 ;
19590 return 0;
19591}
19592_ACEOF
19593rm -f conftest.$ac_objext
19594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19595 (eval $ac_compile) 2>conftest.er1
19596 ac_status=$?
19597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
7357c5b6
AM
19602 { ac_try='test -z "$ac_c_werror_flag"
19603 || test ! -s conftest.err'
5464f5a1
NN
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; } &&
19609 { ac_try='test -s conftest.$ac_objext'
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; }; then
7ee38065
MS
19615 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
19616else
5464f5a1
NN
19617 echo "$as_me: failed program was:" >&5
19618sed 's/^/| /' conftest.$ac_ext >&5
19619
19620bfd_cv_have_sys_procfs_type_prstatus32_t=no
19621
7ee38065 19622fi
5464f5a1 19623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19624fi
19625
19626 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
19627
19628cat >>confdefs.h <<\_ACEOF
7ee38065 19629#define HAVE_PRSTATUS32_T 1
5464f5a1 19630_ACEOF
7ee38065
MS
19631
19632 fi
5464f5a1
NN
19633 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
19634echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 19635
5464f5a1
NN
19636 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
19637echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19638 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19640else
5464f5a1
NN
19641 cat >conftest.$ac_ext <<_ACEOF
19642/* confdefs.h. */
19643_ACEOF
19644cat confdefs.h >>conftest.$ac_ext
19645cat >>conftest.$ac_ext <<_ACEOF
19646/* end confdefs.h. */
7ee38065
MS
19647
19648#define _SYSCALL32
252b5132 19649#include <sys/procfs.h>
5464f5a1
NN
19650int
19651main ()
19652{
252b5132 19653prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
19654 ;
19655 return 0;
19656}
19657_ACEOF
19658rm -f conftest.$ac_objext
19659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19660 (eval $ac_compile) 2>conftest.er1
19661 ac_status=$?
19662 grep -v '^ *+' conftest.er1 >conftest.err
19663 rm -f conftest.er1
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
7357c5b6
AM
19667 { ac_try='test -z "$ac_c_werror_flag"
19668 || test ! -s conftest.err'
5464f5a1
NN
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest.$ac_objext'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
252b5132
RH
19680 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
19681else
5464f5a1
NN
19682 echo "$as_me: failed program was:" >&5
19683sed 's/^/| /' conftest.$ac_ext >&5
19684
19685bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
19686
252b5132 19687fi
5464f5a1 19688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19689fi
19690
19691 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
19692
19693cat >>confdefs.h <<\_ACEOF
252b5132 19694#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 19695_ACEOF
252b5132
RH
19696
19697 fi
5464f5a1
NN
19698 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19699echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 19700
5464f5a1
NN
19701 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19702echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19703 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19705else
5464f5a1
NN
19706 cat >conftest.$ac_ext <<_ACEOF
19707/* confdefs.h. */
19708_ACEOF
19709cat confdefs.h >>conftest.$ac_ext
19710cat >>conftest.$ac_ext <<_ACEOF
19711/* end confdefs.h. */
7ee38065
MS
19712
19713#define _SYSCALL32
19714#include <sys/procfs.h>
5464f5a1
NN
19715int
19716main ()
19717{
7ee38065 19718prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
19719 ;
19720 return 0;
19721}
19722_ACEOF
19723rm -f conftest.$ac_objext
19724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19725 (eval $ac_compile) 2>conftest.er1
19726 ac_status=$?
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
7357c5b6
AM
19732 { ac_try='test -z "$ac_c_werror_flag"
19733 || test ! -s conftest.err'
5464f5a1
NN
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19736 ac_status=$?
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; } &&
19739 { ac_try='test -s conftest.$ac_objext'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19742 ac_status=$?
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
7ee38065
MS
19745 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19746else
5464f5a1
NN
19747 echo "$as_me: failed program was:" >&5
19748sed 's/^/| /' conftest.$ac_ext >&5
19749
19750bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19751
7ee38065 19752fi
5464f5a1 19753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19754fi
19755
19756 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
19757
19758cat >>confdefs.h <<\_ACEOF
7ee38065 19759#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 19760_ACEOF
7ee38065
MS
19761
19762 fi
5464f5a1
NN
19763 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19764echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 19765
5464f5a1
NN
19766 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19767echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19768 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19770else
5464f5a1
NN
19771 cat >conftest.$ac_ext <<_ACEOF
19772/* confdefs.h. */
19773_ACEOF
19774cat confdefs.h >>conftest.$ac_ext
19775cat >>conftest.$ac_ext <<_ACEOF
19776/* end confdefs.h. */
7ee38065
MS
19777
19778#define _SYSCALL32
252b5132 19779#include <sys/procfs.h>
5464f5a1
NN
19780int
19781main ()
19782{
252b5132 19783pstatus_t avar
5464f5a1
NN
19784 ;
19785 return 0;
19786}
19787_ACEOF
19788rm -f conftest.$ac_objext
19789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19790 (eval $ac_compile) 2>conftest.er1
19791 ac_status=$?
19792 grep -v '^ *+' conftest.er1 >conftest.err
19793 rm -f conftest.er1
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } &&
7357c5b6
AM
19797 { ac_try='test -z "$ac_c_werror_flag"
19798 || test ! -s conftest.err'
5464f5a1
NN
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try='test -s conftest.$ac_objext'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
252b5132
RH
19810 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19811else
5464f5a1
NN
19812 echo "$as_me: failed program was:" >&5
19813sed 's/^/| /' conftest.$ac_ext >&5
19814
19815bfd_cv_have_sys_procfs_type_pstatus_t=no
19816
252b5132 19817fi
5464f5a1 19818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19819fi
19820
19821 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
19822
19823cat >>confdefs.h <<\_ACEOF
252b5132 19824#define HAVE_PSTATUS_T 1
5464f5a1 19825_ACEOF
252b5132
RH
19826
19827 fi
5464f5a1
NN
19828 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19829echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 19830
5464f5a1
NN
19831 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19832echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19833 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 19835else
5464f5a1
NN
19836 cat >conftest.$ac_ext <<_ACEOF
19837/* confdefs.h. */
19838_ACEOF
19839cat confdefs.h >>conftest.$ac_ext
19840cat >>conftest.$ac_ext <<_ACEOF
19841/* end confdefs.h. */
f572a39d
AM
19842
19843#define _SYSCALL32
19844#include <sys/procfs.h>
5464f5a1
NN
19845int
19846main ()
19847{
f572a39d 19848pxstatus_t avar
5464f5a1
NN
19849 ;
19850 return 0;
19851}
19852_ACEOF
19853rm -f conftest.$ac_objext
19854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19855 (eval $ac_compile) 2>conftest.er1
19856 ac_status=$?
19857 grep -v '^ *+' conftest.er1 >conftest.err
19858 rm -f conftest.er1
19859 cat conftest.err >&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } &&
7357c5b6
AM
19862 { ac_try='test -z "$ac_c_werror_flag"
19863 || test ! -s conftest.err'
5464f5a1
NN
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; } &&
19869 { ac_try='test -s conftest.$ac_objext'
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871 (eval $ac_try) 2>&5
19872 ac_status=$?
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; }; then
f572a39d
AM
19875 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19876else
5464f5a1
NN
19877 echo "$as_me: failed program was:" >&5
19878sed 's/^/| /' conftest.$ac_ext >&5
19879
19880bfd_cv_have_sys_procfs_type_pxstatus_t=no
19881
f572a39d 19882fi
5464f5a1 19883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
19884fi
19885
19886 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
19887
19888cat >>confdefs.h <<\_ACEOF
f572a39d 19889#define HAVE_PXSTATUS_T 1
5464f5a1 19890_ACEOF
f572a39d
AM
19891
19892 fi
5464f5a1
NN
19893 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19894echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 19895
5464f5a1
NN
19896 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19897echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19898 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19899 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19900else
5464f5a1
NN
19901 cat >conftest.$ac_ext <<_ACEOF
19902/* confdefs.h. */
19903_ACEOF
19904cat confdefs.h >>conftest.$ac_ext
19905cat >>conftest.$ac_ext <<_ACEOF
19906/* end confdefs.h. */
7ee38065
MS
19907
19908#define _SYSCALL32
19909#include <sys/procfs.h>
5464f5a1
NN
19910int
19911main ()
19912{
7ee38065 19913pstatus32_t avar
5464f5a1
NN
19914 ;
19915 return 0;
19916}
19917_ACEOF
19918rm -f conftest.$ac_objext
19919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19920 (eval $ac_compile) 2>conftest.er1
19921 ac_status=$?
19922 grep -v '^ *+' conftest.er1 >conftest.err
19923 rm -f conftest.er1
19924 cat conftest.err >&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } &&
7357c5b6
AM
19927 { ac_try='test -z "$ac_c_werror_flag"
19928 || test ! -s conftest.err'
5464f5a1
NN
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; } &&
19934 { ac_try='test -s conftest.$ac_objext'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
7ee38065
MS
19940 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19941else
5464f5a1
NN
19942 echo "$as_me: failed program was:" >&5
19943sed 's/^/| /' conftest.$ac_ext >&5
19944
19945bfd_cv_have_sys_procfs_type_pstatus32_t=no
19946
7ee38065 19947fi
5464f5a1 19948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19949fi
19950
19951 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
19952
19953cat >>confdefs.h <<\_ACEOF
7ee38065 19954#define HAVE_PSTATUS32_T 1
5464f5a1 19955_ACEOF
7ee38065
MS
19956
19957 fi
5464f5a1
NN
19958 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19959echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 19960
5464f5a1
NN
19961 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19962echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19963 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19965else
5464f5a1
NN
19966 cat >conftest.$ac_ext <<_ACEOF
19967/* confdefs.h. */
19968_ACEOF
19969cat confdefs.h >>conftest.$ac_ext
19970cat >>conftest.$ac_ext <<_ACEOF
19971/* end confdefs.h. */
7ee38065
MS
19972
19973#define _SYSCALL32
252b5132 19974#include <sys/procfs.h>
5464f5a1
NN
19975int
19976main ()
19977{
252b5132 19978prpsinfo_t avar
5464f5a1
NN
19979 ;
19980 return 0;
19981}
19982_ACEOF
19983rm -f conftest.$ac_objext
19984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19985 (eval $ac_compile) 2>conftest.er1
19986 ac_status=$?
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } &&
7357c5b6
AM
19992 { ac_try='test -z "$ac_c_werror_flag"
19993 || test ! -s conftest.err'
5464f5a1
NN
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; } &&
19999 { ac_try='test -s conftest.$ac_objext'
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
252b5132
RH
20005 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
20006else
5464f5a1
NN
20007 echo "$as_me: failed program was:" >&5
20008sed 's/^/| /' conftest.$ac_ext >&5
20009
20010bfd_cv_have_sys_procfs_type_prpsinfo_t=no
20011
252b5132 20012fi
5464f5a1 20013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20014fi
20015
20016 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
20017
20018cat >>confdefs.h <<\_ACEOF
252b5132 20019#define HAVE_PRPSINFO_T 1
5464f5a1 20020_ACEOF
252b5132
RH
20021
20022 fi
5464f5a1
NN
20023 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
20024echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 20025
5464f5a1
NN
20026 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
20027echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
20028 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 20030else
5464f5a1
NN
20031 cat >conftest.$ac_ext <<_ACEOF
20032/* confdefs.h. */
20033_ACEOF
20034cat confdefs.h >>conftest.$ac_ext
20035cat >>conftest.$ac_ext <<_ACEOF
20036/* end confdefs.h. */
7ee38065
MS
20037
20038#define _SYSCALL32
20039#include <sys/procfs.h>
5464f5a1
NN
20040int
20041main ()
20042{
7ee38065 20043prpsinfo32_t avar
5464f5a1
NN
20044 ;
20045 return 0;
20046}
20047_ACEOF
20048rm -f conftest.$ac_objext
20049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20050 (eval $ac_compile) 2>conftest.er1
20051 ac_status=$?
20052 grep -v '^ *+' conftest.er1 >conftest.err
20053 rm -f conftest.er1
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } &&
7357c5b6
AM
20057 { ac_try='test -z "$ac_c_werror_flag"
20058 || test ! -s conftest.err'
5464f5a1
NN
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; } &&
20064 { ac_try='test -s conftest.$ac_objext'
20065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066 (eval $ac_try) 2>&5
20067 ac_status=$?
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; }; then
7ee38065
MS
20070 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
20071else
5464f5a1
NN
20072 echo "$as_me: failed program was:" >&5
20073sed 's/^/| /' conftest.$ac_ext >&5
20074
20075bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
20076
7ee38065 20077fi
5464f5a1 20078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
20079fi
20080
20081 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
20082
20083cat >>confdefs.h <<\_ACEOF
7ee38065 20084#define HAVE_PRPSINFO32_T 1
5464f5a1 20085_ACEOF
7ee38065
MS
20086
20087 fi
5464f5a1
NN
20088 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
20089echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 20090
5464f5a1
NN
20091 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
20092echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
20093 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20095else
5464f5a1
NN
20096 cat >conftest.$ac_ext <<_ACEOF
20097/* confdefs.h. */
20098_ACEOF
20099cat confdefs.h >>conftest.$ac_ext
20100cat >>conftest.$ac_ext <<_ACEOF
20101/* end confdefs.h. */
7ee38065
MS
20102
20103#define _SYSCALL32
252b5132 20104#include <sys/procfs.h>
5464f5a1
NN
20105int
20106main ()
20107{
252b5132 20108psinfo_t avar
5464f5a1
NN
20109 ;
20110 return 0;
20111}
20112_ACEOF
20113rm -f conftest.$ac_objext
20114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20115 (eval $ac_compile) 2>conftest.er1
20116 ac_status=$?
20117 grep -v '^ *+' conftest.er1 >conftest.err
20118 rm -f conftest.er1
20119 cat conftest.err >&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } &&
7357c5b6
AM
20122 { ac_try='test -z "$ac_c_werror_flag"
20123 || test ! -s conftest.err'
5464f5a1
NN
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; } &&
20129 { ac_try='test -s conftest.$ac_objext'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; }; then
252b5132
RH
20135 bfd_cv_have_sys_procfs_type_psinfo_t=yes
20136else
5464f5a1
NN
20137 echo "$as_me: failed program was:" >&5
20138sed 's/^/| /' conftest.$ac_ext >&5
20139
20140bfd_cv_have_sys_procfs_type_psinfo_t=no
20141
252b5132 20142fi
5464f5a1 20143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20144fi
20145
20146 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
20147
20148cat >>confdefs.h <<\_ACEOF
252b5132 20149#define HAVE_PSINFO_T 1
5464f5a1 20150_ACEOF
252b5132
RH
20151
20152 fi
5464f5a1
NN
20153 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
20154echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 20155
5464f5a1
NN
20156 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
20157echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
20158 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 20160else
5464f5a1
NN
20161 cat >conftest.$ac_ext <<_ACEOF
20162/* confdefs.h. */
20163_ACEOF
20164cat confdefs.h >>conftest.$ac_ext
20165cat >>conftest.$ac_ext <<_ACEOF
20166/* end confdefs.h. */
7ee38065
MS
20167
20168#define _SYSCALL32
20169#include <sys/procfs.h>
5464f5a1
NN
20170int
20171main ()
20172{
7ee38065 20173psinfo32_t avar
5464f5a1
NN
20174 ;
20175 return 0;
20176}
20177_ACEOF
20178rm -f conftest.$ac_objext
20179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20180 (eval $ac_compile) 2>conftest.er1
20181 ac_status=$?
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
7357c5b6
AM
20187 { ac_try='test -z "$ac_c_werror_flag"
20188 || test ! -s conftest.err'
5464f5a1
NN
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; } &&
20194 { ac_try='test -s conftest.$ac_objext'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20197 ac_status=$?
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; }; then
7ee38065
MS
20200 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
20201else
5464f5a1
NN
20202 echo "$as_me: failed program was:" >&5
20203sed 's/^/| /' conftest.$ac_ext >&5
20204
20205bfd_cv_have_sys_procfs_type_psinfo32_t=no
20206
7ee38065 20207fi
5464f5a1 20208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
20209fi
20210
20211 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
20212
20213cat >>confdefs.h <<\_ACEOF
7ee38065 20214#define HAVE_PSINFO32_T 1
5464f5a1 20215_ACEOF
7ee38065
MS
20216
20217 fi
5464f5a1
NN
20218 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
20219echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 20220
5464f5a1
NN
20221 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
20222echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
20223 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20225else
5464f5a1
NN
20226 cat >conftest.$ac_ext <<_ACEOF
20227/* confdefs.h. */
20228_ACEOF
20229cat confdefs.h >>conftest.$ac_ext
20230cat >>conftest.$ac_ext <<_ACEOF
20231/* end confdefs.h. */
7ee38065
MS
20232
20233#define _SYSCALL32
252b5132 20234#include <sys/procfs.h>
5464f5a1
NN
20235int
20236main ()
20237{
252b5132 20238lwpstatus_t avar
5464f5a1
NN
20239 ;
20240 return 0;
20241}
20242_ACEOF
20243rm -f conftest.$ac_objext
20244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20245 (eval $ac_compile) 2>conftest.er1
20246 ac_status=$?
20247 grep -v '^ *+' conftest.er1 >conftest.err
20248 rm -f conftest.er1
20249 cat conftest.err >&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } &&
7357c5b6
AM
20252 { ac_try='test -z "$ac_c_werror_flag"
20253 || test ! -s conftest.err'
5464f5a1
NN
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; } &&
20259 { ac_try='test -s conftest.$ac_objext'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
252b5132
RH
20265 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
20266else
5464f5a1
NN
20267 echo "$as_me: failed program was:" >&5
20268sed 's/^/| /' conftest.$ac_ext >&5
20269
20270bfd_cv_have_sys_procfs_type_lwpstatus_t=no
20271
252b5132 20272fi
5464f5a1 20273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20274fi
20275
20276 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
20277
20278cat >>confdefs.h <<\_ACEOF
252b5132 20279#define HAVE_LWPSTATUS_T 1
5464f5a1 20280_ACEOF
252b5132
RH
20281
20282 fi
5464f5a1
NN
20283 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
20284echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 20285
5464f5a1
NN
20286 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
20287echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
20288 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 20290else
5464f5a1
NN
20291 cat >conftest.$ac_ext <<_ACEOF
20292/* confdefs.h. */
20293_ACEOF
20294cat confdefs.h >>conftest.$ac_ext
20295cat >>conftest.$ac_ext <<_ACEOF
20296/* end confdefs.h. */
f572a39d
AM
20297
20298#define _SYSCALL32
20299#include <sys/procfs.h>
5464f5a1
NN
20300int
20301main ()
20302{
f572a39d 20303lwpxstatus_t avar
5464f5a1
NN
20304 ;
20305 return 0;
20306}
20307_ACEOF
20308rm -f conftest.$ac_objext
20309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20310 (eval $ac_compile) 2>conftest.er1
20311 ac_status=$?
20312 grep -v '^ *+' conftest.er1 >conftest.err
20313 rm -f conftest.er1
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
7357c5b6
AM
20317 { ac_try='test -z "$ac_c_werror_flag"
20318 || test ! -s conftest.err'
5464f5a1
NN
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; } &&
20324 { ac_try='test -s conftest.$ac_objext'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
f572a39d
AM
20330 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
20331else
5464f5a1
NN
20332 echo "$as_me: failed program was:" >&5
20333sed 's/^/| /' conftest.$ac_ext >&5
20334
20335bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
20336
f572a39d 20337fi
5464f5a1 20338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
20339fi
20340
20341 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
20342
20343cat >>confdefs.h <<\_ACEOF
f572a39d 20344#define HAVE_LWPXSTATUS_T 1
5464f5a1 20345_ACEOF
f572a39d
AM
20346
20347 fi
5464f5a1
NN
20348 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
20349echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 20350
5464f5a1
NN
20351 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
20352echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
20353 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20355else
5464f5a1
NN
20356 cat >conftest.$ac_ext <<_ACEOF
20357/* confdefs.h. */
20358_ACEOF
20359cat confdefs.h >>conftest.$ac_ext
20360cat >>conftest.$ac_ext <<_ACEOF
20361/* end confdefs.h. */
7ee38065
MS
20362
20363#define _SYSCALL32
252b5132 20364#include <sys/procfs.h>
5464f5a1
NN
20365int
20366main ()
20367{
252b5132 20368lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
20369 ;
20370 return 0;
20371}
20372_ACEOF
20373rm -f conftest.$ac_objext
20374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20375 (eval $ac_compile) 2>conftest.er1
20376 ac_status=$?
20377 grep -v '^ *+' conftest.er1 >conftest.err
20378 rm -f conftest.er1
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } &&
7357c5b6
AM
20382 { ac_try='test -z "$ac_c_werror_flag"
20383 || test ! -s conftest.err'
5464f5a1
NN
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20386 ac_status=$?
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; } &&
20389 { ac_try='test -s conftest.$ac_objext'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
252b5132
RH
20395 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
20396else
5464f5a1
NN
20397 echo "$as_me: failed program was:" >&5
20398sed 's/^/| /' conftest.$ac_ext >&5
20399
20400bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
20401
252b5132 20402fi
5464f5a1 20403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20404fi
20405
20406 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
20407
20408cat >>confdefs.h <<\_ACEOF
252b5132 20409#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 20410_ACEOF
252b5132
RH
20411
20412 fi
5464f5a1
NN
20413 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
20414echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 20415
5464f5a1
NN
20416 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
20417echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
20418 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20420else
5464f5a1
NN
20421 cat >conftest.$ac_ext <<_ACEOF
20422/* confdefs.h. */
20423_ACEOF
20424cat confdefs.h >>conftest.$ac_ext
20425cat >>conftest.$ac_ext <<_ACEOF
20426/* end confdefs.h. */
7ee38065
MS
20427
20428#define _SYSCALL32
252b5132 20429#include <sys/procfs.h>
5464f5a1
NN
20430int
20431main ()
20432{
252b5132 20433lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
20434 ;
20435 return 0;
20436}
20437_ACEOF
20438rm -f conftest.$ac_objext
20439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20440 (eval $ac_compile) 2>conftest.er1
20441 ac_status=$?
20442 grep -v '^ *+' conftest.er1 >conftest.err
20443 rm -f conftest.er1
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } &&
7357c5b6
AM
20447 { ac_try='test -z "$ac_c_werror_flag"
20448 || test ! -s conftest.err'
5464f5a1
NN
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; } &&
20454 { ac_try='test -s conftest.$ac_objext'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; }; then
252b5132
RH
20460 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
20461else
5464f5a1
NN
20462 echo "$as_me: failed program was:" >&5
20463sed 's/^/| /' conftest.$ac_ext >&5
20464
20465bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
20466
252b5132 20467fi
5464f5a1 20468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20469fi
20470
20471 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
20472
20473cat >>confdefs.h <<\_ACEOF
252b5132 20474#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 20475_ACEOF
252b5132
RH
20476
20477 fi
5464f5a1
NN
20478 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
20479echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 20480
5464f5a1
NN
20481 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
20482echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
20483 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 20485else
5464f5a1
NN
20486 cat >conftest.$ac_ext <<_ACEOF
20487/* confdefs.h. */
20488_ACEOF
20489cat confdefs.h >>conftest.$ac_ext
20490cat >>conftest.$ac_ext <<_ACEOF
20491/* end confdefs.h. */
7ee38065
MS
20492
20493#define _SYSCALL32
e3c976c4 20494#include <sys/procfs.h>
5464f5a1
NN
20495int
20496main ()
20497{
e3c976c4 20498win32_pstatus_t avar
5464f5a1
NN
20499 ;
20500 return 0;
20501}
20502_ACEOF
20503rm -f conftest.$ac_objext
20504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20505 (eval $ac_compile) 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } &&
7357c5b6
AM
20512 { ac_try='test -z "$ac_c_werror_flag"
20513 || test ! -s conftest.err'
5464f5a1
NN
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; } &&
20519 { ac_try='test -s conftest.$ac_objext'
20520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521 (eval $ac_try) 2>&5
20522 ac_status=$?
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; }; then
e3c976c4
ILT
20525 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
20526else
5464f5a1
NN
20527 echo "$as_me: failed program was:" >&5
20528sed 's/^/| /' conftest.$ac_ext >&5
20529
20530bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
20531
e3c976c4 20532fi
5464f5a1 20533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20534fi
20535
e3c976c4 20536 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
20537
20538cat >>confdefs.h <<\_ACEOF
e3c976c4 20539#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 20540_ACEOF
16e9c715
NC
20541
20542 fi
5464f5a1
NN
20543 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
20544echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
20545
20546 fi
20547fi
16e9c715 20548
b3baf5d0 20549
6be7c12c 20550if test -n "$TRAD_HEADER"; then
5464f5a1
NN
20551
20552cat >>confdefs.h <<_ACEOF
252b5132 20553#define TRAD_HEADER $TRAD_HEADER
5464f5a1 20554_ACEOF
252b5132 20555
3f9b03b5 20556fi
252b5132 20557
29670fb9
AM
20558# When building a shared libbfd, link against the pic version of libiberty
20559# so that apps that use libbfd won't need libiberty just to satisfy any
20560# libbfd references.
20561# We can't do that if a pic libiberty is unavailable since including non-pic
20562# code would insert text relocations into libbfd.
20563SHARED_LIBADD=
20564SHARED_LDFLAGS=
20565if test "$enable_shared" = "yes"; then
c5cb8442
TS
20566 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
20567 if test -n "$x"; then
29670fb9 20568 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
c5cb8442 20569 fi
29670fb9
AM
20570
20571# More hacks to build DLLs on Windows.
20572 case "${host}" in
20573 *-*-cygwin*)
20574 SHARED_LDFLAGS="-no-undefined"
20575 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
39691762 20576 ;;
29670fb9
AM
20577 esac
20578fi
252b5132 20579
6be7c12c
AO
20580
20581
252b5132
RH
20582# target stuff:
20583
20584# Canonicalize the secondary target names.
20585if test -n "$enable_targets" ; then
20586 for targ in `echo $enable_targets | sed 's/,/ /g'`
20587 do
6d83c84b 20588 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
20589 if test -n "$result" ; then
20590 canon_targets="$canon_targets $result"
20591 else
20592 # Allow targets that config.sub doesn't recognize, like "all".
20593 canon_targets="$canon_targets $targ"
20594 fi
20595 done
20596fi
20597
20598all_targets=false
20599defvec=
20600selvecs=
08f74004 20601assocvecs=
252b5132
RH
20602selarchs=
20603TDEFINES=
20604for targ in $target $canon_targets
20605do
20606 if test "x$targ" = "xall"; then
20607 all_targets=true
08f74004 20608 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
20609 else
20610 . $srcdir/config.bfd
20611 if test "x$targ" = "x$target"; then
20612 defvec=$targ_defvec
20613 fi
20614 selvecs="$selvecs $targ_defvec $targ_selvecs"
20615 selarchs="$selarchs $targ_archs"
20616 TDEFINES="$TDEFINES $targ_cflags"
20617 fi
20618done
20619
6be7c12c 20620
252b5132
RH
20621# This processing still needs to be done if we're to decide properly whether
20622# 64-bit support needs to be compiled in. Currently, it will be included if
20623# the default or any other explicitly requested target requires it; it
20624# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 20625# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
20626# used.
20627
20628# uniq the default and selected vectors in all the configured targets.
20629f=""
20630for i in $selvecs ; do
20631 case " $f " in
20632 *" $i "*) ;;
20633 *) f="$f $i" ;;
20634 esac
20635done
20636selvecs="$f"
20637
6be7c12c 20638
08f74004
AM
20639# uniq the associated vectors in all the configured targets.
20640f=""
20641for i in $assocvecs ; do
20642 case " $f " in
20643 *" $i "*) ;;
20644 *) f="$f $i" ;;
20645 esac
20646done
20647assocvecs="$f"
20648
20649
252b5132
RH
20650# uniq the architectures in all the configured targets.
20651f=""
20652for i in $selarchs ; do
20653 case " $f " in
20654 *" $i "*) ;;
20655 *) f="$f $i" ;;
20656 esac
20657done
20658selarchs="$f"
20659
20660# Target backend .o files.
20661tb=
20662
104d59d1 20663elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
20664
20665for vec in $selvecs
20666do
69263e90 20667 target_size=32
252b5132
RH
20668 case "$vec" in
20669 # This list is alphabetized to make it easy to compare
dc810e39
AM
20670 # with the two vector lists in targets.c. For the same reason,
20671 # use one entry per line, even though this leads to long lines.
252b5132 20672 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 20673 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
20674 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
20675 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20676 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 20677 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
20678 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20679 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20680 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20681 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
20682 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20683 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20684 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20685 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
20686 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20687 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20688 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
20689 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20690 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20691 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20692 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
20693 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
20694 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 20695 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
e81819a5
NC
20696 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
20697 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 20698 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
e81819a5
NC
20699 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20700 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 20701 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
e81819a5
NC
20702 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20703 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 20704 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 20705 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 20706 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 20707 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 20708 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 20709 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 20710 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 20711 bfd_elf32_bigarm_symbian_vec)
00a97672 20712 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 20713 bfd_elf32_bigarm_vxworks_vec)
00a97672 20714 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
20715 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20716 bfd_elf32_bigmips_vxworks_vec)
20717 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
3d3d428f 20718 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
0949843d 20719 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 20720 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 20721 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
20722 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20723 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 20724 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 20725 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 20726 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 20727 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 20728 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 20729 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 20730 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 20731 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 20732 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
0b3e17e9
NC
20733 bfd_elf32_i386_dragonfly_vec)
20734 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
eac338cf
PB
20735 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20736 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20737 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 20738 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 20739 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 20740 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 20741 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 20742 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 20743 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 20744 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
84e94c90
NC
20745 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
20746 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
252b5132 20747 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 20748 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 20749 bfd_elf32_littlearm_symbian_vec)
00a97672 20750 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 20751 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
20752 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20753 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
20754 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20755 bfd_elf32_littlemips_vxworks_vec)
20756 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 20757 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 20758 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
20759 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20760 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20761 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
20762 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20763 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
20764 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
20765 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
20766 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20767 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
20768 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20769 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
20770 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
20771 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 20772 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 20773 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
20774 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20775 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20776 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20777 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 20778 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 20779 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
20780 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20781 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
20782 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20783 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20784 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 20785 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
20786 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20787 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
20788 # FIXME: We include cofflink.lo not because it's needed for
20789 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
20790 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
20791 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20792 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20793 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20794 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20795 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20796 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20797 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20798 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20799 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20800 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20801 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20802 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20803 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 20804 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 20805 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
20806 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20807 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 20808 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
20809 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20810 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 20811 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 20812 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 20813 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 20814 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 20815 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
20816 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20817 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 20818 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
20819 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20820 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 20821 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
20822 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20823 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 20824 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 20825 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 20826 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
cc2420d5 20827 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf vmsutil.lo"; target_size=64 ;;
dc810e39 20828 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 20829 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 20830 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
20831 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20832 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
20833 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
20834 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20835 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
20836 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20837 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20838 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20839 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 20840 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 20841 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
20842 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 ;;
20843 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 20844 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 20845 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 20846 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
20847 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20848 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20849 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20850 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 20851 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 20852 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 20853 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 20854 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
20855 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20856 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
20857 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
20858 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
20859 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
20860 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
20861 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
20862 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
20863 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
20864 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
20865 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
20866 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 20867 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
20868 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
20869 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
20870 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
20871 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
20872 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
20873 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 20874 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
20875 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
20876 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
20877 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
20878 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
20879 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20880 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
20881 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
20882 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20883 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20884 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
20885 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
20886 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
20887 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
20888 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
20889 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 20890 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
20891 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
20892 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 20893 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 20894 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 20895 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
20896 mach_o_be_vec) tb="$tb mach-o.lo" ;;
20897 mach_o_le_vec) tb="$tb mach-o.lo" ;;
20898 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
20899 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20900 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20901 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20902 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
20903 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
20904 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 20905 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 20906 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 20907 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 20908 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 20909 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 20910 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 20911 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 20912 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
20913 pef_vec) tb="$tb pef.lo" ;;
20914 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 20915 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 20916 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 20917 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 20918 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 20919 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 20920 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 20921 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 20922 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 20923 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 20924 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
20925 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20926 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 20927 som_vec) tb="$tb som.lo" ;;
dc810e39 20928 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
20929 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
20930 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
20931 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
20932 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
20933 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 20934 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 20935 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
20936 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
20937 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
20938 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
20939 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
20940 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
20941 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
20942 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
20943 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 20944 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20945 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 20946 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20947 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 20948 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20949 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 20950 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 20951 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 20952 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 20953 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 20954 versados_vec) tb="$tb versados.lo" ;;
dc810e39 20955 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
20956 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
20957 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
20958 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 20959 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 20960 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 20961
341ca622
AM
20962 # These appear out of order in targets.c
20963 srec_vec) tb="$tb srec.lo" ;;
20964 symbolsrec_vec) tb="$tb srec.lo" ;;
20965 tekhex_vec) tb="$tb tekhex.lo" ;;
20966 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
20967 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
20968
252b5132 20969 "") ;;
5464f5a1
NN
20970 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
20971echo "$as_me: error: *** unknown target vector $vec" >&2;}
20972 { (exit 1); exit 1; }; } ;;
252b5132 20973 esac
69263e90
AM
20974
20975 if test ${target_size} = 64; then
20976 target64=true
20977 fi
20978 if test x"${vec}" = x"${defvec}"; then
20979 bfd_default_target_size=${target_size}
20980 fi
252b5132
RH
20981done
20982
20983# Target architecture .o files.
20984# A couple of CPUs use shorter file names to avoid problems on DOS
20985# filesystems.
d031aafb 20986ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
20987
20988# Weed out duplicate .o files.
20989f=""
20990for i in $tb ; do
20991 case " $f " in
20992 *" $i "*) ;;
20993 *) f="$f $i" ;;
20994 esac
20995done
20996tb="$f"
20997
20998f=""
20999for i in $ta ; do
21000 case " $f " in
21001 *" $i "*) ;;
21002 *) f="$f $i" ;;
21003 esac
21004done
21005ta="$f"
21006
21007bfd_backends="$tb"
21008bfd_machines="$ta"
21009
21010if test x${all_targets} = xtrue ; then
21011 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
21012 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
21013 selvecs=
21014 havevecs=
21015 selarchs=
08f74004
AM
21016 test -n "$assocvecs" &&
21017 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
21018else # all_targets is true
21019 # Only set these if they will be nonempty, for the clever echo.
21020 havevecs=
08f74004 21021 assocvecs=
252b5132
RH
21022 test -n "$selvecs" &&
21023 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
21024 test -n "$selvecs" &&
21025 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21026 test -n "$selarchs" &&
21027 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21028fi # all_targets is true
21029
21030case ${host64}-${target64}-${want64} in
21031 *true*)
21032 wordsize=64
21e40a48 21033 bfd64_libs='$(BFD64_LIBS)'
252b5132 21034 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 21035 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
21036 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
21037echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
21038 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
21039echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 21040 fi
966abd70
HPN
21041 if test -n "$GCC" ; then
21042 bad_64bit_gcc=no;
5464f5a1
NN
21043 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
21044echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 21045 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
21046 cat >conftest.$ac_ext <<_ACEOF
21047/* confdefs.h. */
21048_ACEOF
21049cat confdefs.h >>conftest.$ac_ext
21050cat >>conftest.$ac_ext <<_ACEOF
21051/* end confdefs.h. */
966abd70 21052:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 21053_ACEOF
966abd70 21054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 21055 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 21056 bad_64bit_gcc=yes;
5464f5a1
NN
21057 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
21058echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 21059else
5464f5a1
NN
21060 echo "$as_me:$LINENO: result: no" >&5
21061echo "${ECHO_T}no" >&6
966abd70
HPN
21062fi
21063rm -f conftest*
21064
21065 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
21066 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
21067echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
21068 { (exit 1); exit 1; }; }
966abd70
HPN
21069 fi
21070 fi
252b5132
RH
21071 ;;
21072 false-false-false)
21073 wordsize=32
21074 all_backends='$(BFD32_BACKENDS)'
21075 ;;
21076esac
21077
6be7c12c
AO
21078
21079
21080
21081
21082
69263e90 21083
2858ef35 21084
1012372a
AC
21085# Determine the host dependant file_ptr a.k.a. off_t type. In order
21086# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
21087# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
21088# Hopefully a reasonable assumption since fseeko et.al. should be
21089# upward compatible.
5464f5a1
NN
21090
21091
21092
21093
2e6f4fae
DJ
21094
21095for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 21096do
5464f5a1
NN
21097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21098echo "$as_me:$LINENO: checking for $ac_func" >&5
21099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21100if eval "test \"\${$as_ac_var+set}\" = set"; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21102else
2ba49b59
KC
21103 cat >conftest.$ac_ext <<_ACEOF
21104/* confdefs.h. */
21105_ACEOF
21106cat confdefs.h >>conftest.$ac_ext
21107cat >>conftest.$ac_ext <<_ACEOF
21108/* end confdefs.h. */
21109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21111#define $ac_func innocuous_$ac_func
21112
21113/* System header to define __stub macros and hopefully few prototypes,
21114 which can conflict with char $ac_func (); below.
21115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21116 <limits.h> exists even on freestanding compilers. */
21117
21118#ifdef __STDC__
21119# include <limits.h>
21120#else
21121# include <assert.h>
21122#endif
21123
21124#undef $ac_func
21125
21126/* Override any gcc2 internal prototype to avoid an error. */
21127#ifdef __cplusplus
21128extern "C"
21129{
21130#endif
21131/* We use char because int might match the return type of a gcc2
21132 builtin and then its argument prototype would still apply. */
21133char $ac_func ();
21134/* The GNU C library defines this for functions which it implements
21135 to always fail with ENOSYS. Some functions are actually named
21136 something starting with __ and the normal name is an alias. */
21137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21138choke me
21139#else
21140char (*f) () = $ac_func;
21141#endif
21142#ifdef __cplusplus
21143}
21144#endif
21145
21146int
21147main ()
21148{
21149return f != $ac_func;
21150 ;
21151 return 0;
21152}
21153_ACEOF
21154rm -f conftest.$ac_objext conftest$ac_exeext
21155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21156 (eval $ac_link) 2>conftest.er1
21157 ac_status=$?
21158 grep -v '^ *+' conftest.er1 >conftest.err
21159 rm -f conftest.er1
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } &&
7357c5b6
AM
21163 { ac_try='test -z "$ac_c_werror_flag"
21164 || test ! -s conftest.err'
2ba49b59
KC
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21167 ac_status=$?
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; } &&
21170 { ac_try='test -s conftest$ac_exeext'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21173 ac_status=$?
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; }; then
21176 eval "$as_ac_var=yes"
21177else
21178 echo "$as_me: failed program was:" >&5
21179sed 's/^/| /' conftest.$ac_ext >&5
21180
21181eval "$as_ac_var=no"
21182fi
21183rm -f conftest.err conftest.$ac_objext \
21184 conftest$ac_exeext conftest.$ac_ext
21185fi
21186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21187echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21188if test `eval echo '${'$as_ac_var'}'` = yes; then
21189 cat >>confdefs.h <<_ACEOF
21190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21191_ACEOF
21192
21193fi
21194done
21195
21196if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
21197 echo "$as_me:$LINENO: checking for off_t" >&5
21198echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21199if test "${ac_cv_type_off_t+set}" = set; then
21200 echo $ECHO_N "(cached) $ECHO_C" >&6
21201else
21202 cat >conftest.$ac_ext <<_ACEOF
21203/* confdefs.h. */
21204_ACEOF
21205cat confdefs.h >>conftest.$ac_ext
21206cat >>conftest.$ac_ext <<_ACEOF
21207/* end confdefs.h. */
21208$ac_includes_default
21209int
21210main ()
21211{
21212if ((off_t *) 0)
21213 return 0;
21214if (sizeof (off_t))
21215 return 0;
21216 ;
21217 return 0;
21218}
21219_ACEOF
21220rm -f conftest.$ac_objext
21221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21222 (eval $ac_compile) 2>conftest.er1
21223 ac_status=$?
21224 grep -v '^ *+' conftest.er1 >conftest.err
21225 rm -f conftest.er1
21226 cat conftest.err >&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); } &&
7357c5b6
AM
21229 { ac_try='test -z "$ac_c_werror_flag"
21230 || test ! -s conftest.err'
2ba49b59
KC
21231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21232 (eval $ac_try) 2>&5
21233 ac_status=$?
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); }; } &&
21236 { ac_try='test -s conftest.$ac_objext'
21237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21238 (eval $ac_try) 2>&5
21239 ac_status=$?
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); }; }; then
21242 ac_cv_type_off_t=yes
21243else
21244 echo "$as_me: failed program was:" >&5
21245sed 's/^/| /' conftest.$ac_ext >&5
21246
21247ac_cv_type_off_t=no
21248fi
21249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21250fi
21251echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21252echo "${ECHO_T}$ac_cv_type_off_t" >&6
21253
21254echo "$as_me:$LINENO: checking size of off_t" >&5
21255echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21256if test "${ac_cv_sizeof_off_t+set}" = set; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21258else
21259 if test "$ac_cv_type_off_t" = yes; then
21260 # The cast to unsigned long works around a bug in the HP C Compiler
21261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21263 # This bug is HP SR number 8606223364.
21264 if test "$cross_compiling" = yes; then
21265 # Depending upon the size, compute the lo and hi bounds.
21266cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
21267/* confdefs.h. */
21268_ACEOF
21269cat confdefs.h >>conftest.$ac_ext
21270cat >>conftest.$ac_ext <<_ACEOF
21271/* end confdefs.h. */
2ba49b59
KC
21272$ac_includes_default
21273int
21274main ()
21275{
21276static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21277test_array [0] = 0
5464f5a1 21278
2ba49b59
KC
21279 ;
21280 return 0;
21281}
21282_ACEOF
21283rm -f conftest.$ac_objext
21284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21285 (eval $ac_compile) 2>conftest.er1
21286 ac_status=$?
21287 grep -v '^ *+' conftest.er1 >conftest.err
21288 rm -f conftest.er1
21289 cat conftest.err >&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } &&
7357c5b6
AM
21292 { ac_try='test -z "$ac_c_werror_flag"
21293 || test ! -s conftest.err'
2ba49b59
KC
21294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295 (eval $ac_try) 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; } &&
21299 { ac_try='test -s conftest.$ac_objext'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; }; then
21305 ac_lo=0 ac_mid=0
21306 while :; do
21307 cat >conftest.$ac_ext <<_ACEOF
21308/* confdefs.h. */
21309_ACEOF
21310cat confdefs.h >>conftest.$ac_ext
21311cat >>conftest.$ac_ext <<_ACEOF
21312/* end confdefs.h. */
21313$ac_includes_default
21314int
21315main ()
21316{
21317static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21318test_array [0] = 0
5464f5a1 21319
2ba49b59
KC
21320 ;
21321 return 0;
21322}
21323_ACEOF
21324rm -f conftest.$ac_objext
21325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21326 (eval $ac_compile) 2>conftest.er1
21327 ac_status=$?
21328 grep -v '^ *+' conftest.er1 >conftest.err
21329 rm -f conftest.er1
21330 cat conftest.err >&5
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); } &&
7357c5b6
AM
21333 { ac_try='test -z "$ac_c_werror_flag"
21334 || test ! -s conftest.err'
2ba49b59
KC
21335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336 (eval $ac_try) 2>&5
21337 ac_status=$?
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; } &&
21340 { ac_try='test -s conftest.$ac_objext'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
21346 ac_hi=$ac_mid; break
21347else
21348 echo "$as_me: failed program was:" >&5
21349sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21350
2ba49b59
KC
21351ac_lo=`expr $ac_mid + 1`
21352 if test $ac_lo -le $ac_mid; then
21353 ac_lo= ac_hi=
21354 break
21355 fi
21356 ac_mid=`expr 2 '*' $ac_mid + 1`
21357fi
21358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21359 done
21360else
21361 echo "$as_me: failed program was:" >&5
21362sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21363
2ba49b59
KC
21364cat >conftest.$ac_ext <<_ACEOF
21365/* confdefs.h. */
21366_ACEOF
21367cat confdefs.h >>conftest.$ac_ext
21368cat >>conftest.$ac_ext <<_ACEOF
21369/* end confdefs.h. */
21370$ac_includes_default
21371int
21372main ()
5464f5a1 21373{
2ba49b59
KC
21374static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21375test_array [0] = 0
1012372a 21376
2ba49b59
KC
21377 ;
21378 return 0;
21379}
21380_ACEOF
21381rm -f conftest.$ac_objext
21382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21383 (eval $ac_compile) 2>conftest.er1
21384 ac_status=$?
21385 grep -v '^ *+' conftest.er1 >conftest.err
21386 rm -f conftest.er1
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } &&
7357c5b6
AM
21390 { ac_try='test -z "$ac_c_werror_flag"
21391 || test ! -s conftest.err'
2ba49b59
KC
21392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21393 (eval $ac_try) 2>&5
21394 ac_status=$?
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); }; } &&
21397 { ac_try='test -s conftest.$ac_objext'
21398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399 (eval $ac_try) 2>&5
21400 ac_status=$?
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); }; }; then
21403 ac_hi=-1 ac_mid=-1
21404 while :; do
21405 cat >conftest.$ac_ext <<_ACEOF
21406/* confdefs.h. */
21407_ACEOF
21408cat confdefs.h >>conftest.$ac_ext
21409cat >>conftest.$ac_ext <<_ACEOF
21410/* end confdefs.h. */
21411$ac_includes_default
5464f5a1
NN
21412int
21413main ()
21414{
2ba49b59
KC
21415static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21416test_array [0] = 0
21417
5464f5a1
NN
21418 ;
21419 return 0;
21420}
21421_ACEOF
2ba49b59
KC
21422rm -f conftest.$ac_objext
21423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21424 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
21425 ac_status=$?
21426 grep -v '^ *+' conftest.er1 >conftest.err
21427 rm -f conftest.er1
21428 cat conftest.err >&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); } &&
7357c5b6
AM
21431 { ac_try='test -z "$ac_c_werror_flag"
21432 || test ! -s conftest.err'
5464f5a1
NN
21433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21434 (eval $ac_try) 2>&5
21435 ac_status=$?
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); }; } &&
2ba49b59 21438 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440 (eval $ac_try) 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; }; then
2ba49b59 21444 ac_lo=$ac_mid; break
5464f5a1
NN
21445else
21446 echo "$as_me: failed program was:" >&5
21447sed 's/^/| /' conftest.$ac_ext >&5
21448
2ba49b59
KC
21449ac_hi=`expr '(' $ac_mid ')' - 1`
21450 if test $ac_mid -le $ac_hi; then
21451 ac_lo= ac_hi=
21452 break
21453 fi
21454 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 21455fi
2ba49b59
KC
21456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21457 done
21458else
21459 echo "$as_me: failed program was:" >&5
21460sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21461
2ba49b59 21462ac_lo= ac_hi=
1012372a 21463fi
2ba49b59
KC
21464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21465fi
21466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21467# Binary search between lo and hi bounds.
21468while test "x$ac_lo" != "x$ac_hi"; do
21469 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
21470 cat >conftest.$ac_ext <<_ACEOF
21471/* confdefs.h. */
21472_ACEOF
21473cat confdefs.h >>conftest.$ac_ext
21474cat >>conftest.$ac_ext <<_ACEOF
21475/* end confdefs.h. */
2ba49b59 21476$ac_includes_default
5464f5a1
NN
21477int
21478main ()
21479{
2ba49b59
KC
21480static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21481test_array [0] = 0
21482
5464f5a1
NN
21483 ;
21484 return 0;
21485}
21486_ACEOF
21487rm -f conftest.$ac_objext
21488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21489 (eval $ac_compile) 2>conftest.er1
21490 ac_status=$?
21491 grep -v '^ *+' conftest.er1 >conftest.err
21492 rm -f conftest.er1
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } &&
7357c5b6
AM
21496 { ac_try='test -z "$ac_c_werror_flag"
21497 || test ! -s conftest.err'
5464f5a1
NN
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21500 ac_status=$?
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; } &&
21503 { ac_try='test -s conftest.$ac_objext'
21504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505 (eval $ac_try) 2>&5
21506 ac_status=$?
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; }; then
2ba49b59 21509 ac_hi=$ac_mid
1012372a 21510else
5464f5a1
NN
21511 echo "$as_me: failed program was:" >&5
21512sed 's/^/| /' conftest.$ac_ext >&5
21513
2ba49b59 21514ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 21515fi
5464f5a1 21516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 21517done
2ba49b59
KC
21518case $ac_lo in
21519?*) ac_cv_sizeof_off_t=$ac_lo;;
7357c5b6
AM
21520'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21521echo "$as_me: error: in \`$ac_pwd':" >&2;}
21522{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
2ba49b59
KC
21523See \`config.log' for more details." >&5
21524echo "$as_me: error: cannot compute sizeof (off_t), 77
21525See \`config.log' for more details." >&2;}
7357c5b6 21526 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
21527esac
21528else
21529 if test "$cross_compiling" = yes; then
7357c5b6
AM
21530 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21531echo "$as_me: error: in \`$ac_pwd':" >&2;}
21532{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21533See \`config.log' for more details." >&5
21534echo "$as_me: error: cannot run test program while cross compiling
21535See \`config.log' for more details." >&2;}
21536 { (exit 1); exit 1; }; }; }
2ba49b59
KC
21537else
21538 cat >conftest.$ac_ext <<_ACEOF
21539/* confdefs.h. */
21540_ACEOF
21541cat confdefs.h >>conftest.$ac_ext
21542cat >>conftest.$ac_ext <<_ACEOF
21543/* end confdefs.h. */
21544$ac_includes_default
21545long longval () { return (long) (sizeof (off_t)); }
21546unsigned long ulongval () { return (long) (sizeof (off_t)); }
21547#include <stdio.h>
21548#include <stdlib.h>
21549int
21550main ()
21551{
1012372a 21552
2ba49b59
KC
21553 FILE *f = fopen ("conftest.val", "w");
21554 if (! f)
21555 exit (1);
21556 if (((long) (sizeof (off_t))) < 0)
21557 {
21558 long i = longval ();
21559 if (i != ((long) (sizeof (off_t))))
21560 exit (1);
21561 fprintf (f, "%ld\n", i);
21562 }
21563 else
21564 {
21565 unsigned long i = ulongval ();
21566 if (i != ((long) (sizeof (off_t))))
21567 exit (1);
21568 fprintf (f, "%lu\n", i);
21569 }
21570 exit (ferror (f) || fclose (f) != 0);
21571
21572 ;
21573 return 0;
21574}
21575_ACEOF
21576rm -f conftest$ac_exeext
21577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21578 (eval $ac_link) 2>&5
21579 ac_status=$?
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21584 ac_status=$?
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 ac_cv_sizeof_off_t=`cat conftest.val`
21588else
21589 echo "$as_me: program exited with status $ac_status" >&5
21590echo "$as_me: failed program was:" >&5
21591sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21592
2ba49b59 21593( exit $ac_status )
7357c5b6
AM
21594{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21595echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
21596{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21597See \`config.log' for more details." >&5
21598echo "$as_me: error: cannot compute sizeof (off_t), 77
21599See \`config.log' for more details." >&2;}
7357c5b6 21600 { (exit 1); exit 1; }; }; }
1012372a 21601fi
2ba49b59
KC
21602rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21603fi
21604fi
21605rm -f conftest.val
21606else
21607 ac_cv_sizeof_off_t=0
21608fi
21609fi
5464f5a1
NN
21610echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21611echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 21612cat >>confdefs.h <<_ACEOF
1012372a 21613#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 21614_ACEOF
1012372a
AC
21615
21616
1012372a 21617fi
5464f5a1
NN
21618echo "$as_me:$LINENO: checking file_ptr type" >&5
21619echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
21620bfd_file_ptr="long"
21621bfd_ufile_ptr="unsigned long"
21622if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
21623 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
21624 bfd_file_ptr=BFD_HOST_64_BIT
21625 bfd_ufile_ptr=BFD_HOST_U_64_BIT
21626fi
5464f5a1
NN
21627echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
21628echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
21629
21630
21631
21632
252b5132
RH
21633tdefaults=""
21634test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
21635test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 21636test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
21637test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
21638test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
21639
6be7c12c 21640
5464f5a1
NN
21641
21642
21643for ac_header in stdlib.h unistd.h
252b5132 21644do
5464f5a1
NN
21645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21646if eval "test \"\${$as_ac_Header+set}\" = set"; then
21647 echo "$as_me:$LINENO: checking for $ac_header" >&5
21648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21649if eval "test \"\${$as_ac_Header+set}\" = set"; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21651fi
21652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21654else
21655 # Is the header compilable?
21656echo "$as_me:$LINENO: checking $ac_header usability" >&5
21657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21658cat >conftest.$ac_ext <<_ACEOF
21659/* confdefs.h. */
21660_ACEOF
21661cat confdefs.h >>conftest.$ac_ext
21662cat >>conftest.$ac_ext <<_ACEOF
21663/* end confdefs.h. */
21664$ac_includes_default
21665#include <$ac_header>
21666_ACEOF
21667rm -f conftest.$ac_objext
21668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21669 (eval $ac_compile) 2>conftest.er1
21670 ac_status=$?
21671 grep -v '^ *+' conftest.er1 >conftest.err
21672 rm -f conftest.er1
21673 cat conftest.err >&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } &&
7357c5b6
AM
21676 { ac_try='test -z "$ac_c_werror_flag"
21677 || test ! -s conftest.err'
5464f5a1
NN
21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679 (eval $ac_try) 2>&5
21680 ac_status=$?
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); }; } &&
21683 { ac_try='test -s conftest.$ac_objext'
21684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21685 (eval $ac_try) 2>&5
21686 ac_status=$?
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); }; }; then
21689 ac_header_compiler=yes
21690else
21691 echo "$as_me: failed program was:" >&5
21692sed 's/^/| /' conftest.$ac_ext >&5
21693
21694ac_header_compiler=no
21695fi
21696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21698echo "${ECHO_T}$ac_header_compiler" >&6
21699
21700# Is the header present?
21701echo "$as_me:$LINENO: checking $ac_header presence" >&5
21702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21703cat >conftest.$ac_ext <<_ACEOF
21704/* confdefs.h. */
21705_ACEOF
21706cat confdefs.h >>conftest.$ac_ext
21707cat >>conftest.$ac_ext <<_ACEOF
21708/* end confdefs.h. */
21709#include <$ac_header>
21710_ACEOF
21711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21713 ac_status=$?
21714 grep -v '^ *+' conftest.er1 >conftest.err
21715 rm -f conftest.er1
21716 cat conftest.err >&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } >/dev/null; then
21719 if test -s conftest.err; then
21720 ac_cpp_err=$ac_c_preproc_warn_flag
21721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21722 else
21723 ac_cpp_err=
21724 fi
252b5132 21725else
5464f5a1 21726 ac_cpp_err=yes
252b5132 21727fi
5464f5a1
NN
21728if test -z "$ac_cpp_err"; then
21729 ac_header_preproc=yes
21730else
21731 echo "$as_me: failed program was:" >&5
21732sed 's/^/| /' conftest.$ac_ext >&5
21733
21734 ac_header_preproc=no
252b5132 21735fi
5464f5a1
NN
21736rm -f conftest.err conftest.$ac_ext
21737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21738echo "${ECHO_T}$ac_header_preproc" >&6
21739
21740# So? What about this header?
21741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21742 yes:no: )
21743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21747 ac_header_preproc=yes
21748 ;;
21749 no:yes:* )
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21757echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21762 (
21763 cat <<\_ASBOX
21764## ------------------------------------------ ##
21765## Report this to the AC_PACKAGE_NAME lists. ##
21766## ------------------------------------------ ##
21767_ASBOX
21768 ) |
21769 sed "s/^/$as_me: WARNING: /" >&2
21770 ;;
21771esac
21772echo "$as_me:$LINENO: checking for $ac_header" >&5
21773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21774if eval "test \"\${$as_ac_Header+set}\" = set"; then
21775 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 21776else
5464f5a1
NN
21777 eval "$as_ac_Header=\$ac_header_preproc"
21778fi
21779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21781
21782fi
21783if test `eval echo '${'$as_ac_Header'}'` = yes; then
21784 cat >>confdefs.h <<_ACEOF
21785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21786_ACEOF
21787
252b5132 21788fi
5464f5a1 21789
252b5132
RH
21790done
21791
5464f5a1 21792
252b5132
RH
21793for ac_func in getpagesize
21794do
5464f5a1
NN
21795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21796echo "$as_me:$LINENO: checking for $ac_func" >&5
21797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21798if eval "test \"\${$as_ac_var+set}\" = set"; then
21799 echo $ECHO_N "(cached) $ECHO_C" >&6
21800else
21801 cat >conftest.$ac_ext <<_ACEOF
21802/* confdefs.h. */
21803_ACEOF
21804cat confdefs.h >>conftest.$ac_ext
21805cat >>conftest.$ac_ext <<_ACEOF
21806/* end confdefs.h. */
21807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21809#define $ac_func innocuous_$ac_func
21810
252b5132 21811/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
21812 which can conflict with char $ac_func (); below.
21813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21814 <limits.h> exists even on freestanding compilers. */
21815
21816#ifdef __STDC__
21817# include <limits.h>
21818#else
21819# include <assert.h>
21820#endif
6be7c12c 21821
5464f5a1 21822#undef $ac_func
252b5132 21823
5464f5a1
NN
21824/* Override any gcc2 internal prototype to avoid an error. */
21825#ifdef __cplusplus
21826extern "C"
21827{
21828#endif
21829/* We use char because int might match the return type of a gcc2
21830 builtin and then its argument prototype would still apply. */
21831char $ac_func ();
252b5132
RH
21832/* The GNU C library defines this for functions which it implements
21833 to always fail with ENOSYS. Some functions are actually named
21834 something starting with __ and the normal name is an alias. */
21835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21836choke me
21837#else
5464f5a1
NN
21838char (*f) () = $ac_func;
21839#endif
21840#ifdef __cplusplus
21841}
252b5132
RH
21842#endif
21843
5464f5a1
NN
21844int
21845main ()
21846{
21847return f != $ac_func;
21848 ;
21849 return 0;
21850}
21851_ACEOF
21852rm -f conftest.$ac_objext conftest$ac_exeext
21853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21854 (eval $ac_link) 2>conftest.er1
21855 ac_status=$?
21856 grep -v '^ *+' conftest.er1 >conftest.err
21857 rm -f conftest.er1
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } &&
7357c5b6
AM
21861 { ac_try='test -z "$ac_c_werror_flag"
21862 || test ! -s conftest.err'
5464f5a1
NN
21863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21864 (eval $ac_try) 2>&5
21865 ac_status=$?
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); }; } &&
21868 { ac_try='test -s conftest$ac_exeext'
21869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21870 (eval $ac_try) 2>&5
21871 ac_status=$?
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); }; }; then
21874 eval "$as_ac_var=yes"
21875else
21876 echo "$as_me: failed program was:" >&5
21877sed 's/^/| /' conftest.$ac_ext >&5
21878
21879eval "$as_ac_var=no"
21880fi
21881rm -f conftest.err conftest.$ac_objext \
21882 conftest$ac_exeext conftest.$ac_ext
21883fi
21884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21886if test `eval echo '${'$as_ac_var'}'` = yes; then
21887 cat >>confdefs.h <<_ACEOF
21888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21889_ACEOF
252b5132 21890
252b5132
RH
21891fi
21892done
21893
5464f5a1
NN
21894echo "$as_me:$LINENO: checking for working mmap" >&5
21895echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21896if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
21898else
21899 if test "$cross_compiling" = yes; then
21900 ac_cv_func_mmap_fixed_mapped=no
21901else
5464f5a1
NN
21902 cat >conftest.$ac_ext <<_ACEOF
21903/* confdefs.h. */
21904_ACEOF
21905cat confdefs.h >>conftest.$ac_ext
21906cat >>conftest.$ac_ext <<_ACEOF
21907/* end confdefs.h. */
21908$ac_includes_default
21909/* malloc might have been renamed as rpl_malloc. */
21910#undef malloc
6be7c12c 21911
252b5132
RH
21912/* Thanks to Mike Haertel and Jim Avera for this test.
21913 Here is a matrix of mmap possibilities:
21914 mmap private not fixed
21915 mmap private fixed at somewhere currently unmapped
21916 mmap private fixed at somewhere already mapped
21917 mmap shared not fixed
21918 mmap shared fixed at somewhere currently unmapped
21919 mmap shared fixed at somewhere already mapped
21920 For private mappings, we should verify that changes cannot be read()
21921 back from the file, nor mmap's back from the file at a different
21922 address. (There have been systems where private was not correctly
21923 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 21924 VM page cache was not coherent with the file system buffer cache
252b5132
RH
21925 like early versions of FreeBSD and possibly contemporary NetBSD.)
21926 For shared mappings, we should conversely verify that changes get
5464f5a1 21927 propagated back to all the places they're supposed to be.
252b5132
RH
21928
21929 Grep wants private fixed already mapped.
21930 The main things grep needs to know about mmap are:
21931 * does it exist and is it safe to write into the mmap'd area
21932 * how to use it (BSD variants) */
5464f5a1 21933
252b5132
RH
21934#include <fcntl.h>
21935#include <sys/mman.h>
21936
5464f5a1
NN
21937#if !STDC_HEADERS && !HAVE_STDLIB_H
21938char *malloc ();
21939#endif
6be7c12c 21940
5464f5a1
NN
21941/* This mess was copied from the GNU getpagesize.h. */
21942#if !HAVE_GETPAGESIZE
252b5132 21943/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 21944# if !HAVE_SYS_PARAM_H
252b5132
RH
21945# define HAVE_SYS_PARAM_H 1
21946# endif
21947
21948# ifdef _SC_PAGESIZE
21949# define getpagesize() sysconf(_SC_PAGESIZE)
21950# else /* no _SC_PAGESIZE */
5464f5a1 21951# if HAVE_SYS_PARAM_H
252b5132
RH
21952# include <sys/param.h>
21953# ifdef EXEC_PAGESIZE
21954# define getpagesize() EXEC_PAGESIZE
21955# else /* no EXEC_PAGESIZE */
21956# ifdef NBPG
21957# define getpagesize() NBPG * CLSIZE
21958# ifndef CLSIZE
21959# define CLSIZE 1
21960# endif /* no CLSIZE */
21961# else /* no NBPG */
21962# ifdef NBPC
21963# define getpagesize() NBPC
21964# else /* no NBPC */
21965# ifdef PAGESIZE
21966# define getpagesize() PAGESIZE
21967# endif /* PAGESIZE */
21968# endif /* no NBPC */
21969# endif /* no NBPG */
21970# endif /* no EXEC_PAGESIZE */
21971# else /* no HAVE_SYS_PARAM_H */
21972# define getpagesize() 8192 /* punt totally */
21973# endif /* no HAVE_SYS_PARAM_H */
21974# endif /* no _SC_PAGESIZE */
21975
5464f5a1
NN
21976#endif /* no HAVE_GETPAGESIZE */
21977
21978int
21979main ()
21980{
21981 char *data, *data2, *data3;
21982 int i, pagesize;
21983 int fd;
21984
21985 pagesize = getpagesize ();
21986
21987 /* First, make a file with some known garbage in it. */
21988 data = (char *) malloc (pagesize);
21989 if (!data)
21990 exit (1);
21991 for (i = 0; i < pagesize; ++i)
21992 *(data + i) = rand ();
21993 umask (0);
21994 fd = creat ("conftest.mmap", 0600);
21995 if (fd < 0)
21996 exit (1);
21997 if (write (fd, data, pagesize) != pagesize)
21998 exit (1);
21999 close (fd);
22000
22001 /* Next, try to mmap the file at a fixed address which already has
22002 something else allocated at it. If we can, also make sure that
22003 we see the same garbage. */
22004 fd = open ("conftest.mmap", O_RDWR);
22005 if (fd < 0)
22006 exit (1);
22007 data2 = (char *) malloc (2 * pagesize);
22008 if (!data2)
22009 exit (1);
22010 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22011 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22012 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22013 exit (1);
22014 for (i = 0; i < pagesize; ++i)
22015 if (*(data + i) != *(data2 + i))
22016 exit (1);
22017
22018 /* Finally, make sure that changes to the mapped area do not
22019 percolate back to the file as seen by read(). (This is a bug on
22020 some variants of i386 svr4.0.) */
22021 for (i = 0; i < pagesize; ++i)
22022 *(data2 + i) = *(data2 + i) + 1;
22023 data3 = (char *) malloc (pagesize);
22024 if (!data3)
22025 exit (1);
22026 if (read (fd, data3, pagesize) != pagesize)
22027 exit (1);
22028 for (i = 0; i < pagesize; ++i)
22029 if (*(data + i) != *(data3 + i))
22030 exit (1);
22031 close (fd);
22032 exit (0);
22033}
22034_ACEOF
22035rm -f conftest$ac_exeext
22036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22037 (eval $ac_link) 2>&5
22038 ac_status=$?
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22042 (eval $ac_try) 2>&5
22043 ac_status=$?
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); }; }; then
22046 ac_cv_func_mmap_fixed_mapped=yes
22047else
22048 echo "$as_me: program exited with status $ac_status" >&5
22049echo "$as_me: failed program was:" >&5
22050sed 's/^/| /' conftest.$ac_ext >&5
22051
22052( exit $ac_status )
22053ac_cv_func_mmap_fixed_mapped=no
22054fi
22055rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22056fi
22057fi
22058echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22059echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22060if test $ac_cv_func_mmap_fixed_mapped = yes; then
22061
22062cat >>confdefs.h <<\_ACEOF
22063#define HAVE_MMAP 1
22064_ACEOF
22065
22066fi
22067rm -f conftest.mmap
22068
22069
22070
22071for ac_func in madvise mprotect
22072do
22073as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22074echo "$as_me:$LINENO: checking for $ac_func" >&5
22075echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22076if eval "test \"\${$as_ac_var+set}\" = set"; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22078else
22079 cat >conftest.$ac_ext <<_ACEOF
22080/* confdefs.h. */
22081_ACEOF
22082cat confdefs.h >>conftest.$ac_ext
22083cat >>conftest.$ac_ext <<_ACEOF
22084/* end confdefs.h. */
22085/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22087#define $ac_func innocuous_$ac_func
22088
22089/* System header to define __stub macros and hopefully few prototypes,
22090 which can conflict with char $ac_func (); below.
22091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22092 <limits.h> exists even on freestanding compilers. */
22093
22094#ifdef __STDC__
22095# include <limits.h>
22096#else
22097# include <assert.h>
22098#endif
22099
22100#undef $ac_func
22101
22102/* Override any gcc2 internal prototype to avoid an error. */
22103#ifdef __cplusplus
22104extern "C"
22105{
22106#endif
22107/* We use char because int might match the return type of a gcc2
22108 builtin and then its argument prototype would still apply. */
22109char $ac_func ();
22110/* The GNU C library defines this for functions which it implements
22111 to always fail with ENOSYS. Some functions are actually named
22112 something starting with __ and the normal name is an alias. */
22113#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22114choke me
22115#else
22116char (*f) () = $ac_func;
22117#endif
22118#ifdef __cplusplus
22119}
22120#endif
22121
22122int
22123main ()
22124{
22125return f != $ac_func;
22126 ;
22127 return 0;
22128}
22129_ACEOF
22130rm -f conftest.$ac_objext conftest$ac_exeext
22131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22132 (eval $ac_link) 2>conftest.er1
22133 ac_status=$?
22134 grep -v '^ *+' conftest.er1 >conftest.err
22135 rm -f conftest.er1
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } &&
7357c5b6
AM
22139 { ac_try='test -z "$ac_c_werror_flag"
22140 || test ! -s conftest.err'
5464f5a1
NN
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22143 ac_status=$?
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; } &&
22146 { ac_try='test -s conftest$ac_exeext'
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; }; then
22152 eval "$as_ac_var=yes"
22153else
22154 echo "$as_me: failed program was:" >&5
22155sed 's/^/| /' conftest.$ac_ext >&5
22156
22157eval "$as_ac_var=no"
22158fi
22159rm -f conftest.err conftest.$ac_objext \
22160 conftest$ac_exeext conftest.$ac_ext
22161fi
22162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22163echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22164if test `eval echo '${'$as_ac_var'}'` = yes; then
22165 cat >>confdefs.h <<_ACEOF
22166#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22167_ACEOF
22168
22169fi
22170done
22171
22172case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
22173 true+yes )
22174cat >>confdefs.h <<\_ACEOF
22175#define USE_MMAP 1
22176_ACEOF
22177 ;;
22178esac
22179
22180rm -f doc/config.status
22181 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
22182
20e95c23 22183
5464f5a1
NN
22184 ac_config_commands="$ac_config_commands default"
22185
108a6f8e
CD
22186
22187
22188
22189
22190
31dd3154 22191
5464f5a1
NN
22192cat >confcache <<\_ACEOF
22193# This file is a shell script that caches the results of configure
22194# tests run on this system so they can be shared between configure
22195# scripts and configure runs, see configure's option --config-cache.
22196# It is not useful on other systems. If it contains results you don't
22197# want to keep, you may remove or edit it.
22198#
22199# config.status only pays attention to the cache file if you give it
22200# the --recheck option to rerun configure.
22201#
22202# `ac_cv_env_foo' variables (set or unset) will be overridden when
22203# loading this file, other *unset* `ac_cv_foo' will be assigned the
22204# following values.
22205
22206_ACEOF
22207
22208# The following way of writing the cache mishandles newlines in values,
22209# but we know of no workaround that is simple, portable, and efficient.
22210# So, don't put newlines in cache variables' values.
22211# Ultrix sh set writes to stderr and can't be redirected directly,
22212# and sets the high bit in the cache file unless we assign to the vars.
22213{
22214 (set) 2>&1 |
22215 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22216 *ac_space=\ *)
22217 # `set' does not quote correctly, so add quotes (double-quote
22218 # substitution turns \\\\ into \\, and sed turns \\ into \).
22219 sed -n \
22220 "s/'/'\\\\''/g;
22221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22222 ;;
22223 *)
22224 # `set' quotes correctly as required by POSIX, so do not add quotes.
22225 sed -n \
22226 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22227 ;;
22228 esac;
22229} |
22230 sed '
22231 t clear
22232 : clear
22233 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22234 t end
22235 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22236 : end' >>confcache
22237if diff $cache_file confcache >/dev/null 2>&1; then :; else
22238 if test -w $cache_file; then
22239 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22240 cat confcache >$cache_file
22241 else
22242 echo "not updating unwritable cache $cache_file"
22243 fi
22244fi
22245rm -f confcache
22246
22247test "x$prefix" = xNONE && prefix=$ac_default_prefix
22248# Let make expand exec_prefix.
22249test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22250
22251# VPATH may cause trouble with some makes, so we remove $(srcdir),
22252# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22253# trailing colons and then remove the whole line if VPATH becomes empty
22254# (actually we leave an empty line to preserve line numbers).
22255if test "x$srcdir" = x.; then
22256 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22257s/:*\$(srcdir):*/:/;
22258s/:*\${srcdir}:*/:/;
22259s/:*@srcdir@:*/:/;
22260s/^\([^=]*=[ ]*\):*/\1/;
22261s/:*$//;
22262s/^[^=]*=[ ]*$//;
22263}'
22264fi
22265
22266DEFS=-DHAVE_CONFIG_H
22267
22268ac_libobjs=
22269ac_ltlibobjs=
22270for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22271 # 1. Remove the extension, and $U if already installed.
22272 ac_i=`echo "$ac_i" |
22273 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22274 # 2. Add them.
22275 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22276 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22277done
22278LIBOBJS=$ac_libobjs
22279
22280LTLIBOBJS=$ac_ltlibobjs
22281
22282
f5385ebf
AM
22283if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22284 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22285Usually this means the macro was only invoked conditionally." >&5
22286echo "$as_me: error: conditional \"AMDEP\" was never defined.
22287Usually this means the macro was only invoked conditionally." >&2;}
22288 { (exit 1); exit 1; }; }
22289fi
22290if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22291 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22292Usually this means the macro was only invoked conditionally." >&5
22293echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22294Usually this means the macro was only invoked conditionally." >&2;}
22295 { (exit 1); exit 1; }; }
22296fi
22297if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22298 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22299Usually this means the macro was only invoked conditionally." >&5
22300echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22301Usually this means the macro was only invoked conditionally." >&2;}
22302 { (exit 1); exit 1; }; }
22303fi
d5fbea21
DJ
22304if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
22305 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
22306Usually this means the macro was only invoked conditionally." >&5
22307echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
22308Usually this means the macro was only invoked conditionally." >&2;}
22309 { (exit 1); exit 1; }; }
22310fi
f5385ebf
AM
22311if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
22312 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
22313Usually this means the macro was only invoked conditionally." >&5
22314echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
22315Usually this means the macro was only invoked conditionally." >&2;}
22316 { (exit 1); exit 1; }; }
22317fi
5464f5a1
NN
22318
22319: ${CONFIG_STATUS=./config.status}
22320ac_clean_files_save=$ac_clean_files
22321ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22322{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22323echo "$as_me: creating $CONFIG_STATUS" >&6;}
22324cat >$CONFIG_STATUS <<_ACEOF
22325#! $SHELL
22326# Generated by $as_me.
22327# Run this file to recreate the current configuration.
22328# Compiler output produced by configure, useful for debugging
22329# configure, is in config.log if it exists.
22330
22331debug=false
22332ac_cs_recheck=false
22333ac_cs_silent=false
22334SHELL=\${CONFIG_SHELL-$SHELL}
22335_ACEOF
22336
22337cat >>$CONFIG_STATUS <<\_ACEOF
22338## --------------------- ##
22339## M4sh Initialization. ##
22340## --------------------- ##
22341
22342# Be Bourne compatible
22343if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22344 emulate sh
22345 NULLCMD=:
22346 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22347 # is contrary to our usage. Disable this feature.
22348 alias -g '${1+"$@"}'='"$@"'
22349elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22350 set -o posix
22351fi
22352DUALCASE=1; export DUALCASE # for MKS sh
22353
22354# Support unset when possible.
22355if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22356 as_unset=unset
22357else
22358 as_unset=false
22359fi
22360
22361
22362# Work around bugs in pre-3.0 UWIN ksh.
22363$as_unset ENV MAIL MAILPATH
22364PS1='$ '
22365PS2='> '
22366PS4='+ '
22367
22368# NLS nuisances.
22369for as_var in \
22370 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22371 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22372 LC_TELEPHONE LC_TIME
22373do
22374 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22375 eval $as_var=C; export $as_var
22376 else
22377 $as_unset $as_var
22378 fi
22379done
22380
22381# Required to use basename.
22382if expr a : '\(a\)' >/dev/null 2>&1; then
22383 as_expr=expr
22384else
22385 as_expr=false
22386fi
22387
22388if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22389 as_basename=basename
22390else
22391 as_basename=false
22392fi
252b5132 22393
6be7c12c 22394
5464f5a1
NN
22395# Name of the executable.
22396as_me=`$as_basename "$0" ||
22397$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22398 X"$0" : 'X\(//\)$' \| \
22399 X"$0" : 'X\(/\)$' \| \
22400 . : '\(.\)' 2>/dev/null ||
22401echo X/"$0" |
22402 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22403 /^X\/\(\/\/\)$/{ s//\1/; q; }
22404 /^X\/\(\/\).*/{ s//\1/; q; }
22405 s/.*/./; q'`
22406
22407
22408# PATH needs CR, and LINENO needs CR and PATH.
22409# Avoid depending upon Character Ranges.
22410as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22411as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22412as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22413as_cr_digits='0123456789'
22414as_cr_alnum=$as_cr_Letters$as_cr_digits
22415
22416# The user is always right.
22417if test "${PATH_SEPARATOR+set}" != set; then
22418 echo "#! /bin/sh" >conf$$.sh
22419 echo "exit 0" >>conf$$.sh
22420 chmod +x conf$$.sh
22421 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22422 PATH_SEPARATOR=';'
22423 else
22424 PATH_SEPARATOR=:
22425 fi
22426 rm -f conf$$.sh
22427fi
22428
22429
22430 as_lineno_1=$LINENO
22431 as_lineno_2=$LINENO
22432 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22433 test "x$as_lineno_1" != "x$as_lineno_2" &&
22434 test "x$as_lineno_3" = "x$as_lineno_2" || {
22435 # Find who we are. Look in the path if we contain no path at all
22436 # relative or not.
22437 case $0 in
22438 *[\\/]* ) as_myself=$0 ;;
22439 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22440for as_dir in $PATH
22441do
22442 IFS=$as_save_IFS
22443 test -z "$as_dir" && as_dir=.
22444 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22445done
22446
22447 ;;
22448 esac
22449 # We did not find ourselves, most probably we were run as `sh COMMAND'
22450 # in which case we are not to be found in the path.
22451 if test "x$as_myself" = x; then
22452 as_myself=$0
22453 fi
22454 if test ! -f "$as_myself"; then
22455 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22456echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22457 { (exit 1); exit 1; }; }
22458 fi
22459 case $CONFIG_SHELL in
22460 '')
22461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22462for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22463do
22464 IFS=$as_save_IFS
22465 test -z "$as_dir" && as_dir=.
22466 for as_base in sh bash ksh sh5; do
22467 case $as_dir in
22468 /*)
22469 if ("$as_dir/$as_base" -c '
22470 as_lineno_1=$LINENO
22471 as_lineno_2=$LINENO
22472 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22473 test "x$as_lineno_1" != "x$as_lineno_2" &&
22474 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22475 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22476 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22477 CONFIG_SHELL=$as_dir/$as_base
22478 export CONFIG_SHELL
22479 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22480 fi;;
22481 esac
22482 done
22483done
22484;;
22485 esac
22486
22487 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22488 # uniformly replaced by the line number. The first 'sed' inserts a
22489 # line-number line before each line; the second 'sed' does the real
22490 # work. The second script uses 'N' to pair each line-number line
22491 # with the numbered line, and appends trailing '-' during
22492 # substitution so that $LINENO is not a special case at line end.
22493 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22494 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22495 sed '=' <$as_myself |
22496 sed '
22497 N
22498 s,$,-,
22499 : loop
22500 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22501 t loop
22502 s,-$,,
22503 s,^['$as_cr_digits']*\n,,
22504 ' >$as_me.lineno &&
22505 chmod +x $as_me.lineno ||
22506 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22507echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22508 { (exit 1); exit 1; }; }
22509
22510 # Don't try to exec as it changes $[0], causing all sort of problems
22511 # (the dirname of $[0] is not the place where we might find the
22512 # original and so on. Autoconf is especially sensible to this).
22513 . ./$as_me.lineno
22514 # Exit status is that of the last command.
22515 exit
252b5132 22516}
6be7c12c 22517
5464f5a1
NN
22518
22519case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22520 *c*,-n*) ECHO_N= ECHO_C='
22521' ECHO_T=' ' ;;
22522 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22523 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22524esac
22525
22526if expr a : '\(a\)' >/dev/null 2>&1; then
22527 as_expr=expr
252b5132 22528else
5464f5a1 22529 as_expr=false
252b5132 22530fi
5464f5a1
NN
22531
22532rm -f conf$$ conf$$.exe conf$$.file
22533echo >conf$$.file
22534if ln -s conf$$.file conf$$ 2>/dev/null; then
22535 # We could just check for DJGPP; but this test a) works b) is more generic
22536 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22537 if test -f conf$$.exe; then
22538 # Don't use ln at all; we don't have any links
22539 as_ln_s='cp -p'
22540 else
22541 as_ln_s='ln -s'
22542 fi
22543elif ln conf$$.file conf$$ 2>/dev/null; then
22544 as_ln_s=ln
22545else
22546 as_ln_s='cp -p'
252b5132 22547fi
5464f5a1 22548rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 22549
5464f5a1
NN
22550if mkdir -p . 2>/dev/null; then
22551 as_mkdir_p=:
22552else
22553 test -d ./-p && rmdir ./-p
22554 as_mkdir_p=false
252b5132 22555fi
b3baf5d0 22556
5464f5a1 22557as_executable_p="test -f"
252b5132 22558
5464f5a1
NN
22559# Sed expression to map a string onto a valid CPP name.
22560as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 22561
5464f5a1
NN
22562# Sed expression to map a string onto a valid variable name.
22563as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 22564
252b5132 22565
5464f5a1
NN
22566# IFS
22567# We need space, tab and new line, in precisely that order.
22568as_nl='
22569'
22570IFS=" $as_nl"
252b5132 22571
5464f5a1
NN
22572# CDPATH.
22573$as_unset CDPATH
22574
22575exec 6>&1
22576
22577# Open the log real soon, to keep \$[0] and so on meaningful, and to
22578# report actual input values of CONFIG_FILES etc. instead of their
22579# values after options handling. Logging --version etc. is OK.
22580exec 5>>config.log
22581{
22582 echo
22583 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22584## Running $as_me. ##
22585_ASBOX
22586} >&5
22587cat >&5 <<_CSEOF
22588
22589This file was extended by $as_me, which was
22590generated by GNU Autoconf 2.59. Invocation command line was
22591
22592 CONFIG_FILES = $CONFIG_FILES
22593 CONFIG_HEADERS = $CONFIG_HEADERS
22594 CONFIG_LINKS = $CONFIG_LINKS
22595 CONFIG_COMMANDS = $CONFIG_COMMANDS
22596 $ $0 $@
22597
22598_CSEOF
22599echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22600echo >&5
22601_ACEOF
22602
22603# Files that config.status was made for.
22604if test -n "$ac_config_files"; then
22605 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 22606fi
5464f5a1
NN
22607
22608if test -n "$ac_config_headers"; then
22609 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 22610fi
252b5132 22611
5464f5a1
NN
22612if test -n "$ac_config_links"; then
22613 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 22614fi
252b5132 22615
5464f5a1
NN
22616if test -n "$ac_config_commands"; then
22617 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22618fi
252b5132 22619
5464f5a1
NN
22620cat >>$CONFIG_STATUS <<\_ACEOF
22621
22622ac_cs_usage="\
22623\`$as_me' instantiates files from templates according to the
22624current configuration.
22625
22626Usage: $0 [OPTIONS] [FILE]...
22627
22628 -h, --help print this help, then exit
22629 -V, --version print version number, then exit
22630 -q, --quiet do not print progress messages
22631 -d, --debug don't remove temporary files
22632 --recheck update $as_me by reconfiguring in the same conditions
22633 --file=FILE[:TEMPLATE]
22634 instantiate the configuration file FILE
22635 --header=FILE[:TEMPLATE]
22636 instantiate the configuration header FILE
22637
22638Configuration files:
22639$config_files
22640
22641Configuration headers:
22642$config_headers
22643
22644Configuration commands:
22645$config_commands
22646
22647Report bugs to <bug-autoconf@gnu.org>."
22648_ACEOF
22649
22650cat >>$CONFIG_STATUS <<_ACEOF
22651ac_cs_version="\\
22652config.status
22653configured by $0, generated by GNU Autoconf 2.59,
22654 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22655
22656Copyright (C) 2003 Free Software Foundation, Inc.
22657This config.status script is free software; the Free Software Foundation
22658gives unlimited permission to copy, distribute and modify it."
22659srcdir=$srcdir
22660INSTALL="$INSTALL"
22661_ACEOF
22662
22663cat >>$CONFIG_STATUS <<\_ACEOF
22664# If no file are specified by the user, then we need to provide default
22665# value. By we need to know if files were specified by the user.
22666ac_need_defaults=:
22667while test $# != 0
22668do
22669 case $1 in
22670 --*=*)
22671 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22672 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22673 ac_shift=:
6be7c12c 22674 ;;
5464f5a1
NN
22675 -*)
22676 ac_option=$1
22677 ac_optarg=$2
22678 ac_shift=shift
6be7c12c 22679 ;;
5464f5a1
NN
22680 *) # This is not an option, so the user has probably given explicit
22681 # arguments.
22682 ac_option=$1
22683 ac_need_defaults=false;;
22684 esac
252b5132 22685
5464f5a1
NN
22686 case $ac_option in
22687 # Handling of the options.
22688_ACEOF
22689cat >>$CONFIG_STATUS <<\_ACEOF
22690 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22691 ac_cs_recheck=: ;;
22692 --version | --vers* | -V )
22693 echo "$ac_cs_version"; exit 0 ;;
22694 --he | --h)
22695 # Conflict between --help and --header
22696 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22697Try \`$0 --help' for more information." >&5
22698echo "$as_me: error: ambiguous option: $1
22699Try \`$0 --help' for more information." >&2;}
22700 { (exit 1); exit 1; }; };;
22701 --help | --hel | -h )
22702 echo "$ac_cs_usage"; exit 0 ;;
22703 --debug | --d* | -d )
22704 debug=: ;;
22705 --file | --fil | --fi | --f )
22706 $ac_shift
22707 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22708 ac_need_defaults=false;;
22709 --header | --heade | --head | --hea )
22710 $ac_shift
22711 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22712 ac_need_defaults=false;;
22713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22714 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22715 ac_cs_silent=: ;;
6be7c12c 22716
5464f5a1
NN
22717 # This is an error.
22718 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22719Try \`$0 --help' for more information." >&5
22720echo "$as_me: error: unrecognized option: $1
22721Try \`$0 --help' for more information." >&2;}
22722 { (exit 1); exit 1; }; } ;;
252b5132 22723
5464f5a1 22724 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 22725
5464f5a1
NN
22726 esac
22727 shift
22728done
6be7c12c 22729
5464f5a1 22730ac_configure_extra_args=
252b5132 22731
5464f5a1
NN
22732if $ac_cs_silent; then
22733 exec 6>/dev/null
22734 ac_configure_extra_args="$ac_configure_extra_args --silent"
22735fi
6be7c12c 22736
5464f5a1
NN
22737_ACEOF
22738cat >>$CONFIG_STATUS <<_ACEOF
22739if \$ac_cs_recheck; then
22740 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22741 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22742fi
22743
22744_ACEOF
22745
22746cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 22747#
5464f5a1 22748# INIT-COMMANDS section.
6be7c12c 22749#
b3baf5d0 22750
f5385ebf 22751AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
22752
22753
22754# The HP-UX ksh and POSIX shell print the target directory to stdout
22755# if CDPATH is set.
22756(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22757
22758sed_quote_subst='$sed_quote_subst'
22759double_quote_subst='$double_quote_subst'
22760delay_variable_subst='$delay_variable_subst'
22761enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22762macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22763macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22764enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22765pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22766enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22767host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22768host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22769host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22770build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22771build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22772build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22773SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22774Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22775GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22776EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22777FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22778LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22779NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22780LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22781max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22782ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22783exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22784lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22785lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22786lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22787reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22788reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 22789OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
22790deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22791file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22792AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22793AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22794STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22795RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22796old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22797old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22798old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22799CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22800CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22801compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22802GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22803lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22804lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22805lt_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 22806lt_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
22807objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22808SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22809ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22810MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22811lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22812lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22813lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22814lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22815lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22816need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8
SE
22817DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22818NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22819LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22820OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22821OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
22822libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22823shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22824extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22825archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22826enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22827export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22828whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22829compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22830old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22831old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22832archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22833archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22834module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22835module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22836with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22837allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22838no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22839hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22840hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22841hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22842hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22843hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22844hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22845hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22846hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22847inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22848link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22849fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22850always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22851export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22852exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22853include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22854prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22855file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22856variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22857need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22858need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22859version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22860runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22861shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22862shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22863libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22864library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22865soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22866postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22867postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22868finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22869finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22870hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22871sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22872sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22873hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22874enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22875enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22876enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22877old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22878striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22879
22880LTCC='$LTCC'
22881LTCFLAGS='$LTCFLAGS'
22882compiler='$compiler_DEFAULT'
22883
22884# Quote evaled strings.
22885for var in SED \
22886GREP \
22887EGREP \
22888FGREP \
22889LD \
22890NM \
22891LN_S \
22892lt_SP2NL \
22893lt_NL2SP \
22894reload_flag \
718a6fd8 22895OBJDUMP \
d7040cdb
SE
22896deplibs_check_method \
22897file_magic_cmd \
22898AR \
22899AR_FLAGS \
22900STRIP \
22901RANLIB \
22902CC \
22903CFLAGS \
22904compiler \
22905lt_cv_sys_global_symbol_pipe \
22906lt_cv_sys_global_symbol_to_cdecl \
22907lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 22908lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
22909SHELL \
22910ECHO \
22911lt_prog_compiler_no_builtin_flag \
22912lt_prog_compiler_wl \
22913lt_prog_compiler_pic \
22914lt_prog_compiler_static \
22915lt_cv_prog_compiler_c_o \
22916need_locks \
718a6fd8
SE
22917DSYMUTIL \
22918NMEDIT \
22919LIPO \
22920OTOOL \
22921OTOOL64 \
d7040cdb
SE
22922shrext_cmds \
22923export_dynamic_flag_spec \
22924whole_archive_flag_spec \
22925compiler_needs_object \
22926with_gnu_ld \
22927allow_undefined_flag \
22928no_undefined_flag \
22929hardcode_libdir_flag_spec \
22930hardcode_libdir_flag_spec_ld \
22931hardcode_libdir_separator \
22932fix_srcfile_path \
22933exclude_expsyms \
22934include_expsyms \
22935file_list_spec \
22936variables_saved_for_relink \
22937libname_spec \
22938library_names_spec \
22939soname_spec \
22940finish_eval \
22941old_striplib \
22942striplib; do
22943 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22944 *[\\\\\\\`\\"\\\$]*)
22945 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22946 ;;
22947 *)
22948 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22949 ;;
22950 esac
22951done
22952
22953# Double-quote double-evaled strings.
22954for var in reload_cmds \
22955old_postinstall_cmds \
22956old_postuninstall_cmds \
22957old_archive_cmds \
22958extract_expsyms_cmds \
22959old_archive_from_new_cmds \
22960old_archive_from_expsyms_cmds \
22961archive_cmds \
22962archive_expsym_cmds \
22963module_cmds \
22964module_expsym_cmds \
22965export_symbols_cmds \
22966prelink_cmds \
22967postinstall_cmds \
22968postuninstall_cmds \
22969finish_cmds \
22970sys_lib_search_path_spec \
22971sys_lib_dlsearch_path_spec; do
22972 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22973 *[\\\\\\\`\\"\\\$]*)
22974 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22975 ;;
22976 *)
22977 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22978 ;;
22979 esac
22980done
22981
22982# Fix-up fallback echo if it was mangled by the above quoting rules.
22983case \$lt_ECHO in
22984*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22985 ;;
22986esac
22987
22988ac_aux_dir='$ac_aux_dir'
22989xsi_shell='$xsi_shell'
22990lt_shell_append='$lt_shell_append'
22991
22992# See if we are running on zsh, and set the options which allow our
22993# commands through without removal of \ escapes INIT.
22994if test -n "\${ZSH_VERSION+set}" ; then
22995 setopt NO_GLOB_SUBST
22996fi
22997
22998
22999 PACKAGE='$PACKAGE'
23000 VERSION='$VERSION'
23001 TIMESTAMP='$TIMESTAMP'
23002 RM='$RM'
23003 ofile='$ofile'
23004
23005
23006
20e95c23
DJ
23007# Capture the value of obsolete ALL_LINGUAS because we need it to compute
23008 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
23009 # from automake.
23010 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23011 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23012 LINGUAS="${LINGUAS-%UNSET%}"
23013
5464f5a1 23014
d5efd9fc
AM
23015GCC="$GCC"
23016CC="$CC"
23017acx_cv_header_stdint="$acx_cv_header_stdint"
23018acx_cv_type_int8_t="$acx_cv_type_int8_t"
23019acx_cv_type_int16_t="$acx_cv_type_int16_t"
23020acx_cv_type_int32_t="$acx_cv_type_int32_t"
23021acx_cv_type_int64_t="$acx_cv_type_int64_t"
23022acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23023ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23024ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23025ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23026ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23027ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23028ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23029ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23030ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23031
23032
5464f5a1
NN
23033
23034_ACEOF
23035
23036
23037
23038cat >>$CONFIG_STATUS <<\_ACEOF
23039for ac_config_target in $ac_config_targets
252b5132 23040do
5464f5a1
NN
23041 case "$ac_config_target" in
23042 # Handling of arguments.
23043 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23044 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23045 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
23046 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 23047 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 23048 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 23049 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 23050 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
23051 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23052 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23053 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23054echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23055 { (exit 1); exit 1; }; };;
252b5132
RH
23056 esac
23057done
23058
5464f5a1
NN
23059# If the user did not use the arguments to specify the items to instantiate,
23060# then the envvar interface is used. Set only those that are not.
23061# We use the long form for the default assignment because of an extremely
23062# bizarre bug on SunOS 4.1.3.
23063if $ac_need_defaults; then
23064 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23065 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23066 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23067fi
23068
23069# Have a temporary directory for convenience. Make it in the build tree
23070# simply because there is no reason to put it here, and in addition,
23071# creating and moving files from /tmp can sometimes cause problems.
23072# Create a temporary directory, and hook for its removal unless debugging.
23073$debug ||
23074{
23075 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23076 trap '{ (exit 1); exit 1; }' 1 2 13 15
23077}
b3baf5d0 23078
5464f5a1 23079# Create a (secure) tmp directory for tmp files.
b3baf5d0 23080
5464f5a1
NN
23081{
23082 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23083 test -n "$tmp" && test -d "$tmp"
23084} ||
23085{
23086 tmp=./confstat$$-$RANDOM
23087 (umask 077 && mkdir $tmp)
23088} ||
23089{
23090 echo "$me: cannot create a temporary directory in ." >&2
23091 { (exit 1); exit 1; }
23092}
23093
23094_ACEOF
23095
23096cat >>$CONFIG_STATUS <<_ACEOF
23097
23098#
23099# CONFIG_FILES section.
23100#
b3baf5d0 23101
5464f5a1
NN
23102# No need to generate the scripts if there are no CONFIG_FILES.
23103# This happens for instance when ./config.status config.h
23104if test -n "\$CONFIG_FILES"; then
23105 # Protect against being on the right side of a sed subst in config.status.
23106 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23107 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23108s,@SHELL@,$SHELL,;t t
23109s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23110s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23111s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23112s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23113s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23114s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23115s,@exec_prefix@,$exec_prefix,;t t
23116s,@prefix@,$prefix,;t t
23117s,@program_transform_name@,$program_transform_name,;t t
23118s,@bindir@,$bindir,;t t
23119s,@sbindir@,$sbindir,;t t
23120s,@libexecdir@,$libexecdir,;t t
23121s,@datadir@,$datadir,;t t
23122s,@sysconfdir@,$sysconfdir,;t t
23123s,@sharedstatedir@,$sharedstatedir,;t t
23124s,@localstatedir@,$localstatedir,;t t
23125s,@libdir@,$libdir,;t t
23126s,@includedir@,$includedir,;t t
23127s,@oldincludedir@,$oldincludedir,;t t
23128s,@infodir@,$infodir,;t t
23129s,@mandir@,$mandir,;t t
23130s,@build_alias@,$build_alias,;t t
23131s,@host_alias@,$host_alias,;t t
23132s,@target_alias@,$target_alias,;t t
23133s,@DEFS@,$DEFS,;t t
23134s,@ECHO_C@,$ECHO_C,;t t
23135s,@ECHO_N@,$ECHO_N,;t t
23136s,@ECHO_T@,$ECHO_T,;t t
23137s,@LIBS@,$LIBS,;t t
23138s,@build@,$build,;t t
23139s,@build_cpu@,$build_cpu,;t t
23140s,@build_vendor@,$build_vendor,;t t
23141s,@build_os@,$build_os,;t t
23142s,@host@,$host,;t t
23143s,@host_cpu@,$host_cpu,;t t
23144s,@host_vendor@,$host_vendor,;t t
23145s,@host_os@,$host_os,;t t
23146s,@target@,$target,;t t
23147s,@target_cpu@,$target_cpu,;t t
23148s,@target_vendor@,$target_vendor,;t t
23149s,@target_os@,$target_os,;t t
23150s,@CC@,$CC,;t t
23151s,@CFLAGS@,$CFLAGS,;t t
23152s,@LDFLAGS@,$LDFLAGS,;t t
23153s,@CPPFLAGS@,$CPPFLAGS,;t t
23154s,@ac_ct_CC@,$ac_ct_CC,;t t
23155s,@EXEEXT@,$EXEEXT,;t t
23156s,@OBJEXT@,$OBJEXT,;t t
23157s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23158s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23159s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 23160s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
23161s,@PACKAGE@,$PACKAGE,;t t
23162s,@VERSION@,$VERSION,;t t
23163s,@ACLOCAL@,$ACLOCAL,;t t
23164s,@AUTOCONF@,$AUTOCONF,;t t
23165s,@AUTOMAKE@,$AUTOMAKE,;t t
23166s,@AUTOHEADER@,$AUTOHEADER,;t t
23167s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
23168s,@install_sh@,$install_sh,;t t
23169s,@STRIP@,$STRIP,;t t
23170s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23171s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23172s,@mkdir_p@,$mkdir_p,;t t
23173s,@AWK@,$AWK,;t t
5464f5a1 23174s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
23175s,@am__leading_dot@,$am__leading_dot,;t t
23176s,@AMTAR@,$AMTAR,;t t
23177s,@am__tar@,$am__tar,;t t
23178s,@am__untar@,$am__untar,;t t
23179s,@DEPDIR@,$DEPDIR,;t t
23180s,@am__include@,$am__include,;t t
23181s,@am__quote@,$am__quote,;t t
23182s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23183s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23184s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23185s,@CCDEPMODE@,$CCDEPMODE,;t t
23186s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23187s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
23188s,@AR@,$AR,;t t
23189s,@ac_ct_AR@,$ac_ct_AR,;t t
23190s,@RANLIB@,$RANLIB,;t t
23191s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7357c5b6
AM
23192s,@CPP@,$CPP,;t t
23193s,@EGREP@,$EGREP,;t t
5464f5a1 23194s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb 23195s,@SED@,$SED,;t t
d7040cdb
SE
23196s,@FGREP@,$FGREP,;t t
23197s,@GREP@,$GREP,;t t
23198s,@LD@,$LD,;t t
23199s,@DUMPBIN@,$DUMPBIN,;t t
23200s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23201s,@NM@,$NM,;t t
23202s,@LN_S@,$LN_S,;t t
718a6fd8
SE
23203s,@OBJDUMP@,$OBJDUMP,;t t
23204s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
d7040cdb 23205s,@lt_ECHO@,$lt_ECHO,;t t
718a6fd8
SE
23206s,@DSYMUTIL@,$DSYMUTIL,;t t
23207s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
23208s,@NMEDIT@,$NMEDIT,;t t
23209s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
23210s,@LIPO@,$LIPO,;t t
23211s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
23212s,@OTOOL@,$OTOOL,;t t
23213s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
23214s,@OTOOL64@,$OTOOL64,;t t
23215s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
0d4a1476 23216s,@DEBUGDIR@,$DEBUGDIR,;t t
92f01d61 23217s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
23218s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23219s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 23220s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 23221s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
23222s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23223s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23224s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
23225s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
23226s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
23227s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
23228s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
23229s,@host_noncanonical@,$host_noncanonical,;t t
23230s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
23231s,@bfdlibdir@,$bfdlibdir,;t t
23232s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 23233s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
23234s,@LIBINTL@,$LIBINTL,;t t
23235s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23236s,@INCINTL@,$INCINTL,;t t
5464f5a1 23237s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
23238s,@GMSGFMT@,$GMSGFMT,;t t
23239s,@POSUB@,$POSUB,;t t
5464f5a1 23240s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 23241s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 23242s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
23243s,@GENCAT@,$GENCAT,;t t
23244s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 23245s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
23246s,@MSGFMT@,$MSGFMT,;t t
23247s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
23248s,@HDEFINES@,$HDEFINES,;t t
23249s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
d2df793a 23250s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
5464f5a1
NN
23251s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
23252s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
23253s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
d2df793a 23254s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
5464f5a1
NN
23255s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23256s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
23257s,@COREFILE@,$COREFILE,;t t
23258s,@COREFLAG@,$COREFLAG,;t t
29670fb9
AM
23259s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
23260s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
5464f5a1
NN
23261s,@TDEFINES@,$TDEFINES,;t t
23262s,@wordsize@,$wordsize,;t t
21e40a48 23263s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
23264s,@all_backends@,$all_backends,;t t
23265s,@bfd_backends@,$bfd_backends,;t t
23266s,@bfd_machines@,$bfd_machines,;t t
23267s,@bfd_default_target_size@,$bfd_default_target_size,;t t
23268s,@bfd_file_ptr@,$bfd_file_ptr,;t t
23269s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
23270s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
23271s,@datarootdir@,$datarootdir,;t t
23272s,@docdir@,$docdir,;t t
23273s,@htmldir@,$htmldir,;t t
31dd3154 23274s,@pdfdir@,$pdfdir,;t t
5464f5a1
NN
23275s,@LIBOBJS@,$LIBOBJS,;t t
23276s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 23277CEOF
252b5132 23278
5464f5a1
NN
23279_ACEOF
23280
23281 cat >>$CONFIG_STATUS <<\_ACEOF
23282 # Split the substitutions into bite-sized pieces for seds with
23283 # small command number limits, like on Digital OSF/1 and HP-UX.
23284 ac_max_sed_lines=48
23285 ac_sed_frag=1 # Number of current file.
23286 ac_beg=1 # First line for current file.
23287 ac_end=$ac_max_sed_lines # Line after last line for current file.
23288 ac_more_lines=:
23289 ac_sed_cmds=
23290 while $ac_more_lines; do
23291 if test $ac_beg -gt 1; then
23292 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 23293 else
5464f5a1
NN
23294 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23295 fi
23296 if test ! -s $tmp/subs.frag; then
23297 ac_more_lines=false
23298 else
23299 # The purpose of the label and of the branching condition is to
23300 # speed up the sed processing (if there are no `@' at all, there
23301 # is no need to browse any of the substitutions).
23302 # These are the two extra sed commands mentioned above.
23303 (echo ':t
23304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23305 if test -z "$ac_sed_cmds"; then
23306 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23307 else
23308 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23309 fi
23310 ac_sed_frag=`expr $ac_sed_frag + 1`
23311 ac_beg=$ac_end
23312 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 23313 fi
5464f5a1
NN
23314 done
23315 if test -z "$ac_sed_cmds"; then
23316 ac_sed_cmds=cat
252b5132 23317 fi
5464f5a1 23318fi # test -n "$CONFIG_FILES"
6be7c12c 23319
5464f5a1
NN
23320_ACEOF
23321cat >>$CONFIG_STATUS <<\_ACEOF
23322for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 23323 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
23324 case $ac_file in
23325 - | *:- | *:-:* ) # input from stdin
23326 cat >$tmp/stdin
23327 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23328 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23329 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23330 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23331 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
23332 esac
23333
5464f5a1
NN
23334 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23335 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23336$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23337 X"$ac_file" : 'X\(//\)[^/]' \| \
23338 X"$ac_file" : 'X\(//\)$' \| \
23339 X"$ac_file" : 'X\(/\)' \| \
23340 . : '\(.\)' 2>/dev/null ||
23341echo X"$ac_file" |
23342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23344 /^X\(\/\/\)$/{ s//\1/; q; }
23345 /^X\(\/\).*/{ s//\1/; q; }
23346 s/.*/./; q'`
23347 { if $as_mkdir_p; then
23348 mkdir -p "$ac_dir"
252b5132 23349 else
5464f5a1
NN
23350 as_dir="$ac_dir"
23351 as_dirs=
23352 while test ! -d "$as_dir"; do
23353 as_dirs="$as_dir $as_dirs"
23354 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23355$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23356 X"$as_dir" : 'X\(//\)[^/]' \| \
23357 X"$as_dir" : 'X\(//\)$' \| \
23358 X"$as_dir" : 'X\(/\)' \| \
23359 . : '\(.\)' 2>/dev/null ||
23360echo X"$as_dir" |
23361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23363 /^X\(\/\/\)$/{ s//\1/; q; }
23364 /^X\(\/\).*/{ s//\1/; q; }
23365 s/.*/./; q'`
23366 done
23367 test ! -n "$as_dirs" || mkdir $as_dirs
23368 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23369echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23370 { (exit 1); exit 1; }; }; }
23371
23372 ac_builddir=.
23373
23374if test "$ac_dir" != .; then
23375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23376 # A "../" for each directory in $ac_dir_suffix.
23377 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23378else
23379 ac_dir_suffix= ac_top_builddir=
23380fi
252b5132 23381
5464f5a1
NN
23382case $srcdir in
23383 .) # No --srcdir option. We are building in place.
23384 ac_srcdir=.
23385 if test -z "$ac_top_builddir"; then
23386 ac_top_srcdir=.
23387 else
23388 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23389 fi ;;
23390 [\\/]* | ?:[\\/]* ) # Absolute path.
23391 ac_srcdir=$srcdir$ac_dir_suffix;
23392 ac_top_srcdir=$srcdir ;;
252b5132 23393 *) # Relative path.
5464f5a1
NN
23394 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23395 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23396esac
252b5132 23397
5464f5a1
NN
23398# Do not use `cd foo && pwd` to compute absolute paths, because
23399# the directories may not exist.
23400case `pwd` in
23401.) ac_abs_builddir="$ac_dir";;
23402*)
23403 case "$ac_dir" in
23404 .) ac_abs_builddir=`pwd`;;
23405 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23406 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23407 esac;;
23408esac
23409case $ac_abs_builddir in
23410.) ac_abs_top_builddir=${ac_top_builddir}.;;
23411*)
23412 case ${ac_top_builddir}. in
23413 .) ac_abs_top_builddir=$ac_abs_builddir;;
23414 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23415 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23416 esac;;
23417esac
23418case $ac_abs_builddir in
23419.) ac_abs_srcdir=$ac_srcdir;;
23420*)
23421 case $ac_srcdir in
23422 .) ac_abs_srcdir=$ac_abs_builddir;;
23423 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23424 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23425 esac;;
23426esac
23427case $ac_abs_builddir in
23428.) ac_abs_top_srcdir=$ac_top_srcdir;;
23429*)
23430 case $ac_top_srcdir in
23431 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23432 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23433 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23434 esac;;
23435esac
252b5132 23436
5464f5a1
NN
23437
23438 case $INSTALL in
23439 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23440 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 23441 esac
252b5132 23442
7357c5b6
AM
23443 if test x"$ac_file" != x-; then
23444 { echo "$as_me:$LINENO: creating $ac_file" >&5
23445echo "$as_me: creating $ac_file" >&6;}
23446 rm -f "$ac_file"
23447 fi
5464f5a1
NN
23448 # Let's still pretend it is `configure' which instantiates (i.e., don't
23449 # use $as_me), people would be surprised to read:
23450 # /* config.h. Generated by config.status. */
23451 if test x"$ac_file" = x-; then
23452 configure_input=
23453 else
23454 configure_input="$ac_file. "
23455 fi
23456 configure_input=$configure_input"Generated from `echo $ac_file_in |
23457 sed 's,.*/,,'` by configure."
23458
23459 # First look for the input files in the build tree, otherwise in the
23460 # src tree.
23461 ac_file_inputs=`IFS=:
23462 for f in $ac_file_in; do
23463 case $f in
23464 -) echo $tmp/stdin ;;
23465 [\\/$]*)
23466 # Absolute (can't be DOS-style, as IFS=:)
23467 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23468echo "$as_me: error: cannot find input file: $f" >&2;}
23469 { (exit 1); exit 1; }; }
23470 echo "$f";;
23471 *) # Relative
23472 if test -f "$f"; then
23473 # Build tree
23474 echo "$f"
23475 elif test -f "$srcdir/$f"; then
23476 # Source tree
23477 echo "$srcdir/$f"
23478 else
23479 # /dev/null tree
23480 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23481echo "$as_me: error: cannot find input file: $f" >&2;}
23482 { (exit 1); exit 1; }; }
23483 fi;;
23484 esac
23485 done` || { (exit 1); exit 1; }
5464f5a1
NN
23486_ACEOF
23487cat >>$CONFIG_STATUS <<_ACEOF
23488 sed "$ac_vpsub
23489$extrasub
23490_ACEOF
23491cat >>$CONFIG_STATUS <<\_ACEOF
23492:t
23493/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23494s,@configure_input@,$configure_input,;t t
23495s,@srcdir@,$ac_srcdir,;t t
23496s,@abs_srcdir@,$ac_abs_srcdir,;t t
23497s,@top_srcdir@,$ac_top_srcdir,;t t
23498s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23499s,@builddir@,$ac_builddir,;t t
23500s,@abs_builddir@,$ac_abs_builddir,;t t
23501s,@top_builddir@,$ac_top_builddir,;t t
23502s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23503s,@INSTALL@,$ac_INSTALL,;t t
23504" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23505 rm -f $tmp/stdin
23506 if test x"$ac_file" != x-; then
23507 mv $tmp/out $ac_file
23508 else
23509 cat $tmp/out
23510 rm -f $tmp/out
23511 fi
23512
23513done
23514_ACEOF
23515cat >>$CONFIG_STATUS <<\_ACEOF
23516
23517#
23518# CONFIG_HEADER section.
23519#
252b5132
RH
23520
23521# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23522# NAME is the cpp macro being defined and VALUE is the value it is being given.
23523#
23524# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
23525ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23526ac_dB='[ ].*$,\1#\2'
23527ac_dC=' '
23528ac_dD=',;t'
23529# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23530ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23531ac_uB='$,\1#\2define\3'
252b5132 23532ac_uC=' '
5464f5a1
NN
23533ac_uD=',;t'
23534
23535for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 23536 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
23537 case $ac_file in
23538 - | *:- | *:-:* ) # input from stdin
23539 cat >$tmp/stdin
23540 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23541 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23542 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23543 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23544 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
23545 esac
23546
5464f5a1
NN
23547 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23548echo "$as_me: creating $ac_file" >&6;}
23549
23550 # First look for the input files in the build tree, otherwise in the
23551 # src tree.
23552 ac_file_inputs=`IFS=:
23553 for f in $ac_file_in; do
23554 case $f in
23555 -) echo $tmp/stdin ;;
23556 [\\/$]*)
23557 # Absolute (can't be DOS-style, as IFS=:)
23558 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23559echo "$as_me: error: cannot find input file: $f" >&2;}
23560 { (exit 1); exit 1; }; }
23561 # Do quote $f, to prevent DOS paths from being IFS'd.
23562 echo "$f";;
23563 *) # Relative
23564 if test -f "$f"; then
23565 # Build tree
23566 echo "$f"
23567 elif test -f "$srcdir/$f"; then
23568 # Source tree
23569 echo "$srcdir/$f"
23570 else
23571 # /dev/null tree
23572 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23573echo "$as_me: error: cannot find input file: $f" >&2;}
23574 { (exit 1); exit 1; }; }
23575 fi;;
23576 esac
23577 done` || { (exit 1); exit 1; }
23578 # Remove the trailing spaces.
23579 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23580
23581_ACEOF
23582
23583# Transform confdefs.h into two sed scripts, `conftest.defines' and
23584# `conftest.undefs', that substitutes the proper values into
23585# config.h.in to produce config.h. The first handles `#define'
23586# templates, and the second `#undef' templates.
23587# And first: Protect against being on the right side of a sed subst in
23588# config.status. Protect against being in an unquoted here document
23589# in config.status.
23590rm -f conftest.defines conftest.undefs
23591# Using a here document instead of a string reduces the quoting nightmare.
23592# Putting comments in sed scripts is not portable.
23593#
23594# `end' is used to avoid that the second main sed command (meant for
23595# 0-ary CPP macros) applies to n-ary macro definitions.
23596# See the Autoconf documentation for `clear'.
23597cat >confdef2sed.sed <<\_ACEOF
23598s/[\\&,]/\\&/g
23599s,[\\$`],\\&,g
23600t clear
23601: clear
23602s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23603t end
23604s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23605: end
23606_ACEOF
23607# If some macros were called several times there might be several times
23608# the same #defines, which is useless. Nevertheless, we may not want to
23609# sort them, since we want the *last* AC-DEFINE to be honored.
23610uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23611sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23612rm -f confdef2sed.sed
252b5132
RH
23613
23614# This sed command replaces #undef with comments. This is necessary, for
23615# example, in the case of _POSIX_SOURCE, which is predefined and required
23616# on some systems where configure will not decide to define it.
5464f5a1
NN
23617cat >>conftest.undefs <<\_ACEOF
23618s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23619_ACEOF
23620
23621# Break up conftest.defines because some shells have a limit on the size
23622# of here documents, and old seds have small limits too (100 cmds).
23623echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23624echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23625echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23626echo ' :' >>$CONFIG_STATUS
23627rm -f conftest.tail
23628while grep . conftest.defines >/dev/null
23629do
23630 # Write a limited-size here document to $tmp/defines.sed.
23631 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23632 # Speed up: don't consider the non `#define' lines.
23633 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23634 # Work around the forget-to-reset-the-flag bug.
23635 echo 't clr' >>$CONFIG_STATUS
23636 echo ': clr' >>$CONFIG_STATUS
23637 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23638 echo 'CEOF
23639 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23640 rm -f $tmp/in
23641 mv $tmp/out $tmp/in
23642' >>$CONFIG_STATUS
23643 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23644 rm -f conftest.defines
23645 mv conftest.tail conftest.defines
23646done
23647rm -f conftest.defines
23648echo ' fi # grep' >>$CONFIG_STATUS
23649echo >>$CONFIG_STATUS
252b5132 23650
5464f5a1
NN
23651# Break up conftest.undefs because some shells have a limit on the size
23652# of here documents, and old seds have small limits too (100 cmds).
23653echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 23654rm -f conftest.tail
5464f5a1 23655while grep . conftest.undefs >/dev/null
252b5132 23656do
5464f5a1
NN
23657 # Write a limited-size here document to $tmp/undefs.sed.
23658 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23659 # Speed up: don't consider the non `#undef'
23660 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23661 # Work around the forget-to-reset-the-flag bug.
23662 echo 't clr' >>$CONFIG_STATUS
23663 echo ': clr' >>$CONFIG_STATUS
23664 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 23665 echo 'CEOF
5464f5a1
NN
23666 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23667 rm -f $tmp/in
23668 mv $tmp/out $tmp/in
23669' >>$CONFIG_STATUS
23670 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23671 rm -f conftest.undefs
23672 mv conftest.tail conftest.undefs
252b5132 23673done
5464f5a1
NN
23674rm -f conftest.undefs
23675
23676cat >>$CONFIG_STATUS <<\_ACEOF
23677 # Let's still pretend it is `configure' which instantiates (i.e., don't
23678 # use $as_me), people would be surprised to read:
23679 # /* config.h. Generated by config.status. */
23680 if test x"$ac_file" = x-; then
23681 echo "/* Generated by configure. */" >$tmp/config.h
23682 else
23683 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23684 fi
23685 cat $tmp/in >>$tmp/config.h
23686 rm -f $tmp/in
23687 if test x"$ac_file" != x-; then
23688 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23689 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23690echo "$as_me: $ac_file is unchanged" >&6;}
23691 else
23692 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23693$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23694 X"$ac_file" : 'X\(//\)[^/]' \| \
23695 X"$ac_file" : 'X\(//\)$' \| \
23696 X"$ac_file" : 'X\(/\)' \| \
23697 . : '\(.\)' 2>/dev/null ||
23698echo X"$ac_file" |
23699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23701 /^X\(\/\/\)$/{ s//\1/; q; }
23702 /^X\(\/\).*/{ s//\1/; q; }
23703 s/.*/./; q'`
23704 { if $as_mkdir_p; then
23705 mkdir -p "$ac_dir"
252b5132 23706 else
5464f5a1
NN
23707 as_dir="$ac_dir"
23708 as_dirs=
23709 while test ! -d "$as_dir"; do
23710 as_dirs="$as_dir $as_dirs"
23711 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23712$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23713 X"$as_dir" : 'X\(//\)[^/]' \| \
23714 X"$as_dir" : 'X\(//\)$' \| \
23715 X"$as_dir" : 'X\(/\)' \| \
23716 . : '\(.\)' 2>/dev/null ||
23717echo X"$as_dir" |
23718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23720 /^X\(\/\/\)$/{ s//\1/; q; }
23721 /^X\(\/\).*/{ s//\1/; q; }
23722 s/.*/./; q'`
23723 done
23724 test ! -n "$as_dirs" || mkdir $as_dirs
23725 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23726echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23727 { (exit 1); exit 1; }; }; }
23728
23729 rm -f $ac_file
23730 mv $tmp/config.h $ac_file
252b5132 23731 fi
5464f5a1
NN
23732 else
23733 cat $tmp/config.h
23734 rm -f $tmp/config.h
252b5132 23735 fi
f5385ebf
AM
23736# Compute $ac_file's index in $config_headers.
23737_am_stamp_count=1
23738for _am_header in $config_headers :; do
23739 case $_am_header in
23740 $ac_file | $ac_file:* )
23741 break ;;
23742 * )
23743 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23744 esac
23745done
23746echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23747$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23748 X$ac_file : 'X\(//\)[^/]' \| \
23749 X$ac_file : 'X\(//\)$' \| \
23750 X$ac_file : 'X\(/\)' \| \
23751 . : '\(.\)' 2>/dev/null ||
23752echo X$ac_file |
23753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23755 /^X\(\/\/\)$/{ s//\1/; q; }
23756 /^X\(\/\).*/{ s//\1/; q; }
23757 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
23758done
23759_ACEOF
23760cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 23761
5464f5a1
NN
23762#
23763# CONFIG_COMMANDS section.
23764#
23765for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23766 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23767 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23768 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23769$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23770 X"$ac_dest" : 'X\(//\)[^/]' \| \
23771 X"$ac_dest" : 'X\(//\)$' \| \
23772 X"$ac_dest" : 'X\(/\)' \| \
23773 . : '\(.\)' 2>/dev/null ||
23774echo X"$ac_dest" |
23775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23777 /^X\(\/\/\)$/{ s//\1/; q; }
23778 /^X\(\/\).*/{ s//\1/; q; }
23779 s/.*/./; q'`
23780 { if $as_mkdir_p; then
23781 mkdir -p "$ac_dir"
23782 else
23783 as_dir="$ac_dir"
23784 as_dirs=
23785 while test ! -d "$as_dir"; do
23786 as_dirs="$as_dir $as_dirs"
23787 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23788$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23789 X"$as_dir" : 'X\(//\)[^/]' \| \
23790 X"$as_dir" : 'X\(//\)$' \| \
23791 X"$as_dir" : 'X\(/\)' \| \
23792 . : '\(.\)' 2>/dev/null ||
23793echo X"$as_dir" |
23794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23796 /^X\(\/\/\)$/{ s//\1/; q; }
23797 /^X\(\/\).*/{ s//\1/; q; }
23798 s/.*/./; q'`
23799 done
23800 test ! -n "$as_dirs" || mkdir $as_dirs
23801 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23802echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23803 { (exit 1); exit 1; }; }; }
b3baf5d0 23804
5464f5a1 23805 ac_builddir=.
b3baf5d0 23806
5464f5a1
NN
23807if test "$ac_dir" != .; then
23808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23809 # A "../" for each directory in $ac_dir_suffix.
23810 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23811else
23812 ac_dir_suffix= ac_top_builddir=
23813fi
23814
23815case $srcdir in
23816 .) # No --srcdir option. We are building in place.
23817 ac_srcdir=.
23818 if test -z "$ac_top_builddir"; then
23819 ac_top_srcdir=.
23820 else
23821 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23822 fi ;;
23823 [\\/]* | ?:[\\/]* ) # Absolute path.
23824 ac_srcdir=$srcdir$ac_dir_suffix;
23825 ac_top_srcdir=$srcdir ;;
23826 *) # Relative path.
23827 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23828 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23829esac
23830
23831# Do not use `cd foo && pwd` to compute absolute paths, because
23832# the directories may not exist.
23833case `pwd` in
23834.) ac_abs_builddir="$ac_dir";;
23835*)
23836 case "$ac_dir" in
23837 .) ac_abs_builddir=`pwd`;;
23838 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23839 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23840 esac;;
23841esac
23842case $ac_abs_builddir in
23843.) ac_abs_top_builddir=${ac_top_builddir}.;;
23844*)
23845 case ${ac_top_builddir}. in
23846 .) ac_abs_top_builddir=$ac_abs_builddir;;
23847 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23848 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23849 esac;;
23850esac
23851case $ac_abs_builddir in
23852.) ac_abs_srcdir=$ac_srcdir;;
23853*)
23854 case $ac_srcdir in
23855 .) ac_abs_srcdir=$ac_abs_builddir;;
23856 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23857 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23858 esac;;
23859esac
23860case $ac_abs_builddir in
23861.) ac_abs_top_srcdir=$ac_top_srcdir;;
23862*)
23863 case $ac_top_srcdir in
23864 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23865 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23866 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23867 esac;;
23868esac
23869
23870
23871 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23872echo "$as_me: executing $ac_dest commands" >&6;}
23873 case $ac_dest in
f5385ebf
AM
23874 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23875 # Strip MF so we end up with the name of the file.
23876 mf=`echo "$mf" | sed -e 's/:.*$//'`
23877 # Check whether this is an Automake generated Makefile or not.
23878 # We used to match only the files named `Makefile.in', but
23879 # some people rename them; so instead we look at the file content.
23880 # Grep'ing the first line is not enough: some people post-process
23881 # each Makefile.in and add a new line on top of each file to say so.
23882 # So let's grep whole file.
23883 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23884 dirpart=`(dirname "$mf") 2>/dev/null ||
23885$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23886 X"$mf" : 'X\(//\)[^/]' \| \
23887 X"$mf" : 'X\(//\)$' \| \
23888 X"$mf" : 'X\(/\)' \| \
23889 . : '\(.\)' 2>/dev/null ||
23890echo X"$mf" |
23891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23893 /^X\(\/\/\)$/{ s//\1/; q; }
23894 /^X\(\/\).*/{ s//\1/; q; }
23895 s/.*/./; q'`
23896 else
23897 continue
23898 fi
23899 # Extract the definition of DEPDIR, am__include, and am__quote
23900 # from the Makefile without running `make'.
23901 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23902 test -z "$DEPDIR" && continue
23903 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23904 test -z "am__include" && continue
23905 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23906 # When using ansi2knr, U may be empty or an underscore; expand it
23907 U=`sed -n 's/^U = //p' < "$mf"`
23908 # Find all dependency output files, they are included files with
23909 # $(DEPDIR) in their names. We invoke sed twice because it is the
23910 # simplest approach to changing $(DEPDIR) to its actual value in the
23911 # expansion.
23912 for file in `sed -n "
23913 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23914 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23915 # Make sure the directory exists.
23916 test -f "$dirpart/$file" && continue
23917 fdir=`(dirname "$file") 2>/dev/null ||
23918$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23919 X"$file" : 'X\(//\)[^/]' \| \
23920 X"$file" : 'X\(//\)$' \| \
23921 X"$file" : 'X\(/\)' \| \
23922 . : '\(.\)' 2>/dev/null ||
23923echo X"$file" |
23924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23926 /^X\(\/\/\)$/{ s//\1/; q; }
23927 /^X\(\/\).*/{ s//\1/; q; }
23928 s/.*/./; q'`
23929 { if $as_mkdir_p; then
23930 mkdir -p $dirpart/$fdir
23931 else
23932 as_dir=$dirpart/$fdir
23933 as_dirs=
23934 while test ! -d "$as_dir"; do
23935 as_dirs="$as_dir $as_dirs"
23936 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23937$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23938 X"$as_dir" : 'X\(//\)[^/]' \| \
23939 X"$as_dir" : 'X\(//\)$' \| \
23940 X"$as_dir" : 'X\(/\)' \| \
23941 . : '\(.\)' 2>/dev/null ||
23942echo X"$as_dir" |
23943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23945 /^X\(\/\/\)$/{ s//\1/; q; }
23946 /^X\(\/\).*/{ s//\1/; q; }
23947 s/.*/./; q'`
23948 done
23949 test ! -n "$as_dirs" || mkdir $as_dirs
23950 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23951echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23952 { (exit 1); exit 1; }; }; }
23953
23954 # echo "creating $dirpart/$file"
23955 echo '# dummy' > "$dirpart/$file"
23956 done
23957done
d7040cdb
SE
23958 ;;
23959 libtool )
23960
23961 # See if we are running on zsh, and set the options which allow our
23962 # commands through without removal of \ escapes.
23963 if test -n "${ZSH_VERSION+set}" ; then
23964 setopt NO_GLOB_SUBST
23965 fi
23966
23967 cfgfile="${ofile}T"
23968 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23969 $RM "$cfgfile"
23970
23971 cat <<_LT_EOF >> "$cfgfile"
23972#! $SHELL
23973
23974# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 23975# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
23976# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23977# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23978#
718a6fd8
SE
23979# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23980# 2006, 2007, 2008 Free Software Foundation, Inc.
23981# Written by Gordon Matzigkeit, 1996
d7040cdb 23982#
718a6fd8 23983# This file is part of GNU Libtool.
d7040cdb 23984#
718a6fd8
SE
23985# GNU Libtool is free software; you can redistribute it and/or
23986# modify it under the terms of the GNU General Public License as
23987# published by the Free Software Foundation; either version 2 of
23988# the License, or (at your option) any later version.
d7040cdb 23989#
718a6fd8
SE
23990# As a special exception to the GNU General Public License,
23991# if you distribute this file as part of a program or library that
23992# is built using GNU Libtool, you may include this file under the
23993# same distribution terms that you use for the rest of that program.
d7040cdb 23994#
718a6fd8
SE
23995# GNU Libtool is distributed in the hope that it will be useful,
23996# but WITHOUT ANY WARRANTY; without even the implied warranty of
23997# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23998# GNU General Public License for more details.
d7040cdb 23999#
718a6fd8
SE
24000# You should have received a copy of the GNU General Public License
24001# along with GNU Libtool; see the file COPYING. If not, a copy
24002# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24003# obtained by writing to the Free Software Foundation, Inc.,
24004# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
24005
24006
24007# The names of the tagged configurations supported by this script.
24008available_tags=""
24009
24010# ### BEGIN LIBTOOL CONFIG
24011
24012# Whether or not to build shared libraries.
24013build_libtool_libs=$enable_shared
24014
24015# Which release of libtool.m4 was used?
24016macro_version=$macro_version
24017macro_revision=$macro_revision
24018
24019# Whether or not to build static libraries.
24020build_old_libs=$enable_static
24021
24022# What type of objects to build.
24023pic_mode=$pic_mode
24024
24025# Whether or not to optimize for fast installation.
24026fast_install=$enable_fast_install
24027
24028# The host system.
24029host_alias=$host_alias
24030host=$host
24031host_os=$host_os
24032
24033# The build system.
24034build_alias=$build_alias
24035build=$build
24036build_os=$build_os
24037
24038# A sed program that does not truncate output.
24039SED=$lt_SED
24040
24041# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24042Xsed="\$SED -e 1s/^X//"
24043
24044# A grep program that handles long lines.
24045GREP=$lt_GREP
24046
24047# An ERE matcher.
24048EGREP=$lt_EGREP
24049
24050# A literal string matcher.
24051FGREP=$lt_FGREP
24052
24053# A BSD- or MS-compatible name lister.
24054NM=$lt_NM
24055
24056# Whether we need soft or hard links.
24057LN_S=$lt_LN_S
24058
24059# What is the maximum length of a command?
24060max_cmd_len=$max_cmd_len
24061
24062# Object file suffix (normally "o").
24063objext=$ac_objext
24064
24065# Executable file suffix (normally "").
24066exeext=$exeext
24067
24068# whether the shell understands "unset".
24069lt_unset=$lt_unset
24070
24071# turn spaces into newlines.
24072SP2NL=$lt_lt_SP2NL
24073
24074# turn newlines into spaces.
24075NL2SP=$lt_lt_NL2SP
24076
24077# How to create reloadable object files.
24078reload_flag=$lt_reload_flag
24079reload_cmds=$lt_reload_cmds
24080
718a6fd8
SE
24081# An object symbol dumper.
24082OBJDUMP=$lt_OBJDUMP
24083
d7040cdb
SE
24084# Method to check whether dependent libraries are shared objects.
24085deplibs_check_method=$lt_deplibs_check_method
24086
24087# Command to use when deplibs_check_method == "file_magic".
24088file_magic_cmd=$lt_file_magic_cmd
24089
24090# The archiver.
24091AR=$lt_AR
24092AR_FLAGS=$lt_AR_FLAGS
24093
24094# A symbol stripping program.
24095STRIP=$lt_STRIP
24096
24097# Commands used to install an old-style archive.
24098RANLIB=$lt_RANLIB
24099old_postinstall_cmds=$lt_old_postinstall_cmds
24100old_postuninstall_cmds=$lt_old_postuninstall_cmds
24101
24102# A C compiler.
24103LTCC=$lt_CC
24104
24105# LTCC compiler flags.
24106LTCFLAGS=$lt_CFLAGS
24107
24108# Take the output of nm and produce a listing of raw symbols and C names.
24109global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24110
24111# Transform the output of nm in a proper C declaration.
24112global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24113
24114# Transform the output of nm in a C name address pair.
24115global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24116
718a6fd8
SE
24117# Transform the output of nm in a C name address pair when lib prefix is needed.
24118global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24119
d7040cdb
SE
24120# The name of the directory that contains temporary libtool files.
24121objdir=$objdir
24122
24123# Shell to use when invoking shell scripts.
24124SHELL=$lt_SHELL
24125
24126# An echo program that does not interpret backslashes.
24127ECHO=$lt_ECHO
24128
24129# Used to examine libraries when file_magic_cmd begins with "file".
24130MAGIC_CMD=$MAGIC_CMD
24131
24132# Must we lock files when doing compilation?
24133need_locks=$lt_need_locks
24134
718a6fd8
SE
24135# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24136DSYMUTIL=$lt_DSYMUTIL
24137
24138# Tool to change global to local symbols on Mac OS X.
24139NMEDIT=$lt_NMEDIT
24140
24141# Tool to manipulate fat objects and archives on Mac OS X.
24142LIPO=$lt_LIPO
24143
24144# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24145OTOOL=$lt_OTOOL
24146
24147# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24148OTOOL64=$lt_OTOOL64
24149
d7040cdb
SE
24150# Old archive suffix (normally "a").
24151libext=$libext
24152
24153# Shared library suffix (normally ".so").
24154shrext_cmds=$lt_shrext_cmds
24155
24156# The commands to extract the exported symbol list from a shared archive.
24157extract_expsyms_cmds=$lt_extract_expsyms_cmds
24158
24159# Variables whose values should be saved in libtool wrapper scripts and
24160# restored at link time.
24161variables_saved_for_relink=$lt_variables_saved_for_relink
24162
24163# Do we need the "lib" prefix for modules?
24164need_lib_prefix=$need_lib_prefix
24165
24166# Do we need a version for libraries?
24167need_version=$need_version
24168
24169# Library versioning type.
24170version_type=$version_type
24171
24172# Shared library runtime path variable.
24173runpath_var=$runpath_var
24174
24175# Shared library path variable.
24176shlibpath_var=$shlibpath_var
24177
24178# Is shlibpath searched before the hard-coded library search path?
24179shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24180
24181# Format of library name prefix.
24182libname_spec=$lt_libname_spec
24183
24184# List of archive names. First name is the real one, the rest are links.
24185# The last name is the one that the linker finds with -lNAME
24186library_names_spec=$lt_library_names_spec
24187
24188# The coded name of the library, if different from the real name.
24189soname_spec=$lt_soname_spec
24190
24191# Command to use after installation of a shared archive.
24192postinstall_cmds=$lt_postinstall_cmds
24193
24194# Command to use after uninstallation of a shared archive.
24195postuninstall_cmds=$lt_postuninstall_cmds
24196
24197# Commands used to finish a libtool library installation in a directory.
24198finish_cmds=$lt_finish_cmds
24199
24200# As "finish_cmds", except a single script fragment to be evaled but
24201# not shown.
24202finish_eval=$lt_finish_eval
24203
24204# Whether we should hardcode library paths into libraries.
24205hardcode_into_libs=$hardcode_into_libs
24206
24207# Compile-time system search path for libraries.
24208sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24209
24210# Run-time system search path for libraries.
24211sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24212
24213# Whether dlopen is supported.
24214dlopen_support=$enable_dlopen
24215
24216# Whether dlopen of programs is supported.
24217dlopen_self=$enable_dlopen_self
24218
24219# Whether dlopen of statically linked programs is supported.
24220dlopen_self_static=$enable_dlopen_self_static
24221
24222# Commands to strip libraries.
24223old_striplib=$lt_old_striplib
24224striplib=$lt_striplib
24225
24226
24227# The linker used to build libraries.
24228LD=$lt_LD
24229
24230# Commands used to build an old-style archive.
24231old_archive_cmds=$lt_old_archive_cmds
24232
24233# A language specific compiler.
24234CC=$lt_compiler
24235
24236# Is the compiler the GNU compiler?
24237with_gcc=$GCC
24238
24239# Compiler flag to turn off builtin functions.
24240no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24241
24242# How to pass a linker flag through the compiler.
24243wl=$lt_lt_prog_compiler_wl
24244
24245# Additional compiler flags for building library objects.
24246pic_flag=$lt_lt_prog_compiler_pic
24247
24248# Compiler flag to prevent dynamic linking.
24249link_static_flag=$lt_lt_prog_compiler_static
24250
24251# Does compiler simultaneously support -c and -o options?
24252compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24253
24254# Whether or not to add -lc for building shared libraries.
24255build_libtool_need_lc=$archive_cmds_need_lc
24256
24257# Whether or not to disallow shared libs when runtime libs are static.
24258allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24259
24260# Compiler flag to allow reflexive dlopens.
24261export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24262
24263# Compiler flag to generate shared objects directly from archives.
24264whole_archive_flag_spec=$lt_whole_archive_flag_spec
24265
24266# Whether the compiler copes with passing no objects directly.
24267compiler_needs_object=$lt_compiler_needs_object
24268
24269# Create an old-style archive from a shared archive.
24270old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24271
24272# Create a temporary old-style archive to link instead of a shared archive.
24273old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24274
24275# Commands used to build a shared archive.
24276archive_cmds=$lt_archive_cmds
24277archive_expsym_cmds=$lt_archive_expsym_cmds
24278
24279# Commands used to build a loadable module if different from building
24280# a shared archive.
24281module_cmds=$lt_module_cmds
24282module_expsym_cmds=$lt_module_expsym_cmds
24283
24284# Whether we are building with GNU ld or not.
24285with_gnu_ld=$lt_with_gnu_ld
24286
24287# Flag that allows shared libraries with undefined symbols to be built.
24288allow_undefined_flag=$lt_allow_undefined_flag
24289
24290# Flag that enforces no undefined symbols.
24291no_undefined_flag=$lt_no_undefined_flag
24292
24293# Flag to hardcode \$libdir into a binary during linking.
24294# This must work even if \$libdir does not exist
24295hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24296
24297# If ld is used when linking, flag to hardcode \$libdir into a binary
24298# during linking. This must work even if \$libdir does not exist.
24299hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24300
24301# Whether we need a single "-rpath" flag with a separated argument.
24302hardcode_libdir_separator=$lt_hardcode_libdir_separator
24303
24304# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24305# DIR into the resulting binary.
24306hardcode_direct=$hardcode_direct
24307
24308# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24309# DIR into the resulting binary and the resulting library dependency is
24310# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24311# library is relocated.
24312hardcode_direct_absolute=$hardcode_direct_absolute
24313
24314# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24315# into the resulting binary.
24316hardcode_minus_L=$hardcode_minus_L
24317
24318# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24319# into the resulting binary.
24320hardcode_shlibpath_var=$hardcode_shlibpath_var
24321
24322# Set to "yes" if building a shared library automatically hardcodes DIR
24323# into the library and all subsequent libraries and executables linked
24324# against it.
24325hardcode_automatic=$hardcode_automatic
24326
24327# Set to yes if linker adds runtime paths of dependent libraries
24328# to runtime path list.
24329inherit_rpath=$inherit_rpath
24330
24331# Whether libtool must link a program against all its dependency libraries.
24332link_all_deplibs=$link_all_deplibs
24333
24334# Fix the shell variable \$srcfile for the compiler.
24335fix_srcfile_path=$lt_fix_srcfile_path
24336
24337# Set to "yes" if exported symbols are required.
24338always_export_symbols=$always_export_symbols
24339
24340# The commands to list exported symbols.
24341export_symbols_cmds=$lt_export_symbols_cmds
24342
24343# Symbols that should not be listed in the preloaded symbols.
24344exclude_expsyms=$lt_exclude_expsyms
24345
24346# Symbols that must always be exported.
24347include_expsyms=$lt_include_expsyms
24348
24349# Commands necessary for linking programs (against libraries) with templates.
24350prelink_cmds=$lt_prelink_cmds
24351
24352# Specify filename containing input files.
24353file_list_spec=$lt_file_list_spec
24354
24355# How to hardcode a shared library path into an executable.
24356hardcode_action=$hardcode_action
24357
24358# ### END LIBTOOL CONFIG
24359
24360_LT_EOF
24361
24362 case $host_os in
24363 aix3*)
24364 cat <<\_LT_EOF >> "$cfgfile"
24365# AIX sometimes has problems with the GCC collect2 program. For some
24366# reason, if we set the COLLECT_NAMES environment variable, the problems
24367# vanish in a puff of smoke.
24368if test "X${COLLECT_NAMES+set}" != Xset; then
24369 COLLECT_NAMES=
24370 export COLLECT_NAMES
24371fi
24372_LT_EOF
24373 ;;
24374 esac
24375
24376
24377ltmain="$ac_aux_dir/ltmain.sh"
24378
24379
24380 # We use sed instead of cat because bash on DJGPP gets confused if
24381 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24382 # text mode, it properly converts lines to CR/LF. This bash problem
24383 # is reportedly fixed, but why not run on old versions too?
24384 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24385 || (rm -f "$cfgfile"; exit 1)
24386
24387 case $xsi_shell in
24388 yes)
24389 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 24390
d7040cdb
SE
24391# func_dirname file append nondir_replacement
24392# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24393# otherwise set result to NONDIR_REPLACEMENT.
24394func_dirname ()
24395{
24396 case ${1} in
24397 */*) func_dirname_result="${1%/*}${2}" ;;
24398 * ) func_dirname_result="${3}" ;;
24399 esac
24400}
24401
24402# func_basename file
24403func_basename ()
24404{
24405 func_basename_result="${1##*/}"
24406}
24407
718a6fd8
SE
24408# func_dirname_and_basename file append nondir_replacement
24409# perform func_basename and func_dirname in a single function
24410# call:
24411# dirname: Compute the dirname of FILE. If nonempty,
24412# add APPEND to the result, otherwise set result
24413# to NONDIR_REPLACEMENT.
24414# value returned in "$func_dirname_result"
24415# basename: Compute filename of FILE.
24416# value retuned in "$func_basename_result"
24417# Implementation must be kept synchronized with func_dirname
24418# and func_basename. For efficiency, we do not delegate to
24419# those functions but instead duplicate the functionality here.
24420func_dirname_and_basename ()
24421{
24422 case ${1} in
24423 */*) func_dirname_result="${1%/*}${2}" ;;
24424 * ) func_dirname_result="${3}" ;;
24425 esac
24426 func_basename_result="${1##*/}"
24427}
24428
d7040cdb
SE
24429# func_stripname prefix suffix name
24430# strip PREFIX and SUFFIX off of NAME.
24431# PREFIX and SUFFIX must not contain globbing or regex special
24432# characters, hashes, percent signs, but SUFFIX may contain a leading
24433# dot (in which case that matches only a dot).
24434func_stripname ()
24435{
24436 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24437 # positional parameters, so assign one to ordinary parameter first.
24438 func_stripname_result=${3}
24439 func_stripname_result=${func_stripname_result#"${1}"}
24440 func_stripname_result=${func_stripname_result%"${2}"}
24441}
24442
24443# func_opt_split
24444func_opt_split ()
24445{
24446 func_opt_split_opt=${1%%=*}
24447 func_opt_split_arg=${1#*=}
24448}
24449
24450# func_lo2o object
24451func_lo2o ()
24452{
24453 case ${1} in
24454 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24455 *) func_lo2o_result=${1} ;;
24456 esac
24457}
718a6fd8
SE
24458
24459# func_xform libobj-or-source
24460func_xform ()
24461{
24462 func_xform_result=${1%.*}.lo
24463}
24464
24465# func_arith arithmetic-term...
24466func_arith ()
24467{
24468 func_arith_result=$(( $* ))
24469}
24470
24471# func_len string
24472# STRING may not start with a hyphen.
24473func_len ()
24474{
24475 func_len_result=${#1}
24476}
24477
d7040cdb
SE
24478_LT_EOF
24479 ;;
24480 *) # Bourne compatible functions.
24481 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 24482
d7040cdb
SE
24483# func_dirname file append nondir_replacement
24484# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24485# otherwise set result to NONDIR_REPLACEMENT.
24486func_dirname ()
24487{
24488 # Extract subdirectory from the argument.
24489 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24490 if test "X$func_dirname_result" = "X${1}"; then
24491 func_dirname_result="${3}"
24492 else
24493 func_dirname_result="$func_dirname_result${2}"
24494 fi
24495}
24496
24497# func_basename file
24498func_basename ()
24499{
24500 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24501}
24502
718a6fd8 24503
d7040cdb
SE
24504# func_stripname prefix suffix name
24505# strip PREFIX and SUFFIX off of NAME.
24506# PREFIX and SUFFIX must not contain globbing or regex special
24507# characters, hashes, percent signs, but SUFFIX may contain a leading
24508# dot (in which case that matches only a dot).
24509# func_strip_suffix prefix name
24510func_stripname ()
24511{
24512 case ${2} in
24513 .*) func_stripname_result=`$ECHO "X${3}" \
24514 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24515 *) func_stripname_result=`$ECHO "X${3}" \
24516 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24517 esac
24518}
24519
24520# sed scripts:
24521my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24522my_sed_long_arg='1s/^-[^=]*=//'
24523
24524# func_opt_split
24525func_opt_split ()
24526{
24527 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24528 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24529}
24530
24531# func_lo2o object
24532func_lo2o ()
24533{
24534 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24535}
718a6fd8
SE
24536
24537# func_xform libobj-or-source
24538func_xform ()
24539{
24540 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24541}
24542
24543# func_arith arithmetic-term...
24544func_arith ()
24545{
24546 func_arith_result=`expr "$@"`
24547}
24548
24549# func_len string
24550# STRING may not start with a hyphen.
24551func_len ()
24552{
24553 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24554}
24555
d7040cdb
SE
24556_LT_EOF
24557esac
24558
24559case $lt_shell_append in
24560 yes)
24561 cat << \_LT_EOF >> "$cfgfile"
24562
24563# func_append var value
24564# Append VALUE to the end of shell variable VAR.
24565func_append ()
24566{
24567 eval "$1+=\$2"
24568}
24569_LT_EOF
24570 ;;
24571 *)
24572 cat << \_LT_EOF >> "$cfgfile"
24573
24574# func_append var value
24575# Append VALUE to the end of shell variable VAR.
24576func_append ()
24577{
24578 eval "$1=\$$1\$2"
24579}
718a6fd8 24580
d7040cdb
SE
24581_LT_EOF
24582 ;;
24583 esac
24584
24585
24586 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24587 || (rm -f "$cfgfile"; exit 1)
24588
24589 mv -f "$cfgfile" "$ofile" ||
24590 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24591 chmod +x "$ofile"
24592
f5385ebf 24593 ;;
20e95c23
DJ
24594 default-1 )
24595 for ac_file in $CONFIG_FILES; do
24596 # Support "outfile[:infile[:infile...]]"
24597 case "$ac_file" in
24598 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24599 esac
24600 # PO directories have a Makefile.in generated from Makefile.in.in.
24601 case "$ac_file" in */Makefile.in)
24602 # Adjust a relative srcdir.
24603 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24604 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24605 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24606 # In autoconf-2.13 it is called $ac_given_srcdir.
24607 # In autoconf-2.50 it is called $srcdir.
24608 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24609 case "$ac_given_srcdir" in
24610 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24611 /*) top_srcdir="$ac_given_srcdir" ;;
24612 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24613 esac
24614 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24615 rm -f "$ac_dir/POTFILES"
24616 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24617 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24618 POMAKEFILEDEPS="POTFILES.in"
24619 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24620 # on $ac_dir but don't depend on user-specified configuration
24621 # parameters.
24622 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24623 # The LINGUAS file contains the set of available languages.
24624 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24625 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24626 fi
24627 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24628 # Hide the ALL_LINGUAS assigment from automake.
24629 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24630 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24631 else
24632 # The set of available languages was given in configure.in.
24633 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24634 fi
24635 case "$ac_given_srcdir" in
24636 .) srcdirpre= ;;
24637 *) srcdirpre='$(srcdir)/' ;;
24638 esac
24639 POFILES=
24640 GMOFILES=
24641 UPDATEPOFILES=
24642 DUMMYPOFILES=
24643 for lang in $ALL_LINGUAS; do
24644 POFILES="$POFILES $srcdirpre$lang.po"
24645 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24646 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24647 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24648 done
24649 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24650 # environment variable.
24651 INST_LINGUAS=
24652 if test -n "$ALL_LINGUAS"; then
24653 for presentlang in $ALL_LINGUAS; do
24654 useit=no
24655 if test "%UNSET%" != "$LINGUAS"; then
24656 desiredlanguages="$LINGUAS"
24657 else
24658 desiredlanguages="$ALL_LINGUAS"
24659 fi
24660 for desiredlang in $desiredlanguages; do
24661 # Use the presentlang catalog if desiredlang is
24662 # a. equal to presentlang, or
24663 # b. a variant of presentlang (because in this case,
24664 # presentlang can be used as a fallback for messages
24665 # which are not translated in the desiredlang catalog).
24666 case "$desiredlang" in
24667 "$presentlang"*) useit=yes;;
24668 esac
24669 done
24670 if test $useit = yes; then
24671 INST_LINGUAS="$INST_LINGUAS $presentlang"
24672 fi
24673 done
24674 fi
24675 CATALOGS=
24676 if test -n "$INST_LINGUAS"; then
24677 for lang in $INST_LINGUAS; do
24678 CATALOGS="$CATALOGS $lang.gmo"
24679 done
24680 fi
24681 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24682 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"
24683 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24684 if test -f "$f"; then
24685 case "$f" in
24686 *.orig | *.bak | *~) ;;
24687 *) cat "$f" >> "$ac_dir/Makefile" ;;
24688 esac
24689 fi
24690 done
24691 fi
24692 ;;
24693 esac
24694 done ;;
d5efd9fc
AM
24695 bfd_stdint.h )
24696if test "$GCC" = yes; then
24697 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24698else
24699 echo "/* generated for $CC */" > tmp-stdint.h
24700fi
24701
24702sed 's/^ *//' >> tmp-stdint.h <<EOF
24703
24704 #ifndef GCC_GENERATED_STDINT_H
24705 #define GCC_GENERATED_STDINT_H 1
24706
24707 #include <sys/types.h>
24708EOF
24709
24710if test "$acx_cv_header_stdint" != stdint.h; then
24711 echo "#include <stddef.h>" >> tmp-stdint.h
24712fi
24713if test "$acx_cv_header_stdint" != stddef.h; then
24714 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24715fi
24716
24717sed 's/^ *//' >> tmp-stdint.h <<EOF
24718 /* glibc uses these symbols as guards to prevent redefinitions. */
24719 #ifdef __int8_t_defined
24720 #define _INT8_T
24721 #define _INT16_T
24722 #define _INT32_T
24723 #endif
24724 #ifdef __uint32_t_defined
24725 #define _UINT32_T
24726 #endif
24727
24728EOF
24729
24730# ----------------- done header, emit basic int types -------------
24731if test "$acx_cv_header_stdint" = stddef.h; then
24732 sed 's/^ *//' >> tmp-stdint.h <<EOF
24733
24734 #ifndef _UINT8_T
24735 #define _UINT8_T
24736 #ifndef __uint8_t_defined
24737 #define __uint8_t_defined
24738 typedef unsigned $acx_cv_type_int8_t uint8_t;
24739 #endif
24740 #endif
24741
24742 #ifndef _UINT16_T
24743 #define _UINT16_T
24744 #ifndef __uint16_t_defined
24745 #define __uint16_t_defined
24746 typedef unsigned $acx_cv_type_int16_t uint16_t;
24747 #endif
24748 #endif
24749
24750 #ifndef _UINT32_T
24751 #define _UINT32_T
24752 #ifndef __uint32_t_defined
24753 #define __uint32_t_defined
24754 typedef unsigned $acx_cv_type_int32_t uint32_t;
24755 #endif
24756 #endif
24757
24758 #ifndef _INT8_T
24759 #define _INT8_T
24760 #ifndef __int8_t_defined
24761 #define __int8_t_defined
24762 typedef $acx_cv_type_int8_t int8_t;
24763 #endif
24764 #endif
24765
24766 #ifndef _INT16_T
24767 #define _INT16_T
24768 #ifndef __int16_t_defined
24769 #define __int16_t_defined
24770 typedef $acx_cv_type_int16_t int16_t;
24771 #endif
24772 #endif
24773
24774 #ifndef _INT32_T
24775 #define _INT32_T
24776 #ifndef __int32_t_defined
24777 #define __int32_t_defined
24778 typedef $acx_cv_type_int32_t int32_t;
24779 #endif
24780 #endif
24781EOF
24782elif test "$ac_cv_type_u_int32_t" = yes; then
24783 sed 's/^ *//' >> tmp-stdint.h <<EOF
24784
24785 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24786 #ifndef _INT8_T
24787 #define _INT8_T
24788 #endif
24789 #ifndef _INT16_T
24790 #define _INT16_T
24791 #endif
24792 #ifndef _INT32_T
24793 #define _INT32_T
24794 #endif
24795
24796 #ifndef _UINT8_T
24797 #define _UINT8_T
24798 #ifndef __uint8_t_defined
24799 #define __uint8_t_defined
24800 typedef u_int8_t uint8_t;
24801 #endif
24802 #endif
24803
24804 #ifndef _UINT16_T
24805 #define _UINT16_T
24806 #ifndef __uint16_t_defined
24807 #define __uint16_t_defined
24808 typedef u_int16_t uint16_t;
24809 #endif
24810 #endif
24811
24812 #ifndef _UINT32_T
24813 #define _UINT32_T
24814 #ifndef __uint32_t_defined
24815 #define __uint32_t_defined
24816 typedef u_int32_t uint32_t;
24817 #endif
24818 #endif
24819EOF
24820else
24821 sed 's/^ *//' >> tmp-stdint.h <<EOF
24822
24823 /* Some systems have guard macros to prevent redefinitions, define them. */
24824 #ifndef _INT8_T
24825 #define _INT8_T
24826 #endif
24827 #ifndef _INT16_T
24828 #define _INT16_T
24829 #endif
24830 #ifndef _INT32_T
24831 #define _INT32_T
24832 #endif
24833 #ifndef _UINT8_T
24834 #define _UINT8_T
24835 #endif
24836 #ifndef _UINT16_T
24837 #define _UINT16_T
24838 #endif
24839 #ifndef _UINT32_T
24840 #define _UINT32_T
24841 #endif
24842EOF
24843fi
24844
24845# ------------- done basic int types, emit int64_t types ------------
24846if test "$ac_cv_type_uint64_t" = yes; then
24847 sed 's/^ *//' >> tmp-stdint.h <<EOF
24848
24849 /* system headers have good uint64_t and int64_t */
24850 #ifndef _INT64_T
24851 #define _INT64_T
24852 #endif
24853 #ifndef _UINT64_T
24854 #define _UINT64_T
24855 #endif
24856EOF
24857elif test "$ac_cv_type_u_int64_t" = yes; then
24858 sed 's/^ *//' >> tmp-stdint.h <<EOF
24859
24860 /* system headers have an u_int64_t (and int64_t) */
24861 #ifndef _INT64_T
24862 #define _INT64_T
24863 #endif
24864 #ifndef _UINT64_T
24865 #define _UINT64_T
24866 #ifndef __uint64_t_defined
24867 #define __uint64_t_defined
24868 typedef u_int64_t uint64_t;
24869 #endif
24870 #endif
24871EOF
24872elif test -n "$acx_cv_type_int64_t"; then
24873 sed 's/^ *//' >> tmp-stdint.h <<EOF
24874
24875 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24876 #ifndef _INT64_T
24877 #define _INT64_T
24878 typedef $acx_cv_type_int64_t int64_t;
24879 #endif
24880 #ifndef _UINT64_T
24881 #define _UINT64_T
24882 #ifndef __uint64_t_defined
24883 #define __uint64_t_defined
24884 typedef unsigned $acx_cv_type_int64_t uint64_t;
24885 #endif
24886 #endif
24887EOF
24888else
24889 sed 's/^ *//' >> tmp-stdint.h <<EOF
24890
24891 /* some common heuristics for int64_t, using compiler-specific tests */
24892 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24893 #ifndef _INT64_T
24894 #define _INT64_T
24895 #ifndef __int64_t_defined
24896 typedef long long int64_t;
24897 #endif
24898 #endif
24899 #ifndef _UINT64_T
24900 #define _UINT64_T
24901 typedef unsigned long long uint64_t;
24902 #endif
24903
24904 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24905 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24906 does not implement __extension__. But that compiler doesn't define
24907 __GNUC_MINOR__. */
24908 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24909 # define __extension__
24910 # endif
24911
24912 # ifndef _INT64_T
24913 # define _INT64_T
24914 __extension__ typedef long long int64_t;
24915 # endif
24916 # ifndef _UINT64_T
24917 # define _UINT64_T
24918 __extension__ typedef unsigned long long uint64_t;
24919 # endif
24920
24921 #elif !defined __STRICT_ANSI__
24922 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24923
24924 # ifndef _INT64_T
24925 # define _INT64_T
24926 typedef __int64 int64_t;
24927 # endif
24928 # ifndef _UINT64_T
24929 # define _UINT64_T
24930 typedef unsigned __int64 uint64_t;
24931 # endif
24932 # endif /* compiler */
24933
24934 #endif /* ANSI version */
24935EOF
24936fi
24937
24938# ------------- done int64_t types, emit intptr types ------------
24939if test "$ac_cv_type_uintptr_t" != yes; then
24940 sed 's/^ *//' >> tmp-stdint.h <<EOF
24941
24942 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24943 #ifndef __uintptr_t_defined
24944 typedef u$acx_cv_type_intptr_t uintptr_t;
24945 #endif
24946 #ifndef __intptr_t_defined
24947 typedef $acx_cv_type_intptr_t intptr_t;
24948 #endif
24949EOF
24950fi
24951
24952# ------------- done intptr types, emit int_least types ------------
24953if test "$ac_cv_type_int_least32_t" != yes; then
24954 sed 's/^ *//' >> tmp-stdint.h <<EOF
24955
24956 /* Define int_least types */
24957 typedef int8_t int_least8_t;
24958 typedef int16_t int_least16_t;
24959 typedef int32_t int_least32_t;
24960 #ifdef _INT64_T
24961 typedef int64_t int_least64_t;
24962 #endif
24963
24964 typedef uint8_t uint_least8_t;
24965 typedef uint16_t uint_least16_t;
24966 typedef uint32_t uint_least32_t;
24967 #ifdef _UINT64_T
24968 typedef uint64_t uint_least64_t;
24969 #endif
24970EOF
24971fi
24972
24973# ------------- done intptr types, emit int_fast types ------------
24974if test "$ac_cv_type_int_fast32_t" != yes; then
24975 sed 's/^ *//' >> tmp-stdint.h <<EOF
24976
24977 /* Define int_fast types. short is often slow */
24978 typedef int8_t int_fast8_t;
24979 typedef int int_fast16_t;
24980 typedef int32_t int_fast32_t;
24981 #ifdef _INT64_T
24982 typedef int64_t int_fast64_t;
24983 #endif
24984
24985 typedef uint8_t uint_fast8_t;
24986 typedef unsigned int uint_fast16_t;
24987 typedef uint32_t uint_fast32_t;
24988 #ifdef _UINT64_T
24989 typedef uint64_t uint_fast64_t;
24990 #endif
24991EOF
24992fi
24993
24994if test "$ac_cv_type_uintmax_t" != yes; then
24995 sed 's/^ *//' >> tmp-stdint.h <<EOF
24996
24997 /* Define intmax based on what we found */
24998 #ifdef _INT64_T
24999 typedef int64_t intmax_t;
25000 #else
25001 typedef long intmax_t;
25002 #endif
25003 #ifdef _UINT64_T
25004 typedef uint64_t uintmax_t;
25005 #else
25006 typedef unsigned long uintmax_t;
25007 #endif
25008EOF
25009fi
25010
25011sed 's/^ *//' >> tmp-stdint.h <<EOF
25012
25013 #endif /* GCC_GENERATED_STDINT_H */
25014EOF
25015
25016if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
25017 rm -f tmp-stdint.h
25018else
25019 mv -f tmp-stdint.h bfd_stdint.h
25020fi
25021
25022 ;;
20e95c23
DJ
25023 default )
25024case "$srcdir" in
25025 .) srcdirpre= ;;
25026 *) srcdirpre='$(srcdir)/' ;;
25027esac
25028POFILES=
25029GMOFILES=
25030for lang in dummy $OBSOLETE_ALL_LINGUAS; do
25031 if test $lang != dummy; then
25032 POFILES="$POFILES $srcdirpre$lang.po"
25033 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25034 fi
25035done
25036sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
25037 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
25038 -e "s,@POFILES@,$POFILES," \
25039 -e "s,@GMOFILES@,$GMOFILES," \
25040 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
25041 esac
25042done
25043_ACEOF
25044
25045cat >>$CONFIG_STATUS <<\_ACEOF
25046
25047{ (exit 0); exit 0; }
25048_ACEOF
252b5132 25049chmod +x $CONFIG_STATUS
5464f5a1
NN
25050ac_clean_files=$ac_clean_files_save
25051
25052
25053# configure is writing to config.log, and then calls config.status.
25054# config.status does its own redirection, appending to config.log.
25055# Unfortunately, on DOS this fails, as config.log is still kept open
25056# by configure, so config.status won't be able to write to it; its
25057# output is simply discarded. So we exec the FD to /dev/null,
25058# effectively closing config.log, so it can be properly (re)opened and
25059# appended to by config.status. When coming back to configure, we
25060# need to make the FD available again.
25061if test "$no_create" != yes; then
25062 ac_cs_success=:
25063 ac_config_status_args=
25064 test "$silent" = yes &&
25065 ac_config_status_args="$ac_config_status_args --quiet"
25066 exec 5>/dev/null
25067 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25068 exec 5>>config.log
25069 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25070 # would make configure fail if this is the last instruction.
25071 $ac_cs_success || { (exit 1); exit 1; }
25072fi
252b5132 25073
55c80943 25074