]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/configure
Add LM32 port.
[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
718a6fd8 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
5464f5a1 462ac_subst_files=''
7357c5b6 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
5464f5a1
NN
466ac_init_help=
467ac_init_version=false
252b5132
RH
468# The variables have the same names as the options, with
469# dashes changed to underlines.
5464f5a1 470cache_file=/dev/null
252b5132 471exec_prefix=NONE
252b5132 472no_create=
252b5132
RH
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
252b5132
RH
481verbose=
482x_includes=NONE
483x_libraries=NONE
5464f5a1
NN
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
252b5132
RH
503ac_prev=
504for ac_option
505do
252b5132
RH
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
5464f5a1 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
5464f5a1 517 case $ac_option in
252b5132
RH
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
5464f5a1 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 527 build_alias=$ac_optarg ;;
252b5132
RH
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
252b5132
RH
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
5464f5a1 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
5464f5a1 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
5464f5a1
NN
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
252b5132
RH
553
554 -enable-* | --enable-*)
5464f5a1 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
5464f5a1
NN
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
563 *) ac_optarg=yes ;;
564 esac
5464f5a1 565 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
5464f5a1 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
5464f5a1
NN
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
252b5132
RH
586
587 -host | --host | --hos | --ho)
5464f5a1 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 590 host_alias=$ac_optarg ;;
252b5132
RH
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 597 includedir=$ac_optarg ;;
252b5132
RH
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 607 libdir=$ac_optarg ;;
252b5132
RH
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
5464f5a1 614 libexecdir=$ac_optarg ;;
252b5132
RH
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5464f5a1 623 localstatedir=$ac_optarg ;;
252b5132
RH
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 628 mandir=$ac_optarg ;;
252b5132
RH
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 635 | --no-cr | --no-c | -n)
252b5132
RH
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 649 oldincludedir=$ac_optarg ;;
252b5132
RH
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 654 prefix=$ac_optarg ;;
252b5132
RH
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 661 program_prefix=$ac_optarg ;;
252b5132
RH
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 668 program_suffix=$ac_optarg ;;
252b5132
RH
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 685 program_transform_name=$ac_optarg ;;
252b5132
RH
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
5464f5a1 695 sbindir=$ac_optarg ;;
252b5132
RH
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
5464f5a1 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
5464f5a1 711 site=$ac_optarg ;;
6be7c12c 712
252b5132
RH
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 716 srcdir=$ac_optarg ;;
252b5132
RH
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
5464f5a1
NN
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
5464f5a1 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
5464f5a1
NN
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
252b5132 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
5464f5a1 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
5464f5a1 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
5464f5a1
NN
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
252b5132
RH
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 767 x_includes=$ac_optarg ;;
252b5132
RH
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 774 x_libraries=$ac_optarg ;;
252b5132 775
5464f5a1
NN
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
252b5132
RH
779 ;;
780
5464f5a1
NN
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
252b5132 791 *)
5464f5a1
NN
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
5464f5a1
NN
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
252b5132 806fi
252b5132 807
5464f5a1
NN
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
6be7c12c 818
5464f5a1
NN
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
5464f5a1
NN
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
252b5132
RH
828 esac
829done
830
5464f5a1
NN
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
252b5132 848
5464f5a1
NN
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
252b5132 853
252b5132
RH
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
5464f5a1
NN
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
252b5132
RH
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
5464f5a1
NN
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
5464f5a1
NN
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
b3baf5d0 923
5464f5a1
NN
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
252b5132 932
5464f5a1 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
5464f5a1
NN
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 937
5464f5a1 938Defaults for the options are specified in brackets.
6be7c12c 939
5464f5a1
NN
940Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953 cat <<_ACEOF
954Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
6be7c12c 959
5464f5a1
NN
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
6be7c12c 964
5464f5a1 965For better control, use the options below.
6be7c12c 966
5464f5a1
NN
967Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980_ACEOF
6be7c12c 981
5464f5a1 982 cat <<\_ACEOF
6be7c12c 983
5464f5a1
NN
984Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 988
5464f5a1
NN
989System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993_ACEOF
252b5132 994fi
252b5132 995
5464f5a1 996if test -n "$ac_init_help"; then
6be7c12c 997
5464f5a1 998 cat <<\_ACEOF
252b5132 999
5464f5a1
NN
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
d053aef8 1007 --disable-largefile omit support for large files
d7040cdb
SE
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
5464f5a1
NN
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1014 --enable-targets alternative target configurations
1015 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
6ec7057a 1016 --enable-secureplt Default to creating read-only plt entries
504b7d20 1017 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
241a6c40
AM
1018 --enable-werror treat compile warnings as errors
1019 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
5464f5a1
NN
1022 --enable-install-libbfd controls installation of libbfd and related headers
1023 --disable-nls do not use Native Language Support
1024
1025Optional Packages:
1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1028 --with-pic try to use only PIC/non-PIC objects [default=use
1029 both]
1030 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1031 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1032 --with-separate-debug-dir=DIR
1033 Look for global separate debug info in DIR
1034 [default=LIBDIR/debug]
a1ac8190
JM
1035 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1036 Binutils"
c428fa83 1037 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
1038
1039Some influential environment variables:
1040 CC C compiler command
1041 CFLAGS C compiler flags
1042 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1043 nonstandard directory <lib dir>
1044 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045 headers in a nonstandard directory <include dir>
1046 CPP C preprocessor
1047
1048Use these variables to override the choices made by `configure' or to help
1049it to find libraries and programs with nonstandard names/locations.
1050
1051_ACEOF
1052fi
1053
1054if test "$ac_init_help" = "recursive"; then
1055 # If there are subdirs, report their specific --help.
1056 ac_popdir=`pwd`
1057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058 test -d $ac_dir || continue
1059 ac_builddir=.
1060
1061if test "$ac_dir" != .; then
1062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065else
1066 ac_dir_suffix= ac_top_builddir=
1067fi
1068
1069case $srcdir in
1070 .) # No --srcdir option. We are building in place.
1071 ac_srcdir=.
1072 if test -z "$ac_top_builddir"; then
1073 ac_top_srcdir=.
1074 else
1075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 fi ;;
1077 [\\/]* | ?:[\\/]* ) # Absolute path.
1078 ac_srcdir=$srcdir$ac_dir_suffix;
1079 ac_top_srcdir=$srcdir ;;
1080 *) # Relative path.
1081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
1083esac
1084
5464f5a1
NN
1085# Do not use `cd foo && pwd` to compute absolute paths, because
1086# the directories may not exist.
1087case `pwd` in
1088.) ac_abs_builddir="$ac_dir";;
1089*)
1090 case "$ac_dir" in
1091 .) ac_abs_builddir=`pwd`;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094 esac;;
1095esac
1096case $ac_abs_builddir in
1097.) ac_abs_top_builddir=${ac_top_builddir}.;;
1098*)
1099 case ${ac_top_builddir}. in
1100 .) ac_abs_top_builddir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103 esac;;
1104esac
1105case $ac_abs_builddir in
1106.) ac_abs_srcdir=$ac_srcdir;;
1107*)
1108 case $ac_srcdir in
1109 .) ac_abs_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112 esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_top_srcdir=$ac_top_srcdir;;
1116*)
1117 case $ac_top_srcdir in
1118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1121 esac;;
1122esac
6be7c12c 1123
5464f5a1
NN
1124 cd $ac_dir
1125 # Check for guested configure; otherwise get Cygnus style configure.
1126 if test -f $ac_srcdir/configure.gnu; then
1127 echo
1128 $SHELL $ac_srcdir/configure.gnu --help=recursive
1129 elif test -f $ac_srcdir/configure; then
1130 echo
1131 $SHELL $ac_srcdir/configure --help=recursive
1132 elif test -f $ac_srcdir/configure.ac ||
1133 test -f $ac_srcdir/configure.in; then
1134 echo
1135 $ac_configure --help
1136 else
1137 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1138 fi
7357c5b6 1139 cd $ac_popdir
5464f5a1 1140 done
6be7c12c
AO
1141fi
1142
5464f5a1
NN
1143test -n "$ac_init_help" && exit 0
1144if $ac_init_version; then
1145 cat <<\_ACEOF
6be7c12c 1146
5464f5a1
NN
1147Copyright (C) 2003 Free Software Foundation, Inc.
1148This configure script is free software; the Free Software Foundation
1149gives unlimited permission to copy, distribute and modify it.
1150_ACEOF
1151 exit 0
1152fi
1153exec 5>config.log
1154cat >&5 <<_ACEOF
1155This file contains any messages produced by compilers while
1156running configure, to aid debugging if configure makes a mistake.
6be7c12c 1157
5464f5a1
NN
1158It was created by $as_me, which was
1159generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1160
5464f5a1 1161 $ $0 $@
6be7c12c 1162
5464f5a1
NN
1163_ACEOF
1164{
1165cat <<_ASUNAME
1166## --------- ##
1167## Platform. ##
1168## --------- ##
1169
1170hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178
1179/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186
1187_ASUNAME
1188
1189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190for as_dir in $PATH
1191do
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195done
6be7c12c 1196
5464f5a1 1197} >&5
66e25bab 1198
5464f5a1 1199cat >&5 <<_ACEOF
b3baf5d0 1200
6be7c12c 1201
5464f5a1
NN
1202## ----------- ##
1203## Core tests. ##
1204## ----------- ##
252b5132 1205
5464f5a1 1206_ACEOF
c5d1701e 1207
6be7c12c 1208
5464f5a1
NN
1209# Keep a trace of the command line.
1210# Strip out --no-create and --no-recursion so they do not pile up.
1211# Strip out --silent because we don't want to record it for future runs.
1212# Also quote any args containing shell meta-characters.
1213# Make two passes to allow for proper duplicate-argument suppression.
1214ac_configure_args=
1215ac_configure_args0=
1216ac_configure_args1=
1217ac_sep=
1218ac_must_keep_next=false
1219for ac_pass in 1 2
1220do
1221 for ac_arg
1222 do
1223 case $ac_arg in
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 continue ;;
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 esac
1231 case $ac_pass in
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 2)
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1237 else
1238 case $ac_arg in
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 esac
1246 ;;
1247 -* ) ac_must_keep_next=true ;;
1248 esac
1249 fi
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1252 ac_sep=" "
1253 ;;
1254 esac
1255 done
1256done
1257$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260# When interrupted or exit'd, cleanup temporary files, and complete
1261# config.log. We remove comments because anyway the quotes in there
1262# would cause problems or look ugly.
1263# WARNING: Be sure not to use single quotes in there, as some shells,
1264# such as our DU 5.0 friend, will then `close' the trap.
1265trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1267 {
1268 echo
1269
1270 cat <<\_ASBOX
1271## ---------------- ##
1272## Cache variables. ##
1273## ---------------- ##
1274_ASBOX
1275 echo
1276 # The following way of writing the cache mishandles newlines in values,
1277{
1278 (set) 2>&1 |
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 *ac_space=\ *)
1281 sed -n \
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284 ;;
1285 *)
1286 sed -n \
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288 ;;
1289 esac;
1290}
1291 echo
1292
1293 cat <<\_ASBOX
1294## ----------------- ##
1295## Output variables. ##
1296## ----------------- ##
1297_ASBOX
1298 echo
1299 for ac_var in $ac_subst_vars
1300 do
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1305
1306 if test -n "$ac_subst_files"; then
1307 cat <<\_ASBOX
1308## ------------- ##
1309## Output files. ##
1310## ------------- ##
1311_ASBOX
1312 echo
1313 for ac_var in $ac_subst_files
1314 do
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1319 fi
1320
1321 if test -s confdefs.h; then
1322 cat <<\_ASBOX
1323## ----------- ##
1324## confdefs.h. ##
1325## ----------- ##
1326_ASBOX
1327 echo
1328 sed "/^$/d" confdefs.h | sort
1329 echo
1330 fi
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1334 } >&5
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 exit $exit_status
1338 ' 0
1339for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341done
1342ac_signal=0
1343
1344# confdefs.h avoids OS command line length limits that DEFS can exceed.
1345rm -rf conftest* confdefs.h
1346# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347echo >confdefs.h
1348
1349# Predefined preprocessor variables.
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_NAME "$PACKAGE_NAME"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_VERSION "$PACKAGE_VERSION"
1363_ACEOF
1364
1365
1366cat >>confdefs.h <<_ACEOF
1367#define PACKAGE_STRING "$PACKAGE_STRING"
1368_ACEOF
1369
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373_ACEOF
1374
1375
1376# Let the site file select an alternate cache file if it wants to.
1377# Prefer explicitly selected file to automatically selected ones.
1378if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 else
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383 fi
1384fi
1385for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1390 . "$ac_site_file"
1391 fi
1392done
1393
1394if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1404 fi
1405else
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1409fi
1410
1411# Check that the precious variables saved in the cache have kept the same
1412# value.
1413ac_cache_corrupted=false
1414for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1421 set,)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,set)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,);;
1430 *)
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1432 # differences in whitespace do not lead to failure.
1433 ac_old_val_w=`echo x $ac_old_val`
1434 ac_new_val_w=`echo x $ac_new_val`
1435 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
5464f5a1 1437echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1438 ac_cache_corrupted=:
1439 else
1440 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1442 eval $ac_var=\$ac_old_val
1443 fi
1444 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1445echo "$as_me: former value: \`$ac_old_val'" >&2;}
1446 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1447echo "$as_me: current value: \`$ac_new_val'" >&2;}
5464f5a1
NN
1448 fi;;
1449 esac
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1452 case $ac_new_val in
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1456 esac
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460 esac
1461 fi
1462done
1463if $ac_cache_corrupted; then
7357c5b6
AM
1464 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1465echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1471fi
1472
1473ac_ext=c
1474ac_cpp='$CPP $CPPFLAGS'
1475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
7357c5b6
AM
1495
1496
1497
5464f5a1
NN
1498
1499
1500
1501
1502ac_aux_dir=
1503for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504 if test -f $ac_dir/install-sh; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 break
1508 elif test -f $ac_dir/install.sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 break
1512 elif test -f $ac_dir/shtool; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/shtool install -c"
1515 break
1516 fi
1517done
1518if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521 { (exit 1); exit 1; }; }
1522fi
1523ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526
1527# Make sure we can run config.sub.
1528$ac_config_sub sun4 >/dev/null 2>&1 ||
1529 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531 { (exit 1); exit 1; }; }
1532
1533echo "$as_me:$LINENO: checking build system type" >&5
1534echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535if test "${ac_cv_build+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 ac_cv_build_alias=$build_alias
1539test -z "$ac_cv_build_alias" &&
1540 ac_cv_build_alias=`$ac_config_guess`
1541test -z "$ac_cv_build_alias" &&
1542 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544 { (exit 1); exit 1; }; }
1545ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1549
1550fi
1551echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552echo "${ECHO_T}$ac_cv_build" >&6
1553build=$ac_cv_build
1554build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559echo "$as_me:$LINENO: checking host system type" >&5
1560echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 ac_cv_host_alias=$host_alias
1565test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572fi
1573echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574echo "${ECHO_T}$ac_cv_host" >&6
1575host=$ac_cv_host
1576host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581echo "$as_me:$LINENO: checking target system type" >&5
1582echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 ac_cv_target_alias=$target_alias
1587test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596echo "${ECHO_T}$ac_cv_target" >&6
1597target=$ac_cv_target
1598target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603# The aliases save the names the user supplied, while $host etc.
1604# will get canonicalized.
1605test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1607 NONENONEs,x,x, &&
1608 program_prefix=${target_alias}-
1609ac_ext=c
1610ac_cpp='$CPP $CPPFLAGS'
1611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617echo "$as_me:$LINENO: checking for $ac_word" >&5
1618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1621else
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1624else
1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 break 2
1635 fi
1636done
1637done
1638
1639fi
1640fi
1641CC=$ac_cv_prog_CC
1642if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644echo "${ECHO_T}$CC" >&6
1645else
1646 echo "$as_me:$LINENO: result: no" >&5
1647echo "${ECHO_T}no" >&6
1648fi
1649
1650fi
1651if test -z "$ac_cv_prog_CC"; then
1652 ac_ct_CC=$CC
1653 # Extract the first word of "gcc", so it can be a program name with args.
1654set dummy gcc; ac_word=$2
1655echo "$as_me:$LINENO: checking for $ac_word" >&5
1656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660 if test -n "$ac_ct_CC"; then
1661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662else
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_ac_ct_CC="gcc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1673 fi
1674done
1675done
1676
1677fi
1678fi
1679ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680if test -n "$ac_ct_CC"; then
1681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682echo "${ECHO_T}$ac_ct_CC" >&6
1683else
1684 echo "$as_me:$LINENO: result: no" >&5
1685echo "${ECHO_T}no" >&6
1686fi
1687
1688 CC=$ac_ct_CC
1689else
1690 CC="$ac_cv_prog_CC"
1691fi
1692
1693if test -z "$CC"; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696set dummy ${ac_tool_prefix}cc; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1704else
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
1719fi
1720fi
1721CC=$ac_cv_prog_CC
1722if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724echo "${ECHO_T}$CC" >&6
1725else
1726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730fi
1731if test -z "$ac_cv_prog_CC"; then
1732 ac_ct_CC=$CC
1733 # Extract the first word of "cc", so it can be a program name with args.
1734set dummy cc; ac_word=$2
1735echo "$as_me:$LINENO: checking for $ac_word" >&5
1736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739else
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742else
1743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744for as_dir in $PATH
1745do
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="cc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1753 fi
1754done
1755done
1756
1757fi
1758fi
1759ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762echo "${ECHO_T}$ac_ct_CC" >&6
1763else
1764 echo "$as_me:$LINENO: result: no" >&5
1765echo "${ECHO_T}no" >&6
1766fi
1767
1768 CC=$ac_ct_CC
1769else
1770 CC="$ac_cv_prog_CC"
1771fi
1772
1773fi
1774if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776set dummy cc; ac_word=$2
1777echo "$as_me:$LINENO: checking for $ac_word" >&5
1778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1784else
1785 ac_prog_rejected=no
1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789 IFS=$as_save_IFS
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794 ac_prog_rejected=yes
1795 continue
1796 fi
1797 ac_cv_prog_CC="cc"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1800 fi
1801done
1802done
1803
1804if test $ac_prog_rejected = yes; then
1805 # We found a bogon in the path, so make sure we never use it.
1806 set dummy $ac_cv_prog_CC
1807 shift
1808 if test $# != 0; then
1809 # We chose a different compiler from the bogus one.
1810 # However, it has the same basename, so the bogon will be chosen
1811 # first if we set CC to just the basename; use the full file name.
1812 shift
1813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1814 fi
1815fi
1816fi
1817fi
1818CC=$ac_cv_prog_CC
1819if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821echo "${ECHO_T}$CC" >&6
1822else
1823 echo "$as_me:$LINENO: result: no" >&5
1824echo "${ECHO_T}no" >&6
1825fi
1826
1827fi
1828if test -z "$CC"; then
1829 if test -n "$ac_tool_prefix"; then
1830 for ac_prog in cl
1831 do
1832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834echo "$as_me:$LINENO: checking for $ac_word" >&5
1835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838else
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1841else
1842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843for as_dir in $PATH
1844do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
1852 fi
1853done
1854done
1855
1856fi
1857fi
1858CC=$ac_cv_prog_CC
1859if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861echo "${ECHO_T}$CC" >&6
1862else
1863 echo "$as_me:$LINENO: result: no" >&5
1864echo "${ECHO_T}no" >&6
1865fi
1866
1867 test -n "$CC" && break
1868 done
1869fi
1870if test -z "$CC"; then
1871 ac_ct_CC=$CC
1872 for ac_prog in cl
1873do
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875set dummy $ac_prog; ac_word=$2
1876echo "$as_me:$LINENO: checking for $ac_word" >&5
1877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880else
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883else
1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885for as_dir in $PATH
1886do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1894 fi
1895done
1896done
1897
1898fi
1899fi
1900ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903echo "${ECHO_T}$ac_ct_CC" >&6
1904else
1905 echo "$as_me:$LINENO: result: no" >&5
1906echo "${ECHO_T}no" >&6
1907fi
1908
1909 test -n "$ac_ct_CC" && break
1910done
1911
1912 CC=$ac_ct_CC
1913fi
1914
1915fi
1916
1917
7357c5b6
AM
1918test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1919echo "$as_me: error: in \`$ac_pwd':" >&2;}
1920{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5464f5a1
NN
1921See \`config.log' for more details." >&5
1922echo "$as_me: error: no acceptable C compiler found in \$PATH
1923See \`config.log' for more details." >&2;}
7357c5b6 1924 { (exit 1); exit 1; }; }; }
5464f5a1
NN
1925
1926# Provide some information about the compiler.
1927echo "$as_me:$LINENO:" \
1928 "checking for C compiler version" >&5
1929ac_compiler=`set X $ac_compile; echo $2`
1930{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1931 (eval $ac_compiler --version </dev/null >&5) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }
1935{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1936 (eval $ac_compiler -v </dev/null >&5) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }
1940{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1941 (eval $ac_compiler -V </dev/null >&5) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }
1945
1946cat >conftest.$ac_ext <<_ACEOF
1947/* confdefs.h. */
1948_ACEOF
1949cat confdefs.h >>conftest.$ac_ext
1950cat >>conftest.$ac_ext <<_ACEOF
1951/* end confdefs.h. */
1952
1953int
1954main ()
1955{
1956
1957 ;
1958 return 0;
1959}
1960_ACEOF
1961ac_clean_files_save=$ac_clean_files
1962ac_clean_files="$ac_clean_files a.out a.exe b.out"
1963# Try to create an executable without -o first, disregard a.out.
1964# It will help us diagnose broken compilers, and finding out an intuition
1965# of exeext.
1966echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1967echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1968ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1970 (eval $ac_link_default) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; then
1974 # Find the output, starting from the most likely. This scheme is
1975# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1976# resort.
1977
1978# Be careful to initialize this variable, since it used to be cached.
1979# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1980ac_cv_exeext=
1981# b.out is created by i960 compilers.
1982for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1983do
1984 test -f "$ac_file" || continue
1985 case $ac_file in
1986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1987 ;;
1988 conftest.$ac_ext )
1989 # This is the source file.
1990 ;;
1991 [ab].out )
1992 # We found the default executable, but exeext='' is most
1993 # certainly right.
1994 break;;
1995 *.* )
1996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1997 # FIXME: I believe we export ac_cv_exeext for Libtool,
1998 # but it would be cool to find out if it's true. Does anybody
1999 # maintain Libtool? --akim.
2000 export ac_cv_exeext
2001 break;;
2002 * )
2003 break;;
2004 esac
2005done
2006else
2007 echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
7357c5b6
AM
2010{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2011echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
2012{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2013See \`config.log' for more details." >&5
2014echo "$as_me: error: C compiler cannot create executables
2015See \`config.log' for more details." >&2;}
7357c5b6 2016 { (exit 77); exit 77; }; }; }
5464f5a1
NN
2017fi
2018
2019ac_exeext=$ac_cv_exeext
2020echo "$as_me:$LINENO: result: $ac_file" >&5
2021echo "${ECHO_T}$ac_file" >&6
2022
2023# Check the compiler produces executables we can run. If not, either
2024# the compiler is broken, or we cross compile.
2025echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2026echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2027# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2028# If not cross compiling, check that we can run a simple program.
2029if test "$cross_compiling" != yes; then
2030 if { ac_try='./$ac_file'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2036 cross_compiling=no
2037 else
2038 if test "$cross_compiling" = maybe; then
2039 cross_compiling=yes
2040 else
7357c5b6
AM
2041 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2042echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5464f5a1
NN
2044If you meant to cross compile, use \`--host'.
2045See \`config.log' for more details." >&5
2046echo "$as_me: error: cannot run C compiled programs.
2047If you meant to cross compile, use \`--host'.
2048See \`config.log' for more details." >&2;}
7357c5b6 2049 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2050 fi
2051 fi
2052fi
2053echo "$as_me:$LINENO: result: yes" >&5
2054echo "${ECHO_T}yes" >&6
2055
2056rm -f a.out a.exe conftest$ac_cv_exeext b.out
2057ac_clean_files=$ac_clean_files_save
2058# Check the compiler produces executables we can run. If not, either
2059# the compiler is broken, or we cross compile.
2060echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2061echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2062echo "$as_me:$LINENO: result: $cross_compiling" >&5
2063echo "${ECHO_T}$cross_compiling" >&6
2064
2065echo "$as_me:$LINENO: checking for suffix of executables" >&5
2066echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2068 (eval $ac_link) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; then
2072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2073# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2074# work properly (i.e., refer to `conftest.exe'), while it won't with
2075# `rm'.
2076for ac_file in conftest.exe conftest conftest.*; do
2077 test -f "$ac_file" || continue
2078 case $ac_file in
2079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2081 export ac_cv_exeext
2082 break;;
2083 * ) break;;
2084 esac
2085done
2086else
7357c5b6
AM
2087 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2088echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5464f5a1
NN
2090See \`config.log' for more details." >&5
2091echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2092See \`config.log' for more details." >&2;}
7357c5b6 2093 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2094fi
2095
2096rm -f conftest$ac_cv_exeext
2097echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2098echo "${ECHO_T}$ac_cv_exeext" >&6
2099
2100rm -f conftest.$ac_ext
2101EXEEXT=$ac_cv_exeext
2102ac_exeext=$EXEEXT
2103echo "$as_me:$LINENO: checking for suffix of object files" >&5
2104echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2105if test "${ac_cv_objext+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108 cat >conftest.$ac_ext <<_ACEOF
2109/* confdefs.h. */
2110_ACEOF
2111cat confdefs.h >>conftest.$ac_ext
2112cat >>conftest.$ac_ext <<_ACEOF
2113/* end confdefs.h. */
2114
2115int
2116main ()
2117{
2118
2119 ;
2120 return 0;
2121}
2122_ACEOF
2123rm -f conftest.o conftest.obj
2124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130 case $ac_file in
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2133 break;;
2134 esac
2135done
2136else
2137 echo "$as_me: failed program was:" >&5
2138sed 's/^/| /' conftest.$ac_ext >&5
2139
7357c5b6
AM
2140{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2141echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
2142{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2143See \`config.log' for more details." >&5
2144echo "$as_me: error: cannot compute suffix of object files: cannot compile
2145See \`config.log' for more details." >&2;}
7357c5b6 2146 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2147fi
2148
2149rm -f conftest.$ac_cv_objext conftest.$ac_ext
2150fi
2151echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2152echo "${ECHO_T}$ac_cv_objext" >&6
2153OBJEXT=$ac_cv_objext
2154ac_objext=$OBJEXT
2155echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2156echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2157if test "${ac_cv_c_compiler_gnu+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
2160 cat >conftest.$ac_ext <<_ACEOF
2161/* confdefs.h. */
2162_ACEOF
2163cat confdefs.h >>conftest.$ac_ext
2164cat >>conftest.$ac_ext <<_ACEOF
2165/* end confdefs.h. */
2166
2167int
2168main ()
2169{
2170#ifndef __GNUC__
2171 choke me
2172#endif
2173
2174 ;
2175 return 0;
2176}
2177_ACEOF
2178rm -f conftest.$ac_objext
2179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>conftest.er1
2181 ac_status=$?
2182 grep -v '^ *+' conftest.er1 >conftest.err
2183 rm -f conftest.er1
2184 cat conftest.err >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); } &&
7357c5b6
AM
2187 { ac_try='test -z "$ac_c_werror_flag"
2188 || test ! -s conftest.err'
5464f5a1
NN
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; } &&
2194 { ac_try='test -s conftest.$ac_objext'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 (eval $ac_try) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2200 ac_compiler_gnu=yes
2201else
2202 echo "$as_me: failed program was:" >&5
2203sed 's/^/| /' conftest.$ac_ext >&5
2204
2205ac_compiler_gnu=no
2206fi
2207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2208ac_cv_c_compiler_gnu=$ac_compiler_gnu
2209
2210fi
2211echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2212echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2213GCC=`test $ac_compiler_gnu = yes && echo yes`
2214ac_test_CFLAGS=${CFLAGS+set}
2215ac_save_CFLAGS=$CFLAGS
2216CFLAGS="-g"
2217echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2218echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2219if test "${ac_cv_prog_cc_g+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221else
2222 cat >conftest.$ac_ext <<_ACEOF
2223/* confdefs.h. */
2224_ACEOF
2225cat confdefs.h >>conftest.$ac_ext
2226cat >>conftest.$ac_ext <<_ACEOF
2227/* end confdefs.h. */
2228
2229int
2230main ()
2231{
2232
2233 ;
2234 return 0;
2235}
2236_ACEOF
2237rm -f conftest.$ac_objext
2238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
7357c5b6
AM
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
5464f5a1
NN
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 ac_cv_prog_cc_g=yes
2260else
2261 echo "$as_me: failed program was:" >&5
2262sed 's/^/| /' conftest.$ac_ext >&5
2263
2264ac_cv_prog_cc_g=no
2265fi
2266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267fi
2268echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2274 CFLAGS="-g -O2"
2275 else
2276 CFLAGS="-g"
2277 fi
2278else
2279 if test "$GCC" = yes; then
2280 CFLAGS="-O2"
2281 else
2282 CFLAGS=
2283 fi
2284fi
2285echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2286echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2287if test "${ac_cv_prog_cc_stdc+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289else
2290 ac_cv_prog_cc_stdc=no
2291ac_save_CC=$CC
2292cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h. */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
2297/* end confdefs.h. */
2298#include <stdarg.h>
2299#include <stdio.h>
2300#include <sys/types.h>
2301#include <sys/stat.h>
2302/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2303struct buf { int x; };
2304FILE * (*rcsopen) (struct buf *, struct stat *, int);
2305static char *e (p, i)
2306 char **p;
2307 int i;
2308{
2309 return p[i];
2310}
2311static char *f (char * (*g) (char **, int), char **p, ...)
2312{
2313 char *s;
2314 va_list v;
2315 va_start (v,p);
2316 s = g (p, va_arg (v,int));
2317 va_end (v);
2318 return s;
2319}
2320
2321/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2322 function prototypes and stuff, but not '\xHH' hex character constants.
2323 These don't provoke an error unfortunately, instead are silently treated
2324 as 'x'. The following induces an error, until -std1 is added to get
2325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2326 array size at least. It's necessary to write '\x00'==0 to get something
2327 that's true only with -std1. */
2328int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2329
2330int test (int i, double x);
2331struct s1 {int (*f) (int a);};
2332struct s2 {int (*f) (double a);};
2333int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2334int argc;
2335char **argv;
2336int
2337main ()
2338{
2339return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2340 ;
2341 return 0;
2342}
2343_ACEOF
2344# Don't try gcc -ansi; that turns off useful extensions and
2345# breaks some systems' header files.
2346# AIX -qlanglvl=ansi
2347# Ultrix and OSF/1 -std1
2348# HP-UX 10.20 and later -Ae
2349# HP-UX older versions -Aa -D_HPUX_SOURCE
2350# SVR4 -Xc -D__EXTENSIONS__
2351for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2352do
2353 CC="$ac_save_CC $ac_arg"
2354 rm -f conftest.$ac_objext
2355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2357 ac_status=$?
2358 grep -v '^ *+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
7357c5b6
AM
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
5464f5a1
NN
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_prog_cc_stdc=$ac_arg
2377break
2378else
2379 echo "$as_me: failed program was:" >&5
2380sed 's/^/| /' conftest.$ac_ext >&5
2381
2382fi
2383rm -f conftest.err conftest.$ac_objext
2384done
2385rm -f conftest.$ac_ext conftest.$ac_objext
2386CC=$ac_save_CC
2387
2388fi
2389
2390case "x$ac_cv_prog_cc_stdc" in
2391 x|xno)
2392 echo "$as_me:$LINENO: result: none needed" >&5
2393echo "${ECHO_T}none needed" >&6 ;;
2394 *)
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2396echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2397 CC="$CC $ac_cv_prog_cc_stdc" ;;
2398esac
2399
2400# Some people use a C++ compiler to compile C. Since we use `exit',
2401# in C++ we need to declare it. In case someone uses the same compiler
2402# for both compiling C and C++ we need to have the C++ compiler decide
2403# the declaration of exit, since it's the most demanding environment.
2404cat >conftest.$ac_ext <<_ACEOF
2405#ifndef __cplusplus
2406 choke me
2407#endif
2408_ACEOF
2409rm -f conftest.$ac_objext
2410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
7357c5b6
AM
2418 { ac_try='test -z "$ac_c_werror_flag"
2419 || test ! -s conftest.err'
5464f5a1
NN
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 for ac_declaration in \
2432 '' \
2433 'extern "C" void std::exit (int) throw (); using std::exit;' \
2434 'extern "C" void std::exit (int); using std::exit;' \
2435 'extern "C" void exit (int) throw ();' \
2436 'extern "C" void exit (int);' \
2437 'void exit (int);'
2438do
2439 cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h. */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h. */
2445$ac_declaration
2446#include <stdlib.h>
2447int
2448main ()
2449{
2450exit (42);
2451 ;
2452 return 0;
2453}
2454_ACEOF
2455rm -f conftest.$ac_objext
2456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
7357c5b6
AM
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
5464f5a1
NN
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 :
2478else
2479 echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482continue
2483fi
2484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 cat >conftest.$ac_ext <<_ACEOF
2486/* confdefs.h. */
2487_ACEOF
2488cat confdefs.h >>conftest.$ac_ext
2489cat >>conftest.$ac_ext <<_ACEOF
2490/* end confdefs.h. */
2491$ac_declaration
2492int
2493main ()
2494{
2495exit (42);
2496 ;
2497 return 0;
2498}
2499_ACEOF
2500rm -f conftest.$ac_objext
2501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
7357c5b6
AM
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
5464f5a1
NN
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 break
2523else
2524 echo "$as_me: failed program was:" >&5
2525sed 's/^/| /' conftest.$ac_ext >&5
2526
2527fi
2528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529done
2530rm -f conftest*
2531if test -n "$ac_declaration"; then
2532 echo '#ifdef __cplusplus' >>confdefs.h
2533 echo $ac_declaration >>confdefs.h
2534 echo '#endif' >>confdefs.h
2535fi
2536
2537else
2538 echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541fi
2542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543ac_ext=c
2544ac_cpp='$CPP $CPPFLAGS'
2545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548
2549
f5385ebf
AM
2550echo "$as_me:$LINENO: checking for library containing strerror" >&5
2551echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2552if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554else
f5385ebf
AM
2555 ac_func_search_save_LIBS=$LIBS
2556ac_cv_search_strerror=no
5464f5a1
NN
2557cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563
2564/* Override any gcc2 internal prototype to avoid an error. */
2565#ifdef __cplusplus
2566extern "C"
2567#endif
2568/* We use char because int might match the return type of a gcc2
2569 builtin and then its argument prototype would still apply. */
2570char strerror ();
2571int
2572main ()
2573{
2574strerror ();
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579rm -f conftest.$ac_objext conftest$ac_exeext
2580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2581 (eval $ac_link) 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
7357c5b6
AM
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
5464f5a1
NN
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest$ac_exeext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
f5385ebf 2601 ac_cv_search_strerror="none required"
5464f5a1
NN
2602else
2603 echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
5464f5a1
NN
2606fi
2607rm -f conftest.err conftest.$ac_objext \
2608 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2609if test "$ac_cv_search_strerror" = no; then
2610 for ac_lib in cposix; do
2611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2612 cat >conftest.$ac_ext <<_ACEOF
2613/* confdefs.h. */
2614_ACEOF
2615cat confdefs.h >>conftest.$ac_ext
2616cat >>conftest.$ac_ext <<_ACEOF
2617/* end confdefs.h. */
2618
2619/* Override any gcc2 internal prototype to avoid an error. */
2620#ifdef __cplusplus
2621extern "C"
2622#endif
2623/* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2625char strerror ();
2626int
2627main ()
2628{
2629strerror ();
2630 ;
2631 return 0;
2632}
2633_ACEOF
2634rm -f conftest.$ac_objext conftest$ac_exeext
2635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2636 (eval $ac_link) 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
7357c5b6
AM
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
f5385ebf
AM
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest$ac_exeext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_cv_search_strerror="-l$ac_lib"
2657break
2658else
2659 echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
5464f5a1 2662fi
f5385ebf
AM
2663rm -f conftest.err conftest.$ac_objext \
2664 conftest$ac_exeext conftest.$ac_ext
2665 done
5464f5a1 2666fi
f5385ebf
AM
2667LIBS=$ac_func_search_save_LIBS
2668fi
2669echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2670echo "${ECHO_T}$ac_cv_search_strerror" >&6
2671if test "$ac_cv_search_strerror" != no; then
2672 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2673
f5385ebf 2674fi
5464f5a1
NN
2675
2676
f5385ebf 2677am__api_version="1.9"
5464f5a1
NN
2678# Find a good install program. We prefer a C program (faster),
2679# so one script is as good as another. But avoid the broken or
2680# incompatible versions:
2681# SysV /etc/install, /usr/sbin/install
2682# SunOS /usr/etc/install
2683# IRIX /sbin/install
2684# AIX /bin/install
2685# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2687# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2689# OS/2's system install, which has a completely different semantic
252b5132 2690# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2691# Reject install programs that cannot install multiple files.
5464f5a1
NN
2692echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2693echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2694if test -z "$INSTALL"; then
5464f5a1
NN
2695if test "${ac_cv_path_install+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2697else
5464f5a1
NN
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 # Account for people who put trailing slashes in PATH elements.
2704case $as_dir/ in
2705 ./ | .// | /cC/* | \
2706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2707 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2708 /usr/ucb/* ) ;;
2709 *)
2710 # OSF1 and SCO ODT 3.0 have their own names for install.
2711 # Don't use installbsd from OSF since it installs stuff as root
2712 # by default.
2713 for ac_prog in ginstall scoinst install; do
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2716 if test $ac_prog = install &&
5464f5a1 2717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2718 # AIX install. It has an incompatible calling convention.
2719 :
5464f5a1
NN
2720 elif test $ac_prog = install &&
2721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722 # program-specific install script used by HP pwplus--don't use.
2723 :
252b5132 2724 else
58c85be7
RW
2725 rm -rf conftest.one conftest.two conftest.dir
2726 echo one > conftest.one
2727 echo two > conftest.two
2728 mkdir conftest.dir
2729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2730 test -s conftest.one && test -s conftest.two &&
2731 test -s conftest.dir/conftest.one &&
2732 test -s conftest.dir/conftest.two
2733 then
2734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2735 break 3
2736 fi
252b5132
RH
2737 fi
2738 fi
2739 done
5464f5a1
NN
2740 done
2741 ;;
2742esac
2743done
2744
58c85be7 2745rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2746
2747fi
2748 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2749 INSTALL=$ac_cv_path_install
252b5132 2750 else
58c85be7
RW
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for INSTALL within a source directory, because that will
252b5132 2753 # break other packages using the cache if that directory is
58c85be7 2754 # removed, or if the value is a relative name.
5464f5a1 2755 INSTALL=$ac_install_sh
252b5132
RH
2756 fi
2757fi
5464f5a1
NN
2758echo "$as_me:$LINENO: result: $INSTALL" >&5
2759echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2760
2761# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762# It thinks the first close brace ends the variable substitution.
2763test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2764
5464f5a1 2765test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2766
2767test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2768
5464f5a1
NN
2769echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2770echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2771# Just in case
2772sleep 1
f5385ebf 2773echo timestamp > conftest.file
252b5132
RH
2774# Do `set' in a subshell so we don't clobber the current shell's
2775# arguments. Must try -L first in case configure is actually a
2776# symlink; some systems play weird games with the mod time of symlinks
2777# (eg FreeBSD returns the mod time of the symlink's containing
2778# directory).
2779if (
f5385ebf 2780 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2781 if test "$*" = "X"; then
2782 # -L didn't work.
f5385ebf 2783 set X `ls -t $srcdir/configure conftest.file`
252b5132 2784 fi
f5385ebf
AM
2785 rm -f conftest.file
2786 if test "$*" != "X $srcdir/configure conftest.file" \
2787 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2788
2789 # If neither matched, then we have a broken ls. This can happen
2790 # if, for instance, CONFIG_SHELL is bash and it inherits a
2791 # broken ls alias from the environment. This has actually
2792 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2793 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2794alias in your environment" >&5
2795echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2796alias in your environment" >&2;}
2797 { (exit 1); exit 1; }; }
252b5132
RH
2798 fi
2799
f5385ebf 2800 test "$2" = conftest.file
252b5132
RH
2801 )
2802then
2803 # Ok.
2804 :
2805else
5464f5a1
NN
2806 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2807Check your system clock" >&5
2808echo "$as_me: error: newly created file is older than distributed files!
2809Check your system clock" >&2;}
2810 { (exit 1); exit 1; }; }
252b5132 2811fi
5464f5a1
NN
2812echo "$as_me:$LINENO: result: yes" >&5
2813echo "${ECHO_T}yes" >&6
252b5132 2814test "$program_prefix" != NONE &&
5464f5a1 2815 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2816# Use a double $ so make ignores it.
2817test "$program_suffix" != NONE &&
5464f5a1
NN
2818 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2819# Double any \ or $. echo might interpret backslashes.
2820# By default was `s,x,x', remove it if useless.
2821cat <<\_ACEOF >conftest.sed
2822s/[\\$]/&&/g;s/;s,x,x,$//
2823_ACEOF
2824program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2825rm conftest.sed
2826
f5385ebf
AM
2827# expand $ac_aux_dir to an absolute path
2828am_aux_dir=`cd $ac_aux_dir && pwd`
2829
2830test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2831# Use eval to expand $SHELL
2832if eval "$MISSING --run true"; then
2833 am_missing_run="$MISSING --run "
2834else
2835 am_missing_run=
2836 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2837echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2838fi
2839
2840if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2841 # We used to keeping the `.' as first argument, in order to
2842 # allow $(mkdir_p) to be used without argument. As in
2843 # $(mkdir_p) $(somedir)
2844 # where $(somedir) is conditionally defined. However this is wrong
2845 # for two reasons:
2846 # 1. if the package is installed by a user who cannot write `.'
2847 # make install will fail,
2848 # 2. the above comment should most certainly read
2849 # $(mkdir_p) $(DESTDIR)$(somedir)
2850 # so it does not work when $(somedir) is undefined and
2851 # $(DESTDIR) is not.
2852 # To support the latter case, we have to write
2853 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2854 # so the `.' trick is pointless.
2855 mkdir_p='mkdir -p --'
2856else
2857 # On NextStep and OpenStep, the `mkdir' command does not
2858 # recognize any option. It will interpret all options as
2859 # directories to create, and then abort because `.' already
2860 # exists.
2861 for d in ./-p ./--version;
2862 do
2863 test -d $d && rmdir $d
2864 done
2865 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2866 if test -f "$ac_aux_dir/mkinstalldirs"; then
2867 mkdir_p='$(mkinstalldirs)'
2868 else
2869 mkdir_p='$(install_sh) -d'
2870 fi
2871fi
2872
2873for ac_prog in gawk mawk nawk awk
2874do
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876set dummy $ac_prog; ac_word=$2
2877echo "$as_me:$LINENO: checking for $ac_word" >&5
2878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879if test "${ac_cv_prog_AWK+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882 if test -n "$AWK"; then
2883 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_AWK="$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897done
2898
2899fi
2900fi
2901AWK=$ac_cv_prog_AWK
2902if test -n "$AWK"; then
2903 echo "$as_me:$LINENO: result: $AWK" >&5
2904echo "${ECHO_T}$AWK" >&6
2905else
2906 echo "$as_me:$LINENO: result: no" >&5
2907echo "${ECHO_T}no" >&6
2908fi
2909
2910 test -n "$AWK" && break
2911done
2912
5464f5a1
NN
2913echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2914echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2915set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2916if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919 cat >conftest.make <<\_ACEOF
252b5132 2920all:
5464f5a1
NN
2921 @echo 'ac_maketemp="$(MAKE)"'
2922_ACEOF
252b5132 2923# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2924eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2925if test -n "$ac_maketemp"; then
2926 eval ac_cv_prog_make_${ac_make}_set=yes
2927else
2928 eval ac_cv_prog_make_${ac_make}_set=no
2929fi
5464f5a1 2930rm -f conftest.make
252b5132
RH
2931fi
2932if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2933 echo "$as_me:$LINENO: result: yes" >&5
2934echo "${ECHO_T}yes" >&6
252b5132
RH
2935 SET_MAKE=
2936else
5464f5a1
NN
2937 echo "$as_me:$LINENO: result: no" >&5
2938echo "${ECHO_T}no" >&6
252b5132
RH
2939 SET_MAKE="MAKE=${MAKE-make}"
2940fi
2941
f5385ebf
AM
2942rm -rf .tst 2>/dev/null
2943mkdir .tst 2>/dev/null
2944if test -d .tst; then
2945 am__leading_dot=.
2946else
2947 am__leading_dot=_
2948fi
2949rmdir .tst 2>/dev/null
2950
2951DEPDIR="${am__leading_dot}deps"
2952
2953 ac_config_commands="$ac_config_commands depfiles"
2954
2955
2956am_make=${MAKE-make}
2957cat > confinc << 'END'
2958am__doit:
2959 @echo done
2960.PHONY: am__doit
2961END
2962# If we don't find an include directive, just comment out the code.
2963echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2964echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2965am__include="#"
2966am__quote=
2967_am_result=none
2968# First try GNU make style include.
2969echo "include confinc" > confmf
2970# We grep out `Entering directory' and `Leaving directory'
2971# messages which can occur if `w' ends up in MAKEFLAGS.
2972# In particular we don't look at `^make:' because GNU make might
2973# be invoked under some other name (usually "gmake"), in which
2974# case it prints its new name instead of `make'.
2975if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2976 am__include=include
2977 am__quote=
2978 _am_result=GNU
2979fi
2980# Now try BSD make style include.
2981if test "$am__include" = "#"; then
2982 echo '.include "confinc"' > confmf
2983 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2984 am__include=.include
2985 am__quote="\""
2986 _am_result=BSD
2987 fi
2988fi
2989
2990
2991echo "$as_me:$LINENO: result: $_am_result" >&5
2992echo "${ECHO_T}$_am_result" >&6
2993rm -f confinc confmf
2994
2995# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2996if test "${enable_dependency_tracking+set}" = set; then
2997 enableval="$enable_dependency_tracking"
2998
2999fi;
3000if test "x$enable_dependency_tracking" != xno; then
3001 am_depcomp="$ac_aux_dir/depcomp"
3002 AMDEPBACKSLASH='\'
3003fi
3004
3005
3006if test "x$enable_dependency_tracking" != xno; then
3007 AMDEP_TRUE=
3008 AMDEP_FALSE='#'
3009else
3010 AMDEP_TRUE='#'
3011 AMDEP_FALSE=
3012fi
6be7c12c 3013
252b5132 3014
252b5132 3015
f5385ebf
AM
3016# test to see if srcdir already configured
3017if test "`cd $srcdir && pwd`" != "`pwd`" &&
3018 test -f $srcdir/config.status; then
5464f5a1
NN
3019 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3020echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3021 { (exit 1); exit 1; }; }
252b5132 3022fi
5464f5a1 3023
f5385ebf
AM
3024# test whether we have cygpath
3025if test -z "$CYGPATH_W"; then
3026 if (cygpath --version) >/dev/null 2>/dev/null; then
3027 CYGPATH_W='cygpath -w'
3028 else
3029 CYGPATH_W=echo
3030 fi
3031fi
3032
3033
3034# Define the identity of the package.
3035 PACKAGE=bfd
ae5a3597 3036 VERSION=2.19.51
f5385ebf
AM
3037
3038
5464f5a1 3039cat >>confdefs.h <<_ACEOF
252b5132 3040#define PACKAGE "$PACKAGE"
5464f5a1 3041_ACEOF
252b5132 3042
5464f5a1
NN
3043
3044cat >>confdefs.h <<_ACEOF
252b5132 3045#define VERSION "$VERSION"
5464f5a1 3046_ACEOF
252b5132 3047
f5385ebf
AM
3048# Some tools Automake needs.
3049
3050ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3051
3052
3053AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3054
3055
3056AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3057
3058
3059AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3060
3061
3062MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 3063
f5385ebf 3064install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 3065
f5385ebf
AM
3066# Installed binaries are usually stripped using `strip' when the user
3067# run `make install-strip'. However `strip' might not be the right
3068# tool to use in cross-compilation environments, therefore Automake
3069# will honor the `STRIP' environment variable to overrule this program.
3070if test "$cross_compiling" != no; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073set dummy ${ac_tool_prefix}strip; ac_word=$2
3074echo "$as_me:$LINENO: checking for $ac_word" >&5
3075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076if test "${ac_cv_prog_STRIP+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
3079 if test -n "$STRIP"; then
3080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3081else
f5385ebf
AM
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093done
3094done
3095
3096fi
3097fi
3098STRIP=$ac_cv_prog_STRIP
3099if test -n "$STRIP"; then
3100 echo "$as_me:$LINENO: result: $STRIP" >&5
3101echo "${ECHO_T}$STRIP" >&6
3102else
3103 echo "$as_me:$LINENO: result: no" >&5
3104echo "${ECHO_T}no" >&6
3105fi
3106
252b5132 3107fi
f5385ebf
AM
3108if test -z "$ac_cv_prog_STRIP"; then
3109 ac_ct_STRIP=$STRIP
3110 # Extract the first word of "strip", so it can be a program name with args.
3111set dummy strip; ac_word=$2
3112echo "$as_me:$LINENO: checking for $ac_word" >&5
3113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116else
3117 if test -n "$ac_ct_STRIP"; then
3118 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_STRIP="strip"
3128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131done
3132done
252b5132 3133
f5385ebf
AM
3134 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3135fi
3136fi
3137ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3138if test -n "$ac_ct_STRIP"; then
3139 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3140echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3141else
f5385ebf
AM
3142 echo "$as_me:$LINENO: result: no" >&5
3143echo "${ECHO_T}no" >&6
252b5132
RH
3144fi
3145
f5385ebf 3146 STRIP=$ac_ct_STRIP
252b5132 3147else
f5385ebf
AM
3148 STRIP="$ac_cv_prog_STRIP"
3149fi
3150
252b5132 3151fi
f5385ebf
AM
3152INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3153
3154# We need awk for the "check" target. The system "awk" is bad on
3155# some platforms.
3156# Always define AMTAR for backward compatibility.
3157
3158AMTAR=${AMTAR-"${am_missing_run}tar"}
3159
3160am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3161
252b5132 3162
f5385ebf
AM
3163
3164
3165depcc="$CC" am_compiler_list=
3166
3167echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3168echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3169if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3171else
f5385ebf
AM
3172 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3173 # We make a subdir and do the tests there. Otherwise we can end up
3174 # making bogus files that we don't know about and never remove. For
3175 # instance it was reported that on HP-UX the gcc test will end up
3176 # making a dummy file named `D' -- because `-MD' means `put the output
3177 # in D'.
3178 mkdir conftest.dir
3179 # Copy depcomp to subdir because otherwise we won't find it if we're
3180 # using a relative directory.
3181 cp "$am_depcomp" conftest.dir
3182 cd conftest.dir
3183 # We will build objects and dependencies in a subdirectory because
3184 # it helps to detect inapplicable dependency modes. For instance
3185 # both Tru64's cc and ICC support -MD to output dependencies as a
3186 # side effect of compilation, but ICC will put the dependencies in
3187 # the current directory while Tru64 will put them in the object
3188 # directory.
3189 mkdir sub
3190
3191 am_cv_CC_dependencies_compiler_type=none
3192 if test "$am_compiler_list" = ""; then
3193 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3194 fi
3195 for depmode in $am_compiler_list; do
3196 # Setup a source with many dependencies, because some compilers
3197 # like to wrap large dependency lists on column 80 (with \), and
3198 # we should not choose a depcomp mode which is confused by this.
3199 #
3200 # We need to recreate these files for each test, as the compiler may
3201 # overwrite some of them when testing with obscure command lines.
3202 # This happens at least with the AIX C compiler.
3203 : > sub/conftest.c
3204 for i in 1 2 3 4 5 6; do
3205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3206 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3207 # Solaris 8's {/usr,}/bin/sh.
3208 touch sub/conftst$i.h
3209 done
3210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3211
3212 case $depmode in
3213 nosideeffect)
3214 # after this tag, mechanisms are not by side-effect, so they'll
3215 # only be used when explicitly requested
3216 if test "x$enable_dependency_tracking" = xyes; then
3217 continue
3218 else
3219 break
3220 fi
3221 ;;
3222 none) break ;;
3223 esac
3224 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3225 # mode. It turns out that the SunPro C++ compiler does not properly
3226 # handle `-M -o', and we need to detect this.
3227 if depmode=$depmode \
3228 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3230 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3231 >/dev/null 2>conftest.err &&
3232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3233 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3235 # icc doesn't choke on unknown options, it will just issue warnings
3236 # or remarks (even with -Werror). So we grep stderr for any message
3237 # that says an option was ignored or not supported.
3238 # When given -MP, icc 7.0 and 7.1 complain thusly:
3239 # icc: Command line warning: ignoring option '-M'; no argument required
3240 # The diagnosis changed in icc 8.0:
3241 # icc: Command line remark: option '-MP' not supported
3242 if (grep 'ignoring option' conftest.err ||
3243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3244 am_cv_CC_dependencies_compiler_type=$depmode
3245 break
3246 fi
3247 fi
3248 done
3249
3250 cd ..
3251 rm -rf conftest.dir
3252else
3253 am_cv_CC_dependencies_compiler_type=none
3254fi
3255
252b5132 3256fi
f5385ebf
AM
3257echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3258echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3259CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3260
f5385ebf
AM
3261
3262
3263if
3264 test "x$enable_dependency_tracking" != xno \
3265 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3266 am__fastdepCC_TRUE=
3267 am__fastdepCC_FALSE='#'
252b5132 3268else
f5385ebf
AM
3269 am__fastdepCC_TRUE='#'
3270 am__fastdepCC_FALSE=
252b5132
RH
3271fi
3272
6be7c12c 3273
e43d48cc 3274
f5385ebf 3275
5464f5a1
NN
3276if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3278set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3279echo "$as_me:$LINENO: checking for $ac_word" >&5
3280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281if test "${ac_cv_prog_AR+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3283else
3284 if test -n "$AR"; then
3285 ac_cv_prog_AR="$AR" # Let the user override the test.
3286else
5464f5a1
NN
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_AR="${ac_tool_prefix}ar"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298done
3299done
3300
252b5132
RH
3301fi
3302fi
5464f5a1 3303AR=$ac_cv_prog_AR
252b5132 3304if test -n "$AR"; then
5464f5a1
NN
3305 echo "$as_me:$LINENO: result: $AR" >&5
3306echo "${ECHO_T}$AR" >&6
252b5132 3307else
5464f5a1
NN
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310fi
3311
252b5132 3312fi
5464f5a1
NN
3313if test -z "$ac_cv_prog_AR"; then
3314 ac_ct_AR=$AR
3315 # Extract the first word of "ar", so it can be a program name with args.
3316set dummy ar; ac_word=$2
3317echo "$as_me:$LINENO: checking for $ac_word" >&5
3318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322 if test -n "$ac_ct_AR"; then
3323 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3324else
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_AR="ar"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336done
3337done
252b5132 3338
5464f5a1
NN
3339fi
3340fi
3341ac_ct_AR=$ac_cv_prog_ac_ct_AR
3342if test -n "$ac_ct_AR"; then
3343 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3344echo "${ECHO_T}$ac_ct_AR" >&6
3345else
3346 echo "$as_me:$LINENO: result: no" >&5
3347echo "${ECHO_T}no" >&6
3348fi
252b5132 3349
5464f5a1
NN
3350 AR=$ac_ct_AR
3351else
3352 AR="$ac_cv_prog_AR"
3353fi
6be7c12c 3354
5464f5a1
NN
3355if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3357set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3358echo "$as_me:$LINENO: checking for $ac_word" >&5
3359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360if test "${ac_cv_prog_RANLIB+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3362else
3363 if test -n "$RANLIB"; then
3364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365else
5464f5a1
NN
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377done
3378done
3379
252b5132
RH
3380fi
3381fi
5464f5a1 3382RANLIB=$ac_cv_prog_RANLIB
252b5132 3383if test -n "$RANLIB"; then
5464f5a1
NN
3384 echo "$as_me:$LINENO: result: $RANLIB" >&5
3385echo "${ECHO_T}$RANLIB" >&6
252b5132 3386else
5464f5a1
NN
3387 echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
252b5132
RH
3389fi
3390
5464f5a1 3391fi
252b5132 3392if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3393 ac_ct_RANLIB=$RANLIB
252b5132
RH
3394 # Extract the first word of "ranlib", so it can be a program name with args.
3395set dummy ranlib; ac_word=$2
5464f5a1
NN
3396echo "$as_me:$LINENO: checking for $ac_word" >&5
3397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3400else
5464f5a1
NN
3401 if test -n "$ac_ct_RANLIB"; then
3402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3403else
5464f5a1
NN
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_RANLIB="ranlib"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415done
3416done
3417
3418 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3419fi
3420fi
5464f5a1
NN
3421ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3422if test -n "$ac_ct_RANLIB"; then
3423 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3424echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3425else
5464f5a1
NN
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
252b5132
RH
3428fi
3429
5464f5a1 3430 RANLIB=$ac_ct_RANLIB
252b5132 3431else
5464f5a1 3432 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3433fi
3434
252b5132
RH
3435
3436# Check whether --enable-shared or --disable-shared was given.
3437if test "${enable_shared+set}" = set; then
3438 enableval="$enable_shared"
3439 p=${PACKAGE-default}
d7040cdb
SE
3440 case $enableval in
3441 yes) enable_shared=yes ;;
3442 no) enable_shared=no ;;
3443 *)
3444 enable_shared=no
3445 # Look at the argument we got. We use all the common list separators.
3446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3447 for pkg in $enableval; do
3448 IFS="$lt_save_ifs"
3449 if test "X$pkg" = "X$p"; then
3450 enable_shared=yes
3451 fi
3452 done
3453 IFS="$lt_save_ifs"
3454 ;;
3455 esac
252b5132
RH
3456else
3457 enable_shared=no
5464f5a1 3458fi;
252b5132 3459
d7040cdb
SE
3460
3461
3462
3463
3464
3465
3466
3467
cfbc9945
SE
3468ac_ext=c
3469ac_cpp='$CPP $CPPFLAGS'
3470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473if test -n "$ac_tool_prefix"; then
3474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3475set dummy ${ac_tool_prefix}gcc; ac_word=$2
3476echo "$as_me:$LINENO: checking for $ac_word" >&5
3477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478if test "${ac_cv_prog_CC+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3480else
cfbc9945
SE
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 3483else
cfbc9945
SE
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3494 fi
3495done
3496done
c5d1701e 3497
cfbc9945
SE
3498fi
3499fi
3500CC=$ac_cv_prog_CC
3501if test -n "$CC"; then
3502 echo "$as_me:$LINENO: result: $CC" >&5
3503echo "${ECHO_T}$CC" >&6
252b5132 3504else
cfbc9945
SE
3505 echo "$as_me:$LINENO: result: no" >&5
3506echo "${ECHO_T}no" >&6
252b5132 3507fi
cfbc9945
SE
3508
3509fi
3510if test -z "$ac_cv_prog_CC"; then
3511 ac_ct_CC=$CC
3512 # Extract the first word of "gcc", so it can be a program name with args.
3513set dummy gcc; ac_word=$2
3514echo "$as_me:$LINENO: checking for $ac_word" >&5
3515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3517 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3518else
cfbc9945
SE
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3521else
cfbc9945
SE
3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_ac_ct_CC="gcc"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533done
3534done
3535
252b5132
RH
3536fi
3537fi
cfbc9945
SE
3538ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539if test -n "$ac_ct_CC"; then
3540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3541echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3542else
5464f5a1
NN
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
252b5132 3545fi
cfbc9945
SE
3546
3547 CC=$ac_ct_CC
3548else
3549 CC="$ac_cv_prog_CC"
3550fi
3551
3552if test -z "$CC"; then
3553 if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3555set dummy ${ac_tool_prefix}cc; ac_word=$2
3556echo "$as_me:$LINENO: checking for $ac_word" >&5
3557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3559 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3560else
cfbc9945
SE
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3563else
cfbc9945
SE
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="${ac_tool_prefix}cc"
3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575done
3576done
3577
252b5132
RH
3578fi
3579fi
cfbc9945
SE
3580CC=$ac_cv_prog_CC
3581if test -n "$CC"; then
3582 echo "$as_me:$LINENO: result: $CC" >&5
3583echo "${ECHO_T}$CC" >&6
ac48eca1 3584else
cfbc9945
SE
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
ac48eca1 3587fi
ac48eca1 3588
cfbc9945
SE
3589fi
3590if test -z "$ac_cv_prog_CC"; then
3591 ac_ct_CC=$CC
3592 # Extract the first word of "cc", so it can be a program name with args.
3593set dummy cc; ac_word=$2
3594echo "$as_me:$LINENO: checking for $ac_word" >&5
3595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3596if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3597 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3598else
cfbc9945
SE
3599 if test -n "$ac_ct_CC"; then
3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3601else
cfbc9945
SE
3602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603for as_dir in $PATH
3604do
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_ac_ct_CC="cc"
3610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3612 fi
3613done
3614done
3615
252b5132 3616fi
cfbc9945
SE
3617fi
3618ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619if test -n "$ac_ct_CC"; then
3620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3621echo "${ECHO_T}$ac_ct_CC" >&6
3622else
3623 echo "$as_me:$LINENO: result: no" >&5
3624echo "${ECHO_T}no" >&6
252b5132
RH
3625fi
3626
cfbc9945
SE
3627 CC=$ac_ct_CC
3628else
3629 CC="$ac_cv_prog_CC"
3630fi
252b5132 3631
cfbc9945
SE
3632fi
3633if test -z "$CC"; then
3634 # Extract the first word of "cc", so it can be a program name with args.
3635set dummy cc; ac_word=$2
3636echo "$as_me:$LINENO: checking for $ac_word" >&5
3637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638if test "${ac_cv_prog_CC+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3640else
cfbc9945
SE
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3643else
3644 ac_prog_rejected=no
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653 ac_prog_rejected=yes
3654 continue
3655 fi
3656 ac_cv_prog_CC="cc"
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3659 fi
3660done
3661done
3662
3663if test $ac_prog_rejected = yes; then
3664 # We found a bogon in the path, so make sure we never use it.
3665 set dummy $ac_cv_prog_CC
3666 shift
3667 if test $# != 0; then
3668 # We chose a different compiler from the bogus one.
3669 # However, it has the same basename, so the bogon will be chosen
3670 # first if we set CC to just the basename; use the full file name.
3671 shift
3672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3673 fi
3674fi
3675fi
3676fi
3677CC=$ac_cv_prog_CC
3678if test -n "$CC"; then
3679 echo "$as_me:$LINENO: result: $CC" >&5
3680echo "${ECHO_T}$CC" >&6
3681else
3682 echo "$as_me:$LINENO: result: no" >&5
3683echo "${ECHO_T}no" >&6
252b5132
RH
3684fi
3685
cfbc9945
SE
3686fi
3687if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 for ac_prog in cl
3690 do
3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693echo "$as_me:$LINENO: checking for $ac_word" >&5
3694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3696 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3697else
cfbc9945
SE
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700else
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712done
3713done
ac48eca1 3714
cfbc9945
SE
3715fi
3716fi
3717CC=$ac_cv_prog_CC
3718if test -n "$CC"; then
3719 echo "$as_me:$LINENO: result: $CC" >&5
3720echo "${ECHO_T}$CC" >&6
3721else
3722 echo "$as_me:$LINENO: result: no" >&5
3723echo "${ECHO_T}no" >&6
3724fi
ac48eca1 3725
cfbc9945
SE
3726 test -n "$CC" && break
3727 done
3728fi
3729if test -z "$CC"; then
3730 ac_ct_CC=$CC
3731 for ac_prog in cl
3732do
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734set dummy $ac_prog; ac_word=$2
3735echo "$as_me:$LINENO: checking for $ac_word" >&5
3736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 if test -n "$ac_ct_CC"; then
3741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742else
3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_ac_ct_CC="$ac_prog"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754done
3755done
ac48eca1 3756
cfbc9945
SE
3757fi
3758fi
3759ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760if test -n "$ac_ct_CC"; then
3761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3762echo "${ECHO_T}$ac_ct_CC" >&6
3763else
3764 echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6
3766fi
ac48eca1 3767
cfbc9945
SE
3768 test -n "$ac_ct_CC" && break
3769done
ac48eca1 3770
cfbc9945
SE
3771 CC=$ac_ct_CC
3772fi
55c80943 3773
cfbc9945 3774fi
ac48eca1 3775
ac48eca1 3776
7357c5b6
AM
3777test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3778echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
cfbc9945
SE
3780See \`config.log' for more details." >&5
3781echo "$as_me: error: no acceptable C compiler found in \$PATH
3782See \`config.log' for more details." >&2;}
7357c5b6 3783 { (exit 1); exit 1; }; }; }
ac48eca1 3784
cfbc9945
SE
3785# Provide some information about the compiler.
3786echo "$as_me:$LINENO:" \
3787 "checking for C compiler version" >&5
3788ac_compiler=`set X $ac_compile; echo $2`
3789{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3790 (eval $ac_compiler --version </dev/null >&5) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }
3794{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3795 (eval $ac_compiler -v </dev/null >&5) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }
3799{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3800 (eval $ac_compiler -V </dev/null >&5) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }
ac48eca1 3804
cfbc9945
SE
3805echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3806echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3807if test "${ac_cv_c_compiler_gnu+set}" = set; then
5464f5a1 3808 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3809else
cfbc9945
SE
3810 cat >conftest.$ac_ext <<_ACEOF
3811/* confdefs.h. */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h. */
ac48eca1 3816
cfbc9945
SE
3817int
3818main ()
3819{
3820#ifndef __GNUC__
3821 choke me
3822#endif
5464f5a1 3823
cfbc9945
SE
3824 ;
3825 return 0;
3826}
3827_ACEOF
3828rm -f conftest.$ac_objext
3829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
7357c5b6
AM
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
cfbc9945
SE
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 ac_compiler_gnu=yes
ac48eca1 3851else
cfbc9945
SE
3852 echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855ac_compiler_gnu=no
ac48eca1 3856fi
cfbc9945
SE
3857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3859
5464f5a1 3860fi
cfbc9945
SE
3861echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3862echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3863GCC=`test $ac_compiler_gnu = yes && echo yes`
3864ac_test_CFLAGS=${CFLAGS+set}
3865ac_save_CFLAGS=$CFLAGS
3866CFLAGS="-g"
3867echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3868echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3869if test "${ac_cv_prog_cc_g+set}" = set; then
5464f5a1 3870 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3871else
cfbc9945
SE
3872 cat >conftest.$ac_ext <<_ACEOF
3873/* confdefs.h. */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h. */
3878
3879int
3880main ()
3881{
3882
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887rm -f conftest.$ac_objext
3888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
7357c5b6
AM
3896 { ac_try='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
cfbc9945
SE
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try='test -s conftest.$ac_objext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_cv_prog_cc_g=yes
6be7c12c 3910else
cfbc9945
SE
3911 echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3913
cfbc9945 3914ac_cv_prog_cc_g=no
ac48eca1 3915fi
cfbc9945 3916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3917fi
cfbc9945
SE
3918echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3919echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3920if test "$ac_test_CFLAGS" = set; then
3921 CFLAGS=$ac_save_CFLAGS
3922elif test $ac_cv_prog_cc_g = yes; then
3923 if test "$GCC" = yes; then
3924 CFLAGS="-g -O2"
3925 else
3926 CFLAGS="-g"
3927 fi
ac48eca1 3928else
cfbc9945
SE
3929 if test "$GCC" = yes; then
3930 CFLAGS="-O2"
3931 else
3932 CFLAGS=
3933 fi
ac48eca1 3934fi
cfbc9945
SE
3935echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3936echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3937if test "${ac_cv_prog_cc_stdc+set}" = set; then
5464f5a1 3938 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3939else
cfbc9945
SE
3940 ac_cv_prog_cc_stdc=no
3941ac_save_CC=$CC
3942cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
3948#include <stdarg.h>
3949#include <stdio.h>
3950#include <sys/types.h>
3951#include <sys/stat.h>
3952/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3953struct buf { int x; };
3954FILE * (*rcsopen) (struct buf *, struct stat *, int);
3955static char *e (p, i)
3956 char **p;
3957 int i;
3958{
3959 return p[i];
3960}
3961static char *f (char * (*g) (char **, int), char **p, ...)
3962{
3963 char *s;
3964 va_list v;
3965 va_start (v,p);
3966 s = g (p, va_arg (v,int));
3967 va_end (v);
3968 return s;
3969}
5464f5a1 3970
cfbc9945
SE
3971/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3972 function prototypes and stuff, but not '\xHH' hex character constants.
3973 These don't provoke an error unfortunately, instead are silently treated
3974 as 'x'. The following induces an error, until -std1 is added to get
3975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3976 array size at least. It's necessary to write '\x00'==0 to get something
3977 that's true only with -std1. */
3978int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3979
3980int test (int i, double x);
3981struct s1 {int (*f) (int a);};
3982struct s2 {int (*f) (double a);};
3983int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3984int argc;
3985char **argv;
3986int
3987main ()
3988{
3989return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3990 ;
3991 return 0;
3992}
3993_ACEOF
3994# Don't try gcc -ansi; that turns off useful extensions and
3995# breaks some systems' header files.
3996# AIX -qlanglvl=ansi
3997# Ultrix and OSF/1 -std1
3998# HP-UX 10.20 and later -Ae
3999# HP-UX older versions -Aa -D_HPUX_SOURCE
4000# SVR4 -Xc -D__EXTENSIONS__
4001for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002do
4003 CC="$ac_save_CC $ac_arg"
4004 rm -f conftest.$ac_objext
4005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
7357c5b6
AM
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
cfbc9945
SE
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 ac_cv_prog_cc_stdc=$ac_arg
4027break
ac48eca1 4028else
cfbc9945
SE
4029 echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4031
5464f5a1 4032fi
cfbc9945 4033rm -f conftest.err conftest.$ac_objext
5464f5a1 4034done
cfbc9945
SE
4035rm -f conftest.$ac_ext conftest.$ac_objext
4036CC=$ac_save_CC
5464f5a1 4037
ac48eca1 4038fi
252b5132 4039
cfbc9945
SE
4040case "x$ac_cv_prog_cc_stdc" in
4041 x|xno)
4042 echo "$as_me:$LINENO: result: none needed" >&5
4043echo "${ECHO_T}none needed" >&6 ;;
4044 *)
4045 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4046echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4047 CC="$CC $ac_cv_prog_cc_stdc" ;;
4048esac
6be7c12c 4049
cfbc9945
SE
4050# Some people use a C++ compiler to compile C. Since we use `exit',
4051# in C++ we need to declare it. In case someone uses the same compiler
4052# for both compiling C and C++ we need to have the C++ compiler decide
4053# the declaration of exit, since it's the most demanding environment.
4054cat >conftest.$ac_ext <<_ACEOF
4055#ifndef __cplusplus
4056 choke me
4057#endif
4058_ACEOF
4059rm -f conftest.$ac_objext
4060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
5464f5a1 4062 ac_status=$?
cfbc9945
SE
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
5464f5a1 4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945 4067 (exit $ac_status); } &&
7357c5b6
AM
4068 { ac_try='test -z "$ac_c_werror_flag"
4069 || test ! -s conftest.err'
cfbc9945
SE
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
5464f5a1
NN
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
d70c5fc7
NC
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4080 (exit $ac_status); }; }; then
4081 for ac_declaration in \
4082 '' \
4083 'extern "C" void std::exit (int) throw (); using std::exit;' \
4084 'extern "C" void std::exit (int); using std::exit;' \
4085 'extern "C" void exit (int) throw ();' \
4086 'extern "C" void exit (int);' \
4087 'void exit (int);'
4088do
4089 cat >conftest.$ac_ext <<_ACEOF
4090/* confdefs.h. */
4091_ACEOF
4092cat confdefs.h >>conftest.$ac_ext
4093cat >>conftest.$ac_ext <<_ACEOF
4094/* end confdefs.h. */
4095$ac_declaration
4096#include <stdlib.h>
4097int
4098main ()
4099{
4100exit (42);
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105rm -f conftest.$ac_objext
4106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107 (eval $ac_compile) 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
7357c5b6
AM
4114 { ac_try='test -z "$ac_c_werror_flag"
4115 || test ! -s conftest.err'
cfbc9945
SE
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 :
b2ef150d 4128else
cfbc9945
SE
4129 echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 4131
cfbc9945
SE
4132continue
4133fi
4134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
4136/* confdefs.h. */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h. */
cfbc9945 4141$ac_declaration
5464f5a1
NN
4142int
4143main ()
4144{
cfbc9945 4145exit (42);
5464f5a1
NN
4146 ;
4147 return 0;
4148}
4149_ACEOF
cfbc9945
SE
4150rm -f conftest.$ac_objext
4151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
7357c5b6
AM
4159 { ac_try='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
5464f5a1
NN
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
cfbc9945 4166 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
cfbc9945 4172 break
b2ef150d 4173else
5464f5a1
NN
4174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
b2ef150d 4177fi
cfbc9945
SE
4178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179done
4180rm -f conftest*
4181if test -n "$ac_declaration"; then
4182 echo '#ifdef __cplusplus' >>confdefs.h
4183 echo $ac_declaration >>confdefs.h
4184 echo '#endif' >>confdefs.h
6ec7057a 4185fi
cfbc9945 4186
92f01d61 4187else
cfbc9945
SE
4188 echo "$as_me: failed program was:" >&5
4189sed 's/^/| /' conftest.$ac_ext >&5
92f01d61 4190
cfbc9945
SE
4191fi
4192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193ac_ext=c
4194ac_cpp='$CPP $CPPFLAGS'
4195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61
JM
4198
4199
cfbc9945
SE
4200cat >>confdefs.h <<\_ACEOF
4201#define _GNU_SOURCE 1
4202_ACEOF
a1ac8190 4203
c428fa83 4204
7357c5b6
AM
4205ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS'
4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4211echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4212# On Suns, sometimes $CPP names a directory.
4213if test -n "$CPP" && test -d "$CPP"; then
4214 CPP=
4215fi
4216if test -z "$CPP"; then
4217 if test "${ac_cv_prog_CPP+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220 # Double quotes because CPP needs to be expanded
4221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4222 do
4223 ac_preproc_ok=false
4224for ac_c_preproc_warn_flag in '' yes
4225do
4226 # Use a header file that comes with gcc, so configuring glibc
4227 # with a fresh cross-compiler works.
4228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229 # <limits.h> exists even on freestanding compilers.
4230 # On the NeXT, cc -E runs the code through the compiler's parser,
4231 # not just through cpp. "Syntax error" is here to catch this case.
4232 cat >conftest.$ac_ext <<_ACEOF
4233/* confdefs.h. */
4234_ACEOF
4235cat confdefs.h >>conftest.$ac_ext
4236cat >>conftest.$ac_ext <<_ACEOF
4237/* end confdefs.h. */
4238#ifdef __STDC__
4239# include <limits.h>
4240#else
4241# include <assert.h>
4242#endif
4243 Syntax error
4244_ACEOF
4245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4247 ac_status=$?
4248 grep -v '^ *+' conftest.er1 >conftest.err
4249 rm -f conftest.er1
4250 cat conftest.err >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } >/dev/null; then
4253 if test -s conftest.err; then
4254 ac_cpp_err=$ac_c_preproc_warn_flag
4255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4256 else
4257 ac_cpp_err=
4258 fi
4259else
4260 ac_cpp_err=yes
4261fi
4262if test -z "$ac_cpp_err"; then
4263 :
4264else
4265 echo "$as_me: failed program was:" >&5
4266sed 's/^/| /' conftest.$ac_ext >&5
cfbc9945 4267
7357c5b6
AM
4268 # Broken: fails on valid input.
4269continue
4270fi
4271rm -f conftest.err conftest.$ac_ext
d7040cdb 4272
7357c5b6
AM
4273 # OK, works on sane cases. Now check whether non-existent headers
4274 # can be detected and how.
4275 cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h. */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */
4281#include <ac_nonexistent.h>
4282_ACEOF
4283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } >/dev/null; then
4291 if test -s conftest.err; then
4292 ac_cpp_err=$ac_c_preproc_warn_flag
4293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4294 else
4295 ac_cpp_err=
4296 fi
4297else
4298 ac_cpp_err=yes
4299fi
4300if test -z "$ac_cpp_err"; then
4301 # Broken: success on invalid input.
4302continue
4303else
4304 echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4306
7357c5b6
AM
4307 # Passes both tests.
4308ac_preproc_ok=:
4309break
4310fi
4311rm -f conftest.err conftest.$ac_ext
d7040cdb 4312
7357c5b6
AM
4313done
4314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315rm -f conftest.err conftest.$ac_ext
4316if $ac_preproc_ok; then
4317 break
4318fi
d7040cdb 4319
7357c5b6
AM
4320 done
4321 ac_cv_prog_CPP=$CPP
d7040cdb 4322
7357c5b6
AM
4323fi
4324 CPP=$ac_cv_prog_CPP
4325else
4326 ac_cv_prog_CPP=$CPP
4327fi
4328echo "$as_me:$LINENO: result: $CPP" >&5
4329echo "${ECHO_T}$CPP" >&6
4330ac_preproc_ok=false
4331for ac_c_preproc_warn_flag in '' yes
4332do
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h. */
4345#ifdef __STDC__
4346# include <limits.h>
4347#else
4348# include <assert.h>
4349#endif
4350 Syntax error
4351_ACEOF
4352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null; then
4360 if test -s conftest.err; then
4361 ac_cpp_err=$ac_c_preproc_warn_flag
4362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4363 else
4364 ac_cpp_err=
4365 fi
4366else
4367 ac_cpp_err=yes
4368fi
4369if test -z "$ac_cpp_err"; then
4370 :
4371else
4372 echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4374
7357c5b6
AM
4375 # Broken: fails on valid input.
4376continue
4377fi
4378rm -f conftest.err conftest.$ac_ext
d7040cdb 4379
7357c5b6
AM
4380 # OK, works on sane cases. Now check whether non-existent headers
4381 # can be detected and how.
4382 cat >conftest.$ac_ext <<_ACEOF
4383/* confdefs.h. */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h. */
4388#include <ac_nonexistent.h>
4389_ACEOF
4390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
4400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4401 else
4402 ac_cpp_err=
4403 fi
4404else
4405 ac_cpp_err=yes
4406fi
4407if test -z "$ac_cpp_err"; then
4408 # Broken: success on invalid input.
4409continue
4410else
4411 echo "$as_me: failed program was:" >&5
4412sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4413
7357c5b6
AM
4414 # Passes both tests.
4415ac_preproc_ok=:
4416break
4417fi
4418rm -f conftest.err conftest.$ac_ext
d7040cdb 4419
7357c5b6
AM
4420done
4421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422rm -f conftest.err conftest.$ac_ext
4423if $ac_preproc_ok; then
4424 :
4425else
4426 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4427echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4429See \`config.log' for more details." >&5
4430echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4431See \`config.log' for more details." >&2;}
4432 { (exit 1); exit 1; }; }; }
4433fi
d7040cdb 4434
7357c5b6
AM
4435ac_ext=c
4436ac_cpp='$CPP $CPPFLAGS'
4437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4440
d7040cdb 4441
7357c5b6
AM
4442echo "$as_me:$LINENO: checking for egrep" >&5
4443echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4444if test "${ac_cv_prog_egrep+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4448 then ac_cv_prog_egrep='grep -E'
4449 else ac_cv_prog_egrep='egrep'
4450 fi
4451fi
4452echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4453echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4454 EGREP=$ac_cv_prog_egrep
d7040cdb
SE
4455
4456
7357c5b6
AM
4457echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4458echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4459if test "${ac_cv_header_stdc+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462 cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
4468#include <stdlib.h>
4469#include <stdarg.h>
4470#include <string.h>
4471#include <float.h>
d7040cdb 4472
7357c5b6
AM
4473int
4474main ()
4475{
d7040cdb 4476
7357c5b6
AM
4477 ;
4478 return 0;
4479}
4480_ACEOF
4481rm -f conftest.$ac_objext
4482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_header_stdc=yes
c428fa83 4504else
7357c5b6
AM
4505 echo "$as_me: failed program was:" >&5
4506sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4507
7357c5b6
AM
4508ac_cv_header_stdc=no
4509fi
4510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4511
7357c5b6
AM
4512if test $ac_cv_header_stdc = yes; then
4513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4514 cat >conftest.$ac_ext <<_ACEOF
4515/* confdefs.h. */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h. */
4520#include <string.h>
d7040cdb 4521
7357c5b6
AM
4522_ACEOF
4523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524 $EGREP "memchr" >/dev/null 2>&1; then
4525 :
4526else
4527 ac_cv_header_stdc=no
4528fi
4529rm -f conftest*
d7040cdb 4530
7357c5b6 4531fi
d7040cdb 4532
7357c5b6
AM
4533if test $ac_cv_header_stdc = yes; then
4534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4535 cat >conftest.$ac_ext <<_ACEOF
4536/* confdefs.h. */
4537_ACEOF
4538cat confdefs.h >>conftest.$ac_ext
4539cat >>conftest.$ac_ext <<_ACEOF
4540/* end confdefs.h. */
4541#include <stdlib.h>
d7040cdb 4542
7357c5b6
AM
4543_ACEOF
4544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545 $EGREP "free" >/dev/null 2>&1; then
4546 :
4547else
4548 ac_cv_header_stdc=no
4549fi
4550rm -f conftest*
d7040cdb 4551
7357c5b6 4552fi
d7040cdb 4553
7357c5b6
AM
4554if test $ac_cv_header_stdc = yes; then
4555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4556 if test "$cross_compiling" = yes; then
4557 :
4558else
4559 cat >conftest.$ac_ext <<_ACEOF
4560/* confdefs.h. */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
4564/* end confdefs.h. */
4565#include <ctype.h>
4566#if ((' ' & 0x0FF) == 0x020)
4567# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4569#else
4570# define ISLOWER(c) \
4571 (('a' <= (c) && (c) <= 'i') \
4572 || ('j' <= (c) && (c) <= 'r') \
4573 || ('s' <= (c) && (c) <= 'z'))
4574# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4575#endif
d7040cdb 4576
7357c5b6
AM
4577#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4578int
4579main ()
4580{
4581 int i;
4582 for (i = 0; i < 256; i++)
4583 if (XOR (islower (i), ISLOWER (i))
4584 || toupper (i) != TOUPPER (i))
4585 exit(2);
4586 exit (0);
4587}
4588_ACEOF
4589rm -f conftest$ac_exeext
4590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591 (eval $ac_link) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 :
d7040cdb 4601else
7357c5b6
AM
4602 echo "$as_me: program exited with status $ac_status" >&5
4603echo "$as_me: failed program was:" >&5
4604sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4605
7357c5b6
AM
4606( exit $ac_status )
4607ac_cv_header_stdc=no
4608fi
4609rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4610fi
4611fi
4612fi
4613echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4614echo "${ECHO_T}$ac_cv_header_stdc" >&6
4615if test $ac_cv_header_stdc = yes; then
d7040cdb 4616
7357c5b6
AM
4617cat >>confdefs.h <<\_ACEOF
4618#define STDC_HEADERS 1
4619_ACEOF
d7040cdb 4620
7357c5b6 4621fi
d7040cdb 4622
7357c5b6 4623# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4624
4625
4626
4627
c428fa83 4628
d7040cdb
SE
4629
4630
4631
4632
7357c5b6
AM
4633for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4634 inttypes.h stdint.h unistd.h
4635do
4636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637echo "$as_me:$LINENO: checking for $ac_header" >&5
4638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641else
4642 cat >conftest.$ac_ext <<_ACEOF
4643/* confdefs.h. */
4644_ACEOF
4645cat confdefs.h >>conftest.$ac_ext
4646cat >>conftest.$ac_ext <<_ACEOF
4647/* end confdefs.h. */
4648$ac_includes_default
d7040cdb 4649
7357c5b6
AM
4650#include <$ac_header>
4651_ACEOF
4652rm -f conftest.$ac_objext
4653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 eval "$as_ac_Header=yes"
4675else
4676 echo "$as_me: failed program was:" >&5
4677sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4678
7357c5b6
AM
4679eval "$as_ac_Header=no"
4680fi
4681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682fi
4683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4685if test `eval echo '${'$as_ac_Header'}'` = yes; then
4686 cat >>confdefs.h <<_ACEOF
4687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688_ACEOF
d7040cdb 4689
7357c5b6
AM
4690fi
4691
4692done
4693
4694
4695
4696 if test "${ac_cv_header_minix_config_h+set}" = set; then
4697 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4698echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4699if test "${ac_cv_header_minix_config_h+set}" = set; then
d7040cdb 4700 echo $ECHO_N "(cached) $ECHO_C" >&6
7357c5b6
AM
4701fi
4702echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4703echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
d7040cdb 4704else
7357c5b6
AM
4705 # Is the header compilable?
4706echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4707echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4708cat >conftest.$ac_ext <<_ACEOF
4709/* confdefs.h. */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h. */
4714$ac_includes_default
4715#include <minix/config.h>
4716_ACEOF
4717rm -f conftest.$ac_objext
4718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>conftest.er1
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_header_compiler=yes
4740else
4741 echo "$as_me: failed program was:" >&5
4742sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4743
7357c5b6 4744ac_header_compiler=no
d7040cdb 4745fi
7357c5b6
AM
4746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4748echo "${ECHO_T}$ac_header_compiler" >&6
d7040cdb 4749
7357c5b6
AM
4750# Is the header present?
4751echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4752echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4753cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h. */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h. */
4759#include <minix/config.h>
4760_ACEOF
4761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null; then
4769 if test -s conftest.err; then
4770 ac_cpp_err=$ac_c_preproc_warn_flag
4771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4772 else
4773 ac_cpp_err=
4774 fi
4775else
4776 ac_cpp_err=yes
4777fi
4778if test -z "$ac_cpp_err"; then
4779 ac_header_preproc=yes
4780else
4781 echo "$as_me: failed program was:" >&5
4782sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4783
7357c5b6
AM
4784 ac_header_preproc=no
4785fi
4786rm -f conftest.err conftest.$ac_ext
4787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4788echo "${ECHO_T}$ac_header_preproc" >&6
d7040cdb 4789
7357c5b6
AM
4790# So? What about this header?
4791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4792 yes:no: )
4793 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4794echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4796echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4797 ac_header_preproc=yes
4798 ;;
4799 no:yes:* )
4800 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4801echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4802 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4803echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4804 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4805echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4806 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4807echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4808 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4809echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4810 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4811echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4812 (
4813 cat <<\_ASBOX
4814## ------------------------------------------ ##
4815## Report this to the AC_PACKAGE_NAME lists. ##
4816## ------------------------------------------ ##
4817_ASBOX
4818 ) |
4819 sed "s/^/$as_me: WARNING: /" >&2
4820 ;;
4821esac
4822echo "$as_me:$LINENO: checking for minix/config.h" >&5
4823echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4824if test "${ac_cv_header_minix_config_h+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827 ac_cv_header_minix_config_h=$ac_header_preproc
4828fi
4829echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4830echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4831
4832fi
4833if test $ac_cv_header_minix_config_h = yes; then
4834 MINIX=yes
4835else
4836 MINIX=
4837fi
d7040cdb
SE
4838
4839
7357c5b6 4840 if test "$MINIX" = yes; then
d7040cdb 4841
7357c5b6
AM
4842cat >>confdefs.h <<\_ACEOF
4843#define _POSIX_SOURCE 1
4844_ACEOF
d7040cdb
SE
4845
4846
7357c5b6
AM
4847cat >>confdefs.h <<\_ACEOF
4848#define _POSIX_1_SOURCE 2
4849_ACEOF
d7040cdb
SE
4850
4851
7357c5b6
AM
4852cat >>confdefs.h <<\_ACEOF
4853#define _MINIX 1
4854_ACEOF
d7040cdb 4855
7357c5b6 4856 fi
d7040cdb
SE
4857
4858
4859
7357c5b6
AM
4860 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4861echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4862if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
d7040cdb
SE
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
7357c5b6
AM
4865 cat >conftest.$ac_ext <<_ACEOF
4866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
d7040cdb 4871
7357c5b6
AM
4872# define __EXTENSIONS__ 1
4873 $ac_includes_default
4874int
4875main ()
4876{
d7040cdb 4877
7357c5b6
AM
4878 ;
4879 return 0;
4880}
4881_ACEOF
4882rm -f conftest.$ac_objext
4883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4905else
7357c5b6
AM
4906 echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909ac_cv_safe_to_define___extensions__=no
d7040cdb 4910fi
7357c5b6
AM
4911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912fi
4913echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4914echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4915 test $ac_cv_safe_to_define___extensions__ = yes &&
4916 cat >>confdefs.h <<\_ACEOF
4917#define __EXTENSIONS__ 1
4918_ACEOF
d7040cdb 4919
7357c5b6
AM
4920 cat >>confdefs.h <<\_ACEOF
4921#define _ALL_SOURCE 1
4922_ACEOF
d7040cdb 4923
7357c5b6
AM
4924 cat >>confdefs.h <<\_ACEOF
4925#define _GNU_SOURCE 1
4926_ACEOF
d7040cdb 4927
7357c5b6
AM
4928 cat >>confdefs.h <<\_ACEOF
4929#define _POSIX_PTHREAD_SEMANTICS 1
4930_ACEOF
d7040cdb 4931
7357c5b6
AM
4932 cat >>confdefs.h <<\_ACEOF
4933#define _TANDEM_SOURCE 1
4934_ACEOF
d7040cdb
SE
4935
4936
08c13eba
JB
4937
4938case "${target}" in
85f77068
JB
4939 sparc-*-solaris*|i[3-7]86-*-solaris*)
4940 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4941 # are mutually exclusive; and without procfs support, the elf module
08c13eba
JB
4942 # cannot provide certain routines such as elfcore_write_prpsinfo
4943 # or elfcore_write_prstatus. So unless the user explicitly requested
4944 # large-file support through the --enable-largefile switch, disable
4945 # large-file support in favor of procfs support.
4946 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
4947 enable_largefile="no"
4948 fi
4949 ;;
4950esac
4951
d053aef8
JK
4952# Check whether --enable-largefile or --disable-largefile was given.
4953if test "${enable_largefile+set}" = set; then
4954 enableval="$enable_largefile"
4955
4956fi;
4957if test "$enable_largefile" != no; then
4958
4959 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4960echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4961if test "${ac_cv_sys_largefile_CC+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963else
4964 ac_cv_sys_largefile_CC=no
4965 if test "$GCC" != yes; then
4966 ac_save_CC=$CC
4967 while :; do
4968 # IRIX 6.2 and later do not support large files by default,
4969 # so use the C compiler's -n32 option if that helps.
4970 cat >conftest.$ac_ext <<_ACEOF
4971/* confdefs.h. */
4972_ACEOF
4973cat confdefs.h >>conftest.$ac_ext
4974cat >>conftest.$ac_ext <<_ACEOF
4975/* end confdefs.h. */
4976#include <sys/types.h>
4977 /* Check that off_t can represent 2**63 - 1 correctly.
4978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4979 since some C++ compilers masquerading as C compilers
4980 incorrectly reject 9223372036854775807. */
4981#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4983 && LARGE_OFF_T % 2147483647 == 1)
4984 ? 1 : -1];
4985int
4986main ()
4987{
4988
4989 ;
4990 return 0;
4991}
4992_ACEOF
4993 rm -f conftest.$ac_objext
4994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -z "$ac_c_werror_flag"
5003 || test ! -s conftest.err'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 (eval $ac_try) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; } &&
5009 { ac_try='test -s conftest.$ac_objext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 (eval $ac_try) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 break
5016else
5017 echo "$as_me: failed program was:" >&5
5018sed 's/^/| /' conftest.$ac_ext >&5
5019
5020fi
5021rm -f conftest.err conftest.$ac_objext
5022 CC="$CC -n32"
5023 rm -f conftest.$ac_objext
5024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -z "$ac_c_werror_flag"
5033 || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try='test -s conftest.$ac_objext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 (eval $ac_try) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_sys_largefile_CC=' -n32'; break
5046else
5047 echo "$as_me: failed program was:" >&5
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
5050fi
5051rm -f conftest.err conftest.$ac_objext
5052 break
5053 done
5054 CC=$ac_save_CC
5055 rm -f conftest.$ac_ext
5056 fi
5057fi
5058echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5059echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5060 if test "$ac_cv_sys_largefile_CC" != no; then
5061 CC=$CC$ac_cv_sys_largefile_CC
5062 fi
5063
5064 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5065echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5066if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 while :; do
5070 ac_cv_sys_file_offset_bits=no
5071 cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h. */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h. */
5077#include <sys/types.h>
5078 /* Check that off_t can represent 2**63 - 1 correctly.
5079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5080 since some C++ compilers masquerading as C compilers
5081 incorrectly reject 9223372036854775807. */
5082#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5084 && LARGE_OFF_T % 2147483647 == 1)
5085 ? 1 : -1];
5086int
5087main ()
5088{
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
5094rm -f conftest.$ac_objext
5095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -z "$ac_c_werror_flag"
5104 || test ! -s conftest.err'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 (eval $ac_try) 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 break
5117else
5118 echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121fi
5122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123 cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h. */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h. */
5129#define _FILE_OFFSET_BITS 64
5130#include <sys/types.h>
5131 /* Check that off_t can represent 2**63 - 1 correctly.
5132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5133 since some C++ compilers masquerading as C compilers
5134 incorrectly reject 9223372036854775807. */
5135#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5137 && LARGE_OFF_T % 2147483647 == 1)
5138 ? 1 : -1];
5139int
5140main ()
5141{
5142
5143 ;
5144 return 0;
5145}
5146_ACEOF
5147rm -f conftest.$ac_objext
5148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149 (eval $ac_compile) 2>conftest.er1
5150 ac_status=$?
5151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } &&
5156 { ac_try='test -z "$ac_c_werror_flag"
5157 || test ! -s conftest.err'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; } &&
5163 { ac_try='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 ac_cv_sys_file_offset_bits=64; break
5170else
5171 echo "$as_me: failed program was:" >&5
5172sed 's/^/| /' conftest.$ac_ext >&5
5173
5174fi
5175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5176 break
5177done
5178fi
5179echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5180echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5181if test "$ac_cv_sys_file_offset_bits" != no; then
5182
5183cat >>confdefs.h <<_ACEOF
5184#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5185_ACEOF
5186
5187fi
5188rm -f conftest*
5189 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5190echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5191if test "${ac_cv_sys_large_files+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194 while :; do
5195 ac_cv_sys_large_files=no
5196 cat >conftest.$ac_ext <<_ACEOF
5197/* confdefs.h. */
5198_ACEOF
5199cat confdefs.h >>conftest.$ac_ext
5200cat >>conftest.$ac_ext <<_ACEOF
5201/* end confdefs.h. */
5202#include <sys/types.h>
5203 /* Check that off_t can represent 2**63 - 1 correctly.
5204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5205 since some C++ compilers masquerading as C compilers
5206 incorrectly reject 9223372036854775807. */
5207#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5209 && LARGE_OFF_T % 2147483647 == 1)
5210 ? 1 : -1];
5211int
5212main ()
5213{
5214
5215 ;
5216 return 0;
5217}
5218_ACEOF
5219rm -f conftest.$ac_objext
5220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -z "$ac_c_werror_flag"
5229 || test ! -s conftest.err'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 (eval $ac_try) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 break
5242else
5243 echo "$as_me: failed program was:" >&5
5244sed 's/^/| /' conftest.$ac_ext >&5
5245
5246fi
5247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5248 cat >conftest.$ac_ext <<_ACEOF
5249/* confdefs.h. */
5250_ACEOF
5251cat confdefs.h >>conftest.$ac_ext
5252cat >>conftest.$ac_ext <<_ACEOF
5253/* end confdefs.h. */
5254#define _LARGE_FILES 1
5255#include <sys/types.h>
5256 /* Check that off_t can represent 2**63 - 1 correctly.
5257 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5258 since some C++ compilers masquerading as C compilers
5259 incorrectly reject 9223372036854775807. */
5260#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5261 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5262 && LARGE_OFF_T % 2147483647 == 1)
5263 ? 1 : -1];
5264int
5265main ()
5266{
5267
5268 ;
5269 return 0;
5270}
5271_ACEOF
5272rm -f conftest.$ac_objext
5273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5274 (eval $ac_compile) 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -z "$ac_c_werror_flag"
5282 || test ! -s conftest.err'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try='test -s conftest.$ac_objext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_cv_sys_large_files=1; break
5295else
5296 echo "$as_me: failed program was:" >&5
5297sed 's/^/| /' conftest.$ac_ext >&5
5298
5299fi
5300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5301 break
5302done
5303fi
5304echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5305echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5306if test "$ac_cv_sys_large_files" != no; then
5307
5308cat >>confdefs.h <<_ACEOF
5309#define _LARGE_FILES $ac_cv_sys_large_files
5310_ACEOF
5311
5312fi
5313rm -f conftest*
5314fi
5315
d7040cdb 5316
718a6fd8
SE
5317case `pwd` in
5318 *\ * | *\ *)
5319 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5320echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5321esac
d7040cdb
SE
5322
5323
7357c5b6 5324
718a6fd8
SE
5325macro_version='2.2.6'
5326macro_revision='1.3012'
7357c5b6
AM
5327
5328
5329
5330
5331
5332
7357c5b6
AM
5333
5334
5335
5336
5337
5338
5339
718a6fd8 5340ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6
AM
5341
5342echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5343echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5344if test "${lt_cv_path_SED+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5346else
5347 # Loop through the user's path and test for sed and gsed.
5348# Then use that list of sed's as ones to test for truncation.
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for lt_ac_prog in sed gsed; do
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5357 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5358 fi
5359 done
5360 done
5361done
5362IFS=$as_save_IFS
5363lt_ac_max=0
5364lt_ac_count=0
5365# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5366# along with /bin/sed that truncates output.
5367for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5368 test ! -f $lt_ac_sed && continue
5369 cat /dev/null > conftest.in
5370 lt_ac_count=0
5371 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5372 # Check for GNU sed and select it if it is found.
5373 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5374 lt_cv_path_SED=$lt_ac_sed
5375 break
5376 fi
5377 while true; do
5378 cat conftest.in conftest.in >conftest.tmp
5379 mv conftest.tmp conftest.in
5380 cp conftest.in conftest.nl
5381 echo >>conftest.nl
5382 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5383 cmp -s conftest.out conftest.nl || break
5384 # 10000 chars as input seems more than enough
5385 test $lt_ac_count -gt 10 && break
5386 lt_ac_count=`expr $lt_ac_count + 1`
5387 if test $lt_ac_count -gt $lt_ac_max; then
5388 lt_ac_max=$lt_ac_count
5389 lt_cv_path_SED=$lt_ac_sed
5390 fi
5391 done
5392done
5393
5394fi
5395
5396SED=$lt_cv_path_SED
5397
5398echo "$as_me:$LINENO: result: $SED" >&5
5399echo "${ECHO_T}$SED" >&6
5400
5401test -z "$SED" && SED=sed
5402Xsed="$SED -e 1s/^X//"
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414echo "$as_me:$LINENO: checking for fgrep" >&5
5415echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5416if test "${ac_cv_prog_fgrep+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418else
5419 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5420 then ac_cv_prog_fgrep='grep -F'
5421 else ac_cv_prog_fgrep='fgrep'
5422 fi
5423fi
5424echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5425echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5426 FGREP=$ac_cv_prog_fgrep
5427
5428
5429test -z "$GREP" && GREP=grep
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449# Check whether --with-gnu-ld or --without-gnu-ld was given.
5450if test "${with_gnu_ld+set}" = set; then
5451 withval="$with_gnu_ld"
5452 test "$withval" = no || with_gnu_ld=yes
5453else
5454 with_gnu_ld=no
5455fi;
5456ac_prog=ld
5457if test "$GCC" = yes; then
5458 # Check if gcc -print-prog-name=ld gives a path.
5459 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5460echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5461 case $host in
5462 *-*-mingw*)
5463 # gcc leaves a trailing carriage return which upsets mingw
5464 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5465 *)
5466 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5467 esac
5468 case $ac_prog in
5469 # Accept absolute paths.
5470 [\\/]* | ?:[\\/]*)
5471 re_direlt='/[^/][^/]*/\.\./'
5472 # Canonicalize the pathname of ld
5473 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5474 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
d7040cdb 5475 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
5476 done
5477 test -z "$LD" && LD="$ac_prog"
5478 ;;
5bd8253d 5479 "")
cfbc9945
SE
5480 # If it fails, then pretend we aren't using GCC.
5481 ac_prog=ld
5bd8253d
L
5482 ;;
5483 *)
cfbc9945
SE
5484 # If it is relative, then search for the first ld in PATH.
5485 with_gnu_ld=unknown
5bd8253d 5486 ;;
cfbc9945
SE
5487 esac
5488elif test "$with_gnu_ld" = yes; then
5489 echo "$as_me:$LINENO: checking for GNU ld" >&5
5490echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5491else
5492 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5493echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5494fi
5495if test "${lt_cv_path_LD+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497else
5498 if test -z "$LD"; then
d7040cdb 5499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 5500 for ac_dir in $PATH; do
d7040cdb 5501 IFS="$lt_save_ifs"
cfbc9945
SE
5502 test -z "$ac_dir" && ac_dir=.
5503 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5504 lt_cv_path_LD="$ac_dir/$ac_prog"
5505 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5506 # but apparently some variants of GNU ld only accept -v.
cfbc9945 5507 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5508 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5509 *GNU* | *'with BFD'*)
cfbc9945 5510 test "$with_gnu_ld" != no && break
d7040cdb
SE
5511 ;;
5512 *)
cfbc9945 5513 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5514 ;;
5515 esac
cfbc9945
SE
5516 fi
5517 done
d7040cdb 5518 IFS="$lt_save_ifs"
cfbc9945
SE
5519else
5520 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 5521fi
1ad12f97
NC
5522fi
5523
cfbc9945
SE
5524LD="$lt_cv_path_LD"
5525if test -n "$LD"; then
5526 echo "$as_me:$LINENO: result: $LD" >&5
5527echo "${ECHO_T}$LD" >&6
5528else
5529 echo "$as_me:$LINENO: result: no" >&5
5530echo "${ECHO_T}no" >&6
5531fi
5532test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5533echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5534 { (exit 1); exit 1; }; }
5535echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5536echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5537if test "${lt_cv_prog_gnu_ld+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
d7040cdb
SE
5540 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5541case `$LD -v 2>&1 </dev/null` in
5542*GNU* | *'with BFD'*)
cfbc9945 5543 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5544 ;;
5545*)
cfbc9945 5546 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5547 ;;
5548esac
49c96104 5549fi
cfbc9945
SE
5550echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5551echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5552with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 5553
9e9b66a9 5554
cfbc9945 5555
d7040cdb
SE
5556
5557
5558
5559
5560
5561
d7040cdb
SE
5562echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5563echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
cfbc9945
SE
5564if test "${lt_cv_path_NM+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566else
5567 if test -n "$NM"; then
5568 # Let the user override the test.
5569 lt_cv_path_NM="$NM"
5570else
d7040cdb
SE
5571 lt_nm_to_check="${ac_tool_prefix}nm"
5572 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5573 lt_nm_to_check="$lt_nm_to_check nm"
5574 fi
5575 for lt_tmp_nm in $lt_nm_to_check; do
5576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5577 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5578 IFS="$lt_save_ifs"
5579 test -z "$ac_dir" && ac_dir=.
5580 tmp_nm="$ac_dir/$lt_tmp_nm"
5581 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5582 # Check to see if the nm accepts a BSD-compat flag.
5583 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5584 # nm: unknown option "B" ignored
5585 # Tru64's nm complains that /dev/null is an invalid object file
5586 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5587 */dev/null* | *'Invalid file or object type'*)
5588 lt_cv_path_NM="$tmp_nm -B"
5589 break
5590 ;;
5591 *)
5592 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5593 */dev/null*)
5594 lt_cv_path_NM="$tmp_nm -p"
5595 break
5596 ;;
5597 *)
5598 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5599 continue # so that we can try to find one that supports BSD flags
5600 ;;
5601 esac
5602 ;;
5603 esac
cfbc9945 5604 fi
d7040cdb
SE
5605 done
5606 IFS="$lt_save_ifs"
cfbc9945 5607 done
d7040cdb 5608 : ${lt_cv_path_NM=no}
cfbc9945 5609fi
a2d91340 5610fi
d7040cdb
SE
5611echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5612echo "${ECHO_T}$lt_cv_path_NM" >&6
5613if test "$lt_cv_path_NM" != "no"; then
5614 NM="$lt_cv_path_NM"
cfbc9945 5615else
d7040cdb
SE
5616 # Didn't find any BSD compatible name lister, look for dumpbin.
5617 if test -n "$ac_tool_prefix"; then
5618 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5619 do
5620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5621set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5622echo "$as_me:$LINENO: checking for $ac_word" >&5
5623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5624if test "${ac_cv_prog_DUMPBIN+set}" = set; then
cfbc9945 5625 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5626else
d7040cdb
SE
5627 if test -n "$DUMPBIN"; then
5628 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641done
5642done
5464f5a1 5643
d7040cdb
SE
5644fi
5645fi
5646DUMPBIN=$ac_cv_prog_DUMPBIN
5647if test -n "$DUMPBIN"; then
5648 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5649echo "${ECHO_T}$DUMPBIN" >&6
5650else
5651 echo "$as_me:$LINENO: result: no" >&5
5652echo "${ECHO_T}no" >&6
5653fi
d5fbea21 5654
d7040cdb
SE
5655 test -n "$DUMPBIN" && break
5656 done
5657fi
5658if test -z "$DUMPBIN"; then
5659 ac_ct_DUMPBIN=$DUMPBIN
5660 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5661do
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663set dummy $ac_prog; ac_word=$2
5664echo "$as_me:$LINENO: checking for $ac_word" >&5
5665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5666if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669 if test -n "$ac_ct_DUMPBIN"; then
5670 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
cfbc9945 5682 fi
d7040cdb
SE
5683done
5684done
d5fbea21 5685
d7040cdb
SE
5686fi
5687fi
5688ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5689if test -n "$ac_ct_DUMPBIN"; then
5690 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5691echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5692else
5693 echo "$as_me:$LINENO: result: no" >&5
5694echo "${ECHO_T}no" >&6
5695fi
d5fbea21 5696
d7040cdb
SE
5697 test -n "$ac_ct_DUMPBIN" && break
5698done
5699test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
24443139 5700
d7040cdb
SE
5701 DUMPBIN=$ac_ct_DUMPBIN
5702fi
24443139 5703
24443139 5704
d7040cdb
SE
5705 if test "$DUMPBIN" != ":"; then
5706 NM="$DUMPBIN"
cfbc9945 5707 fi
d7040cdb
SE
5708fi
5709test -z "$NM" && NM=nm
a703a6ea 5710
f5385ebf 5711
cfbc9945 5712
24443139
AS
5713
5714
5715
d7040cdb
SE
5716echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5717echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5718if test "${lt_cv_nm_interface+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721 lt_cv_nm_interface="BSD nm"
5722 echo "int some_variable = 0;" > conftest.$ac_ext
08c13eba 5723 (eval echo "\"\$as_me:5723: $ac_compile\"" >&5)
d7040cdb
SE
5724 (eval "$ac_compile" 2>conftest.err)
5725 cat conftest.err >&5
08c13eba 5726 (eval echo "\"\$as_me:5726: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5727 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5728 cat conftest.err >&5
08c13eba 5729 (eval echo "\"\$as_me:5729: output\"" >&5)
d7040cdb
SE
5730 cat conftest.out >&5
5731 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5732 lt_cv_nm_interface="MS dumpbin"
5733 fi
5734 rm -f conftest*
cfbc9945 5735fi
d7040cdb
SE
5736echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5737echo "${ECHO_T}$lt_cv_nm_interface" >&6
a703a6ea 5738
d7040cdb
SE
5739echo "$as_me:$LINENO: checking whether ln -s works" >&5
5740echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5741LN_S=$as_ln_s
5742if test "$LN_S" = "ln -s"; then
5743 echo "$as_me:$LINENO: result: yes" >&5
5744echo "${ECHO_T}yes" >&6
5745else
5746 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5747echo "${ECHO_T}no, using $LN_S" >&6
5748fi
252b5132 5749
cfbc9945
SE
5750# find the maximum length of command line arguments
5751echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5752echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5753if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755else
5756 i=0
5757 teststring="ABCD"
5464f5a1 5758
cfbc9945
SE
5759 case $build_os in
5760 msdosdjgpp*)
5761 # On DJGPP, this test can blow up pretty badly due to problems in libc
5762 # (any single argument exceeding 2000 bytes causes a buffer overrun
5763 # during glob expansion). Even if it were fixed, the result of this
5764 # check would be larger than it should be.
5765 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5766 ;;
5464f5a1 5767
d7040cdb
SE
5768 gnu*)
5769 # Under GNU Hurd, this test is not required because there is
5770 # no limit to the length of command line arguments.
5771 # Libtool will interpret -1 as no limit whatsoever
5772 lt_cv_sys_max_cmd_len=-1;
5773 ;;
5774
718a6fd8 5775 cygwin* | mingw* | cegcc*)
cfbc9945
SE
5776 # On Win9x/ME, this test blows up -- it succeeds, but takes
5777 # about 5 minutes as the teststring grows exponentially.
5778 # Worse, since 9x/ME are not pre-emptively multitasking,
5779 # you end up with a "frozen" computer, even though with patience
5780 # the test eventually succeeds (with a max line length of 256k).
5781 # Instead, let's just punt: use the minimum linelength reported by
5782 # all of the supported platforms: 8192 (on NT/2K/XP).
5783 lt_cv_sys_max_cmd_len=8192;
5784 ;;
5464f5a1 5785
cfbc9945
SE
5786 amigaos*)
5787 # On AmigaOS with pdksh, this test takes hours, literally.
5788 # So we just punt and use a minimum line length of 8192.
5789 lt_cv_sys_max_cmd_len=8192;
5790 ;;
5464f5a1 5791
cfbc9945
SE
5792 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5793 # This has been around since 386BSD, at least. Likely further.
5794 if test -x /sbin/sysctl; then
5795 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5796 elif test -x /usr/sbin/sysctl; then
5797 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5798 else
d7040cdb 5799 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
5800 fi
5801 # And add a safety zone
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5804 ;;
d7040cdb
SE
5805
5806 interix*)
5807 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5808 lt_cv_sys_max_cmd_len=196608
5809 ;;
5810
5811 osf*)
5812 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5813 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5814 # nice to cause kernel panics so lets avoid the loop below.
5815 # First set a reasonable default.
5816 lt_cv_sys_max_cmd_len=16384
5817 #
5818 if test -x /sbin/sysconfig; then
5819 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5820 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5821 esac
5822 fi
5823 ;;
5824 sco3.2v5*)
5825 lt_cv_sys_max_cmd_len=102400
5826 ;;
5827 sysv5* | sco5v6* | sysv4.2uw2*)
5828 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5829 if test -n "$kargmax"; then
5830 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5831 else
5832 lt_cv_sys_max_cmd_len=32768
5833 fi
5834 ;;
5835 *)
718a6fd8
SE
5836 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5837 if test -n "$lt_cv_sys_max_cmd_len"; then
79887925
L
5838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5840 else
5841 # Make teststring a little bigger before we do anything with it.
5842 # a 1K string should be a reasonable start.
5843 for i in 1 2 3 4 5 6 7 8 ; do
5844 teststring=$teststring$teststring
5845 done
5846 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5847 # If test is not a shell built-in, we'll probably end up computing a
5848 # maximum length that is only half of the actual maximum length, but
5849 # we can't tell.
5850 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5851 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5852 test $i != 17 # 1/2 MB should be enough
5853 do
5854 i=`expr $i + 1`
5855 teststring=$teststring$teststring
5856 done
5857 # Only check the string length outside the loop.
5858 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5859 teststring=
5860 # Add a significant safety factor because C++ compilers can tack on
5861 # massive amounts of additional arguments before passing them to the
5862 # linker. It appears as though 1/2 is a usable value.
5863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5864 fi
d7040cdb 5865 ;;
cfbc9945 5866 esac
5464f5a1 5867
252b5132 5868fi
cfbc9945 5869
d7040cdb 5870if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
5871 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5872echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 5873else
cfbc9945
SE
5874 echo "$as_me:$LINENO: result: none" >&5
5875echo "${ECHO_T}none" >&6
5464f5a1 5876fi
d7040cdb 5877max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5878
cfbc9945 5879
252b5132 5880
cfbc9945 5881
cfbc9945 5882
d7040cdb 5883
d7040cdb
SE
5884: ${CP="cp -f"}
5885: ${MV="mv -f"}
5886: ${RM="rm -f"}
5887
5888echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5889echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5890# Try some XSI features
5891xsi_shell=no
5892( _lt_dummy="a/b/c"
5893 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
5894 = c,a/b,, \
5895 && eval 'test $(( 1 + 1 )) -eq 2 \
5896 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb
SE
5897 && xsi_shell=yes
5898echo "$as_me:$LINENO: result: $xsi_shell" >&5
5899echo "${ECHO_T}$xsi_shell" >&6
5900
5901
5902echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5903echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5904lt_shell_append=no
5905( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5906 >/dev/null 2>&1 \
5907 && lt_shell_append=yes
5908echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5909echo "${ECHO_T}$lt_shell_append" >&6
5910
5911
5912if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5913 lt_unset=unset
5464f5a1 5914else
d7040cdb 5915 lt_unset=false
5464f5a1 5916fi
252b5132 5917
d7040cdb
SE
5918
5919
5920
5921
5922# test EBCDIC or ASCII
5923case `echo X|tr X '\101'` in
5924 A) # ASCII based system
5925 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5926 lt_SP2NL='tr \040 \012'
5927 lt_NL2SP='tr \015\012 \040\040'
5928 ;;
5929 *) # EBCDIC based system
5930 lt_SP2NL='tr \100 \n'
5931 lt_NL2SP='tr \r\n \100\100'
5932 ;;
5933esac
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5944echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5945if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
d7040cdb
SE
5948 lt_cv_ld_reload_flag='-r'
5949fi
5950echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5951echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5952reload_flag=$lt_cv_ld_reload_flag
5953case $reload_flag in
5954"" | " "*) ;;
5955*) reload_flag=" $reload_flag" ;;
5956esac
5957reload_cmds='$LD$reload_flag -o $output$reload_objs'
5958case $host_os in
5959 darwin*)
5960 if test "$GCC" = yes; then
5961 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5962 else
5963 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5964 fi
5965 ;;
5966esac
5967
5968
5969
5970
5971
5972
5973
5974
5975
718a6fd8
SE
5976if test -n "$ac_tool_prefix"; then
5977 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5978set dummy ${ac_tool_prefix}objdump; ac_word=$2
5979echo "$as_me:$LINENO: checking for $ac_word" >&5
5980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5981if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984 if test -n "$OBJDUMP"; then
5985 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5986else
5987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988for as_dir in $PATH
5989do
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5997 fi
5998done
5999done
6000
6001fi
6002fi
6003OBJDUMP=$ac_cv_prog_OBJDUMP
6004if test -n "$OBJDUMP"; then
6005 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6006echo "${ECHO_T}$OBJDUMP" >&6
6007else
6008 echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6
6010fi
6011
6012fi
6013if test -z "$ac_cv_prog_OBJDUMP"; then
6014 ac_ct_OBJDUMP=$OBJDUMP
6015 # Extract the first word of "objdump", so it can be a program name with args.
6016set dummy objdump; ac_word=$2
6017echo "$as_me:$LINENO: checking for $ac_word" >&5
6018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021else
6022 if test -n "$ac_ct_OBJDUMP"; then
6023 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6024else
6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH
6027do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6032 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036done
6037done
6038
6039 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6040fi
6041fi
6042ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6043if test -n "$ac_ct_OBJDUMP"; then
6044 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6045echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6046else
6047 echo "$as_me:$LINENO: result: no" >&5
6048echo "${ECHO_T}no" >&6
6049fi
6050
6051 OBJDUMP=$ac_ct_OBJDUMP
6052else
6053 OBJDUMP="$ac_cv_prog_OBJDUMP"
6054fi
6055
6056test -z "$OBJDUMP" && OBJDUMP=objdump
6057
6058
6059
6060
6061
6062
6063
6064
d7040cdb
SE
6065
6066echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6067echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6068if test "${lt_cv_deplibs_check_method+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071 lt_cv_file_magic_cmd='$MAGIC_CMD'
6072lt_cv_file_magic_test_file=
6073lt_cv_deplibs_check_method='unknown'
6074# Need to set the preceding variable on all platforms that support
6075# interlibrary dependencies.
6076# 'none' -- dependencies not supported.
6077# `unknown' -- same as none, but documents that we really don't know.
6078# 'pass_all' -- all dependencies passed with no checks.
6079# 'test_compile' -- check by making test program.
6080# 'file_magic [[regex]]' -- check by looking for files in library path
6081# which responds to the $file_magic_cmd with a given extended regex.
6082# If you have `file' or equivalent on your system and you're not sure
6083# whether `pass_all' will *always* work, you probably want this one.
6084
6085case $host_os in
e81819a5 6086aix[4-9]*)
d7040cdb
SE
6087 lt_cv_deplibs_check_method=pass_all
6088 ;;
6089
6090beos*)
6091 lt_cv_deplibs_check_method=pass_all
6092 ;;
6093
6094bsdi[45]*)
6095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6096 lt_cv_file_magic_cmd='/usr/bin/file -L'
6097 lt_cv_file_magic_test_file=/shlib/libc.so
6098 ;;
6099
6100cygwin*)
6101 # func_win32_libid is a shell function defined in ltmain.sh
6102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6103 lt_cv_file_magic_cmd='func_win32_libid'
6104 ;;
6105
6106mingw* | pw32*)
6107 # Base MSYS/MinGW do not provide the 'file' command needed by
6108 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6109 # unless we find 'file', for example because we are cross-compiling.
6110 if ( file / ) >/dev/null 2>&1; then
6111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6112 lt_cv_file_magic_cmd='func_win32_libid'
6113 else
6114 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6115 lt_cv_file_magic_cmd='$OBJDUMP -f'
6116 fi
6117 ;;
6118
718a6fd8
SE
6119cegcc)
6120 # use the weaker test based on 'objdump'. See mingw*.
6121 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6122 lt_cv_file_magic_cmd='$OBJDUMP -f'
6123 ;;
6124
d7040cdb
SE
6125darwin* | rhapsody*)
6126 lt_cv_deplibs_check_method=pass_all
cfbc9945 6127 ;;
d7040cdb
SE
6128
6129freebsd* | dragonfly*)
6130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6131 case $host_cpu in
6132 i*86 )
6133 # Not sure whether the presence of OpenBSD here was a mistake.
6134 # Let's accept both of them until this is cleared up.
6135 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6136 lt_cv_file_magic_cmd=/usr/bin/file
6137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6138 ;;
6139 esac
6140 else
6141 lt_cv_deplibs_check_method=pass_all
6142 fi
6143 ;;
6144
6145gnu*)
6146 lt_cv_deplibs_check_method=pass_all
cfbc9945 6147 ;;
d7040cdb
SE
6148
6149hpux10.20* | hpux11*)
6150 lt_cv_file_magic_cmd=/usr/bin/file
6151 case $host_cpu in
6152 ia64*)
6153 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6154 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6155 ;;
6156 hppa*64*)
6157 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]'
6158 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6159 ;;
cfbc9945 6160 *)
d7040cdb
SE
6161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6162 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6163 ;;
6164 esac
6165 ;;
6be7c12c 6166
d7040cdb
SE
6167interix[3-9]*)
6168 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6170 ;;
cfbc9945 6171
d7040cdb
SE
6172irix5* | irix6* | nonstopux*)
6173 case $LD in
6174 *-32|*"-32 ") libmagic=32-bit;;
6175 *-n32|*"-n32 ") libmagic=N32;;
6176 *-64|*"-64 ") libmagic=64-bit;;
6177 *) libmagic=never-match;;
6178 esac
6179 lt_cv_deplibs_check_method=pass_all
cfbc9945 6180 ;;
cfbc9945 6181
d7040cdb
SE
6182# This must be Linux ELF.
6183linux* | k*bsd*-gnu)
6184 lt_cv_deplibs_check_method=pass_all
6185 ;;
5464f5a1 6186
d7040cdb
SE
6187netbsd*)
6188 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 6190 else
d7040cdb 6191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 6192 fi
d7040cdb
SE
6193 ;;
6194
6195newos6*)
6196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6197 lt_cv_file_magic_cmd=/usr/bin/file
6198 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6199 ;;
6200
6201*nto* | *qnx*)
6202 lt_cv_deplibs_check_method=pass_all
6203 ;;
cfbc9945 6204
d7040cdb
SE
6205openbsd*)
6206 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6208 else
6209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
6210 fi
6211 ;;
d7040cdb
SE
6212
6213osf3* | osf4* | osf5*)
6214 lt_cv_deplibs_check_method=pass_all
6215 ;;
6216
6217rdos*)
6218 lt_cv_deplibs_check_method=pass_all
6219 ;;
6220
6221solaris*)
6222 lt_cv_deplibs_check_method=pass_all
6223 ;;
6224
6225sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6226 lt_cv_deplibs_check_method=pass_all
6227 ;;
6228
6229sysv4 | sysv4.3*)
6230 case $host_vendor in
6231 motorola)
6232 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]'
6233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6234 ;;
6235 ncr)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238 sequent)
6239 lt_cv_file_magic_cmd='/bin/file'
6240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6241 ;;
6242 sni)
6243 lt_cv_file_magic_cmd='/bin/file'
6244 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6245 lt_cv_file_magic_test_file=/lib/libc.so
6246 ;;
6247 siemens)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250 pc)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253 esac
6254 ;;
6255
6256tpf*)
6257 lt_cv_deplibs_check_method=pass_all
6258 ;;
cfbc9945
SE
6259esac
6260
d7040cdb
SE
6261fi
6262echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6263echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6264file_magic_cmd=$lt_cv_file_magic_cmd
6265deplibs_check_method=$lt_cv_deplibs_check_method
6266test -z "$deplibs_check_method" && deplibs_check_method=unknown
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
cfbc9945 6279if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6280 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6281set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
6282echo "$as_me:$LINENO: checking for $ac_word" >&5
6283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6284if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
d7040cdb
SE
6287 if test -n "$AR"; then
6288 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6297 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301done
6302done
6303
6304fi
6305fi
d7040cdb
SE
6306AR=$ac_cv_prog_AR
6307if test -n "$AR"; then
6308 echo "$as_me:$LINENO: result: $AR" >&5
6309echo "${ECHO_T}$AR" >&6
5464f5a1
NN
6310else
6311 echo "$as_me:$LINENO: result: no" >&5
6312echo "${ECHO_T}no" >&6
6313fi
6314
5464f5a1 6315fi
d7040cdb
SE
6316if test -z "$ac_cv_prog_AR"; then
6317 ac_ct_AR=$AR
6318 # Extract the first word of "ar", so it can be a program name with args.
6319set dummy ar; ac_word=$2
5464f5a1
NN
6320echo "$as_me:$LINENO: checking for $ac_word" >&5
6321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6322if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 6323 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6324else
d7040cdb
SE
6325 if test -n "$ac_ct_AR"; then
6326 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 6327else
5464f5a1
NN
6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329for as_dir in $PATH
6330do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6335 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339done
6340done
6341
d7040cdb 6342 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
6343fi
6344fi
d7040cdb
SE
6345ac_ct_AR=$ac_cv_prog_ac_ct_AR
6346if test -n "$ac_ct_AR"; then
6347 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6348echo "${ECHO_T}$ac_ct_AR" >&6
6349else
6350 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
6351echo "${ECHO_T}no" >&6
6352fi
6353
d7040cdb 6354 AR=$ac_ct_AR
cfbc9945 6355else
d7040cdb 6356 AR="$ac_cv_prog_AR"
5464f5a1 6357fi
cfbc9945 6358
d7040cdb
SE
6359test -z "$AR" && AR=ar
6360test -z "$AR_FLAGS" && AR_FLAGS=cru
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
cfbc9945
SE
6372if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6374set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
6375echo "$as_me:$LINENO: checking for $ac_word" >&5
6376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 6377if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
cfbc9945
SE
6380 if test -n "$STRIP"; then
6381 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 6390 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394done
6395done
6396
6397fi
6398fi
cfbc9945
SE
6399STRIP=$ac_cv_prog_STRIP
6400if test -n "$STRIP"; then
6401 echo "$as_me:$LINENO: result: $STRIP" >&5
6402echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
6403else
6404 echo "$as_me:$LINENO: result: no" >&5
6405echo "${ECHO_T}no" >&6
6406fi
6407
252b5132 6408fi
cfbc9945
SE
6409if test -z "$ac_cv_prog_STRIP"; then
6410 ac_ct_STRIP=$STRIP
6411 # Extract the first word of "strip", so it can be a program name with args.
6412set dummy strip; ac_word=$2
5464f5a1
NN
6413echo "$as_me:$LINENO: checking for $ac_word" >&5
6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 6415if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
cfbc9945
SE
6418 if test -n "$ac_ct_STRIP"; then
6419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 6428 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432done
6433done
6434
cfbc9945 6435 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
6436fi
6437fi
cfbc9945
SE
6438ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6439if test -n "$ac_ct_STRIP"; then
6440 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6441echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
6442else
6443 echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6
6445fi
6446
cfbc9945
SE
6447 STRIP=$ac_ct_STRIP
6448else
6449 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
6450fi
6451
d7040cdb 6452test -z "$STRIP" && STRIP=:
5464f5a1 6453
cfbc9945
SE
6454
6455
cfbc9945 6456
cfbc9945
SE
6457
6458
d7040cdb
SE
6459if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6461set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6462echo "$as_me:$LINENO: checking for $ac_word" >&5
6463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6464if test "${ac_cv_prog_RANLIB+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 6466else
d7040cdb
SE
6467 if test -n "$RANLIB"; then
6468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6469else
6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
cfbc9945 6480 fi
d7040cdb
SE
6481done
6482done
cfbc9945 6483
d7040cdb
SE
6484fi
6485fi
6486RANLIB=$ac_cv_prog_RANLIB
6487if test -n "$RANLIB"; then
6488 echo "$as_me:$LINENO: result: $RANLIB" >&5
6489echo "${ECHO_T}$RANLIB" >&6
6490else
6491 echo "$as_me:$LINENO: result: no" >&5
6492echo "${ECHO_T}no" >&6
6493fi
cfbc9945 6494
d7040cdb
SE
6495fi
6496if test -z "$ac_cv_prog_RANLIB"; then
6497 ac_ct_RANLIB=$RANLIB
6498 # Extract the first word of "ranlib", so it can be a program name with args.
6499set dummy ranlib; ac_word=$2
6500echo "$as_me:$LINENO: checking for $ac_word" >&5
6501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6502if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504else
6505 if test -n "$ac_ct_RANLIB"; then
6506 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6507else
6508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509for as_dir in $PATH
6510do
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_ac_ct_RANLIB="ranlib"
6516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
cfbc9945 6518 fi
d7040cdb
SE
6519done
6520done
cfbc9945 6521
d7040cdb
SE
6522 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6523fi
6524fi
6525ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6526if test -n "$ac_ct_RANLIB"; then
6527 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6528echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 6529else
d7040cdb
SE
6530 echo "$as_me:$LINENO: result: no" >&5
6531echo "${ECHO_T}no" >&6
6532fi
5464f5a1 6533
d7040cdb
SE
6534 RANLIB=$ac_ct_RANLIB
6535else
6536 RANLIB="$ac_cv_prog_RANLIB"
6537fi
5464f5a1 6538
d7040cdb 6539test -z "$RANLIB" && RANLIB=:
5464f5a1 6540
5464f5a1 6541
5464f5a1 6542
cfbc9945 6543
cfbc9945 6544
d7040cdb
SE
6545
6546# Determine commands to create old-style static archives.
718a6fd8 6547old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6548old_postinstall_cmds='chmod 644 $oldlib'
6549old_postuninstall_cmds=
6550
6551if test -n "$RANLIB"; then
6552 case $host_os in
6553 openbsd*)
6554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6555 ;;
6556 *)
6557 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6558 ;;
6559 esac
6560 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 6561fi
cfbc9945
SE
6562
6563
cfbc9945
SE
6564
6565
cfbc9945 6566
cfbc9945 6567
cfbc9945 6568
cfbc9945 6569
cfbc9945
SE
6570
6571
cfbc9945 6572
cfbc9945 6573
cfbc9945
SE
6574
6575
6576
6577
6578
6579
6580
5464f5a1 6581
5464f5a1 6582
cfbc9945
SE
6583
6584
6585
5464f5a1 6586
5464f5a1 6587
cfbc9945
SE
6588
6589
6590
5464f5a1 6591
cfbc9945
SE
6592
6593
6594
6595
d7040cdb
SE
6596# If no C compiler was specified, use CC.
6597LTCC=${LTCC-"$CC"}
cfbc9945 6598
d7040cdb
SE
6599# If no C compiler flags were specified, use CFLAGS.
6600LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 6601
d7040cdb
SE
6602# Allow CC to be a program name with arguments.
6603compiler=$CC
cfbc9945 6604
cfbc9945 6605
d7040cdb
SE
6606# Check for command to grab the raw symbol name followed by C symbol from nm.
6607echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6608echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6609if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611else
5464f5a1 6612
d7040cdb
SE
6613# These are sane defaults that work on at least a few old systems.
6614# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 6615
d7040cdb
SE
6616# Character class describing NM global symbol codes.
6617symcode='[BCDEGRST]'
6618
6619# Regexp to match symbols that can be accessed directly from C.
6620sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6621
6622# Define system-specific variables.
6623case $host_os in
6624aix*)
6625 symcode='[BCDT]'
6626 ;;
718a6fd8 6627cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6628 symcode='[ABCDGISTW]'
6629 ;;
6630hpux*)
6631 if test "$host_cpu" = ia64; then
6632 symcode='[ABCDEGRST]'
6633 fi
6634 ;;
6635irix* | nonstopux*)
6636 symcode='[BCDEGRST]'
6637 ;;
6638osf*)
6639 symcode='[BCDEGQRST]'
6640 ;;
6641solaris*)
6642 symcode='[BDRT]'
6643 ;;
6644sco3.2v5*)
6645 symcode='[DT]'
6646 ;;
6647sysv4.2uw2*)
6648 symcode='[DT]'
6649 ;;
6650sysv5* | sco5v6* | unixware* | OpenUNIX*)
6651 symcode='[ABDT]'
6652 ;;
6653sysv4)
6654 symcode='[DFNSTU]'
6655 ;;
cfbc9945 6656esac
5464f5a1 6657
d7040cdb
SE
6658# If we're using GNU nm, then use its standard symbol codes.
6659case `$NM -V 2>&1` in
6660*GNU* | *'with BFD'*)
6661 symcode='[ABCDGIRSTW]' ;;
6662esac
5464f5a1 6663
d7040cdb
SE
6664# Transform an extracted symbol line into a proper C declaration.
6665# Some systems (esp. on ia64) link data and code symbols differently,
6666# so use this general approach.
6667lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 6668
d7040cdb
SE
6669# Transform an extracted symbol line into symbol name and symbol address
6670lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6671lt_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 6672
d7040cdb
SE
6673# Handle CRLF in mingw tool chain
6674opt_cr=
6675case $build_os in
6676mingw*)
6677 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6678 ;;
6679esac
5464f5a1 6680
d7040cdb
SE
6681# Try without a prefix underscore, then with it.
6682for ac_symprfx in "" "_"; do
6683
6684 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6685 symxfrm="\\1 $ac_symprfx\\2 \\2"
6686
6687 # Write the raw and C identifiers.
6688 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6689 # Fake it for dumpbin and say T for any non-static function
6690 # and D for any global variable.
6691 # Also find C++ and __fastcall symbols from MSVC++,
6692 # which start with @ or ?.
6693 lt_cv_sys_global_symbol_pipe="$AWK '"\
6694" {last_section=section; section=\$ 3};"\
6695" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6696" \$ 0!~/External *\|/{next};"\
6697" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6698" {if(hide[section]) next};"\
6699" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6700" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6701" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6702" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6703" ' prfx=^$ac_symprfx"
6704 else
6705 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6706 fi
cfbc9945 6707
d7040cdb
SE
6708 # Check to see that the pipe works correctly.
6709 pipe_works=no
cfbc9945 6710
d7040cdb
SE
6711 rm -f conftest*
6712 cat > conftest.$ac_ext <<_LT_EOF
6713#ifdef __cplusplus
6714extern "C" {
6715#endif
6716char nm_test_var;
6717void nm_test_func(void);
6718void nm_test_func(void){}
6719#ifdef __cplusplus
6720}
6721#endif
6722int main(){nm_test_var='a';nm_test_func();return(0);}
6723_LT_EOF
cfbc9945 6724
d7040cdb
SE
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; then
6730 # Now try to grab the symbols.
6731 nlist=conftest.nm
6732 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6733 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && test -s "$nlist"; then
6737 # Try sorting and uniquifying the output.
6738 if sort "$nlist" | uniq > "$nlist"T; then
6739 mv -f "$nlist"T "$nlist"
6740 else
6741 rm -f "$nlist"T
6742 fi
cfbc9945 6743
d7040cdb
SE
6744 # Make sure that we snagged all the symbols we need.
6745 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6746 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6747 cat <<_LT_EOF > conftest.$ac_ext
6748#ifdef __cplusplus
6749extern "C" {
6750#endif
cfbc9945 6751
d7040cdb
SE
6752_LT_EOF
6753 # Now generate the symbol file.
6754 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 6755
d7040cdb 6756 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 6757
d7040cdb
SE
6758/* The mapping between symbol names and symbols. */
6759const struct {
6760 const char *name;
6761 void *address;
6762}
6763lt__PROGRAM__LTX_preloaded_symbols[] =
6764{
6765 { "@PROGRAM@", (void *) 0 },
6766_LT_EOF
6767 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6768 cat <<\_LT_EOF >> conftest.$ac_ext
6769 {0, (void *) 0}
6770};
6771
6772/* This works around a problem in FreeBSD linker */
6773#ifdef FREEBSD_WORKAROUND
6774static const void *lt_preloaded_setup() {
6775 return lt__PROGRAM__LTX_preloaded_symbols;
6776}
6777#endif
cfbc9945 6778
d7040cdb
SE
6779#ifdef __cplusplus
6780}
6781#endif
6782_LT_EOF
6783 # Now try linking the two files.
6784 mv conftest.$ac_objext conftstm.$ac_objext
6785 lt_save_LIBS="$LIBS"
6786 lt_save_CFLAGS="$CFLAGS"
6787 LIBS="conftstm.$ac_objext"
6788 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6794 pipe_works=yes
6795 fi
6796 LIBS="$lt_save_LIBS"
6797 CFLAGS="$lt_save_CFLAGS"
6798 else
6799 echo "cannot find nm_test_func in $nlist" >&5
6800 fi
6801 else
6802 echo "cannot find nm_test_var in $nlist" >&5
6803 fi
6804 else
6805 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6806 fi
6807 else
6808 echo "$progname: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6810 fi
718a6fd8 6811 rm -rf conftest* conftst*
cfbc9945 6812
d7040cdb
SE
6813 # Do not use the global_symbol_pipe unless it works.
6814 if test "$pipe_works" = yes; then
6815 break
6816 else
6817 lt_cv_sys_global_symbol_pipe=
6818 fi
6819done
cfbc9945 6820
252b5132 6821fi
5464f5a1 6822
d7040cdb
SE
6823if test -z "$lt_cv_sys_global_symbol_pipe"; then
6824 lt_cv_sys_global_symbol_to_cdecl=
6825fi
6826if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6827 echo "$as_me:$LINENO: result: failed" >&5
6828echo "${ECHO_T}failed" >&6
b3baf5d0 6829else
d7040cdb
SE
6830 echo "$as_me:$LINENO: result: ok" >&5
6831echo "${ECHO_T}ok" >&6
6832fi
5464f5a1 6833
cfbc9945 6834
b3baf5d0 6835
cfbc9945
SE
6836
6837
6838
6839
5464f5a1 6840
4a2a2686
HPN
6841
6842
6843
cfbc9945
SE
6844
6845
cfbc9945 6846
cfbc9945 6847
718a6fd8
SE
6848
6849
6850
6851
6852
9d7cbccd 6853
20e95c23 6854
d7040cdb
SE
6855# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6856if test "${enable_libtool_lock+set}" = set; then
6857 enableval="$enable_libtool_lock"
20e95c23 6858
d7040cdb
SE
6859fi;
6860test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 6861
d7040cdb
SE
6862# Some flags need to be propagated to the compiler or linker for good
6863# libtool support.
6864case $host in
6865ia64-*-hpux*)
6866 # Find out which ABI we are using.
6867 echo 'int i;' > conftest.$ac_ext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6869 (eval $ac_compile) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; then
6873 case `/usr/bin/file conftest.$ac_objext` in
6874 *ELF-32*)
6875 HPUX_IA64_MODE="32"
6876 ;;
6877 *ELF-64*)
6878 HPUX_IA64_MODE="64"
6879 ;;
20e95c23 6880 esac
d7040cdb
SE
6881 fi
6882 rm -rf conftest*
6883 ;;
6884*-*-irix6*)
6885 # Find out which ABI we are using.
08c13eba 6886 echo '#line 6886 "configure"' > conftest.$ac_ext
d7040cdb
SE
6887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6888 (eval $ac_compile) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; then
6892 if test "$lt_cv_prog_gnu_ld" = yes; then
6893 case `/usr/bin/file conftest.$ac_objext` in
6894 *32-bit*)
6895 LD="${LD-ld} -melf32bsmip"
6896 ;;
6897 *N32*)
6898 LD="${LD-ld} -melf32bmipn32"
6899 ;;
6900 *64-bit*)
6901 LD="${LD-ld} -melf64bmip"
6902 ;;
6903 esac
20e95c23 6904 else
d7040cdb
SE
6905 case `/usr/bin/file conftest.$ac_objext` in
6906 *32-bit*)
6907 LD="${LD-ld} -32"
6908 ;;
6909 *N32*)
6910 LD="${LD-ld} -n32"
6911 ;;
6912 *64-bit*)
6913 LD="${LD-ld} -64"
6914 ;;
20e95c23
DJ
6915 esac
6916 fi
d7040cdb
SE
6917 fi
6918 rm -rf conftest*
6919 ;;
20e95c23 6920
d7040cdb
SE
6921x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6922s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6923 # Find out which ABI we are using.
6924 echo 'int i;' > conftest.$ac_ext
6925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6926 (eval $ac_compile) 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; then
6930 case `/usr/bin/file conftest.o` in
6931 *32-bit*)
6932 case $host in
6933 x86_64-*kfreebsd*-gnu)
6934 LD="${LD-ld} -m elf_i386_fbsd"
6935 ;;
6936 x86_64-*linux*)
6937 LD="${LD-ld} -m elf_i386"
6938 ;;
6939 ppc64-*linux*|powerpc64-*linux*)
6940 LD="${LD-ld} -m elf32ppclinux"
6941 ;;
6942 s390x-*linux*)
6943 LD="${LD-ld} -m elf_s390"
6944 ;;
6945 sparc64-*linux*)
6946 LD="${LD-ld} -m elf32_sparc"
6947 ;;
6948 esac
6949 ;;
6950 *64-bit*)
6951 case $host in
6952 x86_64-*kfreebsd*-gnu)
6953 LD="${LD-ld} -m elf_x86_64_fbsd"
6954 ;;
6955 x86_64-*linux*)
6956 LD="${LD-ld} -m elf_x86_64"
6957 ;;
6958 ppc*-*linux*|powerpc*-*linux*)
6959 LD="${LD-ld} -m elf64ppc"
6960 ;;
6961 s390*-*linux*|s390*-*tpf*)
6962 LD="${LD-ld} -m elf64_s390"
6963 ;;
6964 sparc*-*linux*)
6965 LD="${LD-ld} -m elf64_sparc"
6966 ;;
6967 esac
6968 ;;
20e95c23
DJ
6969 esac
6970 fi
d7040cdb 6971 rm -rf conftest*
7357c5b6 6972 ;;
d7040cdb 6973
7357c5b6
AM
6974*-*-sco3.2v5*)
6975 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6976 SAVE_CFLAGS="$CFLAGS"
6977 CFLAGS="$CFLAGS -belf"
6978 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6979echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6980if test "${lt_cv_cc_needs_belf+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 6982else
7357c5b6
AM
6983 ac_ext=c
6984ac_cpp='$CPP $CPPFLAGS'
6985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6988
7357c5b6 6989 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
6990/* confdefs.h. */
6991_ACEOF
6992cat confdefs.h >>conftest.$ac_ext
6993cat >>conftest.$ac_ext <<_ACEOF
6994/* end confdefs.h. */
d7040cdb 6995
d7040cdb
SE
6996int
6997main ()
6998{
7357c5b6
AM
6999
7000 ;
7001 return 0;
d7040cdb
SE
7002}
7003_ACEOF
7357c5b6 7004rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb 7005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7357c5b6 7006 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
7007 ac_status=$?
7008 grep -v '^ *+' conftest.er1 >conftest.err
7009 rm -f conftest.er1
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7357c5b6
AM
7013 { ac_try='test -z "$ac_c_werror_flag"
7014 || test ! -s conftest.err'
d7040cdb
SE
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; } &&
7357c5b6 7020 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7357c5b6 7026 lt_cv_cc_needs_belf=yes
d7040cdb
SE
7027else
7028 echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7357c5b6 7031lt_cv_cc_needs_belf=no
d7040cdb 7032fi
7357c5b6
AM
7033rm -f conftest.err conftest.$ac_objext \
7034 conftest$ac_exeext conftest.$ac_ext
7035 ac_ext=c
7036ac_cpp='$CPP $CPPFLAGS'
7037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7040
7041fi
7357c5b6
AM
7042echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7043echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7044 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7045 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7046 CFLAGS="$SAVE_CFLAGS"
7047 fi
7048 ;;
7049sparc*-*solaris*)
7050 # Find out which ABI we are using.
7051 echo 'int i;' > conftest.$ac_ext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7053 (eval $ac_compile) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; then
7057 case `/usr/bin/file conftest.o` in
7058 *64-bit*)
7059 case $lt_cv_prog_gnu_ld in
7060 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
7061 *)
7062 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7063 LD="${LD-ld} -64"
7064 fi
7065 ;;
7357c5b6
AM
7066 esac
7067 ;;
7068 esac
7069 fi
7070 rm -rf conftest*
7071 ;;
7072esac
d7040cdb 7073
7357c5b6 7074need_locks="$enable_libtool_lock"
d7040cdb
SE
7075
7076
718a6fd8
SE
7077 case $host_os in
7078 rhapsody* | darwin*)
7079 if test -n "$ac_tool_prefix"; then
7080 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7081set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7082echo "$as_me:$LINENO: checking for $ac_word" >&5
7083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7084if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086else
7087 if test -n "$DSYMUTIL"; then
7088 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7089else
7090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7100 fi
7101done
7102done
7103
7104fi
7105fi
7106DSYMUTIL=$ac_cv_prog_DSYMUTIL
7107if test -n "$DSYMUTIL"; then
7108 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7109echo "${ECHO_T}$DSYMUTIL" >&6
7110else
7111 echo "$as_me:$LINENO: result: no" >&5
7112echo "${ECHO_T}no" >&6
7113fi
7114
7115fi
7116if test -z "$ac_cv_prog_DSYMUTIL"; then
7117 ac_ct_DSYMUTIL=$DSYMUTIL
7118 # Extract the first word of "dsymutil", so it can be a program name with args.
7119set dummy dsymutil; ac_word=$2
7120echo "$as_me:$LINENO: checking for $ac_word" >&5
7121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124else
7125 if test -n "$ac_ct_DSYMUTIL"; then
7126 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139done
7140done
7141
7142 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7143fi
7144fi
7145ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7146if test -n "$ac_ct_DSYMUTIL"; then
7147 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7148echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7149else
7150 echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6
7152fi
7153
7154 DSYMUTIL=$ac_ct_DSYMUTIL
7155else
7156 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7157fi
7158
7159 if test -n "$ac_tool_prefix"; then
7160 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7161set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7162echo "$as_me:$LINENO: checking for $ac_word" >&5
7163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7164if test "${ac_cv_prog_NMEDIT+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167 if test -n "$NMEDIT"; then
7168 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7169else
7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181done
7182done
7183
7184fi
7185fi
7186NMEDIT=$ac_cv_prog_NMEDIT
7187if test -n "$NMEDIT"; then
7188 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7189echo "${ECHO_T}$NMEDIT" >&6
7190else
7191 echo "$as_me:$LINENO: result: no" >&5
7192echo "${ECHO_T}no" >&6
7193fi
7194
7195fi
7196if test -z "$ac_cv_prog_NMEDIT"; then
7197 ac_ct_NMEDIT=$NMEDIT
7198 # Extract the first word of "nmedit", so it can be a program name with args.
7199set dummy nmedit; ac_word=$2
7200echo "$as_me:$LINENO: checking for $ac_word" >&5
7201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7202if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204else
7205 if test -n "$ac_ct_NMEDIT"; then
7206 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7207else
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219done
7220done
7221
7222 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7223fi
7224fi
7225ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7226if test -n "$ac_ct_NMEDIT"; then
7227 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7228echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7229else
7230 echo "$as_me:$LINENO: result: no" >&5
7231echo "${ECHO_T}no" >&6
7232fi
7233
7234 NMEDIT=$ac_ct_NMEDIT
7235else
7236 NMEDIT="$ac_cv_prog_NMEDIT"
7237fi
7238
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7241set dummy ${ac_tool_prefix}lipo; ac_word=$2
7242echo "$as_me:$LINENO: checking for $ac_word" >&5
7243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7244if test "${ac_cv_prog_LIPO+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247 if test -n "$LIPO"; then
7248 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7249else
7250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7257 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261done
7262done
7263
7264fi
7265fi
7266LIPO=$ac_cv_prog_LIPO
7267if test -n "$LIPO"; then
7268 echo "$as_me:$LINENO: result: $LIPO" >&5
7269echo "${ECHO_T}$LIPO" >&6
7270else
7271 echo "$as_me:$LINENO: result: no" >&5
7272echo "${ECHO_T}no" >&6
7273fi
7274
7275fi
7276if test -z "$ac_cv_prog_LIPO"; then
7277 ac_ct_LIPO=$LIPO
7278 # Extract the first word of "lipo", so it can be a program name with args.
7279set dummy lipo; ac_word=$2
7280echo "$as_me:$LINENO: checking for $ac_word" >&5
7281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7282if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7284else
7285 if test -n "$ac_ct_LIPO"; then
7286 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_ac_ct_LIPO="lipo"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299done
7300done
7301
7302 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7303fi
7304fi
7305ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7306if test -n "$ac_ct_LIPO"; then
7307 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7308echo "${ECHO_T}$ac_ct_LIPO" >&6
7309else
7310 echo "$as_me:$LINENO: result: no" >&5
7311echo "${ECHO_T}no" >&6
7312fi
7313
7314 LIPO=$ac_ct_LIPO
7315else
7316 LIPO="$ac_cv_prog_LIPO"
7317fi
7318
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7321set dummy ${ac_tool_prefix}otool; ac_word=$2
7322echo "$as_me:$LINENO: checking for $ac_word" >&5
7323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7324if test "${ac_cv_prog_OTOOL+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327 if test -n "$OTOOL"; then
7328 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7329else
7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341done
7342done
7343
7344fi
7345fi
7346OTOOL=$ac_cv_prog_OTOOL
7347if test -n "$OTOOL"; then
7348 echo "$as_me:$LINENO: result: $OTOOL" >&5
7349echo "${ECHO_T}$OTOOL" >&6
7350else
7351 echo "$as_me:$LINENO: result: no" >&5
7352echo "${ECHO_T}no" >&6
7353fi
7354
7355fi
7356if test -z "$ac_cv_prog_OTOOL"; then
7357 ac_ct_OTOOL=$OTOOL
7358 # Extract the first word of "otool", so it can be a program name with args.
7359set dummy otool; ac_word=$2
7360echo "$as_me:$LINENO: checking for $ac_word" >&5
7361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7362if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364else
7365 if test -n "$ac_ct_OTOOL"; then
7366 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7367else
7368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_ac_ct_OTOOL="otool"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7378 fi
7379done
7380done
7381
7382 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7383fi
7384fi
7385ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7386if test -n "$ac_ct_OTOOL"; then
7387 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7388echo "${ECHO_T}$ac_ct_OTOOL" >&6
7389else
7390 echo "$as_me:$LINENO: result: no" >&5
7391echo "${ECHO_T}no" >&6
7392fi
7393
7394 OTOOL=$ac_ct_OTOOL
7395else
7396 OTOOL="$ac_cv_prog_OTOOL"
7397fi
7398
7399 if test -n "$ac_tool_prefix"; then
7400 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7401set dummy ${ac_tool_prefix}otool64; ac_word=$2
7402echo "$as_me:$LINENO: checking for $ac_word" >&5
7403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7404if test "${ac_cv_prog_OTOOL64+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406else
7407 if test -n "$OTOOL64"; then
7408 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7409else
7410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7417 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421done
7422done
7423
7424fi
7425fi
7426OTOOL64=$ac_cv_prog_OTOOL64
7427if test -n "$OTOOL64"; then
7428 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7429echo "${ECHO_T}$OTOOL64" >&6
7430else
7431 echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6
7433fi
7434
7435fi
7436if test -z "$ac_cv_prog_OTOOL64"; then
7437 ac_ct_OTOOL64=$OTOOL64
7438 # Extract the first word of "otool64", so it can be a program name with args.
7439set dummy otool64; ac_word=$2
7440echo "$as_me:$LINENO: checking for $ac_word" >&5
7441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7442if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444else
7445 if test -n "$ac_ct_OTOOL64"; then
7446 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7447else
7448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH
7450do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_ac_ct_OTOOL64="otool64"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7458 fi
7459done
7460done
7461
7462 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7463fi
7464fi
7465ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7466if test -n "$ac_ct_OTOOL64"; then
7467 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7468echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7469else
7470 echo "$as_me:$LINENO: result: no" >&5
7471echo "${ECHO_T}no" >&6
7472fi
7473
7474 OTOOL64=$ac_ct_OTOOL64
7475else
7476 OTOOL64="$ac_cv_prog_OTOOL64"
7477fi
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
7505 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7506echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7507if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 lt_cv_apple_cc_single_mod=no
7511 if test -z "${LT_MULTI_MODULE}"; then
7512 # By default we will add the -single_module flag. You can override
7513 # by either setting the environment variable LT_MULTI_MODULE
7514 # non-empty at configure time, or by adding -multi_module to the
7515 # link flags.
7516 rm -rf libconftest.dylib*
7517 echo "int foo(void){return 1;}" > conftest.c
7518 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7519-dynamiclib -Wl,-single_module conftest.c" >&5
7520 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7521 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7522 _lt_result=$?
7523 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7524 lt_cv_apple_cc_single_mod=yes
7525 else
7526 cat conftest.err >&5
7527 fi
7528 rm -rf libconftest.dylib*
7529 rm -f conftest.*
7530 fi
7531fi
7532echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7533echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7534 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7535echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7536if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538else
7539 lt_cv_ld_exported_symbols_list=no
7540 save_LDFLAGS=$LDFLAGS
7541 echo "_main" > conftest.sym
7542 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7543 cat >conftest.$ac_ext <<_ACEOF
7544/* confdefs.h. */
7545_ACEOF
7546cat confdefs.h >>conftest.$ac_ext
7547cat >>conftest.$ac_ext <<_ACEOF
7548/* end confdefs.h. */
7549
7550int
7551main ()
7552{
7553
7554 ;
7555 return 0;
7556}
7557_ACEOF
7558rm -f conftest.$ac_objext conftest$ac_exeext
7559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7560 (eval $ac_link) 2>conftest.er1
7561 ac_status=$?
7562 grep -v '^ *+' conftest.er1 >conftest.err
7563 rm -f conftest.er1
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } &&
7567 { ac_try='test -z "$ac_c_werror_flag"
7568 || test ! -s conftest.err'
7569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 (eval $ac_try) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; } &&
7574 { ac_try='test -s conftest$ac_exeext'
7575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 (eval $ac_try) 2>&5
7577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; }; then
7580 lt_cv_ld_exported_symbols_list=yes
7581else
7582 echo "$as_me: failed program was:" >&5
7583sed 's/^/| /' conftest.$ac_ext >&5
7584
7585lt_cv_ld_exported_symbols_list=no
7586fi
7587rm -f conftest.err conftest.$ac_objext \
7588 conftest$ac_exeext conftest.$ac_ext
7589 LDFLAGS="$save_LDFLAGS"
7590
7591fi
7592echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7593echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7594 case $host_os in
7595 rhapsody* | darwin1.[012])
7596 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7597 darwin1.*)
7598 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7599 darwin*) # darwin 5.x on
7600 # if running on 10.5 or later, the deployment target defaults
7601 # to the OS version, if on x86, and 10.4, the deployment
7602 # target defaults to 10.4. Don't you love it?
7603 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7604 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7605 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7606 10.[012]*)
7607 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7608 10.*)
7609 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7610 esac
7611 ;;
7612 esac
7613 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7614 _lt_dar_single_mod='$single_module'
7615 fi
7616 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7617 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7618 else
7619 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7620 fi
7621 if test "$DSYMUTIL" != ":"; then
7622 _lt_dsymutil='~$DSYMUTIL $lib || :'
7623 else
7624 _lt_dsymutil=
7625 fi
7626 ;;
7627 esac
7628
7629
d7040cdb
SE
7630for ac_header in dlfcn.h
7631do
7632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7633echo "$as_me:$LINENO: checking for $ac_header" >&5
7634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635if eval "test \"\${$as_ac_Header+set}\" = set"; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637else
7638 cat >conftest.$ac_ext <<_ACEOF
7639/* confdefs.h. */
7640_ACEOF
7641cat confdefs.h >>conftest.$ac_ext
7642cat >>conftest.$ac_ext <<_ACEOF
7643/* end confdefs.h. */
7644$ac_includes_default
7645
7646#include <$ac_header>
7647_ACEOF
7648rm -f conftest.$ac_objext
7649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7357c5b6
AM
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
d7040cdb
SE
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 eval "$as_ac_Header=yes"
7671else
7672 echo "$as_me: failed program was:" >&5
7673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675eval "$as_ac_Header=no"
7676fi
7677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7678fi
7679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7681if test `eval echo '${'$as_ac_Header'}'` = yes; then
7682 cat >>confdefs.h <<_ACEOF
7683#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7684_ACEOF
7685
7686fi
7687
7688done
7689
7690
7691
718a6fd8
SE
7692# Set options
7693
7694
7695
7696 enable_dlopen=no
7697
7698
7699 enable_win32_dll=no
7700
7701
7702
7703 # Check whether --enable-static or --disable-static was given.
7704if test "${enable_static+set}" = set; then
7705 enableval="$enable_static"
7706 p=${PACKAGE-default}
7707 case $enableval in
7708 yes) enable_static=yes ;;
7709 no) enable_static=no ;;
7710 *)
7711 enable_static=no
7712 # Look at the argument we got. We use all the common list separators.
7713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7714 for pkg in $enableval; do
7715 IFS="$lt_save_ifs"
7716 if test "X$pkg" = "X$p"; then
7717 enable_static=yes
7718 fi
7719 done
7720 IFS="$lt_save_ifs"
7721 ;;
7722 esac
7723else
7724 enable_static=yes
7725fi;
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735# Check whether --with-pic or --without-pic was given.
7736if test "${with_pic+set}" = set; then
7737 withval="$with_pic"
7738 pic_mode="$withval"
7739else
7740 pic_mode=default
7741fi;
7742
7743test -z "$pic_mode" && pic_mode=default
7744
7745
7746
7747
7748
7749
7750
7751 # Check whether --enable-fast-install or --disable-fast-install was given.
7752if test "${enable_fast_install+set}" = set; then
7753 enableval="$enable_fast_install"
7754 p=${PACKAGE-default}
7755 case $enableval in
7756 yes) enable_fast_install=yes ;;
7757 no) enable_fast_install=no ;;
7758 *)
7759 enable_fast_install=no
7760 # Look at the argument we got. We use all the common list separators.
7761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7762 for pkg in $enableval; do
7763 IFS="$lt_save_ifs"
7764 if test "X$pkg" = "X$p"; then
7765 enable_fast_install=yes
7766 fi
7767 done
7768 IFS="$lt_save_ifs"
7769 ;;
7770 esac
7771else
7772 enable_fast_install=yes
7773fi;
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
d7040cdb
SE
7784# This can be used to rebuild libtool when needed
7785LIBTOOL_DEPS="$ltmain"
7786
7787# Always use our own libtool.
7788LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814test -z "$LN_S" && LN_S="ln -s"
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829if test -n "${ZSH_VERSION+set}" ; then
7830 setopt NO_GLOB_SUBST
7831fi
7832
7833echo "$as_me:$LINENO: checking for objdir" >&5
7834echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7835if test "${lt_cv_objdir+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837else
7838 rm -f .libs 2>/dev/null
7839mkdir .libs 2>/dev/null
7840if test -d .libs; then
7841 lt_cv_objdir=.libs
7842else
7843 # MS-DOS does not allow filenames that begin with a dot.
7844 lt_cv_objdir=_libs
7845fi
7846rmdir .libs 2>/dev/null
7847fi
7848echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7849echo "${ECHO_T}$lt_cv_objdir" >&6
7850objdir=$lt_cv_objdir
7851
7852
7853
7854
7855
7856cat >>confdefs.h <<_ACEOF
7857#define LT_OBJDIR "$lt_cv_objdir/"
7858_ACEOF
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876case $host_os in
7877aix3*)
7878 # AIX sometimes has problems with the GCC collect2 program. For some
7879 # reason, if we set the COLLECT_NAMES environment variable, the problems
7880 # vanish in a puff of smoke.
7881 if test "X${COLLECT_NAMES+set}" != Xset; then
7882 COLLECT_NAMES=
7883 export COLLECT_NAMES
7884 fi
7885 ;;
7886esac
7887
7888# Sed substitution that helps us do robust quoting. It backslashifies
7889# metacharacters that are still active within double-quoted strings.
7890sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7891
7892# Same as above, but do not quote variable references.
7893double_quote_subst='s/\(["`\\]\)/\\\1/g'
7894
7895# Sed substitution to delay expansion of an escaped shell variable in a
7896# double_quote_subst'ed string.
7897delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7898
7899# Sed substitution to delay expansion of an escaped single quote.
7900delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7901
7902# Sed substitution to avoid accidental globbing in evaled expressions
7903no_glob_subst='s/\*/\\\*/g'
7904
7905# Global variables:
7906ofile=libtool
7907can_build_shared=yes
7908
7909# All known linkers require a `.a' archive for static linking (except MSVC,
7910# which needs '.lib').
7911libext=a
7912
7913with_gnu_ld="$lt_cv_prog_gnu_ld"
7914
7915old_CC="$CC"
7916old_CFLAGS="$CFLAGS"
7917
7918# Set sane defaults for various variables
7919test -z "$CC" && CC=cc
7920test -z "$LTCC" && LTCC=$CC
7921test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7922test -z "$LD" && LD=ld
7923test -z "$ac_objext" && ac_objext=o
7924
7925for cc_temp in $compiler""; do
7926 case $cc_temp in
7927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7929 \-*) ;;
7930 *) break;;
7931 esac
7932done
7933cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7934
7935
7936# Only perform the check for file, if the check method requires it
7937test -z "$MAGIC_CMD" && MAGIC_CMD=file
7938case $deplibs_check_method in
7939file_magic*)
7940 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7941 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7942echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7943if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946 case $MAGIC_CMD in
7947[\\/*] | ?:[\\/]*)
7948 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7949 ;;
7950*)
7951 lt_save_MAGIC_CMD="$MAGIC_CMD"
7952 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7953 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7954 for ac_dir in $ac_dummy; do
7955 IFS="$lt_save_ifs"
7956 test -z "$ac_dir" && ac_dir=.
7957 if test -f $ac_dir/${ac_tool_prefix}file; then
7958 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7959 if test -n "$file_magic_test_file"; then
7960 case $deplibs_check_method in
7961 "file_magic "*)
7962 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7965 $EGREP "$file_magic_regex" > /dev/null; then
7966 :
7967 else
7968 cat <<_LT_EOF 1>&2
7969
7970*** Warning: the command libtool uses to detect shared libraries,
7971*** $file_magic_cmd, produces output that libtool cannot recognize.
7972*** The result is that libtool may fail to recognize shared libraries
7973*** as such. This will affect the creation of libtool libraries that
7974*** depend on shared libraries, but programs linked with such libtool
7975*** libraries will work regardless of this problem. Nevertheless, you
7976*** may want to report the problem to your system manager and/or to
7977*** bug-libtool@gnu.org
7978
7979_LT_EOF
7980 fi ;;
7981 esac
7982 fi
7983 break
7984 fi
7985 done
7986 IFS="$lt_save_ifs"
7987 MAGIC_CMD="$lt_save_MAGIC_CMD"
7988 ;;
7989esac
7990fi
7991
7992MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7993if test -n "$MAGIC_CMD"; then
7994 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7995echo "${ECHO_T}$MAGIC_CMD" >&6
7996else
7997 echo "$as_me:$LINENO: result: no" >&5
7998echo "${ECHO_T}no" >&6
7999fi
8000
8001
8002
8003
8004
8005if test -z "$lt_cv_path_MAGIC_CMD"; then
8006 if test -n "$ac_tool_prefix"; then
8007 echo "$as_me:$LINENO: checking for file" >&5
8008echo $ECHO_N "checking for file... $ECHO_C" >&6
8009if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011else
8012 case $MAGIC_CMD in
8013[\\/*] | ?:[\\/]*)
8014 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8015 ;;
8016*)
8017 lt_save_MAGIC_CMD="$MAGIC_CMD"
8018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8020 for ac_dir in $ac_dummy; do
8021 IFS="$lt_save_ifs"
8022 test -z "$ac_dir" && ac_dir=.
8023 if test -f $ac_dir/file; then
8024 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8025 if test -n "$file_magic_test_file"; then
8026 case $deplibs_check_method in
8027 "file_magic "*)
8028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8031 $EGREP "$file_magic_regex" > /dev/null; then
8032 :
8033 else
8034 cat <<_LT_EOF 1>&2
8035
8036*** Warning: the command libtool uses to detect shared libraries,
8037*** $file_magic_cmd, produces output that libtool cannot recognize.
8038*** The result is that libtool may fail to recognize shared libraries
8039*** as such. This will affect the creation of libtool libraries that
8040*** depend on shared libraries, but programs linked with such libtool
8041*** libraries will work regardless of this problem. Nevertheless, you
8042*** may want to report the problem to your system manager and/or to
8043*** bug-libtool@gnu.org
8044
8045_LT_EOF
8046 fi ;;
8047 esac
8048 fi
8049 break
8050 fi
8051 done
8052 IFS="$lt_save_ifs"
8053 MAGIC_CMD="$lt_save_MAGIC_CMD"
8054 ;;
8055esac
8056fi
8057
8058MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8059if test -n "$MAGIC_CMD"; then
8060 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8061echo "${ECHO_T}$MAGIC_CMD" >&6
8062else
8063 echo "$as_me:$LINENO: result: no" >&5
8064echo "${ECHO_T}no" >&6
8065fi
8066
8067
8068 else
8069 MAGIC_CMD=:
8070 fi
8071fi
8072
8073 fi
8074 ;;
8075esac
8076
8077# Use C for the default configuration in the libtool script
8078
8079lt_save_CC="$CC"
8080ac_ext=c
8081ac_cpp='$CPP $CPPFLAGS'
8082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8084ac_compiler_gnu=$ac_cv_c_compiler_gnu
8085
8086
8087# Source file extension for C test sources.
8088ac_ext=c
8089
8090# Object file extension for compiled C test sources.
8091objext=o
8092objext=$objext
8093
8094# Code to be used in simple compile tests
8095lt_simple_compile_test_code="int some_variable = 0;"
8096
8097# Code to be used in simple link tests
8098lt_simple_link_test_code='int main(){return(0);}'
8099
8100
8101
8102
8103
8104
8105
8106# If no C compiler was specified, use CC.
8107LTCC=${LTCC-"$CC"}
8108
8109# If no C compiler flags were specified, use CFLAGS.
8110LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8111
8112# Allow CC to be a program name with arguments.
8113compiler=$CC
8114
8115# Save the default compiler, since it gets overwritten when the other
8116# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8117compiler_DEFAULT=$CC
8118
8119# save warnings/boilerplate of simple test code
8120ac_outfile=conftest.$ac_objext
8121echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8122eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8123_lt_compiler_boilerplate=`cat conftest.err`
8124$RM conftest*
8125
8126ac_outfile=conftest.$ac_objext
8127echo "$lt_simple_link_test_code" >conftest.$ac_ext
8128eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8129_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8130$RM -r conftest*
d7040cdb
SE
8131
8132
8133## CAVEAT EMPTOR:
8134## There is no encapsulation within the following macros, do not change
8135## the running order or otherwise move them around unless you know exactly
8136## what you are doing...
8137if test -n "$compiler"; then
8138
8139lt_prog_compiler_no_builtin_flag=
8140
8141if test "$GCC" = yes; then
8142 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8143
8144 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8145echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8146if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8148else
8149 lt_cv_prog_compiler_rtti_exceptions=no
8150 ac_outfile=conftest.$ac_objext
8151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8152 lt_compiler_flag="-fno-rtti -fno-exceptions"
8153 # Insert the option either (1) after the last *FLAGS variable, or
8154 # (2) before a word containing "conftest.", or (3) at the end.
8155 # Note that $ac_compile itself does not contain backslashes and begins
8156 # with a dollar sign (not a hyphen), so the echo should work correctly.
8157 # The option is referenced via a variable to avoid confusing sed.
8158 lt_compile=`echo "$ac_compile" | $SED \
8159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8161 -e 's:$: $lt_compiler_flag:'`
08c13eba 8162 (eval echo "\"\$as_me:8162: $lt_compile\"" >&5)
d7040cdb
SE
8163 (eval "$lt_compile" 2>conftest.err)
8164 ac_status=$?
8165 cat conftest.err >&5
08c13eba 8166 echo "$as_me:8166: \$? = $ac_status" >&5
d7040cdb
SE
8167 if (exit $ac_status) && test -s "$ac_outfile"; then
8168 # The compiler can only warn and ignore the option if not recognized
8169 # So say no if there are warnings other than the usual output.
8170 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8173 lt_cv_prog_compiler_rtti_exceptions=yes
8174 fi
8175 fi
8176 $RM conftest*
8177
8178fi
8179echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8180echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8181
8182if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8183 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8184else
8185 :
8186fi
8187
8188fi
8189
8190
8191
8192
8193
8194
8195 lt_prog_compiler_wl=
8196lt_prog_compiler_pic=
8197lt_prog_compiler_static=
8198
8199echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8200echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8201
8202 if test "$GCC" = yes; then
8203 lt_prog_compiler_wl='-Wl,'
8204 lt_prog_compiler_static='-static'
8205
8206 case $host_os in
8207 aix*)
8208 # All AIX code is PIC.
8209 if test "$host_cpu" = ia64; then
8210 # AIX 5 now supports IA64 processor
8211 lt_prog_compiler_static='-Bstatic'
8212 fi
8213 ;;
8214
8215 amigaos*)
718a6fd8
SE
8216 case $host_cpu in
8217 powerpc)
8218 # see comment about AmigaOS4 .so support
8219 lt_prog_compiler_pic='-fPIC'
8220 ;;
8221 m68k)
8222 # FIXME: we need at least 68020 code to build shared libraries, but
8223 # adding the `-m68020' flag to GCC prevents building anything better,
8224 # like `-m68040'.
8225 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8226 ;;
8227 esac
d7040cdb
SE
8228 ;;
8229
8230 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8231 # PIC is the default for these OSes.
8232 ;;
8233
718a6fd8 8234 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8235 # This hack is so that the source file can tell whether it is being
8236 # built for inclusion in a dll (and should export symbols for example).
8237 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8238 # (--disable-auto-import) libraries
8239 lt_prog_compiler_pic='-DDLL_EXPORT'
8240 ;;
8241
8242 darwin* | rhapsody*)
8243 # PIC is the default on this platform
8244 # Common symbols not allowed in MH_DYLIB files
8245 lt_prog_compiler_pic='-fno-common'
8246 ;;
8247
8248 hpux*)
718a6fd8
SE
8249 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8250 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8251 # sets the default TLS model and affects inlining.
d7040cdb 8252 case $host_cpu in
718a6fd8 8253 hppa*64*)
d7040cdb
SE
8254 # +Z the default
8255 ;;
8256 *)
8257 lt_prog_compiler_pic='-fPIC'
8258 ;;
8259 esac
8260 ;;
8261
8262 interix[3-9]*)
8263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8264 # Instead, we relocate shared libraries at runtime.
8265 ;;
8266
8267 msdosdjgpp*)
8268 # Just because we use GCC doesn't mean we suddenly get shared libraries
8269 # on systems that don't support them.
8270 lt_prog_compiler_can_build_shared=no
8271 enable_shared=no
8272 ;;
8273
8274 *nto* | *qnx*)
8275 # QNX uses GNU C++, but need to define -shared option too, otherwise
8276 # it will coredump.
8277 lt_prog_compiler_pic='-fPIC -shared'
8278 ;;
8279
8280 sysv4*MP*)
8281 if test -d /usr/nec; then
8282 lt_prog_compiler_pic=-Kconform_pic
8283 fi
8284 ;;
8285
8286 *)
8287 lt_prog_compiler_pic='-fPIC'
8288 ;;
8289 esac
8290 else
8291 # PORTME Check for flag to pass linker flags through the system compiler.
8292 case $host_os in
8293 aix*)
8294 lt_prog_compiler_wl='-Wl,'
8295 if test "$host_cpu" = ia64; then
8296 # AIX 5 now supports IA64 processor
8297 lt_prog_compiler_static='-Bstatic'
8298 else
8299 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8300 fi
8301 ;;
d7040cdb 8302
718a6fd8 8303 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8304 # This hack is so that the source file can tell whether it is being
8305 # built for inclusion in a dll (and should export symbols for example).
8306 lt_prog_compiler_pic='-DDLL_EXPORT'
8307 ;;
8308
8309 hpux9* | hpux10* | hpux11*)
8310 lt_prog_compiler_wl='-Wl,'
8311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8312 # not for PA HP-UX.
8313 case $host_cpu in
8314 hppa*64*|ia64*)
8315 # +Z the default
8316 ;;
8317 *)
8318 lt_prog_compiler_pic='+Z'
8319 ;;
8320 esac
8321 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8322 lt_prog_compiler_static='${wl}-a ${wl}archive'
8323 ;;
8324
8325 irix5* | irix6* | nonstopux*)
8326 lt_prog_compiler_wl='-Wl,'
8327 # PIC (with -KPIC) is the default.
8328 lt_prog_compiler_static='-non_shared'
8329 ;;
8330
8331 linux* | k*bsd*-gnu)
8332 case $cc_basename in
718a6fd8
SE
8333 # old Intel for x86_64 which still supported -KPIC.
8334 ecc*)
d7040cdb
SE
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='-KPIC'
8337 lt_prog_compiler_static='-static'
8338 ;;
718a6fd8
SE
8339 # icc used to be incompatible with GCC.
8340 # ICC 10 doesn't accept -KPIC any more.
8341 icc* | ifort*)
8342 lt_prog_compiler_wl='-Wl,'
8343 lt_prog_compiler_pic='-fPIC'
8344 lt_prog_compiler_static='-static'
8345 ;;
8346 # Lahey Fortran 8.1.
8347 lf95*)
8348 lt_prog_compiler_wl='-Wl,'
8349 lt_prog_compiler_pic='--shared'
8350 lt_prog_compiler_static='--static'
8351 ;;
d7040cdb
SE
8352 pgcc* | pgf77* | pgf90* | pgf95*)
8353 # Portland Group compilers (*not* the Pentium gcc compiler,
8354 # which looks to be a dead project)
8355 lt_prog_compiler_wl='-Wl,'
8356 lt_prog_compiler_pic='-fpic'
8357 lt_prog_compiler_static='-Bstatic'
8358 ;;
8359 ccc*)
8360 lt_prog_compiler_wl='-Wl,'
8361 # All Alpha code is PIC.
8362 lt_prog_compiler_static='-non_shared'
8363 ;;
718a6fd8
SE
8364 xl*)
8365 # IBM XL C 8.0/Fortran 10.1 on PPC
8366 lt_prog_compiler_wl='-Wl,'
8367 lt_prog_compiler_pic='-qpic'
8368 lt_prog_compiler_static='-qstaticlink'
8369 ;;
d7040cdb
SE
8370 *)
8371 case `$CC -V 2>&1 | sed 5q` in
8372 *Sun\ C*)
8373 # Sun C 5.9
8374 lt_prog_compiler_pic='-KPIC'
8375 lt_prog_compiler_static='-Bstatic'
8376 lt_prog_compiler_wl='-Wl,'
8377 ;;
8378 *Sun\ F*)
8379 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8380 lt_prog_compiler_pic='-KPIC'
8381 lt_prog_compiler_static='-Bstatic'
8382 lt_prog_compiler_wl=''
8383 ;;
8384 esac
8385 ;;
8386 esac
8387 ;;
8388
8389 newsos6)
8390 lt_prog_compiler_pic='-KPIC'
8391 lt_prog_compiler_static='-Bstatic'
8392 ;;
8393
8394 *nto* | *qnx*)
8395 # QNX uses GNU C++, but need to define -shared option too, otherwise
8396 # it will coredump.
8397 lt_prog_compiler_pic='-fPIC -shared'
8398 ;;
8399
8400 osf3* | osf4* | osf5*)
8401 lt_prog_compiler_wl='-Wl,'
8402 # All OSF/1 code is PIC.
8403 lt_prog_compiler_static='-non_shared'
8404 ;;
8405
8406 rdos*)
8407 lt_prog_compiler_static='-non_shared'
8408 ;;
8409
8410 solaris*)
8411 lt_prog_compiler_pic='-KPIC'
8412 lt_prog_compiler_static='-Bstatic'
8413 case $cc_basename in
8414 f77* | f90* | f95*)
8415 lt_prog_compiler_wl='-Qoption ld ';;
8416 *)
8417 lt_prog_compiler_wl='-Wl,';;
8418 esac
8419 ;;
8420
8421 sunos4*)
8422 lt_prog_compiler_wl='-Qoption ld '
8423 lt_prog_compiler_pic='-PIC'
8424 lt_prog_compiler_static='-Bstatic'
8425 ;;
8426
8427 sysv4 | sysv4.2uw2* | sysv4.3*)
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_pic='-KPIC'
8430 lt_prog_compiler_static='-Bstatic'
8431 ;;
8432
8433 sysv4*MP*)
8434 if test -d /usr/nec ;then
8435 lt_prog_compiler_pic='-Kconform_pic'
8436 lt_prog_compiler_static='-Bstatic'
8437 fi
8438 ;;
8439
8440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_pic='-KPIC'
8443 lt_prog_compiler_static='-Bstatic'
8444 ;;
8445
8446 unicos*)
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_can_build_shared=no
8449 ;;
8450
8451 uts4*)
8452 lt_prog_compiler_pic='-pic'
8453 lt_prog_compiler_static='-Bstatic'
8454 ;;
8455
8456 *)
8457 lt_prog_compiler_can_build_shared=no
8458 ;;
8459 esac
8460 fi
8461
8462case $host_os in
8463 # For platforms which do not support PIC, -DPIC is meaningless:
8464 *djgpp*)
8465 lt_prog_compiler_pic=
8466 ;;
8467 *)
8468 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8469 ;;
8470esac
8471echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8472echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8473
8474
8475
8476
8477
8478
8479#
8480# Check to make sure the PIC flag actually works.
8481#
8482if test -n "$lt_prog_compiler_pic"; then
8483 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8484echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
718a6fd8 8485if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
d7040cdb
SE
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487else
718a6fd8 8488 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8489 ac_outfile=conftest.$ac_objext
8490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8491 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8492 # Insert the option either (1) after the last *FLAGS variable, or
8493 # (2) before a word containing "conftest.", or (3) at the end.
8494 # Note that $ac_compile itself does not contain backslashes and begins
8495 # with a dollar sign (not a hyphen), so the echo should work correctly.
8496 # The option is referenced via a variable to avoid confusing sed.
8497 lt_compile=`echo "$ac_compile" | $SED \
8498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8500 -e 's:$: $lt_compiler_flag:'`
08c13eba 8501 (eval echo "\"\$as_me:8501: $lt_compile\"" >&5)
d7040cdb
SE
8502 (eval "$lt_compile" 2>conftest.err)
8503 ac_status=$?
8504 cat conftest.err >&5
08c13eba 8505 echo "$as_me:8505: \$? = $ac_status" >&5
d7040cdb
SE
8506 if (exit $ac_status) && test -s "$ac_outfile"; then
8507 # The compiler can only warn and ignore the option if not recognized
8508 # So say no if there are warnings other than the usual output.
8509 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8512 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8513 fi
8514 fi
8515 $RM conftest*
8516
8517fi
718a6fd8
SE
8518echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8519echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
d7040cdb 8520
718a6fd8 8521if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8522 case $lt_prog_compiler_pic in
8523 "" | " "*) ;;
8524 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8525 esac
8526else
8527 lt_prog_compiler_pic=
8528 lt_prog_compiler_can_build_shared=no
8529fi
8530
8531fi
8532
8533
8534
8535
8536
8537
8538#
8539# Check to make sure the static flag actually works.
8540#
8541wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8542echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8543echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
718a6fd8 8544if test "${lt_cv_prog_compiler_static_works+set}" = set; then
d7040cdb
SE
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546else
718a6fd8 8547 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8548 save_LDFLAGS="$LDFLAGS"
8549 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8550 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8552 # The linker can only warn and ignore the option if not recognized
8553 # So say no if there are warnings
8554 if test -s conftest.err; then
8555 # Append any errors to the config.log.
8556 cat conftest.err 1>&5
8557 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8559 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8560 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8561 fi
8562 else
718a6fd8 8563 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8564 fi
8565 fi
718a6fd8 8566 $RM -r conftest*
d7040cdb
SE
8567 LDFLAGS="$save_LDFLAGS"
8568
8569fi
718a6fd8
SE
8570echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8571echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
d7040cdb 8572
718a6fd8 8573if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8574 :
8575else
8576 lt_prog_compiler_static=
8577fi
8578
8579
8580
8581
8582
8583
8584
8585 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8586echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8587if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589else
8590 lt_cv_prog_compiler_c_o=no
8591 $RM -r conftest 2>/dev/null
8592 mkdir conftest
8593 cd conftest
8594 mkdir out
8595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8596
8597 lt_compiler_flag="-o out/conftest2.$ac_objext"
8598 # Insert the option either (1) after the last *FLAGS variable, or
8599 # (2) before a word containing "conftest.", or (3) at the end.
8600 # Note that $ac_compile itself does not contain backslashes and begins
8601 # with a dollar sign (not a hyphen), so the echo should work correctly.
8602 lt_compile=`echo "$ac_compile" | $SED \
8603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8605 -e 's:$: $lt_compiler_flag:'`
08c13eba 8606 (eval echo "\"\$as_me:8606: $lt_compile\"" >&5)
d7040cdb
SE
8607 (eval "$lt_compile" 2>out/conftest.err)
8608 ac_status=$?
8609 cat out/conftest.err >&5
08c13eba 8610 echo "$as_me:8610: \$? = $ac_status" >&5
d7040cdb
SE
8611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8612 then
8613 # The compiler can only warn and ignore the option if not recognized
8614 # So say no if there are warnings
8615 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8618 lt_cv_prog_compiler_c_o=yes
8619 fi
8620 fi
8621 chmod u+w . 2>&5
8622 $RM conftest*
8623 # SGI C++ compiler will create directory out/ii_files/ for
8624 # template instantiation
8625 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8626 $RM out/* && rmdir out
8627 cd ..
8628 $RM -r conftest
8629 $RM conftest*
8630
8631fi
8632echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8633echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8634
8635
8636
8637
8638
8639
8640 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8641echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8642if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644else
8645 lt_cv_prog_compiler_c_o=no
8646 $RM -r conftest 2>/dev/null
8647 mkdir conftest
8648 cd conftest
8649 mkdir out
8650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8651
8652 lt_compiler_flag="-o out/conftest2.$ac_objext"
8653 # Insert the option either (1) after the last *FLAGS variable, or
8654 # (2) before a word containing "conftest.", or (3) at the end.
8655 # Note that $ac_compile itself does not contain backslashes and begins
8656 # with a dollar sign (not a hyphen), so the echo should work correctly.
8657 lt_compile=`echo "$ac_compile" | $SED \
8658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8660 -e 's:$: $lt_compiler_flag:'`
08c13eba 8661 (eval echo "\"\$as_me:8661: $lt_compile\"" >&5)
d7040cdb
SE
8662 (eval "$lt_compile" 2>out/conftest.err)
8663 ac_status=$?
8664 cat out/conftest.err >&5
08c13eba 8665 echo "$as_me:8665: \$? = $ac_status" >&5
d7040cdb
SE
8666 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8667 then
8668 # The compiler can only warn and ignore the option if not recognized
8669 # So say no if there are warnings
8670 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8671 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8672 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8673 lt_cv_prog_compiler_c_o=yes
8674 fi
8675 fi
8676 chmod u+w . 2>&5
8677 $RM conftest*
8678 # SGI C++ compiler will create directory out/ii_files/ for
8679 # template instantiation
8680 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8681 $RM out/* && rmdir out
8682 cd ..
8683 $RM -r conftest
8684 $RM conftest*
8685
8686fi
8687echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8688echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8689
8690
8691
8692
8693hard_links="nottested"
8694if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8695 # do not overwrite the value of need_locks provided by the user
8696 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8697echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8698 hard_links=yes
8699 $RM conftest*
8700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8701 touch conftest.a
8702 ln conftest.a conftest.b 2>&5 || hard_links=no
8703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8704 echo "$as_me:$LINENO: result: $hard_links" >&5
8705echo "${ECHO_T}$hard_links" >&6
8706 if test "$hard_links" = no; then
8707 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8708echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8709 need_locks=warn
8710 fi
8711else
8712 need_locks=no
8713fi
8714
8715
8716
8717
8718
8719
8720 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8721echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8722
8723 runpath_var=
8724 allow_undefined_flag=
8725 always_export_symbols=no
8726 archive_cmds=
8727 archive_expsym_cmds=
8728 compiler_needs_object=no
8729 enable_shared_with_static_runtimes=no
8730 export_dynamic_flag_spec=
8731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8732 hardcode_automatic=no
8733 hardcode_direct=no
8734 hardcode_direct_absolute=no
8735 hardcode_libdir_flag_spec=
8736 hardcode_libdir_flag_spec_ld=
8737 hardcode_libdir_separator=
8738 hardcode_minus_L=no
8739 hardcode_shlibpath_var=unsupported
8740 inherit_rpath=no
8741 link_all_deplibs=unknown
8742 module_cmds=
8743 module_expsym_cmds=
8744 old_archive_from_new_cmds=
8745 old_archive_from_expsyms_cmds=
8746 thread_safe_flag_spec=
8747 whole_archive_flag_spec=
8748 # include_expsyms should be a list of space-separated symbols to be *always*
8749 # included in the symbol list
8750 include_expsyms=
8751 # exclude_expsyms can be an extended regexp of symbols to exclude
8752 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8753 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8754 # as well as any symbol that contains `d'.
718a6fd8 8755 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8756 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8757 # platforms (ab)use it in PIC code, but their linkers get confused if
8758 # the symbol is explicitly referenced. Since portable code cannot
8759 # rely on this symbol name, it's probably fine to never include it in
8760 # preloaded symbol tables.
718a6fd8 8761 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8762 extract_expsyms_cmds=
8763
8764 case $host_os in
718a6fd8 8765 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8766 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8767 # When not using gcc, we currently assume that we are using
8768 # Microsoft Visual C++.
8769 if test "$GCC" != yes; then
8770 with_gnu_ld=no
8771 fi
8772 ;;
8773 interix*)
8774 # we just hope/assume this is gcc and not c89 (= MSVC++)
8775 with_gnu_ld=yes
8776 ;;
8777 openbsd*)
8778 with_gnu_ld=no
8779 ;;
8780 esac
8781
8782 ld_shlibs=yes
8783 if test "$with_gnu_ld" = yes; then
8784 # If archive_cmds runs LD, not CC, wlarc should be empty
8785 wlarc='${wl}'
8786
8787 # Set some defaults for GNU ld with shared library support. These
8788 # are reset later if shared libraries are not supported. Putting them
8789 # here allows them to be overridden if necessary.
8790 runpath_var=LD_RUN_PATH
8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792 export_dynamic_flag_spec='${wl}--export-dynamic'
8793 # ancient GNU ld didn't support --whole-archive et. al.
8794 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8795 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8796 else
8797 whole_archive_flag_spec=
8798 fi
8799 supports_anon_versioning=no
8800 case `$LD -v 2>&1` in
8801 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8804 *\ 2.11.*) ;; # other 2.11 versions
8805 *) supports_anon_versioning=yes ;;
8806 esac
8807
8808 # See if GNU ld supports shared libraries.
8809 case $host_os in
e81819a5 8810 aix[3-9]*)
d7040cdb
SE
8811 # On AIX/PPC, the GNU linker is very broken
8812 if test "$host_cpu" != ia64; then
8813 ld_shlibs=no
8814 cat <<_LT_EOF 1>&2
8815
8816*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8817*** to be unable to reliably create shared libraries on AIX.
8818*** Therefore, libtool is disabling shared libraries support. If you
8819*** really care for shared libraries, you may want to modify your PATH
8820*** so that a non-GNU linker is found, and then restart.
8821
8822_LT_EOF
8823 fi
8824 ;;
8825
8826 amigaos*)
718a6fd8
SE
8827 case $host_cpu in
8828 powerpc)
8829 # see comment about AmigaOS4 .so support
8830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8831 archive_expsym_cmds=''
8832 ;;
8833 m68k)
8834 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)'
8835 hardcode_libdir_flag_spec='-L$libdir'
8836 hardcode_minus_L=yes
8837 ;;
8838 esac
d7040cdb
SE
8839 ;;
8840
8841 beos*)
8842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8843 allow_undefined_flag=unsupported
8844 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8845 # support --undefined. This deserves some investigation. FIXME
8846 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8847 else
8848 ld_shlibs=no
8849 fi
8850 ;;
8851
718a6fd8 8852 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8853 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8854 # as there is no search path for DLLs.
8855 hardcode_libdir_flag_spec='-L$libdir'
8856 allow_undefined_flag=unsupported
8857 always_export_symbols=no
8858 enable_shared_with_static_runtimes=yes
8859 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8860
8861 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8863 # If the export-symbols file already is a .def file (1st line
8864 # is EXPORTS), use it as is; otherwise, prepend...
8865 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8866 cp $export_symbols $output_objdir/$soname.def;
8867 else
8868 echo EXPORTS > $output_objdir/$soname.def;
8869 cat $export_symbols >> $output_objdir/$soname.def;
8870 fi~
8871 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8872 else
8873 ld_shlibs=no
8874 fi
8875 ;;
8876
8877 interix[3-9]*)
8878 hardcode_direct=no
8879 hardcode_shlibpath_var=no
8880 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8881 export_dynamic_flag_spec='${wl}-E'
8882 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8883 # Instead, shared libraries are loaded at an image base (0x10000000 by
8884 # default) and relocated if they conflict, which is a slow very memory
8885 # consuming and fragmenting process. To avoid this, we pick a random,
8886 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8887 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8888 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8889 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'
8890 ;;
8891
8892 gnu* | linux* | tpf* | k*bsd*-gnu)
8893 tmp_diet=no
8894 if test "$host_os" = linux-dietlibc; then
8895 case $cc_basename in
8896 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8897 esac
8898 fi
8899 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8900 && test "$tmp_diet" = no
8901 then
8902 tmp_addflag=
718a6fd8 8903 tmp_sharedflag='-shared'
d7040cdb
SE
8904 case $cc_basename,$host_cpu in
8905 pgcc*) # Portland Group C compiler
8906 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'
8907 tmp_addflag=' $pic_flag'
8908 ;;
8909 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8910 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'
8911 tmp_addflag=' $pic_flag -Mnomain' ;;
8912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8913 tmp_addflag=' -i_dynamic' ;;
8914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8915 tmp_addflag=' -i_dynamic -nofor_main' ;;
8916 ifc* | ifort*) # Intel Fortran compiler
8917 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8918 lf95*) # Lahey Fortran 8.1
8919 whole_archive_flag_spec=
8920 tmp_sharedflag='--shared' ;;
8921 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8922 tmp_sharedflag='-qmkshrobj'
8923 tmp_addflag= ;;
d7040cdb
SE
8924 esac
8925 case `$CC -V 2>&1 | sed 5q` in
8926 *Sun\ C*) # Sun C 5.9
8927 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'
8928 compiler_needs_object=yes
8929 tmp_sharedflag='-G' ;;
8930 *Sun\ F*) # Sun Fortran 8.3
8931 tmp_sharedflag='-G' ;;
d7040cdb
SE
8932 esac
8933 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934
8935 if test "x$supports_anon_versioning" = xyes; then
8936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8938 echo "local: *; };" >> $output_objdir/$libname.ver~
8939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8940 fi
718a6fd8
SE
8941
8942 case $cc_basename in
8943 xlf*)
8944 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8945 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8946 hardcode_libdir_flag_spec=
8947 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8948 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8949 if test "x$supports_anon_versioning" = xyes; then
8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8952 echo "local: *; };" >> $output_objdir/$libname.ver~
8953 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8954 fi
8955 ;;
8956 esac
d7040cdb
SE
8957 else
8958 ld_shlibs=no
8959 fi
8960 ;;
8961
8962 netbsd*)
8963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8965 wlarc=
8966 else
8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8969 fi
8970 ;;
8971
8972 solaris*)
8973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8974 ld_shlibs=no
8975 cat <<_LT_EOF 1>&2
8976
8977*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8978*** create shared libraries on Solaris systems. Therefore, libtool
8979*** is disabling shared libraries support. We urge you to upgrade GNU
8980*** binutils to release 2.9.1 or newer. Another option is to modify
8981*** your PATH or compiler configuration so that the native linker is
8982*** used, and then restart.
8983
8984_LT_EOF
8985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 else
8989 ld_shlibs=no
8990 fi
8991 ;;
8992
8993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8994 case `$LD -v 2>&1` in
8995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8996 ld_shlibs=no
8997 cat <<_LT_EOF 1>&2
8998
8999*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9000*** reliably create shared libraries on SCO systems. Therefore, libtool
9001*** is disabling shared libraries support. We urge you to upgrade GNU
9002*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9003*** your PATH or compiler configuration so that the native linker is
9004*** used, and then restart.
9005
9006_LT_EOF
9007 ;;
9008 *)
9009 # For security reasons, it is highly recommended that you always
9010 # use absolute paths for naming shared libraries, and exclude the
9011 # DT_RUNPATH tag from executables and libraries. But doing so
9012 # requires that you compile everything twice, which is a pain.
9013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017 else
9018 ld_shlibs=no
9019 fi
9020 ;;
9021 esac
9022 ;;
9023
9024 sunos4*)
9025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9026 wlarc=
9027 hardcode_direct=yes
9028 hardcode_shlibpath_var=no
9029 ;;
9030
9031 *)
9032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9037 fi
9038 ;;
9039 esac
9040
9041 if test "$ld_shlibs" = no; then
9042 runpath_var=
9043 hardcode_libdir_flag_spec=
9044 export_dynamic_flag_spec=
9045 whole_archive_flag_spec=
9046 fi
9047 else
9048 # PORTME fill in a description of your system's linker (not GNU ld)
9049 case $host_os in
9050 aix3*)
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=yes
9053 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'
9054 # Note: this linker hardcodes the directories in LIBPATH if there
9055 # are no directories specified by -L.
9056 hardcode_minus_L=yes
9057 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9058 # Neither direct hardcoding nor static linking is supported with a
9059 # broken collect2.
9060 hardcode_direct=unsupported
9061 fi
9062 ;;
9063
e81819a5 9064 aix[4-9]*)
d7040cdb
SE
9065 if test "$host_cpu" = ia64; then
9066 # On IA64, the linker does run time linking by default, so we don't
9067 # have to do anything special.
9068 aix_use_runtimelinking=no
9069 exp_sym_flag='-Bexport'
9070 no_entry_flag=""
9071 else
9072 # If we're using GNU nm, then we don't want the "-C" option.
9073 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9074 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9075 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'
9076 else
9077 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'
9078 fi
9079 aix_use_runtimelinking=no
9080
9081 # Test if we are trying to use run time linking or normal
9082 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9083 # need to do runtime linking.
e81819a5 9084 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
9085 for ld_flag in $LDFLAGS; do
9086 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9087 aix_use_runtimelinking=yes
9088 break
9089 fi
9090 done
9091 ;;
9092 esac
9093
9094 exp_sym_flag='-bexport'
9095 no_entry_flag='-bnoentry'
9096 fi
9097
9098 # When large executables or shared objects are built, AIX ld can
9099 # have problems creating the table of contents. If linking a library
9100 # or program results in "error TOC overflow" add -mminimal-toc to
9101 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9102 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9103
9104 archive_cmds=''
9105 hardcode_direct=yes
9106 hardcode_direct_absolute=yes
9107 hardcode_libdir_separator=':'
9108 link_all_deplibs=yes
9109 file_list_spec='${wl}-f,'
9110
9111 if test "$GCC" = yes; then
9112 case $host_os in aix4.[012]|aix4.[012].*)
9113 # We only want to do this on AIX 4.2 and lower, the check
9114 # below for broken collect2 doesn't work under 4.3+
9115 collect2name=`${CC} -print-prog-name=collect2`
9116 if test -f "$collect2name" &&
9117 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9118 then
9119 # We have reworked collect2
9120 :
9121 else
9122 # We have old collect2
9123 hardcode_direct=unsupported
9124 # It fails to find uninstalled libraries when the uninstalled
9125 # path is not listed in the libpath. Setting hardcode_minus_L
9126 # to unsupported forces relinking
9127 hardcode_minus_L=yes
9128 hardcode_libdir_flag_spec='-L$libdir'
9129 hardcode_libdir_separator=
9130 fi
9131 ;;
9132 esac
9133 shared_flag='-shared'
9134 if test "$aix_use_runtimelinking" = yes; then
9135 shared_flag="$shared_flag "'${wl}-G'
9136 fi
9137 else
9138 # not using gcc
9139 if test "$host_cpu" = ia64; then
9140 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9141 # chokes on -Wl,-G. The following line is correct:
9142 shared_flag='-G'
9143 else
9144 if test "$aix_use_runtimelinking" = yes; then
9145 shared_flag='${wl}-G'
9146 else
9147 shared_flag='${wl}-bM:SRE'
9148 fi
9149 fi
9150 fi
9151
718a6fd8 9152 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9153 # It seems that -bexpall does not export symbols beginning with
9154 # underscore (_), so it is better to generate a list of symbols to export.
9155 always_export_symbols=yes
9156 if test "$aix_use_runtimelinking" = yes; then
9157 # Warning - without using the other runtime loading flags (-brtl),
9158 # -berok will link without error, but may produce a broken library.
9159 allow_undefined_flag='-berok'
9160 # Determine the default libpath from the value encoded in an
9161 # empty executable.
9162 cat >conftest.$ac_ext <<_ACEOF
9163/* confdefs.h. */
9164_ACEOF
9165cat confdefs.h >>conftest.$ac_ext
9166cat >>conftest.$ac_ext <<_ACEOF
9167/* end confdefs.h. */
9168
9169int
9170main ()
9171{
9172
9173 ;
9174 return 0;
9175}
9176_ACEOF
9177rm -f conftest.$ac_objext conftest$ac_exeext
9178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179 (eval $ac_link) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
7357c5b6
AM
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
d7040cdb
SE
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199
9200lt_aix_libpath_sed='
9201 /Import File Strings/,/^$/ {
9202 /^0/ {
9203 s/^0 *\(.*\)$/\1/
9204 p
9205 }
9206 }'
9207aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9208# Check for a 64-bit object if we didn't find anything.
9209if test -z "$aix_libpath"; then
9210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9211fi
9212else
9213 echo "$as_me: failed program was:" >&5
9214sed 's/^/| /' conftest.$ac_ext >&5
9215
9216fi
9217rm -f conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9219if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9220
9221 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9222 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"
9223 else
9224 if test "$host_cpu" = ia64; then
9225 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9226 allow_undefined_flag="-z nodefs"
9227 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"
9228 else
9229 # Determine the default libpath from the value encoded in an
9230 # empty executable.
9231 cat >conftest.$ac_ext <<_ACEOF
9232/* confdefs.h. */
9233_ACEOF
9234cat confdefs.h >>conftest.$ac_ext
9235cat >>conftest.$ac_ext <<_ACEOF
9236/* end confdefs.h. */
9237
9238int
9239main ()
9240{
9241
9242 ;
9243 return 0;
9244}
9245_ACEOF
9246rm -f conftest.$ac_objext conftest$ac_exeext
9247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
7357c5b6
AM
9255 { ac_try='test -z "$ac_c_werror_flag"
9256 || test ! -s conftest.err'
d7040cdb
SE
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 (eval $ac_try) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268
9269lt_aix_libpath_sed='
9270 /Import File Strings/,/^$/ {
9271 /^0/ {
9272 s/^0 *\(.*\)$/\1/
9273 p
9274 }
9275 }'
9276aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9277# Check for a 64-bit object if we didn't find anything.
9278if test -z "$aix_libpath"; then
9279 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9280fi
9281else
9282 echo "$as_me: failed program was:" >&5
9283sed 's/^/| /' conftest.$ac_ext >&5
9284
9285fi
9286rm -f conftest.err conftest.$ac_objext \
9287 conftest$ac_exeext conftest.$ac_ext
9288if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9289
9290 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9291 # Warning - without using the other run time loading flags,
9292 # -berok will link without error, but may produce a broken library.
9293 no_undefined_flag=' ${wl}-bernotok'
9294 allow_undefined_flag=' ${wl}-berok'
9295 # Exported symbols can be pulled into shared objects from archives
9296 whole_archive_flag_spec='$convenience'
9297 archive_cmds_need_lc=yes
9298 # This is similar to how AIX traditionally builds its shared libraries.
9299 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'
9300 fi
9301 fi
9302 ;;
9303
9304 amigaos*)
718a6fd8
SE
9305 case $host_cpu in
9306 powerpc)
9307 # see comment about AmigaOS4 .so support
9308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309 archive_expsym_cmds=''
9310 ;;
9311 m68k)
9312 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)'
9313 hardcode_libdir_flag_spec='-L$libdir'
9314 hardcode_minus_L=yes
9315 ;;
9316 esac
d7040cdb
SE
9317 ;;
9318
9319 bsdi[45]*)
9320 export_dynamic_flag_spec=-rdynamic
9321 ;;
9322
718a6fd8 9323 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9324 # When not using gcc, we currently assume that we are using
9325 # Microsoft Visual C++.
9326 # hardcode_libdir_flag_spec is actually meaningless, as there is
9327 # no search path for DLLs.
9328 hardcode_libdir_flag_spec=' '
9329 allow_undefined_flag=unsupported
9330 # Tell ltmain to make .lib files, not .a files.
9331 libext=lib
9332 # Tell ltmain to make .dll files, not .so files.
9333 shrext_cmds=".dll"
9334 # FIXME: Setting linknames here is a bad hack.
9335 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9336 # The linker will automatically build a .lib file if we build a DLL.
9337 old_archive_from_new_cmds='true'
9338 # FIXME: Should let the user specify the lib program.
9339 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9340 fix_srcfile_path='`cygpath -w "$srcfile"`'
9341 enable_shared_with_static_runtimes=yes
9342 ;;
9343
9344 darwin* | rhapsody*)
d7040cdb 9345
718a6fd8
SE
9346
9347 archive_cmds_need_lc=no
9348 hardcode_direct=no
9349 hardcode_automatic=yes
9350 hardcode_shlibpath_var=unsupported
9351 whole_archive_flag_spec=''
9352 link_all_deplibs=yes
9353 allow_undefined_flag="$_lt_dar_allow_undefined"
9354 case $cc_basename in
9355 ifort*) _lt_dar_can_shared=yes ;;
9356 *) _lt_dar_can_shared=$GCC ;;
9357 esac
9358 if test "$_lt_dar_can_shared" = "yes"; then
9359 output_verbose_link_cmd=echo
9360 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9361 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9362 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}"
9363 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}"
9364
9365 else
9366 ld_shlibs=no
9367 fi
9368
d7040cdb
SE
9369 ;;
9370
9371 dgux*)
9372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373 hardcode_libdir_flag_spec='-L$libdir'
9374 hardcode_shlibpath_var=no
9375 ;;
9376
9377 freebsd1*)
9378 ld_shlibs=no
9379 ;;
9380
9381 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9382 # support. Future versions do this automatically, but an explicit c++rt0.o
9383 # does not break anything, and helps significantly (at the cost of a little
9384 # extra space).
9385 freebsd2.2*)
9386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9387 hardcode_libdir_flag_spec='-R$libdir'
9388 hardcode_direct=yes
9389 hardcode_shlibpath_var=no
9390 ;;
9391
9392 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9393 freebsd2*)
9394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9395 hardcode_direct=yes
9396 hardcode_minus_L=yes
9397 hardcode_shlibpath_var=no
9398 ;;
9399
9400 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9401 freebsd* | dragonfly*)
9402 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9403 hardcode_libdir_flag_spec='-R$libdir'
9404 hardcode_direct=yes
9405 hardcode_shlibpath_var=no
9406 ;;
9407
9408 hpux9*)
9409 if test "$GCC" = yes; then
9410 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'
9411 else
9412 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'
9413 fi
9414 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9415 hardcode_libdir_separator=:
9416 hardcode_direct=yes
9417
9418 # hardcode_minus_L: Not really in the search PATH,
9419 # but as the default location of the library.
9420 hardcode_minus_L=yes
9421 export_dynamic_flag_spec='${wl}-E'
9422 ;;
9423
9424 hpux10*)
9425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9426 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9427 else
9428 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9429 fi
9430 if test "$with_gnu_ld" = no; then
9431 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9432 hardcode_libdir_flag_spec_ld='+b $libdir'
9433 hardcode_libdir_separator=:
9434 hardcode_direct=yes
9435 hardcode_direct_absolute=yes
9436 export_dynamic_flag_spec='${wl}-E'
9437 # hardcode_minus_L: Not really in the search PATH,
9438 # but as the default location of the library.
9439 hardcode_minus_L=yes
9440 fi
9441 ;;
9442
9443 hpux11*)
9444 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9445 case $host_cpu in
9446 hppa*64*)
9447 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9448 ;;
9449 ia64*)
718a6fd8 9450 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9451 ;;
9452 *)
9453 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9454 ;;
9455 esac
9456 else
9457 case $host_cpu in
9458 hppa*64*)
9459 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9460 ;;
9461 ia64*)
9462 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9463 ;;
9464 *)
9465 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9466 ;;
9467 esac
9468 fi
9469 if test "$with_gnu_ld" = no; then
9470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9471 hardcode_libdir_separator=:
9472
9473 case $host_cpu in
9474 hppa*64*|ia64*)
9475 hardcode_direct=no
9476 hardcode_shlibpath_var=no
9477 ;;
9478 *)
9479 hardcode_direct=yes
9480 hardcode_direct_absolute=yes
9481 export_dynamic_flag_spec='${wl}-E'
9482
9483 # hardcode_minus_L: Not really in the search PATH,
9484 # but as the default location of the library.
9485 hardcode_minus_L=yes
9486 ;;
9487 esac
9488 fi
9489 ;;
9490
9491 irix5* | irix6* | nonstopux*)
9492 if test "$GCC" = yes; then
9493 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'
9494 # Try to use the -exported_symbol ld option, if it does not
9495 # work, assume that -exports_file does not work either and
9496 # implicitly export all symbols.
9497 save_LDFLAGS="$LDFLAGS"
9498 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9499 cat >conftest.$ac_ext <<_ACEOF
9500int foo(void) {}
9501_ACEOF
9502rm -f conftest.$ac_objext conftest$ac_exeext
9503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504 (eval $ac_link) 2>conftest.er1
9505 ac_status=$?
9506 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
7357c5b6
AM
9511 { ac_try='test -z "$ac_c_werror_flag"
9512 || test ! -s conftest.err'
d7040cdb
SE
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; } &&
9518 { ac_try='test -s conftest$ac_exeext'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 (eval $ac_try) 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9524 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'
9525
9526else
9527 echo "$as_me: failed program was:" >&5
9528sed 's/^/| /' conftest.$ac_ext >&5
9529
9530fi
9531rm -f conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533 LDFLAGS="$save_LDFLAGS"
9534 else
9535 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'
9536 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'
9537 fi
9538 archive_cmds_need_lc='no'
9539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9540 hardcode_libdir_separator=:
9541 inherit_rpath=yes
9542 link_all_deplibs=yes
9543 ;;
9544
9545 netbsd*)
9546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9548 else
9549 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9550 fi
9551 hardcode_libdir_flag_spec='-R$libdir'
9552 hardcode_direct=yes
9553 hardcode_shlibpath_var=no
9554 ;;
9555
9556 newsos6)
9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558 hardcode_direct=yes
9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560 hardcode_libdir_separator=:
9561 hardcode_shlibpath_var=no
9562 ;;
9563
9564 *nto* | *qnx*)
9565 ;;
9566
9567 openbsd*)
718a6fd8
SE
9568 if test -f /usr/libexec/ld.so; then
9569 hardcode_direct=yes
9570 hardcode_shlibpath_var=no
9571 hardcode_direct_absolute=yes
9572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9574 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9576 export_dynamic_flag_spec='${wl}-E'
9577 else
9578 case $host_os in
9579 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9581 hardcode_libdir_flag_spec='-R$libdir'
9582 ;;
9583 *)
9584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9586 ;;
9587 esac
9588 fi
9589 else
9590 ld_shlibs=no
d7040cdb
SE
9591 fi
9592 ;;
9593
9594 os2*)
9595 hardcode_libdir_flag_spec='-L$libdir'
9596 hardcode_minus_L=yes
9597 allow_undefined_flag=unsupported
9598 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'
9599 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9600 ;;
9601
9602 osf3*)
9603 if test "$GCC" = yes; then
9604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9605 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'
9606 else
9607 allow_undefined_flag=' -expect_unresolved \*'
9608 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'
9609 fi
9610 archive_cmds_need_lc='no'
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 hardcode_libdir_separator=:
9613 ;;
9614
9615 osf4* | osf5*) # as osf3* with the addition of -msym flag
9616 if test "$GCC" = yes; then
9617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9618 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'
9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620 else
9621 allow_undefined_flag=' -expect_unresolved \*'
9622 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'
9623 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~
9624 $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'
9625
9626 # Both c and cxx compiler support -rpath directly
9627 hardcode_libdir_flag_spec='-rpath $libdir'
9628 fi
9629 archive_cmds_need_lc='no'
9630 hardcode_libdir_separator=:
9631 ;;
9632
9633 solaris*)
9634 no_undefined_flag=' -z defs'
9635 if test "$GCC" = yes; then
9636 wlarc='${wl}'
9637 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9639 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9640 else
9641 case `$CC -V 2>&1` in
9642 *"Compilers 5.0"*)
9643 wlarc=''
9644 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9646 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9647 ;;
9648 *)
9649 wlarc='${wl}'
9650 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9652 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9653 ;;
9654 esac
9655 fi
9656 hardcode_libdir_flag_spec='-R$libdir'
9657 hardcode_shlibpath_var=no
9658 case $host_os in
9659 solaris2.[0-5] | solaris2.[0-5].*) ;;
9660 *)
9661 # The compiler driver will combine and reorder linker options,
9662 # but understands `-z linker_flag'. GCC discards it without `$wl',
9663 # but is careful enough not to reorder.
9664 # Supported since Solaris 2.6 (maybe 2.5.1?)
9665 if test "$GCC" = yes; then
9666 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9667 else
9668 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9669 fi
9670 ;;
9671 esac
9672 link_all_deplibs=yes
9673 ;;
9674
9675 sunos4*)
9676 if test "x$host_vendor" = xsequent; then
9677 # Use $CC to link under sequent, because it throws in some extra .o
9678 # files that make .init and .fini sections work.
9679 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9680 else
9681 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9682 fi
9683 hardcode_libdir_flag_spec='-L$libdir'
9684 hardcode_direct=yes
9685 hardcode_minus_L=yes
9686 hardcode_shlibpath_var=no
9687 ;;
9688
9689 sysv4)
9690 case $host_vendor in
9691 sni)
9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_direct=yes # is this really true???
9694 ;;
9695 siemens)
9696 ## LD is ld it makes a PLAMLIB
9697 ## CC just makes a GrossModule.
9698 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9699 reload_cmds='$CC -r -o $output$reload_objs'
9700 hardcode_direct=no
9701 ;;
9702 motorola)
9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9705 ;;
9706 esac
9707 runpath_var='LD_RUN_PATH'
9708 hardcode_shlibpath_var=no
9709 ;;
9710
9711 sysv4.3*)
9712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9713 hardcode_shlibpath_var=no
9714 export_dynamic_flag_spec='-Bexport'
9715 ;;
9716
9717 sysv4*MP*)
9718 if test -d /usr/nec; then
9719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_shlibpath_var=no
9721 runpath_var=LD_RUN_PATH
9722 hardcode_runpath_var=yes
9723 ld_shlibs=yes
9724 fi
9725 ;;
9726
9727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9728 no_undefined_flag='${wl}-z,text'
9729 archive_cmds_need_lc=no
9730 hardcode_shlibpath_var=no
9731 runpath_var='LD_RUN_PATH'
9732
9733 if test "$GCC" = yes; then
9734 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 fi
9740 ;;
9741
9742 sysv5* | sco3.2v5* | sco5v6*)
9743 # Note: We can NOT use -z defs as we might desire, because we do not
9744 # link with -lc, and that would cause any symbols used from libc to
9745 # always be unresolved, which means just about no library would
9746 # ever link correctly. If we're not using GNU ld we use -z text
9747 # though, which does catch some bad symbols but isn't as heavy-handed
9748 # as -z defs.
9749 no_undefined_flag='${wl}-z,text'
9750 allow_undefined_flag='${wl}-z,nodefs'
9751 archive_cmds_need_lc=no
9752 hardcode_shlibpath_var=no
9753 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9754 hardcode_libdir_separator=':'
9755 link_all_deplibs=yes
9756 export_dynamic_flag_spec='${wl}-Bexport'
9757 runpath_var='LD_RUN_PATH'
9758
9759 if test "$GCC" = yes; then
9760 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9762 else
9763 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9764 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 fi
9766 ;;
9767
9768 uts4*)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_libdir_flag_spec='-L$libdir'
9771 hardcode_shlibpath_var=no
9772 ;;
9773
9774 *)
9775 ld_shlibs=no
9776 ;;
9777 esac
9778
9779 if test x$host_vendor = xsni; then
9780 case $host in
9781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9782 export_dynamic_flag_spec='${wl}-Blargedynsym'
9783 ;;
9784 esac
9785 fi
9786 fi
9787
9788echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9789echo "${ECHO_T}$ld_shlibs" >&6
9790test "$ld_shlibs" = no && can_build_shared=no
9791
9792with_gnu_ld=$with_gnu_ld
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808#
9809# Do we need to explicitly link libc?
9810#
9811case "x$archive_cmds_need_lc" in
9812x|xyes)
9813 # Assume -lc should be added
9814 archive_cmds_need_lc=yes
9815
9816 if test "$enable_shared" = yes && test "$GCC" = yes; then
9817 case $archive_cmds in
9818 *'~'*)
9819 # FIXME: we may have to deal with multi-command sequences.
9820 ;;
9821 '$CC '*)
9822 # Test whether the compiler implicitly links with -lc since on some
9823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9824 # to ld, don't add -lc before -lgcc.
9825 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9826echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
39144654
RW
9827if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829else
9830 $RM conftest*
9831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9832
39144654 9833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d7040cdb
SE
9834 (eval $ac_compile) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } 2>conftest.err; then
39144654
RW
9838 soname=conftest
9839 lib=conftest
9840 libobjs=conftest.$ac_objext
9841 deplibs=
9842 wl=$lt_prog_compiler_wl
9843 pic_flag=$lt_prog_compiler_pic
9844 compiler_flags=-v
9845 linker_flags=-v
9846 verstring=
9847 output_objdir=.
9848 libname=conftest
9849 lt_save_allow_undefined_flag=$allow_undefined_flag
9850 allow_undefined_flag=
9851 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
d7040cdb
SE
9852 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9853 ac_status=$?
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }
39144654
RW
9856 then
9857 lt_cv_archive_cmds_need_lc=no
9858 else
9859 lt_cv_archive_cmds_need_lc=yes
9860 fi
9861 allow_undefined_flag=$lt_save_allow_undefined_flag
9862 else
9863 cat conftest.err 1>&5
9864 fi
9865 $RM conftest*
9866
9867fi
9868echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9869echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9870 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
9871 ;;
9872 esac
9873 fi
9874 ;;
9875esac
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
10033 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10034echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
718a6fd8
SE
10035
10036if test "$GCC" = yes; then
d7040cdb
SE
10037 case $host_os in
10038 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10039 *) lt_awk_arg="/^libraries:/" ;;
10040 esac
10041 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10042 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10043 # if the path contains ";" then we assume it to be the separator
10044 # otherwise default to the standard path separator (i.e. ":") - it is
10045 # assumed that no part of a normal pathname contains ";" but that should
10046 # okay in the real world where ";" in dirpaths is itself problematic.
10047 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10048 else
10049 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10050 fi
10051 # Ok, now we have the path, separated by spaces, we can step through it
10052 # and add multilib dir if necessary.
10053 lt_tmp_lt_search_path_spec=
10054 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10055 for lt_sys_path in $lt_search_path_spec; do
10056 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10058 else
10059 test -d "$lt_sys_path" && \
10060 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10061 fi
10062 done
10063 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10064BEGIN {RS=" "; FS="/|\n";} {
10065 lt_foo="";
10066 lt_count=0;
10067 for (lt_i = NF; lt_i > 0; lt_i--) {
10068 if ($lt_i != "" && $lt_i != ".") {
10069 if ($lt_i == "..") {
10070 lt_count++;
10071 } else {
10072 if (lt_count == 0) {
10073 lt_foo="/" $lt_i lt_foo;
10074 } else {
10075 lt_count--;
10076 }
10077 }
10078 }
10079 }
10080 if (lt_foo != "") { lt_freq[lt_foo]++; }
10081 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10082}'`
10083 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10084else
10085 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10086fi
10087library_names_spec=
10088libname_spec='lib$name'
10089soname_spec=
10090shrext_cmds=".so"
10091postinstall_cmds=
10092postuninstall_cmds=
10093finish_cmds=
10094finish_eval=
10095shlibpath_var=
10096shlibpath_overrides_runpath=unknown
10097version_type=none
10098dynamic_linker="$host_os ld.so"
10099sys_lib_dlsearch_path_spec="/lib /usr/lib"
10100need_lib_prefix=unknown
10101hardcode_into_libs=no
10102
10103# when you set need_version to no, make sure it does not cause -set_version
10104# flags to be left without arguments
10105need_version=unknown
10106
10107case $host_os in
10108aix3*)
10109 version_type=linux
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10111 shlibpath_var=LIBPATH
10112
10113 # AIX 3 has no versioning support, so we append a major version to the name.
10114 soname_spec='${libname}${release}${shared_ext}$major'
10115 ;;
10116
e81819a5 10117aix[4-9]*)
d7040cdb
SE
10118 version_type=linux
10119 need_lib_prefix=no
10120 need_version=no
10121 hardcode_into_libs=yes
10122 if test "$host_cpu" = ia64; then
10123 # AIX 5 supports IA64
10124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 else
10127 # With GCC up to 2.95.x, collect2 would create an import file
10128 # for dependence libraries. The import file would start with
10129 # the line `#! .'. This would cause the generated library to
10130 # depend on `.', always an invalid library. This was fixed in
10131 # development snapshots of GCC prior to 3.0.
10132 case $host_os in
10133 aix4 | aix4.[01] | aix4.[01].*)
10134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10135 echo ' yes '
10136 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10137 :
10138 else
10139 can_build_shared=no
10140 fi
10141 ;;
10142 esac
10143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10144 # soname into executable. Probably we can add versioning support to
10145 # collect2, so additional links can be useful in future.
10146 if test "$aix_use_runtimelinking" = yes; then
10147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10148 # instead of lib<name>.a to let people know that these are not
10149 # typical AIX shared libraries.
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151 else
10152 # We preserve .a as extension for shared libraries through AIX4.2
10153 # and later when we are not doing run time linking.
10154 library_names_spec='${libname}${release}.a $libname.a'
10155 soname_spec='${libname}${release}${shared_ext}$major'
10156 fi
10157 shlibpath_var=LIBPATH
10158 fi
10159 ;;
10160
10161amigaos*)
718a6fd8
SE
10162 case $host_cpu in
10163 powerpc)
10164 # Since July 2007 AmigaOS4 officially supports .so libraries.
10165 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167 ;;
10168 m68k)
d7040cdb
SE
10169 library_names_spec='$libname.ixlibrary $libname.a'
10170 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10171 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
10172 ;;
10173 esac
d7040cdb
SE
10174 ;;
10175
10176beos*)
10177 library_names_spec='${libname}${shared_ext}'
10178 dynamic_linker="$host_os ld.so"
10179 shlibpath_var=LIBRARY_PATH
10180 ;;
10181
10182bsdi[45]*)
10183 version_type=linux
10184 need_version=no
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 soname_spec='${libname}${release}${shared_ext}$major'
10187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10188 shlibpath_var=LD_LIBRARY_PATH
10189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10191 # the default ld.so.conf also contains /usr/contrib/lib and
10192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10193 # libtool to hard-code these into programs
10194 ;;
10195
718a6fd8 10196cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10197 version_type=windows
10198 shrext_cmds=".dll"
10199 need_version=no
10200 need_lib_prefix=no
10201
718a6fd8
SE
10202 case $GCC,$host_os in
10203 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10204 library_names_spec='$libname.dll.a'
10205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10206 postinstall_cmds='base_file=`basename \${file}`~
10207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10208 dldir=$destdir/`dirname \$dlpath`~
10209 test -d \$dldir || mkdir -p \$dldir~
10210 $install_prog $dir/$dlname \$dldir/$dlname~
10211 chmod a+x \$dldir/$dlname~
10212 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10213 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10214 fi'
10215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10216 dlpath=$dir/\$dldll~
10217 $RM \$dlpath'
10218 shlibpath_overrides_runpath=yes
10219
10220 case $host_os in
10221 cygwin*)
10222 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10223 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10224 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10225 ;;
718a6fd8 10226 mingw* | cegcc*)
d7040cdb
SE
10227 # MinGW DLLs use traditional 'lib' prefix
10228 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10229 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10230 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10231 # It is most probably a Windows format PATH printed by
10232 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10233 # path with ; separators, and with drive letters. We can handle the
10234 # drive letters (cygwin fileutils understands them), so leave them,
10235 # especially as we might pass files found there to a mingw objdump,
10236 # which wouldn't understand a cygwinified path. Ahh.
10237 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10238 else
10239 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10240 fi
10241 ;;
10242 pw32*)
10243 # pw32 DLLs use 'pw' prefix rather than 'lib'
10244 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10245 ;;
10246 esac
10247 ;;
10248
10249 *)
10250 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10251 ;;
10252 esac
10253 dynamic_linker='Win32 ld.exe'
10254 # FIXME: first we should search . and the directory the executable is in
10255 shlibpath_var=PATH
10256 ;;
10257
10258darwin* | rhapsody*)
10259 dynamic_linker="$host_os dyld"
10260 version_type=darwin
10261 need_lib_prefix=no
10262 need_version=no
10263 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10264 soname_spec='${libname}${release}${major}$shared_ext'
10265 shlibpath_overrides_runpath=yes
10266 shlibpath_var=DYLD_LIBRARY_PATH
10267 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10268
10269 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10270 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10271 ;;
10272
10273dgux*)
10274 version_type=linux
10275 need_lib_prefix=no
10276 need_version=no
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 ;;
10281
10282freebsd1*)
10283 dynamic_linker=no
10284 ;;
10285
10286freebsd* | dragonfly*)
10287 # DragonFly does not have aout. When/if they implement a new
10288 # versioning mechanism, adjust this.
10289 if test -x /usr/bin/objformat; then
10290 objformat=`/usr/bin/objformat`
10291 else
10292 case $host_os in
10293 freebsd[123]*) objformat=aout ;;
10294 *) objformat=elf ;;
10295 esac
10296 fi
10297 version_type=freebsd-$objformat
10298 case $version_type in
10299 freebsd-elf*)
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10301 need_version=no
10302 need_lib_prefix=no
10303 ;;
10304 freebsd-*)
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10306 need_version=yes
10307 ;;
10308 esac
10309 shlibpath_var=LD_LIBRARY_PATH
10310 case $host_os in
10311 freebsd2*)
10312 shlibpath_overrides_runpath=yes
10313 ;;
10314 freebsd3.[01]* | freebsdelf3.[01]*)
10315 shlibpath_overrides_runpath=yes
10316 hardcode_into_libs=yes
10317 ;;
10318 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10319 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10320 shlibpath_overrides_runpath=no
10321 hardcode_into_libs=yes
10322 ;;
10323 *) # from 4.6 on, and DragonFly
10324 shlibpath_overrides_runpath=yes
10325 hardcode_into_libs=yes
10326 ;;
10327 esac
10328 ;;
10329
10330gnu*)
10331 version_type=linux
10332 need_lib_prefix=no
10333 need_version=no
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10335 soname_spec='${libname}${release}${shared_ext}$major'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 hardcode_into_libs=yes
10338 ;;
10339
10340hpux9* | hpux10* | hpux11*)
10341 # Give a soname corresponding to the major version so that dld.sl refuses to
10342 # link against other versions.
10343 version_type=sunos
10344 need_lib_prefix=no
10345 need_version=no
10346 case $host_cpu in
10347 ia64*)
10348 shrext_cmds='.so'
10349 hardcode_into_libs=yes
10350 dynamic_linker="$host_os dld.so"
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 if test "X$HPUX_IA64_MODE" = X32; then
10356 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10357 else
10358 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10359 fi
10360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10361 ;;
10362 hppa*64*)
10363 shrext_cmds='.sl'
10364 hardcode_into_libs=yes
10365 dynamic_linker="$host_os dld.sl"
10366 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10372 ;;
10373 *)
10374 shrext_cmds='.sl'
10375 dynamic_linker="$host_os dld.sl"
10376 shlibpath_var=SHLIB_PATH
10377 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 ;;
10381 esac
10382 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10383 postinstall_cmds='chmod 555 $lib'
10384 ;;
10385
10386interix[3-9]*)
10387 version_type=linux
10388 need_lib_prefix=no
10389 need_version=no
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10393 shlibpath_var=LD_LIBRARY_PATH
10394 shlibpath_overrides_runpath=no
10395 hardcode_into_libs=yes
10396 ;;
10397
10398irix5* | irix6* | nonstopux*)
10399 case $host_os in
10400 nonstopux*) version_type=nonstopux ;;
10401 *)
10402 if test "$lt_cv_prog_gnu_ld" = yes; then
10403 version_type=linux
10404 else
10405 version_type=irix
10406 fi ;;
10407 esac
10408 need_lib_prefix=no
10409 need_version=no
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10412 case $host_os in
10413 irix5* | nonstopux*)
10414 libsuff= shlibsuff=
10415 ;;
10416 *)
10417 case $LD in # libtool.m4 will add one of these switches to LD
10418 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10419 libsuff= shlibsuff= libmagic=32-bit;;
10420 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10421 libsuff=32 shlibsuff=N32 libmagic=N32;;
10422 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10423 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10424 *) libsuff= shlibsuff= libmagic=never-match;;
10425 esac
10426 ;;
10427 esac
10428 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10429 shlibpath_overrides_runpath=no
10430 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10431 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10432 hardcode_into_libs=yes
10433 ;;
10434
10435# No shared lib support for Linux oldld, aout, or coff.
10436linux*oldld* | linux*aout* | linux*coff*)
10437 dynamic_linker=no
10438 ;;
10439
10440# This must be Linux ELF.
10441linux* | k*bsd*-gnu)
10442 version_type=linux
10443 need_lib_prefix=no
10444 need_version=no
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=no
39144654 10450
d7040cdb 10451 # Some binutils ld are patched to set DT_RUNPATH
39144654
RW
10452 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454else
10455 lt_cv_shlibpath_overrides_runpath=no
10456 save_LDFLAGS=$LDFLAGS
10457 save_libdir=$libdir
10458 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10459 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10460 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10461/* confdefs.h. */
10462_ACEOF
10463cat confdefs.h >>conftest.$ac_ext
10464cat >>conftest.$ac_ext <<_ACEOF
10465/* end confdefs.h. */
10466
10467int
10468main ()
10469{
10470
10471 ;
10472 return 0;
10473}
10474_ACEOF
10475rm -f conftest.$ac_objext conftest$ac_exeext
10476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>conftest.er1
10478 ac_status=$?
10479 grep -v '^ *+' conftest.er1 >conftest.err
10480 rm -f conftest.er1
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } &&
7357c5b6
AM
10484 { ac_try='test -z "$ac_c_werror_flag"
10485 || test ! -s conftest.err'
d7040cdb
SE
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; } &&
10491 { ac_try='test -s conftest$ac_exeext'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; }; then
718a6fd8 10497 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
39144654 10498 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb
SE
10499fi
10500
10501else
10502 echo "$as_me: failed program was:" >&5
10503sed 's/^/| /' conftest.$ac_ext >&5
10504
10505fi
10506rm -f conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10508 LDFLAGS=$save_LDFLAGS
10509 libdir=$save_libdir
10510
10511fi
10512
10513 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10514
10515 # This implies no fast_install, which is unacceptable.
10516 # Some rework will be needed to allow for fast_install
10517 # before this can be enabled.
10518 hardcode_into_libs=yes
10519
10520 # Append ld.so.conf contents to the search path
10521 if test -f /etc/ld.so.conf; then
718a6fd8 10522 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
10523 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10524 fi
10525
10526 # We used to test for /lib/ld.so.1 and disable shared libraries on
10527 # powerpc, because MkLinux only supported shared libraries with the
10528 # GNU dynamic linker. Since this was broken with cross compilers,
10529 # most powerpc-linux boxes support dynamic linking these days and
10530 # people can always --disable-shared, the test was removed, and we
10531 # assume the GNU/Linux dynamic linker is in use.
10532 dynamic_linker='GNU/Linux ld.so'
10533 ;;
10534
10535netbsd*)
10536 version_type=sunos
10537 need_lib_prefix=no
10538 need_version=no
10539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10542 dynamic_linker='NetBSD (a.out) ld.so'
10543 else
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 dynamic_linker='NetBSD ld.elf_so'
10547 fi
10548 shlibpath_var=LD_LIBRARY_PATH
10549 shlibpath_overrides_runpath=yes
10550 hardcode_into_libs=yes
10551 ;;
10552
10553newsos6)
10554 version_type=linux
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 shlibpath_overrides_runpath=yes
10558 ;;
10559
10560*nto* | *qnx*)
10561 version_type=qnx
10562 need_lib_prefix=no
10563 need_version=no
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 shlibpath_var=LD_LIBRARY_PATH
10567 shlibpath_overrides_runpath=no
10568 hardcode_into_libs=yes
10569 dynamic_linker='ldqnx.so'
10570 ;;
10571
10572openbsd*)
10573 version_type=sunos
10574 sys_lib_dlsearch_path_spec="/usr/lib"
10575 need_lib_prefix=no
10576 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10577 case $host_os in
10578 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10579 *) need_version=no ;;
10580 esac
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10585 case $host_os in
10586 openbsd2.[89] | openbsd2.[89].*)
10587 shlibpath_overrides_runpath=no
10588 ;;
10589 *)
10590 shlibpath_overrides_runpath=yes
10591 ;;
10592 esac
10593 else
10594 shlibpath_overrides_runpath=yes
10595 fi
10596 ;;
10597
10598os2*)
10599 libname_spec='$name'
10600 shrext_cmds=".dll"
10601 need_lib_prefix=no
10602 library_names_spec='$libname${shared_ext} $libname.a'
10603 dynamic_linker='OS/2 ld.exe'
10604 shlibpath_var=LIBPATH
10605 ;;
10606
10607osf3* | osf4* | osf5*)
10608 version_type=osf
10609 need_lib_prefix=no
10610 need_version=no
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10615 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10616 ;;
10617
10618rdos*)
10619 dynamic_linker=no
10620 ;;
10621
10622solaris*)
10623 version_type=linux
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=yes
10630 hardcode_into_libs=yes
10631 # ldd complains unless libraries are executable
10632 postinstall_cmds='chmod +x $lib'
10633 ;;
10634
10635sunos4*)
10636 version_type=sunos
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10638 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10641 if test "$with_gnu_ld" = yes; then
10642 need_lib_prefix=no
10643 fi
10644 need_version=yes
10645 ;;
10646
10647sysv4 | sysv4.3*)
10648 version_type=linux
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 case $host_vendor in
10653 sni)
10654 shlibpath_overrides_runpath=no
10655 need_lib_prefix=no
10656 runpath_var=LD_RUN_PATH
10657 ;;
10658 siemens)
10659 need_lib_prefix=no
10660 ;;
10661 motorola)
10662 need_lib_prefix=no
10663 need_version=no
10664 shlibpath_overrides_runpath=no
10665 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10666 ;;
10667 esac
10668 ;;
10669
10670sysv4*MP*)
10671 if test -d /usr/nec ;then
10672 version_type=linux
10673 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10674 soname_spec='$libname${shared_ext}.$major'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 fi
10677 ;;
10678
10679sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10680 version_type=freebsd-elf
10681 need_lib_prefix=no
10682 need_version=no
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 shlibpath_overrides_runpath=yes
10687 hardcode_into_libs=yes
10688 if test "$with_gnu_ld" = yes; then
10689 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10690 else
10691 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10692 case $host_os in
10693 sco3.2v5*)
10694 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10695 ;;
10696 esac
10697 fi
10698 sys_lib_dlsearch_path_spec='/usr/lib'
10699 ;;
10700
10701tpf*)
10702 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10703 version_type=linux
10704 need_lib_prefix=no
10705 need_version=no
718a6fd8 10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=no
10709 hardcode_into_libs=yes
10710 ;;
10711
10712uts4*)
10713 version_type=linux
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 ;;
10718
10719*)
10720 dynamic_linker=no
10721 ;;
10722esac
10723echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10724echo "${ECHO_T}$dynamic_linker" >&6
10725test "$dynamic_linker" = no && can_build_shared=no
10726
10727variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10728if test "$GCC" = yes; then
10729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10730fi
10731
718a6fd8
SE
10732if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10733 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10734fi
10735if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10736 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10737fi
10738
d7040cdb
SE
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
10825 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10826echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10827hardcode_action=
10828if test -n "$hardcode_libdir_flag_spec" ||
10829 test -n "$runpath_var" ||
10830 test "X$hardcode_automatic" = "Xyes" ; then
10831
10832 # We can hardcode non-existent directories.
10833 if test "$hardcode_direct" != no &&
10834 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10835 # have to relink, otherwise we might link with an installed library
10836 # when we should be linking with a yet-to-be-installed one
10837 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10838 test "$hardcode_minus_L" != no; then
10839 # Linking always hardcodes the temporary library directory.
10840 hardcode_action=relink
10841 else
10842 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10843 hardcode_action=immediate
10844 fi
10845else
10846 # We cannot hardcode anything, or else we can only hardcode existing
10847 # directories.
10848 hardcode_action=unsupported
10849fi
10850echo "$as_me:$LINENO: result: $hardcode_action" >&5
10851echo "${ECHO_T}$hardcode_action" >&6
10852
10853if test "$hardcode_action" = relink ||
10854 test "$inherit_rpath" = yes; then
10855 # Fast installation is not supported
10856 enable_fast_install=no
10857elif test "$shlibpath_overrides_runpath" = yes ||
10858 test "$enable_shared" = no; then
10859 # Fast installation is not necessary
10860 enable_fast_install=needless
10861fi
10862
10863
10864
10865
10866
10867
10868 if test "x$enable_dlopen" != xyes; then
10869 enable_dlopen=unknown
10870 enable_dlopen_self=unknown
10871 enable_dlopen_self_static=unknown
10872else
10873 lt_cv_dlopen=no
10874 lt_cv_dlopen_libs=
10875
10876 case $host_os in
10877 beos*)
10878 lt_cv_dlopen="load_add_on"
10879 lt_cv_dlopen_libs=
10880 lt_cv_dlopen_self=yes
10881 ;;
10882
718a6fd8 10883 mingw* | pw32* | cegcc*)
d7040cdb
SE
10884 lt_cv_dlopen="LoadLibrary"
10885 lt_cv_dlopen_libs=
10886 ;;
10887
10888 cygwin*)
10889 lt_cv_dlopen="dlopen"
10890 lt_cv_dlopen_libs=
10891 ;;
10892
10893 darwin*)
10894 # if libdl is installed we need to link against it
10895 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10896echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10897if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10899else
10900 ac_check_lib_save_LIBS=$LIBS
10901LIBS="-ldl $LIBS"
10902cat >conftest.$ac_ext <<_ACEOF
10903/* confdefs.h. */
10904_ACEOF
10905cat confdefs.h >>conftest.$ac_ext
10906cat >>conftest.$ac_ext <<_ACEOF
10907/* end confdefs.h. */
10908
10909/* Override any gcc2 internal prototype to avoid an error. */
10910#ifdef __cplusplus
10911extern "C"
10912#endif
10913/* We use char because int might match the return type of a gcc2
10914 builtin and then its argument prototype would still apply. */
10915char dlopen ();
10916int
10917main ()
10918{
10919dlopen ();
10920 ;
10921 return 0;
10922}
10923_ACEOF
10924rm -f conftest.$ac_objext conftest$ac_exeext
10925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926 (eval $ac_link) 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
7357c5b6
AM
10933 { ac_try='test -z "$ac_c_werror_flag"
10934 || test ! -s conftest.err'
d7040cdb
SE
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest$ac_exeext'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 ac_cv_lib_dl_dlopen=yes
10947else
10948 echo "$as_me: failed program was:" >&5
10949sed 's/^/| /' conftest.$ac_ext >&5
10950
10951ac_cv_lib_dl_dlopen=no
10952fi
10953rm -f conftest.err conftest.$ac_objext \
10954 conftest$ac_exeext conftest.$ac_ext
10955LIBS=$ac_check_lib_save_LIBS
10956fi
10957echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10958echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10959if test $ac_cv_lib_dl_dlopen = yes; then
10960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10961else
10962
10963 lt_cv_dlopen="dyld"
10964 lt_cv_dlopen_libs=
10965 lt_cv_dlopen_self=yes
10966
10967fi
10968
10969 ;;
10970
10971 *)
10972 echo "$as_me:$LINENO: checking for shl_load" >&5
10973echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10974if test "${ac_cv_func_shl_load+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976else
10977 cat >conftest.$ac_ext <<_ACEOF
10978/* confdefs.h. */
10979_ACEOF
10980cat confdefs.h >>conftest.$ac_ext
10981cat >>conftest.$ac_ext <<_ACEOF
10982/* end confdefs.h. */
10983/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10985#define shl_load innocuous_shl_load
10986
10987/* System header to define __stub macros and hopefully few prototypes,
10988 which can conflict with char shl_load (); below.
10989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10990 <limits.h> exists even on freestanding compilers. */
10991
10992#ifdef __STDC__
10993# include <limits.h>
10994#else
10995# include <assert.h>
10996#endif
10997
10998#undef shl_load
10999
11000/* Override any gcc2 internal prototype to avoid an error. */
11001#ifdef __cplusplus
11002extern "C"
11003{
11004#endif
11005/* We use char because int might match the return type of a gcc2
11006 builtin and then its argument prototype would still apply. */
11007char shl_load ();
11008/* The GNU C library defines this for functions which it implements
11009 to always fail with ENOSYS. Some functions are actually named
11010 something starting with __ and the normal name is an alias. */
11011#if defined (__stub_shl_load) || defined (__stub___shl_load)
11012choke me
11013#else
11014char (*f) () = shl_load;
11015#endif
11016#ifdef __cplusplus
11017}
11018#endif
11019
11020int
11021main ()
11022{
11023return f != shl_load;
11024 ;
11025 return 0;
11026}
11027_ACEOF
11028rm -f conftest.$ac_objext conftest$ac_exeext
11029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11030 (eval $ac_link) 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
7357c5b6
AM
11037 { ac_try='test -z "$ac_c_werror_flag"
11038 || test ! -s conftest.err'
d7040cdb
SE
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest$ac_exeext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 ac_cv_func_shl_load=yes
11051else
11052 echo "$as_me: failed program was:" >&5
11053sed 's/^/| /' conftest.$ac_ext >&5
11054
11055ac_cv_func_shl_load=no
11056fi
11057rm -f conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059fi
11060echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11061echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11062if test $ac_cv_func_shl_load = yes; then
11063 lt_cv_dlopen="shl_load"
11064else
11065 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11066echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11067if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069else
11070 ac_check_lib_save_LIBS=$LIBS
11071LIBS="-ldld $LIBS"
11072cat >conftest.$ac_ext <<_ACEOF
11073/* confdefs.h. */
11074_ACEOF
11075cat confdefs.h >>conftest.$ac_ext
11076cat >>conftest.$ac_ext <<_ACEOF
11077/* end confdefs.h. */
11078
11079/* Override any gcc2 internal prototype to avoid an error. */
11080#ifdef __cplusplus
11081extern "C"
11082#endif
11083/* We use char because int might match the return type of a gcc2
11084 builtin and then its argument prototype would still apply. */
11085char shl_load ();
11086int
11087main ()
11088{
11089shl_load ();
11090 ;
11091 return 0;
11092}
11093_ACEOF
11094rm -f conftest.$ac_objext conftest$ac_exeext
11095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11096 (eval $ac_link) 2>conftest.er1
11097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
7357c5b6
AM
11103 { ac_try='test -z "$ac_c_werror_flag"
11104 || test ! -s conftest.err'
d7040cdb
SE
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; } &&
11110 { ac_try='test -s conftest$ac_exeext'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11116 ac_cv_lib_dld_shl_load=yes
11117else
11118 echo "$as_me: failed program was:" >&5
11119sed 's/^/| /' conftest.$ac_ext >&5
11120
11121ac_cv_lib_dld_shl_load=no
11122fi
11123rm -f conftest.err conftest.$ac_objext \
11124 conftest$ac_exeext conftest.$ac_ext
11125LIBS=$ac_check_lib_save_LIBS
11126fi
11127echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11128echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11129if test $ac_cv_lib_dld_shl_load = yes; then
718a6fd8 11130 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11131else
11132 echo "$as_me:$LINENO: checking for dlopen" >&5
11133echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11134if test "${ac_cv_func_dlopen+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11136else
11137 cat >conftest.$ac_ext <<_ACEOF
11138/* confdefs.h. */
11139_ACEOF
11140cat confdefs.h >>conftest.$ac_ext
11141cat >>conftest.$ac_ext <<_ACEOF
11142/* end confdefs.h. */
11143/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11145#define dlopen innocuous_dlopen
11146
11147/* System header to define __stub macros and hopefully few prototypes,
11148 which can conflict with char dlopen (); below.
11149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11150 <limits.h> exists even on freestanding compilers. */
11151
11152#ifdef __STDC__
11153# include <limits.h>
11154#else
11155# include <assert.h>
11156#endif
11157
11158#undef dlopen
11159
11160/* Override any gcc2 internal prototype to avoid an error. */
11161#ifdef __cplusplus
11162extern "C"
11163{
11164#endif
11165/* We use char because int might match the return type of a gcc2
11166 builtin and then its argument prototype would still apply. */
11167char dlopen ();
11168/* The GNU C library defines this for functions which it implements
11169 to always fail with ENOSYS. Some functions are actually named
11170 something starting with __ and the normal name is an alias. */
11171#if defined (__stub_dlopen) || defined (__stub___dlopen)
11172choke me
11173#else
11174char (*f) () = dlopen;
11175#endif
11176#ifdef __cplusplus
11177}
11178#endif
11179
11180int
11181main ()
11182{
11183return f != dlopen;
11184 ;
11185 return 0;
11186}
11187_ACEOF
11188rm -f conftest.$ac_objext conftest$ac_exeext
11189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11190 (eval $ac_link) 2>conftest.er1
11191 ac_status=$?
11192 grep -v '^ *+' conftest.er1 >conftest.err
11193 rm -f conftest.er1
11194 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } &&
7357c5b6
AM
11197 { ac_try='test -z "$ac_c_werror_flag"
11198 || test ! -s conftest.err'
d7040cdb
SE
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11201 ac_status=$?
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; } &&
11204 { ac_try='test -s conftest$ac_exeext'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_cv_func_dlopen=yes
11211else
11212 echo "$as_me: failed program was:" >&5
11213sed 's/^/| /' conftest.$ac_ext >&5
11214
11215ac_cv_func_dlopen=no
11216fi
11217rm -f conftest.err conftest.$ac_objext \
11218 conftest$ac_exeext conftest.$ac_ext
11219fi
11220echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11221echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11222if test $ac_cv_func_dlopen = yes; then
11223 lt_cv_dlopen="dlopen"
11224else
11225 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11226echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11227if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229else
11230 ac_check_lib_save_LIBS=$LIBS
11231LIBS="-ldl $LIBS"
11232cat >conftest.$ac_ext <<_ACEOF
11233/* confdefs.h. */
11234_ACEOF
11235cat confdefs.h >>conftest.$ac_ext
11236cat >>conftest.$ac_ext <<_ACEOF
11237/* end confdefs.h. */
11238
11239/* Override any gcc2 internal prototype to avoid an error. */
11240#ifdef __cplusplus
11241extern "C"
11242#endif
11243/* We use char because int might match the return type of a gcc2
11244 builtin and then its argument prototype would still apply. */
11245char dlopen ();
11246int
11247main ()
11248{
11249dlopen ();
11250 ;
11251 return 0;
11252}
11253_ACEOF
11254rm -f conftest.$ac_objext conftest$ac_exeext
11255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>conftest.er1
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
7357c5b6
AM
11263 { ac_try='test -z "$ac_c_werror_flag"
11264 || test ! -s conftest.err'
d7040cdb
SE
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try='test -s conftest$ac_exeext'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 ac_cv_lib_dl_dlopen=yes
11277else
11278 echo "$as_me: failed program was:" >&5
11279sed 's/^/| /' conftest.$ac_ext >&5
11280
11281ac_cv_lib_dl_dlopen=no
11282fi
11283rm -f conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
11285LIBS=$ac_check_lib_save_LIBS
11286fi
11287echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11288echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11289if test $ac_cv_lib_dl_dlopen = yes; then
11290 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11291else
11292 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11293echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11294if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11296else
11297 ac_check_lib_save_LIBS=$LIBS
11298LIBS="-lsvld $LIBS"
11299cat >conftest.$ac_ext <<_ACEOF
11300/* confdefs.h. */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h. */
11305
11306/* Override any gcc2 internal prototype to avoid an error. */
11307#ifdef __cplusplus
11308extern "C"
11309#endif
11310/* We use char because int might match the return type of a gcc2
11311 builtin and then its argument prototype would still apply. */
11312char dlopen ();
11313int
11314main ()
11315{
11316dlopen ();
11317 ;
11318 return 0;
11319}
11320_ACEOF
11321rm -f conftest.$ac_objext conftest$ac_exeext
11322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11323 (eval $ac_link) 2>conftest.er1
11324 ac_status=$?
11325 grep -v '^ *+' conftest.er1 >conftest.err
11326 rm -f conftest.er1
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } &&
7357c5b6
AM
11330 { ac_try='test -z "$ac_c_werror_flag"
11331 || test ! -s conftest.err'
d7040cdb
SE
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; } &&
11337 { ac_try='test -s conftest$ac_exeext'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 ac_cv_lib_svld_dlopen=yes
11344else
11345 echo "$as_me: failed program was:" >&5
11346sed 's/^/| /' conftest.$ac_ext >&5
11347
11348ac_cv_lib_svld_dlopen=no
11349fi
11350rm -f conftest.err conftest.$ac_objext \
11351 conftest$ac_exeext conftest.$ac_ext
11352LIBS=$ac_check_lib_save_LIBS
11353fi
11354echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11355echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11356if test $ac_cv_lib_svld_dlopen = yes; then
11357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11358else
11359 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11360echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11361if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11363else
11364 ac_check_lib_save_LIBS=$LIBS
11365LIBS="-ldld $LIBS"
11366cat >conftest.$ac_ext <<_ACEOF
11367/* confdefs.h. */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h. */
11372
11373/* Override any gcc2 internal prototype to avoid an error. */
11374#ifdef __cplusplus
11375extern "C"
11376#endif
11377/* We use char because int might match the return type of a gcc2
11378 builtin and then its argument prototype would still apply. */
11379char dld_link ();
11380int
11381main ()
11382{
11383dld_link ();
11384 ;
11385 return 0;
11386}
11387_ACEOF
11388rm -f conftest.$ac_objext conftest$ac_exeext
11389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11390 (eval $ac_link) 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
7357c5b6
AM
11397 { ac_try='test -z "$ac_c_werror_flag"
11398 || test ! -s conftest.err'
d7040cdb
SE
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try='test -s conftest$ac_exeext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_cv_lib_dld_dld_link=yes
11411else
11412 echo "$as_me: failed program was:" >&5
11413sed 's/^/| /' conftest.$ac_ext >&5
11414
11415ac_cv_lib_dld_dld_link=no
11416fi
11417rm -f conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419LIBS=$ac_check_lib_save_LIBS
11420fi
11421echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11422echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11423if test $ac_cv_lib_dld_dld_link = yes; then
718a6fd8 11424 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11425fi
11426
11427
11428fi
11429
11430
11431fi
11432
11433
11434fi
11435
11436
11437fi
11438
11439
11440fi
11441
11442 ;;
11443 esac
11444
11445 if test "x$lt_cv_dlopen" != xno; then
11446 enable_dlopen=yes
20e95c23 11447 else
d7040cdb 11448 enable_dlopen=no
252b5132 11449 fi
5464f5a1 11450
d7040cdb
SE
11451 case $lt_cv_dlopen in
11452 dlopen)
11453 save_CPPFLAGS="$CPPFLAGS"
11454 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11455
11456 save_LDFLAGS="$LDFLAGS"
11457 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11458
11459 save_LIBS="$LIBS"
11460 LIBS="$lt_cv_dlopen_libs $LIBS"
11461
11462 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11463echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11464if test "${lt_cv_dlopen_self+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 11466else
d7040cdb
SE
11467 if test "$cross_compiling" = yes; then :
11468 lt_cv_dlopen_self=cross
11469else
11470 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11471 lt_status=$lt_dlunknown
11472 cat > conftest.$ac_ext <<_LT_EOF
39144654 11473#line 11473 "configure"
d7040cdb
SE
11474#include "confdefs.h"
11475
11476#if HAVE_DLFCN_H
11477#include <dlfcn.h>
11478#endif
11479
11480#include <stdio.h>
11481
11482#ifdef RTLD_GLOBAL
11483# define LT_DLGLOBAL RTLD_GLOBAL
11484#else
11485# ifdef DL_GLOBAL
11486# define LT_DLGLOBAL DL_GLOBAL
11487# else
11488# define LT_DLGLOBAL 0
11489# endif
11490#endif
11491
11492/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11493 find out it does not work in some platform. */
11494#ifndef LT_DLLAZY_OR_NOW
11495# ifdef RTLD_LAZY
11496# define LT_DLLAZY_OR_NOW RTLD_LAZY
11497# else
11498# ifdef DL_LAZY
11499# define LT_DLLAZY_OR_NOW DL_LAZY
11500# else
11501# ifdef RTLD_NOW
11502# define LT_DLLAZY_OR_NOW RTLD_NOW
11503# else
11504# ifdef DL_NOW
11505# define LT_DLLAZY_OR_NOW DL_NOW
11506# else
11507# define LT_DLLAZY_OR_NOW 0
11508# endif
11509# endif
11510# endif
11511# endif
11512#endif
11513
d7040cdb
SE
11514void fnord() { int i=42;}
11515int main ()
11516{
11517 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11518 int status = $lt_dlunknown;
11519
11520 if (self)
11521 {
11522 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11523 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11524 /* dlclose (self); */
11525 }
11526 else
11527 puts (dlerror ());
11528
718a6fd8 11529 return status;
d7040cdb
SE
11530}
11531_LT_EOF
11532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11533 (eval $ac_link) 2>&5
11534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11537 (./conftest; exit; ) >&5 2>/dev/null
11538 lt_status=$?
11539 case x$lt_status in
11540 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11541 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11542 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11543 esac
11544 else :
11545 # compilation failed
11546 lt_cv_dlopen_self=no
11547 fi
252b5132 11548fi
d7040cdb 11549rm -fr conftest*
20e95c23 11550
d7040cdb
SE
11551
11552fi
11553echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11554echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11555
11556 if test "x$lt_cv_dlopen_self" = xyes; then
11557 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11558 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11559echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11560if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562else
d7040cdb
SE
11563 if test "$cross_compiling" = yes; then :
11564 lt_cv_dlopen_self_static=cross
11565else
11566 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11567 lt_status=$lt_dlunknown
11568 cat > conftest.$ac_ext <<_LT_EOF
39144654 11569#line 11569 "configure"
d7040cdb
SE
11570#include "confdefs.h"
11571
11572#if HAVE_DLFCN_H
11573#include <dlfcn.h>
11574#endif
11575
11576#include <stdio.h>
11577
11578#ifdef RTLD_GLOBAL
11579# define LT_DLGLOBAL RTLD_GLOBAL
11580#else
11581# ifdef DL_GLOBAL
11582# define LT_DLGLOBAL DL_GLOBAL
11583# else
11584# define LT_DLGLOBAL 0
11585# endif
11586#endif
11587
11588/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11589 find out it does not work in some platform. */
11590#ifndef LT_DLLAZY_OR_NOW
11591# ifdef RTLD_LAZY
11592# define LT_DLLAZY_OR_NOW RTLD_LAZY
11593# else
11594# ifdef DL_LAZY
11595# define LT_DLLAZY_OR_NOW DL_LAZY
11596# else
11597# ifdef RTLD_NOW
11598# define LT_DLLAZY_OR_NOW RTLD_NOW
11599# else
11600# ifdef DL_NOW
11601# define LT_DLLAZY_OR_NOW DL_NOW
11602# else
11603# define LT_DLLAZY_OR_NOW 0
11604# endif
11605# endif
11606# endif
11607# endif
11608#endif
11609
d7040cdb
SE
11610void fnord() { int i=42;}
11611int main ()
11612{
11613 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11614 int status = $lt_dlunknown;
11615
11616 if (self)
11617 {
11618 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11619 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11620 /* dlclose (self); */
11621 }
11622 else
11623 puts (dlerror ());
11624
718a6fd8 11625 return status;
d7040cdb
SE
11626}
11627_LT_EOF
11628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11629 (eval $ac_link) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11633 (./conftest; exit; ) >&5 2>/dev/null
11634 lt_status=$?
11635 case x$lt_status in
11636 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11637 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11638 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11639 esac
11640 else :
11641 # compilation failed
11642 lt_cv_dlopen_self_static=no
11643 fi
11644fi
11645rm -fr conftest*
11646
11647
11648fi
11649echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11650echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11651 fi
11652
11653 CPPFLAGS="$save_CPPFLAGS"
11654 LDFLAGS="$save_LDFLAGS"
11655 LIBS="$save_LIBS"
11656 ;;
11657 esac
11658
11659 case $lt_cv_dlopen_self in
11660 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11661 *) enable_dlopen_self=unknown ;;
11662 esac
11663
11664 case $lt_cv_dlopen_self_static in
11665 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11666 *) enable_dlopen_self_static=unknown ;;
11667 esac
11668fi
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686striplib=
11687old_striplib=
11688echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11689echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11690if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11691 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11692 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11693 echo "$as_me:$LINENO: result: yes" >&5
11694echo "${ECHO_T}yes" >&6
11695else
11696# FIXME - insert some real tests, host_os isn't really good enough
11697 case $host_os in
11698 darwin*)
11699 if test -n "$STRIP" ; then
11700 striplib="$STRIP -x"
11701 old_striplib="$STRIP -S"
11702 echo "$as_me:$LINENO: result: yes" >&5
11703echo "${ECHO_T}yes" >&6
11704 else
11705 echo "$as_me:$LINENO: result: no" >&5
11706echo "${ECHO_T}no" >&6
11707 fi
20e95c23
DJ
11708 ;;
11709 *)
d7040cdb
SE
11710 echo "$as_me:$LINENO: result: no" >&5
11711echo "${ECHO_T}no" >&6
11712 ;;
11713 esac
11714fi
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727 # Report which library types will actually be built
11728 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11729echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11730 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11731echo "${ECHO_T}$can_build_shared" >&6
11732
11733 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11734echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11735 test "$can_build_shared" = "no" && enable_shared=no
11736
11737 # On AIX, shared libraries and static libraries use the same namespace, and
11738 # are all built from PIC.
11739 case $host_os in
11740 aix3*)
11741 test "$enable_shared" = yes && enable_static=no
11742 if test -n "$RANLIB"; then
11743 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11744 postinstall_cmds='$RANLIB $lib'
11745 fi
11746 ;;
11747
e81819a5 11748 aix[4-9]*)
d7040cdb
SE
11749 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11750 test "$enable_shared" = yes && enable_static=no
11751 fi
20e95c23 11752 ;;
d7040cdb
SE
11753 esac
11754 echo "$as_me:$LINENO: result: $enable_shared" >&5
11755echo "${ECHO_T}$enable_shared" >&6
11756
11757 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11758echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11759 # Make sure either enable_shared or enable_static is yes.
11760 test "$enable_shared" = yes || enable_static=yes
11761 echo "$as_me:$LINENO: result: $enable_static" >&5
11762echo "${ECHO_T}$enable_static" >&6
11763
11764
11765
11766
11767fi
11768ac_ext=c
11769ac_cpp='$CPP $CPPFLAGS'
11770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772ac_compiler_gnu=$ac_cv_c_compiler_gnu
11773
11774CC="$lt_save_CC"
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788 ac_config_commands="$ac_config_commands libtool"
11789
11790
11791
11792
11793# Only expand once:
11794
11795
11796
11797# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11798if test "${enable_64_bit_bfd+set}" = set; then
11799 enableval="$enable_64_bit_bfd"
11800 case "${enableval}" in
11801 yes) want64=true ;;
11802 no) want64=false ;;
11803 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11804echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11805 { (exit 1); exit 1; }; } ;;
11806esac
11807else
11808 want64=false
504b7d20
NC
11809fi;
11810# Check whether --enable-targets or --disable-targets was given.
d7040cdb
SE
11811if test "${enable_targets+set}" = set; then
11812 enableval="$enable_targets"
11813 case "${enableval}" in
11814 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11815echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11816 { (exit 1); exit 1; }; }
11817 ;;
11818 no) enable_targets= ;;
11819 *) enable_targets=$enableval ;;
11820esac
504b7d20
NC
11821fi;
11822# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
d7040cdb
SE
11823if test "${enable_commonbfdlib+set}" = set; then
11824 enableval="$enable_commonbfdlib"
11825 case "${enableval}" in
11826 yes) commonbfdlib=true ;;
11827 no) commonbfdlib=false ;;
11828 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11829echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11830 { (exit 1); exit 1; }; } ;;
11831esac
11832fi;
504b7d20 11833
d7040cdb
SE
11834# Check whether --with-mmap or --without-mmap was given.
11835if test "${with_mmap+set}" = set; then
11836 withval="$with_mmap"
11837 case "${withval}" in
11838 yes) want_mmap=true ;;
11839 no) want_mmap=false ;;
11840 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11841echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11842 { (exit 1); exit 1; }; } ;;
20e95c23 11843esac
252b5132 11844else
d7040cdb
SE
11845 want_mmap=false
11846fi;
11847# Check whether --enable-secureplt or --disable-secureplt was given.
11848if test "${enable_secureplt+set}" = set; then
11849 enableval="$enable_secureplt"
11850 case "${enableval}" in
11851 yes) use_secureplt=true ;;
11852 no) use_secureplt=false ;;
11853 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11854echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11855 { (exit 1); exit 1; }; } ;;
11856esac
252b5132 11857else
d7040cdb
SE
11858 use_secureplt=false
11859fi; if test $use_secureplt = true; then
11860
11861cat >>confdefs.h <<\_ACEOF
11862#define USE_SECUREPLT 1
11863_ACEOF
5464f5a1 11864
252b5132 11865fi
20e95c23 11866
0d4a1476
AS
11867DEBUGDIR=${libdir}/debug
11868
0d4a1476
AS
11869# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11870if test "${with_separate_debug_dir+set}" = set; then
11871 withval="$with_separate_debug_dir"
11872 DEBUGDIR="${withval}"
11873fi;
11874
11875
504b7d20
NC
11876# Check to see if we should allow the generation of
11877# symbols with the ELF standard's STT_COMMON type.
11878# Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11879if test "${enable_elf_stt_common+set}" = set; then
11880 enableval="$enable_elf_stt_common"
11881 case "${enableval}" in
11882 yes) want_elf_stt_common=true ;;
11883 no) want_elf_stt_common=false ;;
11884 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11885echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11886 { (exit 1); exit 1; }; } ;;
11887 esac
11888else
11889 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
11890# test whether the loader supports the STT_COMMON type, but that would
11891# mean that built binaries could not be exported to older systems where
11892# the loader does not support it. So by default we always choose to
11893# disable this feature.
504b7d20 11894 want_elf_stt_common=false
504b7d20
NC
11895fi; if test $want_elf_stt_common = true; then
11896
11897cat >>confdefs.h <<\_ACEOF
11898#define USE_STT_COMMON 1
11899_ACEOF
11900
11901fi
11902
11903
d7040cdb 11904
d7040cdb
SE
11905# Check whether --with-pkgversion or --without-pkgversion was given.
11906if test "${with_pkgversion+set}" = set; then
11907 withval="$with_pkgversion"
11908 case "$withval" in
11909 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11910echo "$as_me: error: package version not specified" >&2;}
11911 { (exit 1); exit 1; }; } ;;
11912 no) PKGVERSION= ;;
11913 *) PKGVERSION="($withval) " ;;
11914 esac
252b5132 11915else
d7040cdb 11916 PKGVERSION="(GNU Binutils) "
252b5132 11917
d7040cdb 11918fi;
20e95c23
DJ
11919
11920
5464f5a1 11921
20e95c23 11922
d7040cdb
SE
11923# Check whether --with-bugurl or --without-bugurl was given.
11924if test "${with_bugurl+set}" = set; then
11925 withval="$with_bugurl"
11926 case "$withval" in
11927 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11928echo "$as_me: error: bug URL not specified" >&2;}
11929 { (exit 1); exit 1; }; } ;;
11930 no) BUGURL=
11931 ;;
11932 *) BUGURL="$withval"
11933 ;;
11934 esac
252b5132 11935else
d7040cdb
SE
11936 BUGURL="http://www.sourceware.org/bugzilla/"
11937
11938fi;
11939 case ${BUGURL} in
11940 "")
11941 REPORT_BUGS_TO=
11942 REPORT_BUGS_TEXI=
20e95c23
DJ
11943 ;;
11944 *)
d7040cdb
SE
11945 REPORT_BUGS_TO="<$BUGURL>"
11946 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 11947 ;;
d7040cdb
SE
11948 esac;
11949
11950
11951
11952
11953
11954GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11955
11956# Check whether --enable-werror or --disable-werror was given.
11957if test "${enable_werror+set}" = set; then
11958 enableval="$enable_werror"
11959 case "${enableval}" in
11960 yes | y) ERROR_ON_WARNING="yes" ;;
11961 no | n) ERROR_ON_WARNING="no" ;;
11962 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11963echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11964 { (exit 1); exit 1; }; } ;;
11965 esac
11966fi;
11967
bb8541b9
L
11968# Enable -Wno-format by default when using gcc on mingw
11969case "${host}" in
11970 *-*-mingw32*)
11971 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11972 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11973 fi
11974 ;;
11975 *) ;;
11976esac
11977
d7040cdb
SE
11978# Enable -Werror by default when using gcc
11979if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11980 ERROR_ON_WARNING=yes
11981fi
11982
11983NO_WERROR=
11984if test "${ERROR_ON_WARNING}" = yes ; then
11985 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11986 NO_WERROR="-Wno-error"
11987fi
11988
11989if test "${GCC}" = yes ; then
11990 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11991fi
11992
11993# Check whether --enable-build-warnings or --disable-build-warnings was given.
11994if test "${enable_build_warnings+set}" = set; then
11995 enableval="$enable_build_warnings"
11996 case "${enableval}" in
11997 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11998 no) if test "${GCC}" = yes ; then
11999 WARN_CFLAGS="-w"
12000 fi;;
12001 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12002 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12003 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12004 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12005 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 12006esac
d7040cdb
SE
12007fi;
12008
12009if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12010 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 12011fi
d7040cdb
SE
12012
12013
12014
12015
12016
12017 ac_config_headers="$ac_config_headers config.h:config.in"
12018
12019
12020if test -z "$target" ; then
12021 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
12022echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
12023 { (exit 1); exit 1; }; }
20e95c23
DJ
12024fi
12025
d7040cdb
SE
12026echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12027echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12028 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12029if test "${enable_maintainer_mode+set}" = set; then
12030 enableval="$enable_maintainer_mode"
12031 USE_MAINTAINER_MODE=$enableval
12032else
12033 USE_MAINTAINER_MODE=no
12034fi;
12035 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12036echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
12037
12038
d7040cdb
SE
12039if test $USE_MAINTAINER_MODE = yes; then
12040 MAINTAINER_MODE_TRUE=
12041 MAINTAINER_MODE_FALSE='#'
12042else
12043 MAINTAINER_MODE_TRUE='#'
12044 MAINTAINER_MODE_FALSE=
6be7c12c 12045fi
5464f5a1 12046
d7040cdb
SE
12047 MAINT=$MAINTAINER_MODE_TRUE
12048
12049
12050
12051
12052if false; then
12053 GENINSRC_NEVER_TRUE=
12054 GENINSRC_NEVER_FALSE='#'
20e95c23 12055else
d7040cdb
SE
12056 GENINSRC_NEVER_TRUE='#'
12057 GENINSRC_NEVER_FALSE=
5464f5a1 12058fi
5464f5a1 12059
d7040cdb
SE
12060 case ${build_alias} in
12061 "") build_noncanonical=${build} ;;
12062 *) build_noncanonical=${build_alias} ;;
20e95c23 12063esac
d7040cdb
SE
12064
12065 case ${host_alias} in
12066 "") host_noncanonical=${build_noncanonical} ;;
12067 *) host_noncanonical=${host_alias} ;;
12068esac
12069
12070 case ${target_alias} in
12071 "") target_noncanonical=${host_noncanonical} ;;
12072 *) target_noncanonical=${target_alias} ;;
12073esac
12074
12075echo "$as_me:$LINENO: checking whether to install libbfd" >&5
12076echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
12077 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
12078if test "${enable_install_libbfd+set}" = set; then
12079 enableval="$enable_install_libbfd"
12080 install_libbfd_p=$enableval
252b5132 12081else
d7040cdb
SE
12082 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12083 install_libbfd_p=yes
12084 else
12085 install_libbfd_p=no
12086 fi
12087fi;
12088 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
12089echo "${ECHO_T}$install_libbfd_p" >&6
12090
12091
12092if test $install_libbfd_p = yes; then
12093 INSTALL_LIBBFD_TRUE=
12094 INSTALL_LIBBFD_FALSE='#'
12095else
12096 INSTALL_LIBBFD_TRUE='#'
12097 INSTALL_LIBBFD_FALSE=
5464f5a1 12098fi
5464f5a1 12099
d7040cdb 12100 # Need _noncanonical variables for this.
5464f5a1 12101
5464f5a1 12102
d7040cdb
SE
12103
12104
12105 # libbfd.a is a host library containing target dependent code
12106 bfdlibdir='$(libdir)'
12107 bfdincludedir='$(includedir)'
12108 if test "${host}" != "${target}"; then
12109 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12110 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 12111 fi
6be7c12c 12112
5464f5a1 12113
5464f5a1
NN
12114
12115
5464f5a1 12116
ac48eca1 12117
d7040cdb
SE
12118host64=false
12119target64=false
12120bfd_default_target_size=32
252b5132 12121
d7040cdb 12122# host stuff:
20e95c23 12123
8cc9115f 12124ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id"
d7040cdb
SE
12125# If we haven't got the data from the intl directory,
12126# assume NLS is disabled.
12127USE_NLS=no
12128LIBINTL=
12129LIBINTL_DEP=
12130INCINTL=
12131XGETTEXT=
12132GMSGFMT=
12133POSUB=
12134
12135if test -f ../intl/config.intl; then
12136 . ../intl/config.intl
252b5132 12137fi
d7040cdb
SE
12138echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12139echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12140if test x"$USE_NLS" != xyes; then
12141 echo "$as_me:$LINENO: result: no" >&5
12142echo "${ECHO_T}no" >&6
12143else
12144 echo "$as_me:$LINENO: result: yes" >&5
12145echo "${ECHO_T}yes" >&6
5464f5a1 12146
d7040cdb
SE
12147cat >>confdefs.h <<\_ACEOF
12148#define ENABLE_NLS 1
12149_ACEOF
252b5132 12150
6be7c12c 12151
d7040cdb
SE
12152 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12153echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12154 # Look for .po and .gmo files in the source directory.
12155 CATALOGS=
12156 XLINGUAS=
12157 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12158 # If there aren't any .gmo files the shell will give us the
12159 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12160 # weeded out.
12161 case "$cat" in *\**)
12162 continue;;
12163 esac
12164 # The quadruple backslash is collapsed to a double backslash
12165 # by the backticks, then collapsed again by the double quotes,
12166 # leaving us with one backslash in the sed expression (right
12167 # before the dot that mustn't act as a wildcard).
12168 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12169 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12170 # The user is allowed to set LINGUAS to a list of languages to
12171 # install catalogs for. If it's empty that means "all of them."
12172 if test "x$LINGUAS" = x; then
12173 CATALOGS="$CATALOGS $cat"
12174 XLINGUAS="$XLINGUAS $lang"
12175 else
12176 case "$LINGUAS" in *$lang*)
12177 CATALOGS="$CATALOGS $cat"
12178 XLINGUAS="$XLINGUAS $lang"
12179 ;;
12180 esac
12181 fi
12182 done
12183 LINGUAS="$XLINGUAS"
12184 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12185echo "${ECHO_T}$LINGUAS" >&6
12186
252b5132 12187
d7040cdb 12188 DATADIRNAME=share
252b5132 12189
d7040cdb 12190 INSTOBJEXT=.mo
5464f5a1 12191
d7040cdb 12192 GENCAT=gencat
20e95c23 12193
d7040cdb 12194 CATOBJEXT=.gmo
5464f5a1 12195
20e95c23 12196fi
5464f5a1 12197
d7040cdb
SE
12198 MKINSTALLDIRS=
12199 if test -n "$ac_aux_dir"; then
12200 case "$ac_aux_dir" in
12201 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12202 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12203 esac
12204 fi
12205 if test -z "$MKINSTALLDIRS"; then
12206 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 12207 fi
5464f5a1 12208
5464f5a1 12209
d7040cdb
SE
12210
12211 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12212echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12213 # Check whether --enable-nls or --disable-nls was given.
12214if test "${enable_nls+set}" = set; then
12215 enableval="$enable_nls"
12216 USE_NLS=$enableval
252b5132 12217else
d7040cdb
SE
12218 USE_NLS=yes
12219fi;
12220 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12221echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 12222
252b5132 12223
5464f5a1 12224
252b5132 12225
d7040cdb
SE
12226
12227
12228# Prepare PATH_SEPARATOR.
12229# The user is always right.
12230if test "${PATH_SEPARATOR+set}" != set; then
12231 echo "#! /bin/sh" >conf$$.sh
12232 echo "exit 0" >>conf$$.sh
12233 chmod +x conf$$.sh
12234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12235 PATH_SEPARATOR=';'
20e95c23 12236 else
d7040cdb 12237 PATH_SEPARATOR=:
20e95c23 12238 fi
d7040cdb
SE
12239 rm -f conf$$.sh
12240fi
12241
12242# Find out how to test for executable files. Don't use a zero-byte file,
12243# as systems may use methods other than mode bits to determine executability.
12244cat >conf$$.file <<_ASEOF
12245#! /bin/sh
12246exit 0
12247_ASEOF
12248chmod +x conf$$.file
12249if test -x conf$$.file >/dev/null 2>&1; then
12250 ac_executable_p="test -x"
20e95c23 12251else
d7040cdb 12252 ac_executable_p="test -f"
20e95c23 12253fi
d7040cdb 12254rm -f conf$$.file
5464f5a1 12255
d7040cdb
SE
12256# Extract the first word of "msgfmt", so it can be a program name with args.
12257set dummy msgfmt; ac_word=$2
12258echo "$as_me:$LINENO: checking for $ac_word" >&5
12259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12260if test "${ac_cv_path_MSGFMT+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262else
12263 case "$MSGFMT" in
12264 [\\/]* | ?:[\\/]*)
12265 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12266 ;;
12267 *)
12268 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12269 for ac_dir in $PATH; do
12270 IFS="$ac_save_IFS"
12271 test -z "$ac_dir" && ac_dir=.
12272 for ac_exec_ext in '' $ac_executable_extensions; do
12273 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12274 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12275 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12276 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12277 break 2
12278 fi
12279 fi
12280 done
12281 done
12282 IFS="$ac_save_IFS"
12283 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12284 ;;
12285esac
5464f5a1 12286fi
d7040cdb
SE
12287MSGFMT="$ac_cv_path_MSGFMT"
12288if test "$MSGFMT" != ":"; then
12289 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12290echo "${ECHO_T}$MSGFMT" >&6
20e95c23 12291else
d7040cdb
SE
12292 echo "$as_me:$LINENO: result: no" >&5
12293echo "${ECHO_T}no" >&6
252b5132 12294fi
d7040cdb
SE
12295
12296 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12297set dummy gmsgfmt; ac_word=$2
12298echo "$as_me:$LINENO: checking for $ac_word" >&5
12299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12300if test "${ac_cv_path_GMSGFMT+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12302else
d7040cdb
SE
12303 case $GMSGFMT in
12304 [\\/]* | ?:[\\/]*)
12305 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12306 ;;
12307 *)
12308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12309for as_dir in $PATH
12310do
12311 IFS=$as_save_IFS
12312 test -z "$as_dir" && as_dir=.
12313 for ac_exec_ext in '' $ac_executable_extensions; do
12314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12315 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12317 break 2
12318 fi
12319done
12320done
5464f5a1 12321
d7040cdb
SE
12322 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12323 ;;
12324esac
252b5132 12325fi
d7040cdb 12326GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 12327
d7040cdb
SE
12328if test -n "$GMSGFMT"; then
12329 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12330echo "${ECHO_T}$GMSGFMT" >&6
252b5132 12331else
d7040cdb
SE
12332 echo "$as_me:$LINENO: result: no" >&5
12333echo "${ECHO_T}no" >&6
252b5132
RH
12334fi
12335
20e95c23
DJ
12336
12337
d7040cdb
SE
12338# Prepare PATH_SEPARATOR.
12339# The user is always right.
12340if test "${PATH_SEPARATOR+set}" != set; then
12341 echo "#! /bin/sh" >conf$$.sh
12342 echo "exit 0" >>conf$$.sh
12343 chmod +x conf$$.sh
12344 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12345 PATH_SEPARATOR=';'
12346 else
12347 PATH_SEPARATOR=:
12348 fi
12349 rm -f conf$$.sh
252b5132 12350fi
20e95c23 12351
d7040cdb
SE
12352# Find out how to test for executable files. Don't use a zero-byte file,
12353# as systems may use methods other than mode bits to determine executability.
12354cat >conf$$.file <<_ASEOF
12355#! /bin/sh
12356exit 0
12357_ASEOF
12358chmod +x conf$$.file
12359if test -x conf$$.file >/dev/null 2>&1; then
12360 ac_executable_p="test -x"
12361else
12362 ac_executable_p="test -f"
12363fi
12364rm -f conf$$.file
252b5132 12365
d7040cdb
SE
12366# Extract the first word of "xgettext", so it can be a program name with args.
12367set dummy xgettext; ac_word=$2
12368echo "$as_me:$LINENO: checking for $ac_word" >&5
12369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12370if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372else
d7040cdb
SE
12373 case "$XGETTEXT" in
12374 [\\/]* | ?:[\\/]*)
12375 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12376 ;;
12377 *)
12378 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12379 for ac_dir in $PATH; do
12380 IFS="$ac_save_IFS"
12381 test -z "$ac_dir" && ac_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12384 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12385 (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
12386 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12387 break 2
12388 fi
12389 fi
12390 done
12391 done
12392 IFS="$ac_save_IFS"
12393 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12394 ;;
12395esac
12396fi
12397XGETTEXT="$ac_cv_path_XGETTEXT"
12398if test "$XGETTEXT" != ":"; then
12399 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12400echo "${ECHO_T}$XGETTEXT" >&6
252b5132 12401else
d7040cdb
SE
12402 echo "$as_me:$LINENO: result: no" >&5
12403echo "${ECHO_T}no" >&6
252b5132
RH
12404fi
12405
d7040cdb 12406 rm -f messages.po
5464f5a1 12407
252b5132 12408
d7040cdb
SE
12409# Prepare PATH_SEPARATOR.
12410# The user is always right.
12411if test "${PATH_SEPARATOR+set}" != set; then
12412 echo "#! /bin/sh" >conf$$.sh
12413 echo "exit 0" >>conf$$.sh
12414 chmod +x conf$$.sh
12415 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12416 PATH_SEPARATOR=';'
12417 else
12418 PATH_SEPARATOR=:
12419 fi
12420 rm -f conf$$.sh
252b5132
RH
12421fi
12422
d7040cdb
SE
12423# Find out how to test for executable files. Don't use a zero-byte file,
12424# as systems may use methods other than mode bits to determine executability.
12425cat >conf$$.file <<_ASEOF
12426#! /bin/sh
12427exit 0
12428_ASEOF
12429chmod +x conf$$.file
12430if test -x conf$$.file >/dev/null 2>&1; then
12431 ac_executable_p="test -x"
5464f5a1 12432else
d7040cdb 12433 ac_executable_p="test -f"
20e95c23 12434fi
d7040cdb 12435rm -f conf$$.file
5464f5a1 12436
d7040cdb
SE
12437# Extract the first word of "msgmerge", so it can be a program name with args.
12438set dummy msgmerge; ac_word=$2
12439echo "$as_me:$LINENO: checking for $ac_word" >&5
12440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12441if test "${ac_cv_path_MSGMERGE+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443else
12444 case "$MSGMERGE" in
12445 [\\/]* | ?:[\\/]*)
12446 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12447 ;;
12448 *)
12449 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12450 for ac_dir in $PATH; do
12451 IFS="$ac_save_IFS"
12452 test -z "$ac_dir" && ac_dir=.
12453 for ac_exec_ext in '' $ac_executable_extensions; do
12454 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12455 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12456 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12457 break 2
12458 fi
12459 fi
12460 done
12461 done
12462 IFS="$ac_save_IFS"
12463 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12464 ;;
12465esac
5464f5a1 12466fi
d7040cdb
SE
12467MSGMERGE="$ac_cv_path_MSGMERGE"
12468if test "$MSGMERGE" != ":"; then
12469 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12470echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 12471else
d7040cdb
SE
12472 echo "$as_me:$LINENO: result: no" >&5
12473echo "${ECHO_T}no" >&6
12474fi
20e95c23 12475
5464f5a1 12476
d7040cdb
SE
12477 if test "$GMSGFMT" != ":"; then
12478 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12479 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12480 : ;
12481 else
12482 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12483 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12484echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12485 GMSGFMT=":"
12486 fi
12487 fi
252b5132 12488
d7040cdb
SE
12489 if test "$XGETTEXT" != ":"; then
12490 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12491 (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
12492 : ;
12493 else
12494 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12495echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12496 XGETTEXT=":"
12497 fi
12498 rm -f messages.po
12499 fi
6be7c12c 12500
d7040cdb 12501 ac_config_commands="$ac_config_commands default-1"
5464f5a1 12502
252b5132 12503
5464f5a1 12504
d7040cdb
SE
12505# Permit host specific settings.
12506. ${srcdir}/configure.host
12507
12508
12509# Find a good install program. We prefer a C program (faster),
12510# so one script is as good as another. But avoid the broken or
12511# incompatible versions:
12512# SysV /etc/install, /usr/sbin/install
12513# SunOS /usr/etc/install
12514# IRIX /sbin/install
12515# AIX /bin/install
12516# AmigaOS /C/install, which installs bootblocks on floppy discs
12517# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12518# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12519# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12520# OS/2's system install, which has a completely different semantic
12521# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 12522# Reject install programs that cannot install multiple files.
d7040cdb
SE
12523echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12524echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12525if test -z "$INSTALL"; then
12526if test "${ac_cv_path_install+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12528else
12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530for as_dir in $PATH
12531do
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 # Account for people who put trailing slashes in PATH elements.
12535case $as_dir/ in
12536 ./ | .// | /cC/* | \
12537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12538 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12539 /usr/ucb/* ) ;;
12540 *)
12541 # OSF1 and SCO ODT 3.0 have their own names for install.
12542 # Don't use installbsd from OSF since it installs stuff as root
12543 # by default.
12544 for ac_prog in ginstall scoinst install; do
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12547 if test $ac_prog = install &&
12548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12549 # AIX install. It has an incompatible calling convention.
12550 :
12551 elif test $ac_prog = install &&
12552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12553 # program-specific install script used by HP pwplus--don't use.
12554 :
12555 else
58c85be7
RW
12556 rm -rf conftest.one conftest.two conftest.dir
12557 echo one > conftest.one
12558 echo two > conftest.two
12559 mkdir conftest.dir
12560 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12561 test -s conftest.one && test -s conftest.two &&
12562 test -s conftest.dir/conftest.one &&
12563 test -s conftest.dir/conftest.two
12564 then
12565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12566 break 3
12567 fi
d7040cdb
SE
12568 fi
12569 fi
12570 done
12571 done
12572 ;;
12573esac
12574done
12575
58c85be7 12576rm -rf conftest.one conftest.two conftest.dir
252b5132 12577
d7040cdb
SE
12578fi
12579 if test "${ac_cv_path_install+set}" = set; then
12580 INSTALL=$ac_cv_path_install
12581 else
58c85be7
RW
12582 # As a last resort, use the slow shell script. Don't cache a
12583 # value for INSTALL within a source directory, because that will
d7040cdb 12584 # break other packages using the cache if that directory is
58c85be7 12585 # removed, or if the value is a relative name.
d7040cdb
SE
12586 INSTALL=$ac_install_sh
12587 fi
12588fi
12589echo "$as_me:$LINENO: result: $INSTALL" >&5
12590echo "${ECHO_T}$INSTALL" >&6
5464f5a1 12591
d7040cdb
SE
12592# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12593# It thinks the first close brace ends the variable substitution.
12594test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 12595
d7040cdb 12596test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 12597
d7040cdb 12598test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 12599
252b5132 12600
d7040cdb 12601BFD_HOST_64BIT_LONG=0
d2df793a 12602BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
12603BFD_HOST_64_BIT_DEFINED=0
12604BFD_HOST_64_BIT=
12605BFD_HOST_U_64_BIT=
d2df793a 12606BFD_HOSTPTR_T="unsigned long"
6be7c12c 12607
d7040cdb
SE
12608echo "$as_me:$LINENO: checking for long long" >&5
12609echo $ECHO_N "checking for long long... $ECHO_C" >&6
2ba49b59 12610if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 12611 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 12612else
5464f5a1
NN
12613 cat >conftest.$ac_ext <<_ACEOF
12614/* confdefs.h. */
12615_ACEOF
12616cat confdefs.h >>conftest.$ac_ext
12617cat >>conftest.$ac_ext <<_ACEOF
12618/* end confdefs.h. */
2ba49b59 12619$ac_includes_default
5464f5a1
NN
12620int
12621main ()
12622{
2ba49b59
KC
12623if ((long long *) 0)
12624 return 0;
12625if (sizeof (long long))
12626 return 0;
5464f5a1
NN
12627 ;
12628 return 0;
12629}
12630_ACEOF
12631rm -f conftest.$ac_objext
12632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12633 (eval $ac_compile) 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
7357c5b6
AM
12640 { ac_try='test -z "$ac_c_werror_flag"
12641 || test ! -s conftest.err'
5464f5a1
NN
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; } &&
12647 { ac_try='test -s conftest.$ac_objext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
2ba49b59 12653 ac_cv_type_long_long=yes
6726e1ea 12654else
5464f5a1
NN
12655 echo "$as_me: failed program was:" >&5
12656sed 's/^/| /' conftest.$ac_ext >&5
12657
2ba49b59 12658ac_cv_type_long_long=no
6726e1ea 12659fi
5464f5a1 12660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 12661fi
2ba49b59
KC
12662echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12663echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 12664
2ba49b59
KC
12665echo "$as_me:$LINENO: checking size of long long" >&5
12666echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12667if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 12668 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 12669else
2ba49b59
KC
12670 if test "$ac_cv_type_long_long" = yes; then
12671 # The cast to unsigned long works around a bug in the HP C Compiler
12672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12674 # This bug is HP SR number 8606223364.
12675 if test "$cross_compiling" = yes; then
12676 # Depending upon the size, compute the lo and hi bounds.
12677cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12678/* confdefs.h. */
12679_ACEOF
12680cat confdefs.h >>conftest.$ac_ext
12681cat >>conftest.$ac_ext <<_ACEOF
12682/* end confdefs.h. */
2ba49b59
KC
12683$ac_includes_default
12684int
12685main ()
12686{
12687static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12688test_array [0] = 0
6726e1ea 12689
2ba49b59
KC
12690 ;
12691 return 0;
12692}
12693_ACEOF
12694rm -f conftest.$ac_objext
12695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12696 (eval $ac_compile) 2>conftest.er1
12697 ac_status=$?
12698 grep -v '^ *+' conftest.er1 >conftest.err
12699 rm -f conftest.er1
12700 cat conftest.err >&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } &&
7357c5b6
AM
12703 { ac_try='test -z "$ac_c_werror_flag"
12704 || test ! -s conftest.err'
2ba49b59
KC
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; } &&
12710 { ac_try='test -s conftest.$ac_objext'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_lo=0 ac_mid=0
12717 while :; do
12718 cat >conftest.$ac_ext <<_ACEOF
12719/* confdefs.h. */
12720_ACEOF
12721cat confdefs.h >>conftest.$ac_ext
12722cat >>conftest.$ac_ext <<_ACEOF
12723/* end confdefs.h. */
12724$ac_includes_default
5464f5a1
NN
12725int
12726main ()
12727{
2ba49b59
KC
12728static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12729test_array [0] = 0
12730
5464f5a1
NN
12731 ;
12732 return 0;
12733}
12734_ACEOF
12735rm -f conftest.$ac_objext
12736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12737 (eval $ac_compile) 2>conftest.er1
12738 ac_status=$?
12739 grep -v '^ *+' conftest.er1 >conftest.err
12740 rm -f conftest.er1
12741 cat conftest.err >&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
7357c5b6
AM
12744 { ac_try='test -z "$ac_c_werror_flag"
12745 || test ! -s conftest.err'
5464f5a1
NN
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try='test -s conftest.$ac_objext'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
2ba49b59 12757 ac_hi=$ac_mid; break
6726e1ea 12758else
5464f5a1
NN
12759 echo "$as_me: failed program was:" >&5
12760sed 's/^/| /' conftest.$ac_ext >&5
12761
2ba49b59
KC
12762ac_lo=`expr $ac_mid + 1`
12763 if test $ac_lo -le $ac_mid; then
12764 ac_lo= ac_hi=
12765 break
12766 fi
12767 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 12768fi
5464f5a1 12769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 12770 done
252b5132 12771else
2ba49b59
KC
12772 echo "$as_me: failed program was:" >&5
12773sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 12774
5464f5a1
NN
12775cat >conftest.$ac_ext <<_ACEOF
12776/* confdefs.h. */
12777_ACEOF
12778cat confdefs.h >>conftest.$ac_ext
12779cat >>conftest.$ac_ext <<_ACEOF
12780/* end confdefs.h. */
12781$ac_includes_default
2ba49b59
KC
12782int
12783main ()
12784{
12785static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12786test_array [0] = 0
12787
12788 ;
12789 return 0;
12790}
5464f5a1
NN
12791_ACEOF
12792rm -f conftest.$ac_objext
12793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12794 (eval $ac_compile) 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
7357c5b6
AM
12801 { ac_try='test -z "$ac_c_werror_flag"
12802 || test ! -s conftest.err'
5464f5a1
NN
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; } &&
12808 { ac_try='test -s conftest.$ac_objext'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
2ba49b59
KC
12814 ac_hi=-1 ac_mid=-1
12815 while :; do
12816 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12817/* confdefs.h. */
12818_ACEOF
12819cat confdefs.h >>conftest.$ac_ext
12820cat >>conftest.$ac_ext <<_ACEOF
12821/* end confdefs.h. */
2ba49b59
KC
12822$ac_includes_default
12823int
12824main ()
12825{
12826static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12827test_array [0] = 0
12828
12829 ;
12830 return 0;
12831}
5464f5a1 12832_ACEOF
2ba49b59
KC
12833rm -f conftest.$ac_objext
12834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12835 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12841 (exit $ac_status); } &&
7357c5b6
AM
12842 { ac_try='test -z "$ac_c_werror_flag"
12843 || test ! -s conftest.err'
2ba49b59
KC
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest.$ac_objext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 ac_lo=$ac_mid; break
252b5132 12856else
2ba49b59
KC
12857 echo "$as_me: failed program was:" >&5
12858sed 's/^/| /' conftest.$ac_ext >&5
12859
12860ac_hi=`expr '(' $ac_mid ')' - 1`
12861 if test $ac_mid -le $ac_hi; then
12862 ac_lo= ac_hi=
12863 break
12864 fi
12865 ac_mid=`expr 2 '*' $ac_mid`
252b5132 12866fi
2ba49b59
KC
12867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12868 done
5464f5a1
NN
12869else
12870 echo "$as_me: failed program was:" >&5
12871sed 's/^/| /' conftest.$ac_ext >&5
12872
2ba49b59 12873ac_lo= ac_hi=
252b5132 12874fi
2ba49b59
KC
12875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12876fi
12877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12878# Binary search between lo and hi bounds.
12879while test "x$ac_lo" != "x$ac_hi"; do
12880 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12881 cat >conftest.$ac_ext <<_ACEOF
12882/* confdefs.h. */
12883_ACEOF
12884cat confdefs.h >>conftest.$ac_ext
12885cat >>conftest.$ac_ext <<_ACEOF
12886/* end confdefs.h. */
12887$ac_includes_default
12888int
12889main ()
12890{
12891static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12892test_array [0] = 0
5464f5a1 12893
2ba49b59
KC
12894 ;
12895 return 0;
12896}
5464f5a1
NN
12897_ACEOF
12898rm -f conftest.$ac_objext
12899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12900 (eval $ac_compile) 2>conftest.er1
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
7357c5b6
AM
12907 { ac_try='test -z "$ac_c_werror_flag"
12908 || test ! -s conftest.err'
5464f5a1
NN
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; } &&
12914 { ac_try='test -s conftest.$ac_objext'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
2ba49b59 12920 ac_hi=$ac_mid
5464f5a1
NN
12921else
12922 echo "$as_me: failed program was:" >&5
12923sed 's/^/| /' conftest.$ac_ext >&5
12924
2ba49b59 12925ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
12926fi
12927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
12928done
12929case $ac_lo in
12930?*) ac_cv_sizeof_long_long=$ac_lo;;
7357c5b6
AM
12931'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12932echo "$as_me: error: in \`$ac_pwd':" >&2;}
12933{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
2ba49b59
KC
12934See \`config.log' for more details." >&5
12935echo "$as_me: error: cannot compute sizeof (long long), 77
12936See \`config.log' for more details." >&2;}
7357c5b6 12937 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
12938esac
12939else
12940 if test "$cross_compiling" = yes; then
7357c5b6
AM
12941 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12942echo "$as_me: error: in \`$ac_pwd':" >&2;}
12943{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12944See \`config.log' for more details." >&5
12945echo "$as_me: error: cannot run test program while cross compiling
12946See \`config.log' for more details." >&2;}
12947 { (exit 1); exit 1; }; }; }
2ba49b59
KC
12948else
12949 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */
2ba49b59
KC
12955$ac_includes_default
12956long longval () { return (long) (sizeof (long long)); }
12957unsigned long ulongval () { return (long) (sizeof (long long)); }
12958#include <stdio.h>
12959#include <stdlib.h>
12960int
12961main ()
12962{
12963
12964 FILE *f = fopen ("conftest.val", "w");
12965 if (! f)
12966 exit (1);
12967 if (((long) (sizeof (long long))) < 0)
12968 {
12969 long i = longval ();
12970 if (i != ((long) (sizeof (long long))))
12971 exit (1);
12972 fprintf (f, "%ld\n", i);
12973 }
12974 else
12975 {
12976 unsigned long i = ulongval ();
12977 if (i != ((long) (sizeof (long long))))
12978 exit (1);
12979 fprintf (f, "%lu\n", i);
12980 }
12981 exit (ferror (f) || fclose (f) != 0);
12982
12983 ;
12984 return 0;
12985}
5464f5a1 12986_ACEOF
2ba49b59
KC
12987rm -f conftest$ac_exeext
12988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12989 (eval $ac_link) 2>&5
5464f5a1 12990 ac_status=$?
5464f5a1 12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
12992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 12999else
2ba49b59
KC
13000 echo "$as_me: program exited with status $ac_status" >&5
13001echo "$as_me: failed program was:" >&5
5464f5a1
NN
13002sed 's/^/| /' conftest.$ac_ext >&5
13003
2ba49b59 13004( exit $ac_status )
7357c5b6
AM
13005{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13006echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
13007{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13008See \`config.log' for more details." >&5
13009echo "$as_me: error: cannot compute sizeof (long long), 77
13010See \`config.log' for more details." >&2;}
7357c5b6 13011 { (exit 1); exit 1; }; }; }
252b5132 13012fi
2ba49b59
KC
13013rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13014fi
13015fi
13016rm -f conftest.val
6be7c12c 13017else
2ba49b59 13018 ac_cv_sizeof_long_long=0
5464f5a1 13019fi
5464f5a1 13020fi
2ba49b59
KC
13021echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13022echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13023cat >>confdefs.h <<_ACEOF
13024#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
13025_ACEOF
13026
5464f5a1 13027
d2df793a
NC
13028echo "$as_me:$LINENO: checking for void *" >&5
13029echo $ECHO_N "checking for void *... $ECHO_C" >&6
13030if test "${ac_cv_type_void_p+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13032else
13033 cat >conftest.$ac_ext <<_ACEOF
13034/* confdefs.h. */
13035_ACEOF
13036cat confdefs.h >>conftest.$ac_ext
13037cat >>conftest.$ac_ext <<_ACEOF
13038/* end confdefs.h. */
13039$ac_includes_default
13040int
13041main ()
13042{
13043if ((void * *) 0)
13044 return 0;
13045if (sizeof (void *))
13046 return 0;
13047 ;
13048 return 0;
13049}
13050_ACEOF
13051rm -f conftest.$ac_objext
13052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
7357c5b6
AM
13060 { ac_try='test -z "$ac_c_werror_flag"
13061 || test ! -s conftest.err'
d2df793a
NC
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; } &&
13067 { ac_try='test -s conftest.$ac_objext'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 ac_cv_type_void_p=yes
13074else
13075 echo "$as_me: failed program was:" >&5
13076sed 's/^/| /' conftest.$ac_ext >&5
13077
13078ac_cv_type_void_p=no
13079fi
13080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13081fi
13082echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13083echo "${ECHO_T}$ac_cv_type_void_p" >&6
13084
13085echo "$as_me:$LINENO: checking size of void *" >&5
13086echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13087if test "${ac_cv_sizeof_void_p+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13089else
13090 if test "$ac_cv_type_void_p" = yes; then
13091 # The cast to unsigned long works around a bug in the HP C Compiler
13092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13094 # This bug is HP SR number 8606223364.
13095 if test "$cross_compiling" = yes; then
13096 # Depending upon the size, compute the lo and hi bounds.
13097cat >conftest.$ac_ext <<_ACEOF
13098/* confdefs.h. */
13099_ACEOF
13100cat confdefs.h >>conftest.$ac_ext
13101cat >>conftest.$ac_ext <<_ACEOF
13102/* end confdefs.h. */
13103$ac_includes_default
13104int
13105main ()
13106{
13107static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13108test_array [0] = 0
13109
13110 ;
13111 return 0;
13112}
13113_ACEOF
13114rm -f conftest.$ac_objext
13115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116 (eval $ac_compile) 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
7357c5b6
AM
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
d2df793a
NC
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest.$ac_objext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_lo=0 ac_mid=0
13137 while :; do
13138 cat >conftest.$ac_ext <<_ACEOF
13139/* confdefs.h. */
13140_ACEOF
13141cat confdefs.h >>conftest.$ac_ext
13142cat >>conftest.$ac_ext <<_ACEOF
13143/* end confdefs.h. */
13144$ac_includes_default
13145int
13146main ()
13147{
13148static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13149test_array [0] = 0
13150
13151 ;
13152 return 0;
13153}
13154_ACEOF
13155rm -f conftest.$ac_objext
13156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13157 (eval $ac_compile) 2>conftest.er1
13158 ac_status=$?
13159 grep -v '^ *+' conftest.er1 >conftest.err
13160 rm -f conftest.er1
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
7357c5b6
AM
13164 { ac_try='test -z "$ac_c_werror_flag"
13165 || test ! -s conftest.err'
d2df793a
NC
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try='test -s conftest.$ac_objext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_hi=$ac_mid; break
13178else
13179 echo "$as_me: failed program was:" >&5
13180sed 's/^/| /' conftest.$ac_ext >&5
13181
13182ac_lo=`expr $ac_mid + 1`
13183 if test $ac_lo -le $ac_mid; then
13184 ac_lo= ac_hi=
13185 break
13186 fi
13187 ac_mid=`expr 2 '*' $ac_mid + 1`
13188fi
13189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13190 done
13191else
13192 echo "$as_me: failed program was:" >&5
13193sed 's/^/| /' conftest.$ac_ext >&5
13194
13195cat >conftest.$ac_ext <<_ACEOF
13196/* confdefs.h. */
13197_ACEOF
13198cat confdefs.h >>conftest.$ac_ext
13199cat >>conftest.$ac_ext <<_ACEOF
13200/* end confdefs.h. */
13201$ac_includes_default
13202int
13203main ()
13204{
13205static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13206test_array [0] = 0
13207
13208 ;
13209 return 0;
13210}
13211_ACEOF
13212rm -f conftest.$ac_objext
13213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13214 (eval $ac_compile) 2>conftest.er1
13215 ac_status=$?
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
7357c5b6
AM
13221 { ac_try='test -z "$ac_c_werror_flag"
13222 || test ! -s conftest.err'
d2df793a
NC
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; } &&
13228 { ac_try='test -s conftest.$ac_objext'
13229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230 (eval $ac_try) 2>&5
13231 ac_status=$?
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; }; then
13234 ac_hi=-1 ac_mid=-1
13235 while :; do
13236 cat >conftest.$ac_ext <<_ACEOF
13237/* confdefs.h. */
13238_ACEOF
13239cat confdefs.h >>conftest.$ac_ext
13240cat >>conftest.$ac_ext <<_ACEOF
13241/* end confdefs.h. */
13242$ac_includes_default
13243int
13244main ()
13245{
13246static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13247test_array [0] = 0
13248
13249 ;
13250 return 0;
13251}
13252_ACEOF
13253rm -f conftest.$ac_objext
13254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13255 (eval $ac_compile) 2>conftest.er1
13256 ac_status=$?
13257 grep -v '^ *+' conftest.er1 >conftest.err
13258 rm -f conftest.er1
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
7357c5b6
AM
13262 { ac_try='test -z "$ac_c_werror_flag"
13263 || test ! -s conftest.err'
d2df793a
NC
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try='test -s conftest.$ac_objext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_lo=$ac_mid; break
13276else
13277 echo "$as_me: failed program was:" >&5
13278sed 's/^/| /' conftest.$ac_ext >&5
13279
13280ac_hi=`expr '(' $ac_mid ')' - 1`
13281 if test $ac_mid -le $ac_hi; then
13282 ac_lo= ac_hi=
13283 break
13284 fi
13285 ac_mid=`expr 2 '*' $ac_mid`
13286fi
13287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13288 done
13289else
13290 echo "$as_me: failed program was:" >&5
13291sed 's/^/| /' conftest.$ac_ext >&5
13292
13293ac_lo= ac_hi=
13294fi
13295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13296fi
13297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13298# Binary search between lo and hi bounds.
13299while test "x$ac_lo" != "x$ac_hi"; do
13300 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13301 cat >conftest.$ac_ext <<_ACEOF
13302/* confdefs.h. */
13303_ACEOF
13304cat confdefs.h >>conftest.$ac_ext
13305cat >>conftest.$ac_ext <<_ACEOF
13306/* end confdefs.h. */
13307$ac_includes_default
13308int
13309main ()
13310{
13311static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13312test_array [0] = 0
13313
13314 ;
13315 return 0;
13316}
13317_ACEOF
13318rm -f conftest.$ac_objext
13319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13320 (eval $ac_compile) 2>conftest.er1
13321 ac_status=$?
13322 grep -v '^ *+' conftest.er1 >conftest.err
13323 rm -f conftest.er1
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
7357c5b6
AM
13327 { ac_try='test -z "$ac_c_werror_flag"
13328 || test ! -s conftest.err'
d2df793a
NC
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest.$ac_objext'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 ac_hi=$ac_mid
13341else
13342 echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
13345ac_lo=`expr '(' $ac_mid ')' + 1`
13346fi
13347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13348done
13349case $ac_lo in
13350?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
13351'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13352echo "$as_me: error: in \`$ac_pwd':" >&2;}
13353{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d2df793a
NC
13354See \`config.log' for more details." >&5
13355echo "$as_me: error: cannot compute sizeof (void *), 77
13356See \`config.log' for more details." >&2;}
7357c5b6 13357 { (exit 1); exit 1; }; }; } ;;
d2df793a
NC
13358esac
13359else
13360 if test "$cross_compiling" = yes; then
7357c5b6
AM
13361 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13362echo "$as_me: error: in \`$ac_pwd':" >&2;}
13363{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13364See \`config.log' for more details." >&5
13365echo "$as_me: error: cannot run test program while cross compiling
13366See \`config.log' for more details." >&2;}
13367 { (exit 1); exit 1; }; }; }
d2df793a
NC
13368else
13369 cat >conftest.$ac_ext <<_ACEOF
13370/* confdefs.h. */
13371_ACEOF
13372cat confdefs.h >>conftest.$ac_ext
13373cat >>conftest.$ac_ext <<_ACEOF
13374/* end confdefs.h. */
13375$ac_includes_default
13376long longval () { return (long) (sizeof (void *)); }
13377unsigned long ulongval () { return (long) (sizeof (void *)); }
13378#include <stdio.h>
13379#include <stdlib.h>
13380int
13381main ()
13382{
13383
13384 FILE *f = fopen ("conftest.val", "w");
13385 if (! f)
13386 exit (1);
13387 if (((long) (sizeof (void *))) < 0)
13388 {
13389 long i = longval ();
13390 if (i != ((long) (sizeof (void *))))
13391 exit (1);
13392 fprintf (f, "%ld\n", i);
13393 }
13394 else
13395 {
13396 unsigned long i = ulongval ();
13397 if (i != ((long) (sizeof (void *))))
13398 exit (1);
13399 fprintf (f, "%lu\n", i);
13400 }
13401 exit (ferror (f) || fclose (f) != 0);
13402
13403 ;
13404 return 0;
13405}
13406_ACEOF
13407rm -f conftest$ac_exeext
13408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13409 (eval $ac_link) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_cv_sizeof_void_p=`cat conftest.val`
13419else
13420 echo "$as_me: program exited with status $ac_status" >&5
13421echo "$as_me: failed program was:" >&5
13422sed 's/^/| /' conftest.$ac_ext >&5
13423
13424( exit $ac_status )
7357c5b6
AM
13425{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13426echo "$as_me: error: in \`$ac_pwd':" >&2;}
d2df793a
NC
13427{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13428See \`config.log' for more details." >&5
13429echo "$as_me: error: cannot compute sizeof (void *), 77
13430See \`config.log' for more details." >&2;}
7357c5b6 13431 { (exit 1); exit 1; }; }; }
d2df793a
NC
13432fi
13433rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13434fi
13435fi
13436rm -f conftest.val
13437else
13438 ac_cv_sizeof_void_p=0
13439fi
13440fi
13441echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13442echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13443cat >>confdefs.h <<_ACEOF
13444#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13445_ACEOF
13446
13447
2ba49b59
KC
13448echo "$as_me:$LINENO: checking for long" >&5
13449echo $ECHO_N "checking for long... $ECHO_C" >&6
13450if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452else
13453 cat >conftest.$ac_ext <<_ACEOF
13454/* confdefs.h. */
13455_ACEOF
13456cat confdefs.h >>conftest.$ac_ext
13457cat >>conftest.$ac_ext <<_ACEOF
13458/* end confdefs.h. */
2ba49b59 13459$ac_includes_default
5464f5a1
NN
13460int
13461main ()
13462{
2ba49b59
KC
13463if ((long *) 0)
13464 return 0;
13465if (sizeof (long))
13466 return 0;
5464f5a1
NN
13467 ;
13468 return 0;
13469}
13470_ACEOF
13471rm -f conftest.$ac_objext
13472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473 (eval $ac_compile) 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
7357c5b6
AM
13480 { ac_try='test -z "$ac_c_werror_flag"
13481 || test ! -s conftest.err'
5464f5a1
NN
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; } &&
13487 { ac_try='test -s conftest.$ac_objext'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
2ba49b59 13493 ac_cv_type_long=yes
252b5132 13494else
5464f5a1
NN
13495 echo "$as_me: failed program was:" >&5
13496sed 's/^/| /' conftest.$ac_ext >&5
13497
2ba49b59 13498ac_cv_type_long=no
252b5132 13499fi
5464f5a1 13500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13501fi
2ba49b59
KC
13502echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13503echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 13504
2ba49b59
KC
13505echo "$as_me:$LINENO: checking size of long" >&5
13506echo $ECHO_N "checking size of long... $ECHO_C" >&6
13507if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13509else
2ba49b59
KC
13510 if test "$ac_cv_type_long" = yes; then
13511 # The cast to unsigned long works around a bug in the HP C Compiler
13512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13514 # This bug is HP SR number 8606223364.
13515 if test "$cross_compiling" = yes; then
13516 # Depending upon the size, compute the lo and hi bounds.
13517cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13518/* confdefs.h. */
13519_ACEOF
13520cat confdefs.h >>conftest.$ac_ext
13521cat >>conftest.$ac_ext <<_ACEOF
13522/* end confdefs.h. */
2ba49b59 13523$ac_includes_default
5464f5a1
NN
13524int
13525main ()
13526{
2ba49b59
KC
13527static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13528test_array [0] = 0
13529
5464f5a1
NN
13530 ;
13531 return 0;
13532}
13533_ACEOF
13534rm -f conftest.$ac_objext
13535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536 (eval $ac_compile) 2>conftest.er1
13537 ac_status=$?
13538 grep -v '^ *+' conftest.er1 >conftest.err
13539 rm -f conftest.er1
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
7357c5b6
AM
13543 { ac_try='test -z "$ac_c_werror_flag"
13544 || test ! -s conftest.err'
5464f5a1
NN
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; } &&
13550 { ac_try='test -s conftest.$ac_objext'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
2ba49b59
KC
13556 ac_lo=0 ac_mid=0
13557 while :; do
13558 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13559/* confdefs.h. */
13560_ACEOF
13561cat confdefs.h >>conftest.$ac_ext
13562cat >>conftest.$ac_ext <<_ACEOF
13563/* end confdefs.h. */
2ba49b59 13564$ac_includes_default
5464f5a1
NN
13565int
13566main ()
13567{
2ba49b59
KC
13568static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13569test_array [0] = 0
13570
5464f5a1
NN
13571 ;
13572 return 0;
13573}
13574_ACEOF
2ba49b59
KC
13575rm -f conftest.$ac_objext
13576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
7357c5b6
AM
13584 { ac_try='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
5464f5a1
NN
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
2ba49b59 13591 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
2ba49b59 13597 ac_hi=$ac_mid; break
5464f5a1
NN
13598else
13599 echo "$as_me: failed program was:" >&5
13600sed 's/^/| /' conftest.$ac_ext >&5
13601
2ba49b59
KC
13602ac_lo=`expr $ac_mid + 1`
13603 if test $ac_lo -le $ac_mid; then
13604 ac_lo= ac_hi=
13605 break
13606 fi
13607 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 13608fi
2ba49b59
KC
13609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13610 done
13611else
13612 echo "$as_me: failed program was:" >&5
13613sed 's/^/| /' conftest.$ac_ext >&5
13614
13615cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13616/* confdefs.h. */
13617_ACEOF
13618cat confdefs.h >>conftest.$ac_ext
13619cat >>conftest.$ac_ext <<_ACEOF
13620/* end confdefs.h. */
2ba49b59 13621$ac_includes_default
5464f5a1
NN
13622int
13623main ()
13624{
2ba49b59
KC
13625static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13626test_array [0] = 0
13627
5464f5a1
NN
13628 ;
13629 return 0;
13630}
13631_ACEOF
2ba49b59
KC
13632rm -f conftest.$ac_objext
13633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
7357c5b6
AM
13641 { ac_try='test -z "$ac_c_werror_flag"
13642 || test ! -s conftest.err'
5464f5a1
NN
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } &&
2ba49b59 13648 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
2ba49b59
KC
13654 ac_hi=-1 ac_mid=-1
13655 while :; do
13656 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13657/* confdefs.h. */
13658_ACEOF
13659cat confdefs.h >>conftest.$ac_ext
13660cat >>conftest.$ac_ext <<_ACEOF
13661/* end confdefs.h. */
2ba49b59 13662$ac_includes_default
5464f5a1
NN
13663int
13664main ()
13665{
2ba49b59
KC
13666static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13667test_array [0] = 0
13668
5464f5a1
NN
13669 ;
13670 return 0;
13671}
13672_ACEOF
2ba49b59
KC
13673rm -f conftest.$ac_objext
13674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13675 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13676 ac_status=$?
13677 grep -v '^ *+' conftest.er1 >conftest.err
13678 rm -f conftest.er1
13679 cat conftest.err >&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
7357c5b6
AM
13682 { ac_try='test -z "$ac_c_werror_flag"
13683 || test ! -s conftest.err'
5464f5a1
NN
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; } &&
2ba49b59 13689 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
2ba49b59 13695 ac_lo=$ac_mid; break
5464f5a1
NN
13696else
13697 echo "$as_me: failed program was:" >&5
13698sed 's/^/| /' conftest.$ac_ext >&5
13699
2ba49b59
KC
13700ac_hi=`expr '(' $ac_mid ')' - 1`
13701 if test $ac_mid -le $ac_hi; then
13702 ac_lo= ac_hi=
13703 break
13704 fi
13705 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 13706fi
2ba49b59
KC
13707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13708 done
13709else
13710 echo "$as_me: failed program was:" >&5
13711sed 's/^/| /' conftest.$ac_ext >&5
13712
13713ac_lo= ac_hi=
13714fi
13715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13716fi
13717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13718# Binary search between lo and hi bounds.
13719while test "x$ac_lo" != "x$ac_hi"; do
13720 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13721 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13722/* confdefs.h. */
13723_ACEOF
13724cat confdefs.h >>conftest.$ac_ext
13725cat >>conftest.$ac_ext <<_ACEOF
13726/* end confdefs.h. */
2ba49b59 13727$ac_includes_default
5464f5a1
NN
13728int
13729main ()
13730{
2ba49b59
KC
13731static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13732test_array [0] = 0
13733
5464f5a1
NN
13734 ;
13735 return 0;
13736}
13737_ACEOF
2ba49b59
KC
13738rm -f conftest.$ac_objext
13739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13740 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
7357c5b6
AM
13747 { ac_try='test -z "$ac_c_werror_flag"
13748 || test ! -s conftest.err'
5464f5a1
NN
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
2ba49b59 13754 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
2ba49b59 13760 ac_hi=$ac_mid
5464f5a1
NN
13761else
13762 echo "$as_me: failed program was:" >&5
13763sed 's/^/| /' conftest.$ac_ext >&5
13764
2ba49b59 13765ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 13766fi
2ba49b59
KC
13767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13768done
13769case $ac_lo in
13770?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
13771'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13772echo "$as_me: error: in \`$ac_pwd':" >&2;}
13773{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
2ba49b59
KC
13774See \`config.log' for more details." >&5
13775echo "$as_me: error: cannot compute sizeof (long), 77
13776See \`config.log' for more details." >&2;}
7357c5b6 13777 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
13778esac
13779else
13780 if test "$cross_compiling" = yes; then
7357c5b6
AM
13781 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13782echo "$as_me: error: in \`$ac_pwd':" >&2;}
13783{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13784See \`config.log' for more details." >&5
13785echo "$as_me: error: cannot run test program while cross compiling
13786See \`config.log' for more details." >&2;}
13787 { (exit 1); exit 1; }; }; }
2e0fbf77
JW
13788else
13789 cat >conftest.$ac_ext <<_ACEOF
13790/* confdefs.h. */
13791_ACEOF
13792cat confdefs.h >>conftest.$ac_ext
13793cat >>conftest.$ac_ext <<_ACEOF
13794/* end confdefs.h. */
2ba49b59
KC
13795$ac_includes_default
13796long longval () { return (long) (sizeof (long)); }
13797unsigned long ulongval () { return (long) (sizeof (long)); }
13798#include <stdio.h>
13799#include <stdlib.h>
2e0fbf77
JW
13800int
13801main ()
13802{
13803
2ba49b59
KC
13804 FILE *f = fopen ("conftest.val", "w");
13805 if (! f)
13806 exit (1);
13807 if (((long) (sizeof (long))) < 0)
13808 {
13809 long i = longval ();
13810 if (i != ((long) (sizeof (long))))
13811 exit (1);
13812 fprintf (f, "%ld\n", i);
13813 }
13814 else
13815 {
13816 unsigned long i = ulongval ();
13817 if (i != ((long) (sizeof (long))))
13818 exit (1);
13819 fprintf (f, "%lu\n", i);
13820 }
13821 exit (ferror (f) || fclose (f) != 0);
13822
2e0fbf77
JW
13823 ;
13824 return 0;
13825}
13826_ACEOF
2ba49b59
KC
13827rm -f conftest$ac_exeext
13828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13829 (eval $ac_link) 2>&5
2e0fbf77
JW
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 13832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
2ba49b59 13838 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 13839else
2ba49b59
KC
13840 echo "$as_me: program exited with status $ac_status" >&5
13841echo "$as_me: failed program was:" >&5
2e0fbf77
JW
13842sed 's/^/| /' conftest.$ac_ext >&5
13843
2ba49b59 13844( exit $ac_status )
7357c5b6
AM
13845{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13846echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
13847{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13848See \`config.log' for more details." >&5
13849echo "$as_me: error: cannot compute sizeof (long), 77
13850See \`config.log' for more details." >&2;}
7357c5b6 13851 { (exit 1); exit 1; }; }; }
2e0fbf77 13852fi
2ba49b59 13853rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 13854fi
2ba49b59
KC
13855fi
13856rm -f conftest.val
13857else
13858 ac_cv_sizeof_long=0
13859fi
13860fi
13861echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13862echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13863cat >>confdefs.h <<_ACEOF
13864#define SIZEOF_LONG $ac_cv_sizeof_long
13865_ACEOF
13866
13867
d2df793a
NC
13868
13869if test "x${ac_cv_sizeof_void_p}" = "x8"; then
2ba49b59 13870 host64=true
bce5e5c9
AM
13871fi
13872
13873if test "x${ac_cv_sizeof_long}" = "x8"; then
2ba49b59
KC
13874 BFD_HOST_64BIT_LONG=1
13875 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13876 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13877elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
bce5e5c9 13878 BFD_HOST_64BIT_LONG_LONG=1
2ba49b59
KC
13879 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13880 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
bce5e5c9
AM
13881 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13882 BFD_HOSTPTR_T="unsigned long long"
13883 fi
2ba49b59
KC
13884fi
13885
13886if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13887 BFD_HOST_64_BIT_DEFINED=1
13888 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13889 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13890fi
13891
13892
13893
13894
13895
13896
13897
d2df793a 13898
2ba49b59
KC
13899# Put a plausible default for CC_FOR_BUILD in Makefile.
13900if test -z "$CC_FOR_BUILD"; then
13901 if test "x$cross_compiling" = "xno"; then
13902 CC_FOR_BUILD='$(CC)'
13903 else
13904 CC_FOR_BUILD=gcc
13905 fi
13906fi
13907
13908# Also set EXEEXT_FOR_BUILD.
13909if test "x$cross_compiling" = "xno"; then
13910 EXEEXT_FOR_BUILD='$(EXEEXT)'
13911else
13912 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13913echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13914if test "${bfd_cv_build_exeext+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916else
13917 rm -f conftest*
13918 echo 'int main () { return 0; }' > conftest.c
13919 bfd_cv_build_exeext=
13920 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13921 for file in conftest.*; do
13922 case $file in
13923 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13924 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13925 esac
13926 done
13927 rm -f conftest*
13928 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13929fi
13930echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13931echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13932 EXEEXT_FOR_BUILD=""
13933 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13934fi
13935
13936
13937
13938
13939
13940
13941
13942
8bc9c892
NC
13943
13944for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
2ba49b59
KC
13945do
13946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13947if eval "test \"\${$as_ac_Header+set}\" = set"; then
13948 echo "$as_me:$LINENO: checking for $ac_header" >&5
13949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13950if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952fi
13953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13955else
13956 # Is the header compilable?
13957echo "$as_me:$LINENO: checking $ac_header usability" >&5
13958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13959cat >conftest.$ac_ext <<_ACEOF
13960/* confdefs.h. */
13961_ACEOF
13962cat confdefs.h >>conftest.$ac_ext
13963cat >>conftest.$ac_ext <<_ACEOF
13964/* end confdefs.h. */
13965$ac_includes_default
13966#include <$ac_header>
13967_ACEOF
13968rm -f conftest.$ac_objext
13969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13970 (eval $ac_compile) 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
7357c5b6
AM
13977 { ac_try='test -z "$ac_c_werror_flag"
13978 || test ! -s conftest.err'
2ba49b59
KC
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try='test -s conftest.$ac_objext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_header_compiler=yes
13991else
13992 echo "$as_me: failed program was:" >&5
13993sed 's/^/| /' conftest.$ac_ext >&5
13994
13995ac_header_compiler=no
13996fi
13997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13998echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13999echo "${ECHO_T}$ac_header_compiler" >&6
14000
14001# Is the header present?
14002echo "$as_me:$LINENO: checking $ac_header presence" >&5
14003echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14004cat >conftest.$ac_ext <<_ACEOF
14005/* confdefs.h. */
14006_ACEOF
14007cat confdefs.h >>conftest.$ac_ext
14008cat >>conftest.$ac_ext <<_ACEOF
14009/* end confdefs.h. */
14010#include <$ac_header>
14011_ACEOF
14012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } >/dev/null; then
14020 if test -s conftest.err; then
14021 ac_cpp_err=$ac_c_preproc_warn_flag
14022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14023 else
14024 ac_cpp_err=
14025 fi
14026else
14027 ac_cpp_err=yes
14028fi
14029if test -z "$ac_cpp_err"; then
14030 ac_header_preproc=yes
14031else
14032 echo "$as_me: failed program was:" >&5
14033sed 's/^/| /' conftest.$ac_ext >&5
14034
14035 ac_header_preproc=no
14036fi
14037rm -f conftest.err conftest.$ac_ext
14038echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14039echo "${ECHO_T}$ac_header_preproc" >&6
14040
14041# So? What about this header?
14042case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14043 yes:no: )
14044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14045echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14047echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14048 ac_header_preproc=yes
14049 ;;
14050 no:yes:* )
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14052echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14054echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14056echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14058echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14060echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14062echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14063 (
14064 cat <<\_ASBOX
14065## ------------------------------------------ ##
14066## Report this to the AC_PACKAGE_NAME lists. ##
14067## ------------------------------------------ ##
14068_ASBOX
14069 ) |
14070 sed "s/^/$as_me: WARNING: /" >&2
14071 ;;
14072esac
14073echo "$as_me:$LINENO: checking for $ac_header" >&5
14074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14075if eval "test \"\${$as_ac_Header+set}\" = set"; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
14077else
14078 eval "$as_ac_Header=\$ac_header_preproc"
14079fi
14080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14081echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14082
14083fi
14084if test `eval echo '${'$as_ac_Header'}'` = yes; then
14085 cat >>confdefs.h <<_ACEOF
14086#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14087_ACEOF
14088
14089fi
14090
14091done
14092
14093
14094
14095
14096for ac_header in fcntl.h sys/file.h sys/time.h
14097do
14098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14099if eval "test \"\${$as_ac_Header+set}\" = set"; then
14100 echo "$as_me:$LINENO: checking for $ac_header" >&5
14101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14102if eval "test \"\${$as_ac_Header+set}\" = set"; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104fi
14105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14107else
14108 # Is the header compilable?
14109echo "$as_me:$LINENO: checking $ac_header usability" >&5
14110echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14111cat >conftest.$ac_ext <<_ACEOF
14112/* confdefs.h. */
14113_ACEOF
14114cat confdefs.h >>conftest.$ac_ext
14115cat >>conftest.$ac_ext <<_ACEOF
14116/* end confdefs.h. */
14117$ac_includes_default
14118#include <$ac_header>
14119_ACEOF
14120rm -f conftest.$ac_objext
14121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122 (eval $ac_compile) 2>conftest.er1
14123 ac_status=$?
14124 grep -v '^ *+' conftest.er1 >conftest.err
14125 rm -f conftest.er1
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } &&
7357c5b6
AM
14129 { ac_try='test -z "$ac_c_werror_flag"
14130 || test ! -s conftest.err'
2ba49b59
KC
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
14136 { ac_try='test -s conftest.$ac_objext'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_header_compiler=yes
14143else
14144 echo "$as_me: failed program was:" >&5
14145sed 's/^/| /' conftest.$ac_ext >&5
14146
14147ac_header_compiler=no
14148fi
14149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14150echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14151echo "${ECHO_T}$ac_header_compiler" >&6
14152
14153# Is the header present?
14154echo "$as_me:$LINENO: checking $ac_header presence" >&5
14155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14156cat >conftest.$ac_ext <<_ACEOF
14157/* confdefs.h. */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
14161/* end confdefs.h. */
14162#include <$ac_header>
14163_ACEOF
14164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } >/dev/null; then
14172 if test -s conftest.err; then
14173 ac_cpp_err=$ac_c_preproc_warn_flag
14174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14175 else
14176 ac_cpp_err=
14177 fi
14178else
14179 ac_cpp_err=yes
14180fi
14181if test -z "$ac_cpp_err"; then
14182 ac_header_preproc=yes
14183else
14184 echo "$as_me: failed program was:" >&5
14185sed 's/^/| /' conftest.$ac_ext >&5
14186
14187 ac_header_preproc=no
14188fi
14189rm -f conftest.err conftest.$ac_ext
14190echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14191echo "${ECHO_T}$ac_header_preproc" >&6
14192
14193# So? What about this header?
14194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14195 yes:no: )
14196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14197echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14199echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14200 ac_header_preproc=yes
14201 ;;
14202 no:yes:* )
14203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14204echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14206echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14208echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14210echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14212echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14214echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14215 (
14216 cat <<\_ASBOX
14217## ------------------------------------------ ##
14218## Report this to the AC_PACKAGE_NAME lists. ##
14219## ------------------------------------------ ##
14220_ASBOX
14221 ) |
14222 sed "s/^/$as_me: WARNING: /" >&2
14223 ;;
14224esac
14225echo "$as_me:$LINENO: checking for $ac_header" >&5
14226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14227if eval "test \"\${$as_ac_Header+set}\" = set"; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229else
14230 eval "$as_ac_Header=\$ac_header_preproc"
14231fi
14232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14234
14235fi
14236if test `eval echo '${'$as_ac_Header'}'` = yes; then
14237 cat >>confdefs.h <<_ACEOF
14238#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14239_ACEOF
14240
14241fi
14242
14243done
14244
d5efd9fc
AM
14245
14246
14247inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14248
14249acx_cv_header_stdint=stddef.h
14250acx_cv_header_stdint_kind="(already complete)"
14251for i in stdint.h $inttype_headers; do
14252 unset ac_cv_type_uintptr_t
14253 unset ac_cv_type_uintmax_t
14254 unset ac_cv_type_int_least32_t
14255 unset ac_cv_type_int_fast32_t
14256 unset ac_cv_type_uint64_t
14257 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14258 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14259echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14260if test "${ac_cv_type_uintmax_t+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262else
14263 cat >conftest.$ac_ext <<_ACEOF
14264/* confdefs.h. */
14265_ACEOF
14266cat confdefs.h >>conftest.$ac_ext
14267cat >>conftest.$ac_ext <<_ACEOF
14268/* end confdefs.h. */
14269#include <sys/types.h>
14270#include <$i>
14271
14272int
14273main ()
14274{
14275if ((uintmax_t *) 0)
14276 return 0;
14277if (sizeof (uintmax_t))
14278 return 0;
14279 ;
14280 return 0;
14281}
14282_ACEOF
14283rm -f conftest.$ac_objext
14284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285 (eval $ac_compile) 2>conftest.er1
14286 ac_status=$?
14287 grep -v '^ *+' conftest.er1 >conftest.err
14288 rm -f conftest.er1
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
7357c5b6
AM
14292 { ac_try='test -z "$ac_c_werror_flag"
14293 || test ! -s conftest.err'
d5efd9fc
AM
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest.$ac_objext'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14302 ac_status=$?
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
14305 ac_cv_type_uintmax_t=yes
14306else
14307 echo "$as_me: failed program was:" >&5
14308sed 's/^/| /' conftest.$ac_ext >&5
14309
14310ac_cv_type_uintmax_t=no
14311fi
14312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14313fi
14314echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14315echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14316if test $ac_cv_type_uintmax_t = yes; then
14317 acx_cv_header_stdint=$i
14318else
14319 continue
14320fi
14321
14322 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14323echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14324if test "${ac_cv_type_uintptr_t+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14326else
14327 cat >conftest.$ac_ext <<_ACEOF
14328/* confdefs.h. */
14329_ACEOF
14330cat confdefs.h >>conftest.$ac_ext
14331cat >>conftest.$ac_ext <<_ACEOF
14332/* end confdefs.h. */
14333#include <sys/types.h>
14334#include <$i>
14335
14336int
14337main ()
14338{
14339if ((uintptr_t *) 0)
14340 return 0;
14341if (sizeof (uintptr_t))
14342 return 0;
14343 ;
14344 return 0;
14345}
14346_ACEOF
14347rm -f conftest.$ac_objext
14348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14349 (eval $ac_compile) 2>conftest.er1
14350 ac_status=$?
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
7357c5b6
AM
14356 { ac_try='test -z "$ac_c_werror_flag"
14357 || test ! -s conftest.err'
d5efd9fc
AM
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; } &&
14363 { ac_try='test -s conftest.$ac_objext'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14366 ac_status=$?
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 ac_cv_type_uintptr_t=yes
14370else
14371 echo "$as_me: failed program was:" >&5
14372sed 's/^/| /' conftest.$ac_ext >&5
14373
14374ac_cv_type_uintptr_t=no
14375fi
14376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14377fi
14378echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14379echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14380if test $ac_cv_type_uintptr_t = yes; then
14381 :
14382else
14383 acx_cv_header_stdint_kind="(mostly complete)"
14384fi
14385
14386 echo "$as_me:$LINENO: checking for int_least32_t" >&5
14387echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14388if test "${ac_cv_type_int_least32_t+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14390else
14391 cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
14396/* end confdefs.h. */
14397#include <sys/types.h>
14398#include <$i>
14399
14400int
14401main ()
14402{
14403if ((int_least32_t *) 0)
14404 return 0;
14405if (sizeof (int_least32_t))
14406 return 0;
14407 ;
14408 return 0;
14409}
14410_ACEOF
14411rm -f conftest.$ac_objext
14412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413 (eval $ac_compile) 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
7357c5b6
AM
14420 { ac_try='test -z "$ac_c_werror_flag"
14421 || test ! -s conftest.err'
d5efd9fc
AM
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14424 ac_status=$?
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; } &&
14427 { ac_try='test -s conftest.$ac_objext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 ac_cv_type_int_least32_t=yes
14434else
14435 echo "$as_me: failed program was:" >&5
14436sed 's/^/| /' conftest.$ac_ext >&5
14437
14438ac_cv_type_int_least32_t=no
14439fi
14440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14441fi
14442echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14443echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14444if test $ac_cv_type_int_least32_t = yes; then
14445 :
14446else
14447 acx_cv_header_stdint_kind="(mostly complete)"
14448fi
14449
14450 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14451echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14452if test "${ac_cv_type_int_fast32_t+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454else
14455 cat >conftest.$ac_ext <<_ACEOF
14456/* confdefs.h. */
14457_ACEOF
14458cat confdefs.h >>conftest.$ac_ext
14459cat >>conftest.$ac_ext <<_ACEOF
14460/* end confdefs.h. */
14461#include <sys/types.h>
14462#include <$i>
14463
14464int
14465main ()
14466{
14467if ((int_fast32_t *) 0)
14468 return 0;
14469if (sizeof (int_fast32_t))
14470 return 0;
14471 ;
14472 return 0;
14473}
14474_ACEOF
14475rm -f conftest.$ac_objext
14476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>conftest.er1
14478 ac_status=$?
14479 grep -v '^ *+' conftest.er1 >conftest.err
14480 rm -f conftest.er1
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
7357c5b6
AM
14484 { ac_try='test -z "$ac_c_werror_flag"
14485 || test ! -s conftest.err'
d5efd9fc
AM
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_cv_type_int_fast32_t=yes
14498else
14499 echo "$as_me: failed program was:" >&5
14500sed 's/^/| /' conftest.$ac_ext >&5
14501
14502ac_cv_type_int_fast32_t=no
14503fi
14504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14505fi
14506echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14507echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14508if test $ac_cv_type_int_fast32_t = yes; then
14509 :
14510else
14511 acx_cv_header_stdint_kind="(mostly complete)"
14512fi
14513
14514 echo "$as_me:$LINENO: checking for uint64_t" >&5
14515echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14516if test "${ac_cv_type_uint64_t+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14518else
14519 cat >conftest.$ac_ext <<_ACEOF
14520/* confdefs.h. */
14521_ACEOF
14522cat confdefs.h >>conftest.$ac_ext
14523cat >>conftest.$ac_ext <<_ACEOF
14524/* end confdefs.h. */
14525#include <sys/types.h>
14526#include <$i>
14527
14528int
14529main ()
14530{
14531if ((uint64_t *) 0)
14532 return 0;
14533if (sizeof (uint64_t))
14534 return 0;
14535 ;
14536 return 0;
14537}
14538_ACEOF
14539rm -f conftest.$ac_objext
14540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14541 (eval $ac_compile) 2>conftest.er1
14542 ac_status=$?
14543 grep -v '^ *+' conftest.er1 >conftest.err
14544 rm -f conftest.er1
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
7357c5b6
AM
14548 { ac_try='test -z "$ac_c_werror_flag"
14549 || test ! -s conftest.err'
d5efd9fc
AM
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; } &&
14555 { ac_try='test -s conftest.$ac_objext'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14561 ac_cv_type_uint64_t=yes
14562else
14563 echo "$as_me: failed program was:" >&5
14564sed 's/^/| /' conftest.$ac_ext >&5
14565
14566ac_cv_type_uint64_t=no
14567fi
14568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14569fi
14570echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14571echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14572if test $ac_cv_type_uint64_t = yes; then
14573 :
14574else
14575 acx_cv_header_stdint_kind="(lacks uint64_t)"
14576fi
14577
14578 break
14579done
14580if test "$acx_cv_header_stdint" = stddef.h; then
14581 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14582 for i in stdint.h $inttype_headers; do
14583 unset ac_cv_type_uintptr_t
14584 unset ac_cv_type_uint32_t
14585 unset ac_cv_type_uint64_t
14586 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14587 echo "$as_me:$LINENO: checking for uint32_t" >&5
14588echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14589if test "${ac_cv_type_uint32_t+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14591else
14592 cat >conftest.$ac_ext <<_ACEOF
14593/* confdefs.h. */
14594_ACEOF
14595cat confdefs.h >>conftest.$ac_ext
14596cat >>conftest.$ac_ext <<_ACEOF
14597/* end confdefs.h. */
14598#include <sys/types.h>
14599#include <$i>
14600
14601int
14602main ()
14603{
14604if ((uint32_t *) 0)
14605 return 0;
14606if (sizeof (uint32_t))
14607 return 0;
14608 ;
14609 return 0;
14610}
14611_ACEOF
14612rm -f conftest.$ac_objext
14613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14614 (eval $ac_compile) 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
7357c5b6
AM
14621 { ac_try='test -z "$ac_c_werror_flag"
14622 || test ! -s conftest.err'
d5efd9fc
AM
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest.$ac_objext'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }; then
14634 ac_cv_type_uint32_t=yes
14635else
14636 echo "$as_me: failed program was:" >&5
14637sed 's/^/| /' conftest.$ac_ext >&5
14638
14639ac_cv_type_uint32_t=no
14640fi
14641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14642fi
14643echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14644echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14645if test $ac_cv_type_uint32_t = yes; then
14646 acx_cv_header_stdint=$i
14647else
14648 continue
14649fi
14650
14651 echo "$as_me:$LINENO: checking for uint64_t" >&5
14652echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14653if test "${ac_cv_type_uint64_t+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14655else
14656 cat >conftest.$ac_ext <<_ACEOF
14657/* confdefs.h. */
14658_ACEOF
14659cat confdefs.h >>conftest.$ac_ext
14660cat >>conftest.$ac_ext <<_ACEOF
14661/* end confdefs.h. */
14662#include <sys/types.h>
14663#include <$i>
14664
14665int
14666main ()
14667{
14668if ((uint64_t *) 0)
14669 return 0;
14670if (sizeof (uint64_t))
14671 return 0;
14672 ;
14673 return 0;
14674}
14675_ACEOF
14676rm -f conftest.$ac_objext
14677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14678 (eval $ac_compile) 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
7357c5b6
AM
14685 { ac_try='test -z "$ac_c_werror_flag"
14686 || test ! -s conftest.err'
d5efd9fc
AM
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14689 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; } &&
14692 { ac_try='test -s conftest.$ac_objext'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698 ac_cv_type_uint64_t=yes
14699else
14700 echo "$as_me: failed program was:" >&5
14701sed 's/^/| /' conftest.$ac_ext >&5
14702
14703ac_cv_type_uint64_t=no
14704fi
14705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14706fi
14707echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14708echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14709
14710 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14711echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14712if test "${ac_cv_type_uintptr_t+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714else
14715 cat >conftest.$ac_ext <<_ACEOF
14716/* confdefs.h. */
14717_ACEOF
14718cat confdefs.h >>conftest.$ac_ext
14719cat >>conftest.$ac_ext <<_ACEOF
14720/* end confdefs.h. */
14721#include <sys/types.h>
14722#include <$i>
14723
14724int
14725main ()
14726{
14727if ((uintptr_t *) 0)
14728 return 0;
14729if (sizeof (uintptr_t))
14730 return 0;
14731 ;
14732 return 0;
14733}
14734_ACEOF
14735rm -f conftest.$ac_objext
14736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737 (eval $ac_compile) 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
7357c5b6
AM
14744 { ac_try='test -z "$ac_c_werror_flag"
14745 || test ! -s conftest.err'
d5efd9fc
AM
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest.$ac_objext'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_cv_type_uintptr_t=yes
14758else
14759 echo "$as_me: failed program was:" >&5
14760sed 's/^/| /' conftest.$ac_ext >&5
14761
14762ac_cv_type_uintptr_t=no
14763fi
14764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14765fi
14766echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14767echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14768
14769 break
14770 done
14771fi
14772if test "$acx_cv_header_stdint" = stddef.h; then
14773 acx_cv_header_stdint_kind="(u_intXX_t style)"
14774 for i in sys/types.h $inttype_headers; do
14775 unset ac_cv_type_u_int32_t
14776 unset ac_cv_type_u_int64_t
14777 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14778 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14779echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14780if test "${ac_cv_type_u_int32_t+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782else
14783 cat >conftest.$ac_ext <<_ACEOF
14784/* confdefs.h. */
14785_ACEOF
14786cat confdefs.h >>conftest.$ac_ext
14787cat >>conftest.$ac_ext <<_ACEOF
14788/* end confdefs.h. */
14789#include <sys/types.h>
14790#include <$i>
14791
14792int
14793main ()
14794{
14795if ((u_int32_t *) 0)
14796 return 0;
14797if (sizeof (u_int32_t))
14798 return 0;
14799 ;
14800 return 0;
14801}
14802_ACEOF
14803rm -f conftest.$ac_objext
14804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14805 (eval $ac_compile) 2>conftest.er1
14806 ac_status=$?
14807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -f conftest.er1
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
7357c5b6
AM
14812 { ac_try='test -z "$ac_c_werror_flag"
14813 || test ! -s conftest.err'
d5efd9fc
AM
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; } &&
14819 { ac_try='test -s conftest.$ac_objext'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }; then
14825 ac_cv_type_u_int32_t=yes
14826else
14827 echo "$as_me: failed program was:" >&5
14828sed 's/^/| /' conftest.$ac_ext >&5
14829
14830ac_cv_type_u_int32_t=no
14831fi
14832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14833fi
14834echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14835echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14836if test $ac_cv_type_u_int32_t = yes; then
14837 acx_cv_header_stdint=$i
14838else
14839 continue
14840fi
14841
14842 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14843echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14844if test "${ac_cv_type_u_int64_t+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14846else
14847 cat >conftest.$ac_ext <<_ACEOF
14848/* confdefs.h. */
14849_ACEOF
14850cat confdefs.h >>conftest.$ac_ext
14851cat >>conftest.$ac_ext <<_ACEOF
14852/* end confdefs.h. */
14853#include <sys/types.h>
14854#include <$i>
14855
14856int
14857main ()
14858{
14859if ((u_int64_t *) 0)
14860 return 0;
14861if (sizeof (u_int64_t))
14862 return 0;
14863 ;
14864 return 0;
14865}
14866_ACEOF
14867rm -f conftest.$ac_objext
14868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14869 (eval $ac_compile) 2>conftest.er1
14870 ac_status=$?
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
7357c5b6
AM
14876 { ac_try='test -z "$ac_c_werror_flag"
14877 || test ! -s conftest.err'
d5efd9fc
AM
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14880 ac_status=$?
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try='test -s conftest.$ac_objext'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 ac_cv_type_u_int64_t=yes
14890else
14891 echo "$as_me: failed program was:" >&5
14892sed 's/^/| /' conftest.$ac_ext >&5
14893
14894ac_cv_type_u_int64_t=no
14895fi
14896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14897fi
14898echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14899echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14900
14901 break
14902 done
14903fi
14904if test "$acx_cv_header_stdint" = stddef.h; then
14905 acx_cv_header_stdint_kind="(using manual detection)"
14906fi
14907
14908test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14909test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14910test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14911test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14912test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14913
14914# ----------------- Summarize what we found so far
14915
14916echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14917echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14918
14919case `$as_basename bfd_stdint.h ||
14920$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14921 Xbfd_stdint.h : 'X\(//\)$' \| \
14922 Xbfd_stdint.h : 'X\(/\)$' \| \
14923 . : '\(.\)' 2>/dev/null ||
14924echo X/bfd_stdint.h |
14925 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14926 /^X\/\(\/\/\)$/{ s//\1/; q; }
14927 /^X\/\(\/\).*/{ s//\1/; q; }
14928 s/.*/./; q'` in
14929 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14930echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14931 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14932echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14933 *) ;;
14934esac
14935
14936echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14937echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14938
14939# ----------------- done included file, check C basic types --------
14940
14941# Lacking an uintptr_t? Test size of void *
14942case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14943 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14944echo $ECHO_N "checking for void *... $ECHO_C" >&6
14945if test "${ac_cv_type_void_p+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947else
14948 cat >conftest.$ac_ext <<_ACEOF
14949/* confdefs.h. */
14950_ACEOF
14951cat confdefs.h >>conftest.$ac_ext
14952cat >>conftest.$ac_ext <<_ACEOF
14953/* end confdefs.h. */
14954$ac_includes_default
14955int
14956main ()
14957{
14958if ((void * *) 0)
14959 return 0;
14960if (sizeof (void *))
14961 return 0;
14962 ;
14963 return 0;
14964}
14965_ACEOF
14966rm -f conftest.$ac_objext
14967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14968 (eval $ac_compile) 2>conftest.er1
14969 ac_status=$?
14970 grep -v '^ *+' conftest.er1 >conftest.err
14971 rm -f conftest.er1
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
7357c5b6
AM
14975 { ac_try='test -z "$ac_c_werror_flag"
14976 || test ! -s conftest.err'
d5efd9fc
AM
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; } &&
14982 { ac_try='test -s conftest.$ac_objext'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988 ac_cv_type_void_p=yes
14989else
14990 echo "$as_me: failed program was:" >&5
14991sed 's/^/| /' conftest.$ac_ext >&5
14992
14993ac_cv_type_void_p=no
14994fi
14995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14996fi
14997echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14998echo "${ECHO_T}$ac_cv_type_void_p" >&6
14999
15000echo "$as_me:$LINENO: checking size of void *" >&5
15001echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15002if test "${ac_cv_sizeof_void_p+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15004else
15005 if test "$ac_cv_type_void_p" = yes; then
15006 # The cast to unsigned long works around a bug in the HP C Compiler
15007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15009 # This bug is HP SR number 8606223364.
15010 if test "$cross_compiling" = yes; then
15011 # Depending upon the size, compute the lo and hi bounds.
15012cat >conftest.$ac_ext <<_ACEOF
15013/* confdefs.h. */
15014_ACEOF
15015cat confdefs.h >>conftest.$ac_ext
15016cat >>conftest.$ac_ext <<_ACEOF
15017/* end confdefs.h. */
15018$ac_includes_default
15019int
15020main ()
15021{
15022static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15023test_array [0] = 0
15024
15025 ;
15026 return 0;
15027}
15028_ACEOF
15029rm -f conftest.$ac_objext
15030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15031 (eval $ac_compile) 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
7357c5b6
AM
15038 { ac_try='test -z "$ac_c_werror_flag"
15039 || test ! -s conftest.err'
d5efd9fc
AM
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } &&
15045 { ac_try='test -s conftest.$ac_objext'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 ac_lo=0 ac_mid=0
15052 while :; do
15053 cat >conftest.$ac_ext <<_ACEOF
15054/* confdefs.h. */
15055_ACEOF
15056cat confdefs.h >>conftest.$ac_ext
15057cat >>conftest.$ac_ext <<_ACEOF
15058/* end confdefs.h. */
15059$ac_includes_default
15060int
15061main ()
15062{
15063static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15064test_array [0] = 0
15065
15066 ;
15067 return 0;
15068}
15069_ACEOF
15070rm -f conftest.$ac_objext
15071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15072 (eval $ac_compile) 2>conftest.er1
15073 ac_status=$?
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
7357c5b6
AM
15079 { ac_try='test -z "$ac_c_werror_flag"
15080 || test ! -s conftest.err'
d5efd9fc
AM
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; } &&
15086 { ac_try='test -s conftest.$ac_objext'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15092 ac_hi=$ac_mid; break
15093else
15094 echo "$as_me: failed program was:" >&5
15095sed 's/^/| /' conftest.$ac_ext >&5
15096
15097ac_lo=`expr $ac_mid + 1`
15098 if test $ac_lo -le $ac_mid; then
15099 ac_lo= ac_hi=
15100 break
15101 fi
15102 ac_mid=`expr 2 '*' $ac_mid + 1`
15103fi
15104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15105 done
15106else
15107 echo "$as_me: failed program was:" >&5
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
15110cat >conftest.$ac_ext <<_ACEOF
15111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
15115/* end confdefs.h. */
15116$ac_includes_default
15117int
15118main ()
15119{
15120static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15121test_array [0] = 0
15122
15123 ;
15124 return 0;
15125}
15126_ACEOF
15127rm -f conftest.$ac_objext
15128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15129 (eval $ac_compile) 2>conftest.er1
15130 ac_status=$?
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
7357c5b6
AM
15136 { ac_try='test -z "$ac_c_werror_flag"
15137 || test ! -s conftest.err'
d5efd9fc
AM
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; } &&
15143 { ac_try='test -s conftest.$ac_objext'
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15146 ac_status=$?
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; }; then
15149 ac_hi=-1 ac_mid=-1
15150 while :; do
15151 cat >conftest.$ac_ext <<_ACEOF
15152/* confdefs.h. */
15153_ACEOF
15154cat confdefs.h >>conftest.$ac_ext
15155cat >>conftest.$ac_ext <<_ACEOF
15156/* end confdefs.h. */
15157$ac_includes_default
15158int
15159main ()
15160{
15161static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15162test_array [0] = 0
15163
15164 ;
15165 return 0;
15166}
15167_ACEOF
15168rm -f conftest.$ac_objext
15169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15170 (eval $ac_compile) 2>conftest.er1
15171 ac_status=$?
15172 grep -v '^ *+' conftest.er1 >conftest.err
15173 rm -f conftest.er1
15174 cat conftest.err >&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
7357c5b6
AM
15177 { ac_try='test -z "$ac_c_werror_flag"
15178 || test ! -s conftest.err'
d5efd9fc
AM
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; } &&
15184 { ac_try='test -s conftest.$ac_objext'
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15190 ac_lo=$ac_mid; break
15191else
15192 echo "$as_me: failed program was:" >&5
15193sed 's/^/| /' conftest.$ac_ext >&5
15194
15195ac_hi=`expr '(' $ac_mid ')' - 1`
15196 if test $ac_mid -le $ac_hi; then
15197 ac_lo= ac_hi=
15198 break
15199 fi
15200 ac_mid=`expr 2 '*' $ac_mid`
15201fi
15202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15203 done
15204else
15205 echo "$as_me: failed program was:" >&5
15206sed 's/^/| /' conftest.$ac_ext >&5
15207
15208ac_lo= ac_hi=
15209fi
15210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15211fi
15212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15213# Binary search between lo and hi bounds.
15214while test "x$ac_lo" != "x$ac_hi"; do
15215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15216 cat >conftest.$ac_ext <<_ACEOF
15217/* confdefs.h. */
15218_ACEOF
15219cat confdefs.h >>conftest.$ac_ext
15220cat >>conftest.$ac_ext <<_ACEOF
15221/* end confdefs.h. */
15222$ac_includes_default
15223int
15224main ()
15225{
15226static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15227test_array [0] = 0
15228
15229 ;
15230 return 0;
15231}
15232_ACEOF
15233rm -f conftest.$ac_objext
15234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15235 (eval $ac_compile) 2>conftest.er1
15236 ac_status=$?
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
7357c5b6
AM
15242 { ac_try='test -z "$ac_c_werror_flag"
15243 || test ! -s conftest.err'
d5efd9fc
AM
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try='test -s conftest.$ac_objext'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 ac_hi=$ac_mid
15256else
15257 echo "$as_me: failed program was:" >&5
15258sed 's/^/| /' conftest.$ac_ext >&5
15259
15260ac_lo=`expr '(' $ac_mid ')' + 1`
15261fi
15262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15263done
15264case $ac_lo in
15265?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
15266'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15267echo "$as_me: error: in \`$ac_pwd':" >&2;}
15268{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d5efd9fc
AM
15269See \`config.log' for more details." >&5
15270echo "$as_me: error: cannot compute sizeof (void *), 77
15271See \`config.log' for more details." >&2;}
7357c5b6 15272 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15273esac
15274else
15275 if test "$cross_compiling" = yes; then
7357c5b6
AM
15276 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15277echo "$as_me: error: in \`$ac_pwd':" >&2;}
15278{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15279See \`config.log' for more details." >&5
15280echo "$as_me: error: cannot run test program while cross compiling
15281See \`config.log' for more details." >&2;}
15282 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15283else
15284 cat >conftest.$ac_ext <<_ACEOF
15285/* confdefs.h. */
15286_ACEOF
15287cat confdefs.h >>conftest.$ac_ext
15288cat >>conftest.$ac_ext <<_ACEOF
15289/* end confdefs.h. */
15290$ac_includes_default
15291long longval () { return (long) (sizeof (void *)); }
15292unsigned long ulongval () { return (long) (sizeof (void *)); }
15293#include <stdio.h>
15294#include <stdlib.h>
15295int
15296main ()
15297{
15298
15299 FILE *f = fopen ("conftest.val", "w");
15300 if (! f)
15301 exit (1);
15302 if (((long) (sizeof (void *))) < 0)
15303 {
15304 long i = longval ();
15305 if (i != ((long) (sizeof (void *))))
15306 exit (1);
15307 fprintf (f, "%ld\n", i);
15308 }
15309 else
15310 {
15311 unsigned long i = ulongval ();
15312 if (i != ((long) (sizeof (void *))))
15313 exit (1);
15314 fprintf (f, "%lu\n", i);
15315 }
15316 exit (ferror (f) || fclose (f) != 0);
15317
15318 ;
15319 return 0;
15320}
15321_ACEOF
15322rm -f conftest$ac_exeext
15323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324 (eval $ac_link) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_cv_sizeof_void_p=`cat conftest.val`
15334else
15335 echo "$as_me: program exited with status $ac_status" >&5
15336echo "$as_me: failed program was:" >&5
15337sed 's/^/| /' conftest.$ac_ext >&5
15338
15339( exit $ac_status )
7357c5b6
AM
15340{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15341echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15342{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15343See \`config.log' for more details." >&5
15344echo "$as_me: error: cannot compute sizeof (void *), 77
15345See \`config.log' for more details." >&2;}
7357c5b6 15346 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15347fi
15348rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15349fi
15350fi
15351rm -f conftest.val
15352else
15353 ac_cv_sizeof_void_p=0
15354fi
15355fi
15356echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15357echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15358cat >>confdefs.h <<_ACEOF
15359#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15360_ACEOF
15361
15362 ;;
15363esac
15364
15365# Lacking an uint64_t? Test size of long
15366case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15367 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15368echo $ECHO_N "checking for long... $ECHO_C" >&6
15369if test "${ac_cv_type_long+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15371else
15372 cat >conftest.$ac_ext <<_ACEOF
15373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
15378$ac_includes_default
15379int
15380main ()
15381{
15382if ((long *) 0)
15383 return 0;
15384if (sizeof (long))
15385 return 0;
15386 ;
15387 return 0;
15388}
15389_ACEOF
15390rm -f conftest.$ac_objext
15391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15392 (eval $ac_compile) 2>conftest.er1
15393 ac_status=$?
15394 grep -v '^ *+' conftest.er1 >conftest.err
15395 rm -f conftest.er1
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } &&
7357c5b6
AM
15399 { ac_try='test -z "$ac_c_werror_flag"
15400 || test ! -s conftest.err'
d5efd9fc
AM
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; } &&
15406 { ac_try='test -s conftest.$ac_objext'
15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 ac_cv_type_long=yes
15413else
15414 echo "$as_me: failed program was:" >&5
15415sed 's/^/| /' conftest.$ac_ext >&5
15416
15417ac_cv_type_long=no
15418fi
15419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15420fi
15421echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15422echo "${ECHO_T}$ac_cv_type_long" >&6
15423
15424echo "$as_me:$LINENO: checking size of long" >&5
15425echo $ECHO_N "checking size of long... $ECHO_C" >&6
15426if test "${ac_cv_sizeof_long+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15428else
15429 if test "$ac_cv_type_long" = yes; then
15430 # The cast to unsigned long works around a bug in the HP C Compiler
15431 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15432 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15433 # This bug is HP SR number 8606223364.
15434 if test "$cross_compiling" = yes; then
15435 # Depending upon the size, compute the lo and hi bounds.
15436cat >conftest.$ac_ext <<_ACEOF
15437/* confdefs.h. */
15438_ACEOF
15439cat confdefs.h >>conftest.$ac_ext
15440cat >>conftest.$ac_ext <<_ACEOF
15441/* end confdefs.h. */
15442$ac_includes_default
15443int
15444main ()
15445{
15446static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15447test_array [0] = 0
15448
15449 ;
15450 return 0;
15451}
15452_ACEOF
15453rm -f conftest.$ac_objext
15454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15455 (eval $ac_compile) 2>conftest.er1
15456 ac_status=$?
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } &&
7357c5b6
AM
15462 { ac_try='test -z "$ac_c_werror_flag"
15463 || test ! -s conftest.err'
d5efd9fc
AM
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; } &&
15469 { ac_try='test -s conftest.$ac_objext'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; }; then
15475 ac_lo=0 ac_mid=0
15476 while :; do
15477 cat >conftest.$ac_ext <<_ACEOF
15478/* confdefs.h. */
15479_ACEOF
15480cat confdefs.h >>conftest.$ac_ext
15481cat >>conftest.$ac_ext <<_ACEOF
15482/* end confdefs.h. */
15483$ac_includes_default
15484int
15485main ()
15486{
15487static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15488test_array [0] = 0
15489
15490 ;
15491 return 0;
15492}
15493_ACEOF
15494rm -f conftest.$ac_objext
15495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15496 (eval $ac_compile) 2>conftest.er1
15497 ac_status=$?
15498 grep -v '^ *+' conftest.er1 >conftest.err
15499 rm -f conftest.er1
15500 cat conftest.err >&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
7357c5b6
AM
15503 { ac_try='test -z "$ac_c_werror_flag"
15504 || test ! -s conftest.err'
d5efd9fc
AM
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; } &&
15510 { ac_try='test -s conftest.$ac_objext'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 ac_hi=$ac_mid; break
15517else
15518 echo "$as_me: failed program was:" >&5
15519sed 's/^/| /' conftest.$ac_ext >&5
15520
15521ac_lo=`expr $ac_mid + 1`
15522 if test $ac_lo -le $ac_mid; then
15523 ac_lo= ac_hi=
15524 break
15525 fi
15526 ac_mid=`expr 2 '*' $ac_mid + 1`
15527fi
15528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15529 done
15530else
15531 echo "$as_me: failed program was:" >&5
15532sed 's/^/| /' conftest.$ac_ext >&5
15533
15534cat >conftest.$ac_ext <<_ACEOF
15535/* confdefs.h. */
15536_ACEOF
15537cat confdefs.h >>conftest.$ac_ext
15538cat >>conftest.$ac_ext <<_ACEOF
15539/* end confdefs.h. */
15540$ac_includes_default
15541int
15542main ()
15543{
15544static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15545test_array [0] = 0
15546
15547 ;
15548 return 0;
15549}
15550_ACEOF
15551rm -f conftest.$ac_objext
15552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553 (eval $ac_compile) 2>conftest.er1
15554 ac_status=$?
15555 grep -v '^ *+' conftest.er1 >conftest.err
15556 rm -f conftest.er1
15557 cat conftest.err >&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
7357c5b6
AM
15560 { ac_try='test -z "$ac_c_werror_flag"
15561 || test ! -s conftest.err'
d5efd9fc
AM
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 ac_hi=-1 ac_mid=-1
15574 while :; do
15575 cat >conftest.$ac_ext <<_ACEOF
15576/* confdefs.h. */
15577_ACEOF
15578cat confdefs.h >>conftest.$ac_ext
15579cat >>conftest.$ac_ext <<_ACEOF
15580/* end confdefs.h. */
15581$ac_includes_default
15582int
15583main ()
15584{
15585static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15586test_array [0] = 0
15587
15588 ;
15589 return 0;
15590}
15591_ACEOF
15592rm -f conftest.$ac_objext
15593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15594 (eval $ac_compile) 2>conftest.er1
15595 ac_status=$?
15596 grep -v '^ *+' conftest.er1 >conftest.err
15597 rm -f conftest.er1
15598 cat conftest.err >&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } &&
7357c5b6
AM
15601 { ac_try='test -z "$ac_c_werror_flag"
15602 || test ! -s conftest.err'
d5efd9fc
AM
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; } &&
15608 { ac_try='test -s conftest.$ac_objext'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15614 ac_lo=$ac_mid; break
15615else
15616 echo "$as_me: failed program was:" >&5
15617sed 's/^/| /' conftest.$ac_ext >&5
15618
15619ac_hi=`expr '(' $ac_mid ')' - 1`
15620 if test $ac_mid -le $ac_hi; then
15621 ac_lo= ac_hi=
15622 break
15623 fi
15624 ac_mid=`expr 2 '*' $ac_mid`
15625fi
15626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15627 done
15628else
15629 echo "$as_me: failed program was:" >&5
15630sed 's/^/| /' conftest.$ac_ext >&5
15631
15632ac_lo= ac_hi=
15633fi
15634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15635fi
15636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15637# Binary search between lo and hi bounds.
15638while test "x$ac_lo" != "x$ac_hi"; do
15639 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15640 cat >conftest.$ac_ext <<_ACEOF
15641/* confdefs.h. */
15642_ACEOF
15643cat confdefs.h >>conftest.$ac_ext
15644cat >>conftest.$ac_ext <<_ACEOF
15645/* end confdefs.h. */
15646$ac_includes_default
15647int
15648main ()
15649{
15650static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15651test_array [0] = 0
15652
15653 ;
15654 return 0;
15655}
15656_ACEOF
15657rm -f conftest.$ac_objext
15658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15659 (eval $ac_compile) 2>conftest.er1
15660 ac_status=$?
15661 grep -v '^ *+' conftest.er1 >conftest.err
15662 rm -f conftest.er1
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
7357c5b6
AM
15666 { ac_try='test -z "$ac_c_werror_flag"
15667 || test ! -s conftest.err'
d5efd9fc
AM
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; } &&
15673 { ac_try='test -s conftest.$ac_objext'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 ac_hi=$ac_mid
15680else
15681 echo "$as_me: failed program was:" >&5
15682sed 's/^/| /' conftest.$ac_ext >&5
15683
15684ac_lo=`expr '(' $ac_mid ')' + 1`
15685fi
15686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15687done
15688case $ac_lo in
15689?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
15690'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15691echo "$as_me: error: in \`$ac_pwd':" >&2;}
15692{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
d5efd9fc
AM
15693See \`config.log' for more details." >&5
15694echo "$as_me: error: cannot compute sizeof (long), 77
15695See \`config.log' for more details." >&2;}
7357c5b6 15696 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15697esac
15698else
15699 if test "$cross_compiling" = yes; then
7357c5b6
AM
15700 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15701echo "$as_me: error: in \`$ac_pwd':" >&2;}
15702{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15703See \`config.log' for more details." >&5
15704echo "$as_me: error: cannot run test program while cross compiling
15705See \`config.log' for more details." >&2;}
15706 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15707else
15708 cat >conftest.$ac_ext <<_ACEOF
15709/* confdefs.h. */
15710_ACEOF
15711cat confdefs.h >>conftest.$ac_ext
15712cat >>conftest.$ac_ext <<_ACEOF
15713/* end confdefs.h. */
15714$ac_includes_default
15715long longval () { return (long) (sizeof (long)); }
15716unsigned long ulongval () { return (long) (sizeof (long)); }
15717#include <stdio.h>
15718#include <stdlib.h>
15719int
15720main ()
15721{
15722
15723 FILE *f = fopen ("conftest.val", "w");
15724 if (! f)
15725 exit (1);
15726 if (((long) (sizeof (long))) < 0)
15727 {
15728 long i = longval ();
15729 if (i != ((long) (sizeof (long))))
15730 exit (1);
15731 fprintf (f, "%ld\n", i);
15732 }
15733 else
15734 {
15735 unsigned long i = ulongval ();
15736 if (i != ((long) (sizeof (long))))
15737 exit (1);
15738 fprintf (f, "%lu\n", i);
15739 }
15740 exit (ferror (f) || fclose (f) != 0);
15741
15742 ;
15743 return 0;
15744}
15745_ACEOF
15746rm -f conftest$ac_exeext
15747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15748 (eval $ac_link) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_cv_sizeof_long=`cat conftest.val`
15758else
15759 echo "$as_me: program exited with status $ac_status" >&5
15760echo "$as_me: failed program was:" >&5
15761sed 's/^/| /' conftest.$ac_ext >&5
15762
15763( exit $ac_status )
7357c5b6
AM
15764{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15765echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15766{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15767See \`config.log' for more details." >&5
15768echo "$as_me: error: cannot compute sizeof (long), 77
15769See \`config.log' for more details." >&2;}
7357c5b6 15770 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15771fi
15772rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15773fi
15774fi
15775rm -f conftest.val
15776else
15777 ac_cv_sizeof_long=0
15778fi
15779fi
15780echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15781echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15782cat >>confdefs.h <<_ACEOF
15783#define SIZEOF_LONG $ac_cv_sizeof_long
15784_ACEOF
15785
15786 ;;
15787esac
15788
15789if test $acx_cv_header_stdint = stddef.h; then
15790 # Lacking a good header? Test size of everything and deduce all types.
15791 echo "$as_me:$LINENO: checking for int" >&5
15792echo $ECHO_N "checking for int... $ECHO_C" >&6
15793if test "${ac_cv_type_int+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15795else
15796 cat >conftest.$ac_ext <<_ACEOF
15797/* confdefs.h. */
15798_ACEOF
15799cat confdefs.h >>conftest.$ac_ext
15800cat >>conftest.$ac_ext <<_ACEOF
15801/* end confdefs.h. */
15802$ac_includes_default
15803int
15804main ()
15805{
15806if ((int *) 0)
15807 return 0;
15808if (sizeof (int))
15809 return 0;
15810 ;
15811 return 0;
15812}
15813_ACEOF
15814rm -f conftest.$ac_objext
15815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15816 (eval $ac_compile) 2>conftest.er1
15817 ac_status=$?
15818 grep -v '^ *+' conftest.er1 >conftest.err
15819 rm -f conftest.er1
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
7357c5b6
AM
15823 { ac_try='test -z "$ac_c_werror_flag"
15824 || test ! -s conftest.err'
d5efd9fc
AM
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; } &&
15830 { ac_try='test -s conftest.$ac_objext'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15836 ac_cv_type_int=yes
15837else
15838 echo "$as_me: failed program was:" >&5
15839sed 's/^/| /' conftest.$ac_ext >&5
15840
15841ac_cv_type_int=no
15842fi
15843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15844fi
15845echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15846echo "${ECHO_T}$ac_cv_type_int" >&6
15847
15848echo "$as_me:$LINENO: checking size of int" >&5
15849echo $ECHO_N "checking size of int... $ECHO_C" >&6
15850if test "${ac_cv_sizeof_int+set}" = set; then
15851 echo $ECHO_N "(cached) $ECHO_C" >&6
15852else
15853 if test "$ac_cv_type_int" = yes; then
15854 # The cast to unsigned long works around a bug in the HP C Compiler
15855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15857 # This bug is HP SR number 8606223364.
15858 if test "$cross_compiling" = yes; then
15859 # Depending upon the size, compute the lo and hi bounds.
15860cat >conftest.$ac_ext <<_ACEOF
15861/* confdefs.h. */
15862_ACEOF
15863cat confdefs.h >>conftest.$ac_ext
15864cat >>conftest.$ac_ext <<_ACEOF
15865/* end confdefs.h. */
15866$ac_includes_default
15867int
15868main ()
15869{
15870static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15871test_array [0] = 0
15872
15873 ;
15874 return 0;
15875}
15876_ACEOF
15877rm -f conftest.$ac_objext
15878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15879 (eval $ac_compile) 2>conftest.er1
15880 ac_status=$?
15881 grep -v '^ *+' conftest.er1 >conftest.err
15882 rm -f conftest.er1
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } &&
7357c5b6
AM
15886 { ac_try='test -z "$ac_c_werror_flag"
15887 || test ! -s conftest.err'
d5efd9fc
AM
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; } &&
15893 { ac_try='test -s conftest.$ac_objext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_lo=0 ac_mid=0
15900 while :; do
15901 cat >conftest.$ac_ext <<_ACEOF
15902/* confdefs.h. */
15903_ACEOF
15904cat confdefs.h >>conftest.$ac_ext
15905cat >>conftest.$ac_ext <<_ACEOF
15906/* end confdefs.h. */
15907$ac_includes_default
15908int
15909main ()
15910{
15911static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15912test_array [0] = 0
15913
15914 ;
15915 return 0;
15916}
15917_ACEOF
15918rm -f conftest.$ac_objext
15919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15920 (eval $ac_compile) 2>conftest.er1
15921 ac_status=$?
15922 grep -v '^ *+' conftest.er1 >conftest.err
15923 rm -f conftest.er1
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
7357c5b6
AM
15927 { ac_try='test -z "$ac_c_werror_flag"
15928 || test ! -s conftest.err'
d5efd9fc
AM
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15931 ac_status=$?
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; } &&
15934 { ac_try='test -s conftest.$ac_objext'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15937 ac_status=$?
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_hi=$ac_mid; break
15941else
15942 echo "$as_me: failed program was:" >&5
15943sed 's/^/| /' conftest.$ac_ext >&5
15944
15945ac_lo=`expr $ac_mid + 1`
15946 if test $ac_lo -le $ac_mid; then
15947 ac_lo= ac_hi=
15948 break
15949 fi
15950 ac_mid=`expr 2 '*' $ac_mid + 1`
15951fi
15952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15953 done
15954else
15955 echo "$as_me: failed program was:" >&5
15956sed 's/^/| /' conftest.$ac_ext >&5
15957
15958cat >conftest.$ac_ext <<_ACEOF
15959/* confdefs.h. */
15960_ACEOF
15961cat confdefs.h >>conftest.$ac_ext
15962cat >>conftest.$ac_ext <<_ACEOF
15963/* end confdefs.h. */
15964$ac_includes_default
15965int
15966main ()
15967{
15968static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15969test_array [0] = 0
15970
15971 ;
15972 return 0;
15973}
15974_ACEOF
15975rm -f conftest.$ac_objext
15976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977 (eval $ac_compile) 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
7357c5b6
AM
15984 { ac_try='test -z "$ac_c_werror_flag"
15985 || test ! -s conftest.err'
d5efd9fc
AM
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; } &&
15991 { ac_try='test -s conftest.$ac_objext'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15994 ac_status=$?
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_hi=-1 ac_mid=-1
15998 while :; do
15999 cat >conftest.$ac_ext <<_ACEOF
16000/* confdefs.h. */
16001_ACEOF
16002cat confdefs.h >>conftest.$ac_ext
16003cat >>conftest.$ac_ext <<_ACEOF
16004/* end confdefs.h. */
16005$ac_includes_default
16006int
16007main ()
16008{
16009static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16010test_array [0] = 0
16011
16012 ;
16013 return 0;
16014}
16015_ACEOF
16016rm -f conftest.$ac_objext
16017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16018 (eval $ac_compile) 2>conftest.er1
16019 ac_status=$?
16020 grep -v '^ *+' conftest.er1 >conftest.err
16021 rm -f conftest.er1
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
7357c5b6
AM
16025 { ac_try='test -z "$ac_c_werror_flag"
16026 || test ! -s conftest.err'
d5efd9fc
AM
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; } &&
16032 { ac_try='test -s conftest.$ac_objext'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_lo=$ac_mid; break
16039else
16040 echo "$as_me: failed program was:" >&5
16041sed 's/^/| /' conftest.$ac_ext >&5
16042
16043ac_hi=`expr '(' $ac_mid ')' - 1`
16044 if test $ac_mid -le $ac_hi; then
16045 ac_lo= ac_hi=
16046 break
16047 fi
16048 ac_mid=`expr 2 '*' $ac_mid`
16049fi
16050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16051 done
16052else
16053 echo "$as_me: failed program was:" >&5
16054sed 's/^/| /' conftest.$ac_ext >&5
16055
16056ac_lo= ac_hi=
16057fi
16058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16059fi
16060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16061# Binary search between lo and hi bounds.
16062while test "x$ac_lo" != "x$ac_hi"; do
16063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16064 cat >conftest.$ac_ext <<_ACEOF
16065/* confdefs.h. */
16066_ACEOF
16067cat confdefs.h >>conftest.$ac_ext
16068cat >>conftest.$ac_ext <<_ACEOF
16069/* end confdefs.h. */
16070$ac_includes_default
16071int
16072main ()
16073{
16074static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16075test_array [0] = 0
16076
16077 ;
16078 return 0;
16079}
16080_ACEOF
16081rm -f conftest.$ac_objext
16082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083 (eval $ac_compile) 2>conftest.er1
16084 ac_status=$?
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
7357c5b6
AM
16090 { ac_try='test -z "$ac_c_werror_flag"
16091 || test ! -s conftest.err'
d5efd9fc
AM
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; } &&
16097 { ac_try='test -s conftest.$ac_objext'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103 ac_hi=$ac_mid
16104else
16105 echo "$as_me: failed program was:" >&5
16106sed 's/^/| /' conftest.$ac_ext >&5
16107
16108ac_lo=`expr '(' $ac_mid ')' + 1`
16109fi
16110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16111done
16112case $ac_lo in
16113?*) ac_cv_sizeof_int=$ac_lo;;
7357c5b6
AM
16114'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16115echo "$as_me: error: in \`$ac_pwd':" >&2;}
16116{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
d5efd9fc
AM
16117See \`config.log' for more details." >&5
16118echo "$as_me: error: cannot compute sizeof (int), 77
16119See \`config.log' for more details." >&2;}
7357c5b6 16120 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16121esac
16122else
16123 if test "$cross_compiling" = yes; then
7357c5b6
AM
16124 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16125echo "$as_me: error: in \`$ac_pwd':" >&2;}
16126{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16127See \`config.log' for more details." >&5
16128echo "$as_me: error: cannot run test program while cross compiling
16129See \`config.log' for more details." >&2;}
16130 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16131else
16132 cat >conftest.$ac_ext <<_ACEOF
16133/* confdefs.h. */
16134_ACEOF
16135cat confdefs.h >>conftest.$ac_ext
16136cat >>conftest.$ac_ext <<_ACEOF
16137/* end confdefs.h. */
16138$ac_includes_default
16139long longval () { return (long) (sizeof (int)); }
16140unsigned long ulongval () { return (long) (sizeof (int)); }
16141#include <stdio.h>
16142#include <stdlib.h>
16143int
16144main ()
16145{
16146
16147 FILE *f = fopen ("conftest.val", "w");
16148 if (! f)
16149 exit (1);
16150 if (((long) (sizeof (int))) < 0)
16151 {
16152 long i = longval ();
16153 if (i != ((long) (sizeof (int))))
16154 exit (1);
16155 fprintf (f, "%ld\n", i);
16156 }
16157 else
16158 {
16159 unsigned long i = ulongval ();
16160 if (i != ((long) (sizeof (int))))
16161 exit (1);
16162 fprintf (f, "%lu\n", i);
16163 }
16164 exit (ferror (f) || fclose (f) != 0);
16165
16166 ;
16167 return 0;
16168}
16169_ACEOF
16170rm -f conftest$ac_exeext
16171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16172 (eval $ac_link) 2>&5
16173 ac_status=$?
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_cv_sizeof_int=`cat conftest.val`
16182else
16183 echo "$as_me: program exited with status $ac_status" >&5
16184echo "$as_me: failed program was:" >&5
16185sed 's/^/| /' conftest.$ac_ext >&5
16186
16187( exit $ac_status )
7357c5b6
AM
16188{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16189echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
16190{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16191See \`config.log' for more details." >&5
16192echo "$as_me: error: cannot compute sizeof (int), 77
16193See \`config.log' for more details." >&2;}
7357c5b6 16194 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16195fi
16196rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16197fi
16198fi
16199rm -f conftest.val
16200else
16201 ac_cv_sizeof_int=0
16202fi
16203fi
16204echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16205echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16206cat >>confdefs.h <<_ACEOF
16207#define SIZEOF_INT $ac_cv_sizeof_int
16208_ACEOF
16209
16210
16211 echo "$as_me:$LINENO: checking for short" >&5
16212echo $ECHO_N "checking for short... $ECHO_C" >&6
16213if test "${ac_cv_type_short+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16215else
16216 cat >conftest.$ac_ext <<_ACEOF
16217/* confdefs.h. */
16218_ACEOF
16219cat confdefs.h >>conftest.$ac_ext
16220cat >>conftest.$ac_ext <<_ACEOF
16221/* end confdefs.h. */
16222$ac_includes_default
16223int
16224main ()
16225{
16226if ((short *) 0)
16227 return 0;
16228if (sizeof (short))
16229 return 0;
16230 ;
16231 return 0;
16232}
16233_ACEOF
16234rm -f conftest.$ac_objext
16235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16236 (eval $ac_compile) 2>conftest.er1
16237 ac_status=$?
16238 grep -v '^ *+' conftest.er1 >conftest.err
16239 rm -f conftest.er1
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } &&
7357c5b6
AM
16243 { ac_try='test -z "$ac_c_werror_flag"
16244 || test ! -s conftest.err'
d5efd9fc
AM
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; } &&
16250 { ac_try='test -s conftest.$ac_objext'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16256 ac_cv_type_short=yes
16257else
16258 echo "$as_me: failed program was:" >&5
16259sed 's/^/| /' conftest.$ac_ext >&5
16260
16261ac_cv_type_short=no
16262fi
16263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16264fi
16265echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16266echo "${ECHO_T}$ac_cv_type_short" >&6
16267
16268echo "$as_me:$LINENO: checking size of short" >&5
16269echo $ECHO_N "checking size of short... $ECHO_C" >&6
16270if test "${ac_cv_sizeof_short+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16272else
16273 if test "$ac_cv_type_short" = yes; then
16274 # The cast to unsigned long works around a bug in the HP C Compiler
16275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16277 # This bug is HP SR number 8606223364.
16278 if test "$cross_compiling" = yes; then
16279 # Depending upon the size, compute the lo and hi bounds.
16280cat >conftest.$ac_ext <<_ACEOF
16281/* confdefs.h. */
16282_ACEOF
16283cat confdefs.h >>conftest.$ac_ext
16284cat >>conftest.$ac_ext <<_ACEOF
16285/* end confdefs.h. */
16286$ac_includes_default
16287int
16288main ()
16289{
16290static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16291test_array [0] = 0
16292
16293 ;
16294 return 0;
16295}
16296_ACEOF
16297rm -f conftest.$ac_objext
16298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16299 (eval $ac_compile) 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
7357c5b6
AM
16306 { ac_try='test -z "$ac_c_werror_flag"
16307 || test ! -s conftest.err'
d5efd9fc
AM
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; } &&
16313 { ac_try='test -s conftest.$ac_objext'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 ac_lo=0 ac_mid=0
16320 while :; do
16321 cat >conftest.$ac_ext <<_ACEOF
16322/* confdefs.h. */
16323_ACEOF
16324cat confdefs.h >>conftest.$ac_ext
16325cat >>conftest.$ac_ext <<_ACEOF
16326/* end confdefs.h. */
16327$ac_includes_default
16328int
16329main ()
16330{
16331static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16332test_array [0] = 0
16333
16334 ;
16335 return 0;
16336}
16337_ACEOF
16338rm -f conftest.$ac_objext
16339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16340 (eval $ac_compile) 2>conftest.er1
16341 ac_status=$?
16342 grep -v '^ *+' conftest.er1 >conftest.err
16343 rm -f conftest.er1
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } &&
7357c5b6
AM
16347 { ac_try='test -z "$ac_c_werror_flag"
16348 || test ! -s conftest.err'
d5efd9fc
AM
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest.$ac_objext'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 ac_hi=$ac_mid; break
16361else
16362 echo "$as_me: failed program was:" >&5
16363sed 's/^/| /' conftest.$ac_ext >&5
16364
16365ac_lo=`expr $ac_mid + 1`
16366 if test $ac_lo -le $ac_mid; then
16367 ac_lo= ac_hi=
16368 break
16369 fi
16370 ac_mid=`expr 2 '*' $ac_mid + 1`
16371fi
16372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16373 done
16374else
16375 echo "$as_me: failed program was:" >&5
16376sed 's/^/| /' conftest.$ac_ext >&5
16377
16378cat >conftest.$ac_ext <<_ACEOF
16379/* confdefs.h. */
16380_ACEOF
16381cat confdefs.h >>conftest.$ac_ext
16382cat >>conftest.$ac_ext <<_ACEOF
16383/* end confdefs.h. */
16384$ac_includes_default
16385int
16386main ()
16387{
16388static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16389test_array [0] = 0
16390
16391 ;
16392 return 0;
16393}
16394_ACEOF
16395rm -f conftest.$ac_objext
16396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16397 (eval $ac_compile) 2>conftest.er1
16398 ac_status=$?
16399 grep -v '^ *+' conftest.er1 >conftest.err
16400 rm -f conftest.er1
16401 cat conftest.err >&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
7357c5b6
AM
16404 { ac_try='test -z "$ac_c_werror_flag"
16405 || test ! -s conftest.err'
d5efd9fc
AM
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; } &&
16411 { ac_try='test -s conftest.$ac_objext'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 ac_hi=-1 ac_mid=-1
16418 while :; do
16419 cat >conftest.$ac_ext <<_ACEOF
16420/* confdefs.h. */
16421_ACEOF
16422cat confdefs.h >>conftest.$ac_ext
16423cat >>conftest.$ac_ext <<_ACEOF
16424/* end confdefs.h. */
16425$ac_includes_default
16426int
16427main ()
16428{
16429static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16430test_array [0] = 0
16431
16432 ;
16433 return 0;
16434}
16435_ACEOF
16436rm -f conftest.$ac_objext
16437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16438 (eval $ac_compile) 2>conftest.er1
16439 ac_status=$?
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
7357c5b6
AM
16445 { ac_try='test -z "$ac_c_werror_flag"
16446 || test ! -s conftest.err'
d5efd9fc
AM
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest.$ac_objext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_lo=$ac_mid; break
16459else
16460 echo "$as_me: failed program was:" >&5
16461sed 's/^/| /' conftest.$ac_ext >&5
16462
16463ac_hi=`expr '(' $ac_mid ')' - 1`
16464 if test $ac_mid -le $ac_hi; then
16465 ac_lo= ac_hi=
16466 break
16467 fi
16468 ac_mid=`expr 2 '*' $ac_mid`
16469fi
16470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16471 done
16472else
16473 echo "$as_me: failed program was:" >&5
16474sed 's/^/| /' conftest.$ac_ext >&5
16475
16476ac_lo= ac_hi=
16477fi
16478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16479fi
16480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16481# Binary search between lo and hi bounds.
16482while test "x$ac_lo" != "x$ac_hi"; do
16483 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16484 cat >conftest.$ac_ext <<_ACEOF
16485/* confdefs.h. */
16486_ACEOF
16487cat confdefs.h >>conftest.$ac_ext
16488cat >>conftest.$ac_ext <<_ACEOF
16489/* end confdefs.h. */
16490$ac_includes_default
16491int
16492main ()
16493{
16494static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16495test_array [0] = 0
16496
16497 ;
16498 return 0;
16499}
16500_ACEOF
16501rm -f conftest.$ac_objext
16502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16503 (eval $ac_compile) 2>conftest.er1
16504 ac_status=$?
16505 grep -v '^ *+' conftest.er1 >conftest.err
16506 rm -f conftest.er1
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
7357c5b6
AM
16510 { ac_try='test -z "$ac_c_werror_flag"
16511 || test ! -s conftest.err'
d5efd9fc
AM
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; } &&
16517 { ac_try='test -s conftest.$ac_objext'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16523 ac_hi=$ac_mid
16524else
16525 echo "$as_me: failed program was:" >&5
16526sed 's/^/| /' conftest.$ac_ext >&5
16527
16528ac_lo=`expr '(' $ac_mid ')' + 1`
16529fi
16530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16531done
16532case $ac_lo in
16533?*) ac_cv_sizeof_short=$ac_lo;;
7357c5b6
AM
16534'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16535echo "$as_me: error: in \`$ac_pwd':" >&2;}
16536{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
d5efd9fc
AM
16537See \`config.log' for more details." >&5
16538echo "$as_me: error: cannot compute sizeof (short), 77
16539See \`config.log' for more details." >&2;}
7357c5b6 16540 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16541esac
16542else
16543 if test "$cross_compiling" = yes; then
7357c5b6
AM
16544 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16545echo "$as_me: error: in \`$ac_pwd':" >&2;}
16546{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16547See \`config.log' for more details." >&5
16548echo "$as_me: error: cannot run test program while cross compiling
16549See \`config.log' for more details." >&2;}
16550 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16551else
16552 cat >conftest.$ac_ext <<_ACEOF
16553/* confdefs.h. */
16554_ACEOF
16555cat confdefs.h >>conftest.$ac_ext
16556cat >>conftest.$ac_ext <<_ACEOF
16557/* end confdefs.h. */
16558$ac_includes_default
16559long longval () { return (long) (sizeof (short)); }
16560unsigned long ulongval () { return (long) (sizeof (short)); }
16561#include <stdio.h>
16562#include <stdlib.h>
16563int
16564main ()
16565{
16566
16567 FILE *f = fopen ("conftest.val", "w");
16568 if (! f)
16569 exit (1);
16570 if (((long) (sizeof (short))) < 0)
16571 {
16572 long i = longval ();
16573 if (i != ((long) (sizeof (short))))
16574 exit (1);
16575 fprintf (f, "%ld\n", i);
16576 }
16577 else
16578 {
16579 unsigned long i = ulongval ();
16580 if (i != ((long) (sizeof (short))))
16581 exit (1);
16582 fprintf (f, "%lu\n", i);
16583 }
16584 exit (ferror (f) || fclose (f) != 0);
16585
16586 ;
16587 return 0;
16588}
16589_ACEOF
16590rm -f conftest$ac_exeext
16591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16592 (eval $ac_link) 2>&5
16593 ac_status=$?
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
16601 ac_cv_sizeof_short=`cat conftest.val`
16602else
16603 echo "$as_me: program exited with status $ac_status" >&5
16604echo "$as_me: failed program was:" >&5
16605sed 's/^/| /' conftest.$ac_ext >&5
16606
16607( exit $ac_status )
7357c5b6
AM
16608{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16609echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
16610{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16611See \`config.log' for more details." >&5
16612echo "$as_me: error: cannot compute sizeof (short), 77
16613See \`config.log' for more details." >&2;}
7357c5b6 16614 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16615fi
16616rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16617fi
16618fi
16619rm -f conftest.val
16620else
16621 ac_cv_sizeof_short=0
16622fi
16623fi
16624echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16625echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16626cat >>confdefs.h <<_ACEOF
16627#define SIZEOF_SHORT $ac_cv_sizeof_short
16628_ACEOF
16629
16630
16631 echo "$as_me:$LINENO: checking for char" >&5
16632echo $ECHO_N "checking for char... $ECHO_C" >&6
16633if test "${ac_cv_type_char+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16635else
16636 cat >conftest.$ac_ext <<_ACEOF
16637/* confdefs.h. */
16638_ACEOF
16639cat confdefs.h >>conftest.$ac_ext
16640cat >>conftest.$ac_ext <<_ACEOF
16641/* end confdefs.h. */
16642$ac_includes_default
16643int
16644main ()
16645{
16646if ((char *) 0)
16647 return 0;
16648if (sizeof (char))
16649 return 0;
16650 ;
16651 return 0;
16652}
16653_ACEOF
16654rm -f conftest.$ac_objext
16655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16656 (eval $ac_compile) 2>conftest.er1
16657 ac_status=$?
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
7357c5b6
AM
16663 { ac_try='test -z "$ac_c_werror_flag"
16664 || test ! -s conftest.err'
d5efd9fc
AM
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_type_char=yes
16677else
16678 echo "$as_me: failed program was:" >&5
16679sed 's/^/| /' conftest.$ac_ext >&5
16680
16681ac_cv_type_char=no
16682fi
16683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16684fi
16685echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16686echo "${ECHO_T}$ac_cv_type_char" >&6
16687
16688echo "$as_me:$LINENO: checking size of char" >&5
16689echo $ECHO_N "checking size of char... $ECHO_C" >&6
16690if test "${ac_cv_sizeof_char+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692else
16693 if test "$ac_cv_type_char" = yes; then
16694 # The cast to unsigned long works around a bug in the HP C Compiler
16695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16697 # This bug is HP SR number 8606223364.
16698 if test "$cross_compiling" = yes; then
16699 # Depending upon the size, compute the lo and hi bounds.
16700cat >conftest.$ac_ext <<_ACEOF
16701/* confdefs.h. */
16702_ACEOF
16703cat confdefs.h >>conftest.$ac_ext
16704cat >>conftest.$ac_ext <<_ACEOF
16705/* end confdefs.h. */
16706$ac_includes_default
16707int
16708main ()
16709{
16710static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16711test_array [0] = 0
16712
16713 ;
16714 return 0;
16715}
16716_ACEOF
16717rm -f conftest.$ac_objext
16718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16719 (eval $ac_compile) 2>conftest.er1
16720 ac_status=$?
16721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
7357c5b6
AM
16726 { ac_try='test -z "$ac_c_werror_flag"
16727 || test ! -s conftest.err'
d5efd9fc
AM
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; } &&
16733 { ac_try='test -s conftest.$ac_objext'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 ac_lo=0 ac_mid=0
16740 while :; do
16741 cat >conftest.$ac_ext <<_ACEOF
16742/* confdefs.h. */
16743_ACEOF
16744cat confdefs.h >>conftest.$ac_ext
16745cat >>conftest.$ac_ext <<_ACEOF
16746/* end confdefs.h. */
16747$ac_includes_default
16748int
16749main ()
16750{
16751static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16752test_array [0] = 0
16753
16754 ;
16755 return 0;
16756}
16757_ACEOF
16758rm -f conftest.$ac_objext
16759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16760 (eval $ac_compile) 2>conftest.er1
16761 ac_status=$?
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
7357c5b6
AM
16767 { ac_try='test -z "$ac_c_werror_flag"
16768 || test ! -s conftest.err'
d5efd9fc
AM
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; } &&
16774 { ac_try='test -s conftest.$ac_objext'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_hi=$ac_mid; break
16781else
16782 echo "$as_me: failed program was:" >&5
16783sed 's/^/| /' conftest.$ac_ext >&5
16784
16785ac_lo=`expr $ac_mid + 1`
16786 if test $ac_lo -le $ac_mid; then
16787 ac_lo= ac_hi=
16788 break
16789 fi
16790 ac_mid=`expr 2 '*' $ac_mid + 1`
16791fi
16792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16793 done
16794else
16795 echo "$as_me: failed program was:" >&5
16796sed 's/^/| /' conftest.$ac_ext >&5
16797
16798cat >conftest.$ac_ext <<_ACEOF
16799/* confdefs.h. */
16800_ACEOF
16801cat confdefs.h >>conftest.$ac_ext
16802cat >>conftest.$ac_ext <<_ACEOF
16803/* end confdefs.h. */
16804$ac_includes_default
16805int
16806main ()
16807{
16808static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16809test_array [0] = 0
16810
16811 ;
16812 return 0;
16813}
16814_ACEOF
16815rm -f conftest.$ac_objext
16816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16817 (eval $ac_compile) 2>conftest.er1
16818 ac_status=$?
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
7357c5b6
AM
16824 { ac_try='test -z "$ac_c_werror_flag"
16825 || test ! -s conftest.err'
d5efd9fc
AM
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest.$ac_objext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_hi=-1 ac_mid=-1
16838 while :; do
16839 cat >conftest.$ac_ext <<_ACEOF
16840/* confdefs.h. */
16841_ACEOF
16842cat confdefs.h >>conftest.$ac_ext
16843cat >>conftest.$ac_ext <<_ACEOF
16844/* end confdefs.h. */
16845$ac_includes_default
16846int
16847main ()
16848{
16849static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16850test_array [0] = 0
16851
16852 ;
16853 return 0;
16854}
16855_ACEOF
16856rm -f conftest.$ac_objext
16857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858 (eval $ac_compile) 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
7357c5b6
AM
16865 { ac_try='test -z "$ac_c_werror_flag"
16866 || test ! -s conftest.err'
d5efd9fc
AM
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; } &&
16872 { ac_try='test -s conftest.$ac_objext'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_lo=$ac_mid; break
16879else
16880 echo "$as_me: failed program was:" >&5
16881sed 's/^/| /' conftest.$ac_ext >&5
16882
16883ac_hi=`expr '(' $ac_mid ')' - 1`
16884 if test $ac_mid -le $ac_hi; then
16885 ac_lo= ac_hi=
16886 break
16887 fi
16888 ac_mid=`expr 2 '*' $ac_mid`
16889fi
16890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16891 done
16892else
16893 echo "$as_me: failed program was:" >&5
16894sed 's/^/| /' conftest.$ac_ext >&5
16895
16896ac_lo= ac_hi=
16897fi
16898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16899fi
16900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16901# Binary search between lo and hi bounds.
16902while test "x$ac_lo" != "x$ac_hi"; do
16903 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16904 cat >conftest.$ac_ext <<_ACEOF
16905/* confdefs.h. */
16906_ACEOF
16907cat confdefs.h >>conftest.$ac_ext
16908cat >>conftest.$ac_ext <<_ACEOF
16909/* end confdefs.h. */
16910$ac_includes_default
16911int
16912main ()
16913{
16914static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16915test_array [0] = 0
16916
16917 ;
16918 return 0;
16919}
16920_ACEOF
16921rm -f conftest.$ac_objext
16922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16923 (eval $ac_compile) 2>conftest.er1
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
7357c5b6
AM
16930 { ac_try='test -z "$ac_c_werror_flag"
16931 || test ! -s conftest.err'
d5efd9fc
AM
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 ac_hi=$ac_mid
16944else
16945 echo "$as_me: failed program was:" >&5
16946sed 's/^/| /' conftest.$ac_ext >&5
16947
16948ac_lo=`expr '(' $ac_mid ')' + 1`
16949fi
16950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16951done
16952case $ac_lo in
16953?*) ac_cv_sizeof_char=$ac_lo;;
7357c5b6
AM
16954'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16955echo "$as_me: error: in \`$ac_pwd':" >&2;}
16956{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
d5efd9fc
AM
16957See \`config.log' for more details." >&5
16958echo "$as_me: error: cannot compute sizeof (char), 77
16959See \`config.log' for more details." >&2;}
7357c5b6 16960 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16961esac
16962else
16963 if test "$cross_compiling" = yes; then
7357c5b6
AM
16964 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16965echo "$as_me: error: in \`$ac_pwd':" >&2;}
16966{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16967See \`config.log' for more details." >&5
16968echo "$as_me: error: cannot run test program while cross compiling
16969See \`config.log' for more details." >&2;}
16970 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16971else
16972 cat >conftest.$ac_ext <<_ACEOF
16973/* confdefs.h. */
16974_ACEOF
16975cat confdefs.h >>conftest.$ac_ext
16976cat >>conftest.$ac_ext <<_ACEOF
16977/* end confdefs.h. */
16978$ac_includes_default
16979long longval () { return (long) (sizeof (char)); }
16980unsigned long ulongval () { return (long) (sizeof (char)); }
16981#include <stdio.h>
16982#include <stdlib.h>
16983int
16984main ()
16985{
16986
16987 FILE *f = fopen ("conftest.val", "w");
16988 if (! f)
16989 exit (1);
16990 if (((long) (sizeof (char))) < 0)
16991 {
16992 long i = longval ();
16993 if (i != ((long) (sizeof (char))))
16994 exit (1);
16995 fprintf (f, "%ld\n", i);
16996 }
16997 else
16998 {
16999 unsigned long i = ulongval ();
17000 if (i != ((long) (sizeof (char))))
17001 exit (1);
17002 fprintf (f, "%lu\n", i);
17003 }
17004 exit (ferror (f) || fclose (f) != 0);
17005
17006 ;
17007 return 0;
17008}
17009_ACEOF
17010rm -f conftest$ac_exeext
17011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17012 (eval $ac_link) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 ac_cv_sizeof_char=`cat conftest.val`
17022else
17023 echo "$as_me: program exited with status $ac_status" >&5
17024echo "$as_me: failed program was:" >&5
17025sed 's/^/| /' conftest.$ac_ext >&5
17026
17027( exit $ac_status )
7357c5b6
AM
17028{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17029echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
17030{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17031See \`config.log' for more details." >&5
17032echo "$as_me: error: cannot compute sizeof (char), 77
17033See \`config.log' for more details." >&2;}
7357c5b6 17034 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
17035fi
17036rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17037fi
17038fi
17039rm -f conftest.val
17040else
17041 ac_cv_sizeof_char=0
17042fi
17043fi
17044echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17045echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17046cat >>confdefs.h <<_ACEOF
17047#define SIZEOF_CHAR $ac_cv_sizeof_char
17048_ACEOF
17049
17050
17051
17052 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17053echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17054 case "$ac_cv_sizeof_char" in
17055 1) acx_cv_type_int8_t=char ;;
17056 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17057echo "$as_me: error: no 8-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_int8_t" >&5
17061echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17062
17063 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17064echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17065 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17066 2:*) acx_cv_type_int16_t=int ;;
17067 *:2) acx_cv_type_int16_t=short ;;
17068 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17069echo "$as_me: error: no 16-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_int16_t" >&5
17073echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17074
17075 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17076echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17077 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17078 4:*) acx_cv_type_int32_t=int ;;
17079 *:4) acx_cv_type_int32_t=long ;;
17080 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17081echo "$as_me: error: no 32-bit type" >&2;}
17082 { (exit please report a bug); exit please report a bug; }; }
17083 esac
17084 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17085echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17086fi
17087
17088# These tests are here to make the output prettier
17089
17090if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17091 case "$ac_cv_sizeof_long" in
17092 8) acx_cv_type_int64_t=long ;;
17093 esac
17094 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17095echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17096 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17097echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17098fi
17099
17100# Now we can use the above types
17101
17102if test "$ac_cv_type_uintptr_t" != yes; then
17103 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17104echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17105 case $ac_cv_sizeof_void_p in
17106 2) acx_cv_type_intptr_t=int16_t ;;
17107 4) acx_cv_type_intptr_t=int32_t ;;
17108 8) acx_cv_type_intptr_t=int64_t ;;
17109 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17110echo "$as_me: error: no equivalent for intptr_t" >&2;}
17111 { (exit please report a bug); exit please report a bug; }; }
17112 esac
17113 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17114echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17115fi
17116
17117# ----------------- done all checks, emit header -------------
17118 ac_config_commands="$ac_config_commands bfd_stdint.h"
17119
17120
17121
2ba49b59
KC
17122echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17123echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17124if test "${ac_cv_header_time+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126else
17127 cat >conftest.$ac_ext <<_ACEOF
17128/* confdefs.h. */
17129_ACEOF
17130cat confdefs.h >>conftest.$ac_ext
17131cat >>conftest.$ac_ext <<_ACEOF
17132/* end confdefs.h. */
17133#include <sys/types.h>
17134#include <sys/time.h>
17135#include <time.h>
17136
17137int
17138main ()
17139{
17140if ((struct tm *) 0)
17141return 0;
17142 ;
17143 return 0;
17144}
17145_ACEOF
17146rm -f conftest.$ac_objext
17147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17148 (eval $ac_compile) 2>conftest.er1
17149 ac_status=$?
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
7357c5b6
AM
17155 { ac_try='test -z "$ac_c_werror_flag"
17156 || test ! -s conftest.err'
2ba49b59
KC
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_cv_header_time=yes
17169else
17170 echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
17173ac_cv_header_time=no
17174fi
17175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17176fi
17177echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17178echo "${ECHO_T}$ac_cv_header_time" >&6
17179if test $ac_cv_header_time = yes; then
17180
17181cat >>confdefs.h <<\_ACEOF
17182#define TIME_WITH_SYS_TIME 1
17183_ACEOF
17184
17185fi
17186
17187
17188
17189
17190
17191
17192ac_header_dirent=no
17193for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17194 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17195echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17196echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17197if eval "test \"\${$as_ac_Header+set}\" = set"; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17199else
17200 cat >conftest.$ac_ext <<_ACEOF
17201/* confdefs.h. */
17202_ACEOF
17203cat confdefs.h >>conftest.$ac_ext
17204cat >>conftest.$ac_ext <<_ACEOF
17205/* end confdefs.h. */
17206#include <sys/types.h>
17207#include <$ac_hdr>
17208
17209int
17210main ()
17211{
17212if ((DIR *) 0)
17213return 0;
17214 ;
17215 return 0;
17216}
17217_ACEOF
17218rm -f conftest.$ac_objext
17219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17220 (eval $ac_compile) 2>conftest.er1
17221 ac_status=$?
17222 grep -v '^ *+' conftest.er1 >conftest.err
17223 rm -f conftest.er1
17224 cat conftest.err >&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); } &&
7357c5b6
AM
17227 { ac_try='test -z "$ac_c_werror_flag"
17228 || test ! -s conftest.err'
2ba49b59
KC
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17231 ac_status=$?
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; } &&
17234 { ac_try='test -s conftest.$ac_objext'
17235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17237 ac_status=$?
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17240 eval "$as_ac_Header=yes"
17241else
17242 echo "$as_me: failed program was:" >&5
17243sed 's/^/| /' conftest.$ac_ext >&5
17244
17245eval "$as_ac_Header=no"
17246fi
17247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17248fi
17249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17251if test `eval echo '${'$as_ac_Header'}'` = yes; then
17252 cat >>confdefs.h <<_ACEOF
17253#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17254_ACEOF
17255
17256ac_header_dirent=$ac_hdr; break
17257fi
17258
17259done
17260# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17261if test $ac_header_dirent = dirent.h; then
17262 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17263echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17264if test "${ac_cv_search_opendir+set}" = set; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17266else
17267 ac_func_search_save_LIBS=$LIBS
17268ac_cv_search_opendir=no
17269cat >conftest.$ac_ext <<_ACEOF
17270/* confdefs.h. */
17271_ACEOF
17272cat confdefs.h >>conftest.$ac_ext
17273cat >>conftest.$ac_ext <<_ACEOF
17274/* end confdefs.h. */
17275
17276/* Override any gcc2 internal prototype to avoid an error. */
17277#ifdef __cplusplus
17278extern "C"
17279#endif
17280/* We use char because int might match the return type of a gcc2
17281 builtin and then its argument prototype would still apply. */
17282char opendir ();
17283int
17284main ()
17285{
17286opendir ();
17287 ;
17288 return 0;
17289}
17290_ACEOF
17291rm -f conftest.$ac_objext conftest$ac_exeext
17292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17293 (eval $ac_link) 2>conftest.er1
17294 ac_status=$?
17295 grep -v '^ *+' conftest.er1 >conftest.err
17296 rm -f conftest.er1
17297 cat conftest.err >&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } &&
7357c5b6
AM
17300 { ac_try='test -z "$ac_c_werror_flag"
17301 || test ! -s conftest.err'
2ba49b59
KC
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; } &&
17307 { ac_try='test -s conftest$ac_exeext'
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; }; then
17313 ac_cv_search_opendir="none required"
17314else
17315 echo "$as_me: failed program was:" >&5
17316sed 's/^/| /' conftest.$ac_ext >&5
17317
17318fi
17319rm -f conftest.err conftest.$ac_objext \
17320 conftest$ac_exeext conftest.$ac_ext
17321if test "$ac_cv_search_opendir" = no; then
17322 for ac_lib in dir; do
17323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17324 cat >conftest.$ac_ext <<_ACEOF
17325/* confdefs.h. */
17326_ACEOF
17327cat confdefs.h >>conftest.$ac_ext
17328cat >>conftest.$ac_ext <<_ACEOF
17329/* end confdefs.h. */
17330
17331/* Override any gcc2 internal prototype to avoid an error. */
17332#ifdef __cplusplus
17333extern "C"
17334#endif
17335/* We use char because int might match the return type of a gcc2
17336 builtin and then its argument prototype would still apply. */
17337char opendir ();
17338int
17339main ()
17340{
17341opendir ();
17342 ;
17343 return 0;
17344}
17345_ACEOF
17346rm -f conftest.$ac_objext conftest$ac_exeext
17347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17348 (eval $ac_link) 2>conftest.er1
17349 ac_status=$?
17350 grep -v '^ *+' conftest.er1 >conftest.err
17351 rm -f conftest.er1
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
7357c5b6
AM
17355 { ac_try='test -z "$ac_c_werror_flag"
17356 || test ! -s conftest.err'
2ba49b59
KC
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try='test -s conftest$ac_exeext'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 ac_cv_search_opendir="-l$ac_lib"
17369break
17370else
17371 echo "$as_me: failed program was:" >&5
17372sed 's/^/| /' conftest.$ac_ext >&5
17373
17374fi
17375rm -f conftest.err conftest.$ac_objext \
17376 conftest$ac_exeext conftest.$ac_ext
17377 done
17378fi
17379LIBS=$ac_func_search_save_LIBS
17380fi
17381echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17382echo "${ECHO_T}$ac_cv_search_opendir" >&6
17383if test "$ac_cv_search_opendir" != no; then
17384 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17385
17386fi
17387
17388else
17389 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17390echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17391if test "${ac_cv_search_opendir+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17393else
17394 ac_func_search_save_LIBS=$LIBS
17395ac_cv_search_opendir=no
17396cat >conftest.$ac_ext <<_ACEOF
17397/* confdefs.h. */
17398_ACEOF
17399cat confdefs.h >>conftest.$ac_ext
17400cat >>conftest.$ac_ext <<_ACEOF
17401/* end confdefs.h. */
17402
17403/* Override any gcc2 internal prototype to avoid an error. */
17404#ifdef __cplusplus
17405extern "C"
17406#endif
17407/* We use char because int might match the return type of a gcc2
17408 builtin and then its argument prototype would still apply. */
17409char opendir ();
17410int
17411main ()
17412{
17413opendir ();
17414 ;
17415 return 0;
17416}
17417_ACEOF
17418rm -f conftest.$ac_objext conftest$ac_exeext
17419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17420 (eval $ac_link) 2>conftest.er1
17421 ac_status=$?
17422 grep -v '^ *+' conftest.er1 >conftest.err
17423 rm -f conftest.er1
17424 cat conftest.err >&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } &&
7357c5b6
AM
17427 { ac_try='test -z "$ac_c_werror_flag"
17428 || test ! -s conftest.err'
2ba49b59
KC
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; } &&
17434 { ac_try='test -s conftest$ac_exeext'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; }; then
17440 ac_cv_search_opendir="none required"
17441else
17442 echo "$as_me: failed program was:" >&5
17443sed 's/^/| /' conftest.$ac_ext >&5
17444
17445fi
17446rm -f conftest.err conftest.$ac_objext \
17447 conftest$ac_exeext conftest.$ac_ext
17448if test "$ac_cv_search_opendir" = no; then
17449 for ac_lib in x; do
17450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17451 cat >conftest.$ac_ext <<_ACEOF
17452/* confdefs.h. */
17453_ACEOF
17454cat confdefs.h >>conftest.$ac_ext
17455cat >>conftest.$ac_ext <<_ACEOF
17456/* end confdefs.h. */
17457
17458/* Override any gcc2 internal prototype to avoid an error. */
17459#ifdef __cplusplus
17460extern "C"
17461#endif
17462/* We use char because int might match the return type of a gcc2
17463 builtin and then its argument prototype would still apply. */
17464char opendir ();
17465int
17466main ()
17467{
17468opendir ();
17469 ;
17470 return 0;
17471}
17472_ACEOF
17473rm -f conftest.$ac_objext conftest$ac_exeext
17474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17475 (eval $ac_link) 2>conftest.er1
17476 ac_status=$?
17477 grep -v '^ *+' conftest.er1 >conftest.err
17478 rm -f conftest.er1
17479 cat conftest.err >&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } &&
7357c5b6
AM
17482 { ac_try='test -z "$ac_c_werror_flag"
17483 || test ! -s conftest.err'
2ba49b59
KC
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; } &&
17489 { ac_try='test -s conftest$ac_exeext'
17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491 (eval $ac_try) 2>&5
17492 ac_status=$?
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
17495 ac_cv_search_opendir="-l$ac_lib"
17496break
17497else
17498 echo "$as_me: failed program was:" >&5
17499sed 's/^/| /' conftest.$ac_ext >&5
17500
17501fi
17502rm -f conftest.err conftest.$ac_objext \
17503 conftest$ac_exeext conftest.$ac_ext
17504 done
17505fi
17506LIBS=$ac_func_search_save_LIBS
17507fi
17508echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17509echo "${ECHO_T}$ac_cv_search_opendir" >&6
17510if test "$ac_cv_search_opendir" != no; then
17511 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17512
17513fi
17514
17515fi
17516
17517echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
17518echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
17519if test "${gcc_cv_header_string+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17521else
17522 cat >conftest.$ac_ext <<_ACEOF
17523/* confdefs.h. */
17524_ACEOF
17525cat confdefs.h >>conftest.$ac_ext
17526cat >>conftest.$ac_ext <<_ACEOF
17527/* end confdefs.h. */
17528#include <string.h>
17529#include <strings.h>
17530int
17531main ()
17532{
17533
17534 ;
17535 return 0;
17536}
17537_ACEOF
17538rm -f conftest.$ac_objext
17539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17540 (eval $ac_compile) 2>conftest.er1
17541 ac_status=$?
17542 grep -v '^ *+' conftest.er1 >conftest.err
17543 rm -f conftest.er1
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } &&
7357c5b6
AM
17547 { ac_try='test -z "$ac_c_werror_flag"
17548 || test ! -s conftest.err'
2ba49b59
KC
17549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550 (eval $ac_try) 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; } &&
17554 { ac_try='test -s conftest.$ac_objext'
17555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556 (eval $ac_try) 2>&5
17557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; }; then
17560 gcc_cv_header_string=yes
17561else
17562 echo "$as_me: failed program was:" >&5
17563sed 's/^/| /' conftest.$ac_ext >&5
17564
17565gcc_cv_header_string=no
17566fi
17567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17568fi
17569echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
17570echo "${ECHO_T}$gcc_cv_header_string" >&6
17571if test $gcc_cv_header_string = yes; then
17572
17573cat >>confdefs.h <<\_ACEOF
17574#define STRING_WITH_STRINGS 1
17575_ACEOF
17576
2e0fbf77
JW
17577fi
17578
5464f5a1
NN
17579
17580
17581
17582
17583
17584
17585
428b207a
TT
17586
17587for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
252b5132 17588do
5464f5a1
NN
17589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17590echo "$as_me:$LINENO: checking for $ac_func" >&5
17591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17592if eval "test \"\${$as_ac_var+set}\" = set"; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17594else
17595 cat >conftest.$ac_ext <<_ACEOF
17596/* confdefs.h. */
17597_ACEOF
17598cat confdefs.h >>conftest.$ac_ext
17599cat >>conftest.$ac_ext <<_ACEOF
17600/* end confdefs.h. */
17601/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17603#define $ac_func innocuous_$ac_func
17604
252b5132 17605/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
17606 which can conflict with char $ac_func (); below.
17607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17608 <limits.h> exists even on freestanding compilers. */
17609
17610#ifdef __STDC__
17611# include <limits.h>
17612#else
17613# include <assert.h>
17614#endif
6be7c12c 17615
5464f5a1 17616#undef $ac_func
252b5132 17617
5464f5a1
NN
17618/* Override any gcc2 internal prototype to avoid an error. */
17619#ifdef __cplusplus
17620extern "C"
17621{
17622#endif
17623/* We use char because int might match the return type of a gcc2
17624 builtin and then its argument prototype would still apply. */
17625char $ac_func ();
252b5132
RH
17626/* The GNU C library defines this for functions which it implements
17627 to always fail with ENOSYS. Some functions are actually named
17628 something starting with __ and the normal name is an alias. */
17629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17630choke me
17631#else
5464f5a1
NN
17632char (*f) () = $ac_func;
17633#endif
17634#ifdef __cplusplus
17635}
252b5132
RH
17636#endif
17637
5464f5a1
NN
17638int
17639main ()
17640{
17641return f != $ac_func;
17642 ;
17643 return 0;
17644}
17645_ACEOF
17646rm -f conftest.$ac_objext conftest$ac_exeext
17647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648 (eval $ac_link) 2>conftest.er1
17649 ac_status=$?
17650 grep -v '^ *+' conftest.er1 >conftest.err
17651 rm -f conftest.er1
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } &&
7357c5b6
AM
17655 { ac_try='test -z "$ac_c_werror_flag"
17656 || test ! -s conftest.err'
5464f5a1
NN
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; } &&
17662 { ac_try='test -s conftest$ac_exeext'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 eval "$as_ac_var=yes"
17669else
17670 echo "$as_me: failed program was:" >&5
17671sed 's/^/| /' conftest.$ac_ext >&5
17672
17673eval "$as_ac_var=no"
17674fi
17675rm -f conftest.err conftest.$ac_objext \
17676 conftest$ac_exeext conftest.$ac_ext
17677fi
17678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17679echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17680if test `eval echo '${'$as_ac_var'}'` = yes; then
17681 cat >>confdefs.h <<_ACEOF
17682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17683_ACEOF
252b5132 17684
252b5132
RH
17685fi
17686done
17687
5464f5a1 17688
49c97a80
ILT
17689for ac_func in strtoull
17690do
5464f5a1
NN
17691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17692echo "$as_me:$LINENO: checking for $ac_func" >&5
17693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17694if eval "test \"\${$as_ac_var+set}\" = set"; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17696else
17697 cat >conftest.$ac_ext <<_ACEOF
17698/* confdefs.h. */
17699_ACEOF
17700cat confdefs.h >>conftest.$ac_ext
17701cat >>conftest.$ac_ext <<_ACEOF
17702/* end confdefs.h. */
17703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17705#define $ac_func innocuous_$ac_func
17706
49c97a80 17707/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
17708 which can conflict with char $ac_func (); below.
17709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17710 <limits.h> exists even on freestanding compilers. */
17711
17712#ifdef __STDC__
17713# include <limits.h>
17714#else
17715# include <assert.h>
17716#endif
49c97a80 17717
5464f5a1 17718#undef $ac_func
49c97a80 17719
5464f5a1
NN
17720/* Override any gcc2 internal prototype to avoid an error. */
17721#ifdef __cplusplus
17722extern "C"
17723{
17724#endif
17725/* We use char because int might match the return type of a gcc2
17726 builtin and then its argument prototype would still apply. */
17727char $ac_func ();
49c97a80
ILT
17728/* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
17731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17732choke me
17733#else
5464f5a1
NN
17734char (*f) () = $ac_func;
17735#endif
17736#ifdef __cplusplus
17737}
49c97a80
ILT
17738#endif
17739
5464f5a1
NN
17740int
17741main ()
17742{
17743return f != $ac_func;
17744 ;
17745 return 0;
17746}
17747_ACEOF
17748rm -f conftest.$ac_objext conftest$ac_exeext
17749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17750 (eval $ac_link) 2>conftest.er1
17751 ac_status=$?
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
7357c5b6
AM
17757 { ac_try='test -z "$ac_c_werror_flag"
17758 || test ! -s conftest.err'
5464f5a1
NN
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try='test -s conftest$ac_exeext'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 eval "$as_ac_var=yes"
17771else
17772 echo "$as_me: failed program was:" >&5
17773sed 's/^/| /' conftest.$ac_ext >&5
17774
17775eval "$as_ac_var=no"
17776fi
17777rm -f conftest.err conftest.$ac_objext \
17778 conftest$ac_exeext conftest.$ac_ext
17779fi
17780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17782if test `eval echo '${'$as_ac_var'}'` = yes; then
17783 cat >>confdefs.h <<_ACEOF
17784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17785_ACEOF
49c97a80 17786
49c97a80
ILT
17787fi
17788done
17789
6be7c12c 17790
2e9ebff5
JG
17791echo "$as_me:$LINENO: checking whether basename is declared" >&5
17792echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17793if test "${ac_cv_have_decl_basename+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17795else
17796 cat >conftest.$ac_ext <<_ACEOF
17797/* confdefs.h. */
17798_ACEOF
17799cat confdefs.h >>conftest.$ac_ext
17800cat >>conftest.$ac_ext <<_ACEOF
17801/* end confdefs.h. */
ec7b76fe 17802$ac_includes_default
2e9ebff5
JG
17803int
17804main ()
17805{
17806#ifndef basename
17807 char *p = (char *) basename;
17808#endif
17809
17810 ;
17811 return 0;
17812}
17813_ACEOF
17814rm -f conftest.$ac_objext
17815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17816 (eval $ac_compile) 2>conftest.er1
17817 ac_status=$?
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
7357c5b6
AM
17823 { ac_try='test -z "$ac_c_werror_flag"
17824 || test ! -s conftest.err'
2e9ebff5
JG
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest.$ac_objext'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 ac_cv_have_decl_basename=yes
17837else
17838 echo "$as_me: failed program was:" >&5
17839sed 's/^/| /' conftest.$ac_ext >&5
17840
17841ac_cv_have_decl_basename=no
17842fi
17843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17844fi
17845echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17846echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17847if test $ac_cv_have_decl_basename = yes; then
17848
17849cat >>confdefs.h <<_ACEOF
17850#define HAVE_DECL_BASENAME 1
17851_ACEOF
17852
17853
17854else
17855 cat >>confdefs.h <<_ACEOF
17856#define HAVE_DECL_BASENAME 0
17857_ACEOF
17858
17859
17860fi
17861
17862
ec7b76fe
JG
17863echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17864echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17865if test "${ac_cv_have_decl_ftello+set}" = set; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17867else
17868 cat >conftest.$ac_ext <<_ACEOF
17869/* confdefs.h. */
17870_ACEOF
17871cat confdefs.h >>conftest.$ac_ext
17872cat >>conftest.$ac_ext <<_ACEOF
17873/* end confdefs.h. */
17874$ac_includes_default
17875int
17876main ()
17877{
17878#ifndef ftello
17879 char *p = (char *) ftello;
17880#endif
17881
17882 ;
17883 return 0;
17884}
17885_ACEOF
17886rm -f conftest.$ac_objext
17887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17888 (eval $ac_compile) 2>conftest.er1
17889 ac_status=$?
17890 grep -v '^ *+' conftest.er1 >conftest.err
17891 rm -f conftest.er1
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } &&
7357c5b6
AM
17895 { ac_try='test -z "$ac_c_werror_flag"
17896 || test ! -s conftest.err'
ec7b76fe
JG
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; } &&
17902 { ac_try='test -s conftest.$ac_objext'
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; }; then
17908 ac_cv_have_decl_ftello=yes
17909else
17910 echo "$as_me: failed program was:" >&5
17911sed 's/^/| /' conftest.$ac_ext >&5
17912
17913ac_cv_have_decl_ftello=no
17914fi
17915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17916fi
17917echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17918echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17919if test $ac_cv_have_decl_ftello = yes; then
17920
17921cat >>confdefs.h <<_ACEOF
17922#define HAVE_DECL_FTELLO 1
17923_ACEOF
17924
17925
17926else
17927 cat >>confdefs.h <<_ACEOF
17928#define HAVE_DECL_FTELLO 0
17929_ACEOF
17930
17931
17932fi
17933
17934
17935echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17936echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17937if test "${ac_cv_have_decl_ftello64+set}" = set; then
17938 echo $ECHO_N "(cached) $ECHO_C" >&6
17939else
17940 cat >conftest.$ac_ext <<_ACEOF
17941/* confdefs.h. */
17942_ACEOF
17943cat confdefs.h >>conftest.$ac_ext
17944cat >>conftest.$ac_ext <<_ACEOF
17945/* end confdefs.h. */
17946$ac_includes_default
17947int
17948main ()
17949{
17950#ifndef ftello64
17951 char *p = (char *) ftello64;
17952#endif
17953
17954 ;
17955 return 0;
17956}
17957_ACEOF
17958rm -f conftest.$ac_objext
17959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17960 (eval $ac_compile) 2>conftest.er1
17961 ac_status=$?
17962 grep -v '^ *+' conftest.er1 >conftest.err
17963 rm -f conftest.er1
17964 cat conftest.err >&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } &&
7357c5b6
AM
17967 { ac_try='test -z "$ac_c_werror_flag"
17968 || test ! -s conftest.err'
ec7b76fe
JG
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; } &&
17974 { ac_try='test -s conftest.$ac_objext'
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; }; then
17980 ac_cv_have_decl_ftello64=yes
17981else
17982 echo "$as_me: failed program was:" >&5
17983sed 's/^/| /' conftest.$ac_ext >&5
17984
17985ac_cv_have_decl_ftello64=no
17986fi
17987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17988fi
17989echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
17990echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
17991if test $ac_cv_have_decl_ftello64 = yes; then
17992
17993cat >>confdefs.h <<_ACEOF
17994#define HAVE_DECL_FTELLO64 1
17995_ACEOF
17996
17997
17998else
17999 cat >>confdefs.h <<_ACEOF
18000#define HAVE_DECL_FTELLO64 0
18001_ACEOF
18002
18003
18004fi
18005
18006
18007echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
18008echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
18009if test "${ac_cv_have_decl_fseeko+set}" = set; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18011else
18012 cat >conftest.$ac_ext <<_ACEOF
18013/* confdefs.h. */
18014_ACEOF
18015cat confdefs.h >>conftest.$ac_ext
18016cat >>conftest.$ac_ext <<_ACEOF
18017/* end confdefs.h. */
18018$ac_includes_default
18019int
18020main ()
18021{
18022#ifndef fseeko
18023 char *p = (char *) fseeko;
18024#endif
18025
18026 ;
18027 return 0;
18028}
18029_ACEOF
18030rm -f conftest.$ac_objext
18031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18032 (eval $ac_compile) 2>conftest.er1
18033 ac_status=$?
18034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
7357c5b6
AM
18039 { ac_try='test -z "$ac_c_werror_flag"
18040 || test ! -s conftest.err'
ec7b76fe
JG
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; } &&
18046 { ac_try='test -s conftest.$ac_objext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 ac_cv_have_decl_fseeko=yes
18053else
18054 echo "$as_me: failed program was:" >&5
18055sed 's/^/| /' conftest.$ac_ext >&5
18056
18057ac_cv_have_decl_fseeko=no
18058fi
18059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18060fi
18061echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
18062echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
18063if test $ac_cv_have_decl_fseeko = yes; then
18064
18065cat >>confdefs.h <<_ACEOF
18066#define HAVE_DECL_FSEEKO 1
18067_ACEOF
18068
18069
18070else
18071 cat >>confdefs.h <<_ACEOF
18072#define HAVE_DECL_FSEEKO 0
18073_ACEOF
18074
18075
18076fi
18077
18078
18079echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
18080echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
18081if test "${ac_cv_have_decl_fseeko64+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18083else
18084 cat >conftest.$ac_ext <<_ACEOF
18085/* confdefs.h. */
18086_ACEOF
18087cat confdefs.h >>conftest.$ac_ext
18088cat >>conftest.$ac_ext <<_ACEOF
18089/* end confdefs.h. */
18090$ac_includes_default
18091int
18092main ()
18093{
18094#ifndef fseeko64
18095 char *p = (char *) fseeko64;
18096#endif
18097
18098 ;
18099 return 0;
18100}
18101_ACEOF
18102rm -f conftest.$ac_objext
18103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18104 (eval $ac_compile) 2>conftest.er1
18105 ac_status=$?
18106 grep -v '^ *+' conftest.er1 >conftest.err
18107 rm -f conftest.er1
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
7357c5b6
AM
18111 { ac_try='test -z "$ac_c_werror_flag"
18112 || test ! -s conftest.err'
ec7b76fe
JG
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest.$ac_objext'
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; }; then
18124 ac_cv_have_decl_fseeko64=yes
18125else
18126 echo "$as_me: failed program was:" >&5
18127sed 's/^/| /' conftest.$ac_ext >&5
18128
18129ac_cv_have_decl_fseeko64=no
18130fi
18131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18132fi
18133echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
18134echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
18135if test $ac_cv_have_decl_fseeko64 = yes; then
18136
18137cat >>confdefs.h <<_ACEOF
18138#define HAVE_DECL_FSEEKO64 1
18139_ACEOF
18140
18141
18142else
18143 cat >>confdefs.h <<_ACEOF
18144#define HAVE_DECL_FSEEKO64 0
18145_ACEOF
18146
18147
18148fi
18149
18150
2e9ebff5 18151
6be7c12c 18152
252b5132 18153case "${host}" in
855b0be7 18154*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
18155
18156cat >>confdefs.h <<\_ACEOF
252b5132 18157#define USE_BINARY_FOPEN 1
5464f5a1 18158_ACEOF
252b5132
RH
18159 ;;
18160esac
18161
d34a2b1d
JG
18162echo "$as_me:$LINENO: checking whether ffs is declared" >&5
18163echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
18164if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 18165 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18166else
5464f5a1
NN
18167 cat >conftest.$ac_ext <<_ACEOF
18168/* confdefs.h. */
18169_ACEOF
18170cat confdefs.h >>conftest.$ac_ext
18171cat >>conftest.$ac_ext <<_ACEOF
18172/* end confdefs.h. */
d34a2b1d 18173$ac_includes_default
5464f5a1
NN
18174int
18175main ()
18176{
d34a2b1d
JG
18177#ifndef ffs
18178 char *p = (char *) ffs;
18179#endif
18180
5464f5a1
NN
18181 ;
18182 return 0;
18183}
18184_ACEOF
18185rm -f conftest.$ac_objext
18186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187 (eval $ac_compile) 2>conftest.er1
18188 ac_status=$?
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -f conftest.er1
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
7357c5b6
AM
18194 { ac_try='test -z "$ac_c_werror_flag"
18195 || test ! -s conftest.err'
5464f5a1
NN
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18198 ac_status=$?
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest.$ac_objext'
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
d34a2b1d 18207 ac_cv_have_decl_ffs=yes
252b5132 18208else
5464f5a1
NN
18209 echo "$as_me: failed program was:" >&5
18210sed 's/^/| /' conftest.$ac_ext >&5
18211
d34a2b1d 18212ac_cv_have_decl_ffs=no
252b5132 18213fi
5464f5a1 18214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18215fi
d34a2b1d
JG
18216echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
18217echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
18218if test $ac_cv_have_decl_ffs = yes; then
252b5132 18219
d34a2b1d
JG
18220cat >>confdefs.h <<_ACEOF
18221#define HAVE_DECL_FFS 1
18222_ACEOF
5464f5a1 18223
d34a2b1d
JG
18224
18225else
18226 cat >>confdefs.h <<_ACEOF
18227#define HAVE_DECL_FFS 0
5464f5a1 18228_ACEOF
252b5132 18229
d34a2b1d 18230
252b5132
RH
18231fi
18232
d34a2b1d
JG
18233
18234echo "$as_me:$LINENO: checking whether free is declared" >&5
18235echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18236if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 18237 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18238else
5464f5a1
NN
18239 cat >conftest.$ac_ext <<_ACEOF
18240/* confdefs.h. */
18241_ACEOF
18242cat confdefs.h >>conftest.$ac_ext
18243cat >>conftest.$ac_ext <<_ACEOF
18244/* end confdefs.h. */
d34a2b1d 18245$ac_includes_default
5464f5a1
NN
18246int
18247main ()
18248{
d34a2b1d
JG
18249#ifndef free
18250 char *p = (char *) free;
18251#endif
18252
5464f5a1
NN
18253 ;
18254 return 0;
18255}
18256_ACEOF
18257rm -f conftest.$ac_objext
18258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18259 (eval $ac_compile) 2>conftest.er1
18260 ac_status=$?
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
7357c5b6
AM
18266 { ac_try='test -z "$ac_c_werror_flag"
18267 || test ! -s conftest.err'
5464f5a1
NN
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest.$ac_objext'
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
d34a2b1d 18279 ac_cv_have_decl_free=yes
252b5132 18280else
5464f5a1
NN
18281 echo "$as_me: failed program was:" >&5
18282sed 's/^/| /' conftest.$ac_ext >&5
18283
d34a2b1d 18284ac_cv_have_decl_free=no
252b5132 18285fi
5464f5a1 18286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18287fi
d34a2b1d
JG
18288echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18289echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18290if test $ac_cv_have_decl_free = yes; then
18291
18292cat >>confdefs.h <<_ACEOF
18293#define HAVE_DECL_FREE 1
18294_ACEOF
252b5132 18295
5464f5a1 18296
d34a2b1d
JG
18297else
18298 cat >>confdefs.h <<_ACEOF
18299#define HAVE_DECL_FREE 0
5464f5a1 18300_ACEOF
252b5132 18301
d34a2b1d 18302
252b5132
RH
18303fi
18304
d34a2b1d
JG
18305
18306echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18307echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18308if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 18309 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18310else
5464f5a1
NN
18311 cat >conftest.$ac_ext <<_ACEOF
18312/* confdefs.h. */
18313_ACEOF
18314cat confdefs.h >>conftest.$ac_ext
18315cat >>conftest.$ac_ext <<_ACEOF
18316/* end confdefs.h. */
d34a2b1d 18317$ac_includes_default
5464f5a1
NN
18318int
18319main ()
18320{
d34a2b1d
JG
18321#ifndef getenv
18322 char *p = (char *) getenv;
18323#endif
18324
5464f5a1
NN
18325 ;
18326 return 0;
18327}
18328_ACEOF
18329rm -f conftest.$ac_objext
18330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18331 (eval $ac_compile) 2>conftest.er1
18332 ac_status=$?
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
7357c5b6
AM
18338 { ac_try='test -z "$ac_c_werror_flag"
18339 || test ! -s conftest.err'
5464f5a1
NN
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest.$ac_objext'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
d34a2b1d 18351 ac_cv_have_decl_getenv=yes
252b5132 18352else
5464f5a1
NN
18353 echo "$as_me: failed program was:" >&5
18354sed 's/^/| /' conftest.$ac_ext >&5
18355
d34a2b1d 18356ac_cv_have_decl_getenv=no
252b5132 18357fi
5464f5a1 18358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18359fi
d34a2b1d
JG
18360echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18361echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18362if test $ac_cv_have_decl_getenv = yes; then
252b5132 18363
d34a2b1d
JG
18364cat >>confdefs.h <<_ACEOF
18365#define HAVE_DECL_GETENV 1
18366_ACEOF
5464f5a1 18367
d34a2b1d
JG
18368
18369else
18370 cat >>confdefs.h <<_ACEOF
18371#define HAVE_DECL_GETENV 0
5464f5a1 18372_ACEOF
252b5132 18373
d34a2b1d 18374
252b5132
RH
18375fi
18376
d34a2b1d
JG
18377
18378echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18379echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18380if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 18381 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18382else
5464f5a1
NN
18383 cat >conftest.$ac_ext <<_ACEOF
18384/* confdefs.h. */
18385_ACEOF
18386cat confdefs.h >>conftest.$ac_ext
18387cat >>conftest.$ac_ext <<_ACEOF
18388/* end confdefs.h. */
d34a2b1d 18389$ac_includes_default
5464f5a1
NN
18390int
18391main ()
18392{
d34a2b1d
JG
18393#ifndef malloc
18394 char *p = (char *) malloc;
18395#endif
18396
5464f5a1
NN
18397 ;
18398 return 0;
18399}
18400_ACEOF
18401rm -f conftest.$ac_objext
18402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18403 (eval $ac_compile) 2>conftest.er1
18404 ac_status=$?
18405 grep -v '^ *+' conftest.er1 >conftest.err
18406 rm -f conftest.er1
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
7357c5b6
AM
18410 { ac_try='test -z "$ac_c_werror_flag"
18411 || test ! -s conftest.err'
5464f5a1
NN
18412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18414 ac_status=$?
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; } &&
18417 { ac_try='test -s conftest.$ac_objext'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18420 ac_status=$?
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; }; then
d34a2b1d 18423 ac_cv_have_decl_malloc=yes
252b5132 18424else
5464f5a1
NN
18425 echo "$as_me: failed program was:" >&5
18426sed 's/^/| /' conftest.$ac_ext >&5
18427
d34a2b1d 18428ac_cv_have_decl_malloc=no
252b5132 18429fi
5464f5a1 18430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18431fi
d34a2b1d
JG
18432echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18433echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18434if test $ac_cv_have_decl_malloc = yes; then
252b5132 18435
d34a2b1d
JG
18436cat >>confdefs.h <<_ACEOF
18437#define HAVE_DECL_MALLOC 1
18438_ACEOF
5464f5a1 18439
d34a2b1d
JG
18440
18441else
18442 cat >>confdefs.h <<_ACEOF
18443#define HAVE_DECL_MALLOC 0
5464f5a1 18444_ACEOF
252b5132 18445
d34a2b1d 18446
252b5132
RH
18447fi
18448
d34a2b1d
JG
18449
18450echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18451echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18452if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 18453 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18454else
5464f5a1
NN
18455 cat >conftest.$ac_ext <<_ACEOF
18456/* confdefs.h. */
18457_ACEOF
18458cat confdefs.h >>conftest.$ac_ext
18459cat >>conftest.$ac_ext <<_ACEOF
18460/* end confdefs.h. */
d34a2b1d 18461$ac_includes_default
5464f5a1
NN
18462int
18463main ()
18464{
d34a2b1d
JG
18465#ifndef realloc
18466 char *p = (char *) realloc;
18467#endif
18468
5464f5a1
NN
18469 ;
18470 return 0;
18471}
18472_ACEOF
18473rm -f conftest.$ac_objext
18474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18475 (eval $ac_compile) 2>conftest.er1
18476 ac_status=$?
18477 grep -v '^ *+' conftest.er1 >conftest.err
18478 rm -f conftest.er1
18479 cat conftest.err >&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); } &&
7357c5b6
AM
18482 { ac_try='test -z "$ac_c_werror_flag"
18483 || test ! -s conftest.err'
5464f5a1
NN
18484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18485 (eval $ac_try) 2>&5
18486 ac_status=$?
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; } &&
18489 { ac_try='test -s conftest.$ac_objext'
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18492 ac_status=$?
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; }; then
d34a2b1d 18495 ac_cv_have_decl_realloc=yes
252b5132 18496else
5464f5a1
NN
18497 echo "$as_me: failed program was:" >&5
18498sed 's/^/| /' conftest.$ac_ext >&5
18499
d34a2b1d 18500ac_cv_have_decl_realloc=no
252b5132 18501fi
5464f5a1 18502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18503fi
d34a2b1d
JG
18504echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18505echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18506if test $ac_cv_have_decl_realloc = yes; then
18507
18508cat >>confdefs.h <<_ACEOF
18509#define HAVE_DECL_REALLOC 1
18510_ACEOF
252b5132 18511
5464f5a1 18512
d34a2b1d
JG
18513else
18514 cat >>confdefs.h <<_ACEOF
18515#define HAVE_DECL_REALLOC 0
efa9bda4
AL
18516_ACEOF
18517
d34a2b1d 18518
efa9bda4
AL
18519fi
18520
d34a2b1d 18521
be5cacdb
L
18522echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
18523echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
18524if test "${ac_cv_have_decl_stpcpy+set}" = set; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18526else
18527 cat >conftest.$ac_ext <<_ACEOF
18528/* confdefs.h. */
18529_ACEOF
18530cat confdefs.h >>conftest.$ac_ext
18531cat >>conftest.$ac_ext <<_ACEOF
18532/* end confdefs.h. */
18533$ac_includes_default
18534int
18535main ()
18536{
18537#ifndef stpcpy
18538 char *p = (char *) stpcpy;
18539#endif
18540
18541 ;
18542 return 0;
18543}
18544_ACEOF
18545rm -f conftest.$ac_objext
18546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18547 (eval $ac_compile) 2>conftest.er1
18548 ac_status=$?
18549 grep -v '^ *+' conftest.er1 >conftest.err
18550 rm -f conftest.er1
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } &&
7357c5b6
AM
18554 { ac_try='test -z "$ac_c_werror_flag"
18555 || test ! -s conftest.err'
be5cacdb
L
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest.$ac_objext'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18567 ac_cv_have_decl_stpcpy=yes
18568else
18569 echo "$as_me: failed program was:" >&5
18570sed 's/^/| /' conftest.$ac_ext >&5
18571
18572ac_cv_have_decl_stpcpy=no
18573fi
18574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18575fi
18576echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
18577echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
18578if test $ac_cv_have_decl_stpcpy = yes; then
18579
18580cat >>confdefs.h <<_ACEOF
18581#define HAVE_DECL_STPCPY 1
18582_ACEOF
18583
18584
18585else
18586 cat >>confdefs.h <<_ACEOF
18587#define HAVE_DECL_STPCPY 0
18588_ACEOF
18589
18590
18591fi
18592
18593
d34a2b1d
JG
18594echo "$as_me:$LINENO: checking whether strstr is declared" >&5
18595echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
18596if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
18597 echo $ECHO_N "(cached) $ECHO_C" >&6
18598else
18599 cat >conftest.$ac_ext <<_ACEOF
18600/* confdefs.h. */
18601_ACEOF
18602cat confdefs.h >>conftest.$ac_ext
18603cat >>conftest.$ac_ext <<_ACEOF
18604/* end confdefs.h. */
d34a2b1d 18605$ac_includes_default
efa9bda4
AL
18606int
18607main ()
18608{
d34a2b1d
JG
18609#ifndef strstr
18610 char *p = (char *) strstr;
18611#endif
18612
efa9bda4
AL
18613 ;
18614 return 0;
18615}
18616_ACEOF
18617rm -f conftest.$ac_objext
18618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18619 (eval $ac_compile) 2>conftest.er1
18620 ac_status=$?
18621 grep -v '^ *+' conftest.er1 >conftest.err
18622 rm -f conftest.er1
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
7357c5b6
AM
18626 { ac_try='test -z "$ac_c_werror_flag"
18627 || test ! -s conftest.err'
efa9bda4
AL
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest.$ac_objext'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
d34a2b1d 18639 ac_cv_have_decl_strstr=yes
efa9bda4
AL
18640else
18641 echo "$as_me: failed program was:" >&5
18642sed 's/^/| /' conftest.$ac_ext >&5
18643
d34a2b1d 18644ac_cv_have_decl_strstr=no
efa9bda4
AL
18645fi
18646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18647fi
d34a2b1d
JG
18648echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
18649echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
18650if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 18651
d34a2b1d
JG
18652cat >>confdefs.h <<_ACEOF
18653#define HAVE_DECL_STRSTR 1
18654_ACEOF
efa9bda4 18655
d34a2b1d
JG
18656
18657else
18658 cat >>confdefs.h <<_ACEOF
18659#define HAVE_DECL_STRSTR 0
5464f5a1 18660_ACEOF
252b5132 18661
d34a2b1d 18662
252b5132
RH
18663fi
18664
6be7c12c 18665
36527912
AJ
18666echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18667echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
18668if test "${ac_cv_have_decl_snprintf+set}" = set; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18670else
18671 cat >conftest.$ac_ext <<_ACEOF
18672/* confdefs.h. */
18673_ACEOF
18674cat confdefs.h >>conftest.$ac_ext
18675cat >>conftest.$ac_ext <<_ACEOF
18676/* end confdefs.h. */
18677$ac_includes_default
18678int
18679main ()
18680{
18681#ifndef snprintf
18682 char *p = (char *) snprintf;
18683#endif
18684
18685 ;
18686 return 0;
18687}
18688_ACEOF
18689rm -f conftest.$ac_objext
18690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18691 (eval $ac_compile) 2>conftest.er1
18692 ac_status=$?
18693 grep -v '^ *+' conftest.er1 >conftest.err
18694 rm -f conftest.er1
18695 cat conftest.err >&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } &&
7357c5b6
AM
18698 { ac_try='test -z "$ac_c_werror_flag"
18699 || test ! -s conftest.err'
36527912
AJ
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; } &&
18705 { ac_try='test -s conftest.$ac_objext'
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
18711 ac_cv_have_decl_snprintf=yes
18712else
18713 echo "$as_me: failed program was:" >&5
18714sed 's/^/| /' conftest.$ac_ext >&5
18715
18716ac_cv_have_decl_snprintf=no
18717fi
18718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18719fi
18720echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18721echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18722if test $ac_cv_have_decl_snprintf = yes; then
18723
18724cat >>confdefs.h <<_ACEOF
18725#define HAVE_DECL_SNPRINTF 1
18726_ACEOF
18727
18728
18729else
18730 cat >>confdefs.h <<_ACEOF
18731#define HAVE_DECL_SNPRINTF 0
18732_ACEOF
18733
18734
18735fi
18736
18737
18738echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18739echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18740if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742else
18743 cat >conftest.$ac_ext <<_ACEOF
18744/* confdefs.h. */
18745_ACEOF
18746cat confdefs.h >>conftest.$ac_ext
18747cat >>conftest.$ac_ext <<_ACEOF
18748/* end confdefs.h. */
18749$ac_includes_default
18750int
18751main ()
18752{
18753#ifndef vsnprintf
18754 char *p = (char *) vsnprintf;
18755#endif
18756
18757 ;
18758 return 0;
18759}
18760_ACEOF
18761rm -f conftest.$ac_objext
18762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18763 (eval $ac_compile) 2>conftest.er1
18764 ac_status=$?
18765 grep -v '^ *+' conftest.er1 >conftest.err
18766 rm -f conftest.er1
18767 cat conftest.err >&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } &&
7357c5b6
AM
18770 { ac_try='test -z "$ac_c_werror_flag"
18771 || test ! -s conftest.err'
36527912
AJ
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; } &&
18777 { ac_try='test -s conftest.$ac_objext'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_have_decl_vsnprintf=yes
18784else
18785 echo "$as_me: failed program was:" >&5
18786sed 's/^/| /' conftest.$ac_ext >&5
18787
18788ac_cv_have_decl_vsnprintf=no
18789fi
18790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18791fi
18792echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18793echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18794if test $ac_cv_have_decl_vsnprintf = yes; then
18795
18796cat >>confdefs.h <<_ACEOF
18797#define HAVE_DECL_VSNPRINTF 1
18798_ACEOF
18799
18800
18801else
18802 cat >>confdefs.h <<_ACEOF
18803#define HAVE_DECL_VSNPRINTF 0
18804_ACEOF
18805
18806
18807fi
18808
18809
d34a2b1d 18810
1b315056 18811# Link in zlib if we can. This allows us to read compressed debug sections.
7357c5b6 18812# This is used only by compress.c.
1b315056
CS
18813echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18814echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18815if test "${ac_cv_search_zlibVersion+set}" = set; then
18816 echo $ECHO_N "(cached) $ECHO_C" >&6
18817else
18818 ac_func_search_save_LIBS=$LIBS
18819ac_cv_search_zlibVersion=no
18820cat >conftest.$ac_ext <<_ACEOF
18821/* confdefs.h. */
18822_ACEOF
18823cat confdefs.h >>conftest.$ac_ext
18824cat >>conftest.$ac_ext <<_ACEOF
18825/* end confdefs.h. */
18826
18827/* Override any gcc2 internal prototype to avoid an error. */
18828#ifdef __cplusplus
18829extern "C"
18830#endif
18831/* We use char because int might match the return type of a gcc2
18832 builtin and then its argument prototype would still apply. */
18833char zlibVersion ();
18834int
18835main ()
18836{
18837zlibVersion ();
18838 ;
18839 return 0;
18840}
18841_ACEOF
18842rm -f conftest.$ac_objext conftest$ac_exeext
18843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18844 (eval $ac_link) 2>conftest.er1
18845 ac_status=$?
18846 grep -v '^ *+' conftest.er1 >conftest.err
18847 rm -f conftest.er1
18848 cat conftest.err >&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } &&
7357c5b6
AM
18851 { ac_try='test -z "$ac_c_werror_flag"
18852 || test ! -s conftest.err'
1b315056
CS
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; } &&
18858 { ac_try='test -s conftest$ac_exeext'
18859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860 (eval $ac_try) 2>&5
18861 ac_status=$?
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; }; then
18864 ac_cv_search_zlibVersion="none required"
18865else
18866 echo "$as_me: failed program was:" >&5
18867sed 's/^/| /' conftest.$ac_ext >&5
18868
18869fi
18870rm -f conftest.err conftest.$ac_objext \
18871 conftest$ac_exeext conftest.$ac_ext
18872if test "$ac_cv_search_zlibVersion" = no; then
18873 for ac_lib in z; do
18874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18875 cat >conftest.$ac_ext <<_ACEOF
18876/* confdefs.h. */
18877_ACEOF
18878cat confdefs.h >>conftest.$ac_ext
18879cat >>conftest.$ac_ext <<_ACEOF
18880/* end confdefs.h. */
18881
18882/* Override any gcc2 internal prototype to avoid an error. */
18883#ifdef __cplusplus
18884extern "C"
18885#endif
18886/* We use char because int might match the return type of a gcc2
18887 builtin and then its argument prototype would still apply. */
18888char zlibVersion ();
18889int
18890main ()
18891{
18892zlibVersion ();
18893 ;
18894 return 0;
18895}
18896_ACEOF
18897rm -f conftest.$ac_objext conftest$ac_exeext
18898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899 (eval $ac_link) 2>conftest.er1
18900 ac_status=$?
18901 grep -v '^ *+' conftest.er1 >conftest.err
18902 rm -f conftest.er1
18903 cat conftest.err >&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } &&
7357c5b6
AM
18906 { ac_try='test -z "$ac_c_werror_flag"
18907 || test ! -s conftest.err'
1b315056
CS
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest$ac_exeext'
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 ac_cv_search_zlibVersion="-l$ac_lib"
18920break
18921else
18922 echo "$as_me: failed program was:" >&5
18923sed 's/^/| /' conftest.$ac_ext >&5
18924
18925fi
18926rm -f conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18928 done
18929fi
18930LIBS=$ac_func_search_save_LIBS
18931fi
18932echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18933echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18934if test "$ac_cv_search_zlibVersion" != no; then
18935 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18936
18937for ac_header in zlib.h
18938do
18939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18940if eval "test \"\${$as_ac_Header+set}\" = set"; then
18941 echo "$as_me:$LINENO: checking for $ac_header" >&5
18942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18943if eval "test \"\${$as_ac_Header+set}\" = set"; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18945fi
18946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18948else
18949 # Is the header compilable?
18950echo "$as_me:$LINENO: checking $ac_header usability" >&5
18951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18952cat >conftest.$ac_ext <<_ACEOF
18953/* confdefs.h. */
18954_ACEOF
18955cat confdefs.h >>conftest.$ac_ext
18956cat >>conftest.$ac_ext <<_ACEOF
18957/* end confdefs.h. */
18958$ac_includes_default
18959#include <$ac_header>
18960_ACEOF
18961rm -f conftest.$ac_objext
18962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18963 (eval $ac_compile) 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
7357c5b6
AM
18970 { ac_try='test -z "$ac_c_werror_flag"
18971 || test ! -s conftest.err'
1b315056
CS
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest.$ac_objext'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 ac_header_compiler=yes
18984else
18985 echo "$as_me: failed program was:" >&5
18986sed 's/^/| /' conftest.$ac_ext >&5
18987
18988ac_header_compiler=no
18989fi
18990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18992echo "${ECHO_T}$ac_header_compiler" >&6
18993
18994# Is the header present?
18995echo "$as_me:$LINENO: checking $ac_header presence" >&5
18996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18997cat >conftest.$ac_ext <<_ACEOF
18998/* confdefs.h. */
18999_ACEOF
19000cat confdefs.h >>conftest.$ac_ext
19001cat >>conftest.$ac_ext <<_ACEOF
19002/* end confdefs.h. */
19003#include <$ac_header>
19004_ACEOF
19005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19007 ac_status=$?
19008 grep -v '^ *+' conftest.er1 >conftest.err
19009 rm -f conftest.er1
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } >/dev/null; then
19013 if test -s conftest.err; then
19014 ac_cpp_err=$ac_c_preproc_warn_flag
19015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19016 else
19017 ac_cpp_err=
19018 fi
19019else
19020 ac_cpp_err=yes
19021fi
19022if test -z "$ac_cpp_err"; then
19023 ac_header_preproc=yes
19024else
19025 echo "$as_me: failed program was:" >&5
19026sed 's/^/| /' conftest.$ac_ext >&5
19027
19028 ac_header_preproc=no
19029fi
19030rm -f conftest.err conftest.$ac_ext
19031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19032echo "${ECHO_T}$ac_header_preproc" >&6
19033
19034# So? What about this header?
19035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19036 yes:no: )
19037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19041 ac_header_preproc=yes
19042 ;;
19043 no:yes:* )
19044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19056 (
19057 cat <<\_ASBOX
19058## ------------------------------------------ ##
19059## Report this to the AC_PACKAGE_NAME lists. ##
19060## ------------------------------------------ ##
19061_ASBOX
19062 ) |
19063 sed "s/^/$as_me: WARNING: /" >&2
19064 ;;
19065esac
19066echo "$as_me:$LINENO: checking for $ac_header" >&5
19067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19068if eval "test \"\${$as_ac_Header+set}\" = set"; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19070else
19071 eval "$as_ac_Header=\$ac_header_preproc"
19072fi
19073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19075
19076fi
19077if test `eval echo '${'$as_ac_Header'}'` = yes; then
19078 cat >>confdefs.h <<_ACEOF
19079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19080_ACEOF
19081
19082fi
19083
19084done
19085
19086fi
19087
19088
252b5132
RH
19089# If we are configured native, pick a core file support file.
19090COREFILE=
19091COREFLAG=
19092TRAD_HEADER=
19093if test "${target}" = "${host}"; then
19094 case "${host}" in
13dfd2d0 19095 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
19096 COREFILE=''
19097 ;;
ed84e695 19098 alpha*-*-linux-*)
252b5132
RH
19099 COREFILE=trad-core.lo
19100 TRAD_HEADER='"hosts/alphalinux.h"'
19101 ;;
690cc98b
NC
19102 alpha*-*-netbsd* | alpha*-*-openbsd*)
19103 COREFILE=netbsd-core.lo
19104 ;;
252b5132 19105 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
19106 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
19107 COREFILE='' ;;
e33533a4
MK
19108 arm-*-netbsd* | arm-*-openbsd*)
19109 COREFILE=netbsd-core.lo
19110 ;;
252b5132
RH
19111 arm-*-riscix) COREFILE=trad-core.lo ;;
19112 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
19113 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
19114 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
19115 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
19116 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
19117 hppa*-*-netbsd* | hppa*-*-openbsd*)
19118 COREFILE=netbsd-core.lo
19119 ;;
19120
dc810e39 19121 i370-*-*)
5b93d8bb
AM
19122 COREFILE=trad-core.lo
19123 TRAD_HEADER='"hosts/i370linux.h"'
19124 ;;
19125
80c7c40a 19126 i[3-7]86-sequent-bsd*)
5b93d8bb 19127 COREFILE=trad-core.lo
252b5132
RH
19128 TRAD_HEADER='"hosts/symmetry.h"'
19129 ;;
80c7c40a
NC
19130 i[3-7]86-sequent-sysv4*) ;;
19131 i[3-7]86-sequent-sysv*)
252b5132
RH
19132 COREFILE=trad-core.lo
19133 TRAD_HEADER='"hosts/symmetry.h"'
19134 ;;
80c7c40a 19135 i[3-7]86-*-bsdi)
7e3b3466
NC
19136 COREFILE=
19137 ;;
d2bef492 19138 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
19139 COREFILE=trad-core.lo
19140 TRAD_HEADER='"hosts/i386bsd.h"'
19141 ;;
0b3e17e9 19142 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
d4af9775
DB
19143 COREFILE=''
19144 TRAD_HEADER='"hosts/i386bsd.h"'
19145 ;;
4615568e 19146 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
19147 COREFILE=netbsd-core.lo
19148 ;;
80c7c40a 19149 i[3-7]86-esix-sysv3*)
252b5132
RH
19150 COREFILE=trad-core.lo
19151 TRAD_HEADER='"hosts/esix.h"'
19152 ;;
80c7c40a 19153 i[3-7]86-*-sco3.2v5*)
252b5132
RH
19154 COREFILE=sco5-core.lo
19155 ;;
80c7c40a 19156 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
19157 COREFILE=trad-core.lo
19158 TRAD_HEADER='"hosts/i386sco.h"'
19159 ;;
80c7c40a 19160 i[3-7]86-*-mach3*)
252b5132
RH
19161 COREFILE=trad-core.lo
19162 TRAD_HEADER='"hosts/i386mach3.h"'
19163 ;;
ed84e695 19164 i[3-7]86-*-linux-*)
252b5132
RH
19165 COREFILE=trad-core.lo
19166 TRAD_HEADER='"hosts/i386linux.h"'
19167 ;;
80c7c40a
NC
19168 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
19169 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
19170 i860-*-mach3* | i860-*-osf1*)
19171 COREFILE=trad-core.lo
19172 TRAD_HEADER='"hosts/i860mach3.h"'
19173 ;;
252b5132
RH
19174 mips-*-netbsd* | mips*-*-openbsd*)
19175 COREFILE=netbsd-core.lo
19176 ;;
19177 mips-dec-*)
19178 COREFILE=trad-core.lo
19179 TRAD_HEADER='"hosts/decstation.h"'
19180 ;;
19181 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
19182 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
19183 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
19184 mips-*-sysv4*) ;;
19185 mips-*-sysv* | mips-*-riscos*)
19186 COREFILE=trad-core.lo
19187 TRAD_HEADER='"hosts/riscos.h"'
19188 ;;
19189 mips-sony-bsd*)
19190 COREFILE=trad-core.lo
19191 TRAD_HEADER='"hosts/news-mips.h"'
19192 ;;
19193 m68*-bull*-sysv*)
19194 COREFILE=trad-core.lo
19195 TRAD_HEADER='"hosts/dpx2.h"'
19196 ;;
19197 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
19198 m68*-hp-bsd*)
19199 COREFILE=trad-core.lo
19200 TRAD_HEADER='"hosts/hp300bsd.h"'
19201 ;;
ed84e695 19202 m68*-*-linux-*)
252b5132
RH
19203 COREFILE=trad-core.lo
19204 TRAD_HEADER='"hosts/m68klinux.h"'
19205 ;;
19206 m68*-motorola-sysv*)
19207 COREFILE=trad-core.lo
19208 TRAD_HEADER='"hosts/delta68.h"'
19209 ;;
19210 m68*-sony-*)
19211 COREFILE=trad-core.lo
19212 TRAD_HEADER='"hosts/news.h"'
19213 ;;
19214 m68*-*-netbsd* | m68*-*-openbsd*)
19215 COREFILE=netbsd-core.lo
19216 ;;
19217 m68*-apple-aux*)
19218 COREFILE=trad-core.lo
19219 TRAD_HEADER='"hosts/m68kaux.h"'
19220 ;;
eb1e0e80
NC
19221 m88*-*-sysv4*)
19222 ;;
19223 m88*-motorola-sysv*)
19224 COREFILE=ptrace-core.lo
19225 ;;
252b5132
RH
19226 m88*-*-mach3*)
19227 COREFILE=trad-core.lo
19228 TRAD_HEADER='"hosts/m88kmach3.h"'
19229 ;;
c6f8758f
NC
19230 m88*-*-openbsd*)
19231 COREFILE=netbsd-core.lo
19232 ;;
252b5132
RH
19233 ns32k-pc532-mach)
19234 COREFILE=trad-core.lo
19235 TRAD_HEADER='"hosts/pc532mach.h"'
19236 ;;
19237 ns32k-*-netbsd* | ns32k-*-openbsd*)
19238 COREFILE=netbsd-core.lo
19239 ;;
eb1e0e80
NC
19240 rs6000-*-lynx*)
19241 COREFILE=lynx-core.lo
19242 ;;
19243 rs6000-*-aix5.* | powerpc-*-aix5.*)
19244 COREFILE=rs6000-core.lo
19245 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
19246 ;;
83954261 19247 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
19248 COREFILE=rs6000-core.lo
19249 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
19250 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
19251 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
19252 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
19253echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
19254 cat >conftest.$ac_ext <<_ACEOF
19255/* confdefs.h. */
19256_ACEOF
19257cat confdefs.h >>conftest.$ac_ext
19258cat >>conftest.$ac_ext <<_ACEOF
19259/* end confdefs.h. */
83954261 19260#include <core.h>
5464f5a1
NN
19261int
19262main ()
19263{
83954261 19264struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
19265 ;
19266 return 0;
19267}
19268_ACEOF
19269rm -f conftest.$ac_objext
19270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19271 (eval $ac_compile) 2>conftest.er1
19272 ac_status=$?
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
7357c5b6
AM
19278 { ac_try='test -z "$ac_c_werror_flag"
19279 || test ! -s conftest.err'
5464f5a1
NN
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try='test -s conftest.$ac_objext'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
19291
19292cat >>confdefs.h <<\_ACEOF
83954261 19293#define HAVE_ST_C_IMPL 1
5464f5a1 19294_ACEOF
83954261 19295
5464f5a1
NN
19296 echo "$as_me:$LINENO: result: yes" >&5
19297echo "${ECHO_T}yes" >&6
83954261 19298else
5464f5a1
NN
19299 echo "$as_me: failed program was:" >&5
19300sed 's/^/| /' conftest.$ac_ext >&5
19301
19302echo "$as_me:$LINENO: result: no" >&5
19303echo "${ECHO_T}no" >&6
83954261 19304fi
5464f5a1 19305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 19306 ;;
252b5132
RH
19307 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
19308 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
19309 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
19310 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
19311 powerpc-*-beos*) ;;
13dfd2d0
NC
19312 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
19313 COREFILE='' ;;
252b5132 19314 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 19315 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 19316 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
19317 sh*-*-netbsd* | sh*-*-openbsd*)
19318 COREFILE=netbsd-core.lo
19319 ;;
a9bf1154 19320 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
19321 COREFILE=netbsd-core.lo
19322 ;;
19323 tahoe-*-*)
19324 COREFILE=trad-core.lo
19325 TRAD_HEADER='"hosts/tahoe.h"'
19326 ;;
de6e5e1a
NC
19327 vax-*-netbsd* | vax-*-openbsd*)
19328 COREFILE=netbsd-core.lo
19329 ;;
252b5132
RH
19330 vax-*-ultrix2*)
19331 COREFILE=trad-core.lo
19332 TRAD_HEADER='"hosts/vaxult2.h"'
19333 ;;
19334 vax-*-ultrix*)
19335 COREFILE=trad-core.lo
19336 TRAD_HEADER='"hosts/vaxult2.h"'
19337 ;;
ed84e695 19338 vax-*-linux-*)
f8fc3443
NC
19339 COREFILE=trad-core.lo
19340 TRAD_HEADER='"hosts/vaxlinux.h"'
19341 ;;
252b5132
RH
19342 vax-*-*)
19343 COREFILE=trad-core.lo
19344 TRAD_HEADER='"hosts/vaxbsd.h"'
19345 ;;
85cfd8d3
MK
19346 x86_64-*-netbsd* | x86_64-*-openbsd*)
19347 COREFILE=netbsd-core.lo
19348 ;;
252b5132
RH
19349 esac
19350
19351 case "$COREFILE" in
19352 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
19353 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
19354 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
19355 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
19356 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
19357 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
19358 osf-core.lo) COREFLAG=-DOSF_CORE ;;
19359 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
19360 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
19361 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
19362 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
19363 esac
19364
19365 # ELF corefile support has several flavors, but all of
19366 # them use something called <sys/procfs.h>
5464f5a1
NN
19367
19368for ac_header in sys/procfs.h
252b5132 19369do
5464f5a1
NN
19370as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19371if eval "test \"\${$as_ac_Header+set}\" = set"; then
19372 echo "$as_me:$LINENO: checking for $ac_header" >&5
19373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19374if eval "test \"\${$as_ac_Header+set}\" = set"; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19376fi
19377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19379else
19380 # Is the header compilable?
19381echo "$as_me:$LINENO: checking $ac_header usability" >&5
19382echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19383cat >conftest.$ac_ext <<_ACEOF
19384/* confdefs.h. */
19385_ACEOF
19386cat confdefs.h >>conftest.$ac_ext
19387cat >>conftest.$ac_ext <<_ACEOF
19388/* end confdefs.h. */
19389$ac_includes_default
19390#include <$ac_header>
19391_ACEOF
19392rm -f conftest.$ac_objext
19393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19394 (eval $ac_compile) 2>conftest.er1
19395 ac_status=$?
19396 grep -v '^ *+' conftest.er1 >conftest.err
19397 rm -f conftest.er1
19398 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } &&
7357c5b6
AM
19401 { ac_try='test -z "$ac_c_werror_flag"
19402 || test ! -s conftest.err'
5464f5a1
NN
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; } &&
19408 { ac_try='test -s conftest.$ac_objext'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
19414 ac_header_compiler=yes
19415else
19416 echo "$as_me: failed program was:" >&5
19417sed 's/^/| /' conftest.$ac_ext >&5
19418
19419ac_header_compiler=no
19420fi
19421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19422echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19423echo "${ECHO_T}$ac_header_compiler" >&6
19424
19425# Is the header present?
19426echo "$as_me:$LINENO: checking $ac_header presence" >&5
19427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19428cat >conftest.$ac_ext <<_ACEOF
19429/* confdefs.h. */
19430_ACEOF
19431cat confdefs.h >>conftest.$ac_ext
19432cat >>conftest.$ac_ext <<_ACEOF
19433/* end confdefs.h. */
19434#include <$ac_header>
19435_ACEOF
19436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19438 ac_status=$?
19439 grep -v '^ *+' conftest.er1 >conftest.err
19440 rm -f conftest.er1
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } >/dev/null; then
19444 if test -s conftest.err; then
19445 ac_cpp_err=$ac_c_preproc_warn_flag
19446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19447 else
19448 ac_cpp_err=
19449 fi
252b5132 19450else
5464f5a1 19451 ac_cpp_err=yes
252b5132 19452fi
5464f5a1
NN
19453if test -z "$ac_cpp_err"; then
19454 ac_header_preproc=yes
19455else
19456 echo "$as_me: failed program was:" >&5
19457sed 's/^/| /' conftest.$ac_ext >&5
19458
19459 ac_header_preproc=no
252b5132 19460fi
5464f5a1
NN
19461rm -f conftest.err conftest.$ac_ext
19462echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19463echo "${ECHO_T}$ac_header_preproc" >&6
19464
19465# So? What about this header?
19466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19467 yes:no: )
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19471echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19472 ac_header_preproc=yes
19473 ;;
19474 no:yes:* )
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19480echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19482echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19486echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19487 (
19488 cat <<\_ASBOX
19489## ------------------------------------------ ##
19490## Report this to the AC_PACKAGE_NAME lists. ##
19491## ------------------------------------------ ##
19492_ASBOX
19493 ) |
19494 sed "s/^/$as_me: WARNING: /" >&2
19495 ;;
19496esac
19497echo "$as_me:$LINENO: checking for $ac_header" >&5
19498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19499if eval "test \"\${$as_ac_Header+set}\" = set"; then
19500 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 19501else
5464f5a1
NN
19502 eval "$as_ac_Header=\$ac_header_preproc"
19503fi
19504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19506
252b5132 19507fi
5464f5a1
NN
19508if test `eval echo '${'$as_ac_Header'}'` = yes; then
19509 cat >>confdefs.h <<_ACEOF
19510#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19511_ACEOF
19512
19513fi
19514
252b5132
RH
19515done
19516
19517 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
19518 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
19519echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
19520 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19522else
19523 cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h. */
7ee38065
MS
19529
19530#define _SYSCALL32
252b5132 19531#include <sys/procfs.h>
5464f5a1
NN
19532int
19533main ()
19534{
252b5132 19535prstatus_t avar
5464f5a1
NN
19536 ;
19537 return 0;
19538}
19539_ACEOF
19540rm -f conftest.$ac_objext
19541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19542 (eval $ac_compile) 2>conftest.er1
19543 ac_status=$?
19544 grep -v '^ *+' conftest.er1 >conftest.err
19545 rm -f conftest.er1
19546 cat conftest.err >&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } &&
7357c5b6
AM
19549 { ac_try='test -z "$ac_c_werror_flag"
19550 || test ! -s conftest.err'
5464f5a1
NN
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; } &&
19556 { ac_try='test -s conftest.$ac_objext'
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
252b5132
RH
19562 bfd_cv_have_sys_procfs_type_prstatus_t=yes
19563else
5464f5a1
NN
19564 echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567bfd_cv_have_sys_procfs_type_prstatus_t=no
19568
252b5132 19569fi
5464f5a1 19570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19571fi
19572
19573 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
19574
19575cat >>confdefs.h <<\_ACEOF
252b5132 19576#define HAVE_PRSTATUS_T 1
5464f5a1 19577_ACEOF
252b5132
RH
19578
19579 fi
5464f5a1
NN
19580 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
19581echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 19582
5464f5a1
NN
19583 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
19584echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
19585 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19587else
5464f5a1
NN
19588 cat >conftest.$ac_ext <<_ACEOF
19589/* confdefs.h. */
19590_ACEOF
19591cat confdefs.h >>conftest.$ac_ext
19592cat >>conftest.$ac_ext <<_ACEOF
19593/* end confdefs.h. */
7ee38065
MS
19594
19595#define _SYSCALL32
19596#include <sys/procfs.h>
5464f5a1
NN
19597int
19598main ()
19599{
7ee38065 19600prstatus32_t avar
5464f5a1
NN
19601 ;
19602 return 0;
19603}
19604_ACEOF
19605rm -f conftest.$ac_objext
19606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19607 (eval $ac_compile) 2>conftest.er1
19608 ac_status=$?
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } &&
7357c5b6
AM
19614 { ac_try='test -z "$ac_c_werror_flag"
19615 || test ! -s conftest.err'
5464f5a1
NN
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; } &&
19621 { ac_try='test -s conftest.$ac_objext'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; }; then
7ee38065
MS
19627 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
19628else
5464f5a1
NN
19629 echo "$as_me: failed program was:" >&5
19630sed 's/^/| /' conftest.$ac_ext >&5
19631
19632bfd_cv_have_sys_procfs_type_prstatus32_t=no
19633
7ee38065 19634fi
5464f5a1 19635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19636fi
19637
19638 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
19639
19640cat >>confdefs.h <<\_ACEOF
7ee38065 19641#define HAVE_PRSTATUS32_T 1
5464f5a1 19642_ACEOF
7ee38065
MS
19643
19644 fi
5464f5a1
NN
19645 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
19646echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 19647
5464f5a1
NN
19648 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
19649echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19650 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19652else
5464f5a1
NN
19653 cat >conftest.$ac_ext <<_ACEOF
19654/* confdefs.h. */
19655_ACEOF
19656cat confdefs.h >>conftest.$ac_ext
19657cat >>conftest.$ac_ext <<_ACEOF
19658/* end confdefs.h. */
7ee38065
MS
19659
19660#define _SYSCALL32
252b5132 19661#include <sys/procfs.h>
5464f5a1
NN
19662int
19663main ()
19664{
252b5132 19665prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
19666 ;
19667 return 0;
19668}
19669_ACEOF
19670rm -f conftest.$ac_objext
19671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19672 (eval $ac_compile) 2>conftest.er1
19673 ac_status=$?
19674 grep -v '^ *+' conftest.er1 >conftest.err
19675 rm -f conftest.er1
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
7357c5b6
AM
19679 { ac_try='test -z "$ac_c_werror_flag"
19680 || test ! -s conftest.err'
5464f5a1
NN
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19683 ac_status=$?
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; } &&
19686 { ac_try='test -s conftest.$ac_objext'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
252b5132
RH
19692 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
19693else
5464f5a1
NN
19694 echo "$as_me: failed program was:" >&5
19695sed 's/^/| /' conftest.$ac_ext >&5
19696
19697bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
19698
252b5132 19699fi
5464f5a1 19700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19701fi
19702
19703 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
19704
19705cat >>confdefs.h <<\_ACEOF
252b5132 19706#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 19707_ACEOF
252b5132
RH
19708
19709 fi
5464f5a1
NN
19710 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19711echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 19712
5464f5a1
NN
19713 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19714echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19715 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19717else
5464f5a1
NN
19718 cat >conftest.$ac_ext <<_ACEOF
19719/* confdefs.h. */
19720_ACEOF
19721cat confdefs.h >>conftest.$ac_ext
19722cat >>conftest.$ac_ext <<_ACEOF
19723/* end confdefs.h. */
7ee38065
MS
19724
19725#define _SYSCALL32
19726#include <sys/procfs.h>
5464f5a1
NN
19727int
19728main ()
19729{
7ee38065 19730prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
19731 ;
19732 return 0;
19733}
19734_ACEOF
19735rm -f conftest.$ac_objext
19736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737 (eval $ac_compile) 2>conftest.er1
19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
7357c5b6
AM
19744 { ac_try='test -z "$ac_c_werror_flag"
19745 || test ! -s conftest.err'
5464f5a1
NN
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest.$ac_objext'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
7ee38065
MS
19757 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19758else
5464f5a1
NN
19759 echo "$as_me: failed program was:" >&5
19760sed 's/^/| /' conftest.$ac_ext >&5
19761
19762bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19763
7ee38065 19764fi
5464f5a1 19765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19766fi
19767
19768 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
19769
19770cat >>confdefs.h <<\_ACEOF
7ee38065 19771#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 19772_ACEOF
7ee38065
MS
19773
19774 fi
5464f5a1
NN
19775 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19776echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 19777
5464f5a1
NN
19778 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19779echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19780 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19782else
5464f5a1
NN
19783 cat >conftest.$ac_ext <<_ACEOF
19784/* confdefs.h. */
19785_ACEOF
19786cat confdefs.h >>conftest.$ac_ext
19787cat >>conftest.$ac_ext <<_ACEOF
19788/* end confdefs.h. */
7ee38065
MS
19789
19790#define _SYSCALL32
252b5132 19791#include <sys/procfs.h>
5464f5a1
NN
19792int
19793main ()
19794{
252b5132 19795pstatus_t avar
5464f5a1
NN
19796 ;
19797 return 0;
19798}
19799_ACEOF
19800rm -f conftest.$ac_objext
19801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19802 (eval $ac_compile) 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
7357c5b6
AM
19809 { ac_try='test -z "$ac_c_werror_flag"
19810 || test ! -s conftest.err'
5464f5a1
NN
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; } &&
19816 { ac_try='test -s conftest.$ac_objext'
19817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818 (eval $ac_try) 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; }; then
252b5132
RH
19822 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19823else
5464f5a1
NN
19824 echo "$as_me: failed program was:" >&5
19825sed 's/^/| /' conftest.$ac_ext >&5
19826
19827bfd_cv_have_sys_procfs_type_pstatus_t=no
19828
252b5132 19829fi
5464f5a1 19830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19831fi
19832
19833 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
19834
19835cat >>confdefs.h <<\_ACEOF
252b5132 19836#define HAVE_PSTATUS_T 1
5464f5a1 19837_ACEOF
252b5132
RH
19838
19839 fi
5464f5a1
NN
19840 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19841echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 19842
5464f5a1
NN
19843 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19844echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19845 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 19847else
5464f5a1
NN
19848 cat >conftest.$ac_ext <<_ACEOF
19849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
f572a39d
AM
19854
19855#define _SYSCALL32
19856#include <sys/procfs.h>
5464f5a1
NN
19857int
19858main ()
19859{
f572a39d 19860pxstatus_t avar
5464f5a1
NN
19861 ;
19862 return 0;
19863}
19864_ACEOF
19865rm -f conftest.$ac_objext
19866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19867 (eval $ac_compile) 2>conftest.er1
19868 ac_status=$?
19869 grep -v '^ *+' conftest.er1 >conftest.err
19870 rm -f conftest.er1
19871 cat conftest.err >&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } &&
7357c5b6
AM
19874 { ac_try='test -z "$ac_c_werror_flag"
19875 || test ! -s conftest.err'
5464f5a1
NN
19876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; } &&
19881 { ac_try='test -s conftest.$ac_objext'
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
f572a39d
AM
19887 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19888else
5464f5a1
NN
19889 echo "$as_me: failed program was:" >&5
19890sed 's/^/| /' conftest.$ac_ext >&5
19891
19892bfd_cv_have_sys_procfs_type_pxstatus_t=no
19893
f572a39d 19894fi
5464f5a1 19895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
19896fi
19897
19898 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
19899
19900cat >>confdefs.h <<\_ACEOF
f572a39d 19901#define HAVE_PXSTATUS_T 1
5464f5a1 19902_ACEOF
f572a39d
AM
19903
19904 fi
5464f5a1
NN
19905 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19906echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 19907
5464f5a1
NN
19908 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19909echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19910 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19912else
5464f5a1
NN
19913 cat >conftest.$ac_ext <<_ACEOF
19914/* confdefs.h. */
19915_ACEOF
19916cat confdefs.h >>conftest.$ac_ext
19917cat >>conftest.$ac_ext <<_ACEOF
19918/* end confdefs.h. */
7ee38065
MS
19919
19920#define _SYSCALL32
19921#include <sys/procfs.h>
5464f5a1
NN
19922int
19923main ()
19924{
7ee38065 19925pstatus32_t avar
5464f5a1
NN
19926 ;
19927 return 0;
19928}
19929_ACEOF
19930rm -f conftest.$ac_objext
19931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19932 (eval $ac_compile) 2>conftest.er1
19933 ac_status=$?
19934 grep -v '^ *+' conftest.er1 >conftest.err
19935 rm -f conftest.er1
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } &&
7357c5b6
AM
19939 { ac_try='test -z "$ac_c_werror_flag"
19940 || test ! -s conftest.err'
5464f5a1
NN
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; } &&
19946 { ac_try='test -s conftest.$ac_objext'
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19949 ac_status=$?
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
7ee38065
MS
19952 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19953else
5464f5a1
NN
19954 echo "$as_me: failed program was:" >&5
19955sed 's/^/| /' conftest.$ac_ext >&5
19956
19957bfd_cv_have_sys_procfs_type_pstatus32_t=no
19958
7ee38065 19959fi
5464f5a1 19960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19961fi
19962
19963 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
19964
19965cat >>confdefs.h <<\_ACEOF
7ee38065 19966#define HAVE_PSTATUS32_T 1
5464f5a1 19967_ACEOF
7ee38065
MS
19968
19969 fi
5464f5a1
NN
19970 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19971echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 19972
5464f5a1
NN
19973 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19974echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19975 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19977else
5464f5a1
NN
19978 cat >conftest.$ac_ext <<_ACEOF
19979/* confdefs.h. */
19980_ACEOF
19981cat confdefs.h >>conftest.$ac_ext
19982cat >>conftest.$ac_ext <<_ACEOF
19983/* end confdefs.h. */
7ee38065
MS
19984
19985#define _SYSCALL32
252b5132 19986#include <sys/procfs.h>
5464f5a1
NN
19987int
19988main ()
19989{
252b5132 19990prpsinfo_t avar
5464f5a1
NN
19991 ;
19992 return 0;
19993}
19994_ACEOF
19995rm -f conftest.$ac_objext
19996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19997 (eval $ac_compile) 2>conftest.er1
19998 ac_status=$?
19999 grep -v '^ *+' conftest.er1 >conftest.err
20000 rm -f conftest.er1
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } &&
7357c5b6
AM
20004 { ac_try='test -z "$ac_c_werror_flag"
20005 || test ! -s conftest.err'
5464f5a1
NN
20006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007 (eval $ac_try) 2>&5
20008 ac_status=$?
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; } &&
20011 { ac_try='test -s conftest.$ac_objext'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
252b5132
RH
20017 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
20018else
5464f5a1
NN
20019 echo "$as_me: failed program was:" >&5
20020sed 's/^/| /' conftest.$ac_ext >&5
20021
20022bfd_cv_have_sys_procfs_type_prpsinfo_t=no
20023
252b5132 20024fi
5464f5a1 20025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20026fi
20027
20028 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
20029
20030cat >>confdefs.h <<\_ACEOF
252b5132 20031#define HAVE_PRPSINFO_T 1
5464f5a1 20032_ACEOF
252b5132
RH
20033
20034 fi
5464f5a1
NN
20035 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
20036echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 20037
5464f5a1
NN
20038 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
20039echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
20040 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 20042else
5464f5a1
NN
20043 cat >conftest.$ac_ext <<_ACEOF
20044/* confdefs.h. */
20045_ACEOF
20046cat confdefs.h >>conftest.$ac_ext
20047cat >>conftest.$ac_ext <<_ACEOF
20048/* end confdefs.h. */
7ee38065
MS
20049
20050#define _SYSCALL32
20051#include <sys/procfs.h>
5464f5a1
NN
20052int
20053main ()
20054{
7ee38065 20055prpsinfo32_t avar
5464f5a1
NN
20056 ;
20057 return 0;
20058}
20059_ACEOF
20060rm -f conftest.$ac_objext
20061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20062 (eval $ac_compile) 2>conftest.er1
20063 ac_status=$?
20064 grep -v '^ *+' conftest.er1 >conftest.err
20065 rm -f conftest.er1
20066 cat conftest.err >&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } &&
7357c5b6
AM
20069 { ac_try='test -z "$ac_c_werror_flag"
20070 || test ! -s conftest.err'
5464f5a1
NN
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try='test -s conftest.$ac_objext'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
7ee38065
MS
20082 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
20083else
5464f5a1
NN
20084 echo "$as_me: failed program was:" >&5
20085sed 's/^/| /' conftest.$ac_ext >&5
20086
20087bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
20088
7ee38065 20089fi
5464f5a1 20090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
20091fi
20092
20093 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
20094
20095cat >>confdefs.h <<\_ACEOF
7ee38065 20096#define HAVE_PRPSINFO32_T 1
5464f5a1 20097_ACEOF
7ee38065
MS
20098
20099 fi
5464f5a1
NN
20100 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
20101echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 20102
5464f5a1
NN
20103 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
20104echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
20105 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20107else
5464f5a1
NN
20108 cat >conftest.$ac_ext <<_ACEOF
20109/* confdefs.h. */
20110_ACEOF
20111cat confdefs.h >>conftest.$ac_ext
20112cat >>conftest.$ac_ext <<_ACEOF
20113/* end confdefs.h. */
7ee38065
MS
20114
20115#define _SYSCALL32
252b5132 20116#include <sys/procfs.h>
5464f5a1
NN
20117int
20118main ()
20119{
252b5132 20120psinfo_t avar
5464f5a1
NN
20121 ;
20122 return 0;
20123}
20124_ACEOF
20125rm -f conftest.$ac_objext
20126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20127 (eval $ac_compile) 2>conftest.er1
20128 ac_status=$?
20129 grep -v '^ *+' conftest.er1 >conftest.err
20130 rm -f conftest.er1
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
7357c5b6
AM
20134 { ac_try='test -z "$ac_c_werror_flag"
20135 || test ! -s conftest.err'
5464f5a1
NN
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; } &&
20141 { ac_try='test -s conftest.$ac_objext'
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; }; then
252b5132
RH
20147 bfd_cv_have_sys_procfs_type_psinfo_t=yes
20148else
5464f5a1
NN
20149 echo "$as_me: failed program was:" >&5
20150sed 's/^/| /' conftest.$ac_ext >&5
20151
20152bfd_cv_have_sys_procfs_type_psinfo_t=no
20153
252b5132 20154fi
5464f5a1 20155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20156fi
20157
20158 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
20159
20160cat >>confdefs.h <<\_ACEOF
252b5132 20161#define HAVE_PSINFO_T 1
5464f5a1 20162_ACEOF
252b5132
RH
20163
20164 fi
5464f5a1
NN
20165 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
20166echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 20167
5464f5a1
NN
20168 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
20169echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
20170 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 20172else
5464f5a1
NN
20173 cat >conftest.$ac_ext <<_ACEOF
20174/* confdefs.h. */
20175_ACEOF
20176cat confdefs.h >>conftest.$ac_ext
20177cat >>conftest.$ac_ext <<_ACEOF
20178/* end confdefs.h. */
7ee38065
MS
20179
20180#define _SYSCALL32
20181#include <sys/procfs.h>
5464f5a1
NN
20182int
20183main ()
20184{
7ee38065 20185psinfo32_t avar
5464f5a1
NN
20186 ;
20187 return 0;
20188}
20189_ACEOF
20190rm -f conftest.$ac_objext
20191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20192 (eval $ac_compile) 2>conftest.er1
20193 ac_status=$?
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
7357c5b6
AM
20199 { ac_try='test -z "$ac_c_werror_flag"
20200 || test ! -s conftest.err'
5464f5a1
NN
20201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202 (eval $ac_try) 2>&5
20203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; } &&
20206 { ac_try='test -s conftest.$ac_objext'
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20209 ac_status=$?
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
7ee38065
MS
20212 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
20213else
5464f5a1
NN
20214 echo "$as_me: failed program was:" >&5
20215sed 's/^/| /' conftest.$ac_ext >&5
20216
20217bfd_cv_have_sys_procfs_type_psinfo32_t=no
20218
7ee38065 20219fi
5464f5a1 20220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
20221fi
20222
20223 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
20224
20225cat >>confdefs.h <<\_ACEOF
7ee38065 20226#define HAVE_PSINFO32_T 1
5464f5a1 20227_ACEOF
7ee38065
MS
20228
20229 fi
5464f5a1
NN
20230 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
20231echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 20232
5464f5a1
NN
20233 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
20234echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
20235 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20237else
5464f5a1
NN
20238 cat >conftest.$ac_ext <<_ACEOF
20239/* confdefs.h. */
20240_ACEOF
20241cat confdefs.h >>conftest.$ac_ext
20242cat >>conftest.$ac_ext <<_ACEOF
20243/* end confdefs.h. */
7ee38065
MS
20244
20245#define _SYSCALL32
252b5132 20246#include <sys/procfs.h>
5464f5a1
NN
20247int
20248main ()
20249{
252b5132 20250lwpstatus_t avar
5464f5a1
NN
20251 ;
20252 return 0;
20253}
20254_ACEOF
20255rm -f conftest.$ac_objext
20256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20257 (eval $ac_compile) 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
7357c5b6
AM
20264 { ac_try='test -z "$ac_c_werror_flag"
20265 || test ! -s conftest.err'
5464f5a1
NN
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try='test -s conftest.$ac_objext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
252b5132
RH
20277 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
20278else
5464f5a1
NN
20279 echo "$as_me: failed program was:" >&5
20280sed 's/^/| /' conftest.$ac_ext >&5
20281
20282bfd_cv_have_sys_procfs_type_lwpstatus_t=no
20283
252b5132 20284fi
5464f5a1 20285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20286fi
20287
20288 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
20289
20290cat >>confdefs.h <<\_ACEOF
252b5132 20291#define HAVE_LWPSTATUS_T 1
5464f5a1 20292_ACEOF
252b5132
RH
20293
20294 fi
5464f5a1
NN
20295 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
20296echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 20297
5464f5a1
NN
20298 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
20299echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
20300 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 20302else
5464f5a1
NN
20303 cat >conftest.$ac_ext <<_ACEOF
20304/* confdefs.h. */
20305_ACEOF
20306cat confdefs.h >>conftest.$ac_ext
20307cat >>conftest.$ac_ext <<_ACEOF
20308/* end confdefs.h. */
f572a39d
AM
20309
20310#define _SYSCALL32
20311#include <sys/procfs.h>
5464f5a1
NN
20312int
20313main ()
20314{
f572a39d 20315lwpxstatus_t avar
5464f5a1
NN
20316 ;
20317 return 0;
20318}
20319_ACEOF
20320rm -f conftest.$ac_objext
20321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20322 (eval $ac_compile) 2>conftest.er1
20323 ac_status=$?
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } &&
7357c5b6
AM
20329 { ac_try='test -z "$ac_c_werror_flag"
20330 || test ! -s conftest.err'
5464f5a1
NN
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; } &&
20336 { ac_try='test -s conftest.$ac_objext'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; }; then
f572a39d
AM
20342 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
20343else
5464f5a1
NN
20344 echo "$as_me: failed program was:" >&5
20345sed 's/^/| /' conftest.$ac_ext >&5
20346
20347bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
20348
f572a39d 20349fi
5464f5a1 20350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
20351fi
20352
20353 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
20354
20355cat >>confdefs.h <<\_ACEOF
f572a39d 20356#define HAVE_LWPXSTATUS_T 1
5464f5a1 20357_ACEOF
f572a39d
AM
20358
20359 fi
5464f5a1
NN
20360 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
20361echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 20362
5464f5a1
NN
20363 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
20364echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
20365 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20367else
5464f5a1
NN
20368 cat >conftest.$ac_ext <<_ACEOF
20369/* confdefs.h. */
20370_ACEOF
20371cat confdefs.h >>conftest.$ac_ext
20372cat >>conftest.$ac_ext <<_ACEOF
20373/* end confdefs.h. */
7ee38065
MS
20374
20375#define _SYSCALL32
252b5132 20376#include <sys/procfs.h>
5464f5a1
NN
20377int
20378main ()
20379{
252b5132 20380lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
20381 ;
20382 return 0;
20383}
20384_ACEOF
20385rm -f conftest.$ac_objext
20386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20387 (eval $ac_compile) 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } &&
7357c5b6
AM
20394 { ac_try='test -z "$ac_c_werror_flag"
20395 || test ! -s conftest.err'
5464f5a1
NN
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; } &&
20401 { ac_try='test -s conftest.$ac_objext'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20404 ac_status=$?
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; }; then
252b5132
RH
20407 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
20408else
5464f5a1
NN
20409 echo "$as_me: failed program was:" >&5
20410sed 's/^/| /' conftest.$ac_ext >&5
20411
20412bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
20413
252b5132 20414fi
5464f5a1 20415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20416fi
20417
20418 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
20419
20420cat >>confdefs.h <<\_ACEOF
252b5132 20421#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 20422_ACEOF
252b5132
RH
20423
20424 fi
5464f5a1
NN
20425 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
20426echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 20427
5464f5a1
NN
20428 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
20429echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
20430 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
20431 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20432else
5464f5a1
NN
20433 cat >conftest.$ac_ext <<_ACEOF
20434/* confdefs.h. */
20435_ACEOF
20436cat confdefs.h >>conftest.$ac_ext
20437cat >>conftest.$ac_ext <<_ACEOF
20438/* end confdefs.h. */
7ee38065
MS
20439
20440#define _SYSCALL32
252b5132 20441#include <sys/procfs.h>
5464f5a1
NN
20442int
20443main ()
20444{
252b5132 20445lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
20446 ;
20447 return 0;
20448}
20449_ACEOF
20450rm -f conftest.$ac_objext
20451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20452 (eval $ac_compile) 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
7357c5b6
AM
20459 { ac_try='test -z "$ac_c_werror_flag"
20460 || test ! -s conftest.err'
5464f5a1
NN
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; } &&
20466 { ac_try='test -s conftest.$ac_objext'
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; }; then
252b5132
RH
20472 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
20473else
5464f5a1
NN
20474 echo "$as_me: failed program was:" >&5
20475sed 's/^/| /' conftest.$ac_ext >&5
20476
20477bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
20478
252b5132 20479fi
5464f5a1 20480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20481fi
20482
20483 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
20484
20485cat >>confdefs.h <<\_ACEOF
252b5132 20486#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 20487_ACEOF
252b5132
RH
20488
20489 fi
5464f5a1
NN
20490 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
20491echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 20492
5464f5a1
NN
20493 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
20494echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
20495 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 20497else
5464f5a1
NN
20498 cat >conftest.$ac_ext <<_ACEOF
20499/* confdefs.h. */
20500_ACEOF
20501cat confdefs.h >>conftest.$ac_ext
20502cat >>conftest.$ac_ext <<_ACEOF
20503/* end confdefs.h. */
7ee38065
MS
20504
20505#define _SYSCALL32
e3c976c4 20506#include <sys/procfs.h>
5464f5a1
NN
20507int
20508main ()
20509{
e3c976c4 20510win32_pstatus_t avar
5464f5a1
NN
20511 ;
20512 return 0;
20513}
20514_ACEOF
20515rm -f conftest.$ac_objext
20516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20517 (eval $ac_compile) 2>conftest.er1
20518 ac_status=$?
20519 grep -v '^ *+' conftest.er1 >conftest.err
20520 rm -f conftest.er1
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } &&
7357c5b6
AM
20524 { ac_try='test -z "$ac_c_werror_flag"
20525 || test ! -s conftest.err'
5464f5a1
NN
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20528 ac_status=$?
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; } &&
20531 { ac_try='test -s conftest.$ac_objext'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20534 ac_status=$?
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; }; then
e3c976c4
ILT
20537 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
20538else
5464f5a1
NN
20539 echo "$as_me: failed program was:" >&5
20540sed 's/^/| /' conftest.$ac_ext >&5
20541
20542bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
20543
e3c976c4 20544fi
5464f5a1 20545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20546fi
20547
e3c976c4 20548 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
20549
20550cat >>confdefs.h <<\_ACEOF
e3c976c4 20551#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 20552_ACEOF
16e9c715
NC
20553
20554 fi
5464f5a1
NN
20555 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
20556echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
20557
20558 fi
20559fi
16e9c715 20560
b3baf5d0 20561
6be7c12c 20562if test -n "$TRAD_HEADER"; then
5464f5a1
NN
20563
20564cat >>confdefs.h <<_ACEOF
252b5132 20565#define TRAD_HEADER $TRAD_HEADER
5464f5a1 20566_ACEOF
252b5132 20567
3f9b03b5 20568fi
252b5132
RH
20569
20570# Horrible hacks to build DLLs on Windows.
20571WIN32LDFLAGS=
20572WIN32LIBADD=
20573case "${host}" in
20574*-*-cygwin*)
20575 if test "$enable_shared" = "yes"; then
20576 WIN32LDFLAGS="-no-undefined"
20577 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
20578 fi
20579 ;;
78be1d6e 20580*-*-linux*)
39691762
L
20581 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
20582 # libiberty.a.
c5cb8442
TS
20583 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
20584 if test -n "$x"; then
20585 WIN32LIBADD="-L../libiberty/pic -liberty"
20586 fi
39691762 20587 ;;
252b5132
RH
20588esac
20589
6be7c12c
AO
20590
20591
252b5132
RH
20592# target stuff:
20593
20594# Canonicalize the secondary target names.
20595if test -n "$enable_targets" ; then
20596 for targ in `echo $enable_targets | sed 's/,/ /g'`
20597 do
6d83c84b 20598 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
20599 if test -n "$result" ; then
20600 canon_targets="$canon_targets $result"
20601 else
20602 # Allow targets that config.sub doesn't recognize, like "all".
20603 canon_targets="$canon_targets $targ"
20604 fi
20605 done
20606fi
20607
20608all_targets=false
20609defvec=
20610selvecs=
08f74004 20611assocvecs=
252b5132
RH
20612selarchs=
20613TDEFINES=
20614for targ in $target $canon_targets
20615do
20616 if test "x$targ" = "xall"; then
20617 all_targets=true
08f74004 20618 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
20619 else
20620 . $srcdir/config.bfd
20621 if test "x$targ" = "x$target"; then
20622 defvec=$targ_defvec
20623 fi
20624 selvecs="$selvecs $targ_defvec $targ_selvecs"
20625 selarchs="$selarchs $targ_archs"
20626 TDEFINES="$TDEFINES $targ_cflags"
20627 fi
20628done
20629
6be7c12c 20630
252b5132
RH
20631# This processing still needs to be done if we're to decide properly whether
20632# 64-bit support needs to be compiled in. Currently, it will be included if
20633# the default or any other explicitly requested target requires it; it
20634# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 20635# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
20636# used.
20637
20638# uniq the default and selected vectors in all the configured targets.
20639f=""
20640for i in $selvecs ; do
20641 case " $f " in
20642 *" $i "*) ;;
20643 *) f="$f $i" ;;
20644 esac
20645done
20646selvecs="$f"
20647
6be7c12c 20648
08f74004
AM
20649# uniq the associated vectors in all the configured targets.
20650f=""
20651for i in $assocvecs ; do
20652 case " $f " in
20653 *" $i "*) ;;
20654 *) f="$f $i" ;;
20655 esac
20656done
20657assocvecs="$f"
20658
20659
252b5132
RH
20660# uniq the architectures in all the configured targets.
20661f=""
20662for i in $selarchs ; do
20663 case " $f " in
20664 *" $i "*) ;;
20665 *) f="$f $i" ;;
20666 esac
20667done
20668selarchs="$f"
20669
20670# Target backend .o files.
20671tb=
20672
104d59d1 20673elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
20674
20675for vec in $selvecs
20676do
69263e90 20677 target_size=32
252b5132
RH
20678 case "$vec" in
20679 # This list is alphabetized to make it easy to compare
dc810e39
AM
20680 # with the two vector lists in targets.c. For the same reason,
20681 # use one entry per line, even though this leads to long lines.
252b5132 20682 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 20683 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
20684 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
20685 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20686 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 20687 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
20688 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20689 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20690 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20691 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
20692 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20693 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20694 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20695 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
20696 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20697 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20698 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
20699 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20700 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20701 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20702 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
20703 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
20704 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 20705 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
e81819a5
NC
20706 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
20707 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 20708 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
e81819a5
NC
20709 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20710 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 20711 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
e81819a5
NC
20712 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20713 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 20714 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 20715 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 20716 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 20717 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 20718 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 20719 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 20720 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 20721 bfd_elf32_bigarm_symbian_vec)
00a97672 20722 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 20723 bfd_elf32_bigarm_vxworks_vec)
00a97672 20724 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
20725 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20726 bfd_elf32_bigmips_vxworks_vec)
20727 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
3d3d428f 20728 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
0949843d 20729 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 20730 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 20731 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
20732 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20733 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 20734 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 20735 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 20736 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 20737 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 20738 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 20739 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 20740 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 20741 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 20742 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
0b3e17e9
NC
20743 bfd_elf32_i386_dragonfly_vec)
20744 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
eac338cf
PB
20745 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20746 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20747 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 20748 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 20749 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 20750 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 20751 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 20752 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 20753 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 20754 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
84e94c90
NC
20755 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
20756 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
252b5132 20757 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 20758 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 20759 bfd_elf32_littlearm_symbian_vec)
00a97672 20760 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 20761 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
20762 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20763 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
20764 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20765 bfd_elf32_littlemips_vxworks_vec)
20766 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 20767 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 20768 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
20769 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20770 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20771 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
20772 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20773 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
20774 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
20775 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
20776 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20777 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
20778 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20779 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
20780 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
20781 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 20782 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 20783 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
20784 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20785 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20786 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20787 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 20788 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 20789 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
20790 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20791 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
20792 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20793 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20794 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 20795 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
20796 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20797 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
20798 # FIXME: We include cofflink.lo not because it's needed for
20799 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
20800 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
20801 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20802 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20803 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20804 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20805 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20806 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20807 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20808 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20809 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20810 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20811 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20812 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20813 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 20814 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 20815 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
20816 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20817 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 20818 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
20819 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20820 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 20821 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 20822 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 20823 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 20824 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 20825 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
20826 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20827 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 20828 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
20829 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20830 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 20831 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
20832 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20833 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 20834 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 20835 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
20836 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20837 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 20838 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 20839 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
20840 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20841 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
20842 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
20843 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20844 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
20845 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20846 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20847 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20848 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 20849 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 20850 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
20851 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 ;;
20852 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 20853 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 20854 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 20855 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
20856 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20857 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20858 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20859 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 20860 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 20861 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 20862 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 20863 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
20864 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20865 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
20866 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
20867 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
20868 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
20869 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
20870 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
20871 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
20872 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
20873 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
20874 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
20875 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 20876 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
20877 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
20878 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
20879 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
20880 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
20881 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
20882 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 20883 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
20884 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
20885 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
20886 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
20887 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
20888 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20889 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
20890 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
20891 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20892 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20893 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
20894 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
20895 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
20896 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
20897 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
20898 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 20899 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
20900 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
20901 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 20902 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 20903 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 20904 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
20905 mach_o_be_vec) tb="$tb mach-o.lo" ;;
20906 mach_o_le_vec) tb="$tb mach-o.lo" ;;
20907 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
20908 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20909 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20910 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20911 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
20912 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
20913 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 20914 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 20915 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 20916 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 20917 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 20918 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 20919 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 20920 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 20921 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
20922 pef_vec) tb="$tb pef.lo" ;;
20923 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 20924 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 20925 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 20926 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 20927 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 20928 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 20929 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 20930 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 20931 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 20932 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 20933 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
20934 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20935 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 20936 som_vec) tb="$tb som.lo" ;;
dc810e39 20937 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
20938 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
20939 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
20940 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
20941 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
20942 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 20943 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 20944 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
20945 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
20946 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
20947 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
20948 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
20949 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
20950 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
20951 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
20952 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 20953 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20954 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 20955 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20956 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 20957 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20958 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 20959 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 20960 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 20961 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 20962 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 20963 versados_vec) tb="$tb versados.lo" ;;
dc810e39 20964 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
20965 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
20966 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
20967 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 20968 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 20969 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 20970
341ca622
AM
20971 # These appear out of order in targets.c
20972 srec_vec) tb="$tb srec.lo" ;;
20973 symbolsrec_vec) tb="$tb srec.lo" ;;
20974 tekhex_vec) tb="$tb tekhex.lo" ;;
20975 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
20976 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
20977
252b5132 20978 "") ;;
5464f5a1
NN
20979 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
20980echo "$as_me: error: *** unknown target vector $vec" >&2;}
20981 { (exit 1); exit 1; }; } ;;
252b5132 20982 esac
69263e90
AM
20983
20984 if test ${target_size} = 64; then
20985 target64=true
20986 fi
20987 if test x"${vec}" = x"${defvec}"; then
20988 bfd_default_target_size=${target_size}
20989 fi
252b5132
RH
20990done
20991
20992# Target architecture .o files.
20993# A couple of CPUs use shorter file names to avoid problems on DOS
20994# filesystems.
d031aafb 20995ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
20996
20997# Weed out duplicate .o files.
20998f=""
20999for i in $tb ; do
21000 case " $f " in
21001 *" $i "*) ;;
21002 *) f="$f $i" ;;
21003 esac
21004done
21005tb="$f"
21006
21007f=""
21008for i in $ta ; do
21009 case " $f " in
21010 *" $i "*) ;;
21011 *) f="$f $i" ;;
21012 esac
21013done
21014ta="$f"
21015
21016bfd_backends="$tb"
21017bfd_machines="$ta"
21018
21019if test x${all_targets} = xtrue ; then
21020 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
21021 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
21022 selvecs=
21023 havevecs=
21024 selarchs=
08f74004
AM
21025 test -n "$assocvecs" &&
21026 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
21027else # all_targets is true
21028 # Only set these if they will be nonempty, for the clever echo.
21029 havevecs=
08f74004 21030 assocvecs=
252b5132
RH
21031 test -n "$selvecs" &&
21032 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
21033 test -n "$selvecs" &&
21034 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21035 test -n "$selarchs" &&
21036 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21037fi # all_targets is true
21038
21039case ${host64}-${target64}-${want64} in
21040 *true*)
21041 wordsize=64
21e40a48 21042 bfd64_libs='$(BFD64_LIBS)'
252b5132 21043 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 21044 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
21045 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
21046echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
21047 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
21048echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 21049 fi
966abd70
HPN
21050 if test -n "$GCC" ; then
21051 bad_64bit_gcc=no;
5464f5a1
NN
21052 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
21053echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 21054 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
21055 cat >conftest.$ac_ext <<_ACEOF
21056/* confdefs.h. */
21057_ACEOF
21058cat confdefs.h >>conftest.$ac_ext
21059cat >>conftest.$ac_ext <<_ACEOF
21060/* end confdefs.h. */
966abd70 21061:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 21062_ACEOF
966abd70 21063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 21064 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 21065 bad_64bit_gcc=yes;
5464f5a1
NN
21066 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
21067echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 21068else
5464f5a1
NN
21069 echo "$as_me:$LINENO: result: no" >&5
21070echo "${ECHO_T}no" >&6
966abd70
HPN
21071fi
21072rm -f conftest*
21073
21074 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
21075 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
21076echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
21077 { (exit 1); exit 1; }; }
966abd70
HPN
21078 fi
21079 fi
252b5132
RH
21080 ;;
21081 false-false-false)
21082 wordsize=32
21083 all_backends='$(BFD32_BACKENDS)'
21084 ;;
21085esac
21086
6be7c12c
AO
21087
21088
21089
21090
21091
69263e90 21092
2858ef35 21093
1012372a
AC
21094# Determine the host dependant file_ptr a.k.a. off_t type. In order
21095# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
21096# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
21097# Hopefully a reasonable assumption since fseeko et.al. should be
21098# upward compatible.
5464f5a1
NN
21099
21100
21101
21102
2e6f4fae
DJ
21103
21104for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 21105do
5464f5a1
NN
21106as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21107echo "$as_me:$LINENO: checking for $ac_func" >&5
21108echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21109if eval "test \"\${$as_ac_var+set}\" = set"; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21111else
2ba49b59
KC
21112 cat >conftest.$ac_ext <<_ACEOF
21113/* confdefs.h. */
21114_ACEOF
21115cat confdefs.h >>conftest.$ac_ext
21116cat >>conftest.$ac_ext <<_ACEOF
21117/* end confdefs.h. */
21118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21120#define $ac_func innocuous_$ac_func
21121
21122/* System header to define __stub macros and hopefully few prototypes,
21123 which can conflict with char $ac_func (); below.
21124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21125 <limits.h> exists even on freestanding compilers. */
21126
21127#ifdef __STDC__
21128# include <limits.h>
21129#else
21130# include <assert.h>
21131#endif
21132
21133#undef $ac_func
21134
21135/* Override any gcc2 internal prototype to avoid an error. */
21136#ifdef __cplusplus
21137extern "C"
21138{
21139#endif
21140/* We use char because int might match the return type of a gcc2
21141 builtin and then its argument prototype would still apply. */
21142char $ac_func ();
21143/* The GNU C library defines this for functions which it implements
21144 to always fail with ENOSYS. Some functions are actually named
21145 something starting with __ and the normal name is an alias. */
21146#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21147choke me
21148#else
21149char (*f) () = $ac_func;
21150#endif
21151#ifdef __cplusplus
21152}
21153#endif
21154
21155int
21156main ()
21157{
21158return f != $ac_func;
21159 ;
21160 return 0;
21161}
21162_ACEOF
21163rm -f conftest.$ac_objext conftest$ac_exeext
21164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21165 (eval $ac_link) 2>conftest.er1
21166 ac_status=$?
21167 grep -v '^ *+' conftest.er1 >conftest.err
21168 rm -f conftest.er1
21169 cat conftest.err >&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } &&
7357c5b6
AM
21172 { ac_try='test -z "$ac_c_werror_flag"
21173 || test ! -s conftest.err'
2ba49b59
KC
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; } &&
21179 { ac_try='test -s conftest$ac_exeext'
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; }; then
21185 eval "$as_ac_var=yes"
21186else
21187 echo "$as_me: failed program was:" >&5
21188sed 's/^/| /' conftest.$ac_ext >&5
21189
21190eval "$as_ac_var=no"
21191fi
21192rm -f conftest.err conftest.$ac_objext \
21193 conftest$ac_exeext conftest.$ac_ext
21194fi
21195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21196echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21197if test `eval echo '${'$as_ac_var'}'` = yes; then
21198 cat >>confdefs.h <<_ACEOF
21199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21200_ACEOF
21201
21202fi
21203done
21204
21205if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
21206 echo "$as_me:$LINENO: checking for off_t" >&5
21207echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21208if test "${ac_cv_type_off_t+set}" = set; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21210else
21211 cat >conftest.$ac_ext <<_ACEOF
21212/* confdefs.h. */
21213_ACEOF
21214cat confdefs.h >>conftest.$ac_ext
21215cat >>conftest.$ac_ext <<_ACEOF
21216/* end confdefs.h. */
21217$ac_includes_default
21218int
21219main ()
21220{
21221if ((off_t *) 0)
21222 return 0;
21223if (sizeof (off_t))
21224 return 0;
21225 ;
21226 return 0;
21227}
21228_ACEOF
21229rm -f conftest.$ac_objext
21230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21231 (eval $ac_compile) 2>conftest.er1
21232 ac_status=$?
21233 grep -v '^ *+' conftest.er1 >conftest.err
21234 rm -f conftest.er1
21235 cat conftest.err >&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
7357c5b6
AM
21238 { ac_try='test -z "$ac_c_werror_flag"
21239 || test ! -s conftest.err'
2ba49b59
KC
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; } &&
21245 { ac_try='test -s conftest.$ac_objext'
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 ac_cv_type_off_t=yes
21252else
21253 echo "$as_me: failed program was:" >&5
21254sed 's/^/| /' conftest.$ac_ext >&5
21255
21256ac_cv_type_off_t=no
21257fi
21258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21259fi
21260echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21261echo "${ECHO_T}$ac_cv_type_off_t" >&6
21262
21263echo "$as_me:$LINENO: checking size of off_t" >&5
21264echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21265if test "${ac_cv_sizeof_off_t+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21267else
21268 if test "$ac_cv_type_off_t" = yes; then
21269 # The cast to unsigned long works around a bug in the HP C Compiler
21270 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21271 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21272 # This bug is HP SR number 8606223364.
21273 if test "$cross_compiling" = yes; then
21274 # Depending upon the size, compute the lo and hi bounds.
21275cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
21276/* confdefs.h. */
21277_ACEOF
21278cat confdefs.h >>conftest.$ac_ext
21279cat >>conftest.$ac_ext <<_ACEOF
21280/* end confdefs.h. */
2ba49b59
KC
21281$ac_includes_default
21282int
21283main ()
21284{
21285static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21286test_array [0] = 0
5464f5a1 21287
2ba49b59
KC
21288 ;
21289 return 0;
21290}
21291_ACEOF
21292rm -f conftest.$ac_objext
21293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21294 (eval $ac_compile) 2>conftest.er1
21295 ac_status=$?
21296 grep -v '^ *+' conftest.er1 >conftest.err
21297 rm -f conftest.er1
21298 cat conftest.err >&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } &&
7357c5b6
AM
21301 { ac_try='test -z "$ac_c_werror_flag"
21302 || test ! -s conftest.err'
2ba49b59
KC
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; } &&
21308 { ac_try='test -s conftest.$ac_objext'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; }; then
21314 ac_lo=0 ac_mid=0
21315 while :; do
21316 cat >conftest.$ac_ext <<_ACEOF
21317/* confdefs.h. */
21318_ACEOF
21319cat confdefs.h >>conftest.$ac_ext
21320cat >>conftest.$ac_ext <<_ACEOF
21321/* end confdefs.h. */
21322$ac_includes_default
21323int
21324main ()
21325{
21326static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21327test_array [0] = 0
5464f5a1 21328
2ba49b59
KC
21329 ;
21330 return 0;
21331}
21332_ACEOF
21333rm -f conftest.$ac_objext
21334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21335 (eval $ac_compile) 2>conftest.er1
21336 ac_status=$?
21337 grep -v '^ *+' conftest.er1 >conftest.err
21338 rm -f conftest.er1
21339 cat conftest.err >&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } &&
7357c5b6
AM
21342 { ac_try='test -z "$ac_c_werror_flag"
21343 || test ! -s conftest.err'
2ba49b59
KC
21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345 (eval $ac_try) 2>&5
21346 ac_status=$?
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); }; } &&
21349 { ac_try='test -s conftest.$ac_objext'
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21352 ac_status=$?
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; }; then
21355 ac_hi=$ac_mid; break
21356else
21357 echo "$as_me: failed program was:" >&5
21358sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21359
2ba49b59
KC
21360ac_lo=`expr $ac_mid + 1`
21361 if test $ac_lo -le $ac_mid; then
21362 ac_lo= ac_hi=
21363 break
21364 fi
21365 ac_mid=`expr 2 '*' $ac_mid + 1`
21366fi
21367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21368 done
21369else
21370 echo "$as_me: failed program was:" >&5
21371sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21372
2ba49b59
KC
21373cat >conftest.$ac_ext <<_ACEOF
21374/* confdefs.h. */
21375_ACEOF
21376cat confdefs.h >>conftest.$ac_ext
21377cat >>conftest.$ac_ext <<_ACEOF
21378/* end confdefs.h. */
21379$ac_includes_default
21380int
21381main ()
5464f5a1 21382{
2ba49b59
KC
21383static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21384test_array [0] = 0
1012372a 21385
2ba49b59
KC
21386 ;
21387 return 0;
21388}
21389_ACEOF
21390rm -f conftest.$ac_objext
21391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21392 (eval $ac_compile) 2>conftest.er1
21393 ac_status=$?
21394 grep -v '^ *+' conftest.er1 >conftest.err
21395 rm -f conftest.er1
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } &&
7357c5b6
AM
21399 { ac_try='test -z "$ac_c_werror_flag"
21400 || test ! -s conftest.err'
2ba49b59
KC
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; } &&
21406 { ac_try='test -s conftest.$ac_objext'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21409 ac_status=$?
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21412 ac_hi=-1 ac_mid=-1
21413 while :; do
21414 cat >conftest.$ac_ext <<_ACEOF
21415/* confdefs.h. */
21416_ACEOF
21417cat confdefs.h >>conftest.$ac_ext
21418cat >>conftest.$ac_ext <<_ACEOF
21419/* end confdefs.h. */
21420$ac_includes_default
5464f5a1
NN
21421int
21422main ()
21423{
2ba49b59
KC
21424static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21425test_array [0] = 0
21426
5464f5a1
NN
21427 ;
21428 return 0;
21429}
21430_ACEOF
2ba49b59
KC
21431rm -f conftest.$ac_objext
21432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21433 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
21434 ac_status=$?
21435 grep -v '^ *+' conftest.er1 >conftest.err
21436 rm -f conftest.er1
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } &&
7357c5b6
AM
21440 { ac_try='test -z "$ac_c_werror_flag"
21441 || test ! -s conftest.err'
5464f5a1
NN
21442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443 (eval $ac_try) 2>&5
21444 ac_status=$?
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; } &&
2ba49b59 21447 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
21448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449 (eval $ac_try) 2>&5
21450 ac_status=$?
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; }; then
2ba49b59 21453 ac_lo=$ac_mid; break
5464f5a1
NN
21454else
21455 echo "$as_me: failed program was:" >&5
21456sed 's/^/| /' conftest.$ac_ext >&5
21457
2ba49b59
KC
21458ac_hi=`expr '(' $ac_mid ')' - 1`
21459 if test $ac_mid -le $ac_hi; then
21460 ac_lo= ac_hi=
21461 break
21462 fi
21463 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 21464fi
2ba49b59
KC
21465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21466 done
21467else
21468 echo "$as_me: failed program was:" >&5
21469sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21470
2ba49b59 21471ac_lo= ac_hi=
1012372a 21472fi
2ba49b59
KC
21473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21474fi
21475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21476# Binary search between lo and hi bounds.
21477while test "x$ac_lo" != "x$ac_hi"; do
21478 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
21479 cat >conftest.$ac_ext <<_ACEOF
21480/* confdefs.h. */
21481_ACEOF
21482cat confdefs.h >>conftest.$ac_ext
21483cat >>conftest.$ac_ext <<_ACEOF
21484/* end confdefs.h. */
2ba49b59 21485$ac_includes_default
5464f5a1
NN
21486int
21487main ()
21488{
2ba49b59
KC
21489static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21490test_array [0] = 0
21491
5464f5a1
NN
21492 ;
21493 return 0;
21494}
21495_ACEOF
21496rm -f conftest.$ac_objext
21497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21498 (eval $ac_compile) 2>conftest.er1
21499 ac_status=$?
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } &&
7357c5b6
AM
21505 { ac_try='test -z "$ac_c_werror_flag"
21506 || test ! -s conftest.err'
5464f5a1
NN
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; } &&
21512 { ac_try='test -s conftest.$ac_objext'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; }; then
2ba49b59 21518 ac_hi=$ac_mid
1012372a 21519else
5464f5a1
NN
21520 echo "$as_me: failed program was:" >&5
21521sed 's/^/| /' conftest.$ac_ext >&5
21522
2ba49b59 21523ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 21524fi
5464f5a1 21525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 21526done
2ba49b59
KC
21527case $ac_lo in
21528?*) ac_cv_sizeof_off_t=$ac_lo;;
7357c5b6
AM
21529'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21530echo "$as_me: error: in \`$ac_pwd':" >&2;}
21531{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
2ba49b59
KC
21532See \`config.log' for more details." >&5
21533echo "$as_me: error: cannot compute sizeof (off_t), 77
21534See \`config.log' for more details." >&2;}
7357c5b6 21535 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
21536esac
21537else
21538 if test "$cross_compiling" = yes; then
7357c5b6
AM
21539 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21540echo "$as_me: error: in \`$ac_pwd':" >&2;}
21541{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21542See \`config.log' for more details." >&5
21543echo "$as_me: error: cannot run test program while cross compiling
21544See \`config.log' for more details." >&2;}
21545 { (exit 1); exit 1; }; }; }
2ba49b59
KC
21546else
21547 cat >conftest.$ac_ext <<_ACEOF
21548/* confdefs.h. */
21549_ACEOF
21550cat confdefs.h >>conftest.$ac_ext
21551cat >>conftest.$ac_ext <<_ACEOF
21552/* end confdefs.h. */
21553$ac_includes_default
21554long longval () { return (long) (sizeof (off_t)); }
21555unsigned long ulongval () { return (long) (sizeof (off_t)); }
21556#include <stdio.h>
21557#include <stdlib.h>
21558int
21559main ()
21560{
1012372a 21561
2ba49b59
KC
21562 FILE *f = fopen ("conftest.val", "w");
21563 if (! f)
21564 exit (1);
21565 if (((long) (sizeof (off_t))) < 0)
21566 {
21567 long i = longval ();
21568 if (i != ((long) (sizeof (off_t))))
21569 exit (1);
21570 fprintf (f, "%ld\n", i);
21571 }
21572 else
21573 {
21574 unsigned long i = ulongval ();
21575 if (i != ((long) (sizeof (off_t))))
21576 exit (1);
21577 fprintf (f, "%lu\n", i);
21578 }
21579 exit (ferror (f) || fclose (f) != 0);
21580
21581 ;
21582 return 0;
21583}
21584_ACEOF
21585rm -f conftest$ac_exeext
21586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21587 (eval $ac_link) 2>&5
21588 ac_status=$?
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
21596 ac_cv_sizeof_off_t=`cat conftest.val`
21597else
21598 echo "$as_me: program exited with status $ac_status" >&5
21599echo "$as_me: failed program was:" >&5
21600sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21601
2ba49b59 21602( exit $ac_status )
7357c5b6
AM
21603{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21604echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
21605{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21606See \`config.log' for more details." >&5
21607echo "$as_me: error: cannot compute sizeof (off_t), 77
21608See \`config.log' for more details." >&2;}
7357c5b6 21609 { (exit 1); exit 1; }; }; }
1012372a 21610fi
2ba49b59
KC
21611rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21612fi
21613fi
21614rm -f conftest.val
21615else
21616 ac_cv_sizeof_off_t=0
21617fi
21618fi
5464f5a1
NN
21619echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21620echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 21621cat >>confdefs.h <<_ACEOF
1012372a 21622#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 21623_ACEOF
1012372a
AC
21624
21625
1012372a 21626fi
5464f5a1
NN
21627echo "$as_me:$LINENO: checking file_ptr type" >&5
21628echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
21629bfd_file_ptr="long"
21630bfd_ufile_ptr="unsigned long"
21631if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
21632 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
21633 bfd_file_ptr=BFD_HOST_64_BIT
21634 bfd_ufile_ptr=BFD_HOST_U_64_BIT
21635fi
5464f5a1
NN
21636echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
21637echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
21638
21639
21640
21641
252b5132
RH
21642tdefaults=""
21643test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
21644test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 21645test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
21646test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
21647test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
21648
6be7c12c 21649
5464f5a1
NN
21650
21651
21652for ac_header in stdlib.h unistd.h
252b5132 21653do
5464f5a1
NN
21654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21655if eval "test \"\${$as_ac_Header+set}\" = set"; then
21656 echo "$as_me:$LINENO: checking for $ac_header" >&5
21657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21658if eval "test \"\${$as_ac_Header+set}\" = set"; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21660fi
21661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21663else
21664 # Is the header compilable?
21665echo "$as_me:$LINENO: checking $ac_header usability" >&5
21666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21667cat >conftest.$ac_ext <<_ACEOF
21668/* confdefs.h. */
21669_ACEOF
21670cat confdefs.h >>conftest.$ac_ext
21671cat >>conftest.$ac_ext <<_ACEOF
21672/* end confdefs.h. */
21673$ac_includes_default
21674#include <$ac_header>
21675_ACEOF
21676rm -f conftest.$ac_objext
21677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21678 (eval $ac_compile) 2>conftest.er1
21679 ac_status=$?
21680 grep -v '^ *+' conftest.er1 >conftest.err
21681 rm -f conftest.er1
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } &&
7357c5b6
AM
21685 { ac_try='test -z "$ac_c_werror_flag"
21686 || test ! -s conftest.err'
5464f5a1
NN
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; } &&
21692 { ac_try='test -s conftest.$ac_objext'
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21695 ac_status=$?
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; }; then
21698 ac_header_compiler=yes
21699else
21700 echo "$as_me: failed program was:" >&5
21701sed 's/^/| /' conftest.$ac_ext >&5
21702
21703ac_header_compiler=no
21704fi
21705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21707echo "${ECHO_T}$ac_header_compiler" >&6
21708
21709# Is the header present?
21710echo "$as_me:$LINENO: checking $ac_header presence" >&5
21711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21712cat >conftest.$ac_ext <<_ACEOF
21713/* confdefs.h. */
21714_ACEOF
21715cat confdefs.h >>conftest.$ac_ext
21716cat >>conftest.$ac_ext <<_ACEOF
21717/* end confdefs.h. */
21718#include <$ac_header>
21719_ACEOF
21720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21722 ac_status=$?
21723 grep -v '^ *+' conftest.er1 >conftest.err
21724 rm -f conftest.er1
21725 cat conftest.err >&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); } >/dev/null; then
21728 if test -s conftest.err; then
21729 ac_cpp_err=$ac_c_preproc_warn_flag
21730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21731 else
21732 ac_cpp_err=
21733 fi
252b5132 21734else
5464f5a1 21735 ac_cpp_err=yes
252b5132 21736fi
5464f5a1
NN
21737if test -z "$ac_cpp_err"; then
21738 ac_header_preproc=yes
21739else
21740 echo "$as_me: failed program was:" >&5
21741sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 ac_header_preproc=no
252b5132 21744fi
5464f5a1
NN
21745rm -f conftest.err conftest.$ac_ext
21746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21747echo "${ECHO_T}$ac_header_preproc" >&6
21748
21749# So? What about this header?
21750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21751 yes:no: )
21752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21756 ac_header_preproc=yes
21757 ;;
21758 no:yes:* )
21759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21762echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21766echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21771 (
21772 cat <<\_ASBOX
21773## ------------------------------------------ ##
21774## Report this to the AC_PACKAGE_NAME lists. ##
21775## ------------------------------------------ ##
21776_ASBOX
21777 ) |
21778 sed "s/^/$as_me: WARNING: /" >&2
21779 ;;
21780esac
21781echo "$as_me:$LINENO: checking for $ac_header" >&5
21782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21783if eval "test \"\${$as_ac_Header+set}\" = set"; then
21784 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 21785else
5464f5a1
NN
21786 eval "$as_ac_Header=\$ac_header_preproc"
21787fi
21788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21790
21791fi
21792if test `eval echo '${'$as_ac_Header'}'` = yes; then
21793 cat >>confdefs.h <<_ACEOF
21794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21795_ACEOF
21796
252b5132 21797fi
5464f5a1 21798
252b5132
RH
21799done
21800
5464f5a1 21801
252b5132
RH
21802for ac_func in getpagesize
21803do
5464f5a1
NN
21804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21805echo "$as_me:$LINENO: checking for $ac_func" >&5
21806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21807if eval "test \"\${$as_ac_var+set}\" = set"; then
21808 echo $ECHO_N "(cached) $ECHO_C" >&6
21809else
21810 cat >conftest.$ac_ext <<_ACEOF
21811/* confdefs.h. */
21812_ACEOF
21813cat confdefs.h >>conftest.$ac_ext
21814cat >>conftest.$ac_ext <<_ACEOF
21815/* end confdefs.h. */
21816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21818#define $ac_func innocuous_$ac_func
21819
252b5132 21820/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
21821 which can conflict with char $ac_func (); below.
21822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21823 <limits.h> exists even on freestanding compilers. */
21824
21825#ifdef __STDC__
21826# include <limits.h>
21827#else
21828# include <assert.h>
21829#endif
6be7c12c 21830
5464f5a1 21831#undef $ac_func
252b5132 21832
5464f5a1
NN
21833/* Override any gcc2 internal prototype to avoid an error. */
21834#ifdef __cplusplus
21835extern "C"
21836{
21837#endif
21838/* We use char because int might match the return type of a gcc2
21839 builtin and then its argument prototype would still apply. */
21840char $ac_func ();
252b5132
RH
21841/* The GNU C library defines this for functions which it implements
21842 to always fail with ENOSYS. Some functions are actually named
21843 something starting with __ and the normal name is an alias. */
21844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21845choke me
21846#else
5464f5a1
NN
21847char (*f) () = $ac_func;
21848#endif
21849#ifdef __cplusplus
21850}
252b5132
RH
21851#endif
21852
5464f5a1
NN
21853int
21854main ()
21855{
21856return f != $ac_func;
21857 ;
21858 return 0;
21859}
21860_ACEOF
21861rm -f conftest.$ac_objext conftest$ac_exeext
21862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21863 (eval $ac_link) 2>conftest.er1
21864 ac_status=$?
21865 grep -v '^ *+' conftest.er1 >conftest.err
21866 rm -f conftest.er1
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } &&
7357c5b6
AM
21870 { ac_try='test -z "$ac_c_werror_flag"
21871 || test ! -s conftest.err'
5464f5a1
NN
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21874 ac_status=$?
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; } &&
21877 { ac_try='test -s conftest$ac_exeext'
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21880 ac_status=$?
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; }; then
21883 eval "$as_ac_var=yes"
21884else
21885 echo "$as_me: failed program was:" >&5
21886sed 's/^/| /' conftest.$ac_ext >&5
21887
21888eval "$as_ac_var=no"
21889fi
21890rm -f conftest.err conftest.$ac_objext \
21891 conftest$ac_exeext conftest.$ac_ext
21892fi
21893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21895if test `eval echo '${'$as_ac_var'}'` = yes; then
21896 cat >>confdefs.h <<_ACEOF
21897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21898_ACEOF
252b5132 21899
252b5132
RH
21900fi
21901done
21902
5464f5a1
NN
21903echo "$as_me:$LINENO: checking for working mmap" >&5
21904echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21905if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21906 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
21907else
21908 if test "$cross_compiling" = yes; then
21909 ac_cv_func_mmap_fixed_mapped=no
21910else
5464f5a1
NN
21911 cat >conftest.$ac_ext <<_ACEOF
21912/* confdefs.h. */
21913_ACEOF
21914cat confdefs.h >>conftest.$ac_ext
21915cat >>conftest.$ac_ext <<_ACEOF
21916/* end confdefs.h. */
21917$ac_includes_default
21918/* malloc might have been renamed as rpl_malloc. */
21919#undef malloc
6be7c12c 21920
252b5132
RH
21921/* Thanks to Mike Haertel and Jim Avera for this test.
21922 Here is a matrix of mmap possibilities:
21923 mmap private not fixed
21924 mmap private fixed at somewhere currently unmapped
21925 mmap private fixed at somewhere already mapped
21926 mmap shared not fixed
21927 mmap shared fixed at somewhere currently unmapped
21928 mmap shared fixed at somewhere already mapped
21929 For private mappings, we should verify that changes cannot be read()
21930 back from the file, nor mmap's back from the file at a different
21931 address. (There have been systems where private was not correctly
21932 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 21933 VM page cache was not coherent with the file system buffer cache
252b5132
RH
21934 like early versions of FreeBSD and possibly contemporary NetBSD.)
21935 For shared mappings, we should conversely verify that changes get
5464f5a1 21936 propagated back to all the places they're supposed to be.
252b5132
RH
21937
21938 Grep wants private fixed already mapped.
21939 The main things grep needs to know about mmap are:
21940 * does it exist and is it safe to write into the mmap'd area
21941 * how to use it (BSD variants) */
5464f5a1 21942
252b5132
RH
21943#include <fcntl.h>
21944#include <sys/mman.h>
21945
5464f5a1
NN
21946#if !STDC_HEADERS && !HAVE_STDLIB_H
21947char *malloc ();
21948#endif
6be7c12c 21949
5464f5a1
NN
21950/* This mess was copied from the GNU getpagesize.h. */
21951#if !HAVE_GETPAGESIZE
252b5132 21952/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 21953# if !HAVE_SYS_PARAM_H
252b5132
RH
21954# define HAVE_SYS_PARAM_H 1
21955# endif
21956
21957# ifdef _SC_PAGESIZE
21958# define getpagesize() sysconf(_SC_PAGESIZE)
21959# else /* no _SC_PAGESIZE */
5464f5a1 21960# if HAVE_SYS_PARAM_H
252b5132
RH
21961# include <sys/param.h>
21962# ifdef EXEC_PAGESIZE
21963# define getpagesize() EXEC_PAGESIZE
21964# else /* no EXEC_PAGESIZE */
21965# ifdef NBPG
21966# define getpagesize() NBPG * CLSIZE
21967# ifndef CLSIZE
21968# define CLSIZE 1
21969# endif /* no CLSIZE */
21970# else /* no NBPG */
21971# ifdef NBPC
21972# define getpagesize() NBPC
21973# else /* no NBPC */
21974# ifdef PAGESIZE
21975# define getpagesize() PAGESIZE
21976# endif /* PAGESIZE */
21977# endif /* no NBPC */
21978# endif /* no NBPG */
21979# endif /* no EXEC_PAGESIZE */
21980# else /* no HAVE_SYS_PARAM_H */
21981# define getpagesize() 8192 /* punt totally */
21982# endif /* no HAVE_SYS_PARAM_H */
21983# endif /* no _SC_PAGESIZE */
21984
5464f5a1
NN
21985#endif /* no HAVE_GETPAGESIZE */
21986
21987int
21988main ()
21989{
21990 char *data, *data2, *data3;
21991 int i, pagesize;
21992 int fd;
21993
21994 pagesize = getpagesize ();
21995
21996 /* First, make a file with some known garbage in it. */
21997 data = (char *) malloc (pagesize);
21998 if (!data)
21999 exit (1);
22000 for (i = 0; i < pagesize; ++i)
22001 *(data + i) = rand ();
22002 umask (0);
22003 fd = creat ("conftest.mmap", 0600);
22004 if (fd < 0)
22005 exit (1);
22006 if (write (fd, data, pagesize) != pagesize)
22007 exit (1);
22008 close (fd);
22009
22010 /* Next, try to mmap the file at a fixed address which already has
22011 something else allocated at it. If we can, also make sure that
22012 we see the same garbage. */
22013 fd = open ("conftest.mmap", O_RDWR);
22014 if (fd < 0)
22015 exit (1);
22016 data2 = (char *) malloc (2 * pagesize);
22017 if (!data2)
22018 exit (1);
22019 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22020 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22021 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22022 exit (1);
22023 for (i = 0; i < pagesize; ++i)
22024 if (*(data + i) != *(data2 + i))
22025 exit (1);
22026
22027 /* Finally, make sure that changes to the mapped area do not
22028 percolate back to the file as seen by read(). (This is a bug on
22029 some variants of i386 svr4.0.) */
22030 for (i = 0; i < pagesize; ++i)
22031 *(data2 + i) = *(data2 + i) + 1;
22032 data3 = (char *) malloc (pagesize);
22033 if (!data3)
22034 exit (1);
22035 if (read (fd, data3, pagesize) != pagesize)
22036 exit (1);
22037 for (i = 0; i < pagesize; ++i)
22038 if (*(data + i) != *(data3 + i))
22039 exit (1);
22040 close (fd);
22041 exit (0);
22042}
22043_ACEOF
22044rm -f conftest$ac_exeext
22045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22046 (eval $ac_link) 2>&5
22047 ac_status=$?
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051 (eval $ac_try) 2>&5
22052 ac_status=$?
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22055 ac_cv_func_mmap_fixed_mapped=yes
22056else
22057 echo "$as_me: program exited with status $ac_status" >&5
22058echo "$as_me: failed program was:" >&5
22059sed 's/^/| /' conftest.$ac_ext >&5
22060
22061( exit $ac_status )
22062ac_cv_func_mmap_fixed_mapped=no
22063fi
22064rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22065fi
22066fi
22067echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22068echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22069if test $ac_cv_func_mmap_fixed_mapped = yes; then
22070
22071cat >>confdefs.h <<\_ACEOF
22072#define HAVE_MMAP 1
22073_ACEOF
22074
22075fi
22076rm -f conftest.mmap
22077
22078
22079
22080for ac_func in madvise mprotect
22081do
22082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22083echo "$as_me:$LINENO: checking for $ac_func" >&5
22084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22085if eval "test \"\${$as_ac_var+set}\" = set"; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22087else
22088 cat >conftest.$ac_ext <<_ACEOF
22089/* confdefs.h. */
22090_ACEOF
22091cat confdefs.h >>conftest.$ac_ext
22092cat >>conftest.$ac_ext <<_ACEOF
22093/* end confdefs.h. */
22094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22096#define $ac_func innocuous_$ac_func
22097
22098/* System header to define __stub macros and hopefully few prototypes,
22099 which can conflict with char $ac_func (); below.
22100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22101 <limits.h> exists even on freestanding compilers. */
22102
22103#ifdef __STDC__
22104# include <limits.h>
22105#else
22106# include <assert.h>
22107#endif
22108
22109#undef $ac_func
22110
22111/* Override any gcc2 internal prototype to avoid an error. */
22112#ifdef __cplusplus
22113extern "C"
22114{
22115#endif
22116/* We use char because int might match the return type of a gcc2
22117 builtin and then its argument prototype would still apply. */
22118char $ac_func ();
22119/* The GNU C library defines this for functions which it implements
22120 to always fail with ENOSYS. Some functions are actually named
22121 something starting with __ and the normal name is an alias. */
22122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22123choke me
22124#else
22125char (*f) () = $ac_func;
22126#endif
22127#ifdef __cplusplus
22128}
22129#endif
22130
22131int
22132main ()
22133{
22134return f != $ac_func;
22135 ;
22136 return 0;
22137}
22138_ACEOF
22139rm -f conftest.$ac_objext conftest$ac_exeext
22140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22141 (eval $ac_link) 2>conftest.er1
22142 ac_status=$?
22143 grep -v '^ *+' conftest.er1 >conftest.err
22144 rm -f conftest.er1
22145 cat conftest.err >&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } &&
7357c5b6
AM
22148 { ac_try='test -z "$ac_c_werror_flag"
22149 || test ! -s conftest.err'
5464f5a1
NN
22150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22151 (eval $ac_try) 2>&5
22152 ac_status=$?
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); }; } &&
22155 { ac_try='test -s conftest$ac_exeext'
22156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157 (eval $ac_try) 2>&5
22158 ac_status=$?
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); }; }; then
22161 eval "$as_ac_var=yes"
22162else
22163 echo "$as_me: failed program was:" >&5
22164sed 's/^/| /' conftest.$ac_ext >&5
22165
22166eval "$as_ac_var=no"
22167fi
22168rm -f conftest.err conftest.$ac_objext \
22169 conftest$ac_exeext conftest.$ac_ext
22170fi
22171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22172echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22173if test `eval echo '${'$as_ac_var'}'` = yes; then
22174 cat >>confdefs.h <<_ACEOF
22175#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22176_ACEOF
22177
22178fi
22179done
22180
22181case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
22182 true+yes )
22183cat >>confdefs.h <<\_ACEOF
22184#define USE_MMAP 1
22185_ACEOF
22186 ;;
22187esac
22188
22189rm -f doc/config.status
22190 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
22191
20e95c23 22192
5464f5a1
NN
22193 ac_config_commands="$ac_config_commands default"
22194
108a6f8e
CD
22195
22196
22197
22198
22199
5464f5a1
NN
22200cat >confcache <<\_ACEOF
22201# This file is a shell script that caches the results of configure
22202# tests run on this system so they can be shared between configure
22203# scripts and configure runs, see configure's option --config-cache.
22204# It is not useful on other systems. If it contains results you don't
22205# want to keep, you may remove or edit it.
22206#
22207# config.status only pays attention to the cache file if you give it
22208# the --recheck option to rerun configure.
22209#
22210# `ac_cv_env_foo' variables (set or unset) will be overridden when
22211# loading this file, other *unset* `ac_cv_foo' will be assigned the
22212# following values.
22213
22214_ACEOF
22215
22216# The following way of writing the cache mishandles newlines in values,
22217# but we know of no workaround that is simple, portable, and efficient.
22218# So, don't put newlines in cache variables' values.
22219# Ultrix sh set writes to stderr and can't be redirected directly,
22220# and sets the high bit in the cache file unless we assign to the vars.
22221{
22222 (set) 2>&1 |
22223 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22224 *ac_space=\ *)
22225 # `set' does not quote correctly, so add quotes (double-quote
22226 # substitution turns \\\\ into \\, and sed turns \\ into \).
22227 sed -n \
22228 "s/'/'\\\\''/g;
22229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22230 ;;
22231 *)
22232 # `set' quotes correctly as required by POSIX, so do not add quotes.
22233 sed -n \
22234 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22235 ;;
22236 esac;
22237} |
22238 sed '
22239 t clear
22240 : clear
22241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22242 t end
22243 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22244 : end' >>confcache
22245if diff $cache_file confcache >/dev/null 2>&1; then :; else
22246 if test -w $cache_file; then
22247 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22248 cat confcache >$cache_file
22249 else
22250 echo "not updating unwritable cache $cache_file"
22251 fi
22252fi
22253rm -f confcache
22254
22255test "x$prefix" = xNONE && prefix=$ac_default_prefix
22256# Let make expand exec_prefix.
22257test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22258
22259# VPATH may cause trouble with some makes, so we remove $(srcdir),
22260# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22261# trailing colons and then remove the whole line if VPATH becomes empty
22262# (actually we leave an empty line to preserve line numbers).
22263if test "x$srcdir" = x.; then
22264 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22265s/:*\$(srcdir):*/:/;
22266s/:*\${srcdir}:*/:/;
22267s/:*@srcdir@:*/:/;
22268s/^\([^=]*=[ ]*\):*/\1/;
22269s/:*$//;
22270s/^[^=]*=[ ]*$//;
22271}'
22272fi
22273
22274DEFS=-DHAVE_CONFIG_H
22275
22276ac_libobjs=
22277ac_ltlibobjs=
22278for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22279 # 1. Remove the extension, and $U if already installed.
22280 ac_i=`echo "$ac_i" |
22281 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22282 # 2. Add them.
22283 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22284 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22285done
22286LIBOBJS=$ac_libobjs
22287
22288LTLIBOBJS=$ac_ltlibobjs
22289
22290
f5385ebf
AM
22291if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22292 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22293Usually this means the macro was only invoked conditionally." >&5
22294echo "$as_me: error: conditional \"AMDEP\" was never defined.
22295Usually this means the macro was only invoked conditionally." >&2;}
22296 { (exit 1); exit 1; }; }
22297fi
22298if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22299 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22300Usually this means the macro was only invoked conditionally." >&5
22301echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22302Usually this means the macro was only invoked conditionally." >&2;}
22303 { (exit 1); exit 1; }; }
22304fi
22305if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22306 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22307Usually this means the macro was only invoked conditionally." >&5
22308echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22309Usually this means the macro was only invoked conditionally." >&2;}
22310 { (exit 1); exit 1; }; }
22311fi
d5fbea21
DJ
22312if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
22313 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
22314Usually this means the macro was only invoked conditionally." >&5
22315echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
22316Usually this means the macro was only invoked conditionally." >&2;}
22317 { (exit 1); exit 1; }; }
22318fi
f5385ebf
AM
22319if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
22320 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
22321Usually this means the macro was only invoked conditionally." >&5
22322echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
22323Usually this means the macro was only invoked conditionally." >&2;}
22324 { (exit 1); exit 1; }; }
22325fi
5464f5a1
NN
22326
22327: ${CONFIG_STATUS=./config.status}
22328ac_clean_files_save=$ac_clean_files
22329ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22330{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22331echo "$as_me: creating $CONFIG_STATUS" >&6;}
22332cat >$CONFIG_STATUS <<_ACEOF
22333#! $SHELL
22334# Generated by $as_me.
22335# Run this file to recreate the current configuration.
22336# Compiler output produced by configure, useful for debugging
22337# configure, is in config.log if it exists.
22338
22339debug=false
22340ac_cs_recheck=false
22341ac_cs_silent=false
22342SHELL=\${CONFIG_SHELL-$SHELL}
22343_ACEOF
22344
22345cat >>$CONFIG_STATUS <<\_ACEOF
22346## --------------------- ##
22347## M4sh Initialization. ##
22348## --------------------- ##
22349
22350# Be Bourne compatible
22351if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22352 emulate sh
22353 NULLCMD=:
22354 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22355 # is contrary to our usage. Disable this feature.
22356 alias -g '${1+"$@"}'='"$@"'
22357elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22358 set -o posix
22359fi
22360DUALCASE=1; export DUALCASE # for MKS sh
22361
22362# Support unset when possible.
22363if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22364 as_unset=unset
22365else
22366 as_unset=false
22367fi
22368
22369
22370# Work around bugs in pre-3.0 UWIN ksh.
22371$as_unset ENV MAIL MAILPATH
22372PS1='$ '
22373PS2='> '
22374PS4='+ '
22375
22376# NLS nuisances.
22377for as_var in \
22378 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22379 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22380 LC_TELEPHONE LC_TIME
22381do
22382 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22383 eval $as_var=C; export $as_var
22384 else
22385 $as_unset $as_var
22386 fi
22387done
22388
22389# Required to use basename.
22390if expr a : '\(a\)' >/dev/null 2>&1; then
22391 as_expr=expr
22392else
22393 as_expr=false
22394fi
22395
22396if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22397 as_basename=basename
22398else
22399 as_basename=false
22400fi
252b5132 22401
6be7c12c 22402
5464f5a1
NN
22403# Name of the executable.
22404as_me=`$as_basename "$0" ||
22405$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22406 X"$0" : 'X\(//\)$' \| \
22407 X"$0" : 'X\(/\)$' \| \
22408 . : '\(.\)' 2>/dev/null ||
22409echo X/"$0" |
22410 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22411 /^X\/\(\/\/\)$/{ s//\1/; q; }
22412 /^X\/\(\/\).*/{ s//\1/; q; }
22413 s/.*/./; q'`
22414
22415
22416# PATH needs CR, and LINENO needs CR and PATH.
22417# Avoid depending upon Character Ranges.
22418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22421as_cr_digits='0123456789'
22422as_cr_alnum=$as_cr_Letters$as_cr_digits
22423
22424# The user is always right.
22425if test "${PATH_SEPARATOR+set}" != set; then
22426 echo "#! /bin/sh" >conf$$.sh
22427 echo "exit 0" >>conf$$.sh
22428 chmod +x conf$$.sh
22429 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22430 PATH_SEPARATOR=';'
22431 else
22432 PATH_SEPARATOR=:
22433 fi
22434 rm -f conf$$.sh
22435fi
22436
22437
22438 as_lineno_1=$LINENO
22439 as_lineno_2=$LINENO
22440 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22441 test "x$as_lineno_1" != "x$as_lineno_2" &&
22442 test "x$as_lineno_3" = "x$as_lineno_2" || {
22443 # Find who we are. Look in the path if we contain no path at all
22444 # relative or not.
22445 case $0 in
22446 *[\\/]* ) as_myself=$0 ;;
22447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22448for as_dir in $PATH
22449do
22450 IFS=$as_save_IFS
22451 test -z "$as_dir" && as_dir=.
22452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22453done
22454
22455 ;;
22456 esac
22457 # We did not find ourselves, most probably we were run as `sh COMMAND'
22458 # in which case we are not to be found in the path.
22459 if test "x$as_myself" = x; then
22460 as_myself=$0
22461 fi
22462 if test ! -f "$as_myself"; then
22463 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22464echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22465 { (exit 1); exit 1; }; }
22466 fi
22467 case $CONFIG_SHELL in
22468 '')
22469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22470for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22471do
22472 IFS=$as_save_IFS
22473 test -z "$as_dir" && as_dir=.
22474 for as_base in sh bash ksh sh5; do
22475 case $as_dir in
22476 /*)
22477 if ("$as_dir/$as_base" -c '
22478 as_lineno_1=$LINENO
22479 as_lineno_2=$LINENO
22480 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22481 test "x$as_lineno_1" != "x$as_lineno_2" &&
22482 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22483 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22484 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22485 CONFIG_SHELL=$as_dir/$as_base
22486 export CONFIG_SHELL
22487 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22488 fi;;
22489 esac
22490 done
22491done
22492;;
22493 esac
22494
22495 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22496 # uniformly replaced by the line number. The first 'sed' inserts a
22497 # line-number line before each line; the second 'sed' does the real
22498 # work. The second script uses 'N' to pair each line-number line
22499 # with the numbered line, and appends trailing '-' during
22500 # substitution so that $LINENO is not a special case at line end.
22501 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22502 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22503 sed '=' <$as_myself |
22504 sed '
22505 N
22506 s,$,-,
22507 : loop
22508 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22509 t loop
22510 s,-$,,
22511 s,^['$as_cr_digits']*\n,,
22512 ' >$as_me.lineno &&
22513 chmod +x $as_me.lineno ||
22514 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22515echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22516 { (exit 1); exit 1; }; }
22517
22518 # Don't try to exec as it changes $[0], causing all sort of problems
22519 # (the dirname of $[0] is not the place where we might find the
22520 # original and so on. Autoconf is especially sensible to this).
22521 . ./$as_me.lineno
22522 # Exit status is that of the last command.
22523 exit
252b5132 22524}
6be7c12c 22525
5464f5a1
NN
22526
22527case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22528 *c*,-n*) ECHO_N= ECHO_C='
22529' ECHO_T=' ' ;;
22530 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22531 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22532esac
22533
22534if expr a : '\(a\)' >/dev/null 2>&1; then
22535 as_expr=expr
252b5132 22536else
5464f5a1 22537 as_expr=false
252b5132 22538fi
5464f5a1
NN
22539
22540rm -f conf$$ conf$$.exe conf$$.file
22541echo >conf$$.file
22542if ln -s conf$$.file conf$$ 2>/dev/null; then
22543 # We could just check for DJGPP; but this test a) works b) is more generic
22544 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22545 if test -f conf$$.exe; then
22546 # Don't use ln at all; we don't have any links
22547 as_ln_s='cp -p'
22548 else
22549 as_ln_s='ln -s'
22550 fi
22551elif ln conf$$.file conf$$ 2>/dev/null; then
22552 as_ln_s=ln
22553else
22554 as_ln_s='cp -p'
252b5132 22555fi
5464f5a1 22556rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 22557
5464f5a1
NN
22558if mkdir -p . 2>/dev/null; then
22559 as_mkdir_p=:
22560else
22561 test -d ./-p && rmdir ./-p
22562 as_mkdir_p=false
252b5132 22563fi
b3baf5d0 22564
5464f5a1 22565as_executable_p="test -f"
252b5132 22566
5464f5a1
NN
22567# Sed expression to map a string onto a valid CPP name.
22568as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 22569
5464f5a1
NN
22570# Sed expression to map a string onto a valid variable name.
22571as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 22572
252b5132 22573
5464f5a1
NN
22574# IFS
22575# We need space, tab and new line, in precisely that order.
22576as_nl='
22577'
22578IFS=" $as_nl"
252b5132 22579
5464f5a1
NN
22580# CDPATH.
22581$as_unset CDPATH
22582
22583exec 6>&1
22584
22585# Open the log real soon, to keep \$[0] and so on meaningful, and to
22586# report actual input values of CONFIG_FILES etc. instead of their
22587# values after options handling. Logging --version etc. is OK.
22588exec 5>>config.log
22589{
22590 echo
22591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22592## Running $as_me. ##
22593_ASBOX
22594} >&5
22595cat >&5 <<_CSEOF
22596
22597This file was extended by $as_me, which was
22598generated by GNU Autoconf 2.59. Invocation command line was
22599
22600 CONFIG_FILES = $CONFIG_FILES
22601 CONFIG_HEADERS = $CONFIG_HEADERS
22602 CONFIG_LINKS = $CONFIG_LINKS
22603 CONFIG_COMMANDS = $CONFIG_COMMANDS
22604 $ $0 $@
22605
22606_CSEOF
22607echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22608echo >&5
22609_ACEOF
22610
22611# Files that config.status was made for.
22612if test -n "$ac_config_files"; then
22613 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 22614fi
5464f5a1
NN
22615
22616if test -n "$ac_config_headers"; then
22617 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 22618fi
252b5132 22619
5464f5a1
NN
22620if test -n "$ac_config_links"; then
22621 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 22622fi
252b5132 22623
5464f5a1
NN
22624if test -n "$ac_config_commands"; then
22625 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22626fi
252b5132 22627
5464f5a1
NN
22628cat >>$CONFIG_STATUS <<\_ACEOF
22629
22630ac_cs_usage="\
22631\`$as_me' instantiates files from templates according to the
22632current configuration.
22633
22634Usage: $0 [OPTIONS] [FILE]...
22635
22636 -h, --help print this help, then exit
22637 -V, --version print version number, then exit
22638 -q, --quiet do not print progress messages
22639 -d, --debug don't remove temporary files
22640 --recheck update $as_me by reconfiguring in the same conditions
22641 --file=FILE[:TEMPLATE]
22642 instantiate the configuration file FILE
22643 --header=FILE[:TEMPLATE]
22644 instantiate the configuration header FILE
22645
22646Configuration files:
22647$config_files
22648
22649Configuration headers:
22650$config_headers
22651
22652Configuration commands:
22653$config_commands
22654
22655Report bugs to <bug-autoconf@gnu.org>."
22656_ACEOF
22657
22658cat >>$CONFIG_STATUS <<_ACEOF
22659ac_cs_version="\\
22660config.status
22661configured by $0, generated by GNU Autoconf 2.59,
22662 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22663
22664Copyright (C) 2003 Free Software Foundation, Inc.
22665This config.status script is free software; the Free Software Foundation
22666gives unlimited permission to copy, distribute and modify it."
22667srcdir=$srcdir
22668INSTALL="$INSTALL"
22669_ACEOF
22670
22671cat >>$CONFIG_STATUS <<\_ACEOF
22672# If no file are specified by the user, then we need to provide default
22673# value. By we need to know if files were specified by the user.
22674ac_need_defaults=:
22675while test $# != 0
22676do
22677 case $1 in
22678 --*=*)
22679 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22680 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22681 ac_shift=:
6be7c12c 22682 ;;
5464f5a1
NN
22683 -*)
22684 ac_option=$1
22685 ac_optarg=$2
22686 ac_shift=shift
6be7c12c 22687 ;;
5464f5a1
NN
22688 *) # This is not an option, so the user has probably given explicit
22689 # arguments.
22690 ac_option=$1
22691 ac_need_defaults=false;;
22692 esac
252b5132 22693
5464f5a1
NN
22694 case $ac_option in
22695 # Handling of the options.
22696_ACEOF
22697cat >>$CONFIG_STATUS <<\_ACEOF
22698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22699 ac_cs_recheck=: ;;
22700 --version | --vers* | -V )
22701 echo "$ac_cs_version"; exit 0 ;;
22702 --he | --h)
22703 # Conflict between --help and --header
22704 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22705Try \`$0 --help' for more information." >&5
22706echo "$as_me: error: ambiguous option: $1
22707Try \`$0 --help' for more information." >&2;}
22708 { (exit 1); exit 1; }; };;
22709 --help | --hel | -h )
22710 echo "$ac_cs_usage"; exit 0 ;;
22711 --debug | --d* | -d )
22712 debug=: ;;
22713 --file | --fil | --fi | --f )
22714 $ac_shift
22715 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22716 ac_need_defaults=false;;
22717 --header | --heade | --head | --hea )
22718 $ac_shift
22719 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22720 ac_need_defaults=false;;
22721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22722 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22723 ac_cs_silent=: ;;
6be7c12c 22724
5464f5a1
NN
22725 # This is an error.
22726 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22727Try \`$0 --help' for more information." >&5
22728echo "$as_me: error: unrecognized option: $1
22729Try \`$0 --help' for more information." >&2;}
22730 { (exit 1); exit 1; }; } ;;
252b5132 22731
5464f5a1 22732 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 22733
5464f5a1
NN
22734 esac
22735 shift
22736done
6be7c12c 22737
5464f5a1 22738ac_configure_extra_args=
252b5132 22739
5464f5a1
NN
22740if $ac_cs_silent; then
22741 exec 6>/dev/null
22742 ac_configure_extra_args="$ac_configure_extra_args --silent"
22743fi
6be7c12c 22744
5464f5a1
NN
22745_ACEOF
22746cat >>$CONFIG_STATUS <<_ACEOF
22747if \$ac_cs_recheck; then
22748 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22749 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22750fi
22751
22752_ACEOF
22753
22754cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 22755#
5464f5a1 22756# INIT-COMMANDS section.
6be7c12c 22757#
b3baf5d0 22758
f5385ebf 22759AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
22760
22761
22762# The HP-UX ksh and POSIX shell print the target directory to stdout
22763# if CDPATH is set.
22764(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22765
22766sed_quote_subst='$sed_quote_subst'
22767double_quote_subst='$double_quote_subst'
22768delay_variable_subst='$delay_variable_subst'
22769enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22770macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22771macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22772enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22773pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22774enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22775host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22776host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22777host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22778build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22779build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22780build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22781SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22782Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22783GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22784EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22785FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22786LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22787NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22788LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22789max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22790ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22791exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22792lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22793lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22794lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22795reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22796reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 22797OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
22798deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22799file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22800AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22801AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22802STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22803RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22804old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22805old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22806old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22807CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22808CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22809compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22810GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22811lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22812lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22813lt_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 22814lt_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
22815objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22816SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22817ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22818MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22819lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22820lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22821lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22822lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22823lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22824need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8
SE
22825DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22826NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22827LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22828OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22829OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
22830libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22831shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22832extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22833archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22834enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22835export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22836whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22837compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22838old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22839old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22840archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22841archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22842module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22843module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22844with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22845allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22846no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22847hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22848hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22849hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22850hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22851hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22852hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22853hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22854hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22855inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22856link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22857fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22858always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22859export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22860exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22861include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22862prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22863file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22864variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22865need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22866need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22867version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22868runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22869shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22870shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22871libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22872library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22873soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22874postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22875postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22876finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22877finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22878hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22879sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22880sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22881hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22882enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22883enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22884enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22885old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22886striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22887
22888LTCC='$LTCC'
22889LTCFLAGS='$LTCFLAGS'
22890compiler='$compiler_DEFAULT'
22891
22892# Quote evaled strings.
22893for var in SED \
22894GREP \
22895EGREP \
22896FGREP \
22897LD \
22898NM \
22899LN_S \
22900lt_SP2NL \
22901lt_NL2SP \
22902reload_flag \
718a6fd8 22903OBJDUMP \
d7040cdb
SE
22904deplibs_check_method \
22905file_magic_cmd \
22906AR \
22907AR_FLAGS \
22908STRIP \
22909RANLIB \
22910CC \
22911CFLAGS \
22912compiler \
22913lt_cv_sys_global_symbol_pipe \
22914lt_cv_sys_global_symbol_to_cdecl \
22915lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 22916lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
22917SHELL \
22918ECHO \
22919lt_prog_compiler_no_builtin_flag \
22920lt_prog_compiler_wl \
22921lt_prog_compiler_pic \
22922lt_prog_compiler_static \
22923lt_cv_prog_compiler_c_o \
22924need_locks \
718a6fd8
SE
22925DSYMUTIL \
22926NMEDIT \
22927LIPO \
22928OTOOL \
22929OTOOL64 \
d7040cdb
SE
22930shrext_cmds \
22931export_dynamic_flag_spec \
22932whole_archive_flag_spec \
22933compiler_needs_object \
22934with_gnu_ld \
22935allow_undefined_flag \
22936no_undefined_flag \
22937hardcode_libdir_flag_spec \
22938hardcode_libdir_flag_spec_ld \
22939hardcode_libdir_separator \
22940fix_srcfile_path \
22941exclude_expsyms \
22942include_expsyms \
22943file_list_spec \
22944variables_saved_for_relink \
22945libname_spec \
22946library_names_spec \
22947soname_spec \
22948finish_eval \
22949old_striplib \
22950striplib; do
22951 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22952 *[\\\\\\\`\\"\\\$]*)
22953 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22954 ;;
22955 *)
22956 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22957 ;;
22958 esac
22959done
22960
22961# Double-quote double-evaled strings.
22962for var in reload_cmds \
22963old_postinstall_cmds \
22964old_postuninstall_cmds \
22965old_archive_cmds \
22966extract_expsyms_cmds \
22967old_archive_from_new_cmds \
22968old_archive_from_expsyms_cmds \
22969archive_cmds \
22970archive_expsym_cmds \
22971module_cmds \
22972module_expsym_cmds \
22973export_symbols_cmds \
22974prelink_cmds \
22975postinstall_cmds \
22976postuninstall_cmds \
22977finish_cmds \
22978sys_lib_search_path_spec \
22979sys_lib_dlsearch_path_spec; do
22980 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22981 *[\\\\\\\`\\"\\\$]*)
22982 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22983 ;;
22984 *)
22985 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22986 ;;
22987 esac
22988done
22989
22990# Fix-up fallback echo if it was mangled by the above quoting rules.
22991case \$lt_ECHO in
22992*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22993 ;;
22994esac
22995
22996ac_aux_dir='$ac_aux_dir'
22997xsi_shell='$xsi_shell'
22998lt_shell_append='$lt_shell_append'
22999
23000# See if we are running on zsh, and set the options which allow our
23001# commands through without removal of \ escapes INIT.
23002if test -n "\${ZSH_VERSION+set}" ; then
23003 setopt NO_GLOB_SUBST
23004fi
23005
23006
23007 PACKAGE='$PACKAGE'
23008 VERSION='$VERSION'
23009 TIMESTAMP='$TIMESTAMP'
23010 RM='$RM'
23011 ofile='$ofile'
23012
23013
23014
20e95c23
DJ
23015# Capture the value of obsolete ALL_LINGUAS because we need it to compute
23016 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
23017 # from automake.
23018 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23019 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23020 LINGUAS="${LINGUAS-%UNSET%}"
23021
5464f5a1 23022
d5efd9fc
AM
23023GCC="$GCC"
23024CC="$CC"
23025acx_cv_header_stdint="$acx_cv_header_stdint"
23026acx_cv_type_int8_t="$acx_cv_type_int8_t"
23027acx_cv_type_int16_t="$acx_cv_type_int16_t"
23028acx_cv_type_int32_t="$acx_cv_type_int32_t"
23029acx_cv_type_int64_t="$acx_cv_type_int64_t"
23030acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23031ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23032ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23033ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23034ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23035ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23036ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23037ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23038ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23039
23040
5464f5a1
NN
23041
23042_ACEOF
23043
23044
23045
23046cat >>$CONFIG_STATUS <<\_ACEOF
23047for ac_config_target in $ac_config_targets
252b5132 23048do
5464f5a1
NN
23049 case "$ac_config_target" in
23050 # Handling of arguments.
23051 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23052 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23053 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
23054 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 23055 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 23056 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 23057 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 23058 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
23059 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23060 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23061 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23062echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23063 { (exit 1); exit 1; }; };;
252b5132
RH
23064 esac
23065done
23066
5464f5a1
NN
23067# If the user did not use the arguments to specify the items to instantiate,
23068# then the envvar interface is used. Set only those that are not.
23069# We use the long form for the default assignment because of an extremely
23070# bizarre bug on SunOS 4.1.3.
23071if $ac_need_defaults; then
23072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23073 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23074 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23075fi
23076
23077# Have a temporary directory for convenience. Make it in the build tree
23078# simply because there is no reason to put it here, and in addition,
23079# creating and moving files from /tmp can sometimes cause problems.
23080# Create a temporary directory, and hook for its removal unless debugging.
23081$debug ||
23082{
23083 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23084 trap '{ (exit 1); exit 1; }' 1 2 13 15
23085}
b3baf5d0 23086
5464f5a1 23087# Create a (secure) tmp directory for tmp files.
b3baf5d0 23088
5464f5a1
NN
23089{
23090 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23091 test -n "$tmp" && test -d "$tmp"
23092} ||
23093{
23094 tmp=./confstat$$-$RANDOM
23095 (umask 077 && mkdir $tmp)
23096} ||
23097{
23098 echo "$me: cannot create a temporary directory in ." >&2
23099 { (exit 1); exit 1; }
23100}
23101
23102_ACEOF
23103
23104cat >>$CONFIG_STATUS <<_ACEOF
23105
23106#
23107# CONFIG_FILES section.
23108#
b3baf5d0 23109
5464f5a1
NN
23110# No need to generate the scripts if there are no CONFIG_FILES.
23111# This happens for instance when ./config.status config.h
23112if test -n "\$CONFIG_FILES"; then
23113 # Protect against being on the right side of a sed subst in config.status.
23114 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23115 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23116s,@SHELL@,$SHELL,;t t
23117s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23118s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23119s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23120s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23121s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23122s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23123s,@exec_prefix@,$exec_prefix,;t t
23124s,@prefix@,$prefix,;t t
23125s,@program_transform_name@,$program_transform_name,;t t
23126s,@bindir@,$bindir,;t t
23127s,@sbindir@,$sbindir,;t t
23128s,@libexecdir@,$libexecdir,;t t
23129s,@datadir@,$datadir,;t t
23130s,@sysconfdir@,$sysconfdir,;t t
23131s,@sharedstatedir@,$sharedstatedir,;t t
23132s,@localstatedir@,$localstatedir,;t t
23133s,@libdir@,$libdir,;t t
23134s,@includedir@,$includedir,;t t
23135s,@oldincludedir@,$oldincludedir,;t t
23136s,@infodir@,$infodir,;t t
23137s,@mandir@,$mandir,;t t
23138s,@build_alias@,$build_alias,;t t
23139s,@host_alias@,$host_alias,;t t
23140s,@target_alias@,$target_alias,;t t
23141s,@DEFS@,$DEFS,;t t
23142s,@ECHO_C@,$ECHO_C,;t t
23143s,@ECHO_N@,$ECHO_N,;t t
23144s,@ECHO_T@,$ECHO_T,;t t
23145s,@LIBS@,$LIBS,;t t
23146s,@build@,$build,;t t
23147s,@build_cpu@,$build_cpu,;t t
23148s,@build_vendor@,$build_vendor,;t t
23149s,@build_os@,$build_os,;t t
23150s,@host@,$host,;t t
23151s,@host_cpu@,$host_cpu,;t t
23152s,@host_vendor@,$host_vendor,;t t
23153s,@host_os@,$host_os,;t t
23154s,@target@,$target,;t t
23155s,@target_cpu@,$target_cpu,;t t
23156s,@target_vendor@,$target_vendor,;t t
23157s,@target_os@,$target_os,;t t
23158s,@CC@,$CC,;t t
23159s,@CFLAGS@,$CFLAGS,;t t
23160s,@LDFLAGS@,$LDFLAGS,;t t
23161s,@CPPFLAGS@,$CPPFLAGS,;t t
23162s,@ac_ct_CC@,$ac_ct_CC,;t t
23163s,@EXEEXT@,$EXEEXT,;t t
23164s,@OBJEXT@,$OBJEXT,;t t
23165s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23166s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23167s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 23168s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
23169s,@PACKAGE@,$PACKAGE,;t t
23170s,@VERSION@,$VERSION,;t t
23171s,@ACLOCAL@,$ACLOCAL,;t t
23172s,@AUTOCONF@,$AUTOCONF,;t t
23173s,@AUTOMAKE@,$AUTOMAKE,;t t
23174s,@AUTOHEADER@,$AUTOHEADER,;t t
23175s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
23176s,@install_sh@,$install_sh,;t t
23177s,@STRIP@,$STRIP,;t t
23178s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23179s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23180s,@mkdir_p@,$mkdir_p,;t t
23181s,@AWK@,$AWK,;t t
5464f5a1 23182s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
23183s,@am__leading_dot@,$am__leading_dot,;t t
23184s,@AMTAR@,$AMTAR,;t t
23185s,@am__tar@,$am__tar,;t t
23186s,@am__untar@,$am__untar,;t t
23187s,@DEPDIR@,$DEPDIR,;t t
23188s,@am__include@,$am__include,;t t
23189s,@am__quote@,$am__quote,;t t
23190s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23191s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23192s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23193s,@CCDEPMODE@,$CCDEPMODE,;t t
23194s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23195s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
23196s,@AR@,$AR,;t t
23197s,@ac_ct_AR@,$ac_ct_AR,;t t
23198s,@RANLIB@,$RANLIB,;t t
23199s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7357c5b6
AM
23200s,@CPP@,$CPP,;t t
23201s,@EGREP@,$EGREP,;t t
5464f5a1 23202s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb 23203s,@SED@,$SED,;t t
d7040cdb
SE
23204s,@FGREP@,$FGREP,;t t
23205s,@GREP@,$GREP,;t t
23206s,@LD@,$LD,;t t
23207s,@DUMPBIN@,$DUMPBIN,;t t
23208s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23209s,@NM@,$NM,;t t
23210s,@LN_S@,$LN_S,;t t
718a6fd8
SE
23211s,@OBJDUMP@,$OBJDUMP,;t t
23212s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
d7040cdb 23213s,@lt_ECHO@,$lt_ECHO,;t t
718a6fd8
SE
23214s,@DSYMUTIL@,$DSYMUTIL,;t t
23215s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
23216s,@NMEDIT@,$NMEDIT,;t t
23217s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
23218s,@LIPO@,$LIPO,;t t
23219s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
23220s,@OTOOL@,$OTOOL,;t t
23221s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
23222s,@OTOOL64@,$OTOOL64,;t t
23223s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
0d4a1476 23224s,@DEBUGDIR@,$DEBUGDIR,;t t
92f01d61 23225s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
23226s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23227s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 23228s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 23229s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
23230s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23231s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23232s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
23233s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
23234s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
23235s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
23236s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
23237s,@host_noncanonical@,$host_noncanonical,;t t
23238s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
23239s,@bfdlibdir@,$bfdlibdir,;t t
23240s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 23241s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
23242s,@LIBINTL@,$LIBINTL,;t t
23243s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23244s,@INCINTL@,$INCINTL,;t t
5464f5a1 23245s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
23246s,@GMSGFMT@,$GMSGFMT,;t t
23247s,@POSUB@,$POSUB,;t t
5464f5a1 23248s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 23249s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 23250s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
23251s,@GENCAT@,$GENCAT,;t t
23252s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 23253s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
23254s,@MSGFMT@,$MSGFMT,;t t
23255s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
23256s,@HDEFINES@,$HDEFINES,;t t
23257s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
d2df793a 23258s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
5464f5a1
NN
23259s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
23260s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
23261s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
d2df793a 23262s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
5464f5a1
NN
23263s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23264s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
23265s,@COREFILE@,$COREFILE,;t t
23266s,@COREFLAG@,$COREFLAG,;t t
23267s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
23268s,@WIN32LIBADD@,$WIN32LIBADD,;t t
23269s,@TDEFINES@,$TDEFINES,;t t
23270s,@wordsize@,$wordsize,;t t
21e40a48 23271s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
23272s,@all_backends@,$all_backends,;t t
23273s,@bfd_backends@,$bfd_backends,;t t
23274s,@bfd_machines@,$bfd_machines,;t t
23275s,@bfd_default_target_size@,$bfd_default_target_size,;t t
23276s,@bfd_file_ptr@,$bfd_file_ptr,;t t
23277s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
23278s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
23279s,@datarootdir@,$datarootdir,;t t
23280s,@docdir@,$docdir,;t t
23281s,@htmldir@,$htmldir,;t t
5464f5a1
NN
23282s,@LIBOBJS@,$LIBOBJS,;t t
23283s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 23284CEOF
252b5132 23285
5464f5a1
NN
23286_ACEOF
23287
23288 cat >>$CONFIG_STATUS <<\_ACEOF
23289 # Split the substitutions into bite-sized pieces for seds with
23290 # small command number limits, like on Digital OSF/1 and HP-UX.
23291 ac_max_sed_lines=48
23292 ac_sed_frag=1 # Number of current file.
23293 ac_beg=1 # First line for current file.
23294 ac_end=$ac_max_sed_lines # Line after last line for current file.
23295 ac_more_lines=:
23296 ac_sed_cmds=
23297 while $ac_more_lines; do
23298 if test $ac_beg -gt 1; then
23299 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 23300 else
5464f5a1
NN
23301 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23302 fi
23303 if test ! -s $tmp/subs.frag; then
23304 ac_more_lines=false
23305 else
23306 # The purpose of the label and of the branching condition is to
23307 # speed up the sed processing (if there are no `@' at all, there
23308 # is no need to browse any of the substitutions).
23309 # These are the two extra sed commands mentioned above.
23310 (echo ':t
23311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23312 if test -z "$ac_sed_cmds"; then
23313 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23314 else
23315 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23316 fi
23317 ac_sed_frag=`expr $ac_sed_frag + 1`
23318 ac_beg=$ac_end
23319 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 23320 fi
5464f5a1
NN
23321 done
23322 if test -z "$ac_sed_cmds"; then
23323 ac_sed_cmds=cat
252b5132 23324 fi
5464f5a1 23325fi # test -n "$CONFIG_FILES"
6be7c12c 23326
5464f5a1
NN
23327_ACEOF
23328cat >>$CONFIG_STATUS <<\_ACEOF
23329for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 23330 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
23331 case $ac_file in
23332 - | *:- | *:-:* ) # input from stdin
23333 cat >$tmp/stdin
23334 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23335 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23336 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23338 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
23339 esac
23340
5464f5a1
NN
23341 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23342 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23343$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23344 X"$ac_file" : 'X\(//\)[^/]' \| \
23345 X"$ac_file" : 'X\(//\)$' \| \
23346 X"$ac_file" : 'X\(/\)' \| \
23347 . : '\(.\)' 2>/dev/null ||
23348echo X"$ac_file" |
23349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23351 /^X\(\/\/\)$/{ s//\1/; q; }
23352 /^X\(\/\).*/{ s//\1/; q; }
23353 s/.*/./; q'`
23354 { if $as_mkdir_p; then
23355 mkdir -p "$ac_dir"
252b5132 23356 else
5464f5a1
NN
23357 as_dir="$ac_dir"
23358 as_dirs=
23359 while test ! -d "$as_dir"; do
23360 as_dirs="$as_dir $as_dirs"
23361 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23362$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23363 X"$as_dir" : 'X\(//\)[^/]' \| \
23364 X"$as_dir" : 'X\(//\)$' \| \
23365 X"$as_dir" : 'X\(/\)' \| \
23366 . : '\(.\)' 2>/dev/null ||
23367echo X"$as_dir" |
23368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23370 /^X\(\/\/\)$/{ s//\1/; q; }
23371 /^X\(\/\).*/{ s//\1/; q; }
23372 s/.*/./; q'`
23373 done
23374 test ! -n "$as_dirs" || mkdir $as_dirs
23375 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23376echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23377 { (exit 1); exit 1; }; }; }
23378
23379 ac_builddir=.
23380
23381if test "$ac_dir" != .; then
23382 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23383 # A "../" for each directory in $ac_dir_suffix.
23384 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23385else
23386 ac_dir_suffix= ac_top_builddir=
23387fi
252b5132 23388
5464f5a1
NN
23389case $srcdir in
23390 .) # No --srcdir option. We are building in place.
23391 ac_srcdir=.
23392 if test -z "$ac_top_builddir"; then
23393 ac_top_srcdir=.
23394 else
23395 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23396 fi ;;
23397 [\\/]* | ?:[\\/]* ) # Absolute path.
23398 ac_srcdir=$srcdir$ac_dir_suffix;
23399 ac_top_srcdir=$srcdir ;;
252b5132 23400 *) # Relative path.
5464f5a1
NN
23401 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23402 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23403esac
252b5132 23404
5464f5a1
NN
23405# Do not use `cd foo && pwd` to compute absolute paths, because
23406# the directories may not exist.
23407case `pwd` in
23408.) ac_abs_builddir="$ac_dir";;
23409*)
23410 case "$ac_dir" in
23411 .) ac_abs_builddir=`pwd`;;
23412 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23413 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23414 esac;;
23415esac
23416case $ac_abs_builddir in
23417.) ac_abs_top_builddir=${ac_top_builddir}.;;
23418*)
23419 case ${ac_top_builddir}. in
23420 .) ac_abs_top_builddir=$ac_abs_builddir;;
23421 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23422 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23423 esac;;
23424esac
23425case $ac_abs_builddir in
23426.) ac_abs_srcdir=$ac_srcdir;;
23427*)
23428 case $ac_srcdir in
23429 .) ac_abs_srcdir=$ac_abs_builddir;;
23430 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23431 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23432 esac;;
23433esac
23434case $ac_abs_builddir in
23435.) ac_abs_top_srcdir=$ac_top_srcdir;;
23436*)
23437 case $ac_top_srcdir in
23438 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23439 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23440 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23441 esac;;
23442esac
252b5132 23443
5464f5a1
NN
23444
23445 case $INSTALL in
23446 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23447 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 23448 esac
252b5132 23449
7357c5b6
AM
23450 if test x"$ac_file" != x-; then
23451 { echo "$as_me:$LINENO: creating $ac_file" >&5
23452echo "$as_me: creating $ac_file" >&6;}
23453 rm -f "$ac_file"
23454 fi
5464f5a1
NN
23455 # Let's still pretend it is `configure' which instantiates (i.e., don't
23456 # use $as_me), people would be surprised to read:
23457 # /* config.h. Generated by config.status. */
23458 if test x"$ac_file" = x-; then
23459 configure_input=
23460 else
23461 configure_input="$ac_file. "
23462 fi
23463 configure_input=$configure_input"Generated from `echo $ac_file_in |
23464 sed 's,.*/,,'` by configure."
23465
23466 # First look for the input files in the build tree, otherwise in the
23467 # src tree.
23468 ac_file_inputs=`IFS=:
23469 for f in $ac_file_in; do
23470 case $f in
23471 -) echo $tmp/stdin ;;
23472 [\\/$]*)
23473 # Absolute (can't be DOS-style, as IFS=:)
23474 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23475echo "$as_me: error: cannot find input file: $f" >&2;}
23476 { (exit 1); exit 1; }; }
23477 echo "$f";;
23478 *) # Relative
23479 if test -f "$f"; then
23480 # Build tree
23481 echo "$f"
23482 elif test -f "$srcdir/$f"; then
23483 # Source tree
23484 echo "$srcdir/$f"
23485 else
23486 # /dev/null tree
23487 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23488echo "$as_me: error: cannot find input file: $f" >&2;}
23489 { (exit 1); exit 1; }; }
23490 fi;;
23491 esac
23492 done` || { (exit 1); exit 1; }
5464f5a1
NN
23493_ACEOF
23494cat >>$CONFIG_STATUS <<_ACEOF
23495 sed "$ac_vpsub
23496$extrasub
23497_ACEOF
23498cat >>$CONFIG_STATUS <<\_ACEOF
23499:t
23500/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23501s,@configure_input@,$configure_input,;t t
23502s,@srcdir@,$ac_srcdir,;t t
23503s,@abs_srcdir@,$ac_abs_srcdir,;t t
23504s,@top_srcdir@,$ac_top_srcdir,;t t
23505s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23506s,@builddir@,$ac_builddir,;t t
23507s,@abs_builddir@,$ac_abs_builddir,;t t
23508s,@top_builddir@,$ac_top_builddir,;t t
23509s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23510s,@INSTALL@,$ac_INSTALL,;t t
23511" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23512 rm -f $tmp/stdin
23513 if test x"$ac_file" != x-; then
23514 mv $tmp/out $ac_file
23515 else
23516 cat $tmp/out
23517 rm -f $tmp/out
23518 fi
23519
23520done
23521_ACEOF
23522cat >>$CONFIG_STATUS <<\_ACEOF
23523
23524#
23525# CONFIG_HEADER section.
23526#
252b5132
RH
23527
23528# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23529# NAME is the cpp macro being defined and VALUE is the value it is being given.
23530#
23531# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
23532ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23533ac_dB='[ ].*$,\1#\2'
23534ac_dC=' '
23535ac_dD=',;t'
23536# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23537ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23538ac_uB='$,\1#\2define\3'
252b5132 23539ac_uC=' '
5464f5a1
NN
23540ac_uD=',;t'
23541
23542for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 23543 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
23544 case $ac_file in
23545 - | *:- | *:-:* ) # input from stdin
23546 cat >$tmp/stdin
23547 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23548 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23549 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23551 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
23552 esac
23553
5464f5a1
NN
23554 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23555echo "$as_me: creating $ac_file" >&6;}
23556
23557 # First look for the input files in the build tree, otherwise in the
23558 # src tree.
23559 ac_file_inputs=`IFS=:
23560 for f in $ac_file_in; do
23561 case $f in
23562 -) echo $tmp/stdin ;;
23563 [\\/$]*)
23564 # Absolute (can't be DOS-style, as IFS=:)
23565 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23566echo "$as_me: error: cannot find input file: $f" >&2;}
23567 { (exit 1); exit 1; }; }
23568 # Do quote $f, to prevent DOS paths from being IFS'd.
23569 echo "$f";;
23570 *) # Relative
23571 if test -f "$f"; then
23572 # Build tree
23573 echo "$f"
23574 elif test -f "$srcdir/$f"; then
23575 # Source tree
23576 echo "$srcdir/$f"
23577 else
23578 # /dev/null tree
23579 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23580echo "$as_me: error: cannot find input file: $f" >&2;}
23581 { (exit 1); exit 1; }; }
23582 fi;;
23583 esac
23584 done` || { (exit 1); exit 1; }
23585 # Remove the trailing spaces.
23586 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23587
23588_ACEOF
23589
23590# Transform confdefs.h into two sed scripts, `conftest.defines' and
23591# `conftest.undefs', that substitutes the proper values into
23592# config.h.in to produce config.h. The first handles `#define'
23593# templates, and the second `#undef' templates.
23594# And first: Protect against being on the right side of a sed subst in
23595# config.status. Protect against being in an unquoted here document
23596# in config.status.
23597rm -f conftest.defines conftest.undefs
23598# Using a here document instead of a string reduces the quoting nightmare.
23599# Putting comments in sed scripts is not portable.
23600#
23601# `end' is used to avoid that the second main sed command (meant for
23602# 0-ary CPP macros) applies to n-ary macro definitions.
23603# See the Autoconf documentation for `clear'.
23604cat >confdef2sed.sed <<\_ACEOF
23605s/[\\&,]/\\&/g
23606s,[\\$`],\\&,g
23607t clear
23608: clear
23609s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23610t end
23611s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23612: end
23613_ACEOF
23614# If some macros were called several times there might be several times
23615# the same #defines, which is useless. Nevertheless, we may not want to
23616# sort them, since we want the *last* AC-DEFINE to be honored.
23617uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23618sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23619rm -f confdef2sed.sed
252b5132
RH
23620
23621# This sed command replaces #undef with comments. This is necessary, for
23622# example, in the case of _POSIX_SOURCE, which is predefined and required
23623# on some systems where configure will not decide to define it.
5464f5a1
NN
23624cat >>conftest.undefs <<\_ACEOF
23625s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23626_ACEOF
23627
23628# Break up conftest.defines because some shells have a limit on the size
23629# of here documents, and old seds have small limits too (100 cmds).
23630echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23631echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23632echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23633echo ' :' >>$CONFIG_STATUS
23634rm -f conftest.tail
23635while grep . conftest.defines >/dev/null
23636do
23637 # Write a limited-size here document to $tmp/defines.sed.
23638 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23639 # Speed up: don't consider the non `#define' lines.
23640 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23641 # Work around the forget-to-reset-the-flag bug.
23642 echo 't clr' >>$CONFIG_STATUS
23643 echo ': clr' >>$CONFIG_STATUS
23644 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23645 echo 'CEOF
23646 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23647 rm -f $tmp/in
23648 mv $tmp/out $tmp/in
23649' >>$CONFIG_STATUS
23650 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23651 rm -f conftest.defines
23652 mv conftest.tail conftest.defines
23653done
23654rm -f conftest.defines
23655echo ' fi # grep' >>$CONFIG_STATUS
23656echo >>$CONFIG_STATUS
252b5132 23657
5464f5a1
NN
23658# Break up conftest.undefs because some shells have a limit on the size
23659# of here documents, and old seds have small limits too (100 cmds).
23660echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 23661rm -f conftest.tail
5464f5a1 23662while grep . conftest.undefs >/dev/null
252b5132 23663do
5464f5a1
NN
23664 # Write a limited-size here document to $tmp/undefs.sed.
23665 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23666 # Speed up: don't consider the non `#undef'
23667 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23668 # Work around the forget-to-reset-the-flag bug.
23669 echo 't clr' >>$CONFIG_STATUS
23670 echo ': clr' >>$CONFIG_STATUS
23671 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 23672 echo 'CEOF
5464f5a1
NN
23673 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23674 rm -f $tmp/in
23675 mv $tmp/out $tmp/in
23676' >>$CONFIG_STATUS
23677 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23678 rm -f conftest.undefs
23679 mv conftest.tail conftest.undefs
252b5132 23680done
5464f5a1
NN
23681rm -f conftest.undefs
23682
23683cat >>$CONFIG_STATUS <<\_ACEOF
23684 # Let's still pretend it is `configure' which instantiates (i.e., don't
23685 # use $as_me), people would be surprised to read:
23686 # /* config.h. Generated by config.status. */
23687 if test x"$ac_file" = x-; then
23688 echo "/* Generated by configure. */" >$tmp/config.h
23689 else
23690 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23691 fi
23692 cat $tmp/in >>$tmp/config.h
23693 rm -f $tmp/in
23694 if test x"$ac_file" != x-; then
23695 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23696 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23697echo "$as_me: $ac_file is unchanged" >&6;}
23698 else
23699 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23700$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23701 X"$ac_file" : 'X\(//\)[^/]' \| \
23702 X"$ac_file" : 'X\(//\)$' \| \
23703 X"$ac_file" : 'X\(/\)' \| \
23704 . : '\(.\)' 2>/dev/null ||
23705echo X"$ac_file" |
23706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23708 /^X\(\/\/\)$/{ s//\1/; q; }
23709 /^X\(\/\).*/{ s//\1/; q; }
23710 s/.*/./; q'`
23711 { if $as_mkdir_p; then
23712 mkdir -p "$ac_dir"
252b5132 23713 else
5464f5a1
NN
23714 as_dir="$ac_dir"
23715 as_dirs=
23716 while test ! -d "$as_dir"; do
23717 as_dirs="$as_dir $as_dirs"
23718 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23719$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23720 X"$as_dir" : 'X\(//\)[^/]' \| \
23721 X"$as_dir" : 'X\(//\)$' \| \
23722 X"$as_dir" : 'X\(/\)' \| \
23723 . : '\(.\)' 2>/dev/null ||
23724echo X"$as_dir" |
23725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23727 /^X\(\/\/\)$/{ s//\1/; q; }
23728 /^X\(\/\).*/{ s//\1/; q; }
23729 s/.*/./; q'`
23730 done
23731 test ! -n "$as_dirs" || mkdir $as_dirs
23732 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23733echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23734 { (exit 1); exit 1; }; }; }
23735
23736 rm -f $ac_file
23737 mv $tmp/config.h $ac_file
252b5132 23738 fi
5464f5a1
NN
23739 else
23740 cat $tmp/config.h
23741 rm -f $tmp/config.h
252b5132 23742 fi
f5385ebf
AM
23743# Compute $ac_file's index in $config_headers.
23744_am_stamp_count=1
23745for _am_header in $config_headers :; do
23746 case $_am_header in
23747 $ac_file | $ac_file:* )
23748 break ;;
23749 * )
23750 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23751 esac
23752done
23753echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23754$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23755 X$ac_file : 'X\(//\)[^/]' \| \
23756 X$ac_file : 'X\(//\)$' \| \
23757 X$ac_file : 'X\(/\)' \| \
23758 . : '\(.\)' 2>/dev/null ||
23759echo X$ac_file |
23760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23762 /^X\(\/\/\)$/{ s//\1/; q; }
23763 /^X\(\/\).*/{ s//\1/; q; }
23764 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
23765done
23766_ACEOF
23767cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 23768
5464f5a1
NN
23769#
23770# CONFIG_COMMANDS section.
23771#
23772for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23773 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23774 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23775 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23776$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23777 X"$ac_dest" : 'X\(//\)[^/]' \| \
23778 X"$ac_dest" : 'X\(//\)$' \| \
23779 X"$ac_dest" : 'X\(/\)' \| \
23780 . : '\(.\)' 2>/dev/null ||
23781echo X"$ac_dest" |
23782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23784 /^X\(\/\/\)$/{ s//\1/; q; }
23785 /^X\(\/\).*/{ s//\1/; q; }
23786 s/.*/./; q'`
23787 { if $as_mkdir_p; then
23788 mkdir -p "$ac_dir"
23789 else
23790 as_dir="$ac_dir"
23791 as_dirs=
23792 while test ! -d "$as_dir"; do
23793 as_dirs="$as_dir $as_dirs"
23794 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23795$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23796 X"$as_dir" : 'X\(//\)[^/]' \| \
23797 X"$as_dir" : 'X\(//\)$' \| \
23798 X"$as_dir" : 'X\(/\)' \| \
23799 . : '\(.\)' 2>/dev/null ||
23800echo X"$as_dir" |
23801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23803 /^X\(\/\/\)$/{ s//\1/; q; }
23804 /^X\(\/\).*/{ s//\1/; q; }
23805 s/.*/./; q'`
23806 done
23807 test ! -n "$as_dirs" || mkdir $as_dirs
23808 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23809echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23810 { (exit 1); exit 1; }; }; }
b3baf5d0 23811
5464f5a1 23812 ac_builddir=.
b3baf5d0 23813
5464f5a1
NN
23814if test "$ac_dir" != .; then
23815 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23816 # A "../" for each directory in $ac_dir_suffix.
23817 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23818else
23819 ac_dir_suffix= ac_top_builddir=
23820fi
23821
23822case $srcdir in
23823 .) # No --srcdir option. We are building in place.
23824 ac_srcdir=.
23825 if test -z "$ac_top_builddir"; then
23826 ac_top_srcdir=.
23827 else
23828 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23829 fi ;;
23830 [\\/]* | ?:[\\/]* ) # Absolute path.
23831 ac_srcdir=$srcdir$ac_dir_suffix;
23832 ac_top_srcdir=$srcdir ;;
23833 *) # Relative path.
23834 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23835 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23836esac
23837
23838# Do not use `cd foo && pwd` to compute absolute paths, because
23839# the directories may not exist.
23840case `pwd` in
23841.) ac_abs_builddir="$ac_dir";;
23842*)
23843 case "$ac_dir" in
23844 .) ac_abs_builddir=`pwd`;;
23845 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23846 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23847 esac;;
23848esac
23849case $ac_abs_builddir in
23850.) ac_abs_top_builddir=${ac_top_builddir}.;;
23851*)
23852 case ${ac_top_builddir}. in
23853 .) ac_abs_top_builddir=$ac_abs_builddir;;
23854 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23855 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23856 esac;;
23857esac
23858case $ac_abs_builddir in
23859.) ac_abs_srcdir=$ac_srcdir;;
23860*)
23861 case $ac_srcdir in
23862 .) ac_abs_srcdir=$ac_abs_builddir;;
23863 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23864 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23865 esac;;
23866esac
23867case $ac_abs_builddir in
23868.) ac_abs_top_srcdir=$ac_top_srcdir;;
23869*)
23870 case $ac_top_srcdir in
23871 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23872 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23873 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23874 esac;;
23875esac
23876
23877
23878 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23879echo "$as_me: executing $ac_dest commands" >&6;}
23880 case $ac_dest in
f5385ebf
AM
23881 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23882 # Strip MF so we end up with the name of the file.
23883 mf=`echo "$mf" | sed -e 's/:.*$//'`
23884 # Check whether this is an Automake generated Makefile or not.
23885 # We used to match only the files named `Makefile.in', but
23886 # some people rename them; so instead we look at the file content.
23887 # Grep'ing the first line is not enough: some people post-process
23888 # each Makefile.in and add a new line on top of each file to say so.
23889 # So let's grep whole file.
23890 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23891 dirpart=`(dirname "$mf") 2>/dev/null ||
23892$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23893 X"$mf" : 'X\(//\)[^/]' \| \
23894 X"$mf" : 'X\(//\)$' \| \
23895 X"$mf" : 'X\(/\)' \| \
23896 . : '\(.\)' 2>/dev/null ||
23897echo X"$mf" |
23898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23900 /^X\(\/\/\)$/{ s//\1/; q; }
23901 /^X\(\/\).*/{ s//\1/; q; }
23902 s/.*/./; q'`
23903 else
23904 continue
23905 fi
23906 # Extract the definition of DEPDIR, am__include, and am__quote
23907 # from the Makefile without running `make'.
23908 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23909 test -z "$DEPDIR" && continue
23910 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23911 test -z "am__include" && continue
23912 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23913 # When using ansi2knr, U may be empty or an underscore; expand it
23914 U=`sed -n 's/^U = //p' < "$mf"`
23915 # Find all dependency output files, they are included files with
23916 # $(DEPDIR) in their names. We invoke sed twice because it is the
23917 # simplest approach to changing $(DEPDIR) to its actual value in the
23918 # expansion.
23919 for file in `sed -n "
23920 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23921 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23922 # Make sure the directory exists.
23923 test -f "$dirpart/$file" && continue
23924 fdir=`(dirname "$file") 2>/dev/null ||
23925$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23926 X"$file" : 'X\(//\)[^/]' \| \
23927 X"$file" : 'X\(//\)$' \| \
23928 X"$file" : 'X\(/\)' \| \
23929 . : '\(.\)' 2>/dev/null ||
23930echo X"$file" |
23931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23933 /^X\(\/\/\)$/{ s//\1/; q; }
23934 /^X\(\/\).*/{ s//\1/; q; }
23935 s/.*/./; q'`
23936 { if $as_mkdir_p; then
23937 mkdir -p $dirpart/$fdir
23938 else
23939 as_dir=$dirpart/$fdir
23940 as_dirs=
23941 while test ! -d "$as_dir"; do
23942 as_dirs="$as_dir $as_dirs"
23943 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23944$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23945 X"$as_dir" : 'X\(//\)[^/]' \| \
23946 X"$as_dir" : 'X\(//\)$' \| \
23947 X"$as_dir" : 'X\(/\)' \| \
23948 . : '\(.\)' 2>/dev/null ||
23949echo X"$as_dir" |
23950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23952 /^X\(\/\/\)$/{ s//\1/; q; }
23953 /^X\(\/\).*/{ s//\1/; q; }
23954 s/.*/./; q'`
23955 done
23956 test ! -n "$as_dirs" || mkdir $as_dirs
23957 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23958echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23959 { (exit 1); exit 1; }; }; }
23960
23961 # echo "creating $dirpart/$file"
23962 echo '# dummy' > "$dirpart/$file"
23963 done
23964done
d7040cdb
SE
23965 ;;
23966 libtool )
23967
23968 # See if we are running on zsh, and set the options which allow our
23969 # commands through without removal of \ escapes.
23970 if test -n "${ZSH_VERSION+set}" ; then
23971 setopt NO_GLOB_SUBST
23972 fi
23973
23974 cfgfile="${ofile}T"
23975 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23976 $RM "$cfgfile"
23977
23978 cat <<_LT_EOF >> "$cfgfile"
23979#! $SHELL
23980
23981# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 23982# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
23983# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23984# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23985#
718a6fd8
SE
23986# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23987# 2006, 2007, 2008 Free Software Foundation, Inc.
23988# Written by Gordon Matzigkeit, 1996
d7040cdb 23989#
718a6fd8 23990# This file is part of GNU Libtool.
d7040cdb 23991#
718a6fd8
SE
23992# GNU Libtool is free software; you can redistribute it and/or
23993# modify it under the terms of the GNU General Public License as
23994# published by the Free Software Foundation; either version 2 of
23995# the License, or (at your option) any later version.
d7040cdb 23996#
718a6fd8
SE
23997# As a special exception to the GNU General Public License,
23998# if you distribute this file as part of a program or library that
23999# is built using GNU Libtool, you may include this file under the
24000# same distribution terms that you use for the rest of that program.
d7040cdb 24001#
718a6fd8
SE
24002# GNU Libtool is distributed in the hope that it will be useful,
24003# but WITHOUT ANY WARRANTY; without even the implied warranty of
24004# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24005# GNU General Public License for more details.
d7040cdb 24006#
718a6fd8
SE
24007# You should have received a copy of the GNU General Public License
24008# along with GNU Libtool; see the file COPYING. If not, a copy
24009# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24010# obtained by writing to the Free Software Foundation, Inc.,
24011# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
24012
24013
24014# The names of the tagged configurations supported by this script.
24015available_tags=""
24016
24017# ### BEGIN LIBTOOL CONFIG
24018
24019# Whether or not to build shared libraries.
24020build_libtool_libs=$enable_shared
24021
24022# Which release of libtool.m4 was used?
24023macro_version=$macro_version
24024macro_revision=$macro_revision
24025
24026# Whether or not to build static libraries.
24027build_old_libs=$enable_static
24028
24029# What type of objects to build.
24030pic_mode=$pic_mode
24031
24032# Whether or not to optimize for fast installation.
24033fast_install=$enable_fast_install
24034
24035# The host system.
24036host_alias=$host_alias
24037host=$host
24038host_os=$host_os
24039
24040# The build system.
24041build_alias=$build_alias
24042build=$build
24043build_os=$build_os
24044
24045# A sed program that does not truncate output.
24046SED=$lt_SED
24047
24048# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24049Xsed="\$SED -e 1s/^X//"
24050
24051# A grep program that handles long lines.
24052GREP=$lt_GREP
24053
24054# An ERE matcher.
24055EGREP=$lt_EGREP
24056
24057# A literal string matcher.
24058FGREP=$lt_FGREP
24059
24060# A BSD- or MS-compatible name lister.
24061NM=$lt_NM
24062
24063# Whether we need soft or hard links.
24064LN_S=$lt_LN_S
24065
24066# What is the maximum length of a command?
24067max_cmd_len=$max_cmd_len
24068
24069# Object file suffix (normally "o").
24070objext=$ac_objext
24071
24072# Executable file suffix (normally "").
24073exeext=$exeext
24074
24075# whether the shell understands "unset".
24076lt_unset=$lt_unset
24077
24078# turn spaces into newlines.
24079SP2NL=$lt_lt_SP2NL
24080
24081# turn newlines into spaces.
24082NL2SP=$lt_lt_NL2SP
24083
24084# How to create reloadable object files.
24085reload_flag=$lt_reload_flag
24086reload_cmds=$lt_reload_cmds
24087
718a6fd8
SE
24088# An object symbol dumper.
24089OBJDUMP=$lt_OBJDUMP
24090
d7040cdb
SE
24091# Method to check whether dependent libraries are shared objects.
24092deplibs_check_method=$lt_deplibs_check_method
24093
24094# Command to use when deplibs_check_method == "file_magic".
24095file_magic_cmd=$lt_file_magic_cmd
24096
24097# The archiver.
24098AR=$lt_AR
24099AR_FLAGS=$lt_AR_FLAGS
24100
24101# A symbol stripping program.
24102STRIP=$lt_STRIP
24103
24104# Commands used to install an old-style archive.
24105RANLIB=$lt_RANLIB
24106old_postinstall_cmds=$lt_old_postinstall_cmds
24107old_postuninstall_cmds=$lt_old_postuninstall_cmds
24108
24109# A C compiler.
24110LTCC=$lt_CC
24111
24112# LTCC compiler flags.
24113LTCFLAGS=$lt_CFLAGS
24114
24115# Take the output of nm and produce a listing of raw symbols and C names.
24116global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24117
24118# Transform the output of nm in a proper C declaration.
24119global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24120
24121# Transform the output of nm in a C name address pair.
24122global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24123
718a6fd8
SE
24124# Transform the output of nm in a C name address pair when lib prefix is needed.
24125global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24126
d7040cdb
SE
24127# The name of the directory that contains temporary libtool files.
24128objdir=$objdir
24129
24130# Shell to use when invoking shell scripts.
24131SHELL=$lt_SHELL
24132
24133# An echo program that does not interpret backslashes.
24134ECHO=$lt_ECHO
24135
24136# Used to examine libraries when file_magic_cmd begins with "file".
24137MAGIC_CMD=$MAGIC_CMD
24138
24139# Must we lock files when doing compilation?
24140need_locks=$lt_need_locks
24141
718a6fd8
SE
24142# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24143DSYMUTIL=$lt_DSYMUTIL
24144
24145# Tool to change global to local symbols on Mac OS X.
24146NMEDIT=$lt_NMEDIT
24147
24148# Tool to manipulate fat objects and archives on Mac OS X.
24149LIPO=$lt_LIPO
24150
24151# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24152OTOOL=$lt_OTOOL
24153
24154# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24155OTOOL64=$lt_OTOOL64
24156
d7040cdb
SE
24157# Old archive suffix (normally "a").
24158libext=$libext
24159
24160# Shared library suffix (normally ".so").
24161shrext_cmds=$lt_shrext_cmds
24162
24163# The commands to extract the exported symbol list from a shared archive.
24164extract_expsyms_cmds=$lt_extract_expsyms_cmds
24165
24166# Variables whose values should be saved in libtool wrapper scripts and
24167# restored at link time.
24168variables_saved_for_relink=$lt_variables_saved_for_relink
24169
24170# Do we need the "lib" prefix for modules?
24171need_lib_prefix=$need_lib_prefix
24172
24173# Do we need a version for libraries?
24174need_version=$need_version
24175
24176# Library versioning type.
24177version_type=$version_type
24178
24179# Shared library runtime path variable.
24180runpath_var=$runpath_var
24181
24182# Shared library path variable.
24183shlibpath_var=$shlibpath_var
24184
24185# Is shlibpath searched before the hard-coded library search path?
24186shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24187
24188# Format of library name prefix.
24189libname_spec=$lt_libname_spec
24190
24191# List of archive names. First name is the real one, the rest are links.
24192# The last name is the one that the linker finds with -lNAME
24193library_names_spec=$lt_library_names_spec
24194
24195# The coded name of the library, if different from the real name.
24196soname_spec=$lt_soname_spec
24197
24198# Command to use after installation of a shared archive.
24199postinstall_cmds=$lt_postinstall_cmds
24200
24201# Command to use after uninstallation of a shared archive.
24202postuninstall_cmds=$lt_postuninstall_cmds
24203
24204# Commands used to finish a libtool library installation in a directory.
24205finish_cmds=$lt_finish_cmds
24206
24207# As "finish_cmds", except a single script fragment to be evaled but
24208# not shown.
24209finish_eval=$lt_finish_eval
24210
24211# Whether we should hardcode library paths into libraries.
24212hardcode_into_libs=$hardcode_into_libs
24213
24214# Compile-time system search path for libraries.
24215sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24216
24217# Run-time system search path for libraries.
24218sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24219
24220# Whether dlopen is supported.
24221dlopen_support=$enable_dlopen
24222
24223# Whether dlopen of programs is supported.
24224dlopen_self=$enable_dlopen_self
24225
24226# Whether dlopen of statically linked programs is supported.
24227dlopen_self_static=$enable_dlopen_self_static
24228
24229# Commands to strip libraries.
24230old_striplib=$lt_old_striplib
24231striplib=$lt_striplib
24232
24233
24234# The linker used to build libraries.
24235LD=$lt_LD
24236
24237# Commands used to build an old-style archive.
24238old_archive_cmds=$lt_old_archive_cmds
24239
24240# A language specific compiler.
24241CC=$lt_compiler
24242
24243# Is the compiler the GNU compiler?
24244with_gcc=$GCC
24245
24246# Compiler flag to turn off builtin functions.
24247no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24248
24249# How to pass a linker flag through the compiler.
24250wl=$lt_lt_prog_compiler_wl
24251
24252# Additional compiler flags for building library objects.
24253pic_flag=$lt_lt_prog_compiler_pic
24254
24255# Compiler flag to prevent dynamic linking.
24256link_static_flag=$lt_lt_prog_compiler_static
24257
24258# Does compiler simultaneously support -c and -o options?
24259compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24260
24261# Whether or not to add -lc for building shared libraries.
24262build_libtool_need_lc=$archive_cmds_need_lc
24263
24264# Whether or not to disallow shared libs when runtime libs are static.
24265allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24266
24267# Compiler flag to allow reflexive dlopens.
24268export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24269
24270# Compiler flag to generate shared objects directly from archives.
24271whole_archive_flag_spec=$lt_whole_archive_flag_spec
24272
24273# Whether the compiler copes with passing no objects directly.
24274compiler_needs_object=$lt_compiler_needs_object
24275
24276# Create an old-style archive from a shared archive.
24277old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24278
24279# Create a temporary old-style archive to link instead of a shared archive.
24280old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24281
24282# Commands used to build a shared archive.
24283archive_cmds=$lt_archive_cmds
24284archive_expsym_cmds=$lt_archive_expsym_cmds
24285
24286# Commands used to build a loadable module if different from building
24287# a shared archive.
24288module_cmds=$lt_module_cmds
24289module_expsym_cmds=$lt_module_expsym_cmds
24290
24291# Whether we are building with GNU ld or not.
24292with_gnu_ld=$lt_with_gnu_ld
24293
24294# Flag that allows shared libraries with undefined symbols to be built.
24295allow_undefined_flag=$lt_allow_undefined_flag
24296
24297# Flag that enforces no undefined symbols.
24298no_undefined_flag=$lt_no_undefined_flag
24299
24300# Flag to hardcode \$libdir into a binary during linking.
24301# This must work even if \$libdir does not exist
24302hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24303
24304# If ld is used when linking, flag to hardcode \$libdir into a binary
24305# during linking. This must work even if \$libdir does not exist.
24306hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24307
24308# Whether we need a single "-rpath" flag with a separated argument.
24309hardcode_libdir_separator=$lt_hardcode_libdir_separator
24310
24311# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24312# DIR into the resulting binary.
24313hardcode_direct=$hardcode_direct
24314
24315# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24316# DIR into the resulting binary and the resulting library dependency is
24317# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24318# library is relocated.
24319hardcode_direct_absolute=$hardcode_direct_absolute
24320
24321# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24322# into the resulting binary.
24323hardcode_minus_L=$hardcode_minus_L
24324
24325# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24326# into the resulting binary.
24327hardcode_shlibpath_var=$hardcode_shlibpath_var
24328
24329# Set to "yes" if building a shared library automatically hardcodes DIR
24330# into the library and all subsequent libraries and executables linked
24331# against it.
24332hardcode_automatic=$hardcode_automatic
24333
24334# Set to yes if linker adds runtime paths of dependent libraries
24335# to runtime path list.
24336inherit_rpath=$inherit_rpath
24337
24338# Whether libtool must link a program against all its dependency libraries.
24339link_all_deplibs=$link_all_deplibs
24340
24341# Fix the shell variable \$srcfile for the compiler.
24342fix_srcfile_path=$lt_fix_srcfile_path
24343
24344# Set to "yes" if exported symbols are required.
24345always_export_symbols=$always_export_symbols
24346
24347# The commands to list exported symbols.
24348export_symbols_cmds=$lt_export_symbols_cmds
24349
24350# Symbols that should not be listed in the preloaded symbols.
24351exclude_expsyms=$lt_exclude_expsyms
24352
24353# Symbols that must always be exported.
24354include_expsyms=$lt_include_expsyms
24355
24356# Commands necessary for linking programs (against libraries) with templates.
24357prelink_cmds=$lt_prelink_cmds
24358
24359# Specify filename containing input files.
24360file_list_spec=$lt_file_list_spec
24361
24362# How to hardcode a shared library path into an executable.
24363hardcode_action=$hardcode_action
24364
24365# ### END LIBTOOL CONFIG
24366
24367_LT_EOF
24368
24369 case $host_os in
24370 aix3*)
24371 cat <<\_LT_EOF >> "$cfgfile"
24372# AIX sometimes has problems with the GCC collect2 program. For some
24373# reason, if we set the COLLECT_NAMES environment variable, the problems
24374# vanish in a puff of smoke.
24375if test "X${COLLECT_NAMES+set}" != Xset; then
24376 COLLECT_NAMES=
24377 export COLLECT_NAMES
24378fi
24379_LT_EOF
24380 ;;
24381 esac
24382
24383
24384ltmain="$ac_aux_dir/ltmain.sh"
24385
24386
24387 # We use sed instead of cat because bash on DJGPP gets confused if
24388 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24389 # text mode, it properly converts lines to CR/LF. This bash problem
24390 # is reportedly fixed, but why not run on old versions too?
24391 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24392 || (rm -f "$cfgfile"; exit 1)
24393
24394 case $xsi_shell in
24395 yes)
24396 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 24397
d7040cdb
SE
24398# func_dirname file append nondir_replacement
24399# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24400# otherwise set result to NONDIR_REPLACEMENT.
24401func_dirname ()
24402{
24403 case ${1} in
24404 */*) func_dirname_result="${1%/*}${2}" ;;
24405 * ) func_dirname_result="${3}" ;;
24406 esac
24407}
24408
24409# func_basename file
24410func_basename ()
24411{
24412 func_basename_result="${1##*/}"
24413}
24414
718a6fd8
SE
24415# func_dirname_and_basename file append nondir_replacement
24416# perform func_basename and func_dirname in a single function
24417# call:
24418# dirname: Compute the dirname of FILE. If nonempty,
24419# add APPEND to the result, otherwise set result
24420# to NONDIR_REPLACEMENT.
24421# value returned in "$func_dirname_result"
24422# basename: Compute filename of FILE.
24423# value retuned in "$func_basename_result"
24424# Implementation must be kept synchronized with func_dirname
24425# and func_basename. For efficiency, we do not delegate to
24426# those functions but instead duplicate the functionality here.
24427func_dirname_and_basename ()
24428{
24429 case ${1} in
24430 */*) func_dirname_result="${1%/*}${2}" ;;
24431 * ) func_dirname_result="${3}" ;;
24432 esac
24433 func_basename_result="${1##*/}"
24434}
24435
d7040cdb
SE
24436# func_stripname prefix suffix name
24437# strip PREFIX and SUFFIX off of NAME.
24438# PREFIX and SUFFIX must not contain globbing or regex special
24439# characters, hashes, percent signs, but SUFFIX may contain a leading
24440# dot (in which case that matches only a dot).
24441func_stripname ()
24442{
24443 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24444 # positional parameters, so assign one to ordinary parameter first.
24445 func_stripname_result=${3}
24446 func_stripname_result=${func_stripname_result#"${1}"}
24447 func_stripname_result=${func_stripname_result%"${2}"}
24448}
24449
24450# func_opt_split
24451func_opt_split ()
24452{
24453 func_opt_split_opt=${1%%=*}
24454 func_opt_split_arg=${1#*=}
24455}
24456
24457# func_lo2o object
24458func_lo2o ()
24459{
24460 case ${1} in
24461 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24462 *) func_lo2o_result=${1} ;;
24463 esac
24464}
718a6fd8
SE
24465
24466# func_xform libobj-or-source
24467func_xform ()
24468{
24469 func_xform_result=${1%.*}.lo
24470}
24471
24472# func_arith arithmetic-term...
24473func_arith ()
24474{
24475 func_arith_result=$(( $* ))
24476}
24477
24478# func_len string
24479# STRING may not start with a hyphen.
24480func_len ()
24481{
24482 func_len_result=${#1}
24483}
24484
d7040cdb
SE
24485_LT_EOF
24486 ;;
24487 *) # Bourne compatible functions.
24488 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 24489
d7040cdb
SE
24490# func_dirname file append nondir_replacement
24491# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24492# otherwise set result to NONDIR_REPLACEMENT.
24493func_dirname ()
24494{
24495 # Extract subdirectory from the argument.
24496 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24497 if test "X$func_dirname_result" = "X${1}"; then
24498 func_dirname_result="${3}"
24499 else
24500 func_dirname_result="$func_dirname_result${2}"
24501 fi
24502}
24503
24504# func_basename file
24505func_basename ()
24506{
24507 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24508}
24509
718a6fd8 24510
d7040cdb
SE
24511# func_stripname prefix suffix name
24512# strip PREFIX and SUFFIX off of NAME.
24513# PREFIX and SUFFIX must not contain globbing or regex special
24514# characters, hashes, percent signs, but SUFFIX may contain a leading
24515# dot (in which case that matches only a dot).
24516# func_strip_suffix prefix name
24517func_stripname ()
24518{
24519 case ${2} in
24520 .*) func_stripname_result=`$ECHO "X${3}" \
24521 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24522 *) func_stripname_result=`$ECHO "X${3}" \
24523 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24524 esac
24525}
24526
24527# sed scripts:
24528my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24529my_sed_long_arg='1s/^-[^=]*=//'
24530
24531# func_opt_split
24532func_opt_split ()
24533{
24534 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24535 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24536}
24537
24538# func_lo2o object
24539func_lo2o ()
24540{
24541 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24542}
718a6fd8
SE
24543
24544# func_xform libobj-or-source
24545func_xform ()
24546{
24547 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24548}
24549
24550# func_arith arithmetic-term...
24551func_arith ()
24552{
24553 func_arith_result=`expr "$@"`
24554}
24555
24556# func_len string
24557# STRING may not start with a hyphen.
24558func_len ()
24559{
24560 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24561}
24562
d7040cdb
SE
24563_LT_EOF
24564esac
24565
24566case $lt_shell_append in
24567 yes)
24568 cat << \_LT_EOF >> "$cfgfile"
24569
24570# func_append var value
24571# Append VALUE to the end of shell variable VAR.
24572func_append ()
24573{
24574 eval "$1+=\$2"
24575}
24576_LT_EOF
24577 ;;
24578 *)
24579 cat << \_LT_EOF >> "$cfgfile"
24580
24581# func_append var value
24582# Append VALUE to the end of shell variable VAR.
24583func_append ()
24584{
24585 eval "$1=\$$1\$2"
24586}
718a6fd8 24587
d7040cdb
SE
24588_LT_EOF
24589 ;;
24590 esac
24591
24592
24593 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24594 || (rm -f "$cfgfile"; exit 1)
24595
24596 mv -f "$cfgfile" "$ofile" ||
24597 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24598 chmod +x "$ofile"
24599
f5385ebf 24600 ;;
20e95c23
DJ
24601 default-1 )
24602 for ac_file in $CONFIG_FILES; do
24603 # Support "outfile[:infile[:infile...]]"
24604 case "$ac_file" in
24605 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24606 esac
24607 # PO directories have a Makefile.in generated from Makefile.in.in.
24608 case "$ac_file" in */Makefile.in)
24609 # Adjust a relative srcdir.
24610 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24611 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24612 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24613 # In autoconf-2.13 it is called $ac_given_srcdir.
24614 # In autoconf-2.50 it is called $srcdir.
24615 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24616 case "$ac_given_srcdir" in
24617 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24618 /*) top_srcdir="$ac_given_srcdir" ;;
24619 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24620 esac
24621 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24622 rm -f "$ac_dir/POTFILES"
24623 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24624 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24625 POMAKEFILEDEPS="POTFILES.in"
24626 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24627 # on $ac_dir but don't depend on user-specified configuration
24628 # parameters.
24629 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24630 # The LINGUAS file contains the set of available languages.
24631 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24632 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24633 fi
24634 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24635 # Hide the ALL_LINGUAS assigment from automake.
24636 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24637 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24638 else
24639 # The set of available languages was given in configure.in.
24640 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24641 fi
24642 case "$ac_given_srcdir" in
24643 .) srcdirpre= ;;
24644 *) srcdirpre='$(srcdir)/' ;;
24645 esac
24646 POFILES=
24647 GMOFILES=
24648 UPDATEPOFILES=
24649 DUMMYPOFILES=
24650 for lang in $ALL_LINGUAS; do
24651 POFILES="$POFILES $srcdirpre$lang.po"
24652 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24653 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24654 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24655 done
24656 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24657 # environment variable.
24658 INST_LINGUAS=
24659 if test -n "$ALL_LINGUAS"; then
24660 for presentlang in $ALL_LINGUAS; do
24661 useit=no
24662 if test "%UNSET%" != "$LINGUAS"; then
24663 desiredlanguages="$LINGUAS"
24664 else
24665 desiredlanguages="$ALL_LINGUAS"
24666 fi
24667 for desiredlang in $desiredlanguages; do
24668 # Use the presentlang catalog if desiredlang is
24669 # a. equal to presentlang, or
24670 # b. a variant of presentlang (because in this case,
24671 # presentlang can be used as a fallback for messages
24672 # which are not translated in the desiredlang catalog).
24673 case "$desiredlang" in
24674 "$presentlang"*) useit=yes;;
24675 esac
24676 done
24677 if test $useit = yes; then
24678 INST_LINGUAS="$INST_LINGUAS $presentlang"
24679 fi
24680 done
24681 fi
24682 CATALOGS=
24683 if test -n "$INST_LINGUAS"; then
24684 for lang in $INST_LINGUAS; do
24685 CATALOGS="$CATALOGS $lang.gmo"
24686 done
24687 fi
24688 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24689 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"
24690 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24691 if test -f "$f"; then
24692 case "$f" in
24693 *.orig | *.bak | *~) ;;
24694 *) cat "$f" >> "$ac_dir/Makefile" ;;
24695 esac
24696 fi
24697 done
24698 fi
24699 ;;
24700 esac
24701 done ;;
d5efd9fc
AM
24702 bfd_stdint.h )
24703if test "$GCC" = yes; then
24704 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24705else
24706 echo "/* generated for $CC */" > tmp-stdint.h
24707fi
24708
24709sed 's/^ *//' >> tmp-stdint.h <<EOF
24710
24711 #ifndef GCC_GENERATED_STDINT_H
24712 #define GCC_GENERATED_STDINT_H 1
24713
24714 #include <sys/types.h>
24715EOF
24716
24717if test "$acx_cv_header_stdint" != stdint.h; then
24718 echo "#include <stddef.h>" >> tmp-stdint.h
24719fi
24720if test "$acx_cv_header_stdint" != stddef.h; then
24721 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24722fi
24723
24724sed 's/^ *//' >> tmp-stdint.h <<EOF
24725 /* glibc uses these symbols as guards to prevent redefinitions. */
24726 #ifdef __int8_t_defined
24727 #define _INT8_T
24728 #define _INT16_T
24729 #define _INT32_T
24730 #endif
24731 #ifdef __uint32_t_defined
24732 #define _UINT32_T
24733 #endif
24734
24735EOF
24736
24737# ----------------- done header, emit basic int types -------------
24738if test "$acx_cv_header_stdint" = stddef.h; then
24739 sed 's/^ *//' >> tmp-stdint.h <<EOF
24740
24741 #ifndef _UINT8_T
24742 #define _UINT8_T
24743 #ifndef __uint8_t_defined
24744 #define __uint8_t_defined
24745 typedef unsigned $acx_cv_type_int8_t uint8_t;
24746 #endif
24747 #endif
24748
24749 #ifndef _UINT16_T
24750 #define _UINT16_T
24751 #ifndef __uint16_t_defined
24752 #define __uint16_t_defined
24753 typedef unsigned $acx_cv_type_int16_t uint16_t;
24754 #endif
24755 #endif
24756
24757 #ifndef _UINT32_T
24758 #define _UINT32_T
24759 #ifndef __uint32_t_defined
24760 #define __uint32_t_defined
24761 typedef unsigned $acx_cv_type_int32_t uint32_t;
24762 #endif
24763 #endif
24764
24765 #ifndef _INT8_T
24766 #define _INT8_T
24767 #ifndef __int8_t_defined
24768 #define __int8_t_defined
24769 typedef $acx_cv_type_int8_t int8_t;
24770 #endif
24771 #endif
24772
24773 #ifndef _INT16_T
24774 #define _INT16_T
24775 #ifndef __int16_t_defined
24776 #define __int16_t_defined
24777 typedef $acx_cv_type_int16_t int16_t;
24778 #endif
24779 #endif
24780
24781 #ifndef _INT32_T
24782 #define _INT32_T
24783 #ifndef __int32_t_defined
24784 #define __int32_t_defined
24785 typedef $acx_cv_type_int32_t int32_t;
24786 #endif
24787 #endif
24788EOF
24789elif test "$ac_cv_type_u_int32_t" = yes; then
24790 sed 's/^ *//' >> tmp-stdint.h <<EOF
24791
24792 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24793 #ifndef _INT8_T
24794 #define _INT8_T
24795 #endif
24796 #ifndef _INT16_T
24797 #define _INT16_T
24798 #endif
24799 #ifndef _INT32_T
24800 #define _INT32_T
24801 #endif
24802
24803 #ifndef _UINT8_T
24804 #define _UINT8_T
24805 #ifndef __uint8_t_defined
24806 #define __uint8_t_defined
24807 typedef u_int8_t uint8_t;
24808 #endif
24809 #endif
24810
24811 #ifndef _UINT16_T
24812 #define _UINT16_T
24813 #ifndef __uint16_t_defined
24814 #define __uint16_t_defined
24815 typedef u_int16_t uint16_t;
24816 #endif
24817 #endif
24818
24819 #ifndef _UINT32_T
24820 #define _UINT32_T
24821 #ifndef __uint32_t_defined
24822 #define __uint32_t_defined
24823 typedef u_int32_t uint32_t;
24824 #endif
24825 #endif
24826EOF
24827else
24828 sed 's/^ *//' >> tmp-stdint.h <<EOF
24829
24830 /* Some systems have guard macros to prevent redefinitions, define them. */
24831 #ifndef _INT8_T
24832 #define _INT8_T
24833 #endif
24834 #ifndef _INT16_T
24835 #define _INT16_T
24836 #endif
24837 #ifndef _INT32_T
24838 #define _INT32_T
24839 #endif
24840 #ifndef _UINT8_T
24841 #define _UINT8_T
24842 #endif
24843 #ifndef _UINT16_T
24844 #define _UINT16_T
24845 #endif
24846 #ifndef _UINT32_T
24847 #define _UINT32_T
24848 #endif
24849EOF
24850fi
24851
24852# ------------- done basic int types, emit int64_t types ------------
24853if test "$ac_cv_type_uint64_t" = yes; then
24854 sed 's/^ *//' >> tmp-stdint.h <<EOF
24855
24856 /* system headers have good uint64_t and int64_t */
24857 #ifndef _INT64_T
24858 #define _INT64_T
24859 #endif
24860 #ifndef _UINT64_T
24861 #define _UINT64_T
24862 #endif
24863EOF
24864elif test "$ac_cv_type_u_int64_t" = yes; then
24865 sed 's/^ *//' >> tmp-stdint.h <<EOF
24866
24867 /* system headers have an u_int64_t (and int64_t) */
24868 #ifndef _INT64_T
24869 #define _INT64_T
24870 #endif
24871 #ifndef _UINT64_T
24872 #define _UINT64_T
24873 #ifndef __uint64_t_defined
24874 #define __uint64_t_defined
24875 typedef u_int64_t uint64_t;
24876 #endif
24877 #endif
24878EOF
24879elif test -n "$acx_cv_type_int64_t"; then
24880 sed 's/^ *//' >> tmp-stdint.h <<EOF
24881
24882 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24883 #ifndef _INT64_T
24884 #define _INT64_T
24885 typedef $acx_cv_type_int64_t int64_t;
24886 #endif
24887 #ifndef _UINT64_T
24888 #define _UINT64_T
24889 #ifndef __uint64_t_defined
24890 #define __uint64_t_defined
24891 typedef unsigned $acx_cv_type_int64_t uint64_t;
24892 #endif
24893 #endif
24894EOF
24895else
24896 sed 's/^ *//' >> tmp-stdint.h <<EOF
24897
24898 /* some common heuristics for int64_t, using compiler-specific tests */
24899 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24900 #ifndef _INT64_T
24901 #define _INT64_T
24902 #ifndef __int64_t_defined
24903 typedef long long int64_t;
24904 #endif
24905 #endif
24906 #ifndef _UINT64_T
24907 #define _UINT64_T
24908 typedef unsigned long long uint64_t;
24909 #endif
24910
24911 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24912 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24913 does not implement __extension__. But that compiler doesn't define
24914 __GNUC_MINOR__. */
24915 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24916 # define __extension__
24917 # endif
24918
24919 # ifndef _INT64_T
24920 # define _INT64_T
24921 __extension__ typedef long long int64_t;
24922 # endif
24923 # ifndef _UINT64_T
24924 # define _UINT64_T
24925 __extension__ typedef unsigned long long uint64_t;
24926 # endif
24927
24928 #elif !defined __STRICT_ANSI__
24929 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24930
24931 # ifndef _INT64_T
24932 # define _INT64_T
24933 typedef __int64 int64_t;
24934 # endif
24935 # ifndef _UINT64_T
24936 # define _UINT64_T
24937 typedef unsigned __int64 uint64_t;
24938 # endif
24939 # endif /* compiler */
24940
24941 #endif /* ANSI version */
24942EOF
24943fi
24944
24945# ------------- done int64_t types, emit intptr types ------------
24946if test "$ac_cv_type_uintptr_t" != yes; then
24947 sed 's/^ *//' >> tmp-stdint.h <<EOF
24948
24949 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24950 #ifndef __uintptr_t_defined
24951 typedef u$acx_cv_type_intptr_t uintptr_t;
24952 #endif
24953 #ifndef __intptr_t_defined
24954 typedef $acx_cv_type_intptr_t intptr_t;
24955 #endif
24956EOF
24957fi
24958
24959# ------------- done intptr types, emit int_least types ------------
24960if test "$ac_cv_type_int_least32_t" != yes; then
24961 sed 's/^ *//' >> tmp-stdint.h <<EOF
24962
24963 /* Define int_least types */
24964 typedef int8_t int_least8_t;
24965 typedef int16_t int_least16_t;
24966 typedef int32_t int_least32_t;
24967 #ifdef _INT64_T
24968 typedef int64_t int_least64_t;
24969 #endif
24970
24971 typedef uint8_t uint_least8_t;
24972 typedef uint16_t uint_least16_t;
24973 typedef uint32_t uint_least32_t;
24974 #ifdef _UINT64_T
24975 typedef uint64_t uint_least64_t;
24976 #endif
24977EOF
24978fi
24979
24980# ------------- done intptr types, emit int_fast types ------------
24981if test "$ac_cv_type_int_fast32_t" != yes; then
24982 sed 's/^ *//' >> tmp-stdint.h <<EOF
24983
24984 /* Define int_fast types. short is often slow */
24985 typedef int8_t int_fast8_t;
24986 typedef int int_fast16_t;
24987 typedef int32_t int_fast32_t;
24988 #ifdef _INT64_T
24989 typedef int64_t int_fast64_t;
24990 #endif
24991
24992 typedef uint8_t uint_fast8_t;
24993 typedef unsigned int uint_fast16_t;
24994 typedef uint32_t uint_fast32_t;
24995 #ifdef _UINT64_T
24996 typedef uint64_t uint_fast64_t;
24997 #endif
24998EOF
24999fi
25000
25001if test "$ac_cv_type_uintmax_t" != yes; then
25002 sed 's/^ *//' >> tmp-stdint.h <<EOF
25003
25004 /* Define intmax based on what we found */
25005 #ifdef _INT64_T
25006 typedef int64_t intmax_t;
25007 #else
25008 typedef long intmax_t;
25009 #endif
25010 #ifdef _UINT64_T
25011 typedef uint64_t uintmax_t;
25012 #else
25013 typedef unsigned long uintmax_t;
25014 #endif
25015EOF
25016fi
25017
25018sed 's/^ *//' >> tmp-stdint.h <<EOF
25019
25020 #endif /* GCC_GENERATED_STDINT_H */
25021EOF
25022
25023if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
25024 rm -f tmp-stdint.h
25025else
25026 mv -f tmp-stdint.h bfd_stdint.h
25027fi
25028
25029 ;;
20e95c23
DJ
25030 default )
25031case "$srcdir" in
25032 .) srcdirpre= ;;
25033 *) srcdirpre='$(srcdir)/' ;;
25034esac
25035POFILES=
25036GMOFILES=
25037for lang in dummy $OBSOLETE_ALL_LINGUAS; do
25038 if test $lang != dummy; then
25039 POFILES="$POFILES $srcdirpre$lang.po"
25040 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25041 fi
25042done
25043sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
25044 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
25045 -e "s,@POFILES@,$POFILES," \
25046 -e "s,@GMOFILES@,$GMOFILES," \
25047 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
25048 esac
25049done
25050_ACEOF
25051
25052cat >>$CONFIG_STATUS <<\_ACEOF
25053
25054{ (exit 0); exit 0; }
25055_ACEOF
252b5132 25056chmod +x $CONFIG_STATUS
5464f5a1
NN
25057ac_clean_files=$ac_clean_files_save
25058
25059
25060# configure is writing to config.log, and then calls config.status.
25061# config.status does its own redirection, appending to config.log.
25062# Unfortunately, on DOS this fails, as config.log is still kept open
25063# by configure, so config.status won't be able to write to it; its
25064# output is simply discarded. So we exec the FD to /dev/null,
25065# effectively closing config.log, so it can be properly (re)opened and
25066# appended to by config.status. When coming back to configure, we
25067# need to make the FD available again.
25068if test "$no_create" != yes; then
25069 ac_cs_success=:
25070 ac_config_status_args=
25071 test "$silent" = yes &&
25072 ac_config_status_args="$ac_config_status_args --quiet"
25073 exec 5>/dev/null
25074 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25075 exec 5>>config.log
25076 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25077 # would make configure fail if this is the last instruction.
25078 $ac_cs_success || { (exit 1); exit 1; }
25079fi
252b5132 25080
55c80943 25081