* elf.c (bfd_elf_get_str_section): Fix memory leak caused by
[deliverable/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
5464f5a1 3# Generated by GNU Autoconf 2.59.
252b5132 4#
5464f5a1 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
5464f5a1
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
5464f5a1
NN
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 397
5464f5a1
NN
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
5464f5a1
NN
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="libbfd.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
bce5e5c9 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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP 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=''
252b5132
RH
463
464# Initialize some variables set by options.
5464f5a1
NN
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
5464f5a1 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
5464f5a1
NN
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
5464f5a1 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
5464f5a1 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
5464f5a1 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 526 build_alias=$ac_optarg ;;
252b5132
RH
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132
RH
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
5464f5a1 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
5464f5a1 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
5464f5a1
NN
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
5464f5a1 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
5464f5a1
NN
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
562 *) ac_optarg=yes ;;
563 esac
5464f5a1 564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
5464f5a1 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
5464f5a1
NN
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
5464f5a1 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 589 host_alias=$ac_optarg ;;
252b5132
RH
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 606 libdir=$ac_optarg ;;
252b5132
RH
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
5464f5a1 613 libexecdir=$ac_optarg ;;
252b5132
RH
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5464f5a1 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 627 mandir=$ac_optarg ;;
252b5132
RH
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 634 | --no-cr | --no-c | -n)
252b5132
RH
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 653 prefix=$ac_optarg ;;
252b5132
RH
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 660 program_prefix=$ac_optarg ;;
252b5132
RH
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 667 program_suffix=$ac_optarg ;;
252b5132
RH
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 684 program_transform_name=$ac_optarg ;;
252b5132
RH
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
5464f5a1 694 sbindir=$ac_optarg ;;
252b5132
RH
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
5464f5a1 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
5464f5a1 710 site=$ac_optarg ;;
6be7c12c 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 715 srcdir=$ac_optarg ;;
252b5132
RH
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
5464f5a1
NN
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
5464f5a1 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
5464f5a1
NN
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
252b5132 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
5464f5a1 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
5464f5a1 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
5464f5a1
NN
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
252b5132
RH
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 766 x_includes=$ac_optarg ;;
252b5132
RH
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 773 x_libraries=$ac_optarg ;;
252b5132 774
5464f5a1
NN
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
5464f5a1
NN
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
252b5132 790 *)
5464f5a1
NN
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
5464f5a1
NN
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
252b5132 805fi
252b5132 806
5464f5a1
NN
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
6be7c12c 817
5464f5a1
NN
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 821do
5464f5a1
NN
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
252b5132
RH
827 esac
828done
829
5464f5a1
NN
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
252b5132 847
5464f5a1
NN
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
5464f5a1
NN
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
252b5132
RH
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
5464f5a1
NN
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
5464f5a1
NN
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
b3baf5d0 922
5464f5a1
NN
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
252b5132 931
5464f5a1 932Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 933
5464f5a1
NN
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 936
5464f5a1 937Defaults for the options are specified in brackets.
6be7c12c 938
5464f5a1
NN
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952 cat <<_ACEOF
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
6be7c12c 958
5464f5a1
NN
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
6be7c12c 963
5464f5a1 964For better control, use the options below.
6be7c12c 965
5464f5a1
NN
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979_ACEOF
6be7c12c 980
5464f5a1 981 cat <<\_ACEOF
6be7c12c 982
5464f5a1
NN
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 987
5464f5a1
NN
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
252b5132 993fi
252b5132 994
5464f5a1 995if test -n "$ac_init_help"; then
6be7c12c 996
5464f5a1 997 cat <<\_ACEOF
252b5132 998
5464f5a1
NN
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=no]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
5464f5a1
NN
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
6ec7057a 1014 --enable-secureplt Default to creating read-only plt entries
504b7d20 1015 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
241a6c40
AM
1016 --enable-werror treat compile warnings as errors
1017 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
5464f5a1
NN
1020 --enable-install-libbfd controls installation of libbfd and related headers
1021 --disable-nls do not use Native Language Support
1022
1023Optional Packages:
1024 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1025 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1026 --with-pic try to use only PIC/non-PIC objects [default=use
1027 both]
1028 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1029 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1030 --with-separate-debug-dir=DIR
1031 Look for global separate debug info in DIR
1032 [default=LIBDIR/debug]
a1ac8190
JM
1033 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1034 Binutils"
c428fa83 1035 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
1036
1037Some influential environment variables:
1038 CC C compiler command
1039 CFLAGS C compiler flags
1040 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1041 nonstandard directory <lib dir>
1042 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043 headers in a nonstandard directory <include dir>
1044 CPP C preprocessor
1045
1046Use these variables to override the choices made by `configure' or to help
1047it to find libraries and programs with nonstandard names/locations.
1048
1049_ACEOF
1050fi
1051
1052if test "$ac_init_help" = "recursive"; then
1053 # If there are subdirs, report their specific --help.
1054 ac_popdir=`pwd`
1055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056 test -d $ac_dir || continue
1057 ac_builddir=.
1058
1059if test "$ac_dir" != .; then
1060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061 # A "../" for each directory in $ac_dir_suffix.
1062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063else
1064 ac_dir_suffix= ac_top_builddir=
1065fi
1066
1067case $srcdir in
1068 .) # No --srcdir option. We are building in place.
1069 ac_srcdir=.
1070 if test -z "$ac_top_builddir"; then
1071 ac_top_srcdir=.
1072 else
1073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074 fi ;;
1075 [\\/]* | ?:[\\/]* ) # Absolute path.
1076 ac_srcdir=$srcdir$ac_dir_suffix;
1077 ac_top_srcdir=$srcdir ;;
1078 *) # Relative path.
1079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
1081esac
1082
5464f5a1
NN
1083# Do not use `cd foo && pwd` to compute absolute paths, because
1084# the directories may not exist.
1085case `pwd` in
1086.) ac_abs_builddir="$ac_dir";;
1087*)
1088 case "$ac_dir" in
1089 .) ac_abs_builddir=`pwd`;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092 esac;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_top_builddir=${ac_top_builddir}.;;
1096*)
1097 case ${ac_top_builddir}. in
1098 .) ac_abs_top_builddir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101 esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_srcdir=$ac_srcdir;;
1105*)
1106 case $ac_srcdir in
1107 .) ac_abs_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110 esac;;
1111esac
1112case $ac_abs_builddir in
1113.) ac_abs_top_srcdir=$ac_top_srcdir;;
1114*)
1115 case $ac_top_srcdir in
1116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119 esac;;
1120esac
6be7c12c 1121
5464f5a1
NN
1122 cd $ac_dir
1123 # Check for guested configure; otherwise get Cygnus style configure.
1124 if test -f $ac_srcdir/configure.gnu; then
1125 echo
1126 $SHELL $ac_srcdir/configure.gnu --help=recursive
1127 elif test -f $ac_srcdir/configure; then
1128 echo
1129 $SHELL $ac_srcdir/configure --help=recursive
1130 elif test -f $ac_srcdir/configure.ac ||
1131 test -f $ac_srcdir/configure.in; then
1132 echo
1133 $ac_configure --help
1134 else
1135 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136 fi
49c96104 1137 cd $ac_popdir
5464f5a1 1138 done
6be7c12c
AO
1139fi
1140
5464f5a1
NN
1141test -n "$ac_init_help" && exit 0
1142if $ac_init_version; then
1143 cat <<\_ACEOF
6be7c12c 1144
5464f5a1
NN
1145Copyright (C) 2003 Free Software Foundation, Inc.
1146This configure script is free software; the Free Software Foundation
1147gives unlimited permission to copy, distribute and modify it.
1148_ACEOF
1149 exit 0
1150fi
1151exec 5>config.log
1152cat >&5 <<_ACEOF
1153This file contains any messages produced by compilers while
1154running configure, to aid debugging if configure makes a mistake.
6be7c12c 1155
5464f5a1
NN
1156It was created by $as_me, which was
1157generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1158
5464f5a1 1159 $ $0 $@
6be7c12c 1160
5464f5a1
NN
1161_ACEOF
1162{
1163cat <<_ASUNAME
1164## --------- ##
1165## Platform. ##
1166## --------- ##
1167
1168hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1169uname -m = `(uname -m) 2>/dev/null || echo unknown`
1170uname -r = `(uname -r) 2>/dev/null || echo unknown`
1171uname -s = `(uname -s) 2>/dev/null || echo unknown`
1172uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173
1174/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1175/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1176
1177/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1178/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1179/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1180hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1181/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1182/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1183/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1184
1185_ASUNAME
1186
1187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1188for as_dir in $PATH
1189do
1190 IFS=$as_save_IFS
1191 test -z "$as_dir" && as_dir=.
1192 echo "PATH: $as_dir"
1193done
6be7c12c 1194
5464f5a1 1195} >&5
66e25bab 1196
5464f5a1 1197cat >&5 <<_ACEOF
b3baf5d0 1198
6be7c12c 1199
5464f5a1
NN
1200## ----------- ##
1201## Core tests. ##
1202## ----------- ##
252b5132 1203
5464f5a1 1204_ACEOF
c5d1701e 1205
6be7c12c 1206
5464f5a1
NN
1207# Keep a trace of the command line.
1208# Strip out --no-create and --no-recursion so they do not pile up.
1209# Strip out --silent because we don't want to record it for future runs.
1210# Also quote any args containing shell meta-characters.
1211# Make two passes to allow for proper duplicate-argument suppression.
1212ac_configure_args=
1213ac_configure_args0=
1214ac_configure_args1=
1215ac_sep=
1216ac_must_keep_next=false
1217for ac_pass in 1 2
1218do
1219 for ac_arg
1220 do
1221 case $ac_arg in
1222 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 continue ;;
1226 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1227 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1228 esac
1229 case $ac_pass in
1230 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231 2)
1232 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1233 if test $ac_must_keep_next = true; then
1234 ac_must_keep_next=false # Got value, back to normal.
1235 else
1236 case $ac_arg in
1237 *=* | --config-cache | -C | -disable-* | --disable-* \
1238 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1239 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1240 | -with-* | --with-* | -without-* | --without-* | --x)
1241 case "$ac_configure_args0 " in
1242 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1243 esac
1244 ;;
1245 -* ) ac_must_keep_next=true ;;
1246 esac
1247 fi
1248 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1249 # Get rid of the leading space.
1250 ac_sep=" "
1251 ;;
1252 esac
1253 done
1254done
1255$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1256$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257
1258# When interrupted or exit'd, cleanup temporary files, and complete
1259# config.log. We remove comments because anyway the quotes in there
1260# would cause problems or look ugly.
1261# WARNING: Be sure not to use single quotes in there, as some shells,
1262# such as our DU 5.0 friend, will then `close' the trap.
1263trap 'exit_status=$?
1264 # Save into config.log some information that might help in debugging.
1265 {
1266 echo
1267
1268 cat <<\_ASBOX
1269## ---------------- ##
1270## Cache variables. ##
1271## ---------------- ##
1272_ASBOX
1273 echo
1274 # The following way of writing the cache mishandles newlines in values,
1275{
1276 (set) 2>&1 |
1277 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1278 *ac_space=\ *)
1279 sed -n \
1280 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1282 ;;
1283 *)
1284 sed -n \
1285 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286 ;;
1287 esac;
1288}
1289 echo
1290
1291 cat <<\_ASBOX
1292## ----------------- ##
1293## Output variables. ##
1294## ----------------- ##
1295_ASBOX
1296 echo
1297 for ac_var in $ac_subst_vars
1298 do
1299 eval ac_val=$`echo $ac_var`
1300 echo "$ac_var='"'"'$ac_val'"'"'"
1301 done | sort
1302 echo
1303
1304 if test -n "$ac_subst_files"; then
1305 cat <<\_ASBOX
1306## ------------- ##
1307## Output files. ##
1308## ------------- ##
1309_ASBOX
1310 echo
1311 for ac_var in $ac_subst_files
1312 do
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1315 done | sort
1316 echo
1317 fi
1318
1319 if test -s confdefs.h; then
1320 cat <<\_ASBOX
1321## ----------- ##
1322## confdefs.h. ##
1323## ----------- ##
1324_ASBOX
1325 echo
1326 sed "/^$/d" confdefs.h | sort
1327 echo
1328 fi
1329 test "$ac_signal" != 0 &&
1330 echo "$as_me: caught signal $ac_signal"
1331 echo "$as_me: exit $exit_status"
1332 } >&5
1333 rm -f core *.core &&
1334 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1335 exit $exit_status
1336 ' 0
1337for ac_signal in 1 2 13 15; do
1338 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1339done
1340ac_signal=0
1341
1342# confdefs.h avoids OS command line length limits that DEFS can exceed.
1343rm -rf conftest* confdefs.h
1344# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345echo >confdefs.h
1346
1347# Predefined preprocessor variables.
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_NAME "$PACKAGE_NAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_VERSION "$PACKAGE_VERSION"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_STRING "$PACKAGE_STRING"
1366_ACEOF
1367
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1371_ACEOF
1372
1373
1374# Let the site file select an alternate cache file if it wants to.
1375# Prefer explicitly selected file to automatically selected ones.
1376if test -z "$CONFIG_SITE"; then
1377 if test "x$prefix" != xNONE; then
1378 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1379 else
1380 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381 fi
1382fi
1383for ac_site_file in $CONFIG_SITE; do
1384 if test -r "$ac_site_file"; then
1385 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1386echo "$as_me: loading site script $ac_site_file" >&6;}
1387 sed 's/^/| /' "$ac_site_file" >&5
1388 . "$ac_site_file"
1389 fi
1390done
1391
1392if test -r "$cache_file"; then
1393 # Some versions of bash will fail to source /dev/null (special
1394 # files actually), so we avoid doing that.
1395 if test -f "$cache_file"; then
1396 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1397echo "$as_me: loading cache $cache_file" >&6;}
1398 case $cache_file in
1399 [\\/]* | ?:[\\/]* ) . $cache_file;;
1400 *) . ./$cache_file;;
1401 esac
1402 fi
1403else
1404 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1405echo "$as_me: creating cache $cache_file" >&6;}
1406 >$cache_file
1407fi
1408
1409# Check that the precious variables saved in the cache have kept the same
1410# value.
1411ac_cache_corrupted=false
1412for ac_var in `(set) 2>&1 |
1413 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1414 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1415 eval ac_new_set=\$ac_env_${ac_var}_set
1416 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1417 eval ac_new_val="\$ac_env_${ac_var}_value"
1418 case $ac_old_set,$ac_new_set in
1419 set,)
1420 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1421echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1422 ac_cache_corrupted=: ;;
1423 ,set)
1424 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1425echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1426 ac_cache_corrupted=: ;;
1427 ,);;
1428 *)
1429 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1430 # differences in whitespace do not lead to failure.
1431 ac_old_val_w=`echo x $ac_old_val`
1432 ac_new_val_w=`echo x $ac_new_val`
1433 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1434 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
5464f5a1 1435echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1436 ac_cache_corrupted=:
1437 else
1438 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1439echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1440 eval $ac_var=\$ac_old_val
1441 fi
1442 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1443echo "$as_me: former value: \`$ac_old_val'" >&2;}
1444 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1445echo "$as_me: current value: \`$ac_new_val'" >&2;}
5464f5a1
NN
1446 fi;;
1447 esac
1448 # Pass precious variables to config.status.
1449 if test "$ac_new_set" = set; then
1450 case $ac_new_val in
1451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1452 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1453 *) ac_arg=$ac_var=$ac_new_val ;;
1454 esac
1455 case " $ac_configure_args " in
1456 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1457 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1458 esac
1459 fi
1460done
1461if $ac_cache_corrupted; then
1462 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1463echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1464 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1465echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1466 { (exit 1); exit 1; }; }
1467fi
1468
1469ac_ext=c
1470ac_cpp='$CPP $CPPFLAGS'
1471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473ac_compiler_gnu=$ac_cv_c_compiler_gnu
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495ac_aux_dir=
1496for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1497 if test -f $ac_dir/install-sh; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/install-sh -c"
1500 break
1501 elif test -f $ac_dir/install.sh; then
1502 ac_aux_dir=$ac_dir
1503 ac_install_sh="$ac_aux_dir/install.sh -c"
1504 break
1505 elif test -f $ac_dir/shtool; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/shtool install -c"
1508 break
1509 fi
1510done
1511if test -z "$ac_aux_dir"; then
1512 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1513echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1514 { (exit 1); exit 1; }; }
1515fi
1516ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1517ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1518ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1519
1520# Make sure we can run config.sub.
1521$ac_config_sub sun4 >/dev/null 2>&1 ||
1522 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1523echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1524 { (exit 1); exit 1; }; }
1525
1526echo "$as_me:$LINENO: checking build system type" >&5
1527echo $ECHO_N "checking build system type... $ECHO_C" >&6
1528if test "${ac_cv_build+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1530else
1531 ac_cv_build_alias=$build_alias
1532test -z "$ac_cv_build_alias" &&
1533 ac_cv_build_alias=`$ac_config_guess`
1534test -z "$ac_cv_build_alias" &&
1535 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1536echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1537 { (exit 1); exit 1; }; }
1538ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1540echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1542
1543fi
1544echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1545echo "${ECHO_T}$ac_cv_build" >&6
1546build=$ac_cv_build
1547build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550
1551
1552echo "$as_me:$LINENO: checking host system type" >&5
1553echo $ECHO_N "checking host system type... $ECHO_C" >&6
1554if test "${ac_cv_host+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556else
1557 ac_cv_host_alias=$host_alias
1558test -z "$ac_cv_host_alias" &&
1559 ac_cv_host_alias=$ac_cv_build_alias
1560ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1562echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1564
1565fi
1566echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1567echo "${ECHO_T}$ac_cv_host" >&6
1568host=$ac_cv_host
1569host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572
1573
1574echo "$as_me:$LINENO: checking target system type" >&5
1575echo $ECHO_N "checking target system type... $ECHO_C" >&6
1576if test "${ac_cv_target+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 ac_cv_target_alias=$target_alias
1580test "x$ac_cv_target_alias" = "x" &&
1581 ac_cv_target_alias=$ac_cv_host_alias
1582ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1584echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587fi
1588echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1589echo "${ECHO_T}$ac_cv_target" >&6
1590target=$ac_cv_target
1591target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
1595
1596# The aliases save the names the user supplied, while $host etc.
1597# will get canonicalized.
1598test -n "$target_alias" &&
1599 test "$program_prefix$program_suffix$program_transform_name" = \
1600 NONENONEs,x,x, &&
1601 program_prefix=${target_alias}-
1602ac_ext=c
1603ac_cpp='$CPP $CPPFLAGS'
1604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1606ac_compiler_gnu=$ac_cv_c_compiler_gnu
1607if test -n "$ac_tool_prefix"; then
1608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1609set dummy ${ac_tool_prefix}gcc; ac_word=$2
1610echo "$as_me:$LINENO: checking for $ac_word" >&5
1611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612if test "${ac_cv_prog_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test.
1617else
1618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619for as_dir in $PATH
1620do
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627 break 2
1628 fi
1629done
1630done
1631
1632fi
1633fi
1634CC=$ac_cv_prog_CC
1635if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637echo "${ECHO_T}$CC" >&6
1638else
1639 echo "$as_me:$LINENO: result: no" >&5
1640echo "${ECHO_T}no" >&6
1641fi
1642
1643fi
1644if test -z "$ac_cv_prog_CC"; then
1645 ac_ct_CC=$CC
1646 # Extract the first word of "gcc", so it can be a program name with args.
1647set dummy gcc; ac_word=$2
1648echo "$as_me:$LINENO: checking for $ac_word" >&5
1649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653 if test -n "$ac_ct_CC"; then
1654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655else
1656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657for as_dir in $PATH
1658do
1659 IFS=$as_save_IFS
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_ac_ct_CC="gcc"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 break 2
1666 fi
1667done
1668done
1669
1670fi
1671fi
1672ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673if test -n "$ac_ct_CC"; then
1674 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675echo "${ECHO_T}$ac_ct_CC" >&6
1676else
1677 echo "$as_me:$LINENO: result: no" >&5
1678echo "${ECHO_T}no" >&6
1679fi
1680
1681 CC=$ac_ct_CC
1682else
1683 CC="$ac_cv_prog_CC"
1684fi
1685
1686if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
1688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1689set dummy ${ac_tool_prefix}cc; ac_word=$2
1690echo "$as_me:$LINENO: checking for $ac_word" >&5
1691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694else
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1697else
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="${ac_tool_prefix}cc"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709done
1710done
1711
1712fi
1713fi
1714CC=$ac_cv_prog_CC
1715if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717echo "${ECHO_T}$CC" >&6
1718else
1719 echo "$as_me:$LINENO: result: no" >&5
1720echo "${ECHO_T}no" >&6
1721fi
1722
1723fi
1724if test -z "$ac_cv_prog_CC"; then
1725 ac_ct_CC=$CC
1726 # Extract the first word of "cc", so it can be a program name with args.
1727set dummy cc; ac_word=$2
1728echo "$as_me:$LINENO: checking for $ac_word" >&5
1729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1732else
1733 if test -n "$ac_ct_CC"; then
1734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1735else
1736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737for as_dir in $PATH
1738do
1739 IFS=$as_save_IFS
1740 test -z "$as_dir" && as_dir=.
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743 ac_cv_prog_ac_ct_CC="cc"
1744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745 break 2
1746 fi
1747done
1748done
1749
1750fi
1751fi
1752ac_ct_CC=$ac_cv_prog_ac_ct_CC
1753if test -n "$ac_ct_CC"; then
1754 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1755echo "${ECHO_T}$ac_ct_CC" >&6
1756else
1757 echo "$as_me:$LINENO: result: no" >&5
1758echo "${ECHO_T}no" >&6
1759fi
1760
1761 CC=$ac_ct_CC
1762else
1763 CC="$ac_cv_prog_CC"
1764fi
1765
1766fi
1767if test -z "$CC"; then
1768 # Extract the first word of "cc", so it can be a program name with args.
1769set dummy cc; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1777else
1778 ac_prog_rejected=no
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1787 ac_prog_rejected=yes
1788 continue
1789 fi
1790 ac_cv_prog_CC="cc"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1793 fi
1794done
1795done
1796
1797if test $ac_prog_rejected = yes; then
1798 # We found a bogon in the path, so make sure we never use it.
1799 set dummy $ac_cv_prog_CC
1800 shift
1801 if test $# != 0; then
1802 # We chose a different compiler from the bogus one.
1803 # However, it has the same basename, so the bogon will be chosen
1804 # first if we set CC to just the basename; use the full file name.
1805 shift
1806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1807 fi
1808fi
1809fi
1810fi
1811CC=$ac_cv_prog_CC
1812if test -n "$CC"; then
1813 echo "$as_me:$LINENO: result: $CC" >&5
1814echo "${ECHO_T}$CC" >&6
1815else
1816 echo "$as_me:$LINENO: result: no" >&5
1817echo "${ECHO_T}no" >&6
1818fi
1819
1820fi
1821if test -z "$CC"; then
1822 if test -n "$ac_tool_prefix"; then
1823 for ac_prog in cl
1824 do
1825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1826set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1827echo "$as_me:$LINENO: checking for $ac_word" >&5
1828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831else
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1834else
1835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836for as_dir in $PATH
1837do
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1845 fi
1846done
1847done
1848
1849fi
1850fi
1851CC=$ac_cv_prog_CC
1852if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854echo "${ECHO_T}$CC" >&6
1855else
1856 echo "$as_me:$LINENO: result: no" >&5
1857echo "${ECHO_T}no" >&6
1858fi
1859
1860 test -n "$CC" && break
1861 done
1862fi
1863if test -z "$CC"; then
1864 ac_ct_CC=$CC
1865 for ac_prog in cl
1866do
1867 # Extract the first word of "$ac_prog", so it can be a program name with args.
1868set dummy $ac_prog; ac_word=$2
1869echo "$as_me:$LINENO: checking for $ac_word" >&5
1870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876else
1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878for as_dir in $PATH
1879do
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="$ac_prog"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1887 fi
1888done
1889done
1890
1891fi
1892fi
1893ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896echo "${ECHO_T}$ac_ct_CC" >&6
1897else
1898 echo "$as_me:$LINENO: result: no" >&5
1899echo "${ECHO_T}no" >&6
1900fi
1901
1902 test -n "$ac_ct_CC" && break
1903done
1904
1905 CC=$ac_ct_CC
1906fi
1907
1908fi
1909
1910
1911test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1912See \`config.log' for more details." >&5
1913echo "$as_me: error: no acceptable C compiler found in \$PATH
1914See \`config.log' for more details." >&2;}
1915 { (exit 1); exit 1; }; }
1916
1917# Provide some information about the compiler.
1918echo "$as_me:$LINENO:" \
1919 "checking for C compiler version" >&5
1920ac_compiler=`set X $ac_compile; echo $2`
1921{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1922 (eval $ac_compiler --version </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1927 (eval $ac_compiler -v </dev/null >&5) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1931{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1932 (eval $ac_compiler -V </dev/null >&5) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }
1936
1937cat >conftest.$ac_ext <<_ACEOF
1938/* confdefs.h. */
1939_ACEOF
1940cat confdefs.h >>conftest.$ac_ext
1941cat >>conftest.$ac_ext <<_ACEOF
1942/* end confdefs.h. */
1943
1944int
1945main ()
1946{
1947
1948 ;
1949 return 0;
1950}
1951_ACEOF
1952ac_clean_files_save=$ac_clean_files
1953ac_clean_files="$ac_clean_files a.out a.exe b.out"
1954# Try to create an executable without -o first, disregard a.out.
1955# It will help us diagnose broken compilers, and finding out an intuition
1956# of exeext.
1957echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1958echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1959ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1967# resort.
1968
1969# Be careful to initialize this variable, since it used to be cached.
1970# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1971ac_cv_exeext=
1972# b.out is created by i960 compilers.
1973for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1974do
1975 test -f "$ac_file" || continue
1976 case $ac_file in
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1978 ;;
1979 conftest.$ac_ext )
1980 # This is the source file.
1981 ;;
1982 [ab].out )
1983 # We found the default executable, but exeext='' is most
1984 # certainly right.
1985 break;;
1986 *.* )
1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 # but it would be cool to find out if it's true. Does anybody
1990 # maintain Libtool? --akim.
1991 export ac_cv_exeext
1992 break;;
1993 * )
1994 break;;
1995 esac
1996done
1997else
1998 echo "$as_me: failed program was:" >&5
1999sed 's/^/| /' conftest.$ac_ext >&5
2000
2001{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002See \`config.log' for more details." >&5
2003echo "$as_me: error: C compiler cannot create executables
2004See \`config.log' for more details." >&2;}
2005 { (exit 77); exit 77; }; }
2006fi
2007
2008ac_exeext=$ac_cv_exeext
2009echo "$as_me:$LINENO: result: $ac_file" >&5
2010echo "${ECHO_T}$ac_file" >&6
2011
2012# Check the compiler produces executables we can run. If not, either
2013# the compiler is broken, or we cross compile.
2014echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2015echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2016# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2017# If not cross compiling, check that we can run a simple program.
2018if test "$cross_compiling" != yes; then
2019 if { ac_try='./$ac_file'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 (eval $ac_try) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; }; then
2025 cross_compiling=no
2026 else
2027 if test "$cross_compiling" = maybe; then
2028 cross_compiling=yes
2029 else
2030 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2031If you meant to cross compile, use \`--host'.
2032See \`config.log' for more details." >&5
2033echo "$as_me: error: cannot run C compiled programs.
2034If you meant to cross compile, use \`--host'.
2035See \`config.log' for more details." >&2;}
2036 { (exit 1); exit 1; }; }
2037 fi
2038 fi
2039fi
2040echo "$as_me:$LINENO: result: yes" >&5
2041echo "${ECHO_T}yes" >&6
2042
2043rm -f a.out a.exe conftest$ac_cv_exeext b.out
2044ac_clean_files=$ac_clean_files_save
2045# Check the compiler produces executables we can run. If not, either
2046# the compiler is broken, or we cross compile.
2047echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2048echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2049echo "$as_me:$LINENO: result: $cross_compiling" >&5
2050echo "${ECHO_T}$cross_compiling" >&6
2051
2052echo "$as_me:$LINENO: checking for suffix of executables" >&5
2053echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2055 (eval $ac_link) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; then
2059 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2060# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2061# work properly (i.e., refer to `conftest.exe'), while it won't with
2062# `rm'.
2063for ac_file in conftest.exe conftest conftest.*; do
2064 test -f "$ac_file" || continue
2065 case $ac_file in
2066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2067 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2068 export ac_cv_exeext
2069 break;;
2070 * ) break;;
2071 esac
2072done
2073else
2074 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2075See \`config.log' for more details." >&5
2076echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2077See \`config.log' for more details." >&2;}
2078 { (exit 1); exit 1; }; }
2079fi
2080
2081rm -f conftest$ac_cv_exeext
2082echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2083echo "${ECHO_T}$ac_cv_exeext" >&6
2084
2085rm -f conftest.$ac_ext
2086EXEEXT=$ac_cv_exeext
2087ac_exeext=$EXEEXT
2088echo "$as_me:$LINENO: checking for suffix of object files" >&5
2089echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2090if test "${ac_cv_objext+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092else
2093 cat >conftest.$ac_ext <<_ACEOF
2094/* confdefs.h. */
2095_ACEOF
2096cat confdefs.h >>conftest.$ac_ext
2097cat >>conftest.$ac_ext <<_ACEOF
2098/* end confdefs.h. */
2099
2100int
2101main ()
2102{
2103
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108rm -f conftest.o conftest.obj
2109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; then
2114 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2115 case $ac_file in
2116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2117 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2118 break;;
2119 esac
2120done
2121else
2122 echo "$as_me: failed program was:" >&5
2123sed 's/^/| /' conftest.$ac_ext >&5
2124
2125{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2126See \`config.log' for more details." >&5
2127echo "$as_me: error: cannot compute suffix of object files: cannot compile
2128See \`config.log' for more details." >&2;}
2129 { (exit 1); exit 1; }; }
2130fi
2131
2132rm -f conftest.$ac_cv_objext conftest.$ac_ext
2133fi
2134echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2135echo "${ECHO_T}$ac_cv_objext" >&6
2136OBJEXT=$ac_cv_objext
2137ac_objext=$OBJEXT
2138echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2139echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2140if test "${ac_cv_c_compiler_gnu+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143 cat >conftest.$ac_ext <<_ACEOF
2144/* confdefs.h. */
2145_ACEOF
2146cat confdefs.h >>conftest.$ac_ext
2147cat >>conftest.$ac_ext <<_ACEOF
2148/* end confdefs.h. */
2149
2150int
2151main ()
2152{
2153#ifndef __GNUC__
2154 choke me
2155#endif
2156
2157 ;
2158 return 0;
2159}
2160_ACEOF
2161rm -f conftest.$ac_objext
2162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>conftest.er1
2164 ac_status=$?
2165 grep -v '^ *+' conftest.er1 >conftest.err
2166 rm -f conftest.er1
2167 cat conftest.err >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); } &&
49c96104
SE
2170 { ac_try='test -z "$ac_c_werror_flag"
2171 || test ! -s conftest.err'
5464f5a1
NN
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_compiler_gnu=yes
2184else
2185 echo "$as_me: failed program was:" >&5
2186sed 's/^/| /' conftest.$ac_ext >&5
2187
2188ac_compiler_gnu=no
2189fi
2190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2191ac_cv_c_compiler_gnu=$ac_compiler_gnu
2192
2193fi
2194echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2195echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2196GCC=`test $ac_compiler_gnu = yes && echo yes`
2197ac_test_CFLAGS=${CFLAGS+set}
2198ac_save_CFLAGS=$CFLAGS
2199CFLAGS="-g"
2200echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2201echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2202if test "${ac_cv_prog_cc_g+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
2205 cat >conftest.$ac_ext <<_ACEOF
2206/* confdefs.h. */
2207_ACEOF
2208cat confdefs.h >>conftest.$ac_ext
2209cat >>conftest.$ac_ext <<_ACEOF
2210/* end confdefs.h. */
2211
2212int
2213main ()
2214{
2215
2216 ;
2217 return 0;
2218}
2219_ACEOF
2220rm -f conftest.$ac_objext
2221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
49c96104
SE
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
5464f5a1
NN
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 ac_cv_prog_cc_g=yes
2243else
2244 echo "$as_me: failed program was:" >&5
2245sed 's/^/| /' conftest.$ac_ext >&5
2246
2247ac_cv_prog_cc_g=no
2248fi
2249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250fi
2251echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2252echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2253if test "$ac_test_CFLAGS" = set; then
2254 CFLAGS=$ac_save_CFLAGS
2255elif test $ac_cv_prog_cc_g = yes; then
2256 if test "$GCC" = yes; then
2257 CFLAGS="-g -O2"
2258 else
2259 CFLAGS="-g"
2260 fi
2261else
2262 if test "$GCC" = yes; then
2263 CFLAGS="-O2"
2264 else
2265 CFLAGS=
2266 fi
2267fi
2268echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2269echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2270if test "${ac_cv_prog_cc_stdc+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272else
2273 ac_cv_prog_cc_stdc=no
2274ac_save_CC=$CC
2275cat >conftest.$ac_ext <<_ACEOF
2276/* confdefs.h. */
2277_ACEOF
2278cat confdefs.h >>conftest.$ac_ext
2279cat >>conftest.$ac_ext <<_ACEOF
2280/* end confdefs.h. */
2281#include <stdarg.h>
2282#include <stdio.h>
2283#include <sys/types.h>
2284#include <sys/stat.h>
2285/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2286struct buf { int x; };
2287FILE * (*rcsopen) (struct buf *, struct stat *, int);
2288static char *e (p, i)
2289 char **p;
2290 int i;
2291{
2292 return p[i];
2293}
2294static char *f (char * (*g) (char **, int), char **p, ...)
2295{
2296 char *s;
2297 va_list v;
2298 va_start (v,p);
2299 s = g (p, va_arg (v,int));
2300 va_end (v);
2301 return s;
2302}
2303
2304/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2305 function prototypes and stuff, but not '\xHH' hex character constants.
2306 These don't provoke an error unfortunately, instead are silently treated
2307 as 'x'. The following induces an error, until -std1 is added to get
2308 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2309 array size at least. It's necessary to write '\x00'==0 to get something
2310 that's true only with -std1. */
2311int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2312
2313int test (int i, double x);
2314struct s1 {int (*f) (int a);};
2315struct s2 {int (*f) (double a);};
2316int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2317int argc;
2318char **argv;
2319int
2320main ()
2321{
2322return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2323 ;
2324 return 0;
2325}
2326_ACEOF
2327# Don't try gcc -ansi; that turns off useful extensions and
2328# breaks some systems' header files.
2329# AIX -qlanglvl=ansi
2330# Ultrix and OSF/1 -std1
2331# HP-UX 10.20 and later -Ae
2332# HP-UX older versions -Aa -D_HPUX_SOURCE
2333# SVR4 -Xc -D__EXTENSIONS__
2334for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2335do
2336 CC="$ac_save_CC $ac_arg"
2337 rm -f conftest.$ac_objext
2338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339 (eval $ac_compile) 2>conftest.er1
2340 ac_status=$?
2341 grep -v '^ *+' conftest.er1 >conftest.err
2342 rm -f conftest.er1
2343 cat conftest.err >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); } &&
49c96104
SE
2346 { ac_try='test -z "$ac_c_werror_flag"
2347 || test ! -s conftest.err'
5464f5a1
NN
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 (eval $ac_try) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; } &&
2353 { ac_try='test -s conftest.$ac_objext'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 (eval $ac_try) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; }; then
2359 ac_cv_prog_cc_stdc=$ac_arg
2360break
2361else
2362 echo "$as_me: failed program was:" >&5
2363sed 's/^/| /' conftest.$ac_ext >&5
2364
2365fi
2366rm -f conftest.err conftest.$ac_objext
2367done
2368rm -f conftest.$ac_ext conftest.$ac_objext
2369CC=$ac_save_CC
2370
2371fi
2372
2373case "x$ac_cv_prog_cc_stdc" in
2374 x|xno)
2375 echo "$as_me:$LINENO: result: none needed" >&5
2376echo "${ECHO_T}none needed" >&6 ;;
2377 *)
2378 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2379echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2380 CC="$CC $ac_cv_prog_cc_stdc" ;;
2381esac
2382
2383# Some people use a C++ compiler to compile C. Since we use `exit',
2384# in C++ we need to declare it. In case someone uses the same compiler
2385# for both compiling C and C++ we need to have the C++ compiler decide
2386# the declaration of exit, since it's the most demanding environment.
2387cat >conftest.$ac_ext <<_ACEOF
2388#ifndef __cplusplus
2389 choke me
2390#endif
2391_ACEOF
2392rm -f conftest.$ac_objext
2393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394 (eval $ac_compile) 2>conftest.er1
2395 ac_status=$?
2396 grep -v '^ *+' conftest.er1 >conftest.err
2397 rm -f conftest.er1
2398 cat conftest.err >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
49c96104
SE
2401 { ac_try='test -z "$ac_c_werror_flag"
2402 || test ! -s conftest.err'
5464f5a1
NN
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 (eval $ac_try) 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest.$ac_objext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2414 for ac_declaration in \
2415 '' \
2416 'extern "C" void std::exit (int) throw (); using std::exit;' \
2417 'extern "C" void std::exit (int); using std::exit;' \
2418 'extern "C" void exit (int) throw ();' \
2419 'extern "C" void exit (int);' \
2420 'void exit (int);'
2421do
2422 cat >conftest.$ac_ext <<_ACEOF
2423/* confdefs.h. */
2424_ACEOF
2425cat confdefs.h >>conftest.$ac_ext
2426cat >>conftest.$ac_ext <<_ACEOF
2427/* end confdefs.h. */
2428$ac_declaration
2429#include <stdlib.h>
2430int
2431main ()
2432{
2433exit (42);
2434 ;
2435 return 0;
2436}
2437_ACEOF
2438rm -f conftest.$ac_objext
2439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440 (eval $ac_compile) 2>conftest.er1
2441 ac_status=$?
2442 grep -v '^ *+' conftest.er1 >conftest.err
2443 rm -f conftest.er1
2444 cat conftest.err >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
49c96104
SE
2447 { ac_try='test -z "$ac_c_werror_flag"
2448 || test ! -s conftest.err'
5464f5a1
NN
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; } &&
2454 { ac_try='test -s conftest.$ac_objext'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2460 :
2461else
2462 echo "$as_me: failed program was:" >&5
2463sed 's/^/| /' conftest.$ac_ext >&5
2464
2465continue
2466fi
2467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468 cat >conftest.$ac_ext <<_ACEOF
2469/* confdefs.h. */
2470_ACEOF
2471cat confdefs.h >>conftest.$ac_ext
2472cat >>conftest.$ac_ext <<_ACEOF
2473/* end confdefs.h. */
2474$ac_declaration
2475int
2476main ()
2477{
2478exit (42);
2479 ;
2480 return 0;
2481}
2482_ACEOF
2483rm -f conftest.$ac_objext
2484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2485 (eval $ac_compile) 2>conftest.er1
2486 ac_status=$?
2487 grep -v '^ *+' conftest.er1 >conftest.err
2488 rm -f conftest.er1
2489 cat conftest.err >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } &&
49c96104
SE
2492 { ac_try='test -z "$ac_c_werror_flag"
2493 || test ! -s conftest.err'
5464f5a1
NN
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 (eval $ac_try) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; } &&
2499 { ac_try='test -s conftest.$ac_objext'
2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 (eval $ac_try) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2505 break
2506else
2507 echo "$as_me: failed program was:" >&5
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
2510fi
2511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2512done
2513rm -f conftest*
2514if test -n "$ac_declaration"; then
2515 echo '#ifdef __cplusplus' >>confdefs.h
2516 echo $ac_declaration >>confdefs.h
2517 echo '#endif' >>confdefs.h
2518fi
2519
2520else
2521 echo "$as_me: failed program was:" >&5
2522sed 's/^/| /' conftest.$ac_ext >&5
2523
2524fi
2525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2526ac_ext=c
2527ac_cpp='$CPP $CPPFLAGS'
2528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531
2532
f5385ebf
AM
2533echo "$as_me:$LINENO: checking for library containing strerror" >&5
2534echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2535if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
f5385ebf
AM
2538 ac_func_search_save_LIBS=$LIBS
2539ac_cv_search_strerror=no
5464f5a1
NN
2540cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h. */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h. */
2546
2547/* Override any gcc2 internal prototype to avoid an error. */
2548#ifdef __cplusplus
2549extern "C"
2550#endif
2551/* We use char because int might match the return type of a gcc2
2552 builtin and then its argument prototype would still apply. */
2553char strerror ();
2554int
2555main ()
2556{
2557strerror ();
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562rm -f conftest.$ac_objext conftest$ac_exeext
2563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2564 (eval $ac_link) 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
49c96104
SE
2571 { ac_try='test -z "$ac_c_werror_flag"
2572 || test ! -s conftest.err'
5464f5a1
NN
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; } &&
2578 { ac_try='test -s conftest$ac_exeext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
f5385ebf 2584 ac_cv_search_strerror="none required"
5464f5a1
NN
2585else
2586 echo "$as_me: failed program was:" >&5
2587sed 's/^/| /' conftest.$ac_ext >&5
2588
5464f5a1
NN
2589fi
2590rm -f conftest.err conftest.$ac_objext \
2591 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2592if test "$ac_cv_search_strerror" = no; then
2593 for ac_lib in cposix; do
2594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2595 cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
2601
2602/* Override any gcc2 internal prototype to avoid an error. */
2603#ifdef __cplusplus
2604extern "C"
2605#endif
2606/* We use char because int might match the return type of a gcc2
2607 builtin and then its argument prototype would still apply. */
2608char strerror ();
2609int
2610main ()
2611{
2612strerror ();
2613 ;
2614 return 0;
2615}
2616_ACEOF
2617rm -f conftest.$ac_objext conftest$ac_exeext
2618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2619 (eval $ac_link) 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
49c96104
SE
2626 { ac_try='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
f5385ebf
AM
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 ac_cv_search_strerror="-l$ac_lib"
2640break
2641else
2642 echo "$as_me: failed program was:" >&5
2643sed 's/^/| /' conftest.$ac_ext >&5
2644
5464f5a1 2645fi
f5385ebf
AM
2646rm -f conftest.err conftest.$ac_objext \
2647 conftest$ac_exeext conftest.$ac_ext
2648 done
5464f5a1 2649fi
f5385ebf
AM
2650LIBS=$ac_func_search_save_LIBS
2651fi
2652echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2653echo "${ECHO_T}$ac_cv_search_strerror" >&6
2654if test "$ac_cv_search_strerror" != no; then
2655 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2656
f5385ebf 2657fi
5464f5a1
NN
2658
2659
f5385ebf 2660am__api_version="1.9"
5464f5a1
NN
2661# Find a good install program. We prefer a C program (faster),
2662# so one script is as good as another. But avoid the broken or
2663# incompatible versions:
2664# SysV /etc/install, /usr/sbin/install
2665# SunOS /usr/etc/install
2666# IRIX /sbin/install
2667# AIX /bin/install
2668# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2669# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2670# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2671# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2672# OS/2's system install, which has a completely different semantic
252b5132 2673# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2674# Reject install programs that cannot install multiple files.
5464f5a1
NN
2675echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2676echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2677if test -z "$INSTALL"; then
5464f5a1
NN
2678if test "${ac_cv_path_install+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2680else
5464f5a1
NN
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 # Account for people who put trailing slashes in PATH elements.
2687case $as_dir/ in
2688 ./ | .// | /cC/* | \
2689 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2690 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2691 /usr/ucb/* ) ;;
2692 *)
2693 # OSF1 and SCO ODT 3.0 have their own names for install.
2694 # Don't use installbsd from OSF since it installs stuff as root
2695 # by default.
2696 for ac_prog in ginstall scoinst install; do
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2699 if test $ac_prog = install &&
5464f5a1 2700 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2701 # AIX install. It has an incompatible calling convention.
2702 :
5464f5a1
NN
2703 elif test $ac_prog = install &&
2704 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2705 # program-specific install script used by HP pwplus--don't use.
2706 :
252b5132 2707 else
58c85be7
RW
2708 rm -rf conftest.one conftest.two conftest.dir
2709 echo one > conftest.one
2710 echo two > conftest.two
2711 mkdir conftest.dir
2712 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2713 test -s conftest.one && test -s conftest.two &&
2714 test -s conftest.dir/conftest.one &&
2715 test -s conftest.dir/conftest.two
2716 then
2717 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2718 break 3
2719 fi
252b5132
RH
2720 fi
2721 fi
2722 done
5464f5a1
NN
2723 done
2724 ;;
2725esac
2726done
2727
58c85be7 2728rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2729
2730fi
2731 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2732 INSTALL=$ac_cv_path_install
252b5132 2733 else
58c85be7
RW
2734 # As a last resort, use the slow shell script. Don't cache a
2735 # value for INSTALL within a source directory, because that will
252b5132 2736 # break other packages using the cache if that directory is
58c85be7 2737 # removed, or if the value is a relative name.
5464f5a1 2738 INSTALL=$ac_install_sh
252b5132
RH
2739 fi
2740fi
5464f5a1
NN
2741echo "$as_me:$LINENO: result: $INSTALL" >&5
2742echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2743
2744# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2745# It thinks the first close brace ends the variable substitution.
2746test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2747
5464f5a1 2748test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2749
2750test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2751
5464f5a1
NN
2752echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2753echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2754# Just in case
2755sleep 1
f5385ebf 2756echo timestamp > conftest.file
252b5132
RH
2757# Do `set' in a subshell so we don't clobber the current shell's
2758# arguments. Must try -L first in case configure is actually a
2759# symlink; some systems play weird games with the mod time of symlinks
2760# (eg FreeBSD returns the mod time of the symlink's containing
2761# directory).
2762if (
f5385ebf 2763 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2764 if test "$*" = "X"; then
2765 # -L didn't work.
f5385ebf 2766 set X `ls -t $srcdir/configure conftest.file`
252b5132 2767 fi
f5385ebf
AM
2768 rm -f conftest.file
2769 if test "$*" != "X $srcdir/configure conftest.file" \
2770 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2771
2772 # If neither matched, then we have a broken ls. This can happen
2773 # if, for instance, CONFIG_SHELL is bash and it inherits a
2774 # broken ls alias from the environment. This has actually
2775 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2776 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2777alias in your environment" >&5
2778echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2779alias in your environment" >&2;}
2780 { (exit 1); exit 1; }; }
252b5132
RH
2781 fi
2782
f5385ebf 2783 test "$2" = conftest.file
252b5132
RH
2784 )
2785then
2786 # Ok.
2787 :
2788else
5464f5a1
NN
2789 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2790Check your system clock" >&5
2791echo "$as_me: error: newly created file is older than distributed files!
2792Check your system clock" >&2;}
2793 { (exit 1); exit 1; }; }
252b5132 2794fi
5464f5a1
NN
2795echo "$as_me:$LINENO: result: yes" >&5
2796echo "${ECHO_T}yes" >&6
252b5132 2797test "$program_prefix" != NONE &&
5464f5a1 2798 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2799# Use a double $ so make ignores it.
2800test "$program_suffix" != NONE &&
5464f5a1
NN
2801 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2802# Double any \ or $. echo might interpret backslashes.
2803# By default was `s,x,x', remove it if useless.
2804cat <<\_ACEOF >conftest.sed
2805s/[\\$]/&&/g;s/;s,x,x,$//
2806_ACEOF
2807program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2808rm conftest.sed
2809
f5385ebf
AM
2810# expand $ac_aux_dir to an absolute path
2811am_aux_dir=`cd $ac_aux_dir && pwd`
2812
2813test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2814# Use eval to expand $SHELL
2815if eval "$MISSING --run true"; then
2816 am_missing_run="$MISSING --run "
2817else
2818 am_missing_run=
2819 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2820echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2821fi
2822
2823if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2824 # We used to keeping the `.' as first argument, in order to
2825 # allow $(mkdir_p) to be used without argument. As in
2826 # $(mkdir_p) $(somedir)
2827 # where $(somedir) is conditionally defined. However this is wrong
2828 # for two reasons:
2829 # 1. if the package is installed by a user who cannot write `.'
2830 # make install will fail,
2831 # 2. the above comment should most certainly read
2832 # $(mkdir_p) $(DESTDIR)$(somedir)
2833 # so it does not work when $(somedir) is undefined and
2834 # $(DESTDIR) is not.
2835 # To support the latter case, we have to write
2836 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2837 # so the `.' trick is pointless.
2838 mkdir_p='mkdir -p --'
2839else
2840 # On NextStep and OpenStep, the `mkdir' command does not
2841 # recognize any option. It will interpret all options as
2842 # directories to create, and then abort because `.' already
2843 # exists.
2844 for d in ./-p ./--version;
2845 do
2846 test -d $d && rmdir $d
2847 done
2848 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2849 if test -f "$ac_aux_dir/mkinstalldirs"; then
2850 mkdir_p='$(mkinstalldirs)'
2851 else
2852 mkdir_p='$(install_sh) -d'
2853 fi
2854fi
2855
2856for ac_prog in gawk mawk nawk awk
2857do
2858 # Extract the first word of "$ac_prog", so it can be a program name with args.
2859set dummy $ac_prog; ac_word=$2
2860echo "$as_me:$LINENO: checking for $ac_word" >&5
2861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2862if test "${ac_cv_prog_AWK+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864else
2865 if test -n "$AWK"; then
2866 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_AWK="$ac_prog"
2876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879done
2880done
2881
2882fi
2883fi
2884AWK=$ac_cv_prog_AWK
2885if test -n "$AWK"; then
2886 echo "$as_me:$LINENO: result: $AWK" >&5
2887echo "${ECHO_T}$AWK" >&6
2888else
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891fi
2892
2893 test -n "$AWK" && break
2894done
2895
5464f5a1
NN
2896echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2897echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2898set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2899if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901else
2902 cat >conftest.make <<\_ACEOF
252b5132 2903all:
5464f5a1
NN
2904 @echo 'ac_maketemp="$(MAKE)"'
2905_ACEOF
252b5132 2906# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2907eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2908if test -n "$ac_maketemp"; then
2909 eval ac_cv_prog_make_${ac_make}_set=yes
2910else
2911 eval ac_cv_prog_make_${ac_make}_set=no
2912fi
5464f5a1 2913rm -f conftest.make
252b5132
RH
2914fi
2915if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2916 echo "$as_me:$LINENO: result: yes" >&5
2917echo "${ECHO_T}yes" >&6
252b5132
RH
2918 SET_MAKE=
2919else
5464f5a1
NN
2920 echo "$as_me:$LINENO: result: no" >&5
2921echo "${ECHO_T}no" >&6
252b5132
RH
2922 SET_MAKE="MAKE=${MAKE-make}"
2923fi
2924
f5385ebf
AM
2925rm -rf .tst 2>/dev/null
2926mkdir .tst 2>/dev/null
2927if test -d .tst; then
2928 am__leading_dot=.
2929else
2930 am__leading_dot=_
2931fi
2932rmdir .tst 2>/dev/null
2933
2934DEPDIR="${am__leading_dot}deps"
2935
2936 ac_config_commands="$ac_config_commands depfiles"
2937
2938
2939am_make=${MAKE-make}
2940cat > confinc << 'END'
2941am__doit:
2942 @echo done
2943.PHONY: am__doit
2944END
2945# If we don't find an include directive, just comment out the code.
2946echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2947echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2948am__include="#"
2949am__quote=
2950_am_result=none
2951# First try GNU make style include.
2952echo "include confinc" > confmf
2953# We grep out `Entering directory' and `Leaving directory'
2954# messages which can occur if `w' ends up in MAKEFLAGS.
2955# In particular we don't look at `^make:' because GNU make might
2956# be invoked under some other name (usually "gmake"), in which
2957# case it prints its new name instead of `make'.
2958if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2959 am__include=include
2960 am__quote=
2961 _am_result=GNU
2962fi
2963# Now try BSD make style include.
2964if test "$am__include" = "#"; then
2965 echo '.include "confinc"' > confmf
2966 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2967 am__include=.include
2968 am__quote="\""
2969 _am_result=BSD
2970 fi
2971fi
2972
2973
2974echo "$as_me:$LINENO: result: $_am_result" >&5
2975echo "${ECHO_T}$_am_result" >&6
2976rm -f confinc confmf
2977
2978# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2979if test "${enable_dependency_tracking+set}" = set; then
2980 enableval="$enable_dependency_tracking"
2981
2982fi;
2983if test "x$enable_dependency_tracking" != xno; then
2984 am_depcomp="$ac_aux_dir/depcomp"
2985 AMDEPBACKSLASH='\'
2986fi
2987
2988
2989if test "x$enable_dependency_tracking" != xno; then
2990 AMDEP_TRUE=
2991 AMDEP_FALSE='#'
2992else
2993 AMDEP_TRUE='#'
2994 AMDEP_FALSE=
2995fi
6be7c12c 2996
252b5132 2997
252b5132 2998
f5385ebf
AM
2999# test to see if srcdir already configured
3000if test "`cd $srcdir && pwd`" != "`pwd`" &&
3001 test -f $srcdir/config.status; then
5464f5a1
NN
3002 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3003echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3004 { (exit 1); exit 1; }; }
252b5132 3005fi
5464f5a1 3006
f5385ebf
AM
3007# test whether we have cygpath
3008if test -z "$CYGPATH_W"; then
3009 if (cygpath --version) >/dev/null 2>/dev/null; then
3010 CYGPATH_W='cygpath -w'
3011 else
3012 CYGPATH_W=echo
3013 fi
3014fi
3015
3016
3017# Define the identity of the package.
3018 PACKAGE=bfd
be118e79 3019 VERSION=2.18.50
f5385ebf
AM
3020
3021
5464f5a1 3022cat >>confdefs.h <<_ACEOF
252b5132 3023#define PACKAGE "$PACKAGE"
5464f5a1 3024_ACEOF
252b5132 3025
5464f5a1
NN
3026
3027cat >>confdefs.h <<_ACEOF
252b5132 3028#define VERSION "$VERSION"
5464f5a1 3029_ACEOF
252b5132 3030
f5385ebf
AM
3031# Some tools Automake needs.
3032
3033ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3034
3035
3036AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3037
3038
3039AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3040
3041
3042AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3043
3044
3045MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 3046
f5385ebf 3047install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 3048
f5385ebf
AM
3049# Installed binaries are usually stripped using `strip' when the user
3050# run `make install-strip'. However `strip' might not be the right
3051# tool to use in cross-compilation environments, therefore Automake
3052# will honor the `STRIP' environment variable to overrule this program.
3053if test "$cross_compiling" != no; then
3054 if test -n "$ac_tool_prefix"; then
3055 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3056set dummy ${ac_tool_prefix}strip; ac_word=$2
3057echo "$as_me:$LINENO: checking for $ac_word" >&5
3058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3059if test "${ac_cv_prog_STRIP+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061else
3062 if test -n "$STRIP"; then
3063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3064else
f5385ebf
AM
3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH
3067do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 break 2
3075 fi
3076done
3077done
3078
3079fi
3080fi
3081STRIP=$ac_cv_prog_STRIP
3082if test -n "$STRIP"; then
3083 echo "$as_me:$LINENO: result: $STRIP" >&5
3084echo "${ECHO_T}$STRIP" >&6
3085else
3086 echo "$as_me:$LINENO: result: no" >&5
3087echo "${ECHO_T}no" >&6
3088fi
3089
252b5132 3090fi
f5385ebf
AM
3091if test -z "$ac_cv_prog_STRIP"; then
3092 ac_ct_STRIP=$STRIP
3093 # Extract the first word of "strip", so it can be a program name with args.
3094set dummy strip; ac_word=$2
3095echo "$as_me:$LINENO: checking for $ac_word" >&5
3096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3097if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099else
3100 if test -n "$ac_ct_STRIP"; then
3101 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_ac_ct_STRIP="strip"
3111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114done
3115done
252b5132 3116
f5385ebf
AM
3117 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3118fi
3119fi
3120ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3121if test -n "$ac_ct_STRIP"; then
3122 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3123echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3124else
f5385ebf
AM
3125 echo "$as_me:$LINENO: result: no" >&5
3126echo "${ECHO_T}no" >&6
252b5132
RH
3127fi
3128
f5385ebf 3129 STRIP=$ac_ct_STRIP
252b5132 3130else
f5385ebf
AM
3131 STRIP="$ac_cv_prog_STRIP"
3132fi
3133
252b5132 3134fi
f5385ebf
AM
3135INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3136
3137# We need awk for the "check" target. The system "awk" is bad on
3138# some platforms.
3139# Always define AMTAR for backward compatibility.
3140
3141AMTAR=${AMTAR-"${am_missing_run}tar"}
3142
3143am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3144
252b5132 3145
f5385ebf
AM
3146
3147
3148depcc="$CC" am_compiler_list=
3149
3150echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3151echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3152if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3154else
f5385ebf
AM
3155 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3156 # We make a subdir and do the tests there. Otherwise we can end up
3157 # making bogus files that we don't know about and never remove. For
3158 # instance it was reported that on HP-UX the gcc test will end up
3159 # making a dummy file named `D' -- because `-MD' means `put the output
3160 # in D'.
3161 mkdir conftest.dir
3162 # Copy depcomp to subdir because otherwise we won't find it if we're
3163 # using a relative directory.
3164 cp "$am_depcomp" conftest.dir
3165 cd conftest.dir
3166 # We will build objects and dependencies in a subdirectory because
3167 # it helps to detect inapplicable dependency modes. For instance
3168 # both Tru64's cc and ICC support -MD to output dependencies as a
3169 # side effect of compilation, but ICC will put the dependencies in
3170 # the current directory while Tru64 will put them in the object
3171 # directory.
3172 mkdir sub
3173
3174 am_cv_CC_dependencies_compiler_type=none
3175 if test "$am_compiler_list" = ""; then
3176 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3177 fi
3178 for depmode in $am_compiler_list; do
3179 # Setup a source with many dependencies, because some compilers
3180 # like to wrap large dependency lists on column 80 (with \), and
3181 # we should not choose a depcomp mode which is confused by this.
3182 #
3183 # We need to recreate these files for each test, as the compiler may
3184 # overwrite some of them when testing with obscure command lines.
3185 # This happens at least with the AIX C compiler.
3186 : > sub/conftest.c
3187 for i in 1 2 3 4 5 6; do
3188 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3189 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3190 # Solaris 8's {/usr,}/bin/sh.
3191 touch sub/conftst$i.h
3192 done
3193 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3194
3195 case $depmode in
3196 nosideeffect)
3197 # after this tag, mechanisms are not by side-effect, so they'll
3198 # only be used when explicitly requested
3199 if test "x$enable_dependency_tracking" = xyes; then
3200 continue
3201 else
3202 break
3203 fi
3204 ;;
3205 none) break ;;
3206 esac
3207 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3208 # mode. It turns out that the SunPro C++ compiler does not properly
3209 # handle `-M -o', and we need to detect this.
3210 if depmode=$depmode \
3211 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3212 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3213 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3214 >/dev/null 2>conftest.err &&
3215 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3216 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3217 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3218 # icc doesn't choke on unknown options, it will just issue warnings
3219 # or remarks (even with -Werror). So we grep stderr for any message
3220 # that says an option was ignored or not supported.
3221 # When given -MP, icc 7.0 and 7.1 complain thusly:
3222 # icc: Command line warning: ignoring option '-M'; no argument required
3223 # The diagnosis changed in icc 8.0:
3224 # icc: Command line remark: option '-MP' not supported
3225 if (grep 'ignoring option' conftest.err ||
3226 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3227 am_cv_CC_dependencies_compiler_type=$depmode
3228 break
3229 fi
3230 fi
3231 done
3232
3233 cd ..
3234 rm -rf conftest.dir
3235else
3236 am_cv_CC_dependencies_compiler_type=none
3237fi
3238
252b5132 3239fi
f5385ebf
AM
3240echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3241echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3242CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3243
f5385ebf
AM
3244
3245
3246if
3247 test "x$enable_dependency_tracking" != xno \
3248 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3249 am__fastdepCC_TRUE=
3250 am__fastdepCC_FALSE='#'
252b5132 3251else
f5385ebf
AM
3252 am__fastdepCC_TRUE='#'
3253 am__fastdepCC_FALSE=
252b5132
RH
3254fi
3255
6be7c12c 3256
e43d48cc 3257
f5385ebf 3258
5464f5a1
NN
3259if test -n "$ac_tool_prefix"; then
3260 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3261set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3262echo "$as_me:$LINENO: checking for $ac_word" >&5
3263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264if test "${ac_cv_prog_AR+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3266else
3267 if test -n "$AR"; then
3268 ac_cv_prog_AR="$AR" # Let the user override the test.
3269else
5464f5a1
NN
3270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271for as_dir in $PATH
3272do
3273 IFS=$as_save_IFS
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_prog_AR="${ac_tool_prefix}ar"
3278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 break 2
3280 fi
3281done
3282done
3283
252b5132
RH
3284fi
3285fi
5464f5a1 3286AR=$ac_cv_prog_AR
252b5132 3287if test -n "$AR"; then
5464f5a1
NN
3288 echo "$as_me:$LINENO: result: $AR" >&5
3289echo "${ECHO_T}$AR" >&6
252b5132 3290else
5464f5a1
NN
3291 echo "$as_me:$LINENO: result: no" >&5
3292echo "${ECHO_T}no" >&6
3293fi
3294
252b5132 3295fi
5464f5a1
NN
3296if test -z "$ac_cv_prog_AR"; then
3297 ac_ct_AR=$AR
3298 # Extract the first word of "ar", so it can be a program name with args.
3299set dummy ar; ac_word=$2
3300echo "$as_me:$LINENO: checking for $ac_word" >&5
3301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 if test -n "$ac_ct_AR"; then
3306 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3307else
3308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309for as_dir in $PATH
3310do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_ac_ct_AR="ar"
3316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319done
3320done
252b5132 3321
5464f5a1
NN
3322fi
3323fi
3324ac_ct_AR=$ac_cv_prog_ac_ct_AR
3325if test -n "$ac_ct_AR"; then
3326 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3327echo "${ECHO_T}$ac_ct_AR" >&6
3328else
3329 echo "$as_me:$LINENO: result: no" >&5
3330echo "${ECHO_T}no" >&6
3331fi
252b5132 3332
5464f5a1
NN
3333 AR=$ac_ct_AR
3334else
3335 AR="$ac_cv_prog_AR"
3336fi
6be7c12c 3337
5464f5a1
NN
3338if test -n "$ac_tool_prefix"; then
3339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3340set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3341echo "$as_me:$LINENO: checking for $ac_word" >&5
3342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343if test "${ac_cv_prog_RANLIB+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3345else
3346 if test -n "$RANLIB"; then
3347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3348else
5464f5a1
NN
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360done
3361done
3362
252b5132
RH
3363fi
3364fi
5464f5a1 3365RANLIB=$ac_cv_prog_RANLIB
252b5132 3366if test -n "$RANLIB"; then
5464f5a1
NN
3367 echo "$as_me:$LINENO: result: $RANLIB" >&5
3368echo "${ECHO_T}$RANLIB" >&6
252b5132 3369else
5464f5a1
NN
3370 echo "$as_me:$LINENO: result: no" >&5
3371echo "${ECHO_T}no" >&6
252b5132
RH
3372fi
3373
5464f5a1 3374fi
252b5132 3375if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3376 ac_ct_RANLIB=$RANLIB
252b5132
RH
3377 # Extract the first word of "ranlib", so it can be a program name with args.
3378set dummy ranlib; ac_word=$2
5464f5a1
NN
3379echo "$as_me:$LINENO: checking for $ac_word" >&5
3380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3381if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3383else
5464f5a1
NN
3384 if test -n "$ac_ct_RANLIB"; then
3385 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3386else
5464f5a1
NN
3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_prog_ac_ct_RANLIB="ranlib"
3395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398done
3399done
3400
3401 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3402fi
3403fi
5464f5a1
NN
3404ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3405if test -n "$ac_ct_RANLIB"; then
3406 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3407echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3408else
5464f5a1
NN
3409 echo "$as_me:$LINENO: result: no" >&5
3410echo "${ECHO_T}no" >&6
252b5132
RH
3411fi
3412
5464f5a1 3413 RANLIB=$ac_ct_RANLIB
252b5132 3414else
5464f5a1 3415 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3416fi
3417
252b5132
RH
3418
3419# Check whether --enable-shared or --disable-shared was given.
3420if test "${enable_shared+set}" = set; then
3421 enableval="$enable_shared"
3422 p=${PACKAGE-default}
d7040cdb
SE
3423 case $enableval in
3424 yes) enable_shared=yes ;;
3425 no) enable_shared=no ;;
3426 *)
3427 enable_shared=no
3428 # Look at the argument we got. We use all the common list separators.
3429 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3430 for pkg in $enableval; do
3431 IFS="$lt_save_ifs"
3432 if test "X$pkg" = "X$p"; then
3433 enable_shared=yes
3434 fi
3435 done
3436 IFS="$lt_save_ifs"
3437 ;;
3438 esac
252b5132
RH
3439else
3440 enable_shared=no
5464f5a1 3441fi;
252b5132 3442
d7040cdb
SE
3443
3444
3445
3446
3447
3448
3449
3450
cfbc9945
SE
3451ac_ext=c
3452ac_cpp='$CPP $CPPFLAGS'
3453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3458set dummy ${ac_tool_prefix}gcc; ac_word=$2
3459echo "$as_me:$LINENO: checking for $ac_word" >&5
3460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461if test "${ac_cv_prog_CC+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3463else
cfbc9945
SE
3464 if test -n "$CC"; then
3465 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 3466else
cfbc9945
SE
3467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468for as_dir in $PATH
3469do
3470 IFS=$as_save_IFS
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 break 2
3477 fi
3478done
3479done
c5d1701e 3480
cfbc9945
SE
3481fi
3482fi
3483CC=$ac_cv_prog_CC
3484if test -n "$CC"; then
3485 echo "$as_me:$LINENO: result: $CC" >&5
3486echo "${ECHO_T}$CC" >&6
252b5132 3487else
cfbc9945
SE
3488 echo "$as_me:$LINENO: result: no" >&5
3489echo "${ECHO_T}no" >&6
252b5132 3490fi
cfbc9945
SE
3491
3492fi
3493if test -z "$ac_cv_prog_CC"; then
3494 ac_ct_CC=$CC
3495 # Extract the first word of "gcc", so it can be a program name with args.
3496set dummy gcc; ac_word=$2
3497echo "$as_me:$LINENO: checking for $ac_word" >&5
3498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3500 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3501else
cfbc9945
SE
3502 if test -n "$ac_ct_CC"; then
3503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3504else
cfbc9945
SE
3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506for as_dir in $PATH
3507do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_ac_ct_CC="gcc"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516done
3517done
3518
252b5132
RH
3519fi
3520fi
cfbc9945
SE
3521ac_ct_CC=$ac_cv_prog_ac_ct_CC
3522if test -n "$ac_ct_CC"; then
3523 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3524echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3525else
5464f5a1
NN
3526 echo "$as_me:$LINENO: result: no" >&5
3527echo "${ECHO_T}no" >&6
252b5132 3528fi
cfbc9945
SE
3529
3530 CC=$ac_ct_CC
3531else
3532 CC="$ac_cv_prog_CC"
3533fi
3534
3535if test -z "$CC"; then
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3538set dummy ${ac_tool_prefix}cc; ac_word=$2
3539echo "$as_me:$LINENO: checking for $ac_word" >&5
3540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3541if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3542 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3543else
cfbc9945
SE
3544 if test -n "$CC"; then
3545 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3546else
cfbc9945
SE
3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548for as_dir in $PATH
3549do
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554 ac_cv_prog_CC="${ac_tool_prefix}cc"
3555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3557 fi
3558done
3559done
3560
252b5132
RH
3561fi
3562fi
cfbc9945
SE
3563CC=$ac_cv_prog_CC
3564if test -n "$CC"; then
3565 echo "$as_me:$LINENO: result: $CC" >&5
3566echo "${ECHO_T}$CC" >&6
ac48eca1 3567else
cfbc9945
SE
3568 echo "$as_me:$LINENO: result: no" >&5
3569echo "${ECHO_T}no" >&6
ac48eca1 3570fi
ac48eca1 3571
cfbc9945
SE
3572fi
3573if test -z "$ac_cv_prog_CC"; then
3574 ac_ct_CC=$CC
3575 # Extract the first word of "cc", so it can be a program name with args.
3576set dummy cc; ac_word=$2
3577echo "$as_me:$LINENO: checking for $ac_word" >&5
3578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3580 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3581else
cfbc9945
SE
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3584else
cfbc9945
SE
3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586for as_dir in $PATH
3587do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_ac_ct_CC="cc"
3593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596done
3597done
3598
252b5132 3599fi
cfbc9945
SE
3600fi
3601ac_ct_CC=$ac_cv_prog_ac_ct_CC
3602if test -n "$ac_ct_CC"; then
3603 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3604echo "${ECHO_T}$ac_ct_CC" >&6
3605else
3606 echo "$as_me:$LINENO: result: no" >&5
3607echo "${ECHO_T}no" >&6
252b5132
RH
3608fi
3609
cfbc9945
SE
3610 CC=$ac_ct_CC
3611else
3612 CC="$ac_cv_prog_CC"
3613fi
252b5132 3614
cfbc9945
SE
3615fi
3616if test -z "$CC"; then
3617 # Extract the first word of "cc", so it can be a program name with args.
3618set dummy cc; ac_word=$2
3619echo "$as_me:$LINENO: checking for $ac_word" >&5
3620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3621if test "${ac_cv_prog_CC+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3623else
cfbc9945
SE
3624 if test -n "$CC"; then
3625 ac_cv_prog_CC="$CC" # Let the user override the test.
3626else
3627 ac_prog_rejected=no
3628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629for as_dir in $PATH
3630do
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3636 ac_prog_rejected=yes
3637 continue
3638 fi
3639 ac_cv_prog_CC="cc"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 break 2
3642 fi
3643done
3644done
3645
3646if test $ac_prog_rejected = yes; then
3647 # We found a bogon in the path, so make sure we never use it.
3648 set dummy $ac_cv_prog_CC
3649 shift
3650 if test $# != 0; then
3651 # We chose a different compiler from the bogus one.
3652 # However, it has the same basename, so the bogon will be chosen
3653 # first if we set CC to just the basename; use the full file name.
3654 shift
3655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3656 fi
3657fi
3658fi
3659fi
3660CC=$ac_cv_prog_CC
3661if test -n "$CC"; then
3662 echo "$as_me:$LINENO: result: $CC" >&5
3663echo "${ECHO_T}$CC" >&6
3664else
3665 echo "$as_me:$LINENO: result: no" >&5
3666echo "${ECHO_T}no" >&6
252b5132
RH
3667fi
3668
cfbc9945
SE
3669fi
3670if test -z "$CC"; then
3671 if test -n "$ac_tool_prefix"; then
3672 for ac_prog in cl
3673 do
3674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3676echo "$as_me:$LINENO: checking for $ac_word" >&5
3677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3678if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3679 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3680else
cfbc9945
SE
3681 if test -n "$CC"; then
3682 ac_cv_prog_CC="$CC" # Let the user override the test.
3683else
3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 break 2
3694 fi
3695done
3696done
ac48eca1 3697
cfbc9945
SE
3698fi
3699fi
3700CC=$ac_cv_prog_CC
3701if test -n "$CC"; then
3702 echo "$as_me:$LINENO: result: $CC" >&5
3703echo "${ECHO_T}$CC" >&6
3704else
3705 echo "$as_me:$LINENO: result: no" >&5
3706echo "${ECHO_T}no" >&6
3707fi
ac48eca1 3708
cfbc9945
SE
3709 test -n "$CC" && break
3710 done
3711fi
3712if test -z "$CC"; then
3713 ac_ct_CC=$CC
3714 for ac_prog in cl
3715do
3716 # Extract the first word of "$ac_prog", so it can be a program name with args.
3717set dummy $ac_prog; ac_word=$2
3718echo "$as_me:$LINENO: checking for $ac_word" >&5
3719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3720if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
3723 if test -n "$ac_ct_CC"; then
3724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3725else
3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727for as_dir in $PATH
3728do
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_ac_ct_CC="$ac_prog"
3734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3736 fi
3737done
3738done
ac48eca1 3739
cfbc9945
SE
3740fi
3741fi
3742ac_ct_CC=$ac_cv_prog_ac_ct_CC
3743if test -n "$ac_ct_CC"; then
3744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3745echo "${ECHO_T}$ac_ct_CC" >&6
3746else
3747 echo "$as_me:$LINENO: result: no" >&5
3748echo "${ECHO_T}no" >&6
3749fi
ac48eca1 3750
cfbc9945
SE
3751 test -n "$ac_ct_CC" && break
3752done
ac48eca1 3753
cfbc9945
SE
3754 CC=$ac_ct_CC
3755fi
55c80943 3756
cfbc9945 3757fi
ac48eca1 3758
ac48eca1 3759
cfbc9945
SE
3760test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3761See \`config.log' for more details." >&5
3762echo "$as_me: error: no acceptable C compiler found in \$PATH
3763See \`config.log' for more details." >&2;}
3764 { (exit 1); exit 1; }; }
ac48eca1 3765
cfbc9945
SE
3766# Provide some information about the compiler.
3767echo "$as_me:$LINENO:" \
3768 "checking for C compiler version" >&5
3769ac_compiler=`set X $ac_compile; echo $2`
3770{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3771 (eval $ac_compiler --version </dev/null >&5) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }
3775{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3776 (eval $ac_compiler -v </dev/null >&5) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }
3780{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3781 (eval $ac_compiler -V </dev/null >&5) 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }
ac48eca1 3785
cfbc9945
SE
3786echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3787echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3788if test "${ac_cv_c_compiler_gnu+set}" = set; then
5464f5a1 3789 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3790else
cfbc9945
SE
3791 cat >conftest.$ac_ext <<_ACEOF
3792/* confdefs.h. */
3793_ACEOF
3794cat confdefs.h >>conftest.$ac_ext
3795cat >>conftest.$ac_ext <<_ACEOF
3796/* end confdefs.h. */
ac48eca1 3797
cfbc9945
SE
3798int
3799main ()
3800{
3801#ifndef __GNUC__
3802 choke me
3803#endif
5464f5a1 3804
cfbc9945
SE
3805 ;
3806 return 0;
3807}
3808_ACEOF
3809rm -f conftest.$ac_objext
3810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3811 (eval $ac_compile) 2>conftest.er1
3812 ac_status=$?
3813 grep -v '^ *+' conftest.er1 >conftest.err
3814 rm -f conftest.er1
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } &&
3818 { ac_try='test -z "$ac_c_werror_flag"
3819 || test ! -s conftest.err'
3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 (eval $ac_try) 2>&5
3822 ac_status=$?
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; } &&
3825 { ac_try='test -s conftest.$ac_objext'
3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 (eval $ac_try) 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; }; then
3831 ac_compiler_gnu=yes
ac48eca1 3832else
cfbc9945
SE
3833 echo "$as_me: failed program was:" >&5
3834sed 's/^/| /' conftest.$ac_ext >&5
3835
3836ac_compiler_gnu=no
ac48eca1 3837fi
cfbc9945
SE
3838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3839ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3840
5464f5a1 3841fi
cfbc9945
SE
3842echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3843echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3844GCC=`test $ac_compiler_gnu = yes && echo yes`
3845ac_test_CFLAGS=${CFLAGS+set}
3846ac_save_CFLAGS=$CFLAGS
3847CFLAGS="-g"
3848echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3849echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3850if test "${ac_cv_prog_cc_g+set}" = set; then
5464f5a1 3851 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3852else
cfbc9945
SE
3853 cat >conftest.$ac_ext <<_ACEOF
3854/* confdefs.h. */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h. */
3859
3860int
3861main ()
3862{
3863
3864 ;
3865 return 0;
3866}
3867_ACEOF
3868rm -f conftest.$ac_objext
3869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3870 (eval $ac_compile) 2>conftest.er1
3871 ac_status=$?
3872 grep -v '^ *+' conftest.er1 >conftest.err
3873 rm -f conftest.er1
3874 cat conftest.err >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try='test -z "$ac_c_werror_flag"
3878 || test ! -s conftest.err'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 (eval $ac_try) 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; } &&
3884 { ac_try='test -s conftest.$ac_objext'
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886 (eval $ac_try) 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; }; then
3890 ac_cv_prog_cc_g=yes
6be7c12c 3891else
cfbc9945
SE
3892 echo "$as_me: failed program was:" >&5
3893sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3894
cfbc9945 3895ac_cv_prog_cc_g=no
ac48eca1 3896fi
cfbc9945 3897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3898fi
cfbc9945
SE
3899echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3900echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3901if test "$ac_test_CFLAGS" = set; then
3902 CFLAGS=$ac_save_CFLAGS
3903elif test $ac_cv_prog_cc_g = yes; then
3904 if test "$GCC" = yes; then
3905 CFLAGS="-g -O2"
3906 else
3907 CFLAGS="-g"
3908 fi
ac48eca1 3909else
cfbc9945
SE
3910 if test "$GCC" = yes; then
3911 CFLAGS="-O2"
3912 else
3913 CFLAGS=
3914 fi
ac48eca1 3915fi
cfbc9945
SE
3916echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3917echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3918if test "${ac_cv_prog_cc_stdc+set}" = set; then
5464f5a1 3919 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3920else
cfbc9945
SE
3921 ac_cv_prog_cc_stdc=no
3922ac_save_CC=$CC
3923cat >conftest.$ac_ext <<_ACEOF
3924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h. */
3929#include <stdarg.h>
3930#include <stdio.h>
3931#include <sys/types.h>
3932#include <sys/stat.h>
3933/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3934struct buf { int x; };
3935FILE * (*rcsopen) (struct buf *, struct stat *, int);
3936static char *e (p, i)
3937 char **p;
3938 int i;
3939{
3940 return p[i];
3941}
3942static char *f (char * (*g) (char **, int), char **p, ...)
3943{
3944 char *s;
3945 va_list v;
3946 va_start (v,p);
3947 s = g (p, va_arg (v,int));
3948 va_end (v);
3949 return s;
3950}
5464f5a1 3951
cfbc9945
SE
3952/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3953 function prototypes and stuff, but not '\xHH' hex character constants.
3954 These don't provoke an error unfortunately, instead are silently treated
3955 as 'x'. The following induces an error, until -std1 is added to get
3956 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3957 array size at least. It's necessary to write '\x00'==0 to get something
3958 that's true only with -std1. */
3959int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3960
3961int test (int i, double x);
3962struct s1 {int (*f) (int a);};
3963struct s2 {int (*f) (double a);};
3964int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3965int argc;
3966char **argv;
3967int
3968main ()
3969{
3970return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3971 ;
3972 return 0;
3973}
3974_ACEOF
3975# Don't try gcc -ansi; that turns off useful extensions and
3976# breaks some systems' header files.
3977# AIX -qlanglvl=ansi
3978# Ultrix and OSF/1 -std1
3979# HP-UX 10.20 and later -Ae
3980# HP-UX older versions -Aa -D_HPUX_SOURCE
3981# SVR4 -Xc -D__EXTENSIONS__
3982for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3983do
3984 CC="$ac_save_CC $ac_arg"
3985 rm -f conftest.$ac_objext
3986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest.$ac_objext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 ac_cv_prog_cc_stdc=$ac_arg
4008break
ac48eca1 4009else
cfbc9945
SE
4010 echo "$as_me: failed program was:" >&5
4011sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4012
5464f5a1 4013fi
cfbc9945 4014rm -f conftest.err conftest.$ac_objext
5464f5a1 4015done
cfbc9945
SE
4016rm -f conftest.$ac_ext conftest.$ac_objext
4017CC=$ac_save_CC
5464f5a1 4018
ac48eca1 4019fi
252b5132 4020
cfbc9945
SE
4021case "x$ac_cv_prog_cc_stdc" in
4022 x|xno)
4023 echo "$as_me:$LINENO: result: none needed" >&5
4024echo "${ECHO_T}none needed" >&6 ;;
4025 *)
4026 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4027echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4028 CC="$CC $ac_cv_prog_cc_stdc" ;;
4029esac
6be7c12c 4030
cfbc9945
SE
4031# Some people use a C++ compiler to compile C. Since we use `exit',
4032# in C++ we need to declare it. In case someone uses the same compiler
4033# for both compiling C and C++ we need to have the C++ compiler decide
4034# the declaration of exit, since it's the most demanding environment.
4035cat >conftest.$ac_ext <<_ACEOF
4036#ifndef __cplusplus
4037 choke me
4038#endif
4039_ACEOF
4040rm -f conftest.$ac_objext
4041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>conftest.er1
5464f5a1 4043 ac_status=$?
cfbc9945
SE
4044 grep -v '^ *+' conftest.er1 >conftest.err
4045 rm -f conftest.er1
4046 cat conftest.err >&5
5464f5a1 4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_c_werror_flag"
4050 || test ! -s conftest.err'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 (eval $ac_try) 2>&5
5464f5a1
NN
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
d70c5fc7
NC
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4061 (exit $ac_status); }; }; then
4062 for ac_declaration in \
4063 '' \
4064 'extern "C" void std::exit (int) throw (); using std::exit;' \
4065 'extern "C" void std::exit (int); using std::exit;' \
4066 'extern "C" void exit (int) throw ();' \
4067 'extern "C" void exit (int);' \
4068 'void exit (int);'
4069do
4070 cat >conftest.$ac_ext <<_ACEOF
4071/* confdefs.h. */
4072_ACEOF
4073cat confdefs.h >>conftest.$ac_ext
4074cat >>conftest.$ac_ext <<_ACEOF
4075/* end confdefs.h. */
4076$ac_declaration
4077#include <stdlib.h>
4078int
4079main ()
4080{
4081exit (42);
4082 ;
4083 return 0;
4084}
4085_ACEOF
4086rm -f conftest.$ac_objext
4087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_c_werror_flag"
4096 || test ! -s conftest.err'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 (eval $ac_try) 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 :
b2ef150d 4109else
cfbc9945
SE
4110 echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 4112
cfbc9945
SE
4113continue
4114fi
4115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
4117/* confdefs.h. */
4118_ACEOF
4119cat confdefs.h >>conftest.$ac_ext
4120cat >>conftest.$ac_ext <<_ACEOF
4121/* end confdefs.h. */
cfbc9945 4122$ac_declaration
5464f5a1
NN
4123int
4124main ()
4125{
cfbc9945 4126exit (42);
5464f5a1
NN
4127 ;
4128 return 0;
4129}
4130_ACEOF
cfbc9945
SE
4131rm -f conftest.$ac_objext
4132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
4134 ac_status=$?
4135 grep -v '^ *+' conftest.er1 >conftest.err
4136 rm -f conftest.er1
4137 cat conftest.err >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
49c96104
SE
4140 { ac_try='test -z "$ac_c_werror_flag"
4141 || test ! -s conftest.err'
5464f5a1
NN
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 (eval $ac_try) 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
cfbc9945 4147 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
cfbc9945 4153 break
b2ef150d 4154else
5464f5a1
NN
4155 echo "$as_me: failed program was:" >&5
4156sed 's/^/| /' conftest.$ac_ext >&5
4157
b2ef150d 4158fi
cfbc9945
SE
4159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4160done
4161rm -f conftest*
4162if test -n "$ac_declaration"; then
4163 echo '#ifdef __cplusplus' >>confdefs.h
4164 echo $ac_declaration >>confdefs.h
4165 echo '#endif' >>confdefs.h
6ec7057a 4166fi
cfbc9945 4167
92f01d61 4168else
cfbc9945
SE
4169 echo "$as_me: failed program was:" >&5
4170sed 's/^/| /' conftest.$ac_ext >&5
92f01d61 4171
cfbc9945
SE
4172fi
4173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174ac_ext=c
4175ac_cpp='$CPP $CPPFLAGS'
4176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61
JM
4179
4180
cfbc9945
SE
4181cat >>confdefs.h <<\_ACEOF
4182#define _GNU_SOURCE 1
4183_ACEOF
a1ac8190 4184
c428fa83 4185
cfbc9945 4186
d7040cdb
SE
4187
4188
4189macro_version='2.1a'
4190macro_revision='1.2435'
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203ltmain="$ac_aux_dir/ltmain.sh"
4204
4205# Set options
4206
4207enable_dlopen=no
4208
4209
4210enable_win32_dll=no
4211
4212
4213
cfbc9945
SE
4214# Check whether --enable-static or --disable-static was given.
4215if test "${enable_static+set}" = set; then
4216 enableval="$enable_static"
4217 p=${PACKAGE-default}
d7040cdb
SE
4218 case $enableval in
4219 yes) enable_static=yes ;;
4220 no) enable_static=no ;;
4221 *)
4222 enable_static=no
4223 # Look at the argument we got. We use all the common list separators.
4224 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4225 for pkg in $enableval; do
4226 IFS="$lt_save_ifs"
4227 if test "X$pkg" = "X$p"; then
4228 enable_static=yes
4229 fi
4230 done
4231 IFS="$lt_save_ifs"
4232 ;;
4233 esac
c428fa83 4234else
cfbc9945
SE
4235 enable_static=yes
4236fi;
d7040cdb
SE
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246# Check whether --with-pic or --without-pic was given.
4247if test "${with_pic+set}" = set; then
4248 withval="$with_pic"
4249 pic_mode="$withval"
4250else
4251 pic_mode=default
4252fi;
4253
4254test -z "$pic_mode" && pic_mode=default
4255
4256
4257
4258
4259
4260
4261
cfbc9945
SE
4262# Check whether --enable-fast-install or --disable-fast-install was given.
4263if test "${enable_fast_install+set}" = set; then
4264 enableval="$enable_fast_install"
4265 p=${PACKAGE-default}
d7040cdb
SE
4266 case $enableval in
4267 yes) enable_fast_install=yes ;;
4268 no) enable_fast_install=no ;;
4269 *)
4270 enable_fast_install=no
4271 # Look at the argument we got. We use all the common list separators.
4272 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4273 for pkg in $enableval; do
4274 IFS="$lt_save_ifs"
4275 if test "X$pkg" = "X$p"; then
4276 enable_fast_install=yes
4277 fi
4278 done
4279 IFS="$lt_save_ifs"
4280 ;;
4281 esac
cfbc9945
SE
4282else
4283 enable_fast_install=yes
4284fi;
c428fa83 4285
d7040cdb
SE
4286
4287
4288
4289
4290
4291
4292
4293echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4294echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4295if test "${lt_cv_path_SED+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298 # Loop through the user's path and test for sed and gsed.
4299# Then use that list of sed's as ones to test for truncation.
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
4305 for lt_ac_prog in sed gsed; do
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4308 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4309 fi
4310 done
4311 done
4312done
4313IFS=$as_save_IFS
4314lt_ac_max=0
4315lt_ac_count=0
4316# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4317# along with /bin/sed that truncates output.
4318for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4319 test ! -f $lt_ac_sed && continue
4320 cat /dev/null > conftest.in
4321 lt_ac_count=0
4322 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4323 # Check for GNU sed and select it if it is found.
4324 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4325 lt_cv_path_SED=$lt_ac_sed
4326 break
4327 fi
4328 while true; do
4329 cat conftest.in conftest.in >conftest.tmp
4330 mv conftest.tmp conftest.in
4331 cp conftest.in conftest.nl
4332 echo >>conftest.nl
4333 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4334 cmp -s conftest.out conftest.nl || break
4335 # 10000 chars as input seems more than enough
4336 test $lt_ac_count -gt 10 && break
4337 lt_ac_count=`expr $lt_ac_count + 1`
4338 if test $lt_ac_count -gt $lt_ac_max; then
4339 lt_ac_max=$lt_ac_count
4340 lt_cv_path_SED=$lt_ac_sed
4341 fi
4342 done
4343done
4344
4345fi
4346
4347SED=$lt_cv_path_SED
4348
4349echo "$as_me:$LINENO: result: $SED" >&5
4350echo "${ECHO_T}$SED" >&6
4351
4352test -z "$SED" && SED=sed
4353Xsed="$SED -e 1s/^X//"
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365echo "$as_me:$LINENO: checking for egrep" >&5
4366echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4367if test "${ac_cv_prog_egrep+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369else
4370 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4371 then ac_cv_prog_egrep='grep -E'
4372 else ac_cv_prog_egrep='egrep'
4373 fi
4374fi
4375echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4376echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4377 EGREP=$ac_cv_prog_egrep
4378
4379
4380echo "$as_me:$LINENO: checking for fgrep" >&5
4381echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4382if test "${ac_cv_prog_fgrep+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384else
4385 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4386 then ac_cv_prog_fgrep='grep -F'
4387 else ac_cv_prog_fgrep='fgrep'
4388 fi
4389fi
4390echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4391echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4392 FGREP=$ac_cv_prog_fgrep
4393
4394
4395test -z "$GREP" && GREP=grep
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
cfbc9945
SE
4415# Check whether --with-gnu-ld or --without-gnu-ld was given.
4416if test "${with_gnu_ld+set}" = set; then
4417 withval="$with_gnu_ld"
4418 test "$withval" = no || with_gnu_ld=yes
4419else
4420 with_gnu_ld=no
c428fa83 4421fi;
cfbc9945
SE
4422ac_prog=ld
4423if test "$GCC" = yes; then
4424 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
4425 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4426echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
cfbc9945
SE
4427 case $host in
4428 *-*-mingw*)
4429 # gcc leaves a trailing carriage return which upsets mingw
4430 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4431 *)
4432 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4433 esac
4434 case $ac_prog in
4435 # Accept absolute paths.
d7040cdb 4436 [\\/]* | ?:[\\/]*)
cfbc9945 4437 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
4438 # Canonicalize the pathname of ld
4439 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4440 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4441 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
4442 done
4443 test -z "$LD" && LD="$ac_prog"
4444 ;;
5bd8253d 4445 "")
cfbc9945
SE
4446 # If it fails, then pretend we aren't using GCC.
4447 ac_prog=ld
5bd8253d
L
4448 ;;
4449 *)
cfbc9945
SE
4450 # If it is relative, then search for the first ld in PATH.
4451 with_gnu_ld=unknown
5bd8253d 4452 ;;
cfbc9945
SE
4453 esac
4454elif test "$with_gnu_ld" = yes; then
4455 echo "$as_me:$LINENO: checking for GNU ld" >&5
4456echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4457else
4458 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4459echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4460fi
4461if test "${lt_cv_path_LD+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463else
4464 if test -z "$LD"; then
d7040cdb 4465 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 4466 for ac_dir in $PATH; do
d7040cdb 4467 IFS="$lt_save_ifs"
cfbc9945
SE
4468 test -z "$ac_dir" && ac_dir=.
4469 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4470 lt_cv_path_LD="$ac_dir/$ac_prog"
4471 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 4472 # but apparently some variants of GNU ld only accept -v.
cfbc9945 4473 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
4474 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4475 *GNU* | *'with BFD'*)
cfbc9945 4476 test "$with_gnu_ld" != no && break
d7040cdb
SE
4477 ;;
4478 *)
cfbc9945 4479 test "$with_gnu_ld" != yes && break
d7040cdb
SE
4480 ;;
4481 esac
cfbc9945
SE
4482 fi
4483 done
d7040cdb 4484 IFS="$lt_save_ifs"
cfbc9945
SE
4485else
4486 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 4487fi
1ad12f97
NC
4488fi
4489
cfbc9945
SE
4490LD="$lt_cv_path_LD"
4491if test -n "$LD"; then
4492 echo "$as_me:$LINENO: result: $LD" >&5
4493echo "${ECHO_T}$LD" >&6
4494else
4495 echo "$as_me:$LINENO: result: no" >&5
4496echo "${ECHO_T}no" >&6
4497fi
4498test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4499echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4500 { (exit 1); exit 1; }; }
4501echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4502echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4503if test "${lt_cv_prog_gnu_ld+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
d7040cdb
SE
4506 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4507case `$LD -v 2>&1 </dev/null` in
4508*GNU* | *'with BFD'*)
cfbc9945 4509 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
4510 ;;
4511*)
cfbc9945 4512 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4513 ;;
4514esac
49c96104 4515fi
cfbc9945
SE
4516echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4517echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4518with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 4519
9e9b66a9 4520
cfbc9945 4521
d7040cdb
SE
4522
4523
4524
4525
4526
4527
4528
4529echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4530echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
cfbc9945
SE
4531if test "${lt_cv_path_NM+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534 if test -n "$NM"; then
4535 # Let the user override the test.
4536 lt_cv_path_NM="$NM"
4537else
d7040cdb
SE
4538 lt_nm_to_check="${ac_tool_prefix}nm"
4539 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4540 lt_nm_to_check="$lt_nm_to_check nm"
4541 fi
4542 for lt_tmp_nm in $lt_nm_to_check; do
4543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4544 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4545 IFS="$lt_save_ifs"
4546 test -z "$ac_dir" && ac_dir=.
4547 tmp_nm="$ac_dir/$lt_tmp_nm"
4548 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4549 # Check to see if the nm accepts a BSD-compat flag.
4550 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4551 # nm: unknown option "B" ignored
4552 # Tru64's nm complains that /dev/null is an invalid object file
4553 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4554 */dev/null* | *'Invalid file or object type'*)
4555 lt_cv_path_NM="$tmp_nm -B"
4556 break
4557 ;;
4558 *)
4559 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4560 */dev/null*)
4561 lt_cv_path_NM="$tmp_nm -p"
4562 break
4563 ;;
4564 *)
4565 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4566 continue # so that we can try to find one that supports BSD flags
4567 ;;
4568 esac
4569 ;;
4570 esac
cfbc9945 4571 fi
d7040cdb
SE
4572 done
4573 IFS="$lt_save_ifs"
cfbc9945 4574 done
d7040cdb 4575 : ${lt_cv_path_NM=no}
cfbc9945 4576fi
a2d91340 4577fi
d7040cdb
SE
4578echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4579echo "${ECHO_T}$lt_cv_path_NM" >&6
4580if test "$lt_cv_path_NM" != "no"; then
4581 NM="$lt_cv_path_NM"
cfbc9945 4582else
d7040cdb
SE
4583 # Didn't find any BSD compatible name lister, look for dumpbin.
4584 if test -n "$ac_tool_prefix"; then
4585 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4586 do
4587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4588set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4589echo "$as_me:$LINENO: checking for $ac_word" >&5
4590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4591if test "${ac_cv_prog_DUMPBIN+set}" = set; then
cfbc9945 4592 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4593else
d7040cdb
SE
4594 if test -n "$DUMPBIN"; then
4595 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4596else
4597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4607 fi
4608done
4609done
5464f5a1 4610
d7040cdb
SE
4611fi
4612fi
4613DUMPBIN=$ac_cv_prog_DUMPBIN
4614if test -n "$DUMPBIN"; then
4615 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4616echo "${ECHO_T}$DUMPBIN" >&6
4617else
4618 echo "$as_me:$LINENO: result: no" >&5
4619echo "${ECHO_T}no" >&6
4620fi
d5fbea21 4621
d7040cdb
SE
4622 test -n "$DUMPBIN" && break
4623 done
4624fi
4625if test -z "$DUMPBIN"; then
4626 ac_ct_DUMPBIN=$DUMPBIN
4627 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4628do
4629 # Extract the first word of "$ac_prog", so it can be a program name with args.
4630set dummy $ac_prog; ac_word=$2
4631echo "$as_me:$LINENO: checking for $ac_word" >&5
4632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4633if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635else
4636 if test -n "$ac_ct_DUMPBIN"; then
4637 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4638else
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
cfbc9945 4649 fi
d7040cdb
SE
4650done
4651done
d5fbea21 4652
d7040cdb
SE
4653fi
4654fi
4655ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4656if test -n "$ac_ct_DUMPBIN"; then
4657 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4658echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4659else
4660 echo "$as_me:$LINENO: result: no" >&5
4661echo "${ECHO_T}no" >&6
4662fi
d5fbea21 4663
d7040cdb
SE
4664 test -n "$ac_ct_DUMPBIN" && break
4665done
4666test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
24443139 4667
d7040cdb
SE
4668 DUMPBIN=$ac_ct_DUMPBIN
4669fi
24443139 4670
24443139 4671
d7040cdb
SE
4672 if test "$DUMPBIN" != ":"; then
4673 NM="$DUMPBIN"
cfbc9945 4674 fi
d7040cdb
SE
4675fi
4676test -z "$NM" && NM=nm
a703a6ea 4677
f5385ebf 4678
cfbc9945 4679
24443139
AS
4680
4681
4682
d7040cdb
SE
4683echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4684echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4685if test "${lt_cv_nm_interface+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687else
4688 lt_cv_nm_interface="BSD nm"
4689 echo "int some_variable = 0;" > conftest.$ac_ext
6194aaab 4690 (eval echo "\"\$as_me:4690: $ac_compile\"" >&5)
d7040cdb
SE
4691 (eval "$ac_compile" 2>conftest.err)
4692 cat conftest.err >&5
6194aaab 4693 (eval echo "\"\$as_me:4693: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
4694 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4695 cat conftest.err >&5
6194aaab 4696 (eval echo "\"\$as_me:4696: output\"" >&5)
d7040cdb
SE
4697 cat conftest.out >&5
4698 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4699 lt_cv_nm_interface="MS dumpbin"
4700 fi
4701 rm -f conftest*
cfbc9945 4702fi
d7040cdb
SE
4703echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4704echo "${ECHO_T}$lt_cv_nm_interface" >&6
a703a6ea 4705
d7040cdb
SE
4706echo "$as_me:$LINENO: checking whether ln -s works" >&5
4707echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4708LN_S=$as_ln_s
4709if test "$LN_S" = "ln -s"; then
4710 echo "$as_me:$LINENO: result: yes" >&5
4711echo "${ECHO_T}yes" >&6
4712else
4713 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4714echo "${ECHO_T}no, using $LN_S" >&6
4715fi
252b5132 4716
cfbc9945
SE
4717# find the maximum length of command line arguments
4718echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4719echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4720if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723 i=0
4724 teststring="ABCD"
5464f5a1 4725
cfbc9945
SE
4726 case $build_os in
4727 msdosdjgpp*)
4728 # On DJGPP, this test can blow up pretty badly due to problems in libc
4729 # (any single argument exceeding 2000 bytes causes a buffer overrun
4730 # during glob expansion). Even if it were fixed, the result of this
4731 # check would be larger than it should be.
4732 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4733 ;;
5464f5a1 4734
d7040cdb
SE
4735 gnu*)
4736 # Under GNU Hurd, this test is not required because there is
4737 # no limit to the length of command line arguments.
4738 # Libtool will interpret -1 as no limit whatsoever
4739 lt_cv_sys_max_cmd_len=-1;
4740 ;;
4741
cfbc9945
SE
4742 cygwin* | mingw*)
4743 # On Win9x/ME, this test blows up -- it succeeds, but takes
4744 # about 5 minutes as the teststring grows exponentially.
4745 # Worse, since 9x/ME are not pre-emptively multitasking,
4746 # you end up with a "frozen" computer, even though with patience
4747 # the test eventually succeeds (with a max line length of 256k).
4748 # Instead, let's just punt: use the minimum linelength reported by
4749 # all of the supported platforms: 8192 (on NT/2K/XP).
4750 lt_cv_sys_max_cmd_len=8192;
4751 ;;
5464f5a1 4752
cfbc9945
SE
4753 amigaos*)
4754 # On AmigaOS with pdksh, this test takes hours, literally.
4755 # So we just punt and use a minimum line length of 8192.
4756 lt_cv_sys_max_cmd_len=8192;
4757 ;;
5464f5a1 4758
cfbc9945
SE
4759 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4760 # This has been around since 386BSD, at least. Likely further.
4761 if test -x /sbin/sysctl; then
4762 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4763 elif test -x /usr/sbin/sysctl; then
4764 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4765 else
d7040cdb 4766 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
4767 fi
4768 # And add a safety zone
4769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4771 ;;
d7040cdb
SE
4772
4773 interix*)
4774 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4775 lt_cv_sys_max_cmd_len=196608
4776 ;;
4777
4778 osf*)
4779 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4780 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4781 # nice to cause kernel panics so lets avoid the loop below.
4782 # First set a reasonable default.
4783 lt_cv_sys_max_cmd_len=16384
4784 #
4785 if test -x /sbin/sysconfig; then
4786 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4787 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4788 esac
4789 fi
4790 ;;
4791 sco3.2v5*)
4792 lt_cv_sys_max_cmd_len=102400
4793 ;;
4794 sysv5* | sco5v6* | sysv4.2uw2*)
4795 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4796 if test -n "$kargmax"; then
4797 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4798 else
4799 lt_cv_sys_max_cmd_len=32768
4800 fi
4801 ;;
4802 *)
79887925
L
4803 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4804 if test -n $lt_cv_sys_max_cmd_len; then
4805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4807 else
4808 # Make teststring a little bigger before we do anything with it.
4809 # a 1K string should be a reasonable start.
4810 for i in 1 2 3 4 5 6 7 8 ; do
4811 teststring=$teststring$teststring
4812 done
4813 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4814 # If test is not a shell built-in, we'll probably end up computing a
4815 # maximum length that is only half of the actual maximum length, but
4816 # we can't tell.
4817 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4818 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4819 test $i != 17 # 1/2 MB should be enough
4820 do
4821 i=`expr $i + 1`
4822 teststring=$teststring$teststring
4823 done
4824 # Only check the string length outside the loop.
4825 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4826 teststring=
4827 # Add a significant safety factor because C++ compilers can tack on
4828 # massive amounts of additional arguments before passing them to the
4829 # linker. It appears as though 1/2 is a usable value.
4830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4831 fi
d7040cdb 4832 ;;
cfbc9945 4833 esac
5464f5a1 4834
252b5132 4835fi
cfbc9945 4836
d7040cdb 4837if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
4838 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4839echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 4840else
cfbc9945
SE
4841 echo "$as_me:$LINENO: result: none" >&5
4842echo "${ECHO_T}none" >&6
5464f5a1 4843fi
d7040cdb 4844max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 4845
cfbc9945 4846
252b5132 4847
cfbc9945 4848
cfbc9945 4849
d7040cdb
SE
4850
4851
4852: ${CP="cp -f"}
4853: ${MV="mv -f"}
4854: ${RM="rm -f"}
4855
4856echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4857echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4858# Try some XSI features
4859xsi_shell=no
4860( _lt_dummy="a/b/c"
4861 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4862 = c,a/b,, ) >/dev/null 2>&1 \
4863 && xsi_shell=yes
4864echo "$as_me:$LINENO: result: $xsi_shell" >&5
4865echo "${ECHO_T}$xsi_shell" >&6
4866
4867
4868echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4869echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4870lt_shell_append=no
4871( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4872 >/dev/null 2>&1 \
4873 && lt_shell_append=yes
4874echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4875echo "${ECHO_T}$lt_shell_append" >&6
4876
4877
4878if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4879 lt_unset=unset
5464f5a1 4880else
d7040cdb 4881 lt_unset=false
5464f5a1 4882fi
252b5132 4883
d7040cdb
SE
4884
4885
4886
4887
4888# test EBCDIC or ASCII
4889case `echo X|tr X '\101'` in
4890 A) # ASCII based system
4891 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4892 lt_SP2NL='tr \040 \012'
4893 lt_NL2SP='tr \015\012 \040\040'
4894 ;;
4895 *) # EBCDIC based system
4896 lt_SP2NL='tr \100 \n'
4897 lt_NL2SP='tr \r\n \100\100'
4898 ;;
4899esac
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4910echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4911if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4913else
d7040cdb
SE
4914 lt_cv_ld_reload_flag='-r'
4915fi
4916echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4917echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4918reload_flag=$lt_cv_ld_reload_flag
4919case $reload_flag in
4920"" | " "*) ;;
4921*) reload_flag=" $reload_flag" ;;
4922esac
4923reload_cmds='$LD$reload_flag -o $output$reload_objs'
4924case $host_os in
4925 darwin*)
4926 if test "$GCC" = yes; then
4927 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4928 else
4929 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4930 fi
4931 ;;
4932esac
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4944echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4945if test "${lt_cv_deplibs_check_method+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948 lt_cv_file_magic_cmd='$MAGIC_CMD'
4949lt_cv_file_magic_test_file=
4950lt_cv_deplibs_check_method='unknown'
4951# Need to set the preceding variable on all platforms that support
4952# interlibrary dependencies.
4953# 'none' -- dependencies not supported.
4954# `unknown' -- same as none, but documents that we really don't know.
4955# 'pass_all' -- all dependencies passed with no checks.
4956# 'test_compile' -- check by making test program.
4957# 'file_magic [[regex]]' -- check by looking for files in library path
4958# which responds to the $file_magic_cmd with a given extended regex.
4959# If you have `file' or equivalent on your system and you're not sure
4960# whether `pass_all' will *always* work, you probably want this one.
4961
4962case $host_os in
e81819a5 4963aix[4-9]*)
d7040cdb
SE
4964 lt_cv_deplibs_check_method=pass_all
4965 ;;
4966
4967beos*)
4968 lt_cv_deplibs_check_method=pass_all
4969 ;;
4970
4971bsdi[45]*)
4972 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4973 lt_cv_file_magic_cmd='/usr/bin/file -L'
4974 lt_cv_file_magic_test_file=/shlib/libc.so
4975 ;;
4976
4977cygwin*)
4978 # func_win32_libid is a shell function defined in ltmain.sh
4979 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4980 lt_cv_file_magic_cmd='func_win32_libid'
4981 ;;
4982
4983mingw* | pw32*)
4984 # Base MSYS/MinGW do not provide the 'file' command needed by
4985 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4986 # unless we find 'file', for example because we are cross-compiling.
4987 if ( file / ) >/dev/null 2>&1; then
4988 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4989 lt_cv_file_magic_cmd='func_win32_libid'
4990 else
4991 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4992 lt_cv_file_magic_cmd='$OBJDUMP -f'
4993 fi
4994 ;;
4995
4996darwin* | rhapsody*)
4997 lt_cv_deplibs_check_method=pass_all
cfbc9945 4998 ;;
d7040cdb
SE
4999
5000freebsd* | dragonfly*)
5001 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5002 case $host_cpu in
5003 i*86 )
5004 # Not sure whether the presence of OpenBSD here was a mistake.
5005 # Let's accept both of them until this is cleared up.
5006 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5007 lt_cv_file_magic_cmd=/usr/bin/file
5008 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5009 ;;
5010 esac
5011 else
5012 lt_cv_deplibs_check_method=pass_all
5013 fi
5014 ;;
5015
5016gnu*)
5017 lt_cv_deplibs_check_method=pass_all
cfbc9945 5018 ;;
d7040cdb
SE
5019
5020hpux10.20* | hpux11*)
5021 lt_cv_file_magic_cmd=/usr/bin/file
5022 case $host_cpu in
5023 ia64*)
5024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5025 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5026 ;;
5027 hppa*64*)
5028 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]'
5029 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5030 ;;
cfbc9945 5031 *)
d7040cdb
SE
5032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5033 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5034 ;;
5035 esac
5036 ;;
6be7c12c 5037
d7040cdb
SE
5038interix[3-9]*)
5039 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5041 ;;
cfbc9945 5042
d7040cdb
SE
5043irix5* | irix6* | nonstopux*)
5044 case $LD in
5045 *-32|*"-32 ") libmagic=32-bit;;
5046 *-n32|*"-n32 ") libmagic=N32;;
5047 *-64|*"-64 ") libmagic=64-bit;;
5048 *) libmagic=never-match;;
5049 esac
5050 lt_cv_deplibs_check_method=pass_all
cfbc9945 5051 ;;
cfbc9945 5052
d7040cdb
SE
5053# This must be Linux ELF.
5054linux* | k*bsd*-gnu)
5055 lt_cv_deplibs_check_method=pass_all
5056 ;;
5464f5a1 5057
d7040cdb
SE
5058netbsd*)
5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 5061 else
d7040cdb 5062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 5063 fi
d7040cdb
SE
5064 ;;
5065
5066newos6*)
5067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5068 lt_cv_file_magic_cmd=/usr/bin/file
5069 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5070 ;;
5071
5072*nto* | *qnx*)
5073 lt_cv_deplibs_check_method=pass_all
5074 ;;
cfbc9945 5075
d7040cdb
SE
5076openbsd*)
5077 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5079 else
5080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
5081 fi
5082 ;;
d7040cdb
SE
5083
5084osf3* | osf4* | osf5*)
5085 lt_cv_deplibs_check_method=pass_all
5086 ;;
5087
5088rdos*)
5089 lt_cv_deplibs_check_method=pass_all
5090 ;;
5091
5092solaris*)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095
5096sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099
5100sysv4 | sysv4.3*)
5101 case $host_vendor in
5102 motorola)
5103 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]'
5104 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5105 ;;
5106 ncr)
5107 lt_cv_deplibs_check_method=pass_all
5108 ;;
5109 sequent)
5110 lt_cv_file_magic_cmd='/bin/file'
5111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5112 ;;
5113 sni)
5114 lt_cv_file_magic_cmd='/bin/file'
5115 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5116 lt_cv_file_magic_test_file=/lib/libc.so
5117 ;;
5118 siemens)
5119 lt_cv_deplibs_check_method=pass_all
5120 ;;
5121 pc)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124 esac
5125 ;;
5126
5127tpf*)
5128 lt_cv_deplibs_check_method=pass_all
5129 ;;
cfbc9945
SE
5130esac
5131
d7040cdb
SE
5132fi
5133echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5134echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5135file_magic_cmd=$lt_cv_file_magic_cmd
5136deplibs_check_method=$lt_cv_deplibs_check_method
5137test -z "$deplibs_check_method" && deplibs_check_method=unknown
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
cfbc9945 5150if test -n "$ac_tool_prefix"; then
d7040cdb
SE
5151 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5152set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
5153echo "$as_me:$LINENO: checking for $ac_word" >&5
5154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5155if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157else
d7040cdb
SE
5158 if test -n "$AR"; then
5159 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5168 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
5169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172done
5173done
5174
5175fi
5176fi
d7040cdb
SE
5177AR=$ac_cv_prog_AR
5178if test -n "$AR"; then
5179 echo "$as_me:$LINENO: result: $AR" >&5
5180echo "${ECHO_T}$AR" >&6
5464f5a1
NN
5181else
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184fi
5185
5464f5a1 5186fi
d7040cdb
SE
5187if test -z "$ac_cv_prog_AR"; then
5188 ac_ct_AR=$AR
5189 # Extract the first word of "ar", so it can be a program name with args.
5190set dummy ar; ac_word=$2
5464f5a1
NN
5191echo "$as_me:$LINENO: checking for $ac_word" >&5
5192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5193if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 5194 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5195else
d7040cdb
SE
5196 if test -n "$ac_ct_AR"; then
5197 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 5198else
5464f5a1
NN
5199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200for as_dir in $PATH
5201do
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5206 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5209 fi
5210done
5211done
5212
d7040cdb 5213 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
5214fi
5215fi
d7040cdb
SE
5216ac_ct_AR=$ac_cv_prog_ac_ct_AR
5217if test -n "$ac_ct_AR"; then
5218 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5219echo "${ECHO_T}$ac_ct_AR" >&6
5220else
5221 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
5222echo "${ECHO_T}no" >&6
5223fi
5224
d7040cdb 5225 AR=$ac_ct_AR
cfbc9945 5226else
d7040cdb 5227 AR="$ac_cv_prog_AR"
5464f5a1 5228fi
cfbc9945 5229
d7040cdb
SE
5230test -z "$AR" && AR=ar
5231test -z "$AR_FLAGS" && AR_FLAGS=cru
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
cfbc9945
SE
5243if test -n "$ac_tool_prefix"; then
5244 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5245set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
5246echo "$as_me:$LINENO: checking for $ac_word" >&5
5247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5248if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5250else
cfbc9945
SE
5251 if test -n "$STRIP"; then
5252 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
5253else
5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 5261 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
5262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265done
5266done
5267
5268fi
5269fi
cfbc9945
SE
5270STRIP=$ac_cv_prog_STRIP
5271if test -n "$STRIP"; then
5272 echo "$as_me:$LINENO: result: $STRIP" >&5
5273echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
5274else
5275 echo "$as_me:$LINENO: result: no" >&5
5276echo "${ECHO_T}no" >&6
5277fi
5278
252b5132 5279fi
cfbc9945
SE
5280if test -z "$ac_cv_prog_STRIP"; then
5281 ac_ct_STRIP=$STRIP
5282 # Extract the first word of "strip", so it can be a program name with args.
5283set dummy strip; ac_word=$2
5464f5a1
NN
5284echo "$as_me:$LINENO: checking for $ac_word" >&5
5285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5286if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288else
cfbc9945
SE
5289 if test -n "$ac_ct_STRIP"; then
5290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
5291else
5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293for as_dir in $PATH
5294do
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 5299 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
5300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 break 2
5302 fi
5303done
5304done
5305
cfbc9945 5306 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
5307fi
5308fi
cfbc9945
SE
5309ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5310if test -n "$ac_ct_STRIP"; then
5311 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5312echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
5313else
5314 echo "$as_me:$LINENO: result: no" >&5
5315echo "${ECHO_T}no" >&6
5316fi
5317
cfbc9945
SE
5318 STRIP=$ac_ct_STRIP
5319else
5320 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
5321fi
5322
d7040cdb 5323test -z "$STRIP" && STRIP=:
5464f5a1 5324
cfbc9945
SE
5325
5326
cfbc9945 5327
cfbc9945
SE
5328
5329
d7040cdb
SE
5330if test -n "$ac_tool_prefix"; then
5331 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5332set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5333echo "$as_me:$LINENO: checking for $ac_word" >&5
5334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5335if test "${ac_cv_prog_RANLIB+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 5337else
d7040cdb
SE
5338 if test -n "$RANLIB"; then
5339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5340else
5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342for as_dir in $PATH
5343do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
cfbc9945 5351 fi
d7040cdb
SE
5352done
5353done
cfbc9945 5354
d7040cdb
SE
5355fi
5356fi
5357RANLIB=$ac_cv_prog_RANLIB
5358if test -n "$RANLIB"; then
5359 echo "$as_me:$LINENO: result: $RANLIB" >&5
5360echo "${ECHO_T}$RANLIB" >&6
5361else
5362 echo "$as_me:$LINENO: result: no" >&5
5363echo "${ECHO_T}no" >&6
5364fi
cfbc9945 5365
d7040cdb
SE
5366fi
5367if test -z "$ac_cv_prog_RANLIB"; then
5368 ac_ct_RANLIB=$RANLIB
5369 # Extract the first word of "ranlib", so it can be a program name with args.
5370set dummy ranlib; ac_word=$2
5371echo "$as_me:$LINENO: checking for $ac_word" >&5
5372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5373if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375else
5376 if test -n "$ac_ct_RANLIB"; then
5377 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5378else
5379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380for as_dir in $PATH
5381do
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386 ac_cv_prog_ac_ct_RANLIB="ranlib"
5387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 break 2
cfbc9945 5389 fi
d7040cdb
SE
5390done
5391done
cfbc9945 5392
d7040cdb
SE
5393 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5394fi
5395fi
5396ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5397if test -n "$ac_ct_RANLIB"; then
5398 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5399echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 5400else
d7040cdb
SE
5401 echo "$as_me:$LINENO: result: no" >&5
5402echo "${ECHO_T}no" >&6
5403fi
5464f5a1 5404
d7040cdb
SE
5405 RANLIB=$ac_ct_RANLIB
5406else
5407 RANLIB="$ac_cv_prog_RANLIB"
5408fi
5464f5a1 5409
d7040cdb 5410test -z "$RANLIB" && RANLIB=:
5464f5a1 5411
5464f5a1 5412
5464f5a1 5413
cfbc9945 5414
cfbc9945 5415
d7040cdb
SE
5416
5417# Determine commands to create old-style static archives.
5418old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5419old_postinstall_cmds='chmod 644 $oldlib'
5420old_postuninstall_cmds=
5421
5422if test -n "$RANLIB"; then
5423 case $host_os in
5424 openbsd*)
5425 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5426 ;;
5427 *)
5428 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5429 ;;
5430 esac
5431 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 5432fi
cfbc9945
SE
5433
5434
cfbc9945
SE
5435
5436
cfbc9945 5437
cfbc9945 5438
cfbc9945 5439
cfbc9945 5440
cfbc9945
SE
5441
5442
cfbc9945 5443
cfbc9945 5444
cfbc9945
SE
5445
5446
5447
5448
5449
5450
5451
5464f5a1 5452
5464f5a1 5453
cfbc9945
SE
5454
5455
5456
5464f5a1 5457
5464f5a1 5458
cfbc9945
SE
5459
5460
5461
5464f5a1 5462
cfbc9945
SE
5463
5464
5465
5466
d7040cdb
SE
5467# If no C compiler was specified, use CC.
5468LTCC=${LTCC-"$CC"}
cfbc9945 5469
d7040cdb
SE
5470# If no C compiler flags were specified, use CFLAGS.
5471LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 5472
d7040cdb
SE
5473# Allow CC to be a program name with arguments.
5474compiler=$CC
cfbc9945 5475
cfbc9945 5476
d7040cdb
SE
5477# Check for command to grab the raw symbol name followed by C symbol from nm.
5478echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5479echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5480if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5464f5a1 5483
d7040cdb
SE
5484# These are sane defaults that work on at least a few old systems.
5485# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 5486
d7040cdb
SE
5487# Character class describing NM global symbol codes.
5488symcode='[BCDEGRST]'
5489
5490# Regexp to match symbols that can be accessed directly from C.
5491sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5492
5493# Define system-specific variables.
5494case $host_os in
5495aix*)
5496 symcode='[BCDT]'
5497 ;;
5498cygwin* | mingw* | pw32*)
5499 symcode='[ABCDGISTW]'
5500 ;;
5501hpux*)
5502 if test "$host_cpu" = ia64; then
5503 symcode='[ABCDEGRST]'
5504 fi
5505 ;;
5506irix* | nonstopux*)
5507 symcode='[BCDEGRST]'
5508 ;;
5509osf*)
5510 symcode='[BCDEGQRST]'
5511 ;;
5512solaris*)
5513 symcode='[BDRT]'
5514 ;;
5515sco3.2v5*)
5516 symcode='[DT]'
5517 ;;
5518sysv4.2uw2*)
5519 symcode='[DT]'
5520 ;;
5521sysv5* | sco5v6* | unixware* | OpenUNIX*)
5522 symcode='[ABDT]'
5523 ;;
5524sysv4)
5525 symcode='[DFNSTU]'
5526 ;;
cfbc9945 5527esac
5464f5a1 5528
d7040cdb
SE
5529# If we're using GNU nm, then use its standard symbol codes.
5530case `$NM -V 2>&1` in
5531*GNU* | *'with BFD'*)
5532 symcode='[ABCDGIRSTW]' ;;
5533esac
5464f5a1 5534
d7040cdb
SE
5535# Transform an extracted symbol line into a proper C declaration.
5536# Some systems (esp. on ia64) link data and code symbols differently,
5537# so use this general approach.
5538lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 5539
d7040cdb
SE
5540# Transform an extracted symbol line into symbol name and symbol address
5541lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5464f5a1 5542
d7040cdb
SE
5543# Handle CRLF in mingw tool chain
5544opt_cr=
5545case $build_os in
5546mingw*)
5547 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5548 ;;
5549esac
5464f5a1 5550
d7040cdb
SE
5551# Try without a prefix underscore, then with it.
5552for ac_symprfx in "" "_"; do
5553
5554 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5555 symxfrm="\\1 $ac_symprfx\\2 \\2"
5556
5557 # Write the raw and C identifiers.
5558 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5559 # Fake it for dumpbin and say T for any non-static function
5560 # and D for any global variable.
5561 # Also find C++ and __fastcall symbols from MSVC++,
5562 # which start with @ or ?.
5563 lt_cv_sys_global_symbol_pipe="$AWK '"\
5564" {last_section=section; section=\$ 3};"\
5565" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5566" \$ 0!~/External *\|/{next};"\
5567" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5568" {if(hide[section]) next};"\
5569" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5570" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5571" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5572" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5573" ' prfx=^$ac_symprfx"
5574 else
5575 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5576 fi
cfbc9945 5577
d7040cdb
SE
5578 # Check to see that the pipe works correctly.
5579 pipe_works=no
cfbc9945 5580
d7040cdb
SE
5581 rm -f conftest*
5582 cat > conftest.$ac_ext <<_LT_EOF
5583#ifdef __cplusplus
5584extern "C" {
5585#endif
5586char nm_test_var;
5587void nm_test_func(void);
5588void nm_test_func(void){}
5589#ifdef __cplusplus
5590}
5591#endif
5592int main(){nm_test_var='a';nm_test_func();return(0);}
5593_LT_EOF
cfbc9945 5594
d7040cdb
SE
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; then
5600 # Now try to grab the symbols.
5601 nlist=conftest.nm
5602 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5603 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } && test -s "$nlist"; then
5607 # Try sorting and uniquifying the output.
5608 if sort "$nlist" | uniq > "$nlist"T; then
5609 mv -f "$nlist"T "$nlist"
5610 else
5611 rm -f "$nlist"T
5612 fi
cfbc9945 5613
d7040cdb
SE
5614 # Make sure that we snagged all the symbols we need.
5615 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5616 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5617 cat <<_LT_EOF > conftest.$ac_ext
5618#ifdef __cplusplus
5619extern "C" {
5620#endif
cfbc9945 5621
d7040cdb
SE
5622_LT_EOF
5623 # Now generate the symbol file.
5624 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 5625
d7040cdb 5626 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 5627
d7040cdb
SE
5628/* The mapping between symbol names and symbols. */
5629const struct {
5630 const char *name;
5631 void *address;
5632}
5633lt__PROGRAM__LTX_preloaded_symbols[] =
5634{
5635 { "@PROGRAM@", (void *) 0 },
5636_LT_EOF
5637 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5638 cat <<\_LT_EOF >> conftest.$ac_ext
5639 {0, (void *) 0}
5640};
5641
5642/* This works around a problem in FreeBSD linker */
5643#ifdef FREEBSD_WORKAROUND
5644static const void *lt_preloaded_setup() {
5645 return lt__PROGRAM__LTX_preloaded_symbols;
5646}
5647#endif
cfbc9945 5648
d7040cdb
SE
5649#ifdef __cplusplus
5650}
5651#endif
5652_LT_EOF
5653 # Now try linking the two files.
5654 mv conftest.$ac_objext conftstm.$ac_objext
5655 lt_save_LIBS="$LIBS"
5656 lt_save_CFLAGS="$CFLAGS"
5657 LIBS="conftstm.$ac_objext"
5658 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5660 (eval $ac_link) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5664 pipe_works=yes
5665 fi
5666 LIBS="$lt_save_LIBS"
5667 CFLAGS="$lt_save_CFLAGS"
5668 else
5669 echo "cannot find nm_test_func in $nlist" >&5
5670 fi
5671 else
5672 echo "cannot find nm_test_var in $nlist" >&5
5673 fi
5674 else
5675 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5676 fi
5677 else
5678 echo "$progname: failed program was:" >&5
5679 cat conftest.$ac_ext >&5
5680 fi
5681 rm -f conftest* conftst*
cfbc9945 5682
d7040cdb
SE
5683 # Do not use the global_symbol_pipe unless it works.
5684 if test "$pipe_works" = yes; then
5685 break
5686 else
5687 lt_cv_sys_global_symbol_pipe=
5688 fi
5689done
cfbc9945 5690
252b5132 5691fi
5464f5a1 5692
d7040cdb
SE
5693if test -z "$lt_cv_sys_global_symbol_pipe"; then
5694 lt_cv_sys_global_symbol_to_cdecl=
5695fi
5696if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5697 echo "$as_me:$LINENO: result: failed" >&5
5698echo "${ECHO_T}failed" >&6
b3baf5d0 5699else
d7040cdb
SE
5700 echo "$as_me:$LINENO: result: ok" >&5
5701echo "${ECHO_T}ok" >&6
5702fi
5464f5a1 5703
cfbc9945 5704
b3baf5d0 5705
cfbc9945
SE
5706
5707
5708
5709
5464f5a1 5710
4a2a2686
HPN
5711
5712
5713
cfbc9945
SE
5714
5715
cfbc9945 5716
cfbc9945 5717
9d7cbccd 5718
20e95c23 5719
d7040cdb
SE
5720# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5721if test "${enable_libtool_lock+set}" = set; then
5722 enableval="$enable_libtool_lock"
20e95c23 5723
d7040cdb
SE
5724fi;
5725test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 5726
d7040cdb
SE
5727# Some flags need to be propagated to the compiler or linker for good
5728# libtool support.
5729case $host in
5730ia64-*-hpux*)
5731 # Find out which ABI we are using.
5732 echo 'int i;' > conftest.$ac_ext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734 (eval $ac_compile) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; then
5738 case `/usr/bin/file conftest.$ac_objext` in
5739 *ELF-32*)
5740 HPUX_IA64_MODE="32"
5741 ;;
5742 *ELF-64*)
5743 HPUX_IA64_MODE="64"
5744 ;;
20e95c23 5745 esac
d7040cdb
SE
5746 fi
5747 rm -rf conftest*
5748 ;;
5749*-*-irix6*)
5750 # Find out which ABI we are using.
6194aaab 5751 echo '#line 5751 "configure"' > conftest.$ac_ext
d7040cdb
SE
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; then
5757 if test "$lt_cv_prog_gnu_ld" = yes; then
5758 case `/usr/bin/file conftest.$ac_objext` in
5759 *32-bit*)
5760 LD="${LD-ld} -melf32bsmip"
5761 ;;
5762 *N32*)
5763 LD="${LD-ld} -melf32bmipn32"
5764 ;;
5765 *64-bit*)
5766 LD="${LD-ld} -melf64bmip"
5767 ;;
5768 esac
20e95c23 5769 else
d7040cdb
SE
5770 case `/usr/bin/file conftest.$ac_objext` in
5771 *32-bit*)
5772 LD="${LD-ld} -32"
5773 ;;
5774 *N32*)
5775 LD="${LD-ld} -n32"
5776 ;;
5777 *64-bit*)
5778 LD="${LD-ld} -64"
5779 ;;
20e95c23
DJ
5780 esac
5781 fi
d7040cdb
SE
5782 fi
5783 rm -rf conftest*
5784 ;;
20e95c23 5785
d7040cdb
SE
5786x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5787s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5788 # Find out which ABI we are using.
5789 echo 'int i;' > conftest.$ac_ext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5791 (eval $ac_compile) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; then
5795 case `/usr/bin/file conftest.o` in
5796 *32-bit*)
5797 case $host in
5798 x86_64-*kfreebsd*-gnu)
5799 LD="${LD-ld} -m elf_i386_fbsd"
5800 ;;
5801 x86_64-*linux*)
5802 LD="${LD-ld} -m elf_i386"
5803 ;;
5804 ppc64-*linux*|powerpc64-*linux*)
5805 LD="${LD-ld} -m elf32ppclinux"
5806 ;;
5807 s390x-*linux*)
5808 LD="${LD-ld} -m elf_s390"
5809 ;;
5810 sparc64-*linux*)
5811 LD="${LD-ld} -m elf32_sparc"
5812 ;;
5813 esac
5814 ;;
5815 *64-bit*)
5816 case $host in
5817 x86_64-*kfreebsd*-gnu)
5818 LD="${LD-ld} -m elf_x86_64_fbsd"
5819 ;;
5820 x86_64-*linux*)
5821 LD="${LD-ld} -m elf_x86_64"
5822 ;;
5823 ppc*-*linux*|powerpc*-*linux*)
5824 LD="${LD-ld} -m elf64ppc"
5825 ;;
5826 s390*-*linux*|s390*-*tpf*)
5827 LD="${LD-ld} -m elf64_s390"
5828 ;;
5829 sparc*-*linux*)
5830 LD="${LD-ld} -m elf64_sparc"
5831 ;;
5832 esac
5833 ;;
20e95c23
DJ
5834 esac
5835 fi
d7040cdb
SE
5836 rm -rf conftest*
5837 ;;
20e95c23 5838
d7040cdb
SE
5839*-*-sco3.2v5*)
5840 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5841 SAVE_CFLAGS="$CFLAGS"
5842 CFLAGS="$CFLAGS -belf"
5843 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5844echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5845if test "${lt_cv_cc_needs_belf+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5847else
d7040cdb
SE
5848 ac_ext=c
5849ac_cpp='$CPP $CPPFLAGS'
5850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 5853
d7040cdb
SE
5854 cat >conftest.$ac_ext <<_ACEOF
5855/* confdefs.h. */
5856_ACEOF
5857cat confdefs.h >>conftest.$ac_ext
5858cat >>conftest.$ac_ext <<_ACEOF
5859/* end confdefs.h. */
20e95c23 5860
d7040cdb
SE
5861int
5862main ()
5863{
20e95c23 5864
d7040cdb
SE
5865 ;
5866 return 0;
5867}
5868_ACEOF
5869rm -f conftest.$ac_objext conftest$ac_exeext
5870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5871 (eval $ac_link) 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_c_werror_flag"
5879 || test ! -s conftest.err'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; } &&
5885 { ac_try='test -s conftest$ac_exeext'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5891 lt_cv_cc_needs_belf=yes
5892else
5893 echo "$as_me: failed program was:" >&5
5894sed 's/^/| /' conftest.$ac_ext >&5
5895
5896lt_cv_cc_needs_belf=no
5897fi
5898rm -f conftest.err conftest.$ac_objext \
5899 conftest$ac_exeext conftest.$ac_ext
5900 ac_ext=c
5901ac_cpp='$CPP $CPPFLAGS'
5902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905
5906fi
5907echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5908echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5909 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5910 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5911 CFLAGS="$SAVE_CFLAGS"
5912 fi
5913 ;;
5914sparc*-*solaris*)
5915 # Find out which ABI we are using.
5916 echo 'int i;' > conftest.$ac_ext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; then
5922 case `/usr/bin/file conftest.o` in
5923 *64-bit*)
5924 case $lt_cv_prog_gnu_ld in
5925 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5926 *) LD="${LD-ld} -64" ;;
5927 esac
5928 ;;
5929 esac
5930 fi
5931 rm -rf conftest*
5932 ;;
5933esac
5934
5935need_locks="$enable_libtool_lock"
5936
5937ac_ext=c
5938ac_cpp='$CPP $CPPFLAGS'
5939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941ac_compiler_gnu=$ac_cv_c_compiler_gnu
5942echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5943echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5944# On Suns, sometimes $CPP names a directory.
5945if test -n "$CPP" && test -d "$CPP"; then
5946 CPP=
5947fi
5948if test -z "$CPP"; then
5949 if test "${ac_cv_prog_CPP+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952 # Double quotes because CPP needs to be expanded
5953 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5954 do
5955 ac_preproc_ok=false
5956for ac_c_preproc_warn_flag in '' yes
5957do
5958 # Use a header file that comes with gcc, so configuring glibc
5959 # with a fresh cross-compiler works.
5960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5961 # <limits.h> exists even on freestanding compilers.
5962 # On the NeXT, cc -E runs the code through the compiler's parser,
5963 # not just through cpp. "Syntax error" is here to catch this case.
5964 cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h. */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h. */
5970#ifdef __STDC__
5971# include <limits.h>
5972#else
5973# include <assert.h>
5974#endif
5975 Syntax error
5976_ACEOF
5977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } >/dev/null; then
5985 if test -s conftest.err; then
5986 ac_cpp_err=$ac_c_preproc_warn_flag
5987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5988 else
5989 ac_cpp_err=
5990 fi
5991else
5992 ac_cpp_err=yes
5993fi
5994if test -z "$ac_cpp_err"; then
5995 :
5996else
5997 echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000 # Broken: fails on valid input.
6001continue
6002fi
6003rm -f conftest.err conftest.$ac_ext
6004
6005 # OK, works on sane cases. Now check whether non-existent headers
6006 # can be detected and how.
6007 cat >conftest.$ac_ext <<_ACEOF
6008/* confdefs.h. */
6009_ACEOF
6010cat confdefs.h >>conftest.$ac_ext
6011cat >>conftest.$ac_ext <<_ACEOF
6012/* end confdefs.h. */
6013#include <ac_nonexistent.h>
6014_ACEOF
6015if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } >/dev/null; then
6023 if test -s conftest.err; then
6024 ac_cpp_err=$ac_c_preproc_warn_flag
6025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6026 else
6027 ac_cpp_err=
6028 fi
6029else
6030 ac_cpp_err=yes
6031fi
6032if test -z "$ac_cpp_err"; then
6033 # Broken: success on invalid input.
6034continue
6035else
6036 echo "$as_me: failed program was:" >&5
6037sed 's/^/| /' conftest.$ac_ext >&5
6038
6039 # Passes both tests.
6040ac_preproc_ok=:
6041break
6042fi
6043rm -f conftest.err conftest.$ac_ext
6044
6045done
6046# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6047rm -f conftest.err conftest.$ac_ext
6048if $ac_preproc_ok; then
6049 break
6050fi
6051
6052 done
6053 ac_cv_prog_CPP=$CPP
6054
6055fi
6056 CPP=$ac_cv_prog_CPP
6057else
6058 ac_cv_prog_CPP=$CPP
6059fi
6060echo "$as_me:$LINENO: result: $CPP" >&5
6061echo "${ECHO_T}$CPP" >&6
6062ac_preproc_ok=false
6063for ac_c_preproc_warn_flag in '' yes
6064do
6065 # Use a header file that comes with gcc, so configuring glibc
6066 # with a fresh cross-compiler works.
6067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6068 # <limits.h> exists even on freestanding compilers.
6069 # On the NeXT, cc -E runs the code through the compiler's parser,
6070 # not just through cpp. "Syntax error" is here to catch this case.
6071 cat >conftest.$ac_ext <<_ACEOF
6072/* confdefs.h. */
6073_ACEOF
6074cat confdefs.h >>conftest.$ac_ext
6075cat >>conftest.$ac_ext <<_ACEOF
6076/* end confdefs.h. */
6077#ifdef __STDC__
6078# include <limits.h>
6079#else
6080# include <assert.h>
6081#endif
6082 Syntax error
6083_ACEOF
6084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } >/dev/null; then
6092 if test -s conftest.err; then
6093 ac_cpp_err=$ac_c_preproc_warn_flag
6094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6095 else
6096 ac_cpp_err=
6097 fi
6098else
6099 ac_cpp_err=yes
6100fi
6101if test -z "$ac_cpp_err"; then
6102 :
6103else
6104 echo "$as_me: failed program was:" >&5
6105sed 's/^/| /' conftest.$ac_ext >&5
6106
6107 # Broken: fails on valid input.
6108continue
6109fi
6110rm -f conftest.err conftest.$ac_ext
6111
6112 # OK, works on sane cases. Now check whether non-existent headers
6113 # can be detected and how.
6114 cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h. */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
6119/* end confdefs.h. */
6120#include <ac_nonexistent.h>
6121_ACEOF
6122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } >/dev/null; then
6130 if test -s conftest.err; then
6131 ac_cpp_err=$ac_c_preproc_warn_flag
6132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6133 else
6134 ac_cpp_err=
6135 fi
6136else
6137 ac_cpp_err=yes
6138fi
6139if test -z "$ac_cpp_err"; then
6140 # Broken: success on invalid input.
6141continue
6142else
6143 echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
6146 # Passes both tests.
6147ac_preproc_ok=:
6148break
6149fi
6150rm -f conftest.err conftest.$ac_ext
6151
6152done
6153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6154rm -f conftest.err conftest.$ac_ext
6155if $ac_preproc_ok; then
6156 :
6157else
6158 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6159See \`config.log' for more details." >&5
6160echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6161See \`config.log' for more details." >&2;}
6162 { (exit 1); exit 1; }; }
6163fi
6164
6165ac_ext=c
6166ac_cpp='$CPP $CPPFLAGS'
6167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170
6171
6172echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6173echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6174if test "${ac_cv_header_stdc+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
6177 cat >conftest.$ac_ext <<_ACEOF
6178/* confdefs.h. */
6179_ACEOF
6180cat confdefs.h >>conftest.$ac_ext
6181cat >>conftest.$ac_ext <<_ACEOF
6182/* end confdefs.h. */
6183#include <stdlib.h>
6184#include <stdarg.h>
6185#include <string.h>
6186#include <float.h>
6187
6188int
6189main ()
6190{
6191
6192 ;
6193 return 0;
6194}
6195_ACEOF
6196rm -f conftest.$ac_objext
6197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6198 (eval $ac_compile) 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } &&
6205 { ac_try='test -z "$ac_c_werror_flag"
6206 || test ! -s conftest.err'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 (eval $ac_try) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; } &&
6212 { ac_try='test -s conftest.$ac_objext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_cv_header_stdc=yes
6219else
6220 echo "$as_me: failed program was:" >&5
6221sed 's/^/| /' conftest.$ac_ext >&5
6222
6223ac_cv_header_stdc=no
6224fi
6225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6226
6227if test $ac_cv_header_stdc = yes; then
6228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6229 cat >conftest.$ac_ext <<_ACEOF
6230/* confdefs.h. */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
6234/* end confdefs.h. */
6235#include <string.h>
6236
6237_ACEOF
6238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239 $EGREP "memchr" >/dev/null 2>&1; then
6240 :
6241else
6242 ac_cv_header_stdc=no
6243fi
6244rm -f conftest*
6245
6246fi
6247
6248if test $ac_cv_header_stdc = yes; then
6249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6250 cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
6256#include <stdlib.h>
6257
6258_ACEOF
6259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260 $EGREP "free" >/dev/null 2>&1; then
6261 :
6262else
6263 ac_cv_header_stdc=no
6264fi
6265rm -f conftest*
6266
6267fi
6268
6269if test $ac_cv_header_stdc = yes; then
6270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6271 if test "$cross_compiling" = yes; then
6272 :
6273else
6274 cat >conftest.$ac_ext <<_ACEOF
6275/* confdefs.h. */
6276_ACEOF
6277cat confdefs.h >>conftest.$ac_ext
6278cat >>conftest.$ac_ext <<_ACEOF
6279/* end confdefs.h. */
6280#include <ctype.h>
6281#if ((' ' & 0x0FF) == 0x020)
6282# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6283# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6284#else
6285# define ISLOWER(c) \
6286 (('a' <= (c) && (c) <= 'i') \
6287 || ('j' <= (c) && (c) <= 'r') \
6288 || ('s' <= (c) && (c) <= 'z'))
6289# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6290#endif
6291
6292#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6293int
6294main ()
6295{
6296 int i;
6297 for (i = 0; i < 256; i++)
6298 if (XOR (islower (i), ISLOWER (i))
6299 || toupper (i) != TOUPPER (i))
6300 exit(2);
6301 exit (0);
6302}
6303_ACEOF
6304rm -f conftest$ac_exeext
6305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306 (eval $ac_link) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 :
6316else
6317 echo "$as_me: program exited with status $ac_status" >&5
6318echo "$as_me: failed program was:" >&5
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
6321( exit $ac_status )
6322ac_cv_header_stdc=no
6323fi
6324rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6325fi
6326fi
6327fi
6328echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6329echo "${ECHO_T}$ac_cv_header_stdc" >&6
6330if test $ac_cv_header_stdc = yes; then
6331
6332cat >>confdefs.h <<\_ACEOF
6333#define STDC_HEADERS 1
6334_ACEOF
6335
6336fi
6337
6338# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6349 inttypes.h stdint.h unistd.h
6350do
6351as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6352echo "$as_me:$LINENO: checking for $ac_header" >&5
6353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6354if eval "test \"\${$as_ac_Header+set}\" = set"; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6356else
6357 cat >conftest.$ac_ext <<_ACEOF
6358/* confdefs.h. */
6359_ACEOF
6360cat confdefs.h >>conftest.$ac_ext
6361cat >>conftest.$ac_ext <<_ACEOF
6362/* end confdefs.h. */
6363$ac_includes_default
6364
6365#include <$ac_header>
6366_ACEOF
6367rm -f conftest.$ac_objext
6368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6369 (eval $ac_compile) 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -z "$ac_c_werror_flag"
6377 || test ! -s conftest.err'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 (eval $ac_try) 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; } &&
6383 { ac_try='test -s conftest.$ac_objext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 eval "$as_ac_Header=yes"
6390else
6391 echo "$as_me: failed program was:" >&5
6392sed 's/^/| /' conftest.$ac_ext >&5
6393
6394eval "$as_ac_Header=no"
6395fi
6396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6397fi
6398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6399echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6400if test `eval echo '${'$as_ac_Header'}'` = yes; then
6401 cat >>confdefs.h <<_ACEOF
6402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6403_ACEOF
6404
6405fi
6406
6407done
6408
6409
6410
6411for ac_header in dlfcn.h
6412do
6413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6414echo "$as_me:$LINENO: checking for $ac_header" >&5
6415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6416if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6418else
6419 cat >conftest.$ac_ext <<_ACEOF
6420/* confdefs.h. */
6421_ACEOF
6422cat confdefs.h >>conftest.$ac_ext
6423cat >>conftest.$ac_ext <<_ACEOF
6424/* end confdefs.h. */
6425$ac_includes_default
6426
6427#include <$ac_header>
6428_ACEOF
6429rm -f conftest.$ac_objext
6430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431 (eval $ac_compile) 2>conftest.er1
6432 ac_status=$?
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } &&
6438 { ac_try='test -z "$ac_c_werror_flag"
6439 || test ! -s conftest.err'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; } &&
6445 { ac_try='test -s conftest.$ac_objext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 (eval $ac_try) 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 eval "$as_ac_Header=yes"
6452else
6453 echo "$as_me: failed program was:" >&5
6454sed 's/^/| /' conftest.$ac_ext >&5
6455
6456eval "$as_ac_Header=no"
6457fi
6458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6459fi
6460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6462if test `eval echo '${'$as_ac_Header'}'` = yes; then
6463 cat >>confdefs.h <<_ACEOF
6464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6465_ACEOF
6466
6467fi
6468
6469done
6470
6471
6472
6473# This can be used to rebuild libtool when needed
6474LIBTOOL_DEPS="$ltmain"
6475
6476# Always use our own libtool.
6477LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503test -z "$LN_S" && LN_S="ln -s"
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518if test -n "${ZSH_VERSION+set}" ; then
6519 setopt NO_GLOB_SUBST
6520fi
6521
6522echo "$as_me:$LINENO: checking for objdir" >&5
6523echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6524if test "${lt_cv_objdir+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
6527 rm -f .libs 2>/dev/null
6528mkdir .libs 2>/dev/null
6529if test -d .libs; then
6530 lt_cv_objdir=.libs
6531else
6532 # MS-DOS does not allow filenames that begin with a dot.
6533 lt_cv_objdir=_libs
6534fi
6535rmdir .libs 2>/dev/null
6536fi
6537echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6538echo "${ECHO_T}$lt_cv_objdir" >&6
6539objdir=$lt_cv_objdir
6540
6541
6542
6543
6544
6545cat >>confdefs.h <<_ACEOF
6546#define LT_OBJDIR "$lt_cv_objdir/"
6547_ACEOF
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565case $host_os in
6566aix3*)
6567 # AIX sometimes has problems with the GCC collect2 program. For some
6568 # reason, if we set the COLLECT_NAMES environment variable, the problems
6569 # vanish in a puff of smoke.
6570 if test "X${COLLECT_NAMES+set}" != Xset; then
6571 COLLECT_NAMES=
6572 export COLLECT_NAMES
6573 fi
6574 ;;
6575esac
6576
6577# Sed substitution that helps us do robust quoting. It backslashifies
6578# metacharacters that are still active within double-quoted strings.
6579sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6580
6581# Same as above, but do not quote variable references.
6582double_quote_subst='s/\(["`\\]\)/\\\1/g'
6583
6584# Sed substitution to delay expansion of an escaped shell variable in a
6585# double_quote_subst'ed string.
6586delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6587
6588# Sed substitution to delay expansion of an escaped single quote.
6589delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6590
6591# Sed substitution to avoid accidental globbing in evaled expressions
6592no_glob_subst='s/\*/\\\*/g'
6593
6594# Global variables:
6595ofile=libtool
6596can_build_shared=yes
6597
6598# All known linkers require a `.a' archive for static linking (except MSVC,
6599# which needs '.lib').
6600libext=a
6601
6602with_gnu_ld="$lt_cv_prog_gnu_ld"
6603
6604old_CC="$CC"
6605old_CFLAGS="$CFLAGS"
6606
6607# Set sane defaults for various variables
6608test -z "$CC" && CC=cc
6609test -z "$LTCC" && LTCC=$CC
6610test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6611test -z "$LD" && LD=ld
6612test -z "$ac_objext" && ac_objext=o
6613
6614for cc_temp in $compiler""; do
6615 case $cc_temp in
6616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6618 \-*) ;;
6619 *) break;;
6620 esac
6621done
6622cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6623
6624
6625# Only perform the check for file, if the check method requires it
6626test -z "$MAGIC_CMD" && MAGIC_CMD=file
6627case $deplibs_check_method in
6628file_magic*)
6629 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6630 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6631echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6632if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634else
6635 case $MAGIC_CMD in
6636[\\/*] | ?:[\\/]*)
6637 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6638 ;;
6639*)
6640 lt_save_MAGIC_CMD="$MAGIC_CMD"
6641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6642 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6643 for ac_dir in $ac_dummy; do
6644 IFS="$lt_save_ifs"
6645 test -z "$ac_dir" && ac_dir=.
6646 if test -f $ac_dir/${ac_tool_prefix}file; then
6647 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6648 if test -n "$file_magic_test_file"; then
6649 case $deplibs_check_method in
6650 "file_magic "*)
6651 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6653 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6654 $EGREP "$file_magic_regex" > /dev/null; then
6655 :
6656 else
6657 cat <<_LT_EOF 1>&2
6658
6659*** Warning: the command libtool uses to detect shared libraries,
6660*** $file_magic_cmd, produces output that libtool cannot recognize.
6661*** The result is that libtool may fail to recognize shared libraries
6662*** as such. This will affect the creation of libtool libraries that
6663*** depend on shared libraries, but programs linked with such libtool
6664*** libraries will work regardless of this problem. Nevertheless, you
6665*** may want to report the problem to your system manager and/or to
6666*** bug-libtool@gnu.org
6667
6668_LT_EOF
6669 fi ;;
6670 esac
6671 fi
6672 break
6673 fi
6674 done
6675 IFS="$lt_save_ifs"
6676 MAGIC_CMD="$lt_save_MAGIC_CMD"
6677 ;;
6678esac
6679fi
6680
6681MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6682if test -n "$MAGIC_CMD"; then
6683 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6684echo "${ECHO_T}$MAGIC_CMD" >&6
6685else
6686 echo "$as_me:$LINENO: result: no" >&5
6687echo "${ECHO_T}no" >&6
6688fi
6689
6690
6691
6692
6693
6694if test -z "$lt_cv_path_MAGIC_CMD"; then
6695 if test -n "$ac_tool_prefix"; then
6696 echo "$as_me:$LINENO: checking for file" >&5
6697echo $ECHO_N "checking for file... $ECHO_C" >&6
6698if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700else
6701 case $MAGIC_CMD in
6702[\\/*] | ?:[\\/]*)
6703 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6704 ;;
6705*)
6706 lt_save_MAGIC_CMD="$MAGIC_CMD"
6707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6708 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6709 for ac_dir in $ac_dummy; do
6710 IFS="$lt_save_ifs"
6711 test -z "$ac_dir" && ac_dir=.
6712 if test -f $ac_dir/file; then
6713 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6714 if test -n "$file_magic_test_file"; then
6715 case $deplibs_check_method in
6716 "file_magic "*)
6717 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6718 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6719 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6720 $EGREP "$file_magic_regex" > /dev/null; then
6721 :
6722 else
6723 cat <<_LT_EOF 1>&2
6724
6725*** Warning: the command libtool uses to detect shared libraries,
6726*** $file_magic_cmd, produces output that libtool cannot recognize.
6727*** The result is that libtool may fail to recognize shared libraries
6728*** as such. This will affect the creation of libtool libraries that
6729*** depend on shared libraries, but programs linked with such libtool
6730*** libraries will work regardless of this problem. Nevertheless, you
6731*** may want to report the problem to your system manager and/or to
6732*** bug-libtool@gnu.org
6733
6734_LT_EOF
6735 fi ;;
6736 esac
6737 fi
6738 break
6739 fi
6740 done
6741 IFS="$lt_save_ifs"
6742 MAGIC_CMD="$lt_save_MAGIC_CMD"
6743 ;;
6744esac
6745fi
6746
6747MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6748if test -n "$MAGIC_CMD"; then
6749 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6750echo "${ECHO_T}$MAGIC_CMD" >&6
6751else
6752 echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6
6754fi
6755
6756
6757 else
6758 MAGIC_CMD=:
6759 fi
6760fi
6761
6762 fi
6763 ;;
6764esac
6765
6766# Use C for the default configuration in the libtool script
6767
6768lt_save_CC="$CC"
6769ac_ext=c
6770ac_cpp='$CPP $CPPFLAGS'
6771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773ac_compiler_gnu=$ac_cv_c_compiler_gnu
6774
6775
6776# Source file extension for C test sources.
6777ac_ext=c
6778
6779# Object file extension for compiled C test sources.
6780objext=o
6781objext=$objext
6782
6783# Code to be used in simple compile tests
6784lt_simple_compile_test_code="int some_variable = 0;"
6785
6786# Code to be used in simple link tests
6787lt_simple_link_test_code='int main(){return(0);}'
6788
6789
6790
6791
6792
6793
6794
6795# If no C compiler was specified, use CC.
6796LTCC=${LTCC-"$CC"}
6797
6798# If no C compiler flags were specified, use CFLAGS.
6799LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6800
6801# Allow CC to be a program name with arguments.
6802compiler=$CC
6803
6804# Save the default compiler, since it gets overwritten when the other
6805# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6806compiler_DEFAULT=$CC
6807
6808# save warnings/boilerplate of simple test code
6809ac_outfile=conftest.$ac_objext
6810echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6811eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6812_lt_compiler_boilerplate=`cat conftest.err`
6813$RM conftest*
6814
6815ac_outfile=conftest.$ac_objext
6816echo "$lt_simple_link_test_code" >conftest.$ac_ext
6817eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6818_lt_linker_boilerplate=`cat conftest.err`
6819$RM conftest*
6820
6821
6822## CAVEAT EMPTOR:
6823## There is no encapsulation within the following macros, do not change
6824## the running order or otherwise move them around unless you know exactly
6825## what you are doing...
6826if test -n "$compiler"; then
6827
6828lt_prog_compiler_no_builtin_flag=
6829
6830if test "$GCC" = yes; then
6831 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6832
6833 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6834echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6835if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837else
6838 lt_cv_prog_compiler_rtti_exceptions=no
6839 ac_outfile=conftest.$ac_objext
6840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6841 lt_compiler_flag="-fno-rtti -fno-exceptions"
6842 # Insert the option either (1) after the last *FLAGS variable, or
6843 # (2) before a word containing "conftest.", or (3) at the end.
6844 # Note that $ac_compile itself does not contain backslashes and begins
6845 # with a dollar sign (not a hyphen), so the echo should work correctly.
6846 # The option is referenced via a variable to avoid confusing sed.
6847 lt_compile=`echo "$ac_compile" | $SED \
6848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6850 -e 's:$: $lt_compiler_flag:'`
6194aaab 6851 (eval echo "\"\$as_me:6851: $lt_compile\"" >&5)
d7040cdb
SE
6852 (eval "$lt_compile" 2>conftest.err)
6853 ac_status=$?
6854 cat conftest.err >&5
6194aaab 6855 echo "$as_me:6855: \$? = $ac_status" >&5
d7040cdb
SE
6856 if (exit $ac_status) && test -s "$ac_outfile"; then
6857 # The compiler can only warn and ignore the option if not recognized
6858 # So say no if there are warnings other than the usual output.
6859 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6862 lt_cv_prog_compiler_rtti_exceptions=yes
6863 fi
6864 fi
6865 $RM conftest*
6866
6867fi
6868echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6869echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6870
6871if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6872 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6873else
6874 :
6875fi
6876
6877fi
6878
6879
6880
6881
6882
6883
6884 lt_prog_compiler_wl=
6885lt_prog_compiler_pic=
6886lt_prog_compiler_static=
6887
6888echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6889echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6890
6891 if test "$GCC" = yes; then
6892 lt_prog_compiler_wl='-Wl,'
6893 lt_prog_compiler_static='-static'
6894
6895 case $host_os in
6896 aix*)
6897 # All AIX code is PIC.
6898 if test "$host_cpu" = ia64; then
6899 # AIX 5 now supports IA64 processor
6900 lt_prog_compiler_static='-Bstatic'
6901 fi
6902 ;;
6903
6904 amigaos*)
6905 if test "$host_cpu" = m68k; then
6906 # FIXME: we need at least 68020 code to build shared libraries, but
6907 # adding the `-m68020' flag to GCC prevents building anything better,
6908 # like `-m68040'.
6909 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6910 fi
6911 ;;
6912
6913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6914 # PIC is the default for these OSes.
6915 ;;
6916
6917 mingw* | cygwin* | pw32* | os2*)
6918 # This hack is so that the source file can tell whether it is being
6919 # built for inclusion in a dll (and should export symbols for example).
6920 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6921 # (--disable-auto-import) libraries
6922 lt_prog_compiler_pic='-DDLL_EXPORT'
6923 ;;
6924
6925 darwin* | rhapsody*)
6926 # PIC is the default on this platform
6927 # Common symbols not allowed in MH_DYLIB files
6928 lt_prog_compiler_pic='-fno-common'
6929 ;;
6930
6931 hpux*)
6932 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6933 # not for PA HP-UX.
6934 case $host_cpu in
6935 hppa*64*|ia64*)
6936 # +Z the default
6937 ;;
6938 *)
6939 lt_prog_compiler_pic='-fPIC'
6940 ;;
6941 esac
6942 ;;
6943
6944 interix[3-9]*)
6945 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6946 # Instead, we relocate shared libraries at runtime.
6947 ;;
6948
6949 msdosdjgpp*)
6950 # Just because we use GCC doesn't mean we suddenly get shared libraries
6951 # on systems that don't support them.
6952 lt_prog_compiler_can_build_shared=no
6953 enable_shared=no
6954 ;;
6955
6956 *nto* | *qnx*)
6957 # QNX uses GNU C++, but need to define -shared option too, otherwise
6958 # it will coredump.
6959 lt_prog_compiler_pic='-fPIC -shared'
6960 ;;
6961
6962 sysv4*MP*)
6963 if test -d /usr/nec; then
6964 lt_prog_compiler_pic=-Kconform_pic
6965 fi
6966 ;;
6967
6968 *)
6969 lt_prog_compiler_pic='-fPIC'
6970 ;;
6971 esac
6972 else
6973 # PORTME Check for flag to pass linker flags through the system compiler.
6974 case $host_os in
6975 aix*)
6976 lt_prog_compiler_wl='-Wl,'
6977 if test "$host_cpu" = ia64; then
6978 # AIX 5 now supports IA64 processor
6979 lt_prog_compiler_static='-Bstatic'
6980 else
6981 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6982 fi
6983 ;;
6984 darwin*)
6985 # PIC is the default on this platform
6986 # Common symbols not allowed in MH_DYLIB files
6987 case $cc_basename in
6988 xlc*)
6989 lt_prog_compiler_pic='-qnocommon'
6990 lt_prog_compiler_wl='-Wl,'
6991 ;;
6992 esac
6993 ;;
6994
6995 mingw* | cygwin* | pw32* | os2*)
6996 # This hack is so that the source file can tell whether it is being
6997 # built for inclusion in a dll (and should export symbols for example).
6998 lt_prog_compiler_pic='-DDLL_EXPORT'
6999 ;;
7000
7001 hpux9* | hpux10* | hpux11*)
7002 lt_prog_compiler_wl='-Wl,'
7003 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7004 # not for PA HP-UX.
7005 case $host_cpu in
7006 hppa*64*|ia64*)
7007 # +Z the default
7008 ;;
7009 *)
7010 lt_prog_compiler_pic='+Z'
7011 ;;
7012 esac
7013 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7014 lt_prog_compiler_static='${wl}-a ${wl}archive'
7015 ;;
7016
7017 irix5* | irix6* | nonstopux*)
7018 lt_prog_compiler_wl='-Wl,'
7019 # PIC (with -KPIC) is the default.
7020 lt_prog_compiler_static='-non_shared'
7021 ;;
7022
7023 linux* | k*bsd*-gnu)
7024 case $cc_basename in
7025 icc* | ecc*)
7026 lt_prog_compiler_wl='-Wl,'
7027 lt_prog_compiler_pic='-KPIC'
7028 lt_prog_compiler_static='-static'
7029 ;;
7030 pgcc* | pgf77* | pgf90* | pgf95*)
7031 # Portland Group compilers (*not* the Pentium gcc compiler,
7032 # which looks to be a dead project)
7033 lt_prog_compiler_wl='-Wl,'
7034 lt_prog_compiler_pic='-fpic'
7035 lt_prog_compiler_static='-Bstatic'
7036 ;;
7037 ccc*)
7038 lt_prog_compiler_wl='-Wl,'
7039 # All Alpha code is PIC.
7040 lt_prog_compiler_static='-non_shared'
7041 ;;
7042 *)
7043 case `$CC -V 2>&1 | sed 5q` in
7044 *Sun\ C*)
7045 # Sun C 5.9
7046 lt_prog_compiler_pic='-KPIC'
7047 lt_prog_compiler_static='-Bstatic'
7048 lt_prog_compiler_wl='-Wl,'
7049 ;;
7050 *Sun\ F*)
7051 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7052 lt_prog_compiler_pic='-KPIC'
7053 lt_prog_compiler_static='-Bstatic'
7054 lt_prog_compiler_wl=''
7055 ;;
7056 esac
7057 ;;
7058 esac
7059 ;;
7060
7061 newsos6)
7062 lt_prog_compiler_pic='-KPIC'
7063 lt_prog_compiler_static='-Bstatic'
7064 ;;
7065
7066 *nto* | *qnx*)
7067 # QNX uses GNU C++, but need to define -shared option too, otherwise
7068 # it will coredump.
7069 lt_prog_compiler_pic='-fPIC -shared'
7070 ;;
7071
7072 osf3* | osf4* | osf5*)
7073 lt_prog_compiler_wl='-Wl,'
7074 # All OSF/1 code is PIC.
7075 lt_prog_compiler_static='-non_shared'
7076 ;;
7077
7078 rdos*)
7079 lt_prog_compiler_static='-non_shared'
7080 ;;
7081
7082 solaris*)
7083 lt_prog_compiler_pic='-KPIC'
7084 lt_prog_compiler_static='-Bstatic'
7085 case $cc_basename in
7086 f77* | f90* | f95*)
7087 lt_prog_compiler_wl='-Qoption ld ';;
7088 *)
7089 lt_prog_compiler_wl='-Wl,';;
7090 esac
7091 ;;
7092
7093 sunos4*)
7094 lt_prog_compiler_wl='-Qoption ld '
7095 lt_prog_compiler_pic='-PIC'
7096 lt_prog_compiler_static='-Bstatic'
7097 ;;
7098
7099 sysv4 | sysv4.2uw2* | sysv4.3*)
7100 lt_prog_compiler_wl='-Wl,'
7101 lt_prog_compiler_pic='-KPIC'
7102 lt_prog_compiler_static='-Bstatic'
7103 ;;
7104
7105 sysv4*MP*)
7106 if test -d /usr/nec ;then
7107 lt_prog_compiler_pic='-Kconform_pic'
7108 lt_prog_compiler_static='-Bstatic'
7109 fi
7110 ;;
7111
7112 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7113 lt_prog_compiler_wl='-Wl,'
7114 lt_prog_compiler_pic='-KPIC'
7115 lt_prog_compiler_static='-Bstatic'
7116 ;;
7117
7118 unicos*)
7119 lt_prog_compiler_wl='-Wl,'
7120 lt_prog_compiler_can_build_shared=no
7121 ;;
7122
7123 uts4*)
7124 lt_prog_compiler_pic='-pic'
7125 lt_prog_compiler_static='-Bstatic'
7126 ;;
7127
7128 *)
7129 lt_prog_compiler_can_build_shared=no
7130 ;;
7131 esac
7132 fi
7133
7134case $host_os in
7135 # For platforms which do not support PIC, -DPIC is meaningless:
7136 *djgpp*)
7137 lt_prog_compiler_pic=
7138 ;;
7139 *)
7140 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7141 ;;
7142esac
7143echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7144echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7145
7146
7147
7148
7149
7150
7151#
7152# Check to make sure the PIC flag actually works.
7153#
7154if test -n "$lt_prog_compiler_pic"; then
7155 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7156echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7157if test "${lt_prog_compiler_pic_works+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159else
7160 lt_prog_compiler_pic_works=no
7161 ac_outfile=conftest.$ac_objext
7162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7163 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7164 # Insert the option either (1) after the last *FLAGS variable, or
7165 # (2) before a word containing "conftest.", or (3) at the end.
7166 # Note that $ac_compile itself does not contain backslashes and begins
7167 # with a dollar sign (not a hyphen), so the echo should work correctly.
7168 # The option is referenced via a variable to avoid confusing sed.
7169 lt_compile=`echo "$ac_compile" | $SED \
7170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7172 -e 's:$: $lt_compiler_flag:'`
6194aaab 7173 (eval echo "\"\$as_me:7173: $lt_compile\"" >&5)
d7040cdb
SE
7174 (eval "$lt_compile" 2>conftest.err)
7175 ac_status=$?
7176 cat conftest.err >&5
6194aaab 7177 echo "$as_me:7177: \$? = $ac_status" >&5
d7040cdb
SE
7178 if (exit $ac_status) && test -s "$ac_outfile"; then
7179 # The compiler can only warn and ignore the option if not recognized
7180 # So say no if there are warnings other than the usual output.
7181 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7183 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7184 lt_prog_compiler_pic_works=yes
7185 fi
7186 fi
7187 $RM conftest*
7188
7189fi
7190echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7191echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7192
7193if test x"$lt_prog_compiler_pic_works" = xyes; then
7194 case $lt_prog_compiler_pic in
7195 "" | " "*) ;;
7196 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7197 esac
7198else
7199 lt_prog_compiler_pic=
7200 lt_prog_compiler_can_build_shared=no
7201fi
7202
7203fi
7204
7205
7206
7207
7208
7209
7210#
7211# Check to make sure the static flag actually works.
7212#
7213wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7214echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7215echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7216if test "${lt_prog_compiler_static_works+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219 lt_prog_compiler_static_works=no
7220 save_LDFLAGS="$LDFLAGS"
7221 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7222 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7224 # The linker can only warn and ignore the option if not recognized
7225 # So say no if there are warnings
7226 if test -s conftest.err; then
7227 # Append any errors to the config.log.
7228 cat conftest.err 1>&5
7229 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7231 if diff conftest.exp conftest.er2 >/dev/null; then
7232 lt_prog_compiler_static_works=yes
7233 fi
7234 else
7235 lt_prog_compiler_static_works=yes
7236 fi
7237 fi
7238 $RM conftest*
7239 LDFLAGS="$save_LDFLAGS"
7240
7241fi
7242echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7243echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7244
7245if test x"$lt_prog_compiler_static_works" = xyes; then
7246 :
7247else
7248 lt_prog_compiler_static=
7249fi
7250
7251
7252
7253
7254
7255
7256
7257 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7258echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7259if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261else
7262 lt_cv_prog_compiler_c_o=no
7263 $RM -r conftest 2>/dev/null
7264 mkdir conftest
7265 cd conftest
7266 mkdir out
7267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7268
7269 lt_compiler_flag="-o out/conftest2.$ac_objext"
7270 # Insert the option either (1) after the last *FLAGS variable, or
7271 # (2) before a word containing "conftest.", or (3) at the end.
7272 # Note that $ac_compile itself does not contain backslashes and begins
7273 # with a dollar sign (not a hyphen), so the echo should work correctly.
7274 lt_compile=`echo "$ac_compile" | $SED \
7275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7277 -e 's:$: $lt_compiler_flag:'`
6194aaab 7278 (eval echo "\"\$as_me:7278: $lt_compile\"" >&5)
d7040cdb
SE
7279 (eval "$lt_compile" 2>out/conftest.err)
7280 ac_status=$?
7281 cat out/conftest.err >&5
6194aaab 7282 echo "$as_me:7282: \$? = $ac_status" >&5
d7040cdb
SE
7283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7284 then
7285 # The compiler can only warn and ignore the option if not recognized
7286 # So say no if there are warnings
7287 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7290 lt_cv_prog_compiler_c_o=yes
7291 fi
7292 fi
7293 chmod u+w . 2>&5
7294 $RM conftest*
7295 # SGI C++ compiler will create directory out/ii_files/ for
7296 # template instantiation
7297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7298 $RM out/* && rmdir out
7299 cd ..
7300 $RM -r conftest
7301 $RM conftest*
7302
7303fi
7304echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7305echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7306
7307
7308
7309
7310
7311
7312 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7313echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7314if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7316else
7317 lt_cv_prog_compiler_c_o=no
7318 $RM -r conftest 2>/dev/null
7319 mkdir conftest
7320 cd conftest
7321 mkdir out
7322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7323
7324 lt_compiler_flag="-o out/conftest2.$ac_objext"
7325 # Insert the option either (1) after the last *FLAGS variable, or
7326 # (2) before a word containing "conftest.", or (3) at the end.
7327 # Note that $ac_compile itself does not contain backslashes and begins
7328 # with a dollar sign (not a hyphen), so the echo should work correctly.
7329 lt_compile=`echo "$ac_compile" | $SED \
7330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7332 -e 's:$: $lt_compiler_flag:'`
6194aaab 7333 (eval echo "\"\$as_me:7333: $lt_compile\"" >&5)
d7040cdb
SE
7334 (eval "$lt_compile" 2>out/conftest.err)
7335 ac_status=$?
7336 cat out/conftest.err >&5
6194aaab 7337 echo "$as_me:7337: \$? = $ac_status" >&5
d7040cdb
SE
7338 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7339 then
7340 # The compiler can only warn and ignore the option if not recognized
7341 # So say no if there are warnings
7342 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7345 lt_cv_prog_compiler_c_o=yes
7346 fi
7347 fi
7348 chmod u+w . 2>&5
7349 $RM conftest*
7350 # SGI C++ compiler will create directory out/ii_files/ for
7351 # template instantiation
7352 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7353 $RM out/* && rmdir out
7354 cd ..
7355 $RM -r conftest
7356 $RM conftest*
7357
7358fi
7359echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7360echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7361
7362
7363
7364
7365hard_links="nottested"
7366if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7367 # do not overwrite the value of need_locks provided by the user
7368 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7369echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7370 hard_links=yes
7371 $RM conftest*
7372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7373 touch conftest.a
7374 ln conftest.a conftest.b 2>&5 || hard_links=no
7375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7376 echo "$as_me:$LINENO: result: $hard_links" >&5
7377echo "${ECHO_T}$hard_links" >&6
7378 if test "$hard_links" = no; then
7379 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7380echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7381 need_locks=warn
7382 fi
7383else
7384 need_locks=no
7385fi
7386
7387
7388
7389
7390
7391
7392 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7393echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7394
7395 runpath_var=
7396 allow_undefined_flag=
7397 always_export_symbols=no
7398 archive_cmds=
7399 archive_expsym_cmds=
7400 compiler_needs_object=no
7401 enable_shared_with_static_runtimes=no
7402 export_dynamic_flag_spec=
7403 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7404 hardcode_automatic=no
7405 hardcode_direct=no
7406 hardcode_direct_absolute=no
7407 hardcode_libdir_flag_spec=
7408 hardcode_libdir_flag_spec_ld=
7409 hardcode_libdir_separator=
7410 hardcode_minus_L=no
7411 hardcode_shlibpath_var=unsupported
7412 inherit_rpath=no
7413 link_all_deplibs=unknown
7414 module_cmds=
7415 module_expsym_cmds=
7416 old_archive_from_new_cmds=
7417 old_archive_from_expsyms_cmds=
7418 thread_safe_flag_spec=
7419 whole_archive_flag_spec=
7420 # include_expsyms should be a list of space-separated symbols to be *always*
7421 # included in the symbol list
7422 include_expsyms=
7423 # exclude_expsyms can be an extended regexp of symbols to exclude
7424 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7425 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7426 # as well as any symbol that contains `d'.
7427 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7428 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7429 # platforms (ab)use it in PIC code, but their linkers get confused if
7430 # the symbol is explicitly referenced. Since portable code cannot
7431 # rely on this symbol name, it's probably fine to never include it in
7432 # preloaded symbol tables.
7433 extract_expsyms_cmds=
7434
7435 case $host_os in
7436 cygwin* | mingw* | pw32*)
7437 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7438 # When not using gcc, we currently assume that we are using
7439 # Microsoft Visual C++.
7440 if test "$GCC" != yes; then
7441 with_gnu_ld=no
7442 fi
7443 ;;
7444 interix*)
7445 # we just hope/assume this is gcc and not c89 (= MSVC++)
7446 with_gnu_ld=yes
7447 ;;
7448 openbsd*)
7449 with_gnu_ld=no
7450 ;;
7451 esac
7452
7453 ld_shlibs=yes
7454 if test "$with_gnu_ld" = yes; then
7455 # If archive_cmds runs LD, not CC, wlarc should be empty
7456 wlarc='${wl}'
7457
7458 # Set some defaults for GNU ld with shared library support. These
7459 # are reset later if shared libraries are not supported. Putting them
7460 # here allows them to be overridden if necessary.
7461 runpath_var=LD_RUN_PATH
7462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7463 export_dynamic_flag_spec='${wl}--export-dynamic'
7464 # ancient GNU ld didn't support --whole-archive et. al.
7465 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7466 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7467 else
7468 whole_archive_flag_spec=
7469 fi
7470 supports_anon_versioning=no
7471 case `$LD -v 2>&1` in
7472 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7473 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7474 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7475 *\ 2.11.*) ;; # other 2.11 versions
7476 *) supports_anon_versioning=yes ;;
7477 esac
7478
7479 # See if GNU ld supports shared libraries.
7480 case $host_os in
e81819a5 7481 aix[3-9]*)
d7040cdb
SE
7482 # On AIX/PPC, the GNU linker is very broken
7483 if test "$host_cpu" != ia64; then
7484 ld_shlibs=no
7485 cat <<_LT_EOF 1>&2
7486
7487*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7488*** to be unable to reliably create shared libraries on AIX.
7489*** Therefore, libtool is disabling shared libraries support. If you
7490*** really care for shared libraries, you may want to modify your PATH
7491*** so that a non-GNU linker is found, and then restart.
7492
7493_LT_EOF
7494 fi
7495 ;;
7496
7497 amigaos*)
7498 if test "$host_cpu" = m68k; then
7499 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)'
7500 hardcode_libdir_flag_spec='-L$libdir'
7501 hardcode_minus_L=yes
7502 fi
7503
7504 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7505 # that the semantics of dynamic libraries on AmigaOS, at least up
7506 # to version 4, is to share data among multiple programs linked
7507 # with the same dynamic library. Since this doesn't match the
7508 # behavior of shared libraries on other platforms, we can't use
7509 # them.
7510 ld_shlibs=no
7511 ;;
7512
7513 beos*)
7514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7515 allow_undefined_flag=unsupported
7516 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7517 # support --undefined. This deserves some investigation. FIXME
7518 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7519 else
7520 ld_shlibs=no
7521 fi
7522 ;;
7523
7524 cygwin* | mingw* | pw32*)
7525 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7526 # as there is no search path for DLLs.
7527 hardcode_libdir_flag_spec='-L$libdir'
7528 allow_undefined_flag=unsupported
7529 always_export_symbols=no
7530 enable_shared_with_static_runtimes=yes
7531 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7532
7533 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7535 # If the export-symbols file already is a .def file (1st line
7536 # is EXPORTS), use it as is; otherwise, prepend...
7537 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7538 cp $export_symbols $output_objdir/$soname.def;
7539 else
7540 echo EXPORTS > $output_objdir/$soname.def;
7541 cat $export_symbols >> $output_objdir/$soname.def;
7542 fi~
7543 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7544 else
7545 ld_shlibs=no
7546 fi
7547 ;;
7548
7549 interix[3-9]*)
7550 hardcode_direct=no
7551 hardcode_shlibpath_var=no
7552 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7553 export_dynamic_flag_spec='${wl}-E'
7554 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7555 # Instead, shared libraries are loaded at an image base (0x10000000 by
7556 # default) and relocated if they conflict, which is a slow very memory
7557 # consuming and fragmenting process. To avoid this, we pick a random,
7558 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7559 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7560 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7561 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'
7562 ;;
7563
7564 gnu* | linux* | tpf* | k*bsd*-gnu)
7565 tmp_diet=no
7566 if test "$host_os" = linux-dietlibc; then
7567 case $cc_basename in
7568 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7569 esac
7570 fi
7571 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7572 && test "$tmp_diet" = no
7573 then
7574 tmp_addflag=
7575 case $cc_basename,$host_cpu in
7576 pgcc*) # Portland Group C compiler
7577 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'
7578 tmp_addflag=' $pic_flag'
7579 ;;
7580 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7581 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'
7582 tmp_addflag=' $pic_flag -Mnomain' ;;
7583 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7584 tmp_addflag=' -i_dynamic' ;;
7585 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7586 tmp_addflag=' -i_dynamic -nofor_main' ;;
7587 ifc* | ifort*) # Intel Fortran compiler
7588 tmp_addflag=' -nofor_main' ;;
7589 esac
7590 case `$CC -V 2>&1 | sed 5q` in
7591 *Sun\ C*) # Sun C 5.9
7592 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'
7593 compiler_needs_object=yes
7594 tmp_sharedflag='-G' ;;
7595 *Sun\ F*) # Sun Fortran 8.3
7596 tmp_sharedflag='-G' ;;
7597 *)
7598 tmp_sharedflag='-shared' ;;
7599 esac
7600 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7601
7602 if test "x$supports_anon_versioning" = xyes; then
7603 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7604 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7605 echo "local: *; };" >> $output_objdir/$libname.ver~
7606 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7607 fi
7608 else
7609 ld_shlibs=no
7610 fi
7611 ;;
7612
7613 netbsd*)
7614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7615 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7616 wlarc=
7617 else
7618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7619 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7620 fi
7621 ;;
7622
7623 solaris*)
7624 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7625 ld_shlibs=no
7626 cat <<_LT_EOF 1>&2
7627
7628*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7629*** create shared libraries on Solaris systems. Therefore, libtool
7630*** is disabling shared libraries support. We urge you to upgrade GNU
7631*** binutils to release 2.9.1 or newer. Another option is to modify
7632*** your PATH or compiler configuration so that the native linker is
7633*** used, and then restart.
7634
7635_LT_EOF
7636 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7639 else
7640 ld_shlibs=no
7641 fi
7642 ;;
7643
7644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7645 case `$LD -v 2>&1` in
7646 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7647 ld_shlibs=no
7648 cat <<_LT_EOF 1>&2
7649
7650*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7651*** reliably create shared libraries on SCO systems. Therefore, libtool
7652*** is disabling shared libraries support. We urge you to upgrade GNU
7653*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7654*** your PATH or compiler configuration so that the native linker is
7655*** used, and then restart.
7656
7657_LT_EOF
7658 ;;
7659 *)
7660 # For security reasons, it is highly recommended that you always
7661 # use absolute paths for naming shared libraries, and exclude the
7662 # DT_RUNPATH tag from executables and libraries. But doing so
7663 # requires that you compile everything twice, which is a pain.
7664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7668 else
7669 ld_shlibs=no
7670 fi
7671 ;;
7672 esac
7673 ;;
7674
7675 sunos4*)
7676 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7677 wlarc=
7678 hardcode_direct=yes
7679 hardcode_shlibpath_var=no
7680 ;;
7681
7682 *)
7683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7685 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7686 else
7687 ld_shlibs=no
7688 fi
7689 ;;
7690 esac
7691
7692 if test "$ld_shlibs" = no; then
7693 runpath_var=
7694 hardcode_libdir_flag_spec=
7695 export_dynamic_flag_spec=
7696 whole_archive_flag_spec=
7697 fi
7698 else
7699 # PORTME fill in a description of your system's linker (not GNU ld)
7700 case $host_os in
7701 aix3*)
7702 allow_undefined_flag=unsupported
7703 always_export_symbols=yes
7704 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'
7705 # Note: this linker hardcodes the directories in LIBPATH if there
7706 # are no directories specified by -L.
7707 hardcode_minus_L=yes
7708 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7709 # Neither direct hardcoding nor static linking is supported with a
7710 # broken collect2.
7711 hardcode_direct=unsupported
7712 fi
7713 ;;
7714
e81819a5 7715 aix[4-9]*)
d7040cdb
SE
7716 if test "$host_cpu" = ia64; then
7717 # On IA64, the linker does run time linking by default, so we don't
7718 # have to do anything special.
7719 aix_use_runtimelinking=no
7720 exp_sym_flag='-Bexport'
7721 no_entry_flag=""
7722 else
7723 # If we're using GNU nm, then we don't want the "-C" option.
7724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7725 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7726 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'
7727 else
7728 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'
7729 fi
7730 aix_use_runtimelinking=no
7731
7732 # Test if we are trying to use run time linking or normal
7733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7734 # need to do runtime linking.
e81819a5 7735 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
7736 for ld_flag in $LDFLAGS; do
7737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7738 aix_use_runtimelinking=yes
7739 break
7740 fi
7741 done
7742 ;;
7743 esac
7744
7745 exp_sym_flag='-bexport'
7746 no_entry_flag='-bnoentry'
7747 fi
7748
7749 # When large executables or shared objects are built, AIX ld can
7750 # have problems creating the table of contents. If linking a library
7751 # or program results in "error TOC overflow" add -mminimal-toc to
7752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7754
7755 archive_cmds=''
7756 hardcode_direct=yes
7757 hardcode_direct_absolute=yes
7758 hardcode_libdir_separator=':'
7759 link_all_deplibs=yes
7760 file_list_spec='${wl}-f,'
7761
7762 if test "$GCC" = yes; then
7763 case $host_os in aix4.[012]|aix4.[012].*)
7764 # We only want to do this on AIX 4.2 and lower, the check
7765 # below for broken collect2 doesn't work under 4.3+
7766 collect2name=`${CC} -print-prog-name=collect2`
7767 if test -f "$collect2name" &&
7768 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7769 then
7770 # We have reworked collect2
7771 :
7772 else
7773 # We have old collect2
7774 hardcode_direct=unsupported
7775 # It fails to find uninstalled libraries when the uninstalled
7776 # path is not listed in the libpath. Setting hardcode_minus_L
7777 # to unsupported forces relinking
7778 hardcode_minus_L=yes
7779 hardcode_libdir_flag_spec='-L$libdir'
7780 hardcode_libdir_separator=
7781 fi
7782 ;;
7783 esac
7784 shared_flag='-shared'
7785 if test "$aix_use_runtimelinking" = yes; then
7786 shared_flag="$shared_flag "'${wl}-G'
7787 fi
7788 else
7789 # not using gcc
7790 if test "$host_cpu" = ia64; then
7791 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7792 # chokes on -Wl,-G. The following line is correct:
7793 shared_flag='-G'
7794 else
7795 if test "$aix_use_runtimelinking" = yes; then
7796 shared_flag='${wl}-G'
7797 else
7798 shared_flag='${wl}-bM:SRE'
7799 fi
7800 fi
7801 fi
7802
7803 # It seems that -bexpall does not export symbols beginning with
7804 # underscore (_), so it is better to generate a list of symbols to export.
7805 always_export_symbols=yes
7806 if test "$aix_use_runtimelinking" = yes; then
7807 # Warning - without using the other runtime loading flags (-brtl),
7808 # -berok will link without error, but may produce a broken library.
7809 allow_undefined_flag='-berok'
7810 # Determine the default libpath from the value encoded in an
7811 # empty executable.
7812 cat >conftest.$ac_ext <<_ACEOF
7813/* confdefs.h. */
7814_ACEOF
7815cat confdefs.h >>conftest.$ac_ext
7816cat >>conftest.$ac_ext <<_ACEOF
7817/* end confdefs.h. */
7818
7819int
7820main ()
7821{
7822
7823 ;
7824 return 0;
7825}
7826_ACEOF
7827rm -f conftest.$ac_objext conftest$ac_exeext
7828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829 (eval $ac_link) 2>conftest.er1
7830 ac_status=$?
7831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 (eval $ac_try) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest$ac_exeext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849
7850lt_aix_libpath_sed='
7851 /Import File Strings/,/^$/ {
7852 /^0/ {
7853 s/^0 *\(.*\)$/\1/
7854 p
7855 }
7856 }'
7857aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7858# Check for a 64-bit object if we didn't find anything.
7859if test -z "$aix_libpath"; then
7860 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7861fi
7862else
7863 echo "$as_me: failed program was:" >&5
7864sed 's/^/| /' conftest.$ac_ext >&5
7865
7866fi
7867rm -f conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7870
7871 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7872 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"
7873 else
7874 if test "$host_cpu" = ia64; then
7875 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7876 allow_undefined_flag="-z nodefs"
7877 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"
7878 else
7879 # Determine the default libpath from the value encoded in an
7880 # empty executable.
7881 cat >conftest.$ac_ext <<_ACEOF
7882/* confdefs.h. */
7883_ACEOF
7884cat confdefs.h >>conftest.$ac_ext
7885cat >>conftest.$ac_ext <<_ACEOF
7886/* end confdefs.h. */
7887
7888int
7889main ()
7890{
7891
7892 ;
7893 return 0;
7894}
7895_ACEOF
7896rm -f conftest.$ac_objext conftest$ac_exeext
7897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7898 (eval $ac_link) 2>conftest.er1
7899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag"
7906 || test ! -s conftest.err'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 (eval $ac_try) 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest$ac_exeext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 (eval $ac_try) 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918
7919lt_aix_libpath_sed='
7920 /Import File Strings/,/^$/ {
7921 /^0/ {
7922 s/^0 *\(.*\)$/\1/
7923 p
7924 }
7925 }'
7926aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7927# Check for a 64-bit object if we didn't find anything.
7928if test -z "$aix_libpath"; then
7929 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7930fi
7931else
7932 echo "$as_me: failed program was:" >&5
7933sed 's/^/| /' conftest.$ac_ext >&5
7934
7935fi
7936rm -f conftest.err conftest.$ac_objext \
7937 conftest$ac_exeext conftest.$ac_ext
7938if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7939
7940 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7941 # Warning - without using the other run time loading flags,
7942 # -berok will link without error, but may produce a broken library.
7943 no_undefined_flag=' ${wl}-bernotok'
7944 allow_undefined_flag=' ${wl}-berok'
7945 # Exported symbols can be pulled into shared objects from archives
7946 whole_archive_flag_spec='$convenience'
7947 archive_cmds_need_lc=yes
7948 # This is similar to how AIX traditionally builds its shared libraries.
7949 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'
7950 fi
7951 fi
7952 ;;
7953
7954 amigaos*)
7955 if test "$host_cpu" = m68k; then
7956 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)'
7957 hardcode_libdir_flag_spec='-L$libdir'
7958 hardcode_minus_L=yes
7959 fi
7960 # see comment about different semantics on the GNU ld section
7961 ld_shlibs=no
7962 ;;
7963
7964 bsdi[45]*)
7965 export_dynamic_flag_spec=-rdynamic
7966 ;;
7967
7968 cygwin* | mingw* | pw32*)
7969 # When not using gcc, we currently assume that we are using
7970 # Microsoft Visual C++.
7971 # hardcode_libdir_flag_spec is actually meaningless, as there is
7972 # no search path for DLLs.
7973 hardcode_libdir_flag_spec=' '
7974 allow_undefined_flag=unsupported
7975 # Tell ltmain to make .lib files, not .a files.
7976 libext=lib
7977 # Tell ltmain to make .dll files, not .so files.
7978 shrext_cmds=".dll"
7979 # FIXME: Setting linknames here is a bad hack.
7980 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7981 # The linker will automatically build a .lib file if we build a DLL.
7982 old_archive_from_new_cmds='true'
7983 # FIXME: Should let the user specify the lib program.
7984 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7985 fix_srcfile_path='`cygpath -w "$srcfile"`'
7986 enable_shared_with_static_runtimes=yes
7987 ;;
7988
7989 darwin* | rhapsody*)
7990 case $host_os in
7991 rhapsody* | darwin1.[012])
7992 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7993 ;;
7994 *) # Darwin 1.3 on
7995 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7996 10.[012])
7997 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7998 ;;
7999 10.*)
8000 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8001 ;;
8002 esac
8003 ;;
8004 esac
8005 archive_cmds_need_lc=no
8006 hardcode_direct=no
8007 hardcode_automatic=yes
8008 hardcode_shlibpath_var=unsupported
8009 whole_archive_flag_spec=''
8010 link_all_deplibs=yes
8011 if test "$GCC" = yes ; then
8012 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015 lt_cv_apple_cc_single_mod=no
8016 if test -z "${LT_MULTI_MODULE}"; then
8017 # By default we will add the -single_module flag. You can override
8018 # by either setting the environment variable LT_MULTI_MODULE
8019 # non-empty at configure time, or by adding -multi-module to the
8020 # link flags.
8021 echo "int foo(void){return 1;}" > conftest.c
8022 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8023 -dynamiclib ${wl}-single_module conftest.c
8024 if test -f libconftest.dylib; then
8025 lt_cv_apple_cc_single_mod=yes
8026 rm libconftest.dylib
8027 fi
8028 rm conftest.$ac_ext
8029 fi
8030fi
8031
8032 output_verbose_link_cmd=echo
8033 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8034 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8035 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8036 else
8037 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8038 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8039 fi
8040 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8041 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8042 else
8043 case $cc_basename in
8044 xlc*)
8045 output_verbose_link_cmd=echo
8046 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8047 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8048 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8049 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8050 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8051 ;;
8052 *)
8053 ld_shlibs=no
8054 ;;
8055 esac
8056 fi
8057 ;;
8058
8059 dgux*)
8060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8061 hardcode_libdir_flag_spec='-L$libdir'
8062 hardcode_shlibpath_var=no
8063 ;;
8064
8065 freebsd1*)
8066 ld_shlibs=no
8067 ;;
8068
8069 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8070 # support. Future versions do this automatically, but an explicit c++rt0.o
8071 # does not break anything, and helps significantly (at the cost of a little
8072 # extra space).
8073 freebsd2.2*)
8074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8075 hardcode_libdir_flag_spec='-R$libdir'
8076 hardcode_direct=yes
8077 hardcode_shlibpath_var=no
8078 ;;
8079
8080 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8081 freebsd2*)
8082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8083 hardcode_direct=yes
8084 hardcode_minus_L=yes
8085 hardcode_shlibpath_var=no
8086 ;;
8087
8088 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8089 freebsd* | dragonfly*)
8090 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8091 hardcode_libdir_flag_spec='-R$libdir'
8092 hardcode_direct=yes
8093 hardcode_shlibpath_var=no
8094 ;;
8095
8096 hpux9*)
8097 if test "$GCC" = yes; then
8098 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'
8099 else
8100 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'
8101 fi
8102 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8103 hardcode_libdir_separator=:
8104 hardcode_direct=yes
8105
8106 # hardcode_minus_L: Not really in the search PATH,
8107 # but as the default location of the library.
8108 hardcode_minus_L=yes
8109 export_dynamic_flag_spec='${wl}-E'
8110 ;;
8111
8112 hpux10*)
8113 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8114 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8115 else
8116 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8117 fi
8118 if test "$with_gnu_ld" = no; then
8119 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8120 hardcode_libdir_flag_spec_ld='+b $libdir'
8121 hardcode_libdir_separator=:
8122 hardcode_direct=yes
8123 hardcode_direct_absolute=yes
8124 export_dynamic_flag_spec='${wl}-E'
8125 # hardcode_minus_L: Not really in the search PATH,
8126 # but as the default location of the library.
8127 hardcode_minus_L=yes
8128 fi
8129 ;;
8130
8131 hpux11*)
8132 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8133 case $host_cpu in
8134 hppa*64*)
8135 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8136 ;;
8137 ia64*)
8138 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8139 ;;
8140 *)
8141 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8142 ;;
8143 esac
8144 else
8145 case $host_cpu in
8146 hppa*64*)
8147 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8148 ;;
8149 ia64*)
8150 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8151 ;;
8152 *)
8153 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8154 ;;
8155 esac
8156 fi
8157 if test "$with_gnu_ld" = no; then
8158 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8159 hardcode_libdir_separator=:
8160
8161 case $host_cpu in
8162 hppa*64*|ia64*)
8163 hardcode_direct=no
8164 hardcode_shlibpath_var=no
8165 ;;
8166 *)
8167 hardcode_direct=yes
8168 hardcode_direct_absolute=yes
8169 export_dynamic_flag_spec='${wl}-E'
8170
8171 # hardcode_minus_L: Not really in the search PATH,
8172 # but as the default location of the library.
8173 hardcode_minus_L=yes
8174 ;;
8175 esac
8176 fi
8177 ;;
8178
8179 irix5* | irix6* | nonstopux*)
8180 if test "$GCC" = yes; then
8181 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'
8182 # Try to use the -exported_symbol ld option, if it does not
8183 # work, assume that -exports_file does not work either and
8184 # implicitly export all symbols.
8185 save_LDFLAGS="$LDFLAGS"
8186 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8187 cat >conftest.$ac_ext <<_ACEOF
8188int foo(void) {}
8189_ACEOF
8190rm -f conftest.$ac_objext conftest$ac_exeext
8191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8192 (eval $ac_link) 2>conftest.er1
8193 ac_status=$?
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -z "$ac_c_werror_flag"
8200 || test ! -s conftest.err'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 (eval $ac_try) 2>&5
8203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; } &&
8206 { ac_try='test -s conftest$ac_exeext'
8207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 (eval $ac_try) 2>&5
8209 ac_status=$?
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); }; }; then
8212 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'
8213
8214else
8215 echo "$as_me: failed program was:" >&5
8216sed 's/^/| /' conftest.$ac_ext >&5
8217
8218fi
8219rm -f conftest.err conftest.$ac_objext \
8220 conftest$ac_exeext conftest.$ac_ext
8221 LDFLAGS="$save_LDFLAGS"
8222 else
8223 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'
8224 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'
8225 fi
8226 archive_cmds_need_lc='no'
8227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8228 hardcode_libdir_separator=:
8229 inherit_rpath=yes
8230 link_all_deplibs=yes
8231 ;;
8232
8233 netbsd*)
8234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8235 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8236 else
8237 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8238 fi
8239 hardcode_libdir_flag_spec='-R$libdir'
8240 hardcode_direct=yes
8241 hardcode_shlibpath_var=no
8242 ;;
8243
8244 newsos6)
8245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8246 hardcode_direct=yes
8247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8248 hardcode_libdir_separator=:
8249 hardcode_shlibpath_var=no
8250 ;;
8251
8252 *nto* | *qnx*)
8253 ;;
8254
8255 openbsd*)
8256 hardcode_direct=yes
8257 hardcode_shlibpath_var=no
8258 hardcode_direct_absolute=yes
8259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8261 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8263 export_dynamic_flag_spec='${wl}-E'
8264 else
8265 case $host_os in
8266 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8268 hardcode_libdir_flag_spec='-R$libdir'
8269 ;;
8270 *)
8271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8273 ;;
8274 esac
8275 fi
8276 ;;
8277
8278 os2*)
8279 hardcode_libdir_flag_spec='-L$libdir'
8280 hardcode_minus_L=yes
8281 allow_undefined_flag=unsupported
8282 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'
8283 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8284 ;;
8285
8286 osf3*)
8287 if test "$GCC" = yes; then
8288 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8289 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'
8290 else
8291 allow_undefined_flag=' -expect_unresolved \*'
8292 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'
8293 fi
8294 archive_cmds_need_lc='no'
8295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8296 hardcode_libdir_separator=:
8297 ;;
8298
8299 osf4* | osf5*) # as osf3* with the addition of -msym flag
8300 if test "$GCC" = yes; then
8301 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8302 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'
8303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8304 else
8305 allow_undefined_flag=' -expect_unresolved \*'
8306 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'
8307 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~
8308 $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'
8309
8310 # Both c and cxx compiler support -rpath directly
8311 hardcode_libdir_flag_spec='-rpath $libdir'
8312 fi
8313 archive_cmds_need_lc='no'
8314 hardcode_libdir_separator=:
8315 ;;
8316
8317 solaris*)
8318 no_undefined_flag=' -z defs'
8319 if test "$GCC" = yes; then
8320 wlarc='${wl}'
8321 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8323 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8324 else
8325 case `$CC -V 2>&1` in
8326 *"Compilers 5.0"*)
8327 wlarc=''
8328 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8329 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8330 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8331 ;;
8332 *)
8333 wlarc='${wl}'
8334 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8336 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8337 ;;
8338 esac
8339 fi
8340 hardcode_libdir_flag_spec='-R$libdir'
8341 hardcode_shlibpath_var=no
8342 case $host_os in
8343 solaris2.[0-5] | solaris2.[0-5].*) ;;
8344 *)
8345 # The compiler driver will combine and reorder linker options,
8346 # but understands `-z linker_flag'. GCC discards it without `$wl',
8347 # but is careful enough not to reorder.
8348 # Supported since Solaris 2.6 (maybe 2.5.1?)
8349 if test "$GCC" = yes; then
8350 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8351 else
8352 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8353 fi
8354 ;;
8355 esac
8356 link_all_deplibs=yes
8357 ;;
8358
8359 sunos4*)
8360 if test "x$host_vendor" = xsequent; then
8361 # Use $CC to link under sequent, because it throws in some extra .o
8362 # files that make .init and .fini sections work.
8363 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8364 else
8365 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8366 fi
8367 hardcode_libdir_flag_spec='-L$libdir'
8368 hardcode_direct=yes
8369 hardcode_minus_L=yes
8370 hardcode_shlibpath_var=no
8371 ;;
8372
8373 sysv4)
8374 case $host_vendor in
8375 sni)
8376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8377 hardcode_direct=yes # is this really true???
8378 ;;
8379 siemens)
8380 ## LD is ld it makes a PLAMLIB
8381 ## CC just makes a GrossModule.
8382 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8383 reload_cmds='$CC -r -o $output$reload_objs'
8384 hardcode_direct=no
8385 ;;
8386 motorola)
8387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8389 ;;
8390 esac
8391 runpath_var='LD_RUN_PATH'
8392 hardcode_shlibpath_var=no
8393 ;;
8394
8395 sysv4.3*)
8396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8397 hardcode_shlibpath_var=no
8398 export_dynamic_flag_spec='-Bexport'
8399 ;;
8400
8401 sysv4*MP*)
8402 if test -d /usr/nec; then
8403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8404 hardcode_shlibpath_var=no
8405 runpath_var=LD_RUN_PATH
8406 hardcode_runpath_var=yes
8407 ld_shlibs=yes
8408 fi
8409 ;;
8410
8411 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8412 no_undefined_flag='${wl}-z,text'
8413 archive_cmds_need_lc=no
8414 hardcode_shlibpath_var=no
8415 runpath_var='LD_RUN_PATH'
8416
8417 if test "$GCC" = yes; then
8418 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8420 else
8421 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423 fi
8424 ;;
8425
8426 sysv5* | sco3.2v5* | sco5v6*)
8427 # Note: We can NOT use -z defs as we might desire, because we do not
8428 # link with -lc, and that would cause any symbols used from libc to
8429 # always be unresolved, which means just about no library would
8430 # ever link correctly. If we're not using GNU ld we use -z text
8431 # though, which does catch some bad symbols but isn't as heavy-handed
8432 # as -z defs.
8433 no_undefined_flag='${wl}-z,text'
8434 allow_undefined_flag='${wl}-z,nodefs'
8435 archive_cmds_need_lc=no
8436 hardcode_shlibpath_var=no
8437 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8438 hardcode_libdir_separator=':'
8439 link_all_deplibs=yes
8440 export_dynamic_flag_spec='${wl}-Bexport'
8441 runpath_var='LD_RUN_PATH'
8442
8443 if test "$GCC" = yes; then
8444 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8445 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8446 else
8447 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8448 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8449 fi
8450 ;;
8451
8452 uts4*)
8453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8454 hardcode_libdir_flag_spec='-L$libdir'
8455 hardcode_shlibpath_var=no
8456 ;;
8457
8458 *)
8459 ld_shlibs=no
8460 ;;
8461 esac
8462
8463 if test x$host_vendor = xsni; then
8464 case $host in
8465 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8466 export_dynamic_flag_spec='${wl}-Blargedynsym'
8467 ;;
8468 esac
8469 fi
8470 fi
8471
8472echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8473echo "${ECHO_T}$ld_shlibs" >&6
8474test "$ld_shlibs" = no && can_build_shared=no
8475
8476with_gnu_ld=$with_gnu_ld
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492#
8493# Do we need to explicitly link libc?
8494#
8495case "x$archive_cmds_need_lc" in
8496x|xyes)
8497 # Assume -lc should be added
8498 archive_cmds_need_lc=yes
8499
8500 if test "$enable_shared" = yes && test "$GCC" = yes; then
8501 case $archive_cmds in
8502 *'~'*)
8503 # FIXME: we may have to deal with multi-command sequences.
8504 ;;
8505 '$CC '*)
8506 # Test whether the compiler implicitly links with -lc since on some
8507 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8508 # to ld, don't add -lc before -lgcc.
8509 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8510echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8511 $RM conftest*
8512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8513
8514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8515 (eval $ac_compile) 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } 2>conftest.err; then
8519 soname=conftest
8520 lib=conftest
8521 libobjs=conftest.$ac_objext
8522 deplibs=
8523 wl=$lt_prog_compiler_wl
8524 pic_flag=$lt_prog_compiler_pic
8525 compiler_flags=-v
8526 linker_flags=-v
8527 verstring=
8528 output_objdir=.
8529 libname=conftest
8530 lt_save_allow_undefined_flag=$allow_undefined_flag
8531 allow_undefined_flag=
8532 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8533 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }
8537 then
8538 archive_cmds_need_lc=no
8539 else
8540 archive_cmds_need_lc=yes
8541 fi
8542 allow_undefined_flag=$lt_save_allow_undefined_flag
8543 else
8544 cat conftest.err 1>&5
8545 fi
8546 $RM conftest*
8547 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8548echo "${ECHO_T}$archive_cmds_need_lc" >&6
8549 ;;
8550 esac
8551 fi
8552 ;;
8553esac
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8712echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8713withGCC=$GCC
8714if test "$withGCC" = yes; then
8715 case $host_os in
8716 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8717 *) lt_awk_arg="/^libraries:/" ;;
8718 esac
8719 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8720 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8721 # if the path contains ";" then we assume it to be the separator
8722 # otherwise default to the standard path separator (i.e. ":") - it is
8723 # assumed that no part of a normal pathname contains ";" but that should
8724 # okay in the real world where ";" in dirpaths is itself problematic.
8725 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8726 else
8727 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8728 fi
8729 # Ok, now we have the path, separated by spaces, we can step through it
8730 # and add multilib dir if necessary.
8731 lt_tmp_lt_search_path_spec=
8732 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8733 for lt_sys_path in $lt_search_path_spec; do
8734 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8735 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8736 else
8737 test -d "$lt_sys_path" && \
8738 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8739 fi
8740 done
8741 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8742BEGIN {RS=" "; FS="/|\n";} {
8743 lt_foo="";
8744 lt_count=0;
8745 for (lt_i = NF; lt_i > 0; lt_i--) {
8746 if ($lt_i != "" && $lt_i != ".") {
8747 if ($lt_i == "..") {
8748 lt_count++;
8749 } else {
8750 if (lt_count == 0) {
8751 lt_foo="/" $lt_i lt_foo;
8752 } else {
8753 lt_count--;
8754 }
8755 }
8756 }
8757 }
8758 if (lt_foo != "") { lt_freq[lt_foo]++; }
8759 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8760}'`
8761 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8762else
8763 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8764fi
8765library_names_spec=
8766libname_spec='lib$name'
8767soname_spec=
8768shrext_cmds=".so"
8769postinstall_cmds=
8770postuninstall_cmds=
8771finish_cmds=
8772finish_eval=
8773shlibpath_var=
8774shlibpath_overrides_runpath=unknown
8775version_type=none
8776dynamic_linker="$host_os ld.so"
8777sys_lib_dlsearch_path_spec="/lib /usr/lib"
8778need_lib_prefix=unknown
8779hardcode_into_libs=no
8780
8781# when you set need_version to no, make sure it does not cause -set_version
8782# flags to be left without arguments
8783need_version=unknown
8784
8785case $host_os in
8786aix3*)
8787 version_type=linux
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8789 shlibpath_var=LIBPATH
8790
8791 # AIX 3 has no versioning support, so we append a major version to the name.
8792 soname_spec='${libname}${release}${shared_ext}$major'
8793 ;;
8794
e81819a5 8795aix[4-9]*)
d7040cdb
SE
8796 version_type=linux
8797 need_lib_prefix=no
8798 need_version=no
8799 hardcode_into_libs=yes
8800 if test "$host_cpu" = ia64; then
8801 # AIX 5 supports IA64
8802 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8803 shlibpath_var=LD_LIBRARY_PATH
8804 else
8805 # With GCC up to 2.95.x, collect2 would create an import file
8806 # for dependence libraries. The import file would start with
8807 # the line `#! .'. This would cause the generated library to
8808 # depend on `.', always an invalid library. This was fixed in
8809 # development snapshots of GCC prior to 3.0.
8810 case $host_os in
8811 aix4 | aix4.[01] | aix4.[01].*)
8812 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8813 echo ' yes '
8814 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8815 :
8816 else
8817 can_build_shared=no
8818 fi
8819 ;;
8820 esac
8821 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8822 # soname into executable. Probably we can add versioning support to
8823 # collect2, so additional links can be useful in future.
8824 if test "$aix_use_runtimelinking" = yes; then
8825 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8826 # instead of lib<name>.a to let people know that these are not
8827 # typical AIX shared libraries.
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8829 else
8830 # We preserve .a as extension for shared libraries through AIX4.2
8831 # and later when we are not doing run time linking.
8832 library_names_spec='${libname}${release}.a $libname.a'
8833 soname_spec='${libname}${release}${shared_ext}$major'
8834 fi
8835 shlibpath_var=LIBPATH
8836 fi
8837 ;;
8838
8839amigaos*)
8840 if test "$host_cpu" = m68k; then
8841 library_names_spec='$libname.ixlibrary $libname.a'
8842 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8843 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'
8844 else
8845 dynamic_linker=no
8846 fi
8847 ;;
8848
8849beos*)
8850 library_names_spec='${libname}${shared_ext}'
8851 dynamic_linker="$host_os ld.so"
8852 shlibpath_var=LIBRARY_PATH
8853 ;;
8854
8855bsdi[45]*)
8856 version_type=linux
8857 need_version=no
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8861 shlibpath_var=LD_LIBRARY_PATH
8862 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8863 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8864 # the default ld.so.conf also contains /usr/contrib/lib and
8865 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8866 # libtool to hard-code these into programs
8867 ;;
8868
8869cygwin* | mingw* | pw32*)
8870 version_type=windows
8871 shrext_cmds=".dll"
8872 need_version=no
8873 need_lib_prefix=no
8874
8875 case $withGCC,$host_os in
8876 yes,cygwin* | yes,mingw* | yes,pw32*)
8877 library_names_spec='$libname.dll.a'
8878 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8879 postinstall_cmds='base_file=`basename \${file}`~
8880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8881 dldir=$destdir/`dirname \$dlpath`~
8882 test -d \$dldir || mkdir -p \$dldir~
8883 $install_prog $dir/$dlname \$dldir/$dlname~
8884 chmod a+x \$dldir/$dlname~
8885 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8886 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8887 fi'
8888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8889 dlpath=$dir/\$dldll~
8890 $RM \$dlpath'
8891 shlibpath_overrides_runpath=yes
8892
8893 case $host_os in
8894 cygwin*)
8895 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8896 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8897 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8898 ;;
8899 mingw*)
8900 # MinGW DLLs use traditional 'lib' prefix
8901 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8902 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8903 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8904 # It is most probably a Windows format PATH printed by
8905 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8906 # path with ; separators, and with drive letters. We can handle the
8907 # drive letters (cygwin fileutils understands them), so leave them,
8908 # especially as we might pass files found there to a mingw objdump,
8909 # which wouldn't understand a cygwinified path. Ahh.
8910 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8911 else
8912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8913 fi
8914 ;;
8915 pw32*)
8916 # pw32 DLLs use 'pw' prefix rather than 'lib'
8917 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8918 ;;
8919 esac
8920 ;;
8921
8922 *)
8923 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8924 ;;
8925 esac
8926 dynamic_linker='Win32 ld.exe'
8927 # FIXME: first we should search . and the directory the executable is in
8928 shlibpath_var=PATH
8929 ;;
8930
8931darwin* | rhapsody*)
8932 dynamic_linker="$host_os dyld"
8933 version_type=darwin
8934 need_lib_prefix=no
8935 need_version=no
8936 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8937 soname_spec='${libname}${release}${major}$shared_ext'
8938 shlibpath_overrides_runpath=yes
8939 shlibpath_var=DYLD_LIBRARY_PATH
8940 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8941
8942 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8944 ;;
8945
8946dgux*)
8947 version_type=linux
8948 need_lib_prefix=no
8949 need_version=no
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 ;;
8954
8955freebsd1*)
8956 dynamic_linker=no
8957 ;;
8958
8959freebsd* | dragonfly*)
8960 # DragonFly does not have aout. When/if they implement a new
8961 # versioning mechanism, adjust this.
8962 if test -x /usr/bin/objformat; then
8963 objformat=`/usr/bin/objformat`
8964 else
8965 case $host_os in
8966 freebsd[123]*) objformat=aout ;;
8967 *) objformat=elf ;;
8968 esac
8969 fi
8970 version_type=freebsd-$objformat
8971 case $version_type in
8972 freebsd-elf*)
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8974 need_version=no
8975 need_lib_prefix=no
8976 ;;
8977 freebsd-*)
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8979 need_version=yes
8980 ;;
8981 esac
8982 shlibpath_var=LD_LIBRARY_PATH
8983 case $host_os in
8984 freebsd2*)
8985 shlibpath_overrides_runpath=yes
8986 ;;
8987 freebsd3.[01]* | freebsdelf3.[01]*)
8988 shlibpath_overrides_runpath=yes
8989 hardcode_into_libs=yes
8990 ;;
8991 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8992 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8993 shlibpath_overrides_runpath=no
8994 hardcode_into_libs=yes
8995 ;;
8996 *) # from 4.6 on, and DragonFly
8997 shlibpath_overrides_runpath=yes
8998 hardcode_into_libs=yes
8999 ;;
9000 esac
9001 ;;
9002
9003gnu*)
9004 version_type=linux
9005 need_lib_prefix=no
9006 need_version=no
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 shlibpath_var=LD_LIBRARY_PATH
9010 hardcode_into_libs=yes
9011 ;;
9012
9013hpux9* | hpux10* | hpux11*)
9014 # Give a soname corresponding to the major version so that dld.sl refuses to
9015 # link against other versions.
9016 version_type=sunos
9017 need_lib_prefix=no
9018 need_version=no
9019 case $host_cpu in
9020 ia64*)
9021 shrext_cmds='.so'
9022 hardcode_into_libs=yes
9023 dynamic_linker="$host_os dld.so"
9024 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 if test "X$HPUX_IA64_MODE" = X32; then
9029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9030 else
9031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9032 fi
9033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9034 ;;
9035 hppa*64*)
9036 shrext_cmds='.sl'
9037 hardcode_into_libs=yes
9038 dynamic_linker="$host_os dld.sl"
9039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9045 ;;
9046 *)
9047 shrext_cmds='.sl'
9048 dynamic_linker="$host_os dld.sl"
9049 shlibpath_var=SHLIB_PATH
9050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 ;;
9054 esac
9055 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9056 postinstall_cmds='chmod 555 $lib'
9057 ;;
9058
9059interix[3-9]*)
9060 version_type=linux
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=no
9068 hardcode_into_libs=yes
9069 ;;
9070
9071irix5* | irix6* | nonstopux*)
9072 case $host_os in
9073 nonstopux*) version_type=nonstopux ;;
9074 *)
9075 if test "$lt_cv_prog_gnu_ld" = yes; then
9076 version_type=linux
9077 else
9078 version_type=irix
9079 fi ;;
9080 esac
9081 need_lib_prefix=no
9082 need_version=no
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9085 case $host_os in
9086 irix5* | nonstopux*)
9087 libsuff= shlibsuff=
9088 ;;
9089 *)
9090 case $LD in # libtool.m4 will add one of these switches to LD
9091 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9092 libsuff= shlibsuff= libmagic=32-bit;;
9093 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9094 libsuff=32 shlibsuff=N32 libmagic=N32;;
9095 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9096 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9097 *) libsuff= shlibsuff= libmagic=never-match;;
9098 esac
9099 ;;
9100 esac
9101 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9102 shlibpath_overrides_runpath=no
9103 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9104 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9105 hardcode_into_libs=yes
9106 ;;
9107
9108# No shared lib support for Linux oldld, aout, or coff.
9109linux*oldld* | linux*aout* | linux*coff*)
9110 dynamic_linker=no
9111 ;;
9112
9113# This must be Linux ELF.
9114linux* | k*bsd*-gnu)
9115 version_type=linux
9116 need_lib_prefix=no
9117 need_version=no
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath=no
9123 # Some binutils ld are patched to set DT_RUNPATH
9124 save_LDFLAGS=$LDFLAGS
9125 save_libdir=$libdir
9126 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9127 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9128 cat >conftest.$ac_ext <<_ACEOF
9129/* confdefs.h. */
9130_ACEOF
9131cat confdefs.h >>conftest.$ac_ext
9132cat >>conftest.$ac_ext <<_ACEOF
9133/* end confdefs.h. */
9134
9135int
9136main ()
9137{
9138
9139 ;
9140 return 0;
9141}
9142_ACEOF
9143rm -f conftest.$ac_objext conftest$ac_exeext
9144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145 (eval $ac_link) 2>conftest.er1
9146 ac_status=$?
9147 grep -v '^ *+' conftest.er1 >conftest.err
9148 rm -f conftest.er1
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -z "$ac_c_werror_flag"
9153 || test ! -s conftest.err'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 (eval $ac_try) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; } &&
9159 { ac_try='test -s conftest$ac_exeext'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 (eval $ac_try) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9166 shlibpath_overrides_runpath=yes
9167fi
9168
9169else
9170 echo "$as_me: failed program was:" >&5
9171sed 's/^/| /' conftest.$ac_ext >&5
9172
9173fi
9174rm -f conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
9176 LDFLAGS=$save_LDFLAGS
9177 libdir=$save_libdir
9178
9179 # This implies no fast_install, which is unacceptable.
9180 # Some rework will be needed to allow for fast_install
9181 # before this can be enabled.
9182 hardcode_into_libs=yes
9183
9184 # Append ld.so.conf contents to the search path
9185 if test -f /etc/ld.so.conf; then
9186 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9187 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9188 fi
9189
9190 # We used to test for /lib/ld.so.1 and disable shared libraries on
9191 # powerpc, because MkLinux only supported shared libraries with the
9192 # GNU dynamic linker. Since this was broken with cross compilers,
9193 # most powerpc-linux boxes support dynamic linking these days and
9194 # people can always --disable-shared, the test was removed, and we
9195 # assume the GNU/Linux dynamic linker is in use.
9196 dynamic_linker='GNU/Linux ld.so'
9197 ;;
9198
9199netbsd*)
9200 version_type=sunos
9201 need_lib_prefix=no
9202 need_version=no
9203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9206 dynamic_linker='NetBSD (a.out) ld.so'
9207 else
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 dynamic_linker='NetBSD ld.elf_so'
9211 fi
9212 shlibpath_var=LD_LIBRARY_PATH
9213 shlibpath_overrides_runpath=yes
9214 hardcode_into_libs=yes
9215 ;;
9216
9217newsos6)
9218 version_type=linux
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 shlibpath_overrides_runpath=yes
9222 ;;
9223
9224*nto* | *qnx*)
9225 version_type=qnx
9226 need_lib_prefix=no
9227 need_version=no
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 shlibpath_overrides_runpath=no
9232 hardcode_into_libs=yes
9233 dynamic_linker='ldqnx.so'
9234 ;;
9235
9236openbsd*)
9237 version_type=sunos
9238 sys_lib_dlsearch_path_spec="/usr/lib"
9239 need_lib_prefix=no
9240 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9241 case $host_os in
9242 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9243 *) need_version=no ;;
9244 esac
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9249 case $host_os in
9250 openbsd2.[89] | openbsd2.[89].*)
9251 shlibpath_overrides_runpath=no
9252 ;;
9253 *)
9254 shlibpath_overrides_runpath=yes
9255 ;;
9256 esac
9257 else
9258 shlibpath_overrides_runpath=yes
9259 fi
9260 ;;
9261
9262os2*)
9263 libname_spec='$name'
9264 shrext_cmds=".dll"
9265 need_lib_prefix=no
9266 library_names_spec='$libname${shared_ext} $libname.a'
9267 dynamic_linker='OS/2 ld.exe'
9268 shlibpath_var=LIBPATH
9269 ;;
9270
9271osf3* | osf4* | osf5*)
9272 version_type=osf
9273 need_lib_prefix=no
9274 need_version=no
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277 shlibpath_var=LD_LIBRARY_PATH
9278 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9279 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9280 ;;
9281
9282rdos*)
9283 dynamic_linker=no
9284 ;;
9285
9286solaris*)
9287 version_type=linux
9288 need_lib_prefix=no
9289 need_version=no
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 shlibpath_var=LD_LIBRARY_PATH
9293 shlibpath_overrides_runpath=yes
9294 hardcode_into_libs=yes
9295 # ldd complains unless libraries are executable
9296 postinstall_cmds='chmod +x $lib'
9297 ;;
9298
9299sunos4*)
9300 version_type=sunos
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9302 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9303 shlibpath_var=LD_LIBRARY_PATH
9304 shlibpath_overrides_runpath=yes
9305 if test "$with_gnu_ld" = yes; then
9306 need_lib_prefix=no
9307 fi
9308 need_version=yes
9309 ;;
9310
9311sysv4 | sysv4.3*)
9312 version_type=linux
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 case $host_vendor in
9317 sni)
9318 shlibpath_overrides_runpath=no
9319 need_lib_prefix=no
9320 runpath_var=LD_RUN_PATH
9321 ;;
9322 siemens)
9323 need_lib_prefix=no
9324 ;;
9325 motorola)
9326 need_lib_prefix=no
9327 need_version=no
9328 shlibpath_overrides_runpath=no
9329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9330 ;;
9331 esac
9332 ;;
9333
9334sysv4*MP*)
9335 if test -d /usr/nec ;then
9336 version_type=linux
9337 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9338 soname_spec='$libname${shared_ext}.$major'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 fi
9341 ;;
9342
9343sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9344 version_type=freebsd-elf
9345 need_lib_prefix=no
9346 need_version=no
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 shlibpath_overrides_runpath=yes
9351 hardcode_into_libs=yes
9352 if test "$with_gnu_ld" = yes; then
9353 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9354 else
9355 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9356 case $host_os in
9357 sco3.2v5*)
9358 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9359 ;;
9360 esac
9361 fi
9362 sys_lib_dlsearch_path_spec='/usr/lib'
9363 ;;
9364
9365tpf*)
9366 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9367 version_type=linux
9368 need_lib_prefix=no
9369 need_version=no
9370 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9371 shlibpath_var=LD_LIBRARY_PATH
9372 shlibpath_overrides_runpath=no
9373 hardcode_into_libs=yes
9374 ;;
9375
9376uts4*)
9377 version_type=linux
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 shlibpath_var=LD_LIBRARY_PATH
9381 ;;
9382
9383*)
9384 dynamic_linker=no
9385 ;;
9386esac
9387echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9388echo "${ECHO_T}$dynamic_linker" >&6
9389test "$dynamic_linker" = no && can_build_shared=no
9390
9391variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9392if test "$GCC" = yes; then
9393 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9394fi
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9483echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9484hardcode_action=
9485if test -n "$hardcode_libdir_flag_spec" ||
9486 test -n "$runpath_var" ||
9487 test "X$hardcode_automatic" = "Xyes" ; then
9488
9489 # We can hardcode non-existent directories.
9490 if test "$hardcode_direct" != no &&
9491 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9492 # have to relink, otherwise we might link with an installed library
9493 # when we should be linking with a yet-to-be-installed one
9494 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9495 test "$hardcode_minus_L" != no; then
9496 # Linking always hardcodes the temporary library directory.
9497 hardcode_action=relink
9498 else
9499 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9500 hardcode_action=immediate
9501 fi
9502else
9503 # We cannot hardcode anything, or else we can only hardcode existing
9504 # directories.
9505 hardcode_action=unsupported
9506fi
9507echo "$as_me:$LINENO: result: $hardcode_action" >&5
9508echo "${ECHO_T}$hardcode_action" >&6
9509
9510if test "$hardcode_action" = relink ||
9511 test "$inherit_rpath" = yes; then
9512 # Fast installation is not supported
9513 enable_fast_install=no
9514elif test "$shlibpath_overrides_runpath" = yes ||
9515 test "$enable_shared" = no; then
9516 # Fast installation is not necessary
9517 enable_fast_install=needless
9518fi
9519
9520
9521
9522
9523
9524
9525 if test "x$enable_dlopen" != xyes; then
9526 enable_dlopen=unknown
9527 enable_dlopen_self=unknown
9528 enable_dlopen_self_static=unknown
9529else
9530 lt_cv_dlopen=no
9531 lt_cv_dlopen_libs=
9532
9533 case $host_os in
9534 beos*)
9535 lt_cv_dlopen="load_add_on"
9536 lt_cv_dlopen_libs=
9537 lt_cv_dlopen_self=yes
9538 ;;
9539
9540 mingw* | pw32*)
9541 lt_cv_dlopen="LoadLibrary"
9542 lt_cv_dlopen_libs=
9543 ;;
9544
9545 cygwin*)
9546 lt_cv_dlopen="dlopen"
9547 lt_cv_dlopen_libs=
9548 ;;
9549
9550 darwin*)
9551 # if libdl is installed we need to link against it
9552 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9553echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9554if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556else
9557 ac_check_lib_save_LIBS=$LIBS
9558LIBS="-ldl $LIBS"
9559cat >conftest.$ac_ext <<_ACEOF
9560/* confdefs.h. */
9561_ACEOF
9562cat confdefs.h >>conftest.$ac_ext
9563cat >>conftest.$ac_ext <<_ACEOF
9564/* end confdefs.h. */
9565
9566/* Override any gcc2 internal prototype to avoid an error. */
9567#ifdef __cplusplus
9568extern "C"
9569#endif
9570/* We use char because int might match the return type of a gcc2
9571 builtin and then its argument prototype would still apply. */
9572char dlopen ();
9573int
9574main ()
9575{
9576dlopen ();
9577 ;
9578 return 0;
9579}
9580_ACEOF
9581rm -f conftest.$ac_objext conftest$ac_exeext
9582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9583 (eval $ac_link) 2>conftest.er1
9584 ac_status=$?
9585 grep -v '^ *+' conftest.er1 >conftest.err
9586 rm -f conftest.er1
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } &&
9590 { ac_try='test -z "$ac_c_werror_flag"
9591 || test ! -s conftest.err'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 (eval $ac_try) 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest$ac_exeext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 (eval $ac_try) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 ac_cv_lib_dl_dlopen=yes
9604else
9605 echo "$as_me: failed program was:" >&5
9606sed 's/^/| /' conftest.$ac_ext >&5
9607
9608ac_cv_lib_dl_dlopen=no
9609fi
9610rm -f conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9612LIBS=$ac_check_lib_save_LIBS
9613fi
9614echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9615echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9616if test $ac_cv_lib_dl_dlopen = yes; then
9617 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9618else
9619
9620 lt_cv_dlopen="dyld"
9621 lt_cv_dlopen_libs=
9622 lt_cv_dlopen_self=yes
9623
9624fi
9625
9626 ;;
9627
9628 *)
9629 echo "$as_me:$LINENO: checking for shl_load" >&5
9630echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9631if test "${ac_cv_func_shl_load+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633else
9634 cat >conftest.$ac_ext <<_ACEOF
9635/* confdefs.h. */
9636_ACEOF
9637cat confdefs.h >>conftest.$ac_ext
9638cat >>conftest.$ac_ext <<_ACEOF
9639/* end confdefs.h. */
9640/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9642#define shl_load innocuous_shl_load
9643
9644/* System header to define __stub macros and hopefully few prototypes,
9645 which can conflict with char shl_load (); below.
9646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9647 <limits.h> exists even on freestanding compilers. */
9648
9649#ifdef __STDC__
9650# include <limits.h>
9651#else
9652# include <assert.h>
9653#endif
9654
9655#undef shl_load
9656
9657/* Override any gcc2 internal prototype to avoid an error. */
9658#ifdef __cplusplus
9659extern "C"
9660{
9661#endif
9662/* We use char because int might match the return type of a gcc2
9663 builtin and then its argument prototype would still apply. */
9664char shl_load ();
9665/* The GNU C library defines this for functions which it implements
9666 to always fail with ENOSYS. Some functions are actually named
9667 something starting with __ and the normal name is an alias. */
9668#if defined (__stub_shl_load) || defined (__stub___shl_load)
9669choke me
9670#else
9671char (*f) () = shl_load;
9672#endif
9673#ifdef __cplusplus
9674}
9675#endif
9676
9677int
9678main ()
9679{
9680return f != shl_load;
9681 ;
9682 return 0;
9683}
9684_ACEOF
9685rm -f conftest.$ac_objext conftest$ac_exeext
9686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9687 (eval $ac_link) 2>conftest.er1
9688 ac_status=$?
9689 grep -v '^ *+' conftest.er1 >conftest.err
9690 rm -f conftest.er1
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } &&
9694 { ac_try='test -z "$ac_c_werror_flag"
9695 || test ! -s conftest.err'
9696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 (eval $ac_try) 2>&5
9698 ac_status=$?
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; } &&
9701 { ac_try='test -s conftest$ac_exeext'
9702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 (eval $ac_try) 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; }; then
9707 ac_cv_func_shl_load=yes
9708else
9709 echo "$as_me: failed program was:" >&5
9710sed 's/^/| /' conftest.$ac_ext >&5
9711
9712ac_cv_func_shl_load=no
9713fi
9714rm -f conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9716fi
9717echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9718echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9719if test $ac_cv_func_shl_load = yes; then
9720 lt_cv_dlopen="shl_load"
9721else
9722 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9723echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9724if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726else
9727 ac_check_lib_save_LIBS=$LIBS
9728LIBS="-ldld $LIBS"
9729cat >conftest.$ac_ext <<_ACEOF
9730/* confdefs.h. */
9731_ACEOF
9732cat confdefs.h >>conftest.$ac_ext
9733cat >>conftest.$ac_ext <<_ACEOF
9734/* end confdefs.h. */
9735
9736/* Override any gcc2 internal prototype to avoid an error. */
9737#ifdef __cplusplus
9738extern "C"
9739#endif
9740/* We use char because int might match the return type of a gcc2
9741 builtin and then its argument prototype would still apply. */
9742char shl_load ();
9743int
9744main ()
9745{
9746shl_load ();
9747 ;
9748 return 0;
9749}
9750_ACEOF
9751rm -f conftest.$ac_objext conftest$ac_exeext
9752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753 (eval $ac_link) 2>conftest.er1
9754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag"
9761 || test ! -s conftest.err'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try='test -s conftest$ac_exeext'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
9773 ac_cv_lib_dld_shl_load=yes
9774else
9775 echo "$as_me: failed program was:" >&5
9776sed 's/^/| /' conftest.$ac_ext >&5
9777
9778ac_cv_lib_dld_shl_load=no
9779fi
9780rm -f conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9782LIBS=$ac_check_lib_save_LIBS
9783fi
9784echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9785echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9786if test $ac_cv_lib_dld_shl_load = yes; then
9787 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9788else
9789 echo "$as_me:$LINENO: checking for dlopen" >&5
9790echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9791if test "${ac_cv_func_dlopen+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793else
9794 cat >conftest.$ac_ext <<_ACEOF
9795/* confdefs.h. */
9796_ACEOF
9797cat confdefs.h >>conftest.$ac_ext
9798cat >>conftest.$ac_ext <<_ACEOF
9799/* end confdefs.h. */
9800/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9802#define dlopen innocuous_dlopen
9803
9804/* System header to define __stub macros and hopefully few prototypes,
9805 which can conflict with char dlopen (); below.
9806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9807 <limits.h> exists even on freestanding compilers. */
9808
9809#ifdef __STDC__
9810# include <limits.h>
9811#else
9812# include <assert.h>
9813#endif
9814
9815#undef dlopen
9816
9817/* Override any gcc2 internal prototype to avoid an error. */
9818#ifdef __cplusplus
9819extern "C"
9820{
9821#endif
9822/* We use char because int might match the return type of a gcc2
9823 builtin and then its argument prototype would still apply. */
9824char dlopen ();
9825/* The GNU C library defines this for functions which it implements
9826 to always fail with ENOSYS. Some functions are actually named
9827 something starting with __ and the normal name is an alias. */
9828#if defined (__stub_dlopen) || defined (__stub___dlopen)
9829choke me
9830#else
9831char (*f) () = dlopen;
9832#endif
9833#ifdef __cplusplus
9834}
9835#endif
9836
9837int
9838main ()
9839{
9840return f != dlopen;
9841 ;
9842 return 0;
9843}
9844_ACEOF
9845rm -f conftest.$ac_objext conftest$ac_exeext
9846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>conftest.er1
9848 ac_status=$?
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -z "$ac_c_werror_flag"
9855 || test ! -s conftest.err'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; } &&
9861 { ac_try='test -s conftest$ac_exeext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9867 ac_cv_func_dlopen=yes
9868else
9869 echo "$as_me: failed program was:" >&5
9870sed 's/^/| /' conftest.$ac_ext >&5
9871
9872ac_cv_func_dlopen=no
9873fi
9874rm -f conftest.err conftest.$ac_objext \
9875 conftest$ac_exeext conftest.$ac_ext
9876fi
9877echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9878echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9879if test $ac_cv_func_dlopen = yes; then
9880 lt_cv_dlopen="dlopen"
9881else
9882 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9883echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9884if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9886else
9887 ac_check_lib_save_LIBS=$LIBS
9888LIBS="-ldl $LIBS"
9889cat >conftest.$ac_ext <<_ACEOF
9890/* confdefs.h. */
9891_ACEOF
9892cat confdefs.h >>conftest.$ac_ext
9893cat >>conftest.$ac_ext <<_ACEOF
9894/* end confdefs.h. */
9895
9896/* Override any gcc2 internal prototype to avoid an error. */
9897#ifdef __cplusplus
9898extern "C"
9899#endif
9900/* We use char because int might match the return type of a gcc2
9901 builtin and then its argument prototype would still apply. */
9902char dlopen ();
9903int
9904main ()
9905{
9906dlopen ();
9907 ;
9908 return 0;
9909}
9910_ACEOF
9911rm -f conftest.$ac_objext conftest$ac_exeext
9912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913 (eval $ac_link) 2>conftest.er1
9914 ac_status=$?
9915 grep -v '^ *+' conftest.er1 >conftest.err
9916 rm -f conftest.er1
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_c_werror_flag"
9921 || test ! -s conftest.err'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 (eval $ac_try) 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 (eval $ac_try) 2>&5
9930 ac_status=$?
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; }; then
9933 ac_cv_lib_dl_dlopen=yes
9934else
9935 echo "$as_me: failed program was:" >&5
9936sed 's/^/| /' conftest.$ac_ext >&5
9937
9938ac_cv_lib_dl_dlopen=no
9939fi
9940rm -f conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
9942LIBS=$ac_check_lib_save_LIBS
9943fi
9944echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9945echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9946if test $ac_cv_lib_dl_dlopen = yes; then
9947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9948else
9949 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9950echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9951if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953else
9954 ac_check_lib_save_LIBS=$LIBS
9955LIBS="-lsvld $LIBS"
9956cat >conftest.$ac_ext <<_ACEOF
9957/* confdefs.h. */
9958_ACEOF
9959cat confdefs.h >>conftest.$ac_ext
9960cat >>conftest.$ac_ext <<_ACEOF
9961/* end confdefs.h. */
9962
9963/* Override any gcc2 internal prototype to avoid an error. */
9964#ifdef __cplusplus
9965extern "C"
9966#endif
9967/* We use char because int might match the return type of a gcc2
9968 builtin and then its argument prototype would still apply. */
9969char dlopen ();
9970int
9971main ()
9972{
9973dlopen ();
9974 ;
9975 return 0;
9976}
9977_ACEOF
9978rm -f conftest.$ac_objext conftest$ac_exeext
9979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980 (eval $ac_link) 2>conftest.er1
9981 ac_status=$?
9982 grep -v '^ *+' conftest.er1 >conftest.err
9983 rm -f conftest.er1
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
9987 { ac_try='test -z "$ac_c_werror_flag"
9988 || test ! -s conftest.err'
9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 (eval $ac_try) 2>&5
9991 ac_status=$?
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; } &&
9994 { ac_try='test -s conftest$ac_exeext'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 (eval $ac_try) 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10000 ac_cv_lib_svld_dlopen=yes
10001else
10002 echo "$as_me: failed program was:" >&5
10003sed 's/^/| /' conftest.$ac_ext >&5
10004
10005ac_cv_lib_svld_dlopen=no
10006fi
10007rm -f conftest.err conftest.$ac_objext \
10008 conftest$ac_exeext conftest.$ac_ext
10009LIBS=$ac_check_lib_save_LIBS
10010fi
10011echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10012echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10013if test $ac_cv_lib_svld_dlopen = yes; then
10014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10015else
10016 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10017echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10018if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021 ac_check_lib_save_LIBS=$LIBS
10022LIBS="-ldld $LIBS"
10023cat >conftest.$ac_ext <<_ACEOF
10024/* confdefs.h. */
10025_ACEOF
10026cat confdefs.h >>conftest.$ac_ext
10027cat >>conftest.$ac_ext <<_ACEOF
10028/* end confdefs.h. */
10029
10030/* Override any gcc2 internal prototype to avoid an error. */
10031#ifdef __cplusplus
10032extern "C"
10033#endif
10034/* We use char because int might match the return type of a gcc2
10035 builtin and then its argument prototype would still apply. */
10036char dld_link ();
10037int
10038main ()
10039{
10040dld_link ();
10041 ;
10042 return 0;
10043}
10044_ACEOF
10045rm -f conftest.$ac_objext conftest$ac_exeext
10046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047 (eval $ac_link) 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -z "$ac_c_werror_flag"
10055 || test ! -s conftest.err'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try='test -s conftest$ac_exeext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_cv_lib_dld_dld_link=yes
10068else
10069 echo "$as_me: failed program was:" >&5
10070sed 's/^/| /' conftest.$ac_ext >&5
10071
10072ac_cv_lib_dld_dld_link=no
10073fi
10074rm -f conftest.err conftest.$ac_objext \
10075 conftest$ac_exeext conftest.$ac_ext
10076LIBS=$ac_check_lib_save_LIBS
10077fi
10078echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10079echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10080if test $ac_cv_lib_dld_dld_link = yes; then
10081 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10082fi
10083
10084
10085fi
10086
10087
10088fi
10089
10090
10091fi
10092
10093
10094fi
10095
10096
10097fi
10098
10099 ;;
10100 esac
10101
10102 if test "x$lt_cv_dlopen" != xno; then
10103 enable_dlopen=yes
20e95c23 10104 else
d7040cdb 10105 enable_dlopen=no
252b5132 10106 fi
5464f5a1 10107
d7040cdb
SE
10108 case $lt_cv_dlopen in
10109 dlopen)
10110 save_CPPFLAGS="$CPPFLAGS"
10111 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10112
10113 save_LDFLAGS="$LDFLAGS"
10114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10115
10116 save_LIBS="$LIBS"
10117 LIBS="$lt_cv_dlopen_libs $LIBS"
10118
10119 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10120echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10121if test "${lt_cv_dlopen_self+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10123else
d7040cdb
SE
10124 if test "$cross_compiling" = yes; then :
10125 lt_cv_dlopen_self=cross
10126else
10127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10128 lt_status=$lt_dlunknown
10129 cat > conftest.$ac_ext <<_LT_EOF
6194aaab 10130#line 10130 "configure"
d7040cdb
SE
10131#include "confdefs.h"
10132
10133#if HAVE_DLFCN_H
10134#include <dlfcn.h>
10135#endif
10136
10137#include <stdio.h>
10138
10139#ifdef RTLD_GLOBAL
10140# define LT_DLGLOBAL RTLD_GLOBAL
10141#else
10142# ifdef DL_GLOBAL
10143# define LT_DLGLOBAL DL_GLOBAL
10144# else
10145# define LT_DLGLOBAL 0
10146# endif
10147#endif
10148
10149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10150 find out it does not work in some platform. */
10151#ifndef LT_DLLAZY_OR_NOW
10152# ifdef RTLD_LAZY
10153# define LT_DLLAZY_OR_NOW RTLD_LAZY
10154# else
10155# ifdef DL_LAZY
10156# define LT_DLLAZY_OR_NOW DL_LAZY
10157# else
10158# ifdef RTLD_NOW
10159# define LT_DLLAZY_OR_NOW RTLD_NOW
10160# else
10161# ifdef DL_NOW
10162# define LT_DLLAZY_OR_NOW DL_NOW
10163# else
10164# define LT_DLLAZY_OR_NOW 0
10165# endif
10166# endif
10167# endif
10168# endif
10169#endif
10170
10171#ifdef __cplusplus
10172extern "C" void exit (int);
10173#endif
10174
10175void fnord() { int i=42;}
10176int main ()
10177{
10178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10179 int status = $lt_dlunknown;
10180
10181 if (self)
10182 {
10183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10185 /* dlclose (self); */
10186 }
10187 else
10188 puts (dlerror ());
10189
10190 exit (status);
10191}
10192_LT_EOF
10193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10194 (eval $ac_link) 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10198 (./conftest; exit; ) >&5 2>/dev/null
10199 lt_status=$?
10200 case x$lt_status in
10201 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10202 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10203 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10204 esac
10205 else :
10206 # compilation failed
10207 lt_cv_dlopen_self=no
10208 fi
252b5132 10209fi
d7040cdb 10210rm -fr conftest*
20e95c23 10211
d7040cdb
SE
10212
10213fi
10214echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10215echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10216
10217 if test "x$lt_cv_dlopen_self" = xyes; then
10218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10219 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10220echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10221if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
d7040cdb
SE
10224 if test "$cross_compiling" = yes; then :
10225 lt_cv_dlopen_self_static=cross
10226else
10227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10228 lt_status=$lt_dlunknown
10229 cat > conftest.$ac_ext <<_LT_EOF
6194aaab 10230#line 10230 "configure"
d7040cdb
SE
10231#include "confdefs.h"
10232
10233#if HAVE_DLFCN_H
10234#include <dlfcn.h>
10235#endif
10236
10237#include <stdio.h>
10238
10239#ifdef RTLD_GLOBAL
10240# define LT_DLGLOBAL RTLD_GLOBAL
10241#else
10242# ifdef DL_GLOBAL
10243# define LT_DLGLOBAL DL_GLOBAL
10244# else
10245# define LT_DLGLOBAL 0
10246# endif
10247#endif
10248
10249/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10250 find out it does not work in some platform. */
10251#ifndef LT_DLLAZY_OR_NOW
10252# ifdef RTLD_LAZY
10253# define LT_DLLAZY_OR_NOW RTLD_LAZY
10254# else
10255# ifdef DL_LAZY
10256# define LT_DLLAZY_OR_NOW DL_LAZY
10257# else
10258# ifdef RTLD_NOW
10259# define LT_DLLAZY_OR_NOW RTLD_NOW
10260# else
10261# ifdef DL_NOW
10262# define LT_DLLAZY_OR_NOW DL_NOW
10263# else
10264# define LT_DLLAZY_OR_NOW 0
10265# endif
10266# endif
10267# endif
10268# endif
10269#endif
10270
10271#ifdef __cplusplus
10272extern "C" void exit (int);
10273#endif
10274
10275void fnord() { int i=42;}
10276int main ()
10277{
10278 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10279 int status = $lt_dlunknown;
10280
10281 if (self)
10282 {
10283 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10284 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10285 /* dlclose (self); */
10286 }
10287 else
10288 puts (dlerror ());
10289
10290 exit (status);
10291}
10292_LT_EOF
10293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294 (eval $ac_link) 2>&5
10295 ac_status=$?
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10298 (./conftest; exit; ) >&5 2>/dev/null
10299 lt_status=$?
10300 case x$lt_status in
10301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10303 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10304 esac
10305 else :
10306 # compilation failed
10307 lt_cv_dlopen_self_static=no
10308 fi
10309fi
10310rm -fr conftest*
10311
10312
10313fi
10314echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10315echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10316 fi
10317
10318 CPPFLAGS="$save_CPPFLAGS"
10319 LDFLAGS="$save_LDFLAGS"
10320 LIBS="$save_LIBS"
10321 ;;
10322 esac
10323
10324 case $lt_cv_dlopen_self in
10325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10326 *) enable_dlopen_self=unknown ;;
10327 esac
10328
10329 case $lt_cv_dlopen_self_static in
10330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10331 *) enable_dlopen_self_static=unknown ;;
10332 esac
10333fi
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351striplib=
10352old_striplib=
10353echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10354echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10355if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10356 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10357 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10358 echo "$as_me:$LINENO: result: yes" >&5
10359echo "${ECHO_T}yes" >&6
10360else
10361# FIXME - insert some real tests, host_os isn't really good enough
10362 case $host_os in
10363 darwin*)
10364 if test -n "$STRIP" ; then
10365 striplib="$STRIP -x"
10366 old_striplib="$STRIP -S"
10367 echo "$as_me:$LINENO: result: yes" >&5
10368echo "${ECHO_T}yes" >&6
10369 else
10370 echo "$as_me:$LINENO: result: no" >&5
10371echo "${ECHO_T}no" >&6
10372 fi
20e95c23
DJ
10373 ;;
10374 *)
d7040cdb
SE
10375 echo "$as_me:$LINENO: result: no" >&5
10376echo "${ECHO_T}no" >&6
10377 ;;
10378 esac
10379fi
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392 # Report which library types will actually be built
10393 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10394echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10395 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10396echo "${ECHO_T}$can_build_shared" >&6
10397
10398 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10399echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10400 test "$can_build_shared" = "no" && enable_shared=no
10401
10402 # On AIX, shared libraries and static libraries use the same namespace, and
10403 # are all built from PIC.
10404 case $host_os in
10405 aix3*)
10406 test "$enable_shared" = yes && enable_static=no
10407 if test -n "$RANLIB"; then
10408 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10409 postinstall_cmds='$RANLIB $lib'
10410 fi
10411 ;;
10412
e81819a5 10413 aix[4-9]*)
d7040cdb
SE
10414 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10415 test "$enable_shared" = yes && enable_static=no
10416 fi
20e95c23 10417 ;;
d7040cdb
SE
10418 esac
10419 echo "$as_me:$LINENO: result: $enable_shared" >&5
10420echo "${ECHO_T}$enable_shared" >&6
10421
10422 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10423echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10424 # Make sure either enable_shared or enable_static is yes.
10425 test "$enable_shared" = yes || enable_static=yes
10426 echo "$as_me:$LINENO: result: $enable_static" >&5
10427echo "${ECHO_T}$enable_static" >&6
10428
10429
10430
10431
10432fi
10433ac_ext=c
10434ac_cpp='$CPP $CPPFLAGS'
10435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10437ac_compiler_gnu=$ac_cv_c_compiler_gnu
10438
10439CC="$lt_save_CC"
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453 ac_config_commands="$ac_config_commands libtool"
10454
10455
10456
10457
10458# Only expand once:
10459
10460
10461
10462# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10463if test "${enable_64_bit_bfd+set}" = set; then
10464 enableval="$enable_64_bit_bfd"
10465 case "${enableval}" in
10466 yes) want64=true ;;
10467 no) want64=false ;;
10468 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10469echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10470 { (exit 1); exit 1; }; } ;;
10471esac
10472else
10473 want64=false
504b7d20
NC
10474fi;
10475# Check whether --enable-targets or --disable-targets was given.
d7040cdb
SE
10476if test "${enable_targets+set}" = set; then
10477 enableval="$enable_targets"
10478 case "${enableval}" in
10479 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10480echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10481 { (exit 1); exit 1; }; }
10482 ;;
10483 no) enable_targets= ;;
10484 *) enable_targets=$enableval ;;
10485esac
504b7d20
NC
10486fi;
10487# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
d7040cdb
SE
10488if test "${enable_commonbfdlib+set}" = set; then
10489 enableval="$enable_commonbfdlib"
10490 case "${enableval}" in
10491 yes) commonbfdlib=true ;;
10492 no) commonbfdlib=false ;;
10493 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10494echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10495 { (exit 1); exit 1; }; } ;;
10496esac
10497fi;
504b7d20 10498
d7040cdb
SE
10499# Check whether --with-mmap or --without-mmap was given.
10500if test "${with_mmap+set}" = set; then
10501 withval="$with_mmap"
10502 case "${withval}" in
10503 yes) want_mmap=true ;;
10504 no) want_mmap=false ;;
10505 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10506echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10507 { (exit 1); exit 1; }; } ;;
20e95c23 10508esac
252b5132 10509else
d7040cdb
SE
10510 want_mmap=false
10511fi;
10512# Check whether --enable-secureplt or --disable-secureplt was given.
10513if test "${enable_secureplt+set}" = set; then
10514 enableval="$enable_secureplt"
10515 case "${enableval}" in
10516 yes) use_secureplt=true ;;
10517 no) use_secureplt=false ;;
10518 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10519echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10520 { (exit 1); exit 1; }; } ;;
10521esac
252b5132 10522else
d7040cdb
SE
10523 use_secureplt=false
10524fi; if test $use_secureplt = true; then
10525
10526cat >>confdefs.h <<\_ACEOF
10527#define USE_SECUREPLT 1
10528_ACEOF
5464f5a1 10529
252b5132 10530fi
20e95c23 10531
0d4a1476
AS
10532DEBUGDIR=${libdir}/debug
10533
0d4a1476
AS
10534# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10535if test "${with_separate_debug_dir+set}" = set; then
10536 withval="$with_separate_debug_dir"
10537 DEBUGDIR="${withval}"
10538fi;
10539
10540
504b7d20
NC
10541# Check to see if we should allow the generation of
10542# symbols with the ELF standard's STT_COMMON type.
10543# Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
10544if test "${enable_elf_stt_common+set}" = set; then
10545 enableval="$enable_elf_stt_common"
10546 case "${enableval}" in
10547 yes) want_elf_stt_common=true ;;
10548 no) want_elf_stt_common=false ;;
10549 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
10550echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
10551 { (exit 1); exit 1; }; } ;;
10552 esac
10553else
10554 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
10555# test whether the loader supports the STT_COMMON type, but that would
10556# mean that built binaries could not be exported to older systems where
10557# the loader does not support it. So by default we always choose to
10558# disable this feature.
504b7d20 10559 want_elf_stt_common=false
504b7d20
NC
10560fi; if test $want_elf_stt_common = true; then
10561
10562cat >>confdefs.h <<\_ACEOF
10563#define USE_STT_COMMON 1
10564_ACEOF
10565
10566fi
10567
10568
d7040cdb 10569
d7040cdb
SE
10570# Check whether --with-pkgversion or --without-pkgversion was given.
10571if test "${with_pkgversion+set}" = set; then
10572 withval="$with_pkgversion"
10573 case "$withval" in
10574 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10575echo "$as_me: error: package version not specified" >&2;}
10576 { (exit 1); exit 1; }; } ;;
10577 no) PKGVERSION= ;;
10578 *) PKGVERSION="($withval) " ;;
10579 esac
252b5132 10580else
d7040cdb 10581 PKGVERSION="(GNU Binutils) "
252b5132 10582
d7040cdb 10583fi;
20e95c23
DJ
10584
10585
5464f5a1 10586
20e95c23 10587
d7040cdb
SE
10588# Check whether --with-bugurl or --without-bugurl was given.
10589if test "${with_bugurl+set}" = set; then
10590 withval="$with_bugurl"
10591 case "$withval" in
10592 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10593echo "$as_me: error: bug URL not specified" >&2;}
10594 { (exit 1); exit 1; }; } ;;
10595 no) BUGURL=
10596 ;;
10597 *) BUGURL="$withval"
10598 ;;
10599 esac
252b5132 10600else
d7040cdb
SE
10601 BUGURL="http://www.sourceware.org/bugzilla/"
10602
10603fi;
10604 case ${BUGURL} in
10605 "")
10606 REPORT_BUGS_TO=
10607 REPORT_BUGS_TEXI=
20e95c23
DJ
10608 ;;
10609 *)
d7040cdb
SE
10610 REPORT_BUGS_TO="<$BUGURL>"
10611 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 10612 ;;
d7040cdb
SE
10613 esac;
10614
10615
10616
10617
10618
10619GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10620
10621# Check whether --enable-werror or --disable-werror was given.
10622if test "${enable_werror+set}" = set; then
10623 enableval="$enable_werror"
10624 case "${enableval}" in
10625 yes | y) ERROR_ON_WARNING="yes" ;;
10626 no | n) ERROR_ON_WARNING="no" ;;
10627 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10628echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10629 { (exit 1); exit 1; }; } ;;
10630 esac
10631fi;
10632
bb8541b9
L
10633# Enable -Wno-format by default when using gcc on mingw
10634case "${host}" in
10635 *-*-mingw32*)
10636 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10637 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10638 fi
10639 ;;
10640 *) ;;
10641esac
10642
d7040cdb
SE
10643# Enable -Werror by default when using gcc
10644if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10645 ERROR_ON_WARNING=yes
10646fi
10647
10648NO_WERROR=
10649if test "${ERROR_ON_WARNING}" = yes ; then
10650 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10651 NO_WERROR="-Wno-error"
10652fi
10653
10654if test "${GCC}" = yes ; then
10655 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10656fi
10657
10658# Check whether --enable-build-warnings or --disable-build-warnings was given.
10659if test "${enable_build_warnings+set}" = set; then
10660 enableval="$enable_build_warnings"
10661 case "${enableval}" in
10662 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10663 no) if test "${GCC}" = yes ; then
10664 WARN_CFLAGS="-w"
10665 fi;;
10666 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10667 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10668 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10669 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10670 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 10671esac
d7040cdb
SE
10672fi;
10673
10674if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10675 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 10676fi
d7040cdb
SE
10677
10678
10679
10680
10681
10682 ac_config_headers="$ac_config_headers config.h:config.in"
10683
10684
10685if test -z "$target" ; then
10686 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10687echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10688 { (exit 1); exit 1; }; }
20e95c23
DJ
10689fi
10690
d7040cdb
SE
10691echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10692echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10693 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10694if test "${enable_maintainer_mode+set}" = set; then
10695 enableval="$enable_maintainer_mode"
10696 USE_MAINTAINER_MODE=$enableval
10697else
10698 USE_MAINTAINER_MODE=no
10699fi;
10700 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10701echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
10702
10703
d7040cdb
SE
10704if test $USE_MAINTAINER_MODE = yes; then
10705 MAINTAINER_MODE_TRUE=
10706 MAINTAINER_MODE_FALSE='#'
10707else
10708 MAINTAINER_MODE_TRUE='#'
10709 MAINTAINER_MODE_FALSE=
6be7c12c 10710fi
5464f5a1 10711
d7040cdb
SE
10712 MAINT=$MAINTAINER_MODE_TRUE
10713
10714
10715
10716
10717if false; then
10718 GENINSRC_NEVER_TRUE=
10719 GENINSRC_NEVER_FALSE='#'
20e95c23 10720else
d7040cdb
SE
10721 GENINSRC_NEVER_TRUE='#'
10722 GENINSRC_NEVER_FALSE=
5464f5a1 10723fi
5464f5a1 10724
d7040cdb
SE
10725 case ${build_alias} in
10726 "") build_noncanonical=${build} ;;
10727 *) build_noncanonical=${build_alias} ;;
20e95c23 10728esac
d7040cdb
SE
10729
10730 case ${host_alias} in
10731 "") host_noncanonical=${build_noncanonical} ;;
10732 *) host_noncanonical=${host_alias} ;;
10733esac
10734
10735 case ${target_alias} in
10736 "") target_noncanonical=${host_noncanonical} ;;
10737 *) target_noncanonical=${target_alias} ;;
10738esac
10739
10740echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10741echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10742 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10743if test "${enable_install_libbfd+set}" = set; then
10744 enableval="$enable_install_libbfd"
10745 install_libbfd_p=$enableval
252b5132 10746else
d7040cdb
SE
10747 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10748 install_libbfd_p=yes
10749 else
10750 install_libbfd_p=no
10751 fi
10752fi;
10753 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10754echo "${ECHO_T}$install_libbfd_p" >&6
10755
10756
10757if test $install_libbfd_p = yes; then
10758 INSTALL_LIBBFD_TRUE=
10759 INSTALL_LIBBFD_FALSE='#'
10760else
10761 INSTALL_LIBBFD_TRUE='#'
10762 INSTALL_LIBBFD_FALSE=
5464f5a1 10763fi
5464f5a1 10764
d7040cdb 10765 # Need _noncanonical variables for this.
5464f5a1 10766
5464f5a1 10767
d7040cdb
SE
10768
10769
10770 # libbfd.a is a host library containing target dependent code
10771 bfdlibdir='$(libdir)'
10772 bfdincludedir='$(includedir)'
10773 if test "${host}" != "${target}"; then
10774 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10775 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 10776 fi
6be7c12c 10777
5464f5a1 10778
5464f5a1
NN
10779
10780
5464f5a1 10781
ac48eca1 10782
d7040cdb
SE
10783host64=false
10784target64=false
10785bfd_default_target_size=32
252b5132 10786
d7040cdb 10787# host stuff:
20e95c23 10788
041a1845 10789ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
d7040cdb
SE
10790# If we haven't got the data from the intl directory,
10791# assume NLS is disabled.
10792USE_NLS=no
10793LIBINTL=
10794LIBINTL_DEP=
10795INCINTL=
10796XGETTEXT=
10797GMSGFMT=
10798POSUB=
10799
10800if test -f ../intl/config.intl; then
10801 . ../intl/config.intl
252b5132 10802fi
d7040cdb
SE
10803echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10804echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10805if test x"$USE_NLS" != xyes; then
10806 echo "$as_me:$LINENO: result: no" >&5
10807echo "${ECHO_T}no" >&6
10808else
10809 echo "$as_me:$LINENO: result: yes" >&5
10810echo "${ECHO_T}yes" >&6
5464f5a1 10811
d7040cdb
SE
10812cat >>confdefs.h <<\_ACEOF
10813#define ENABLE_NLS 1
10814_ACEOF
252b5132 10815
6be7c12c 10816
d7040cdb
SE
10817 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10818echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10819 # Look for .po and .gmo files in the source directory.
10820 CATALOGS=
10821 XLINGUAS=
10822 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10823 # If there aren't any .gmo files the shell will give us the
10824 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10825 # weeded out.
10826 case "$cat" in *\**)
10827 continue;;
10828 esac
10829 # The quadruple backslash is collapsed to a double backslash
10830 # by the backticks, then collapsed again by the double quotes,
10831 # leaving us with one backslash in the sed expression (right
10832 # before the dot that mustn't act as a wildcard).
10833 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10834 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10835 # The user is allowed to set LINGUAS to a list of languages to
10836 # install catalogs for. If it's empty that means "all of them."
10837 if test "x$LINGUAS" = x; then
10838 CATALOGS="$CATALOGS $cat"
10839 XLINGUAS="$XLINGUAS $lang"
10840 else
10841 case "$LINGUAS" in *$lang*)
10842 CATALOGS="$CATALOGS $cat"
10843 XLINGUAS="$XLINGUAS $lang"
10844 ;;
10845 esac
10846 fi
10847 done
10848 LINGUAS="$XLINGUAS"
10849 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10850echo "${ECHO_T}$LINGUAS" >&6
10851
252b5132 10852
d7040cdb 10853 DATADIRNAME=share
252b5132 10854
d7040cdb 10855 INSTOBJEXT=.mo
5464f5a1 10856
d7040cdb 10857 GENCAT=gencat
20e95c23 10858
d7040cdb 10859 CATOBJEXT=.gmo
5464f5a1 10860
20e95c23 10861fi
5464f5a1 10862
d7040cdb
SE
10863 MKINSTALLDIRS=
10864 if test -n "$ac_aux_dir"; then
10865 case "$ac_aux_dir" in
10866 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10867 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10868 esac
10869 fi
10870 if test -z "$MKINSTALLDIRS"; then
10871 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 10872 fi
5464f5a1 10873
5464f5a1 10874
d7040cdb
SE
10875
10876 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10877echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10878 # Check whether --enable-nls or --disable-nls was given.
10879if test "${enable_nls+set}" = set; then
10880 enableval="$enable_nls"
10881 USE_NLS=$enableval
252b5132 10882else
d7040cdb
SE
10883 USE_NLS=yes
10884fi;
10885 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10886echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 10887
252b5132 10888
5464f5a1 10889
252b5132 10890
d7040cdb
SE
10891
10892
10893# Prepare PATH_SEPARATOR.
10894# The user is always right.
10895if test "${PATH_SEPARATOR+set}" != set; then
10896 echo "#! /bin/sh" >conf$$.sh
10897 echo "exit 0" >>conf$$.sh
10898 chmod +x conf$$.sh
10899 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10900 PATH_SEPARATOR=';'
20e95c23 10901 else
d7040cdb 10902 PATH_SEPARATOR=:
20e95c23 10903 fi
d7040cdb
SE
10904 rm -f conf$$.sh
10905fi
10906
10907# Find out how to test for executable files. Don't use a zero-byte file,
10908# as systems may use methods other than mode bits to determine executability.
10909cat >conf$$.file <<_ASEOF
10910#! /bin/sh
10911exit 0
10912_ASEOF
10913chmod +x conf$$.file
10914if test -x conf$$.file >/dev/null 2>&1; then
10915 ac_executable_p="test -x"
20e95c23 10916else
d7040cdb 10917 ac_executable_p="test -f"
20e95c23 10918fi
d7040cdb 10919rm -f conf$$.file
5464f5a1 10920
d7040cdb
SE
10921# Extract the first word of "msgfmt", so it can be a program name with args.
10922set dummy msgfmt; ac_word=$2
10923echo "$as_me:$LINENO: checking for $ac_word" >&5
10924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10925if test "${ac_cv_path_MSGFMT+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927else
10928 case "$MSGFMT" in
10929 [\\/]* | ?:[\\/]*)
10930 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10931 ;;
10932 *)
10933 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10934 for ac_dir in $PATH; do
10935 IFS="$ac_save_IFS"
10936 test -z "$ac_dir" && ac_dir=.
10937 for ac_exec_ext in '' $ac_executable_extensions; do
10938 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10939 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10940 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10941 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10942 break 2
10943 fi
10944 fi
10945 done
10946 done
10947 IFS="$ac_save_IFS"
10948 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10949 ;;
10950esac
5464f5a1 10951fi
d7040cdb
SE
10952MSGFMT="$ac_cv_path_MSGFMT"
10953if test "$MSGFMT" != ":"; then
10954 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10955echo "${ECHO_T}$MSGFMT" >&6
20e95c23 10956else
d7040cdb
SE
10957 echo "$as_me:$LINENO: result: no" >&5
10958echo "${ECHO_T}no" >&6
252b5132 10959fi
d7040cdb
SE
10960
10961 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10962set dummy gmsgfmt; ac_word=$2
10963echo "$as_me:$LINENO: checking for $ac_word" >&5
10964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10965if test "${ac_cv_path_GMSGFMT+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10967else
d7040cdb
SE
10968 case $GMSGFMT in
10969 [\\/]* | ?:[\\/]*)
10970 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10971 ;;
10972 *)
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974for as_dir in $PATH
10975do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10980 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 break 2
10983 fi
10984done
10985done
5464f5a1 10986
d7040cdb
SE
10987 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10988 ;;
10989esac
252b5132 10990fi
d7040cdb 10991GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 10992
d7040cdb
SE
10993if test -n "$GMSGFMT"; then
10994 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10995echo "${ECHO_T}$GMSGFMT" >&6
252b5132 10996else
d7040cdb
SE
10997 echo "$as_me:$LINENO: result: no" >&5
10998echo "${ECHO_T}no" >&6
252b5132
RH
10999fi
11000
20e95c23
DJ
11001
11002
d7040cdb
SE
11003# Prepare PATH_SEPARATOR.
11004# The user is always right.
11005if test "${PATH_SEPARATOR+set}" != set; then
11006 echo "#! /bin/sh" >conf$$.sh
11007 echo "exit 0" >>conf$$.sh
11008 chmod +x conf$$.sh
11009 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11010 PATH_SEPARATOR=';'
11011 else
11012 PATH_SEPARATOR=:
11013 fi
11014 rm -f conf$$.sh
252b5132 11015fi
20e95c23 11016
d7040cdb
SE
11017# Find out how to test for executable files. Don't use a zero-byte file,
11018# as systems may use methods other than mode bits to determine executability.
11019cat >conf$$.file <<_ASEOF
11020#! /bin/sh
11021exit 0
11022_ASEOF
11023chmod +x conf$$.file
11024if test -x conf$$.file >/dev/null 2>&1; then
11025 ac_executable_p="test -x"
11026else
11027 ac_executable_p="test -f"
11028fi
11029rm -f conf$$.file
252b5132 11030
d7040cdb
SE
11031# Extract the first word of "xgettext", so it can be a program name with args.
11032set dummy xgettext; ac_word=$2
11033echo "$as_me:$LINENO: checking for $ac_word" >&5
11034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11035if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037else
d7040cdb
SE
11038 case "$XGETTEXT" in
11039 [\\/]* | ?:[\\/]*)
11040 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11041 ;;
11042 *)
11043 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11044 for ac_dir in $PATH; do
11045 IFS="$ac_save_IFS"
11046 test -z "$ac_dir" && ac_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11049 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11050 (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
11051 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11052 break 2
11053 fi
11054 fi
11055 done
11056 done
11057 IFS="$ac_save_IFS"
11058 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11059 ;;
11060esac
11061fi
11062XGETTEXT="$ac_cv_path_XGETTEXT"
11063if test "$XGETTEXT" != ":"; then
11064 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11065echo "${ECHO_T}$XGETTEXT" >&6
252b5132 11066else
d7040cdb
SE
11067 echo "$as_me:$LINENO: result: no" >&5
11068echo "${ECHO_T}no" >&6
252b5132
RH
11069fi
11070
d7040cdb 11071 rm -f messages.po
5464f5a1 11072
252b5132 11073
d7040cdb
SE
11074# Prepare PATH_SEPARATOR.
11075# The user is always right.
11076if test "${PATH_SEPARATOR+set}" != set; then
11077 echo "#! /bin/sh" >conf$$.sh
11078 echo "exit 0" >>conf$$.sh
11079 chmod +x conf$$.sh
11080 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11081 PATH_SEPARATOR=';'
11082 else
11083 PATH_SEPARATOR=:
11084 fi
11085 rm -f conf$$.sh
252b5132
RH
11086fi
11087
d7040cdb
SE
11088# Find out how to test for executable files. Don't use a zero-byte file,
11089# as systems may use methods other than mode bits to determine executability.
11090cat >conf$$.file <<_ASEOF
11091#! /bin/sh
11092exit 0
11093_ASEOF
11094chmod +x conf$$.file
11095if test -x conf$$.file >/dev/null 2>&1; then
11096 ac_executable_p="test -x"
5464f5a1 11097else
d7040cdb 11098 ac_executable_p="test -f"
20e95c23 11099fi
d7040cdb 11100rm -f conf$$.file
5464f5a1 11101
d7040cdb
SE
11102# Extract the first word of "msgmerge", so it can be a program name with args.
11103set dummy msgmerge; ac_word=$2
11104echo "$as_me:$LINENO: checking for $ac_word" >&5
11105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11106if test "${ac_cv_path_MSGMERGE+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11108else
11109 case "$MSGMERGE" in
11110 [\\/]* | ?:[\\/]*)
11111 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11112 ;;
11113 *)
11114 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11115 for ac_dir in $PATH; do
11116 IFS="$ac_save_IFS"
11117 test -z "$ac_dir" && ac_dir=.
11118 for ac_exec_ext in '' $ac_executable_extensions; do
11119 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11120 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11121 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11122 break 2
11123 fi
11124 fi
11125 done
11126 done
11127 IFS="$ac_save_IFS"
11128 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11129 ;;
11130esac
5464f5a1 11131fi
d7040cdb
SE
11132MSGMERGE="$ac_cv_path_MSGMERGE"
11133if test "$MSGMERGE" != ":"; then
11134 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11135echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 11136else
d7040cdb
SE
11137 echo "$as_me:$LINENO: result: no" >&5
11138echo "${ECHO_T}no" >&6
11139fi
20e95c23 11140
5464f5a1 11141
d7040cdb
SE
11142 if test "$GMSGFMT" != ":"; then
11143 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11144 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11145 : ;
11146 else
11147 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11148 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11149echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11150 GMSGFMT=":"
11151 fi
11152 fi
252b5132 11153
d7040cdb
SE
11154 if test "$XGETTEXT" != ":"; then
11155 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11156 (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
11157 : ;
11158 else
11159 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11160echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11161 XGETTEXT=":"
11162 fi
11163 rm -f messages.po
11164 fi
6be7c12c 11165
d7040cdb 11166 ac_config_commands="$ac_config_commands default-1"
5464f5a1 11167
252b5132 11168
5464f5a1 11169
d7040cdb
SE
11170# Permit host specific settings.
11171. ${srcdir}/configure.host
11172
11173
11174# Find a good install program. We prefer a C program (faster),
11175# so one script is as good as another. But avoid the broken or
11176# incompatible versions:
11177# SysV /etc/install, /usr/sbin/install
11178# SunOS /usr/etc/install
11179# IRIX /sbin/install
11180# AIX /bin/install
11181# AmigaOS /C/install, which installs bootblocks on floppy discs
11182# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11183# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11184# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11185# OS/2's system install, which has a completely different semantic
11186# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 11187# Reject install programs that cannot install multiple files.
d7040cdb
SE
11188echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11189echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11190if test -z "$INSTALL"; then
11191if test "${ac_cv_path_install+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193else
11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195for as_dir in $PATH
11196do
11197 IFS=$as_save_IFS
11198 test -z "$as_dir" && as_dir=.
11199 # Account for people who put trailing slashes in PATH elements.
11200case $as_dir/ in
11201 ./ | .// | /cC/* | \
11202 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11203 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11204 /usr/ucb/* ) ;;
11205 *)
11206 # OSF1 and SCO ODT 3.0 have their own names for install.
11207 # Don't use installbsd from OSF since it installs stuff as root
11208 # by default.
11209 for ac_prog in ginstall scoinst install; do
11210 for ac_exec_ext in '' $ac_executable_extensions; do
11211 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11212 if test $ac_prog = install &&
11213 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11214 # AIX install. It has an incompatible calling convention.
11215 :
11216 elif test $ac_prog = install &&
11217 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11218 # program-specific install script used by HP pwplus--don't use.
11219 :
11220 else
58c85be7
RW
11221 rm -rf conftest.one conftest.two conftest.dir
11222 echo one > conftest.one
11223 echo two > conftest.two
11224 mkdir conftest.dir
11225 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11226 test -s conftest.one && test -s conftest.two &&
11227 test -s conftest.dir/conftest.one &&
11228 test -s conftest.dir/conftest.two
11229 then
11230 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11231 break 3
11232 fi
d7040cdb
SE
11233 fi
11234 fi
11235 done
11236 done
11237 ;;
11238esac
11239done
11240
58c85be7 11241rm -rf conftest.one conftest.two conftest.dir
252b5132 11242
d7040cdb
SE
11243fi
11244 if test "${ac_cv_path_install+set}" = set; then
11245 INSTALL=$ac_cv_path_install
11246 else
58c85be7
RW
11247 # As a last resort, use the slow shell script. Don't cache a
11248 # value for INSTALL within a source directory, because that will
d7040cdb 11249 # break other packages using the cache if that directory is
58c85be7 11250 # removed, or if the value is a relative name.
d7040cdb
SE
11251 INSTALL=$ac_install_sh
11252 fi
11253fi
11254echo "$as_me:$LINENO: result: $INSTALL" >&5
11255echo "${ECHO_T}$INSTALL" >&6
5464f5a1 11256
d7040cdb
SE
11257# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11258# It thinks the first close brace ends the variable substitution.
11259test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 11260
d7040cdb 11261test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 11262
d7040cdb 11263test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 11264
252b5132 11265
d7040cdb 11266BFD_HOST_64BIT_LONG=0
d2df793a 11267BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
11268BFD_HOST_64_BIT_DEFINED=0
11269BFD_HOST_64_BIT=
11270BFD_HOST_U_64_BIT=
d2df793a 11271BFD_HOSTPTR_T="unsigned long"
6be7c12c 11272
d7040cdb
SE
11273echo "$as_me:$LINENO: checking for long long" >&5
11274echo $ECHO_N "checking for long long... $ECHO_C" >&6
2ba49b59 11275if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 11276 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11277else
5464f5a1
NN
11278 cat >conftest.$ac_ext <<_ACEOF
11279/* confdefs.h. */
11280_ACEOF
11281cat confdefs.h >>conftest.$ac_ext
11282cat >>conftest.$ac_ext <<_ACEOF
11283/* end confdefs.h. */
2ba49b59 11284$ac_includes_default
5464f5a1
NN
11285int
11286main ()
11287{
2ba49b59
KC
11288if ((long long *) 0)
11289 return 0;
11290if (sizeof (long long))
11291 return 0;
5464f5a1
NN
11292 ;
11293 return 0;
11294}
11295_ACEOF
11296rm -f conftest.$ac_objext
11297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11298 (eval $ac_compile) 2>conftest.er1
11299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
49c96104
SE
11305 { ac_try='test -z "$ac_c_werror_flag"
11306 || test ! -s conftest.err'
5464f5a1
NN
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
2ba49b59 11318 ac_cv_type_long_long=yes
6726e1ea 11319else
5464f5a1
NN
11320 echo "$as_me: failed program was:" >&5
11321sed 's/^/| /' conftest.$ac_ext >&5
11322
2ba49b59 11323ac_cv_type_long_long=no
6726e1ea 11324fi
5464f5a1 11325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 11326fi
2ba49b59
KC
11327echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11328echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 11329
2ba49b59
KC
11330echo "$as_me:$LINENO: checking size of long long" >&5
11331echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11332if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 11333 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11334else
2ba49b59
KC
11335 if test "$ac_cv_type_long_long" = yes; then
11336 # The cast to unsigned long works around a bug in the HP C Compiler
11337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11339 # This bug is HP SR number 8606223364.
11340 if test "$cross_compiling" = yes; then
11341 # Depending upon the size, compute the lo and hi bounds.
11342cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11343/* confdefs.h. */
11344_ACEOF
11345cat confdefs.h >>conftest.$ac_ext
11346cat >>conftest.$ac_ext <<_ACEOF
11347/* end confdefs.h. */
2ba49b59
KC
11348$ac_includes_default
11349int
11350main ()
11351{
11352static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11353test_array [0] = 0
6726e1ea 11354
2ba49b59
KC
11355 ;
11356 return 0;
11357}
11358_ACEOF
11359rm -f conftest.$ac_objext
11360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361 (eval $ac_compile) 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
49c96104
SE
11368 { ac_try='test -z "$ac_c_werror_flag"
11369 || test ! -s conftest.err'
2ba49b59
KC
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_lo=0 ac_mid=0
11382 while :; do
11383 cat >conftest.$ac_ext <<_ACEOF
11384/* confdefs.h. */
11385_ACEOF
11386cat confdefs.h >>conftest.$ac_ext
11387cat >>conftest.$ac_ext <<_ACEOF
11388/* end confdefs.h. */
11389$ac_includes_default
5464f5a1
NN
11390int
11391main ()
11392{
2ba49b59
KC
11393static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11394test_array [0] = 0
11395
5464f5a1
NN
11396 ;
11397 return 0;
11398}
11399_ACEOF
11400rm -f conftest.$ac_objext
11401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11402 (eval $ac_compile) 2>conftest.er1
11403 ac_status=$?
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } &&
49c96104
SE
11409 { ac_try='test -z "$ac_c_werror_flag"
11410 || test ! -s conftest.err'
5464f5a1
NN
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; } &&
11416 { ac_try='test -s conftest.$ac_objext'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
2ba49b59 11422 ac_hi=$ac_mid; break
6726e1ea 11423else
5464f5a1
NN
11424 echo "$as_me: failed program was:" >&5
11425sed 's/^/| /' conftest.$ac_ext >&5
11426
2ba49b59
KC
11427ac_lo=`expr $ac_mid + 1`
11428 if test $ac_lo -le $ac_mid; then
11429 ac_lo= ac_hi=
11430 break
11431 fi
11432 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 11433fi
5464f5a1 11434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 11435 done
252b5132 11436else
2ba49b59
KC
11437 echo "$as_me: failed program was:" >&5
11438sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 11439
5464f5a1
NN
11440cat >conftest.$ac_ext <<_ACEOF
11441/* confdefs.h. */
11442_ACEOF
11443cat confdefs.h >>conftest.$ac_ext
11444cat >>conftest.$ac_ext <<_ACEOF
11445/* end confdefs.h. */
11446$ac_includes_default
2ba49b59
KC
11447int
11448main ()
11449{
11450static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11451test_array [0] = 0
11452
11453 ;
11454 return 0;
11455}
5464f5a1
NN
11456_ACEOF
11457rm -f conftest.$ac_objext
11458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11459 (eval $ac_compile) 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
49c96104
SE
11466 { ac_try='test -z "$ac_c_werror_flag"
11467 || test ! -s conftest.err'
5464f5a1
NN
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; } &&
11473 { ac_try='test -s conftest.$ac_objext'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
2ba49b59
KC
11479 ac_hi=-1 ac_mid=-1
11480 while :; do
11481 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11482/* confdefs.h. */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h. */
2ba49b59
KC
11487$ac_includes_default
11488int
11489main ()
11490{
11491static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11492test_array [0] = 0
11493
11494 ;
11495 return 0;
11496}
5464f5a1 11497_ACEOF
2ba49b59
KC
11498rm -f conftest.$ac_objext
11499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11500 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 11506 (exit $ac_status); } &&
49c96104
SE
11507 { ac_try='test -z "$ac_c_werror_flag"
11508 || test ! -s conftest.err'
2ba49b59
KC
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; } &&
11514 { ac_try='test -s conftest.$ac_objext'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 ac_lo=$ac_mid; break
252b5132 11521else
2ba49b59
KC
11522 echo "$as_me: failed program was:" >&5
11523sed 's/^/| /' conftest.$ac_ext >&5
11524
11525ac_hi=`expr '(' $ac_mid ')' - 1`
11526 if test $ac_mid -le $ac_hi; then
11527 ac_lo= ac_hi=
11528 break
11529 fi
11530 ac_mid=`expr 2 '*' $ac_mid`
252b5132 11531fi
2ba49b59
KC
11532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11533 done
5464f5a1
NN
11534else
11535 echo "$as_me: failed program was:" >&5
11536sed 's/^/| /' conftest.$ac_ext >&5
11537
2ba49b59 11538ac_lo= ac_hi=
252b5132 11539fi
2ba49b59
KC
11540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541fi
11542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11543# Binary search between lo and hi bounds.
11544while test "x$ac_lo" != "x$ac_hi"; do
11545 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11546 cat >conftest.$ac_ext <<_ACEOF
11547/* confdefs.h. */
11548_ACEOF
11549cat confdefs.h >>conftest.$ac_ext
11550cat >>conftest.$ac_ext <<_ACEOF
11551/* end confdefs.h. */
11552$ac_includes_default
11553int
11554main ()
11555{
11556static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11557test_array [0] = 0
5464f5a1 11558
2ba49b59
KC
11559 ;
11560 return 0;
11561}
5464f5a1
NN
11562_ACEOF
11563rm -f conftest.$ac_objext
11564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11565 (eval $ac_compile) 2>conftest.er1
11566 ac_status=$?
11567 grep -v '^ *+' conftest.er1 >conftest.err
11568 rm -f conftest.er1
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } &&
49c96104
SE
11572 { ac_try='test -z "$ac_c_werror_flag"
11573 || test ! -s conftest.err'
5464f5a1
NN
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; } &&
11579 { ac_try='test -s conftest.$ac_objext'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11582 ac_status=$?
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }; then
2ba49b59 11585 ac_hi=$ac_mid
5464f5a1
NN
11586else
11587 echo "$as_me: failed program was:" >&5
11588sed 's/^/| /' conftest.$ac_ext >&5
11589
2ba49b59 11590ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
11591fi
11592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
11593done
11594case $ac_lo in
11595?*) ac_cv_sizeof_long_long=$ac_lo;;
11596'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11597See \`config.log' for more details." >&5
11598echo "$as_me: error: cannot compute sizeof (long long), 77
11599See \`config.log' for more details." >&2;}
11600 { (exit 1); exit 1; }; } ;;
11601esac
11602else
11603 if test "$cross_compiling" = yes; then
49c96104
SE
11604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11605See \`config.log' for more details." >&5
11606echo "$as_me: error: cannot run test program while cross compiling
11607See \`config.log' for more details." >&2;}
2ba49b59
KC
11608 { (exit 1); exit 1; }; }
11609else
11610 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11611/* confdefs.h. */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */
2ba49b59
KC
11616$ac_includes_default
11617long longval () { return (long) (sizeof (long long)); }
11618unsigned long ulongval () { return (long) (sizeof (long long)); }
11619#include <stdio.h>
11620#include <stdlib.h>
11621int
11622main ()
11623{
11624
11625 FILE *f = fopen ("conftest.val", "w");
11626 if (! f)
11627 exit (1);
11628 if (((long) (sizeof (long long))) < 0)
11629 {
11630 long i = longval ();
11631 if (i != ((long) (sizeof (long long))))
11632 exit (1);
11633 fprintf (f, "%ld\n", i);
11634 }
11635 else
11636 {
11637 unsigned long i = ulongval ();
11638 if (i != ((long) (sizeof (long long))))
11639 exit (1);
11640 fprintf (f, "%lu\n", i);
11641 }
11642 exit (ferror (f) || fclose (f) != 0);
11643
11644 ;
11645 return 0;
11646}
5464f5a1 11647_ACEOF
2ba49b59
KC
11648rm -f conftest$ac_exeext
11649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650 (eval $ac_link) 2>&5
5464f5a1 11651 ac_status=$?
5464f5a1 11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
11653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 11660else
2ba49b59
KC
11661 echo "$as_me: program exited with status $ac_status" >&5
11662echo "$as_me: failed program was:" >&5
5464f5a1
NN
11663sed 's/^/| /' conftest.$ac_ext >&5
11664
2ba49b59
KC
11665( exit $ac_status )
11666{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11667See \`config.log' for more details." >&5
11668echo "$as_me: error: cannot compute sizeof (long long), 77
11669See \`config.log' for more details." >&2;}
11670 { (exit 1); exit 1; }; }
252b5132 11671fi
2ba49b59
KC
11672rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11673fi
11674fi
11675rm -f conftest.val
6be7c12c 11676else
2ba49b59 11677 ac_cv_sizeof_long_long=0
5464f5a1 11678fi
5464f5a1 11679fi
2ba49b59
KC
11680echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11681echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11682cat >>confdefs.h <<_ACEOF
11683#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
11684_ACEOF
11685
5464f5a1 11686
d2df793a
NC
11687echo "$as_me:$LINENO: checking for void *" >&5
11688echo $ECHO_N "checking for void *... $ECHO_C" >&6
11689if test "${ac_cv_type_void_p+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692 cat >conftest.$ac_ext <<_ACEOF
11693/* confdefs.h. */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h. */
11698$ac_includes_default
11699int
11700main ()
11701{
11702if ((void * *) 0)
11703 return 0;
11704if (sizeof (void *))
11705 return 0;
11706 ;
11707 return 0;
11708}
11709_ACEOF
11710rm -f conftest.$ac_objext
11711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_c_werror_flag"
11720 || test ! -s conftest.err'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; } &&
11726 { ac_try='test -s conftest.$ac_objext'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732 ac_cv_type_void_p=yes
11733else
11734 echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
11736
11737ac_cv_type_void_p=no
11738fi
11739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11740fi
11741echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11742echo "${ECHO_T}$ac_cv_type_void_p" >&6
11743
11744echo "$as_me:$LINENO: checking size of void *" >&5
11745echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11746if test "${ac_cv_sizeof_void_p+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11748else
11749 if test "$ac_cv_type_void_p" = yes; then
11750 # The cast to unsigned long works around a bug in the HP C Compiler
11751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11753 # This bug is HP SR number 8606223364.
11754 if test "$cross_compiling" = yes; then
11755 # Depending upon the size, compute the lo and hi bounds.
11756cat >conftest.$ac_ext <<_ACEOF
11757/* confdefs.h. */
11758_ACEOF
11759cat confdefs.h >>conftest.$ac_ext
11760cat >>conftest.$ac_ext <<_ACEOF
11761/* end confdefs.h. */
11762$ac_includes_default
11763int
11764main ()
11765{
11766static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11767test_array [0] = 0
11768
11769 ;
11770 return 0;
11771}
11772_ACEOF
11773rm -f conftest.$ac_objext
11774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775 (eval $ac_compile) 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag"
11783 || test ! -s conftest.err'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest.$ac_objext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_lo=0 ac_mid=0
11796 while :; do
11797 cat >conftest.$ac_ext <<_ACEOF
11798/* confdefs.h. */
11799_ACEOF
11800cat confdefs.h >>conftest.$ac_ext
11801cat >>conftest.$ac_ext <<_ACEOF
11802/* end confdefs.h. */
11803$ac_includes_default
11804int
11805main ()
11806{
11807static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11808test_array [0] = 0
11809
11810 ;
11811 return 0;
11812}
11813_ACEOF
11814rm -f conftest.$ac_objext
11815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816 (eval $ac_compile) 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_c_werror_flag"
11824 || test ! -s conftest.err'
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest.$ac_objext'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11836 ac_hi=$ac_mid; break
11837else
11838 echo "$as_me: failed program was:" >&5
11839sed 's/^/| /' conftest.$ac_ext >&5
11840
11841ac_lo=`expr $ac_mid + 1`
11842 if test $ac_lo -le $ac_mid; then
11843 ac_lo= ac_hi=
11844 break
11845 fi
11846 ac_mid=`expr 2 '*' $ac_mid + 1`
11847fi
11848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11849 done
11850else
11851 echo "$as_me: failed program was:" >&5
11852sed 's/^/| /' conftest.$ac_ext >&5
11853
11854cat >conftest.$ac_ext <<_ACEOF
11855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860$ac_includes_default
11861int
11862main ()
11863{
11864static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11865test_array [0] = 0
11866
11867 ;
11868 return 0;
11869}
11870_ACEOF
11871rm -f conftest.$ac_objext
11872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11873 (eval $ac_compile) 2>conftest.er1
11874 ac_status=$?
11875 grep -v '^ *+' conftest.er1 >conftest.err
11876 rm -f conftest.er1
11877 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } &&
11880 { ac_try='test -z "$ac_c_werror_flag"
11881 || test ! -s conftest.err'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; } &&
11887 { ac_try='test -s conftest.$ac_objext'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; }; then
11893 ac_hi=-1 ac_mid=-1
11894 while :; do
11895 cat >conftest.$ac_ext <<_ACEOF
11896/* confdefs.h. */
11897_ACEOF
11898cat confdefs.h >>conftest.$ac_ext
11899cat >>conftest.$ac_ext <<_ACEOF
11900/* end confdefs.h. */
11901$ac_includes_default
11902int
11903main ()
11904{
11905static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11906test_array [0] = 0
11907
11908 ;
11909 return 0;
11910}
11911_ACEOF
11912rm -f conftest.$ac_objext
11913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914 (eval $ac_compile) 2>conftest.er1
11915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
11921 { ac_try='test -z "$ac_c_werror_flag"
11922 || test ! -s conftest.err'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest.$ac_objext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 ac_lo=$ac_mid; break
11935else
11936 echo "$as_me: failed program was:" >&5
11937sed 's/^/| /' conftest.$ac_ext >&5
11938
11939ac_hi=`expr '(' $ac_mid ')' - 1`
11940 if test $ac_mid -le $ac_hi; then
11941 ac_lo= ac_hi=
11942 break
11943 fi
11944 ac_mid=`expr 2 '*' $ac_mid`
11945fi
11946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11947 done
11948else
11949 echo "$as_me: failed program was:" >&5
11950sed 's/^/| /' conftest.$ac_ext >&5
11951
11952ac_lo= ac_hi=
11953fi
11954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11955fi
11956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11957# Binary search between lo and hi bounds.
11958while test "x$ac_lo" != "x$ac_hi"; do
11959 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11960 cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h. */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h. */
11966$ac_includes_default
11967int
11968main ()
11969{
11970static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11971test_array [0] = 0
11972
11973 ;
11974 return 0;
11975}
11976_ACEOF
11977rm -f conftest.$ac_objext
11978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11979 (eval $ac_compile) 2>conftest.er1
11980 ac_status=$?
11981 grep -v '^ *+' conftest.er1 >conftest.err
11982 rm -f conftest.er1
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } &&
11986 { ac_try='test -z "$ac_c_werror_flag"
11987 || test ! -s conftest.err'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; } &&
11993 { ac_try='test -s conftest.$ac_objext'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 ac_hi=$ac_mid
12000else
12001 echo "$as_me: failed program was:" >&5
12002sed 's/^/| /' conftest.$ac_ext >&5
12003
12004ac_lo=`expr '(' $ac_mid ')' + 1`
12005fi
12006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12007done
12008case $ac_lo in
12009?*) ac_cv_sizeof_void_p=$ac_lo;;
12010'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12011See \`config.log' for more details." >&5
12012echo "$as_me: error: cannot compute sizeof (void *), 77
12013See \`config.log' for more details." >&2;}
12014 { (exit 1); exit 1; }; } ;;
12015esac
12016else
12017 if test "$cross_compiling" = yes; then
12018 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12019See \`config.log' for more details." >&5
12020echo "$as_me: error: cannot run test program while cross compiling
12021See \`config.log' for more details." >&2;}
12022 { (exit 1); exit 1; }; }
12023else
12024 cat >conftest.$ac_ext <<_ACEOF
12025/* confdefs.h. */
12026_ACEOF
12027cat confdefs.h >>conftest.$ac_ext
12028cat >>conftest.$ac_ext <<_ACEOF
12029/* end confdefs.h. */
12030$ac_includes_default
12031long longval () { return (long) (sizeof (void *)); }
12032unsigned long ulongval () { return (long) (sizeof (void *)); }
12033#include <stdio.h>
12034#include <stdlib.h>
12035int
12036main ()
12037{
12038
12039 FILE *f = fopen ("conftest.val", "w");
12040 if (! f)
12041 exit (1);
12042 if (((long) (sizeof (void *))) < 0)
12043 {
12044 long i = longval ();
12045 if (i != ((long) (sizeof (void *))))
12046 exit (1);
12047 fprintf (f, "%ld\n", i);
12048 }
12049 else
12050 {
12051 unsigned long i = ulongval ();
12052 if (i != ((long) (sizeof (void *))))
12053 exit (1);
12054 fprintf (f, "%lu\n", i);
12055 }
12056 exit (ferror (f) || fclose (f) != 0);
12057
12058 ;
12059 return 0;
12060}
12061_ACEOF
12062rm -f conftest$ac_exeext
12063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12064 (eval $ac_link) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 ac_cv_sizeof_void_p=`cat conftest.val`
12074else
12075 echo "$as_me: program exited with status $ac_status" >&5
12076echo "$as_me: failed program was:" >&5
12077sed 's/^/| /' conftest.$ac_ext >&5
12078
12079( exit $ac_status )
12080{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12081See \`config.log' for more details." >&5
12082echo "$as_me: error: cannot compute sizeof (void *), 77
12083See \`config.log' for more details." >&2;}
12084 { (exit 1); exit 1; }; }
12085fi
12086rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12087fi
12088fi
12089rm -f conftest.val
12090else
12091 ac_cv_sizeof_void_p=0
12092fi
12093fi
12094echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12095echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12096cat >>confdefs.h <<_ACEOF
12097#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12098_ACEOF
12099
12100
2ba49b59
KC
12101echo "$as_me:$LINENO: checking for long" >&5
12102echo $ECHO_N "checking for long... $ECHO_C" >&6
12103if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105else
12106 cat >conftest.$ac_ext <<_ACEOF
12107/* confdefs.h. */
12108_ACEOF
12109cat confdefs.h >>conftest.$ac_ext
12110cat >>conftest.$ac_ext <<_ACEOF
12111/* end confdefs.h. */
2ba49b59 12112$ac_includes_default
5464f5a1
NN
12113int
12114main ()
12115{
2ba49b59
KC
12116if ((long *) 0)
12117 return 0;
12118if (sizeof (long))
12119 return 0;
5464f5a1
NN
12120 ;
12121 return 0;
12122}
12123_ACEOF
12124rm -f conftest.$ac_objext
12125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12126 (eval $ac_compile) 2>conftest.er1
12127 ac_status=$?
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } &&
49c96104
SE
12133 { ac_try='test -z "$ac_c_werror_flag"
12134 || test ! -s conftest.err'
5464f5a1
NN
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; } &&
12140 { ac_try='test -s conftest.$ac_objext'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
2ba49b59 12146 ac_cv_type_long=yes
252b5132 12147else
5464f5a1
NN
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
2ba49b59 12151ac_cv_type_long=no
252b5132 12152fi
5464f5a1 12153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12154fi
2ba49b59
KC
12155echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12156echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 12157
2ba49b59
KC
12158echo "$as_me:$LINENO: checking size of long" >&5
12159echo $ECHO_N "checking size of long... $ECHO_C" >&6
12160if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162else
2ba49b59
KC
12163 if test "$ac_cv_type_long" = yes; then
12164 # The cast to unsigned long works around a bug in the HP C Compiler
12165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12167 # This bug is HP SR number 8606223364.
12168 if test "$cross_compiling" = yes; then
12169 # Depending upon the size, compute the lo and hi bounds.
12170cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12171/* confdefs.h. */
12172_ACEOF
12173cat confdefs.h >>conftest.$ac_ext
12174cat >>conftest.$ac_ext <<_ACEOF
12175/* end confdefs.h. */
2ba49b59 12176$ac_includes_default
5464f5a1
NN
12177int
12178main ()
12179{
2ba49b59
KC
12180static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12181test_array [0] = 0
12182
5464f5a1
NN
12183 ;
12184 return 0;
12185}
12186_ACEOF
12187rm -f conftest.$ac_objext
12188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12189 (eval $ac_compile) 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
49c96104
SE
12196 { ac_try='test -z "$ac_c_werror_flag"
12197 || test ! -s conftest.err'
5464f5a1
NN
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; } &&
12203 { ac_try='test -s conftest.$ac_objext'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
2ba49b59
KC
12209 ac_lo=0 ac_mid=0
12210 while :; do
12211 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12212/* confdefs.h. */
12213_ACEOF
12214cat confdefs.h >>conftest.$ac_ext
12215cat >>conftest.$ac_ext <<_ACEOF
12216/* end confdefs.h. */
2ba49b59 12217$ac_includes_default
5464f5a1
NN
12218int
12219main ()
12220{
2ba49b59
KC
12221static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12222test_array [0] = 0
12223
5464f5a1
NN
12224 ;
12225 return 0;
12226}
12227_ACEOF
2ba49b59
KC
12228rm -f conftest.$ac_objext
12229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12230 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12231 ac_status=$?
12232 grep -v '^ *+' conftest.er1 >conftest.err
12233 rm -f conftest.er1
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
49c96104
SE
12237 { ac_try='test -z "$ac_c_werror_flag"
12238 || test ! -s conftest.err'
5464f5a1
NN
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; } &&
2ba49b59 12244 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
2ba49b59 12250 ac_hi=$ac_mid; break
5464f5a1
NN
12251else
12252 echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
2ba49b59
KC
12255ac_lo=`expr $ac_mid + 1`
12256 if test $ac_lo -le $ac_mid; then
12257 ac_lo= ac_hi=
12258 break
12259 fi
12260 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 12261fi
2ba49b59
KC
12262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12263 done
12264else
12265 echo "$as_me: failed program was:" >&5
12266sed 's/^/| /' conftest.$ac_ext >&5
12267
12268cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12269/* confdefs.h. */
12270_ACEOF
12271cat confdefs.h >>conftest.$ac_ext
12272cat >>conftest.$ac_ext <<_ACEOF
12273/* end confdefs.h. */
2ba49b59 12274$ac_includes_default
5464f5a1
NN
12275int
12276main ()
12277{
2ba49b59
KC
12278static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12279test_array [0] = 0
12280
5464f5a1
NN
12281 ;
12282 return 0;
12283}
12284_ACEOF
2ba49b59
KC
12285rm -f conftest.$ac_objext
12286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12287 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12288 ac_status=$?
12289 grep -v '^ *+' conftest.er1 >conftest.err
12290 rm -f conftest.er1
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
49c96104
SE
12294 { ac_try='test -z "$ac_c_werror_flag"
12295 || test ! -s conftest.err'
5464f5a1
NN
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; } &&
2ba49b59 12301 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
2ba49b59
KC
12307 ac_hi=-1 ac_mid=-1
12308 while :; do
12309 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12310/* confdefs.h. */
12311_ACEOF
12312cat confdefs.h >>conftest.$ac_ext
12313cat >>conftest.$ac_ext <<_ACEOF
12314/* end confdefs.h. */
2ba49b59 12315$ac_includes_default
5464f5a1
NN
12316int
12317main ()
12318{
2ba49b59
KC
12319static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12320test_array [0] = 0
12321
5464f5a1
NN
12322 ;
12323 return 0;
12324}
12325_ACEOF
2ba49b59
KC
12326rm -f conftest.$ac_objext
12327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12328 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12329 ac_status=$?
12330 grep -v '^ *+' conftest.er1 >conftest.err
12331 rm -f conftest.er1
12332 cat conftest.err >&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } &&
49c96104
SE
12335 { ac_try='test -z "$ac_c_werror_flag"
12336 || test ! -s conftest.err'
5464f5a1
NN
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
2ba49b59 12342 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
2ba49b59 12348 ac_lo=$ac_mid; break
5464f5a1
NN
12349else
12350 echo "$as_me: failed program was:" >&5
12351sed 's/^/| /' conftest.$ac_ext >&5
12352
2ba49b59
KC
12353ac_hi=`expr '(' $ac_mid ')' - 1`
12354 if test $ac_mid -le $ac_hi; then
12355 ac_lo= ac_hi=
12356 break
12357 fi
12358 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 12359fi
2ba49b59
KC
12360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12361 done
12362else
12363 echo "$as_me: failed program was:" >&5
12364sed 's/^/| /' conftest.$ac_ext >&5
12365
12366ac_lo= ac_hi=
12367fi
12368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12369fi
12370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12371# Binary search between lo and hi bounds.
12372while test "x$ac_lo" != "x$ac_hi"; do
12373 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12374 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12375/* confdefs.h. */
12376_ACEOF
12377cat confdefs.h >>conftest.$ac_ext
12378cat >>conftest.$ac_ext <<_ACEOF
12379/* end confdefs.h. */
2ba49b59 12380$ac_includes_default
5464f5a1
NN
12381int
12382main ()
12383{
2ba49b59
KC
12384static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12385test_array [0] = 0
12386
5464f5a1
NN
12387 ;
12388 return 0;
12389}
12390_ACEOF
2ba49b59
KC
12391rm -f conftest.$ac_objext
12392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12393 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } &&
49c96104
SE
12400 { ac_try='test -z "$ac_c_werror_flag"
12401 || test ! -s conftest.err'
5464f5a1
NN
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; } &&
2ba49b59 12407 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
2ba49b59 12413 ac_hi=$ac_mid
5464f5a1
NN
12414else
12415 echo "$as_me: failed program was:" >&5
12416sed 's/^/| /' conftest.$ac_ext >&5
12417
2ba49b59 12418ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 12419fi
2ba49b59
KC
12420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12421done
12422case $ac_lo in
12423?*) ac_cv_sizeof_long=$ac_lo;;
12424'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12425See \`config.log' for more details." >&5
12426echo "$as_me: error: cannot compute sizeof (long), 77
12427See \`config.log' for more details." >&2;}
12428 { (exit 1); exit 1; }; } ;;
12429esac
12430else
12431 if test "$cross_compiling" = yes; then
49c96104
SE
12432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12433See \`config.log' for more details." >&5
12434echo "$as_me: error: cannot run test program while cross compiling
12435See \`config.log' for more details." >&2;}
2ba49b59 12436 { (exit 1); exit 1; }; }
2e0fbf77
JW
12437else
12438 cat >conftest.$ac_ext <<_ACEOF
12439/* confdefs.h. */
12440_ACEOF
12441cat confdefs.h >>conftest.$ac_ext
12442cat >>conftest.$ac_ext <<_ACEOF
12443/* end confdefs.h. */
2ba49b59
KC
12444$ac_includes_default
12445long longval () { return (long) (sizeof (long)); }
12446unsigned long ulongval () { return (long) (sizeof (long)); }
12447#include <stdio.h>
12448#include <stdlib.h>
2e0fbf77
JW
12449int
12450main ()
12451{
12452
2ba49b59
KC
12453 FILE *f = fopen ("conftest.val", "w");
12454 if (! f)
12455 exit (1);
12456 if (((long) (sizeof (long))) < 0)
12457 {
12458 long i = longval ();
12459 if (i != ((long) (sizeof (long))))
12460 exit (1);
12461 fprintf (f, "%ld\n", i);
12462 }
12463 else
12464 {
12465 unsigned long i = ulongval ();
12466 if (i != ((long) (sizeof (long))))
12467 exit (1);
12468 fprintf (f, "%lu\n", i);
12469 }
12470 exit (ferror (f) || fclose (f) != 0);
12471
2e0fbf77
JW
12472 ;
12473 return 0;
12474}
12475_ACEOF
2ba49b59
KC
12476rm -f conftest$ac_exeext
12477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12478 (eval $ac_link) 2>&5
2e0fbf77
JW
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
2ba49b59 12487 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 12488else
2ba49b59
KC
12489 echo "$as_me: program exited with status $ac_status" >&5
12490echo "$as_me: failed program was:" >&5
2e0fbf77
JW
12491sed 's/^/| /' conftest.$ac_ext >&5
12492
2ba49b59
KC
12493( exit $ac_status )
12494{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12495See \`config.log' for more details." >&5
12496echo "$as_me: error: cannot compute sizeof (long), 77
12497See \`config.log' for more details." >&2;}
12498 { (exit 1); exit 1; }; }
2e0fbf77 12499fi
2ba49b59 12500rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 12501fi
2ba49b59
KC
12502fi
12503rm -f conftest.val
12504else
12505 ac_cv_sizeof_long=0
12506fi
12507fi
12508echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12509echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12510cat >>confdefs.h <<_ACEOF
12511#define SIZEOF_LONG $ac_cv_sizeof_long
12512_ACEOF
12513
12514
d2df793a
NC
12515
12516if test "x${ac_cv_sizeof_void_p}" = "x8"; then
2ba49b59 12517 host64=true
bce5e5c9
AM
12518fi
12519
12520if test "x${ac_cv_sizeof_long}" = "x8"; then
2ba49b59
KC
12521 BFD_HOST_64BIT_LONG=1
12522 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12523 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12524elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
bce5e5c9 12525 BFD_HOST_64BIT_LONG_LONG=1
2ba49b59
KC
12526 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12527 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
bce5e5c9
AM
12528 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12529 BFD_HOSTPTR_T="unsigned long long"
12530 fi
2ba49b59
KC
12531fi
12532
12533if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12534 BFD_HOST_64_BIT_DEFINED=1
12535 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12536 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12537fi
12538
12539
12540
12541
12542
12543
12544
d2df793a 12545
2ba49b59
KC
12546# Put a plausible default for CC_FOR_BUILD in Makefile.
12547if test -z "$CC_FOR_BUILD"; then
12548 if test "x$cross_compiling" = "xno"; then
12549 CC_FOR_BUILD='$(CC)'
12550 else
12551 CC_FOR_BUILD=gcc
12552 fi
12553fi
12554
12555# Also set EXEEXT_FOR_BUILD.
12556if test "x$cross_compiling" = "xno"; then
12557 EXEEXT_FOR_BUILD='$(EXEEXT)'
12558else
12559 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12560echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12561if test "${bfd_cv_build_exeext+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12563else
12564 rm -f conftest*
12565 echo 'int main () { return 0; }' > conftest.c
12566 bfd_cv_build_exeext=
12567 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12568 for file in conftest.*; do
12569 case $file in
12570 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12571 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12572 esac
12573 done
12574 rm -f conftest*
12575 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12576fi
12577echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12578echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12579 EXEEXT_FOR_BUILD=""
12580 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12581fi
12582
12583
12584
12585
12586
12587
12588
12589
8bc9c892
NC
12590
12591for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
2ba49b59
KC
12592do
12593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12594if eval "test \"\${$as_ac_Header+set}\" = set"; then
12595 echo "$as_me:$LINENO: checking for $ac_header" >&5
12596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12597if eval "test \"\${$as_ac_Header+set}\" = set"; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12599fi
12600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12602else
12603 # Is the header compilable?
12604echo "$as_me:$LINENO: checking $ac_header usability" >&5
12605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12606cat >conftest.$ac_ext <<_ACEOF
12607/* confdefs.h. */
12608_ACEOF
12609cat confdefs.h >>conftest.$ac_ext
12610cat >>conftest.$ac_ext <<_ACEOF
12611/* end confdefs.h. */
12612$ac_includes_default
12613#include <$ac_header>
12614_ACEOF
12615rm -f conftest.$ac_objext
12616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12617 (eval $ac_compile) 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
49c96104
SE
12624 { ac_try='test -z "$ac_c_werror_flag"
12625 || test ! -s conftest.err'
2ba49b59
KC
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try='test -s conftest.$ac_objext'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 ac_header_compiler=yes
12638else
12639 echo "$as_me: failed program was:" >&5
12640sed 's/^/| /' conftest.$ac_ext >&5
12641
12642ac_header_compiler=no
12643fi
12644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12646echo "${ECHO_T}$ac_header_compiler" >&6
12647
12648# Is the header present?
12649echo "$as_me:$LINENO: checking $ac_header presence" >&5
12650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12651cat >conftest.$ac_ext <<_ACEOF
12652/* confdefs.h. */
12653_ACEOF
12654cat confdefs.h >>conftest.$ac_ext
12655cat >>conftest.$ac_ext <<_ACEOF
12656/* end confdefs.h. */
12657#include <$ac_header>
12658_ACEOF
12659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12661 ac_status=$?
12662 grep -v '^ *+' conftest.er1 >conftest.err
12663 rm -f conftest.er1
12664 cat conftest.err >&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } >/dev/null; then
12667 if test -s conftest.err; then
12668 ac_cpp_err=$ac_c_preproc_warn_flag
12669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12670 else
12671 ac_cpp_err=
12672 fi
12673else
12674 ac_cpp_err=yes
12675fi
12676if test -z "$ac_cpp_err"; then
12677 ac_header_preproc=yes
12678else
12679 echo "$as_me: failed program was:" >&5
12680sed 's/^/| /' conftest.$ac_ext >&5
12681
12682 ac_header_preproc=no
12683fi
12684rm -f conftest.err conftest.$ac_ext
12685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12686echo "${ECHO_T}$ac_header_preproc" >&6
12687
12688# So? What about this header?
12689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12690 yes:no: )
12691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12695 ac_header_preproc=yes
12696 ;;
12697 no:yes:* )
12698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12701echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12705echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12710 (
12711 cat <<\_ASBOX
12712## ------------------------------------------ ##
12713## Report this to the AC_PACKAGE_NAME lists. ##
12714## ------------------------------------------ ##
12715_ASBOX
12716 ) |
12717 sed "s/^/$as_me: WARNING: /" >&2
12718 ;;
12719esac
12720echo "$as_me:$LINENO: checking for $ac_header" >&5
12721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12722if eval "test \"\${$as_ac_Header+set}\" = set"; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12724else
12725 eval "$as_ac_Header=\$ac_header_preproc"
12726fi
12727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12729
12730fi
12731if test `eval echo '${'$as_ac_Header'}'` = yes; then
12732 cat >>confdefs.h <<_ACEOF
12733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12734_ACEOF
12735
12736fi
12737
12738done
12739
12740
12741
12742
12743for ac_header in fcntl.h sys/file.h sys/time.h
12744do
12745as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12746if eval "test \"\${$as_ac_Header+set}\" = set"; then
12747 echo "$as_me:$LINENO: checking for $ac_header" >&5
12748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12749if eval "test \"\${$as_ac_Header+set}\" = set"; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12751fi
12752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12754else
12755 # Is the header compilable?
12756echo "$as_me:$LINENO: checking $ac_header usability" >&5
12757echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12758cat >conftest.$ac_ext <<_ACEOF
12759/* confdefs.h. */
12760_ACEOF
12761cat confdefs.h >>conftest.$ac_ext
12762cat >>conftest.$ac_ext <<_ACEOF
12763/* end confdefs.h. */
12764$ac_includes_default
12765#include <$ac_header>
12766_ACEOF
12767rm -f conftest.$ac_objext
12768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769 (eval $ac_compile) 2>conftest.er1
12770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } &&
49c96104
SE
12776 { ac_try='test -z "$ac_c_werror_flag"
12777 || test ! -s conftest.err'
2ba49b59
KC
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; } &&
12783 { ac_try='test -s conftest.$ac_objext'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12786 ac_status=$?
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; }; then
12789 ac_header_compiler=yes
12790else
12791 echo "$as_me: failed program was:" >&5
12792sed 's/^/| /' conftest.$ac_ext >&5
12793
12794ac_header_compiler=no
12795fi
12796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12797echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12798echo "${ECHO_T}$ac_header_compiler" >&6
12799
12800# Is the header present?
12801echo "$as_me:$LINENO: checking $ac_header presence" >&5
12802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12803cat >conftest.$ac_ext <<_ACEOF
12804/* confdefs.h. */
12805_ACEOF
12806cat confdefs.h >>conftest.$ac_ext
12807cat >>conftest.$ac_ext <<_ACEOF
12808/* end confdefs.h. */
12809#include <$ac_header>
12810_ACEOF
12811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12813 ac_status=$?
12814 grep -v '^ *+' conftest.er1 >conftest.err
12815 rm -f conftest.er1
12816 cat conftest.err >&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } >/dev/null; then
12819 if test -s conftest.err; then
12820 ac_cpp_err=$ac_c_preproc_warn_flag
12821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12822 else
12823 ac_cpp_err=
12824 fi
12825else
12826 ac_cpp_err=yes
12827fi
12828if test -z "$ac_cpp_err"; then
12829 ac_header_preproc=yes
12830else
12831 echo "$as_me: failed program was:" >&5
12832sed 's/^/| /' conftest.$ac_ext >&5
12833
12834 ac_header_preproc=no
12835fi
12836rm -f conftest.err conftest.$ac_ext
12837echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12838echo "${ECHO_T}$ac_header_preproc" >&6
12839
12840# So? What about this header?
12841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12842 yes:no: )
12843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12846echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12847 ac_header_preproc=yes
12848 ;;
12849 no:yes:* )
12850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12853echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12855echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12857echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12861echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12862 (
12863 cat <<\_ASBOX
12864## ------------------------------------------ ##
12865## Report this to the AC_PACKAGE_NAME lists. ##
12866## ------------------------------------------ ##
12867_ASBOX
12868 ) |
12869 sed "s/^/$as_me: WARNING: /" >&2
12870 ;;
12871esac
12872echo "$as_me:$LINENO: checking for $ac_header" >&5
12873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12874if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876else
12877 eval "$as_ac_Header=\$ac_header_preproc"
12878fi
12879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12881
12882fi
12883if test `eval echo '${'$as_ac_Header'}'` = yes; then
12884 cat >>confdefs.h <<_ACEOF
12885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12886_ACEOF
12887
12888fi
12889
12890done
12891
d5efd9fc
AM
12892
12893
12894inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12895
12896acx_cv_header_stdint=stddef.h
12897acx_cv_header_stdint_kind="(already complete)"
12898for i in stdint.h $inttype_headers; do
12899 unset ac_cv_type_uintptr_t
12900 unset ac_cv_type_uintmax_t
12901 unset ac_cv_type_int_least32_t
12902 unset ac_cv_type_int_fast32_t
12903 unset ac_cv_type_uint64_t
12904 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12905 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12906echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12907if test "${ac_cv_type_uintmax_t+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12909else
12910 cat >conftest.$ac_ext <<_ACEOF
12911/* confdefs.h. */
12912_ACEOF
12913cat confdefs.h >>conftest.$ac_ext
12914cat >>conftest.$ac_ext <<_ACEOF
12915/* end confdefs.h. */
12916#include <sys/types.h>
12917#include <$i>
12918
12919int
12920main ()
12921{
12922if ((uintmax_t *) 0)
12923 return 0;
12924if (sizeof (uintmax_t))
12925 return 0;
12926 ;
12927 return 0;
12928}
12929_ACEOF
12930rm -f conftest.$ac_objext
12931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12932 (eval $ac_compile) 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -z "$ac_c_werror_flag"
12940 || test ! -s conftest.err'
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12943 ac_status=$?
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; } &&
12946 { ac_try='test -s conftest.$ac_objext'
12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; }; then
12952 ac_cv_type_uintmax_t=yes
12953else
12954 echo "$as_me: failed program was:" >&5
12955sed 's/^/| /' conftest.$ac_ext >&5
12956
12957ac_cv_type_uintmax_t=no
12958fi
12959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12960fi
12961echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12962echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12963if test $ac_cv_type_uintmax_t = yes; then
12964 acx_cv_header_stdint=$i
12965else
12966 continue
12967fi
12968
12969 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12970echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12971if test "${ac_cv_type_uintptr_t+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12973else
12974 cat >conftest.$ac_ext <<_ACEOF
12975/* confdefs.h. */
12976_ACEOF
12977cat confdefs.h >>conftest.$ac_ext
12978cat >>conftest.$ac_ext <<_ACEOF
12979/* end confdefs.h. */
12980#include <sys/types.h>
12981#include <$i>
12982
12983int
12984main ()
12985{
12986if ((uintptr_t *) 0)
12987 return 0;
12988if (sizeof (uintptr_t))
12989 return 0;
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994rm -f conftest.$ac_objext
12995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12996 (eval $ac_compile) 2>conftest.er1
12997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } &&
13003 { ac_try='test -z "$ac_c_werror_flag"
13004 || test ! -s conftest.err'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; } &&
13010 { ac_try='test -s conftest.$ac_objext'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
13016 ac_cv_type_uintptr_t=yes
13017else
13018 echo "$as_me: failed program was:" >&5
13019sed 's/^/| /' conftest.$ac_ext >&5
13020
13021ac_cv_type_uintptr_t=no
13022fi
13023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13024fi
13025echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13026echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13027if test $ac_cv_type_uintptr_t = yes; then
13028 :
13029else
13030 acx_cv_header_stdint_kind="(mostly complete)"
13031fi
13032
13033 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13034echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13035if test "${ac_cv_type_int_least32_t+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13037else
13038 cat >conftest.$ac_ext <<_ACEOF
13039/* confdefs.h. */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h. */
13044#include <sys/types.h>
13045#include <$i>
13046
13047int
13048main ()
13049{
13050if ((int_least32_t *) 0)
13051 return 0;
13052if (sizeof (int_least32_t))
13053 return 0;
13054 ;
13055 return 0;
13056}
13057_ACEOF
13058rm -f conftest.$ac_objext
13059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13060 (eval $ac_compile) 2>conftest.er1
13061 ac_status=$?
13062 grep -v '^ *+' conftest.er1 >conftest.err
13063 rm -f conftest.er1
13064 cat conftest.err >&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); } &&
13067 { ac_try='test -z "$ac_c_werror_flag"
13068 || test ! -s conftest.err'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13071 ac_status=$?
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; } &&
13074 { ac_try='test -s conftest.$ac_objext'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 ac_cv_type_int_least32_t=yes
13081else
13082 echo "$as_me: failed program was:" >&5
13083sed 's/^/| /' conftest.$ac_ext >&5
13084
13085ac_cv_type_int_least32_t=no
13086fi
13087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13088fi
13089echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13090echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13091if test $ac_cv_type_int_least32_t = yes; then
13092 :
13093else
13094 acx_cv_header_stdint_kind="(mostly complete)"
13095fi
13096
13097 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13098echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13099if test "${ac_cv_type_int_fast32_t+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101else
13102 cat >conftest.$ac_ext <<_ACEOF
13103/* confdefs.h. */
13104_ACEOF
13105cat confdefs.h >>conftest.$ac_ext
13106cat >>conftest.$ac_ext <<_ACEOF
13107/* end confdefs.h. */
13108#include <sys/types.h>
13109#include <$i>
13110
13111int
13112main ()
13113{
13114if ((int_fast32_t *) 0)
13115 return 0;
13116if (sizeof (int_fast32_t))
13117 return 0;
13118 ;
13119 return 0;
13120}
13121_ACEOF
13122rm -f conftest.$ac_objext
13123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124 (eval $ac_compile) 2>conftest.er1
13125 ac_status=$?
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } &&
13131 { ac_try='test -z "$ac_c_werror_flag"
13132 || test ! -s conftest.err'
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; } &&
13138 { ac_try='test -s conftest.$ac_objext'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
13144 ac_cv_type_int_fast32_t=yes
13145else
13146 echo "$as_me: failed program was:" >&5
13147sed 's/^/| /' conftest.$ac_ext >&5
13148
13149ac_cv_type_int_fast32_t=no
13150fi
13151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13152fi
13153echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13154echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13155if test $ac_cv_type_int_fast32_t = yes; then
13156 :
13157else
13158 acx_cv_header_stdint_kind="(mostly complete)"
13159fi
13160
13161 echo "$as_me:$LINENO: checking for uint64_t" >&5
13162echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13163if test "${ac_cv_type_uint64_t+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165else
13166 cat >conftest.$ac_ext <<_ACEOF
13167/* confdefs.h. */
13168_ACEOF
13169cat confdefs.h >>conftest.$ac_ext
13170cat >>conftest.$ac_ext <<_ACEOF
13171/* end confdefs.h. */
13172#include <sys/types.h>
13173#include <$i>
13174
13175int
13176main ()
13177{
13178if ((uint64_t *) 0)
13179 return 0;
13180if (sizeof (uint64_t))
13181 return 0;
13182 ;
13183 return 0;
13184}
13185_ACEOF
13186rm -f conftest.$ac_objext
13187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13188 (eval $ac_compile) 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try='test -z "$ac_c_werror_flag"
13196 || test ! -s conftest.err'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; } &&
13202 { ac_try='test -s conftest.$ac_objext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_type_uint64_t=yes
13209else
13210 echo "$as_me: failed program was:" >&5
13211sed 's/^/| /' conftest.$ac_ext >&5
13212
13213ac_cv_type_uint64_t=no
13214fi
13215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13216fi
13217echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13218echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13219if test $ac_cv_type_uint64_t = yes; then
13220 :
13221else
13222 acx_cv_header_stdint_kind="(lacks uint64_t)"
13223fi
13224
13225 break
13226done
13227if test "$acx_cv_header_stdint" = stddef.h; then
13228 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13229 for i in stdint.h $inttype_headers; do
13230 unset ac_cv_type_uintptr_t
13231 unset ac_cv_type_uint32_t
13232 unset ac_cv_type_uint64_t
13233 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13234 echo "$as_me:$LINENO: checking for uint32_t" >&5
13235echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13236if test "${ac_cv_type_uint32_t+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13238else
13239 cat >conftest.$ac_ext <<_ACEOF
13240/* confdefs.h. */
13241_ACEOF
13242cat confdefs.h >>conftest.$ac_ext
13243cat >>conftest.$ac_ext <<_ACEOF
13244/* end confdefs.h. */
13245#include <sys/types.h>
13246#include <$i>
13247
13248int
13249main ()
13250{
13251if ((uint32_t *) 0)
13252 return 0;
13253if (sizeof (uint32_t))
13254 return 0;
13255 ;
13256 return 0;
13257}
13258_ACEOF
13259rm -f conftest.$ac_objext
13260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>conftest.er1
13262 ac_status=$?
13263 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
13268 { ac_try='test -z "$ac_c_werror_flag"
13269 || test ! -s conftest.err'
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); }; } &&
13275 { ac_try='test -s conftest.$ac_objext'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 ac_cv_type_uint32_t=yes
13282else
13283 echo "$as_me: failed program was:" >&5
13284sed 's/^/| /' conftest.$ac_ext >&5
13285
13286ac_cv_type_uint32_t=no
13287fi
13288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13289fi
13290echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13291echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13292if test $ac_cv_type_uint32_t = yes; then
13293 acx_cv_header_stdint=$i
13294else
13295 continue
13296fi
13297
13298 echo "$as_me:$LINENO: checking for uint64_t" >&5
13299echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13300if test "${ac_cv_type_uint64_t+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13302else
13303 cat >conftest.$ac_ext <<_ACEOF
13304/* confdefs.h. */
13305_ACEOF
13306cat confdefs.h >>conftest.$ac_ext
13307cat >>conftest.$ac_ext <<_ACEOF
13308/* end confdefs.h. */
13309#include <sys/types.h>
13310#include <$i>
13311
13312int
13313main ()
13314{
13315if ((uint64_t *) 0)
13316 return 0;
13317if (sizeof (uint64_t))
13318 return 0;
13319 ;
13320 return 0;
13321}
13322_ACEOF
13323rm -f conftest.$ac_objext
13324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13325 (eval $ac_compile) 2>conftest.er1
13326 ac_status=$?
13327 grep -v '^ *+' conftest.er1 >conftest.err
13328 rm -f conftest.er1
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -z "$ac_c_werror_flag"
13333 || test ! -s conftest.err'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; } &&
13339 { ac_try='test -s conftest.$ac_objext'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13345 ac_cv_type_uint64_t=yes
13346else
13347 echo "$as_me: failed program was:" >&5
13348sed 's/^/| /' conftest.$ac_ext >&5
13349
13350ac_cv_type_uint64_t=no
13351fi
13352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13353fi
13354echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13355echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13356
13357 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13358echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13359if test "${ac_cv_type_uintptr_t+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13361else
13362 cat >conftest.$ac_ext <<_ACEOF
13363/* confdefs.h. */
13364_ACEOF
13365cat confdefs.h >>conftest.$ac_ext
13366cat >>conftest.$ac_ext <<_ACEOF
13367/* end confdefs.h. */
13368#include <sys/types.h>
13369#include <$i>
13370
13371int
13372main ()
13373{
13374if ((uintptr_t *) 0)
13375 return 0;
13376if (sizeof (uintptr_t))
13377 return 0;
13378 ;
13379 return 0;
13380}
13381_ACEOF
13382rm -f conftest.$ac_objext
13383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13384 (eval $ac_compile) 2>conftest.er1
13385 ac_status=$?
13386 grep -v '^ *+' conftest.er1 >conftest.err
13387 rm -f conftest.er1
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } &&
13391 { ac_try='test -z "$ac_c_werror_flag"
13392 || test ! -s conftest.err'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; } &&
13398 { ac_try='test -s conftest.$ac_objext'
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13401 ac_status=$?
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; }; then
13404 ac_cv_type_uintptr_t=yes
13405else
13406 echo "$as_me: failed program was:" >&5
13407sed 's/^/| /' conftest.$ac_ext >&5
13408
13409ac_cv_type_uintptr_t=no
13410fi
13411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13412fi
13413echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13414echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13415
13416 break
13417 done
13418fi
13419if test "$acx_cv_header_stdint" = stddef.h; then
13420 acx_cv_header_stdint_kind="(u_intXX_t style)"
13421 for i in sys/types.h $inttype_headers; do
13422 unset ac_cv_type_u_int32_t
13423 unset ac_cv_type_u_int64_t
13424 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13425 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13426echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13427if test "${ac_cv_type_u_int32_t+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13429else
13430 cat >conftest.$ac_ext <<_ACEOF
13431/* confdefs.h. */
13432_ACEOF
13433cat confdefs.h >>conftest.$ac_ext
13434cat >>conftest.$ac_ext <<_ACEOF
13435/* end confdefs.h. */
13436#include <sys/types.h>
13437#include <$i>
13438
13439int
13440main ()
13441{
13442if ((u_int32_t *) 0)
13443 return 0;
13444if (sizeof (u_int32_t))
13445 return 0;
13446 ;
13447 return 0;
13448}
13449_ACEOF
13450rm -f conftest.$ac_objext
13451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13452 (eval $ac_compile) 2>conftest.er1
13453 ac_status=$?
13454 grep -v '^ *+' conftest.er1 >conftest.err
13455 rm -f conftest.er1
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } &&
13459 { ac_try='test -z "$ac_c_werror_flag"
13460 || test ! -s conftest.err'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; } &&
13466 { ac_try='test -s conftest.$ac_objext'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13472 ac_cv_type_u_int32_t=yes
13473else
13474 echo "$as_me: failed program was:" >&5
13475sed 's/^/| /' conftest.$ac_ext >&5
13476
13477ac_cv_type_u_int32_t=no
13478fi
13479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13480fi
13481echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13482echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13483if test $ac_cv_type_u_int32_t = yes; then
13484 acx_cv_header_stdint=$i
13485else
13486 continue
13487fi
13488
13489 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13490echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13491if test "${ac_cv_type_u_int64_t+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493else
13494 cat >conftest.$ac_ext <<_ACEOF
13495/* confdefs.h. */
13496_ACEOF
13497cat confdefs.h >>conftest.$ac_ext
13498cat >>conftest.$ac_ext <<_ACEOF
13499/* end confdefs.h. */
13500#include <sys/types.h>
13501#include <$i>
13502
13503int
13504main ()
13505{
13506if ((u_int64_t *) 0)
13507 return 0;
13508if (sizeof (u_int64_t))
13509 return 0;
13510 ;
13511 return 0;
13512}
13513_ACEOF
13514rm -f conftest.$ac_objext
13515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13516 (eval $ac_compile) 2>conftest.er1
13517 ac_status=$?
13518 grep -v '^ *+' conftest.er1 >conftest.err
13519 rm -f conftest.er1
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try='test -z "$ac_c_werror_flag"
13524 || test ! -s conftest.err'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; } &&
13530 { ac_try='test -s conftest.$ac_objext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_cv_type_u_int64_t=yes
13537else
13538 echo "$as_me: failed program was:" >&5
13539sed 's/^/| /' conftest.$ac_ext >&5
13540
13541ac_cv_type_u_int64_t=no
13542fi
13543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13544fi
13545echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13546echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13547
13548 break
13549 done
13550fi
13551if test "$acx_cv_header_stdint" = stddef.h; then
13552 acx_cv_header_stdint_kind="(using manual detection)"
13553fi
13554
13555test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13556test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13557test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13558test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13559test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13560
13561# ----------------- Summarize what we found so far
13562
13563echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13564echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13565
13566case `$as_basename bfd_stdint.h ||
13567$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13568 Xbfd_stdint.h : 'X\(//\)$' \| \
13569 Xbfd_stdint.h : 'X\(/\)$' \| \
13570 . : '\(.\)' 2>/dev/null ||
13571echo X/bfd_stdint.h |
13572 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13573 /^X\/\(\/\/\)$/{ s//\1/; q; }
13574 /^X\/\(\/\).*/{ s//\1/; q; }
13575 s/.*/./; q'` in
13576 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13577echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13578 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13579echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13580 *) ;;
13581esac
13582
13583echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13584echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13585
13586# ----------------- done included file, check C basic types --------
13587
13588# Lacking an uintptr_t? Test size of void *
13589case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13590 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13591echo $ECHO_N "checking for void *... $ECHO_C" >&6
13592if test "${ac_cv_type_void_p+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594else
13595 cat >conftest.$ac_ext <<_ACEOF
13596/* confdefs.h. */
13597_ACEOF
13598cat confdefs.h >>conftest.$ac_ext
13599cat >>conftest.$ac_ext <<_ACEOF
13600/* end confdefs.h. */
13601$ac_includes_default
13602int
13603main ()
13604{
13605if ((void * *) 0)
13606 return 0;
13607if (sizeof (void *))
13608 return 0;
13609 ;
13610 return 0;
13611}
13612_ACEOF
13613rm -f conftest.$ac_objext
13614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13615 (eval $ac_compile) 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -z "$ac_c_werror_flag"
13623 || test ! -s conftest.err'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest.$ac_objext'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13635 ac_cv_type_void_p=yes
13636else
13637 echo "$as_me: failed program was:" >&5
13638sed 's/^/| /' conftest.$ac_ext >&5
13639
13640ac_cv_type_void_p=no
13641fi
13642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13643fi
13644echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13645echo "${ECHO_T}$ac_cv_type_void_p" >&6
13646
13647echo "$as_me:$LINENO: checking size of void *" >&5
13648echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13649if test "${ac_cv_sizeof_void_p+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651else
13652 if test "$ac_cv_type_void_p" = yes; then
13653 # The cast to unsigned long works around a bug in the HP C Compiler
13654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13656 # This bug is HP SR number 8606223364.
13657 if test "$cross_compiling" = yes; then
13658 # Depending upon the size, compute the lo and hi bounds.
13659cat >conftest.$ac_ext <<_ACEOF
13660/* confdefs.h. */
13661_ACEOF
13662cat confdefs.h >>conftest.$ac_ext
13663cat >>conftest.$ac_ext <<_ACEOF
13664/* end confdefs.h. */
13665$ac_includes_default
13666int
13667main ()
13668{
13669static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13670test_array [0] = 0
13671
13672 ;
13673 return 0;
13674}
13675_ACEOF
13676rm -f conftest.$ac_objext
13677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13678 (eval $ac_compile) 2>conftest.er1
13679 ac_status=$?
13680 grep -v '^ *+' conftest.er1 >conftest.err
13681 rm -f conftest.er1
13682 cat conftest.err >&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
13685 { ac_try='test -z "$ac_c_werror_flag"
13686 || test ! -s conftest.err'
13687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13689 ac_status=$?
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; } &&
13692 { ac_try='test -s conftest.$ac_objext'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; }; then
13698 ac_lo=0 ac_mid=0
13699 while :; do
13700 cat >conftest.$ac_ext <<_ACEOF
13701/* confdefs.h. */
13702_ACEOF
13703cat confdefs.h >>conftest.$ac_ext
13704cat >>conftest.$ac_ext <<_ACEOF
13705/* end confdefs.h. */
13706$ac_includes_default
13707int
13708main ()
13709{
13710static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13711test_array [0] = 0
13712
13713 ;
13714 return 0;
13715}
13716_ACEOF
13717rm -f conftest.$ac_objext
13718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13719 (eval $ac_compile) 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag"
13727 || test ! -s conftest.err'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest.$ac_objext'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; }; then
13739 ac_hi=$ac_mid; break
13740else
13741 echo "$as_me: failed program was:" >&5
13742sed 's/^/| /' conftest.$ac_ext >&5
13743
13744ac_lo=`expr $ac_mid + 1`
13745 if test $ac_lo -le $ac_mid; then
13746 ac_lo= ac_hi=
13747 break
13748 fi
13749 ac_mid=`expr 2 '*' $ac_mid + 1`
13750fi
13751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13752 done
13753else
13754 echo "$as_me: failed program was:" >&5
13755sed 's/^/| /' conftest.$ac_ext >&5
13756
13757cat >conftest.$ac_ext <<_ACEOF
13758/* confdefs.h. */
13759_ACEOF
13760cat confdefs.h >>conftest.$ac_ext
13761cat >>conftest.$ac_ext <<_ACEOF
13762/* end confdefs.h. */
13763$ac_includes_default
13764int
13765main ()
13766{
13767static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13768test_array [0] = 0
13769
13770 ;
13771 return 0;
13772}
13773_ACEOF
13774rm -f conftest.$ac_objext
13775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -z "$ac_c_werror_flag"
13784 || test ! -s conftest.err'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_hi=-1 ac_mid=-1
13797 while :; do
13798 cat >conftest.$ac_ext <<_ACEOF
13799/* confdefs.h. */
13800_ACEOF
13801cat confdefs.h >>conftest.$ac_ext
13802cat >>conftest.$ac_ext <<_ACEOF
13803/* end confdefs.h. */
13804$ac_includes_default
13805int
13806main ()
13807{
13808static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13809test_array [0] = 0
13810
13811 ;
13812 return 0;
13813}
13814_ACEOF
13815rm -f conftest.$ac_objext
13816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817 (eval $ac_compile) 2>conftest.er1
13818 ac_status=$?
13819 grep -v '^ *+' conftest.er1 >conftest.err
13820 rm -f conftest.er1
13821 cat conftest.err >&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
13824 { ac_try='test -z "$ac_c_werror_flag"
13825 || test ! -s conftest.err'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; } &&
13831 { ac_try='test -s conftest.$ac_objext'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_lo=$ac_mid; break
13838else
13839 echo "$as_me: failed program was:" >&5
13840sed 's/^/| /' conftest.$ac_ext >&5
13841
13842ac_hi=`expr '(' $ac_mid ')' - 1`
13843 if test $ac_mid -le $ac_hi; then
13844 ac_lo= ac_hi=
13845 break
13846 fi
13847 ac_mid=`expr 2 '*' $ac_mid`
13848fi
13849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13850 done
13851else
13852 echo "$as_me: failed program was:" >&5
13853sed 's/^/| /' conftest.$ac_ext >&5
13854
13855ac_lo= ac_hi=
13856fi
13857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13858fi
13859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13860# Binary search between lo and hi bounds.
13861while test "x$ac_lo" != "x$ac_hi"; do
13862 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13863 cat >conftest.$ac_ext <<_ACEOF
13864/* confdefs.h. */
13865_ACEOF
13866cat confdefs.h >>conftest.$ac_ext
13867cat >>conftest.$ac_ext <<_ACEOF
13868/* end confdefs.h. */
13869$ac_includes_default
13870int
13871main ()
13872{
13873static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13874test_array [0] = 0
13875
13876 ;
13877 return 0;
13878}
13879_ACEOF
13880rm -f conftest.$ac_objext
13881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13882 (eval $ac_compile) 2>conftest.er1
13883 ac_status=$?
13884 grep -v '^ *+' conftest.er1 >conftest.err
13885 rm -f conftest.er1
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -z "$ac_c_werror_flag"
13890 || test ! -s conftest.err'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest.$ac_objext'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_hi=$ac_mid
13903else
13904 echo "$as_me: failed program was:" >&5
13905sed 's/^/| /' conftest.$ac_ext >&5
13906
13907ac_lo=`expr '(' $ac_mid ')' + 1`
13908fi
13909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13910done
13911case $ac_lo in
13912?*) ac_cv_sizeof_void_p=$ac_lo;;
13913'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13914See \`config.log' for more details." >&5
13915echo "$as_me: error: cannot compute sizeof (void *), 77
13916See \`config.log' for more details." >&2;}
13917 { (exit 1); exit 1; }; } ;;
13918esac
13919else
13920 if test "$cross_compiling" = yes; then
13921 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13922See \`config.log' for more details." >&5
13923echo "$as_me: error: cannot run test program while cross compiling
13924See \`config.log' for more details." >&2;}
13925 { (exit 1); exit 1; }; }
13926else
13927 cat >conftest.$ac_ext <<_ACEOF
13928/* confdefs.h. */
13929_ACEOF
13930cat confdefs.h >>conftest.$ac_ext
13931cat >>conftest.$ac_ext <<_ACEOF
13932/* end confdefs.h. */
13933$ac_includes_default
13934long longval () { return (long) (sizeof (void *)); }
13935unsigned long ulongval () { return (long) (sizeof (void *)); }
13936#include <stdio.h>
13937#include <stdlib.h>
13938int
13939main ()
13940{
13941
13942 FILE *f = fopen ("conftest.val", "w");
13943 if (! f)
13944 exit (1);
13945 if (((long) (sizeof (void *))) < 0)
13946 {
13947 long i = longval ();
13948 if (i != ((long) (sizeof (void *))))
13949 exit (1);
13950 fprintf (f, "%ld\n", i);
13951 }
13952 else
13953 {
13954 unsigned long i = ulongval ();
13955 if (i != ((long) (sizeof (void *))))
13956 exit (1);
13957 fprintf (f, "%lu\n", i);
13958 }
13959 exit (ferror (f) || fclose (f) != 0);
13960
13961 ;
13962 return 0;
13963}
13964_ACEOF
13965rm -f conftest$ac_exeext
13966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13967 (eval $ac_link) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 ac_cv_sizeof_void_p=`cat conftest.val`
13977else
13978 echo "$as_me: program exited with status $ac_status" >&5
13979echo "$as_me: failed program was:" >&5
13980sed 's/^/| /' conftest.$ac_ext >&5
13981
13982( exit $ac_status )
13983{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13984See \`config.log' for more details." >&5
13985echo "$as_me: error: cannot compute sizeof (void *), 77
13986See \`config.log' for more details." >&2;}
13987 { (exit 1); exit 1; }; }
13988fi
13989rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13990fi
13991fi
13992rm -f conftest.val
13993else
13994 ac_cv_sizeof_void_p=0
13995fi
13996fi
13997echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13998echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13999cat >>confdefs.h <<_ACEOF
14000#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14001_ACEOF
14002
14003 ;;
14004esac
14005
14006# Lacking an uint64_t? Test size of long
14007case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14008 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14009echo $ECHO_N "checking for long... $ECHO_C" >&6
14010if test "${ac_cv_type_long+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012else
14013 cat >conftest.$ac_ext <<_ACEOF
14014/* confdefs.h. */
14015_ACEOF
14016cat confdefs.h >>conftest.$ac_ext
14017cat >>conftest.$ac_ext <<_ACEOF
14018/* end confdefs.h. */
14019$ac_includes_default
14020int
14021main ()
14022{
14023if ((long *) 0)
14024 return 0;
14025if (sizeof (long))
14026 return 0;
14027 ;
14028 return 0;
14029}
14030_ACEOF
14031rm -f conftest.$ac_objext
14032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14033 (eval $ac_compile) 2>conftest.er1
14034 ac_status=$?
14035 grep -v '^ *+' conftest.er1 >conftest.err
14036 rm -f conftest.er1
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
14040 { ac_try='test -z "$ac_c_werror_flag"
14041 || test ! -s conftest.err'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; } &&
14047 { ac_try='test -s conftest.$ac_objext'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_cv_type_long=yes
14054else
14055 echo "$as_me: failed program was:" >&5
14056sed 's/^/| /' conftest.$ac_ext >&5
14057
14058ac_cv_type_long=no
14059fi
14060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14061fi
14062echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14063echo "${ECHO_T}$ac_cv_type_long" >&6
14064
14065echo "$as_me:$LINENO: checking size of long" >&5
14066echo $ECHO_N "checking size of long... $ECHO_C" >&6
14067if test "${ac_cv_sizeof_long+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069else
14070 if test "$ac_cv_type_long" = yes; then
14071 # The cast to unsigned long works around a bug in the HP C Compiler
14072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14074 # This bug is HP SR number 8606223364.
14075 if test "$cross_compiling" = yes; then
14076 # Depending upon the size, compute the lo and hi bounds.
14077cat >conftest.$ac_ext <<_ACEOF
14078/* confdefs.h. */
14079_ACEOF
14080cat confdefs.h >>conftest.$ac_ext
14081cat >>conftest.$ac_ext <<_ACEOF
14082/* end confdefs.h. */
14083$ac_includes_default
14084int
14085main ()
14086{
14087static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14088test_array [0] = 0
14089
14090 ;
14091 return 0;
14092}
14093_ACEOF
14094rm -f conftest.$ac_objext
14095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096 (eval $ac_compile) 2>conftest.er1
14097 ac_status=$?
14098 grep -v '^ *+' conftest.er1 >conftest.err
14099 rm -f conftest.er1
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_c_werror_flag"
14104 || test ! -s conftest.err'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; } &&
14110 { ac_try='test -s conftest.$ac_objext'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_lo=0 ac_mid=0
14117 while :; do
14118 cat >conftest.$ac_ext <<_ACEOF
14119/* confdefs.h. */
14120_ACEOF
14121cat confdefs.h >>conftest.$ac_ext
14122cat >>conftest.$ac_ext <<_ACEOF
14123/* end confdefs.h. */
14124$ac_includes_default
14125int
14126main ()
14127{
14128static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14129test_array [0] = 0
14130
14131 ;
14132 return 0;
14133}
14134_ACEOF
14135rm -f conftest.$ac_objext
14136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14137 (eval $ac_compile) 2>conftest.er1
14138 ac_status=$?
14139 grep -v '^ *+' conftest.er1 >conftest.err
14140 rm -f conftest.er1
14141 cat conftest.err >&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
14144 { ac_try='test -z "$ac_c_werror_flag"
14145 || test ! -s conftest.err'
14146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147 (eval $ac_try) 2>&5
14148 ac_status=$?
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; } &&
14151 { ac_try='test -s conftest.$ac_objext'
14152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14154 ac_status=$?
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14157 ac_hi=$ac_mid; break
14158else
14159 echo "$as_me: failed program was:" >&5
14160sed 's/^/| /' conftest.$ac_ext >&5
14161
14162ac_lo=`expr $ac_mid + 1`
14163 if test $ac_lo -le $ac_mid; then
14164 ac_lo= ac_hi=
14165 break
14166 fi
14167 ac_mid=`expr 2 '*' $ac_mid + 1`
14168fi
14169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14170 done
14171else
14172 echo "$as_me: failed program was:" >&5
14173sed 's/^/| /' conftest.$ac_ext >&5
14174
14175cat >conftest.$ac_ext <<_ACEOF
14176/* confdefs.h. */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
14180/* end confdefs.h. */
14181$ac_includes_default
14182int
14183main ()
14184{
14185static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14186test_array [0] = 0
14187
14188 ;
14189 return 0;
14190}
14191_ACEOF
14192rm -f conftest.$ac_objext
14193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>conftest.er1
14195 ac_status=$?
14196 grep -v '^ *+' conftest.er1 >conftest.err
14197 rm -f conftest.er1
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } &&
14201 { ac_try='test -z "$ac_c_werror_flag"
14202 || test ! -s conftest.err'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } &&
14208 { ac_try='test -s conftest.$ac_objext'
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
14214 ac_hi=-1 ac_mid=-1
14215 while :; do
14216 cat >conftest.$ac_ext <<_ACEOF
14217/* confdefs.h. */
14218_ACEOF
14219cat confdefs.h >>conftest.$ac_ext
14220cat >>conftest.$ac_ext <<_ACEOF
14221/* end confdefs.h. */
14222$ac_includes_default
14223int
14224main ()
14225{
14226static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14227test_array [0] = 0
14228
14229 ;
14230 return 0;
14231}
14232_ACEOF
14233rm -f conftest.$ac_objext
14234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14235 (eval $ac_compile) 2>conftest.er1
14236 ac_status=$?
14237 grep -v '^ *+' conftest.er1 >conftest.err
14238 rm -f conftest.er1
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try='test -z "$ac_c_werror_flag"
14243 || test ! -s conftest.err'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_lo=$ac_mid; break
14256else
14257 echo "$as_me: failed program was:" >&5
14258sed 's/^/| /' conftest.$ac_ext >&5
14259
14260ac_hi=`expr '(' $ac_mid ')' - 1`
14261 if test $ac_mid -le $ac_hi; then
14262 ac_lo= ac_hi=
14263 break
14264 fi
14265 ac_mid=`expr 2 '*' $ac_mid`
14266fi
14267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14268 done
14269else
14270 echo "$as_me: failed program was:" >&5
14271sed 's/^/| /' conftest.$ac_ext >&5
14272
14273ac_lo= ac_hi=
14274fi
14275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14276fi
14277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14278# Binary search between lo and hi bounds.
14279while test "x$ac_lo" != "x$ac_hi"; do
14280 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14281 cat >conftest.$ac_ext <<_ACEOF
14282/* confdefs.h. */
14283_ACEOF
14284cat confdefs.h >>conftest.$ac_ext
14285cat >>conftest.$ac_ext <<_ACEOF
14286/* end confdefs.h. */
14287$ac_includes_default
14288int
14289main ()
14290{
14291static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14292test_array [0] = 0
14293
14294 ;
14295 return 0;
14296}
14297_ACEOF
14298rm -f conftest.$ac_objext
14299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300 (eval $ac_compile) 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag"
14308 || test ! -s conftest.err'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14311 ac_status=$?
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; } &&
14314 { ac_try='test -s conftest.$ac_objext'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14320 ac_hi=$ac_mid
14321else
14322 echo "$as_me: failed program was:" >&5
14323sed 's/^/| /' conftest.$ac_ext >&5
14324
14325ac_lo=`expr '(' $ac_mid ')' + 1`
14326fi
14327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14328done
14329case $ac_lo in
14330?*) ac_cv_sizeof_long=$ac_lo;;
14331'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14332See \`config.log' for more details." >&5
14333echo "$as_me: error: cannot compute sizeof (long), 77
14334See \`config.log' for more details." >&2;}
14335 { (exit 1); exit 1; }; } ;;
14336esac
14337else
14338 if test "$cross_compiling" = yes; then
14339 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14340See \`config.log' for more details." >&5
14341echo "$as_me: error: cannot run test program while cross compiling
14342See \`config.log' for more details." >&2;}
14343 { (exit 1); exit 1; }; }
14344else
14345 cat >conftest.$ac_ext <<_ACEOF
14346/* confdefs.h. */
14347_ACEOF
14348cat confdefs.h >>conftest.$ac_ext
14349cat >>conftest.$ac_ext <<_ACEOF
14350/* end confdefs.h. */
14351$ac_includes_default
14352long longval () { return (long) (sizeof (long)); }
14353unsigned long ulongval () { return (long) (sizeof (long)); }
14354#include <stdio.h>
14355#include <stdlib.h>
14356int
14357main ()
14358{
14359
14360 FILE *f = fopen ("conftest.val", "w");
14361 if (! f)
14362 exit (1);
14363 if (((long) (sizeof (long))) < 0)
14364 {
14365 long i = longval ();
14366 if (i != ((long) (sizeof (long))))
14367 exit (1);
14368 fprintf (f, "%ld\n", i);
14369 }
14370 else
14371 {
14372 unsigned long i = ulongval ();
14373 if (i != ((long) (sizeof (long))))
14374 exit (1);
14375 fprintf (f, "%lu\n", i);
14376 }
14377 exit (ferror (f) || fclose (f) != 0);
14378
14379 ;
14380 return 0;
14381}
14382_ACEOF
14383rm -f conftest$ac_exeext
14384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14385 (eval $ac_link) 2>&5
14386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 ac_cv_sizeof_long=`cat conftest.val`
14395else
14396 echo "$as_me: program exited with status $ac_status" >&5
14397echo "$as_me: failed program was:" >&5
14398sed 's/^/| /' conftest.$ac_ext >&5
14399
14400( exit $ac_status )
14401{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14402See \`config.log' for more details." >&5
14403echo "$as_me: error: cannot compute sizeof (long), 77
14404See \`config.log' for more details." >&2;}
14405 { (exit 1); exit 1; }; }
14406fi
14407rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14408fi
14409fi
14410rm -f conftest.val
14411else
14412 ac_cv_sizeof_long=0
14413fi
14414fi
14415echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14416echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14417cat >>confdefs.h <<_ACEOF
14418#define SIZEOF_LONG $ac_cv_sizeof_long
14419_ACEOF
14420
14421 ;;
14422esac
14423
14424if test $acx_cv_header_stdint = stddef.h; then
14425 # Lacking a good header? Test size of everything and deduce all types.
14426 echo "$as_me:$LINENO: checking for int" >&5
14427echo $ECHO_N "checking for int... $ECHO_C" >&6
14428if test "${ac_cv_type_int+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14430else
14431 cat >conftest.$ac_ext <<_ACEOF
14432/* confdefs.h. */
14433_ACEOF
14434cat confdefs.h >>conftest.$ac_ext
14435cat >>conftest.$ac_ext <<_ACEOF
14436/* end confdefs.h. */
14437$ac_includes_default
14438int
14439main ()
14440{
14441if ((int *) 0)
14442 return 0;
14443if (sizeof (int))
14444 return 0;
14445 ;
14446 return 0;
14447}
14448_ACEOF
14449rm -f conftest.$ac_objext
14450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14451 (eval $ac_compile) 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try='test -z "$ac_c_werror_flag"
14459 || test ! -s conftest.err'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try='test -s conftest.$ac_objext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 ac_cv_type_int=yes
14472else
14473 echo "$as_me: failed program was:" >&5
14474sed 's/^/| /' conftest.$ac_ext >&5
14475
14476ac_cv_type_int=no
14477fi
14478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14479fi
14480echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14481echo "${ECHO_T}$ac_cv_type_int" >&6
14482
14483echo "$as_me:$LINENO: checking size of int" >&5
14484echo $ECHO_N "checking size of int... $ECHO_C" >&6
14485if test "${ac_cv_sizeof_int+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14487else
14488 if test "$ac_cv_type_int" = yes; then
14489 # The cast to unsigned long works around a bug in the HP C Compiler
14490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14492 # This bug is HP SR number 8606223364.
14493 if test "$cross_compiling" = yes; then
14494 # Depending upon the size, compute the lo and hi bounds.
14495cat >conftest.$ac_ext <<_ACEOF
14496/* confdefs.h. */
14497_ACEOF
14498cat confdefs.h >>conftest.$ac_ext
14499cat >>conftest.$ac_ext <<_ACEOF
14500/* end confdefs.h. */
14501$ac_includes_default
14502int
14503main ()
14504{
14505static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14506test_array [0] = 0
14507
14508 ;
14509 return 0;
14510}
14511_ACEOF
14512rm -f conftest.$ac_objext
14513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14514 (eval $ac_compile) 2>conftest.er1
14515 ac_status=$?
14516 grep -v '^ *+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } &&
14521 { ac_try='test -z "$ac_c_werror_flag"
14522 || test ! -s conftest.err'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; } &&
14528 { ac_try='test -s conftest.$ac_objext'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
14534 ac_lo=0 ac_mid=0
14535 while :; do
14536 cat >conftest.$ac_ext <<_ACEOF
14537/* confdefs.h. */
14538_ACEOF
14539cat confdefs.h >>conftest.$ac_ext
14540cat >>conftest.$ac_ext <<_ACEOF
14541/* end confdefs.h. */
14542$ac_includes_default
14543int
14544main ()
14545{
14546static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14547test_array [0] = 0
14548
14549 ;
14550 return 0;
14551}
14552_ACEOF
14553rm -f conftest.$ac_objext
14554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14555 (eval $ac_compile) 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -z "$ac_c_werror_flag"
14563 || test ! -s conftest.err'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; } &&
14569 { ac_try='test -s conftest.$ac_objext'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
14575 ac_hi=$ac_mid; break
14576else
14577 echo "$as_me: failed program was:" >&5
14578sed 's/^/| /' conftest.$ac_ext >&5
14579
14580ac_lo=`expr $ac_mid + 1`
14581 if test $ac_lo -le $ac_mid; then
14582 ac_lo= ac_hi=
14583 break
14584 fi
14585 ac_mid=`expr 2 '*' $ac_mid + 1`
14586fi
14587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14588 done
14589else
14590 echo "$as_me: failed program was:" >&5
14591sed 's/^/| /' conftest.$ac_ext >&5
14592
14593cat >conftest.$ac_ext <<_ACEOF
14594/* confdefs.h. */
14595_ACEOF
14596cat confdefs.h >>conftest.$ac_ext
14597cat >>conftest.$ac_ext <<_ACEOF
14598/* end confdefs.h. */
14599$ac_includes_default
14600int
14601main ()
14602{
14603static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14604test_array [0] = 0
14605
14606 ;
14607 return 0;
14608}
14609_ACEOF
14610rm -f conftest.$ac_objext
14611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14612 (eval $ac_compile) 2>conftest.er1
14613 ac_status=$?
14614 grep -v '^ *+' conftest.er1 >conftest.err
14615 rm -f conftest.er1
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
14619 { ac_try='test -z "$ac_c_werror_flag"
14620 || test ! -s conftest.err'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14623 ac_status=$?
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; } &&
14626 { ac_try='test -s conftest.$ac_objext'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
14632 ac_hi=-1 ac_mid=-1
14633 while :; do
14634 cat >conftest.$ac_ext <<_ACEOF
14635/* confdefs.h. */
14636_ACEOF
14637cat confdefs.h >>conftest.$ac_ext
14638cat >>conftest.$ac_ext <<_ACEOF
14639/* end confdefs.h. */
14640$ac_includes_default
14641int
14642main ()
14643{
14644static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14645test_array [0] = 0
14646
14647 ;
14648 return 0;
14649}
14650_ACEOF
14651rm -f conftest.$ac_objext
14652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>conftest.er1
14654 ac_status=$?
14655 grep -v '^ *+' conftest.er1 >conftest.err
14656 rm -f conftest.er1
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -z "$ac_c_werror_flag"
14661 || test ! -s conftest.err'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; } &&
14667 { ac_try='test -s conftest.$ac_objext'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; }; then
14673 ac_lo=$ac_mid; break
14674else
14675 echo "$as_me: failed program was:" >&5
14676sed 's/^/| /' conftest.$ac_ext >&5
14677
14678ac_hi=`expr '(' $ac_mid ')' - 1`
14679 if test $ac_mid -le $ac_hi; then
14680 ac_lo= ac_hi=
14681 break
14682 fi
14683 ac_mid=`expr 2 '*' $ac_mid`
14684fi
14685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14686 done
14687else
14688 echo "$as_me: failed program was:" >&5
14689sed 's/^/| /' conftest.$ac_ext >&5
14690
14691ac_lo= ac_hi=
14692fi
14693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14694fi
14695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14696# Binary search between lo and hi bounds.
14697while test "x$ac_lo" != "x$ac_hi"; do
14698 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14699 cat >conftest.$ac_ext <<_ACEOF
14700/* confdefs.h. */
14701_ACEOF
14702cat confdefs.h >>conftest.$ac_ext
14703cat >>conftest.$ac_ext <<_ACEOF
14704/* end confdefs.h. */
14705$ac_includes_default
14706int
14707main ()
14708{
14709static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14710test_array [0] = 0
14711
14712 ;
14713 return 0;
14714}
14715_ACEOF
14716rm -f conftest.$ac_objext
14717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14718 (eval $ac_compile) 2>conftest.er1
14719 ac_status=$?
14720 grep -v '^ *+' conftest.er1 >conftest.err
14721 rm -f conftest.er1
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -z "$ac_c_werror_flag"
14726 || test ! -s conftest.err'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; } &&
14732 { ac_try='test -s conftest.$ac_objext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_hi=$ac_mid
14739else
14740 echo "$as_me: failed program was:" >&5
14741sed 's/^/| /' conftest.$ac_ext >&5
14742
14743ac_lo=`expr '(' $ac_mid ')' + 1`
14744fi
14745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14746done
14747case $ac_lo in
14748?*) ac_cv_sizeof_int=$ac_lo;;
14749'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14750See \`config.log' for more details." >&5
14751echo "$as_me: error: cannot compute sizeof (int), 77
14752See \`config.log' for more details." >&2;}
14753 { (exit 1); exit 1; }; } ;;
14754esac
14755else
14756 if test "$cross_compiling" = yes; then
14757 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14758See \`config.log' for more details." >&5
14759echo "$as_me: error: cannot run test program while cross compiling
14760See \`config.log' for more details." >&2;}
14761 { (exit 1); exit 1; }; }
14762else
14763 cat >conftest.$ac_ext <<_ACEOF
14764/* confdefs.h. */
14765_ACEOF
14766cat confdefs.h >>conftest.$ac_ext
14767cat >>conftest.$ac_ext <<_ACEOF
14768/* end confdefs.h. */
14769$ac_includes_default
14770long longval () { return (long) (sizeof (int)); }
14771unsigned long ulongval () { return (long) (sizeof (int)); }
14772#include <stdio.h>
14773#include <stdlib.h>
14774int
14775main ()
14776{
14777
14778 FILE *f = fopen ("conftest.val", "w");
14779 if (! f)
14780 exit (1);
14781 if (((long) (sizeof (int))) < 0)
14782 {
14783 long i = longval ();
14784 if (i != ((long) (sizeof (int))))
14785 exit (1);
14786 fprintf (f, "%ld\n", i);
14787 }
14788 else
14789 {
14790 unsigned long i = ulongval ();
14791 if (i != ((long) (sizeof (int))))
14792 exit (1);
14793 fprintf (f, "%lu\n", i);
14794 }
14795 exit (ferror (f) || fclose (f) != 0);
14796
14797 ;
14798 return 0;
14799}
14800_ACEOF
14801rm -f conftest$ac_exeext
14802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14803 (eval $ac_link) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
14812 ac_cv_sizeof_int=`cat conftest.val`
14813else
14814 echo "$as_me: program exited with status $ac_status" >&5
14815echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818( exit $ac_status )
14819{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14820See \`config.log' for more details." >&5
14821echo "$as_me: error: cannot compute sizeof (int), 77
14822See \`config.log' for more details." >&2;}
14823 { (exit 1); exit 1; }; }
14824fi
14825rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14826fi
14827fi
14828rm -f conftest.val
14829else
14830 ac_cv_sizeof_int=0
14831fi
14832fi
14833echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14834echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14835cat >>confdefs.h <<_ACEOF
14836#define SIZEOF_INT $ac_cv_sizeof_int
14837_ACEOF
14838
14839
14840 echo "$as_me:$LINENO: checking for short" >&5
14841echo $ECHO_N "checking for short... $ECHO_C" >&6
14842if test "${ac_cv_type_short+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14844else
14845 cat >conftest.$ac_ext <<_ACEOF
14846/* confdefs.h. */
14847_ACEOF
14848cat confdefs.h >>conftest.$ac_ext
14849cat >>conftest.$ac_ext <<_ACEOF
14850/* end confdefs.h. */
14851$ac_includes_default
14852int
14853main ()
14854{
14855if ((short *) 0)
14856 return 0;
14857if (sizeof (short))
14858 return 0;
14859 ;
14860 return 0;
14861}
14862_ACEOF
14863rm -f conftest.$ac_objext
14864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14865 (eval $ac_compile) 2>conftest.er1
14866 ac_status=$?
14867 grep -v '^ *+' conftest.er1 >conftest.err
14868 rm -f conftest.er1
14869 cat conftest.err >&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } &&
14872 { ac_try='test -z "$ac_c_werror_flag"
14873 || test ! -s conftest.err'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; } &&
14879 { ac_try='test -s conftest.$ac_objext'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_cv_type_short=yes
14886else
14887 echo "$as_me: failed program was:" >&5
14888sed 's/^/| /' conftest.$ac_ext >&5
14889
14890ac_cv_type_short=no
14891fi
14892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14893fi
14894echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14895echo "${ECHO_T}$ac_cv_type_short" >&6
14896
14897echo "$as_me:$LINENO: checking size of short" >&5
14898echo $ECHO_N "checking size of short... $ECHO_C" >&6
14899if test "${ac_cv_sizeof_short+set}" = set; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
14901else
14902 if test "$ac_cv_type_short" = yes; then
14903 # The cast to unsigned long works around a bug in the HP C Compiler
14904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14906 # This bug is HP SR number 8606223364.
14907 if test "$cross_compiling" = yes; then
14908 # Depending upon the size, compute the lo and hi bounds.
14909cat >conftest.$ac_ext <<_ACEOF
14910/* confdefs.h. */
14911_ACEOF
14912cat confdefs.h >>conftest.$ac_ext
14913cat >>conftest.$ac_ext <<_ACEOF
14914/* end confdefs.h. */
14915$ac_includes_default
14916int
14917main ()
14918{
14919static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14920test_array [0] = 0
14921
14922 ;
14923 return 0;
14924}
14925_ACEOF
14926rm -f conftest.$ac_objext
14927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14928 (eval $ac_compile) 2>conftest.er1
14929 ac_status=$?
14930 grep -v '^ *+' conftest.er1 >conftest.err
14931 rm -f conftest.er1
14932 cat conftest.err >&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } &&
14935 { ac_try='test -z "$ac_c_werror_flag"
14936 || test ! -s conftest.err'
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; } &&
14942 { ac_try='test -s conftest.$ac_objext'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; }; then
14948 ac_lo=0 ac_mid=0
14949 while :; do
14950 cat >conftest.$ac_ext <<_ACEOF
14951/* confdefs.h. */
14952_ACEOF
14953cat confdefs.h >>conftest.$ac_ext
14954cat >>conftest.$ac_ext <<_ACEOF
14955/* end confdefs.h. */
14956$ac_includes_default
14957int
14958main ()
14959{
14960static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14961test_array [0] = 0
14962
14963 ;
14964 return 0;
14965}
14966_ACEOF
14967rm -f conftest.$ac_objext
14968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14969 (eval $ac_compile) 2>conftest.er1
14970 ac_status=$?
14971 grep -v '^ *+' conftest.er1 >conftest.err
14972 rm -f conftest.er1
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } &&
14976 { ac_try='test -z "$ac_c_werror_flag"
14977 || test ! -s conftest.err'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; } &&
14983 { ac_try='test -s conftest.$ac_objext'
14984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985 (eval $ac_try) 2>&5
14986 ac_status=$?
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; }; then
14989 ac_hi=$ac_mid; break
14990else
14991 echo "$as_me: failed program was:" >&5
14992sed 's/^/| /' conftest.$ac_ext >&5
14993
14994ac_lo=`expr $ac_mid + 1`
14995 if test $ac_lo -le $ac_mid; then
14996 ac_lo= ac_hi=
14997 break
14998 fi
14999 ac_mid=`expr 2 '*' $ac_mid + 1`
15000fi
15001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15002 done
15003else
15004 echo "$as_me: failed program was:" >&5
15005sed 's/^/| /' conftest.$ac_ext >&5
15006
15007cat >conftest.$ac_ext <<_ACEOF
15008/* confdefs.h. */
15009_ACEOF
15010cat confdefs.h >>conftest.$ac_ext
15011cat >>conftest.$ac_ext <<_ACEOF
15012/* end confdefs.h. */
15013$ac_includes_default
15014int
15015main ()
15016{
15017static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15018test_array [0] = 0
15019
15020 ;
15021 return 0;
15022}
15023_ACEOF
15024rm -f conftest.$ac_objext
15025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15026 (eval $ac_compile) 2>conftest.er1
15027 ac_status=$?
15028 grep -v '^ *+' conftest.er1 >conftest.err
15029 rm -f conftest.er1
15030 cat conftest.err >&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } &&
15033 { ac_try='test -z "$ac_c_werror_flag"
15034 || test ! -s conftest.err'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; } &&
15040 { ac_try='test -s conftest.$ac_objext'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 ac_hi=-1 ac_mid=-1
15047 while :; do
15048 cat >conftest.$ac_ext <<_ACEOF
15049/* confdefs.h. */
15050_ACEOF
15051cat confdefs.h >>conftest.$ac_ext
15052cat >>conftest.$ac_ext <<_ACEOF
15053/* end confdefs.h. */
15054$ac_includes_default
15055int
15056main ()
15057{
15058static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15059test_array [0] = 0
15060
15061 ;
15062 return 0;
15063}
15064_ACEOF
15065rm -f conftest.$ac_objext
15066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067 (eval $ac_compile) 2>conftest.er1
15068 ac_status=$?
15069 grep -v '^ *+' conftest.er1 >conftest.err
15070 rm -f conftest.er1
15071 cat conftest.err >&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
15074 { ac_try='test -z "$ac_c_werror_flag"
15075 || test ! -s conftest.err'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; } &&
15081 { ac_try='test -s conftest.$ac_objext'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15084 ac_status=$?
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15087 ac_lo=$ac_mid; break
15088else
15089 echo "$as_me: failed program was:" >&5
15090sed 's/^/| /' conftest.$ac_ext >&5
15091
15092ac_hi=`expr '(' $ac_mid ')' - 1`
15093 if test $ac_mid -le $ac_hi; then
15094 ac_lo= ac_hi=
15095 break
15096 fi
15097 ac_mid=`expr 2 '*' $ac_mid`
15098fi
15099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15100 done
15101else
15102 echo "$as_me: failed program was:" >&5
15103sed 's/^/| /' conftest.$ac_ext >&5
15104
15105ac_lo= ac_hi=
15106fi
15107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15108fi
15109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15110# Binary search between lo and hi bounds.
15111while test "x$ac_lo" != "x$ac_hi"; do
15112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15113 cat >conftest.$ac_ext <<_ACEOF
15114/* confdefs.h. */
15115_ACEOF
15116cat confdefs.h >>conftest.$ac_ext
15117cat >>conftest.$ac_ext <<_ACEOF
15118/* end confdefs.h. */
15119$ac_includes_default
15120int
15121main ()
15122{
15123static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15124test_array [0] = 0
15125
15126 ;
15127 return 0;
15128}
15129_ACEOF
15130rm -f conftest.$ac_objext
15131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15132 (eval $ac_compile) 2>conftest.er1
15133 ac_status=$?
15134 grep -v '^ *+' conftest.er1 >conftest.err
15135 rm -f conftest.er1
15136 cat conftest.err >&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } &&
15139 { ac_try='test -z "$ac_c_werror_flag"
15140 || test ! -s conftest.err'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } &&
15146 { ac_try='test -s conftest.$ac_objext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 ac_hi=$ac_mid
15153else
15154 echo "$as_me: failed program was:" >&5
15155sed 's/^/| /' conftest.$ac_ext >&5
15156
15157ac_lo=`expr '(' $ac_mid ')' + 1`
15158fi
15159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15160done
15161case $ac_lo in
15162?*) ac_cv_sizeof_short=$ac_lo;;
15163'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15164See \`config.log' for more details." >&5
15165echo "$as_me: error: cannot compute sizeof (short), 77
15166See \`config.log' for more details." >&2;}
15167 { (exit 1); exit 1; }; } ;;
15168esac
15169else
15170 if test "$cross_compiling" = yes; then
15171 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15172See \`config.log' for more details." >&5
15173echo "$as_me: error: cannot run test program while cross compiling
15174See \`config.log' for more details." >&2;}
15175 { (exit 1); exit 1; }; }
15176else
15177 cat >conftest.$ac_ext <<_ACEOF
15178/* confdefs.h. */
15179_ACEOF
15180cat confdefs.h >>conftest.$ac_ext
15181cat >>conftest.$ac_ext <<_ACEOF
15182/* end confdefs.h. */
15183$ac_includes_default
15184long longval () { return (long) (sizeof (short)); }
15185unsigned long ulongval () { return (long) (sizeof (short)); }
15186#include <stdio.h>
15187#include <stdlib.h>
15188int
15189main ()
15190{
15191
15192 FILE *f = fopen ("conftest.val", "w");
15193 if (! f)
15194 exit (1);
15195 if (((long) (sizeof (short))) < 0)
15196 {
15197 long i = longval ();
15198 if (i != ((long) (sizeof (short))))
15199 exit (1);
15200 fprintf (f, "%ld\n", i);
15201 }
15202 else
15203 {
15204 unsigned long i = ulongval ();
15205 if (i != ((long) (sizeof (short))))
15206 exit (1);
15207 fprintf (f, "%lu\n", i);
15208 }
15209 exit (ferror (f) || fclose (f) != 0);
15210
15211 ;
15212 return 0;
15213}
15214_ACEOF
15215rm -f conftest$ac_exeext
15216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217 (eval $ac_link) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_cv_sizeof_short=`cat conftest.val`
15227else
15228 echo "$as_me: program exited with status $ac_status" >&5
15229echo "$as_me: failed program was:" >&5
15230sed 's/^/| /' conftest.$ac_ext >&5
15231
15232( exit $ac_status )
15233{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15234See \`config.log' for more details." >&5
15235echo "$as_me: error: cannot compute sizeof (short), 77
15236See \`config.log' for more details." >&2;}
15237 { (exit 1); exit 1; }; }
15238fi
15239rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15240fi
15241fi
15242rm -f conftest.val
15243else
15244 ac_cv_sizeof_short=0
15245fi
15246fi
15247echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15248echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15249cat >>confdefs.h <<_ACEOF
15250#define SIZEOF_SHORT $ac_cv_sizeof_short
15251_ACEOF
15252
15253
15254 echo "$as_me:$LINENO: checking for char" >&5
15255echo $ECHO_N "checking for char... $ECHO_C" >&6
15256if test "${ac_cv_type_char+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15258else
15259 cat >conftest.$ac_ext <<_ACEOF
15260/* confdefs.h. */
15261_ACEOF
15262cat confdefs.h >>conftest.$ac_ext
15263cat >>conftest.$ac_ext <<_ACEOF
15264/* end confdefs.h. */
15265$ac_includes_default
15266int
15267main ()
15268{
15269if ((char *) 0)
15270 return 0;
15271if (sizeof (char))
15272 return 0;
15273 ;
15274 return 0;
15275}
15276_ACEOF
15277rm -f conftest.$ac_objext
15278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15279 (eval $ac_compile) 2>conftest.er1
15280 ac_status=$?
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } &&
15286 { ac_try='test -z "$ac_c_werror_flag"
15287 || test ! -s conftest.err'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; } &&
15293 { ac_try='test -s conftest.$ac_objext'
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15296 ac_status=$?
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; }; then
15299 ac_cv_type_char=yes
15300else
15301 echo "$as_me: failed program was:" >&5
15302sed 's/^/| /' conftest.$ac_ext >&5
15303
15304ac_cv_type_char=no
15305fi
15306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15307fi
15308echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15309echo "${ECHO_T}$ac_cv_type_char" >&6
15310
15311echo "$as_me:$LINENO: checking size of char" >&5
15312echo $ECHO_N "checking size of char... $ECHO_C" >&6
15313if test "${ac_cv_sizeof_char+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315else
15316 if test "$ac_cv_type_char" = yes; then
15317 # The cast to unsigned long works around a bug in the HP C Compiler
15318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15320 # This bug is HP SR number 8606223364.
15321 if test "$cross_compiling" = yes; then
15322 # Depending upon the size, compute the lo and hi bounds.
15323cat >conftest.$ac_ext <<_ACEOF
15324/* confdefs.h. */
15325_ACEOF
15326cat confdefs.h >>conftest.$ac_ext
15327cat >>conftest.$ac_ext <<_ACEOF
15328/* end confdefs.h. */
15329$ac_includes_default
15330int
15331main ()
15332{
15333static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15334test_array [0] = 0
15335
15336 ;
15337 return 0;
15338}
15339_ACEOF
15340rm -f conftest.$ac_objext
15341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342 (eval $ac_compile) 2>conftest.er1
15343 ac_status=$?
15344 grep -v '^ *+' conftest.er1 >conftest.err
15345 rm -f conftest.er1
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try='test -z "$ac_c_werror_flag"
15350 || test ! -s conftest.err'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest.$ac_objext'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; }; then
15362 ac_lo=0 ac_mid=0
15363 while :; do
15364 cat >conftest.$ac_ext <<_ACEOF
15365/* confdefs.h. */
15366_ACEOF
15367cat confdefs.h >>conftest.$ac_ext
15368cat >>conftest.$ac_ext <<_ACEOF
15369/* end confdefs.h. */
15370$ac_includes_default
15371int
15372main ()
15373{
15374static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15375test_array [0] = 0
15376
15377 ;
15378 return 0;
15379}
15380_ACEOF
15381rm -f conftest.$ac_objext
15382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15383 (eval $ac_compile) 2>conftest.er1
15384 ac_status=$?
15385 grep -v '^ *+' conftest.er1 >conftest.err
15386 rm -f conftest.er1
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -z "$ac_c_werror_flag"
15391 || test ! -s conftest.err'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15400 ac_status=$?
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_hi=$ac_mid; break
15404else
15405 echo "$as_me: failed program was:" >&5
15406sed 's/^/| /' conftest.$ac_ext >&5
15407
15408ac_lo=`expr $ac_mid + 1`
15409 if test $ac_lo -le $ac_mid; then
15410 ac_lo= ac_hi=
15411 break
15412 fi
15413 ac_mid=`expr 2 '*' $ac_mid + 1`
15414fi
15415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15416 done
15417else
15418 echo "$as_me: failed program was:" >&5
15419sed 's/^/| /' conftest.$ac_ext >&5
15420
15421cat >conftest.$ac_ext <<_ACEOF
15422/* confdefs.h. */
15423_ACEOF
15424cat confdefs.h >>conftest.$ac_ext
15425cat >>conftest.$ac_ext <<_ACEOF
15426/* end confdefs.h. */
15427$ac_includes_default
15428int
15429main ()
15430{
15431static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15432test_array [0] = 0
15433
15434 ;
15435 return 0;
15436}
15437_ACEOF
15438rm -f conftest.$ac_objext
15439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try='test -z "$ac_c_werror_flag"
15448 || test ! -s conftest.err'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; } &&
15454 { ac_try='test -s conftest.$ac_objext'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 ac_hi=-1 ac_mid=-1
15461 while :; do
15462 cat >conftest.$ac_ext <<_ACEOF
15463/* confdefs.h. */
15464_ACEOF
15465cat confdefs.h >>conftest.$ac_ext
15466cat >>conftest.$ac_ext <<_ACEOF
15467/* end confdefs.h. */
15468$ac_includes_default
15469int
15470main ()
15471{
15472static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15473test_array [0] = 0
15474
15475 ;
15476 return 0;
15477}
15478_ACEOF
15479rm -f conftest.$ac_objext
15480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481 (eval $ac_compile) 2>conftest.er1
15482 ac_status=$?
15483 grep -v '^ *+' conftest.er1 >conftest.err
15484 rm -f conftest.er1
15485 cat conftest.err >&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
15488 { ac_try='test -z "$ac_c_werror_flag"
15489 || test ! -s conftest.err'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; } &&
15495 { ac_try='test -s conftest.$ac_objext'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }; then
15501 ac_lo=$ac_mid; break
15502else
15503 echo "$as_me: failed program was:" >&5
15504sed 's/^/| /' conftest.$ac_ext >&5
15505
15506ac_hi=`expr '(' $ac_mid ')' - 1`
15507 if test $ac_mid -le $ac_hi; then
15508 ac_lo= ac_hi=
15509 break
15510 fi
15511 ac_mid=`expr 2 '*' $ac_mid`
15512fi
15513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15514 done
15515else
15516 echo "$as_me: failed program was:" >&5
15517sed 's/^/| /' conftest.$ac_ext >&5
15518
15519ac_lo= ac_hi=
15520fi
15521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15522fi
15523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15524# Binary search between lo and hi bounds.
15525while test "x$ac_lo" != "x$ac_hi"; do
15526 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15527 cat >conftest.$ac_ext <<_ACEOF
15528/* confdefs.h. */
15529_ACEOF
15530cat confdefs.h >>conftest.$ac_ext
15531cat >>conftest.$ac_ext <<_ACEOF
15532/* end confdefs.h. */
15533$ac_includes_default
15534int
15535main ()
15536{
15537static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15538test_array [0] = 0
15539
15540 ;
15541 return 0;
15542}
15543_ACEOF
15544rm -f conftest.$ac_objext
15545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15546 (eval $ac_compile) 2>conftest.er1
15547 ac_status=$?
15548 grep -v '^ *+' conftest.er1 >conftest.err
15549 rm -f conftest.er1
15550 cat conftest.err >&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } &&
15553 { ac_try='test -z "$ac_c_werror_flag"
15554 || test ! -s conftest.err'
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; } &&
15560 { ac_try='test -s conftest.$ac_objext'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15566 ac_hi=$ac_mid
15567else
15568 echo "$as_me: failed program was:" >&5
15569sed 's/^/| /' conftest.$ac_ext >&5
15570
15571ac_lo=`expr '(' $ac_mid ')' + 1`
15572fi
15573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15574done
15575case $ac_lo in
15576?*) ac_cv_sizeof_char=$ac_lo;;
15577'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15578See \`config.log' for more details." >&5
15579echo "$as_me: error: cannot compute sizeof (char), 77
15580See \`config.log' for more details." >&2;}
15581 { (exit 1); exit 1; }; } ;;
15582esac
15583else
15584 if test "$cross_compiling" = yes; then
15585 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15586See \`config.log' for more details." >&5
15587echo "$as_me: error: cannot run test program while cross compiling
15588See \`config.log' for more details." >&2;}
15589 { (exit 1); exit 1; }; }
15590else
15591 cat >conftest.$ac_ext <<_ACEOF
15592/* confdefs.h. */
15593_ACEOF
15594cat confdefs.h >>conftest.$ac_ext
15595cat >>conftest.$ac_ext <<_ACEOF
15596/* end confdefs.h. */
15597$ac_includes_default
15598long longval () { return (long) (sizeof (char)); }
15599unsigned long ulongval () { return (long) (sizeof (char)); }
15600#include <stdio.h>
15601#include <stdlib.h>
15602int
15603main ()
15604{
15605
15606 FILE *f = fopen ("conftest.val", "w");
15607 if (! f)
15608 exit (1);
15609 if (((long) (sizeof (char))) < 0)
15610 {
15611 long i = longval ();
15612 if (i != ((long) (sizeof (char))))
15613 exit (1);
15614 fprintf (f, "%ld\n", i);
15615 }
15616 else
15617 {
15618 unsigned long i = ulongval ();
15619 if (i != ((long) (sizeof (char))))
15620 exit (1);
15621 fprintf (f, "%lu\n", i);
15622 }
15623 exit (ferror (f) || fclose (f) != 0);
15624
15625 ;
15626 return 0;
15627}
15628_ACEOF
15629rm -f conftest$ac_exeext
15630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15631 (eval $ac_link) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
15640 ac_cv_sizeof_char=`cat conftest.val`
15641else
15642 echo "$as_me: program exited with status $ac_status" >&5
15643echo "$as_me: failed program was:" >&5
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
15646( exit $ac_status )
15647{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15648See \`config.log' for more details." >&5
15649echo "$as_me: error: cannot compute sizeof (char), 77
15650See \`config.log' for more details." >&2;}
15651 { (exit 1); exit 1; }; }
15652fi
15653rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15654fi
15655fi
15656rm -f conftest.val
15657else
15658 ac_cv_sizeof_char=0
15659fi
15660fi
15661echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15662echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15663cat >>confdefs.h <<_ACEOF
15664#define SIZEOF_CHAR $ac_cv_sizeof_char
15665_ACEOF
15666
15667
15668
15669 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15670echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15671 case "$ac_cv_sizeof_char" in
15672 1) acx_cv_type_int8_t=char ;;
15673 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15674echo "$as_me: error: no 8-bit type" >&2;}
15675 { (exit please report a bug); exit please report a bug; }; }
15676 esac
15677 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15678echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15679
15680 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15681echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15682 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15683 2:*) acx_cv_type_int16_t=int ;;
15684 *:2) acx_cv_type_int16_t=short ;;
15685 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15686echo "$as_me: error: no 16-bit type" >&2;}
15687 { (exit please report a bug); exit please report a bug; }; }
15688 esac
15689 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15690echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15691
15692 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15693echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15694 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15695 4:*) acx_cv_type_int32_t=int ;;
15696 *:4) acx_cv_type_int32_t=long ;;
15697 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15698echo "$as_me: error: no 32-bit type" >&2;}
15699 { (exit please report a bug); exit please report a bug; }; }
15700 esac
15701 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15702echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15703fi
15704
15705# These tests are here to make the output prettier
15706
15707if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15708 case "$ac_cv_sizeof_long" in
15709 8) acx_cv_type_int64_t=long ;;
15710 esac
15711 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15712echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15713 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15714echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15715fi
15716
15717# Now we can use the above types
15718
15719if test "$ac_cv_type_uintptr_t" != yes; then
15720 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15721echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15722 case $ac_cv_sizeof_void_p in
15723 2) acx_cv_type_intptr_t=int16_t ;;
15724 4) acx_cv_type_intptr_t=int32_t ;;
15725 8) acx_cv_type_intptr_t=int64_t ;;
15726 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15727echo "$as_me: error: no equivalent for intptr_t" >&2;}
15728 { (exit please report a bug); exit please report a bug; }; }
15729 esac
15730 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15731echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15732fi
15733
15734# ----------------- done all checks, emit header -------------
15735 ac_config_commands="$ac_config_commands bfd_stdint.h"
15736
15737
15738
2ba49b59
KC
15739echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15740echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15741if test "${ac_cv_header_time+set}" = set; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15743else
15744 cat >conftest.$ac_ext <<_ACEOF
15745/* confdefs.h. */
15746_ACEOF
15747cat confdefs.h >>conftest.$ac_ext
15748cat >>conftest.$ac_ext <<_ACEOF
15749/* end confdefs.h. */
15750#include <sys/types.h>
15751#include <sys/time.h>
15752#include <time.h>
15753
15754int
15755main ()
15756{
15757if ((struct tm *) 0)
15758return 0;
15759 ;
15760 return 0;
15761}
15762_ACEOF
15763rm -f conftest.$ac_objext
15764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15765 (eval $ac_compile) 2>conftest.er1
15766 ac_status=$?
15767 grep -v '^ *+' conftest.er1 >conftest.err
15768 rm -f conftest.er1
15769 cat conftest.err >&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
49c96104
SE
15772 { ac_try='test -z "$ac_c_werror_flag"
15773 || test ! -s conftest.err'
2ba49b59
KC
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; } &&
15779 { ac_try='test -s conftest.$ac_objext'
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; }; then
15785 ac_cv_header_time=yes
15786else
15787 echo "$as_me: failed program was:" >&5
15788sed 's/^/| /' conftest.$ac_ext >&5
15789
15790ac_cv_header_time=no
15791fi
15792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15793fi
15794echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15795echo "${ECHO_T}$ac_cv_header_time" >&6
15796if test $ac_cv_header_time = yes; then
15797
15798cat >>confdefs.h <<\_ACEOF
15799#define TIME_WITH_SYS_TIME 1
15800_ACEOF
15801
15802fi
15803
15804
15805
15806
15807
15808
15809ac_header_dirent=no
15810for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15811 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15812echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15813echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15814if eval "test \"\${$as_ac_Header+set}\" = set"; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15816else
15817 cat >conftest.$ac_ext <<_ACEOF
15818/* confdefs.h. */
15819_ACEOF
15820cat confdefs.h >>conftest.$ac_ext
15821cat >>conftest.$ac_ext <<_ACEOF
15822/* end confdefs.h. */
15823#include <sys/types.h>
15824#include <$ac_hdr>
15825
15826int
15827main ()
15828{
15829if ((DIR *) 0)
15830return 0;
15831 ;
15832 return 0;
15833}
15834_ACEOF
15835rm -f conftest.$ac_objext
15836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15837 (eval $ac_compile) 2>conftest.er1
15838 ac_status=$?
15839 grep -v '^ *+' conftest.er1 >conftest.err
15840 rm -f conftest.er1
15841 cat conftest.err >&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
49c96104
SE
15844 { ac_try='test -z "$ac_c_werror_flag"
15845 || test ! -s conftest.err'
2ba49b59
KC
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest.$ac_objext'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then
15857 eval "$as_ac_Header=yes"
15858else
15859 echo "$as_me: failed program was:" >&5
15860sed 's/^/| /' conftest.$ac_ext >&5
15861
15862eval "$as_ac_Header=no"
15863fi
15864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15865fi
15866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15868if test `eval echo '${'$as_ac_Header'}'` = yes; then
15869 cat >>confdefs.h <<_ACEOF
15870#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15871_ACEOF
15872
15873ac_header_dirent=$ac_hdr; break
15874fi
15875
15876done
15877# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15878if test $ac_header_dirent = dirent.h; then
15879 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15880echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15881if test "${ac_cv_search_opendir+set}" = set; then
15882 echo $ECHO_N "(cached) $ECHO_C" >&6
15883else
15884 ac_func_search_save_LIBS=$LIBS
15885ac_cv_search_opendir=no
15886cat >conftest.$ac_ext <<_ACEOF
15887/* confdefs.h. */
15888_ACEOF
15889cat confdefs.h >>conftest.$ac_ext
15890cat >>conftest.$ac_ext <<_ACEOF
15891/* end confdefs.h. */
15892
15893/* Override any gcc2 internal prototype to avoid an error. */
15894#ifdef __cplusplus
15895extern "C"
15896#endif
15897/* We use char because int might match the return type of a gcc2
15898 builtin and then its argument prototype would still apply. */
15899char opendir ();
15900int
15901main ()
15902{
15903opendir ();
15904 ;
15905 return 0;
15906}
15907_ACEOF
15908rm -f conftest.$ac_objext conftest$ac_exeext
15909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15910 (eval $ac_link) 2>conftest.er1
15911 ac_status=$?
15912 grep -v '^ *+' conftest.er1 >conftest.err
15913 rm -f conftest.er1
15914 cat conftest.err >&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } &&
49c96104
SE
15917 { ac_try='test -z "$ac_c_werror_flag"
15918 || test ! -s conftest.err'
2ba49b59
KC
15919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15921 ac_status=$?
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; } &&
15924 { ac_try='test -s conftest$ac_exeext'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
15930 ac_cv_search_opendir="none required"
15931else
15932 echo "$as_me: failed program was:" >&5
15933sed 's/^/| /' conftest.$ac_ext >&5
15934
15935fi
15936rm -f conftest.err conftest.$ac_objext \
15937 conftest$ac_exeext conftest.$ac_ext
15938if test "$ac_cv_search_opendir" = no; then
15939 for ac_lib in dir; do
15940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15941 cat >conftest.$ac_ext <<_ACEOF
15942/* confdefs.h. */
15943_ACEOF
15944cat confdefs.h >>conftest.$ac_ext
15945cat >>conftest.$ac_ext <<_ACEOF
15946/* end confdefs.h. */
15947
15948/* Override any gcc2 internal prototype to avoid an error. */
15949#ifdef __cplusplus
15950extern "C"
15951#endif
15952/* We use char because int might match the return type of a gcc2
15953 builtin and then its argument prototype would still apply. */
15954char opendir ();
15955int
15956main ()
15957{
15958opendir ();
15959 ;
15960 return 0;
15961}
15962_ACEOF
15963rm -f conftest.$ac_objext conftest$ac_exeext
15964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15965 (eval $ac_link) 2>conftest.er1
15966 ac_status=$?
15967 grep -v '^ *+' conftest.er1 >conftest.err
15968 rm -f conftest.er1
15969 cat conftest.err >&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } &&
49c96104
SE
15972 { ac_try='test -z "$ac_c_werror_flag"
15973 || test ! -s conftest.err'
2ba49b59
KC
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15976 ac_status=$?
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; } &&
15979 { ac_try='test -s conftest$ac_exeext'
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 ac_cv_search_opendir="-l$ac_lib"
15986break
15987else
15988 echo "$as_me: failed program was:" >&5
15989sed 's/^/| /' conftest.$ac_ext >&5
15990
15991fi
15992rm -f conftest.err conftest.$ac_objext \
15993 conftest$ac_exeext conftest.$ac_ext
15994 done
15995fi
15996LIBS=$ac_func_search_save_LIBS
15997fi
15998echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15999echo "${ECHO_T}$ac_cv_search_opendir" >&6
16000if test "$ac_cv_search_opendir" != no; then
16001 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16002
16003fi
16004
16005else
16006 echo "$as_me:$LINENO: checking for library containing opendir" >&5
16007echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16008if test "${ac_cv_search_opendir+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010else
16011 ac_func_search_save_LIBS=$LIBS
16012ac_cv_search_opendir=no
16013cat >conftest.$ac_ext <<_ACEOF
16014/* confdefs.h. */
16015_ACEOF
16016cat confdefs.h >>conftest.$ac_ext
16017cat >>conftest.$ac_ext <<_ACEOF
16018/* end confdefs.h. */
16019
16020/* Override any gcc2 internal prototype to avoid an error. */
16021#ifdef __cplusplus
16022extern "C"
16023#endif
16024/* We use char because int might match the return type of a gcc2
16025 builtin and then its argument prototype would still apply. */
16026char opendir ();
16027int
16028main ()
16029{
16030opendir ();
16031 ;
16032 return 0;
16033}
16034_ACEOF
16035rm -f conftest.$ac_objext conftest$ac_exeext
16036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16037 (eval $ac_link) 2>conftest.er1
16038 ac_status=$?
16039 grep -v '^ *+' conftest.er1 >conftest.err
16040 rm -f conftest.er1
16041 cat conftest.err >&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } &&
49c96104
SE
16044 { ac_try='test -z "$ac_c_werror_flag"
16045 || test ! -s conftest.err'
2ba49b59
KC
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; } &&
16051 { ac_try='test -s conftest$ac_exeext'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
16057 ac_cv_search_opendir="none required"
16058else
16059 echo "$as_me: failed program was:" >&5
16060sed 's/^/| /' conftest.$ac_ext >&5
16061
16062fi
16063rm -f conftest.err conftest.$ac_objext \
16064 conftest$ac_exeext conftest.$ac_ext
16065if test "$ac_cv_search_opendir" = no; then
16066 for ac_lib in x; do
16067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16068 cat >conftest.$ac_ext <<_ACEOF
16069/* confdefs.h. */
16070_ACEOF
16071cat confdefs.h >>conftest.$ac_ext
16072cat >>conftest.$ac_ext <<_ACEOF
16073/* end confdefs.h. */
16074
16075/* Override any gcc2 internal prototype to avoid an error. */
16076#ifdef __cplusplus
16077extern "C"
16078#endif
16079/* We use char because int might match the return type of a gcc2
16080 builtin and then its argument prototype would still apply. */
16081char opendir ();
16082int
16083main ()
16084{
16085opendir ();
16086 ;
16087 return 0;
16088}
16089_ACEOF
16090rm -f conftest.$ac_objext conftest$ac_exeext
16091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16092 (eval $ac_link) 2>conftest.er1
16093 ac_status=$?
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } &&
49c96104
SE
16099 { ac_try='test -z "$ac_c_werror_flag"
16100 || test ! -s conftest.err'
2ba49b59
KC
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest$ac_exeext'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 ac_cv_search_opendir="-l$ac_lib"
16113break
16114else
16115 echo "$as_me: failed program was:" >&5
16116sed 's/^/| /' conftest.$ac_ext >&5
16117
16118fi
16119rm -f conftest.err conftest.$ac_objext \
16120 conftest$ac_exeext conftest.$ac_ext
16121 done
16122fi
16123LIBS=$ac_func_search_save_LIBS
16124fi
16125echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16126echo "${ECHO_T}$ac_cv_search_opendir" >&6
16127if test "$ac_cv_search_opendir" != no; then
16128 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16129
16130fi
16131
16132fi
16133
16134echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16135echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16136if test "${gcc_cv_header_string+set}" = set; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16138else
16139 cat >conftest.$ac_ext <<_ACEOF
16140/* confdefs.h. */
16141_ACEOF
16142cat confdefs.h >>conftest.$ac_ext
16143cat >>conftest.$ac_ext <<_ACEOF
16144/* end confdefs.h. */
16145#include <string.h>
16146#include <strings.h>
16147int
16148main ()
16149{
16150
16151 ;
16152 return 0;
16153}
16154_ACEOF
16155rm -f conftest.$ac_objext
16156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16157 (eval $ac_compile) 2>conftest.er1
16158 ac_status=$?
16159 grep -v '^ *+' conftest.er1 >conftest.err
16160 rm -f conftest.er1
16161 cat conftest.err >&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } &&
49c96104
SE
16164 { ac_try='test -z "$ac_c_werror_flag"
16165 || test ! -s conftest.err'
2ba49b59
KC
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; } &&
16171 { ac_try='test -s conftest.$ac_objext'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
16177 gcc_cv_header_string=yes
16178else
16179 echo "$as_me: failed program was:" >&5
16180sed 's/^/| /' conftest.$ac_ext >&5
16181
16182gcc_cv_header_string=no
16183fi
16184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16185fi
16186echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16187echo "${ECHO_T}$gcc_cv_header_string" >&6
16188if test $gcc_cv_header_string = yes; then
16189
16190cat >>confdefs.h <<\_ACEOF
16191#define STRING_WITH_STRINGS 1
16192_ACEOF
16193
2e0fbf77
JW
16194fi
16195
5464f5a1
NN
16196
16197
16198
16199
16200
16201
16202
633fd09f 16203for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 16204do
5464f5a1
NN
16205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16206echo "$as_me:$LINENO: checking for $ac_func" >&5
16207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16208if eval "test \"\${$as_ac_var+set}\" = set"; then
16209 echo $ECHO_N "(cached) $ECHO_C" >&6
16210else
16211 cat >conftest.$ac_ext <<_ACEOF
16212/* confdefs.h. */
16213_ACEOF
16214cat confdefs.h >>conftest.$ac_ext
16215cat >>conftest.$ac_ext <<_ACEOF
16216/* end confdefs.h. */
16217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16219#define $ac_func innocuous_$ac_func
16220
252b5132 16221/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
16222 which can conflict with char $ac_func (); below.
16223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16224 <limits.h> exists even on freestanding compilers. */
16225
16226#ifdef __STDC__
16227# include <limits.h>
16228#else
16229# include <assert.h>
16230#endif
6be7c12c 16231
5464f5a1 16232#undef $ac_func
252b5132 16233
5464f5a1
NN
16234/* Override any gcc2 internal prototype to avoid an error. */
16235#ifdef __cplusplus
16236extern "C"
16237{
16238#endif
16239/* We use char because int might match the return type of a gcc2
16240 builtin and then its argument prototype would still apply. */
16241char $ac_func ();
252b5132
RH
16242/* The GNU C library defines this for functions which it implements
16243 to always fail with ENOSYS. Some functions are actually named
16244 something starting with __ and the normal name is an alias. */
16245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16246choke me
16247#else
5464f5a1
NN
16248char (*f) () = $ac_func;
16249#endif
16250#ifdef __cplusplus
16251}
252b5132
RH
16252#endif
16253
5464f5a1
NN
16254int
16255main ()
16256{
16257return f != $ac_func;
16258 ;
16259 return 0;
16260}
16261_ACEOF
16262rm -f conftest.$ac_objext conftest$ac_exeext
16263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16264 (eval $ac_link) 2>conftest.er1
16265 ac_status=$?
16266 grep -v '^ *+' conftest.er1 >conftest.err
16267 rm -f conftest.er1
16268 cat conftest.err >&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
49c96104
SE
16271 { ac_try='test -z "$ac_c_werror_flag"
16272 || test ! -s conftest.err'
5464f5a1
NN
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16275 ac_status=$?
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } &&
16278 { ac_try='test -s conftest$ac_exeext'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16284 eval "$as_ac_var=yes"
16285else
16286 echo "$as_me: failed program was:" >&5
16287sed 's/^/| /' conftest.$ac_ext >&5
16288
16289eval "$as_ac_var=no"
16290fi
16291rm -f conftest.err conftest.$ac_objext \
16292 conftest$ac_exeext conftest.$ac_ext
16293fi
16294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16295echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16296if test `eval echo '${'$as_ac_var'}'` = yes; then
16297 cat >>confdefs.h <<_ACEOF
16298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16299_ACEOF
252b5132 16300
252b5132
RH
16301fi
16302done
16303
5464f5a1 16304
49c97a80
ILT
16305for ac_func in strtoull
16306do
5464f5a1
NN
16307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16308echo "$as_me:$LINENO: checking for $ac_func" >&5
16309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16310if eval "test \"\${$as_ac_var+set}\" = set"; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16312else
16313 cat >conftest.$ac_ext <<_ACEOF
16314/* confdefs.h. */
16315_ACEOF
16316cat confdefs.h >>conftest.$ac_ext
16317cat >>conftest.$ac_ext <<_ACEOF
16318/* end confdefs.h. */
16319/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16321#define $ac_func innocuous_$ac_func
16322
49c97a80 16323/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
16324 which can conflict with char $ac_func (); below.
16325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16326 <limits.h> exists even on freestanding compilers. */
16327
16328#ifdef __STDC__
16329# include <limits.h>
16330#else
16331# include <assert.h>
16332#endif
49c97a80 16333
5464f5a1 16334#undef $ac_func
49c97a80 16335
5464f5a1
NN
16336/* Override any gcc2 internal prototype to avoid an error. */
16337#ifdef __cplusplus
16338extern "C"
16339{
16340#endif
16341/* We use char because int might match the return type of a gcc2
16342 builtin and then its argument prototype would still apply. */
16343char $ac_func ();
49c97a80
ILT
16344/* The GNU C library defines this for functions which it implements
16345 to always fail with ENOSYS. Some functions are actually named
16346 something starting with __ and the normal name is an alias. */
16347#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16348choke me
16349#else
5464f5a1
NN
16350char (*f) () = $ac_func;
16351#endif
16352#ifdef __cplusplus
16353}
49c97a80
ILT
16354#endif
16355
5464f5a1
NN
16356int
16357main ()
16358{
16359return f != $ac_func;
16360 ;
16361 return 0;
16362}
16363_ACEOF
16364rm -f conftest.$ac_objext conftest$ac_exeext
16365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16366 (eval $ac_link) 2>conftest.er1
16367 ac_status=$?
16368 grep -v '^ *+' conftest.er1 >conftest.err
16369 rm -f conftest.er1
16370 cat conftest.err >&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } &&
49c96104
SE
16373 { ac_try='test -z "$ac_c_werror_flag"
16374 || test ! -s conftest.err'
5464f5a1
NN
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16377 ac_status=$?
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; } &&
16380 { ac_try='test -s conftest$ac_exeext'
16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382 (eval $ac_try) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; }; then
16386 eval "$as_ac_var=yes"
16387else
16388 echo "$as_me: failed program was:" >&5
16389sed 's/^/| /' conftest.$ac_ext >&5
16390
16391eval "$as_ac_var=no"
16392fi
16393rm -f conftest.err conftest.$ac_objext \
16394 conftest$ac_exeext conftest.$ac_ext
16395fi
16396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16397echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16398if test `eval echo '${'$as_ac_var'}'` = yes; then
16399 cat >>confdefs.h <<_ACEOF
16400#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16401_ACEOF
49c97a80 16402
49c97a80
ILT
16403fi
16404done
16405
6be7c12c 16406
2e9ebff5
JG
16407echo "$as_me:$LINENO: checking whether basename is declared" >&5
16408echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16409if test "${ac_cv_have_decl_basename+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411else
16412 cat >conftest.$ac_ext <<_ACEOF
16413/* confdefs.h. */
16414_ACEOF
16415cat confdefs.h >>conftest.$ac_ext
16416cat >>conftest.$ac_ext <<_ACEOF
16417/* end confdefs.h. */
ec7b76fe 16418$ac_includes_default
2e9ebff5
JG
16419int
16420main ()
16421{
16422#ifndef basename
16423 char *p = (char *) basename;
16424#endif
16425
16426 ;
16427 return 0;
16428}
16429_ACEOF
16430rm -f conftest.$ac_objext
16431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16432 (eval $ac_compile) 2>conftest.er1
16433 ac_status=$?
16434 grep -v '^ *+' conftest.er1 >conftest.err
16435 rm -f conftest.er1
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } &&
49c96104
SE
16439 { ac_try='test -z "$ac_c_werror_flag"
16440 || test ! -s conftest.err'
2e9ebff5
JG
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; } &&
16446 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16452 ac_cv_have_decl_basename=yes
16453else
16454 echo "$as_me: failed program was:" >&5
16455sed 's/^/| /' conftest.$ac_ext >&5
16456
16457ac_cv_have_decl_basename=no
16458fi
16459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16460fi
16461echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16462echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16463if test $ac_cv_have_decl_basename = yes; then
16464
16465cat >>confdefs.h <<_ACEOF
16466#define HAVE_DECL_BASENAME 1
16467_ACEOF
16468
16469
16470else
16471 cat >>confdefs.h <<_ACEOF
16472#define HAVE_DECL_BASENAME 0
16473_ACEOF
16474
16475
16476fi
16477
16478
ec7b76fe
JG
16479echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16480echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16481if test "${ac_cv_have_decl_ftello+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16483else
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{
16494#ifndef ftello
16495 char *p = (char *) ftello;
16496#endif
16497
16498 ;
16499 return 0;
16500}
16501_ACEOF
16502rm -f conftest.$ac_objext
16503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16504 (eval $ac_compile) 2>conftest.er1
16505 ac_status=$?
16506 grep -v '^ *+' conftest.er1 >conftest.err
16507 rm -f conftest.er1
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } &&
49c96104
SE
16511 { ac_try='test -z "$ac_c_werror_flag"
16512 || test ! -s conftest.err'
ec7b76fe
JG
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16515 ac_status=$?
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; } &&
16518 { ac_try='test -s conftest.$ac_objext'
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16524 ac_cv_have_decl_ftello=yes
16525else
16526 echo "$as_me: failed program was:" >&5
16527sed 's/^/| /' conftest.$ac_ext >&5
16528
16529ac_cv_have_decl_ftello=no
16530fi
16531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16532fi
16533echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16534echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16535if test $ac_cv_have_decl_ftello = yes; then
16536
16537cat >>confdefs.h <<_ACEOF
16538#define HAVE_DECL_FTELLO 1
16539_ACEOF
16540
16541
16542else
16543 cat >>confdefs.h <<_ACEOF
16544#define HAVE_DECL_FTELLO 0
16545_ACEOF
16546
16547
16548fi
16549
16550
16551echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16552echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16553if test "${ac_cv_have_decl_ftello64+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16555else
16556 cat >conftest.$ac_ext <<_ACEOF
16557/* confdefs.h. */
16558_ACEOF
16559cat confdefs.h >>conftest.$ac_ext
16560cat >>conftest.$ac_ext <<_ACEOF
16561/* end confdefs.h. */
16562$ac_includes_default
16563int
16564main ()
16565{
16566#ifndef ftello64
16567 char *p = (char *) ftello64;
16568#endif
16569
16570 ;
16571 return 0;
16572}
16573_ACEOF
16574rm -f conftest.$ac_objext
16575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16576 (eval $ac_compile) 2>conftest.er1
16577 ac_status=$?
16578 grep -v '^ *+' conftest.er1 >conftest.err
16579 rm -f conftest.er1
16580 cat conftest.err >&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } &&
49c96104
SE
16583 { ac_try='test -z "$ac_c_werror_flag"
16584 || test ! -s conftest.err'
ec7b76fe
JG
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; } &&
16590 { ac_try='test -s conftest.$ac_objext'
16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592 (eval $ac_try) 2>&5
16593 ac_status=$?
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); }; }; then
16596 ac_cv_have_decl_ftello64=yes
16597else
16598 echo "$as_me: failed program was:" >&5
16599sed 's/^/| /' conftest.$ac_ext >&5
16600
16601ac_cv_have_decl_ftello64=no
16602fi
16603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16604fi
16605echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16606echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16607if test $ac_cv_have_decl_ftello64 = yes; then
16608
16609cat >>confdefs.h <<_ACEOF
16610#define HAVE_DECL_FTELLO64 1
16611_ACEOF
16612
16613
16614else
16615 cat >>confdefs.h <<_ACEOF
16616#define HAVE_DECL_FTELLO64 0
16617_ACEOF
16618
16619
16620fi
16621
16622
16623echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16624echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16625if test "${ac_cv_have_decl_fseeko+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16627else
16628 cat >conftest.$ac_ext <<_ACEOF
16629/* confdefs.h. */
16630_ACEOF
16631cat confdefs.h >>conftest.$ac_ext
16632cat >>conftest.$ac_ext <<_ACEOF
16633/* end confdefs.h. */
16634$ac_includes_default
16635int
16636main ()
16637{
16638#ifndef fseeko
16639 char *p = (char *) fseeko;
16640#endif
16641
16642 ;
16643 return 0;
16644}
16645_ACEOF
16646rm -f conftest.$ac_objext
16647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16648 (eval $ac_compile) 2>conftest.er1
16649 ac_status=$?
16650 grep -v '^ *+' conftest.er1 >conftest.err
16651 rm -f conftest.er1
16652 cat conftest.err >&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
49c96104
SE
16655 { ac_try='test -z "$ac_c_werror_flag"
16656 || test ! -s conftest.err'
ec7b76fe
JG
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_cv_have_decl_fseeko=yes
16669else
16670 echo "$as_me: failed program was:" >&5
16671sed 's/^/| /' conftest.$ac_ext >&5
16672
16673ac_cv_have_decl_fseeko=no
16674fi
16675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16676fi
16677echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16678echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16679if test $ac_cv_have_decl_fseeko = yes; then
16680
16681cat >>confdefs.h <<_ACEOF
16682#define HAVE_DECL_FSEEKO 1
16683_ACEOF
16684
16685
16686else
16687 cat >>confdefs.h <<_ACEOF
16688#define HAVE_DECL_FSEEKO 0
16689_ACEOF
16690
16691
16692fi
16693
16694
16695echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16696echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16697if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16699else
16700 cat >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{
16710#ifndef fseeko64
16711 char *p = (char *) fseeko64;
16712#endif
16713
16714 ;
16715 return 0;
16716}
16717_ACEOF
16718rm -f conftest.$ac_objext
16719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16720 (eval $ac_compile) 2>conftest.er1
16721 ac_status=$?
16722 grep -v '^ *+' conftest.er1 >conftest.err
16723 rm -f conftest.er1
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
49c96104
SE
16727 { ac_try='test -z "$ac_c_werror_flag"
16728 || test ! -s conftest.err'
ec7b76fe
JG
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16731 ac_status=$?
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; } &&
16734 { ac_try='test -s conftest.$ac_objext'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 ac_cv_have_decl_fseeko64=yes
16741else
16742 echo "$as_me: failed program was:" >&5
16743sed 's/^/| /' conftest.$ac_ext >&5
16744
16745ac_cv_have_decl_fseeko64=no
16746fi
16747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16748fi
16749echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16750echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16751if test $ac_cv_have_decl_fseeko64 = yes; then
16752
16753cat >>confdefs.h <<_ACEOF
16754#define HAVE_DECL_FSEEKO64 1
16755_ACEOF
16756
16757
16758else
16759 cat >>confdefs.h <<_ACEOF
16760#define HAVE_DECL_FSEEKO64 0
16761_ACEOF
16762
16763
16764fi
16765
16766
2e9ebff5 16767
6be7c12c 16768
252b5132 16769case "${host}" in
855b0be7 16770*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
16771
16772cat >>confdefs.h <<\_ACEOF
252b5132 16773#define USE_BINARY_FOPEN 1
5464f5a1 16774_ACEOF
252b5132
RH
16775 ;;
16776esac
16777
d34a2b1d
JG
16778echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16779echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16780if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 16781 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16782else
5464f5a1
NN
16783 cat >conftest.$ac_ext <<_ACEOF
16784/* confdefs.h. */
16785_ACEOF
16786cat confdefs.h >>conftest.$ac_ext
16787cat >>conftest.$ac_ext <<_ACEOF
16788/* end confdefs.h. */
d34a2b1d 16789$ac_includes_default
5464f5a1
NN
16790int
16791main ()
16792{
d34a2b1d
JG
16793#ifndef ffs
16794 char *p = (char *) ffs;
16795#endif
16796
5464f5a1
NN
16797 ;
16798 return 0;
16799}
16800_ACEOF
16801rm -f conftest.$ac_objext
16802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16803 (eval $ac_compile) 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
49c96104
SE
16810 { ac_try='test -z "$ac_c_werror_flag"
16811 || test ! -s conftest.err'
5464f5a1
NN
16812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813 (eval $ac_try) 2>&5
16814 ac_status=$?
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); }; } &&
16817 { ac_try='test -s conftest.$ac_objext'
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; }; then
d34a2b1d 16823 ac_cv_have_decl_ffs=yes
252b5132 16824else
5464f5a1
NN
16825 echo "$as_me: failed program was:" >&5
16826sed 's/^/| /' conftest.$ac_ext >&5
16827
d34a2b1d 16828ac_cv_have_decl_ffs=no
252b5132 16829fi
5464f5a1 16830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16831fi
d34a2b1d
JG
16832echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16833echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16834if test $ac_cv_have_decl_ffs = yes; then
252b5132 16835
d34a2b1d
JG
16836cat >>confdefs.h <<_ACEOF
16837#define HAVE_DECL_FFS 1
16838_ACEOF
5464f5a1 16839
d34a2b1d
JG
16840
16841else
16842 cat >>confdefs.h <<_ACEOF
16843#define HAVE_DECL_FFS 0
5464f5a1 16844_ACEOF
252b5132 16845
d34a2b1d 16846
252b5132
RH
16847fi
16848
d34a2b1d
JG
16849
16850echo "$as_me:$LINENO: checking whether free is declared" >&5
16851echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16852if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 16853 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16854else
5464f5a1
NN
16855 cat >conftest.$ac_ext <<_ACEOF
16856/* confdefs.h. */
16857_ACEOF
16858cat confdefs.h >>conftest.$ac_ext
16859cat >>conftest.$ac_ext <<_ACEOF
16860/* end confdefs.h. */
d34a2b1d 16861$ac_includes_default
5464f5a1
NN
16862int
16863main ()
16864{
d34a2b1d
JG
16865#ifndef free
16866 char *p = (char *) free;
16867#endif
16868
5464f5a1
NN
16869 ;
16870 return 0;
16871}
16872_ACEOF
16873rm -f conftest.$ac_objext
16874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16875 (eval $ac_compile) 2>conftest.er1
16876 ac_status=$?
16877 grep -v '^ *+' conftest.er1 >conftest.err
16878 rm -f conftest.er1
16879 cat conftest.err >&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
49c96104
SE
16882 { ac_try='test -z "$ac_c_werror_flag"
16883 || test ! -s conftest.err'
5464f5a1
NN
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; } &&
16889 { ac_try='test -s conftest.$ac_objext'
16890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
d34a2b1d 16895 ac_cv_have_decl_free=yes
252b5132 16896else
5464f5a1
NN
16897 echo "$as_me: failed program was:" >&5
16898sed 's/^/| /' conftest.$ac_ext >&5
16899
d34a2b1d 16900ac_cv_have_decl_free=no
252b5132 16901fi
5464f5a1 16902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16903fi
d34a2b1d
JG
16904echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16905echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16906if test $ac_cv_have_decl_free = yes; then
16907
16908cat >>confdefs.h <<_ACEOF
16909#define HAVE_DECL_FREE 1
16910_ACEOF
252b5132 16911
5464f5a1 16912
d34a2b1d
JG
16913else
16914 cat >>confdefs.h <<_ACEOF
16915#define HAVE_DECL_FREE 0
5464f5a1 16916_ACEOF
252b5132 16917
d34a2b1d 16918
252b5132
RH
16919fi
16920
d34a2b1d
JG
16921
16922echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16923echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16924if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 16925 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16926else
5464f5a1
NN
16927 cat >conftest.$ac_ext <<_ACEOF
16928/* confdefs.h. */
16929_ACEOF
16930cat confdefs.h >>conftest.$ac_ext
16931cat >>conftest.$ac_ext <<_ACEOF
16932/* end confdefs.h. */
d34a2b1d 16933$ac_includes_default
5464f5a1
NN
16934int
16935main ()
16936{
d34a2b1d
JG
16937#ifndef getenv
16938 char *p = (char *) getenv;
16939#endif
16940
5464f5a1
NN
16941 ;
16942 return 0;
16943}
16944_ACEOF
16945rm -f conftest.$ac_objext
16946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947 (eval $ac_compile) 2>conftest.er1
16948 ac_status=$?
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
49c96104
SE
16954 { ac_try='test -z "$ac_c_werror_flag"
16955 || test ! -s conftest.err'
5464f5a1
NN
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; } &&
16961 { ac_try='test -s conftest.$ac_objext'
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; }; then
d34a2b1d 16967 ac_cv_have_decl_getenv=yes
252b5132 16968else
5464f5a1
NN
16969 echo "$as_me: failed program was:" >&5
16970sed 's/^/| /' conftest.$ac_ext >&5
16971
d34a2b1d 16972ac_cv_have_decl_getenv=no
252b5132 16973fi
5464f5a1 16974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16975fi
d34a2b1d
JG
16976echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16977echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16978if test $ac_cv_have_decl_getenv = yes; then
252b5132 16979
d34a2b1d
JG
16980cat >>confdefs.h <<_ACEOF
16981#define HAVE_DECL_GETENV 1
16982_ACEOF
5464f5a1 16983
d34a2b1d
JG
16984
16985else
16986 cat >>confdefs.h <<_ACEOF
16987#define HAVE_DECL_GETENV 0
5464f5a1 16988_ACEOF
252b5132 16989
d34a2b1d 16990
252b5132
RH
16991fi
16992
d34a2b1d
JG
16993
16994echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16995echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16996if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 16997 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16998else
5464f5a1
NN
16999 cat >conftest.$ac_ext <<_ACEOF
17000/* confdefs.h. */
17001_ACEOF
17002cat confdefs.h >>conftest.$ac_ext
17003cat >>conftest.$ac_ext <<_ACEOF
17004/* end confdefs.h. */
d34a2b1d 17005$ac_includes_default
5464f5a1
NN
17006int
17007main ()
17008{
d34a2b1d
JG
17009#ifndef malloc
17010 char *p = (char *) malloc;
17011#endif
17012
5464f5a1
NN
17013 ;
17014 return 0;
17015}
17016_ACEOF
17017rm -f conftest.$ac_objext
17018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17019 (eval $ac_compile) 2>conftest.er1
17020 ac_status=$?
17021 grep -v '^ *+' conftest.er1 >conftest.err
17022 rm -f conftest.er1
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
49c96104
SE
17026 { ac_try='test -z "$ac_c_werror_flag"
17027 || test ! -s conftest.err'
5464f5a1
NN
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; } &&
17033 { ac_try='test -s conftest.$ac_objext'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
d34a2b1d 17039 ac_cv_have_decl_malloc=yes
252b5132 17040else
5464f5a1
NN
17041 echo "$as_me: failed program was:" >&5
17042sed 's/^/| /' conftest.$ac_ext >&5
17043
d34a2b1d 17044ac_cv_have_decl_malloc=no
252b5132 17045fi
5464f5a1 17046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17047fi
d34a2b1d
JG
17048echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17049echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17050if test $ac_cv_have_decl_malloc = yes; then
252b5132 17051
d34a2b1d
JG
17052cat >>confdefs.h <<_ACEOF
17053#define HAVE_DECL_MALLOC 1
17054_ACEOF
5464f5a1 17055
d34a2b1d
JG
17056
17057else
17058 cat >>confdefs.h <<_ACEOF
17059#define HAVE_DECL_MALLOC 0
5464f5a1 17060_ACEOF
252b5132 17061
d34a2b1d 17062
252b5132
RH
17063fi
17064
d34a2b1d
JG
17065
17066echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17067echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17068if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 17069 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17070else
5464f5a1
NN
17071 cat >conftest.$ac_ext <<_ACEOF
17072/* confdefs.h. */
17073_ACEOF
17074cat confdefs.h >>conftest.$ac_ext
17075cat >>conftest.$ac_ext <<_ACEOF
17076/* end confdefs.h. */
d34a2b1d 17077$ac_includes_default
5464f5a1
NN
17078int
17079main ()
17080{
d34a2b1d
JG
17081#ifndef realloc
17082 char *p = (char *) realloc;
17083#endif
17084
5464f5a1
NN
17085 ;
17086 return 0;
17087}
17088_ACEOF
17089rm -f conftest.$ac_objext
17090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17091 (eval $ac_compile) 2>conftest.er1
17092 ac_status=$?
17093 grep -v '^ *+' conftest.er1 >conftest.err
17094 rm -f conftest.er1
17095 cat conftest.err >&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } &&
49c96104
SE
17098 { ac_try='test -z "$ac_c_werror_flag"
17099 || test ! -s conftest.err'
5464f5a1
NN
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest.$ac_objext'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
d34a2b1d 17111 ac_cv_have_decl_realloc=yes
252b5132 17112else
5464f5a1
NN
17113 echo "$as_me: failed program was:" >&5
17114sed 's/^/| /' conftest.$ac_ext >&5
17115
d34a2b1d 17116ac_cv_have_decl_realloc=no
252b5132 17117fi
5464f5a1 17118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17119fi
d34a2b1d
JG
17120echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17121echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17122if test $ac_cv_have_decl_realloc = yes; then
17123
17124cat >>confdefs.h <<_ACEOF
17125#define HAVE_DECL_REALLOC 1
17126_ACEOF
252b5132 17127
5464f5a1 17128
d34a2b1d
JG
17129else
17130 cat >>confdefs.h <<_ACEOF
17131#define HAVE_DECL_REALLOC 0
efa9bda4
AL
17132_ACEOF
17133
d34a2b1d 17134
efa9bda4
AL
17135fi
17136
d34a2b1d 17137
be5cacdb
L
17138echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17139echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17140if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17142else
17143 cat >conftest.$ac_ext <<_ACEOF
17144/* confdefs.h. */
17145_ACEOF
17146cat confdefs.h >>conftest.$ac_ext
17147cat >>conftest.$ac_ext <<_ACEOF
17148/* end confdefs.h. */
17149$ac_includes_default
17150int
17151main ()
17152{
17153#ifndef stpcpy
17154 char *p = (char *) stpcpy;
17155#endif
17156
17157 ;
17158 return 0;
17159}
17160_ACEOF
17161rm -f conftest.$ac_objext
17162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17163 (eval $ac_compile) 2>conftest.er1
17164 ac_status=$?
17165 grep -v '^ *+' conftest.er1 >conftest.err
17166 rm -f conftest.er1
17167 cat conftest.err >&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } &&
49c96104
SE
17170 { ac_try='test -z "$ac_c_werror_flag"
17171 || test ! -s conftest.err'
be5cacdb
L
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; } &&
17177 { ac_try='test -s conftest.$ac_objext'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17183 ac_cv_have_decl_stpcpy=yes
17184else
17185 echo "$as_me: failed program was:" >&5
17186sed 's/^/| /' conftest.$ac_ext >&5
17187
17188ac_cv_have_decl_stpcpy=no
17189fi
17190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17191fi
17192echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17193echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17194if test $ac_cv_have_decl_stpcpy = yes; then
17195
17196cat >>confdefs.h <<_ACEOF
17197#define HAVE_DECL_STPCPY 1
17198_ACEOF
17199
17200
17201else
17202 cat >>confdefs.h <<_ACEOF
17203#define HAVE_DECL_STPCPY 0
17204_ACEOF
17205
17206
17207fi
17208
17209
d34a2b1d
JG
17210echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17211echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17212if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17214else
17215 cat >conftest.$ac_ext <<_ACEOF
17216/* confdefs.h. */
17217_ACEOF
17218cat confdefs.h >>conftest.$ac_ext
17219cat >>conftest.$ac_ext <<_ACEOF
17220/* end confdefs.h. */
d34a2b1d 17221$ac_includes_default
efa9bda4
AL
17222int
17223main ()
17224{
d34a2b1d
JG
17225#ifndef strstr
17226 char *p = (char *) strstr;
17227#endif
17228
efa9bda4
AL
17229 ;
17230 return 0;
17231}
17232_ACEOF
17233rm -f conftest.$ac_objext
17234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17235 (eval $ac_compile) 2>conftest.er1
17236 ac_status=$?
17237 grep -v '^ *+' conftest.er1 >conftest.err
17238 rm -f conftest.er1
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } &&
49c96104
SE
17242 { ac_try='test -z "$ac_c_werror_flag"
17243 || test ! -s conftest.err'
efa9bda4
AL
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; } &&
17249 { ac_try='test -s conftest.$ac_objext'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
d34a2b1d 17255 ac_cv_have_decl_strstr=yes
efa9bda4
AL
17256else
17257 echo "$as_me: failed program was:" >&5
17258sed 's/^/| /' conftest.$ac_ext >&5
17259
d34a2b1d 17260ac_cv_have_decl_strstr=no
efa9bda4
AL
17261fi
17262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17263fi
d34a2b1d
JG
17264echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17265echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17266if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 17267
d34a2b1d
JG
17268cat >>confdefs.h <<_ACEOF
17269#define HAVE_DECL_STRSTR 1
17270_ACEOF
efa9bda4 17271
d34a2b1d
JG
17272
17273else
17274 cat >>confdefs.h <<_ACEOF
17275#define HAVE_DECL_STRSTR 0
5464f5a1 17276_ACEOF
252b5132 17277
d34a2b1d 17278
252b5132
RH
17279fi
17280
6be7c12c 17281
36527912
AJ
17282echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17283echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17284if test "${ac_cv_have_decl_snprintf+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17286else
17287 cat >conftest.$ac_ext <<_ACEOF
17288/* confdefs.h. */
17289_ACEOF
17290cat confdefs.h >>conftest.$ac_ext
17291cat >>conftest.$ac_ext <<_ACEOF
17292/* end confdefs.h. */
17293$ac_includes_default
17294int
17295main ()
17296{
17297#ifndef snprintf
17298 char *p = (char *) snprintf;
17299#endif
17300
17301 ;
17302 return 0;
17303}
17304_ACEOF
17305rm -f conftest.$ac_objext
17306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17307 (eval $ac_compile) 2>conftest.er1
17308 ac_status=$?
17309 grep -v '^ *+' conftest.er1 >conftest.err
17310 rm -f conftest.er1
17311 cat conftest.err >&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } &&
49c96104
SE
17314 { ac_try='test -z "$ac_c_werror_flag"
17315 || test ! -s conftest.err'
36527912
AJ
17316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317 (eval $ac_try) 2>&5
17318 ac_status=$?
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; } &&
17321 { ac_try='test -s conftest.$ac_objext'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 ac_cv_have_decl_snprintf=yes
17328else
17329 echo "$as_me: failed program was:" >&5
17330sed 's/^/| /' conftest.$ac_ext >&5
17331
17332ac_cv_have_decl_snprintf=no
17333fi
17334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17335fi
17336echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17337echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17338if test $ac_cv_have_decl_snprintf = yes; then
17339
17340cat >>confdefs.h <<_ACEOF
17341#define HAVE_DECL_SNPRINTF 1
17342_ACEOF
17343
17344
17345else
17346 cat >>confdefs.h <<_ACEOF
17347#define HAVE_DECL_SNPRINTF 0
17348_ACEOF
17349
17350
17351fi
17352
17353
17354echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17355echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17356if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17358else
17359 cat >conftest.$ac_ext <<_ACEOF
17360/* confdefs.h. */
17361_ACEOF
17362cat confdefs.h >>conftest.$ac_ext
17363cat >>conftest.$ac_ext <<_ACEOF
17364/* end confdefs.h. */
17365$ac_includes_default
17366int
17367main ()
17368{
17369#ifndef vsnprintf
17370 char *p = (char *) vsnprintf;
17371#endif
17372
17373 ;
17374 return 0;
17375}
17376_ACEOF
17377rm -f conftest.$ac_objext
17378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17379 (eval $ac_compile) 2>conftest.er1
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
49c96104
SE
17386 { ac_try='test -z "$ac_c_werror_flag"
17387 || test ! -s conftest.err'
36527912
AJ
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest.$ac_objext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_have_decl_vsnprintf=yes
17400else
17401 echo "$as_me: failed program was:" >&5
17402sed 's/^/| /' conftest.$ac_ext >&5
17403
17404ac_cv_have_decl_vsnprintf=no
17405fi
17406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17407fi
17408echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17409echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17410if test $ac_cv_have_decl_vsnprintf = yes; then
17411
17412cat >>confdefs.h <<_ACEOF
17413#define HAVE_DECL_VSNPRINTF 1
17414_ACEOF
17415
17416
17417else
17418 cat >>confdefs.h <<_ACEOF
17419#define HAVE_DECL_VSNPRINTF 0
17420_ACEOF
17421
17422
17423fi
17424
17425
d34a2b1d 17426
252b5132
RH
17427# If we are configured native, pick a core file support file.
17428COREFILE=
17429COREFLAG=
17430TRAD_HEADER=
17431if test "${target}" = "${host}"; then
17432 case "${host}" in
13dfd2d0 17433 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
17434 COREFILE=''
17435 ;;
ed84e695 17436 alpha*-*-linux-*)
252b5132
RH
17437 COREFILE=trad-core.lo
17438 TRAD_HEADER='"hosts/alphalinux.h"'
17439 ;;
690cc98b
NC
17440 alpha*-*-netbsd* | alpha*-*-openbsd*)
17441 COREFILE=netbsd-core.lo
17442 ;;
252b5132 17443 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
17444 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
17445 COREFILE='' ;;
e33533a4
MK
17446 arm-*-netbsd* | arm-*-openbsd*)
17447 COREFILE=netbsd-core.lo
17448 ;;
252b5132
RH
17449 arm-*-riscix) COREFILE=trad-core.lo ;;
17450 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
17451 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
17452 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
17453 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
17454 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
17455 hppa*-*-netbsd* | hppa*-*-openbsd*)
17456 COREFILE=netbsd-core.lo
17457 ;;
17458
dc810e39 17459 i370-*-*)
5b93d8bb
AM
17460 COREFILE=trad-core.lo
17461 TRAD_HEADER='"hosts/i370linux.h"'
17462 ;;
17463
80c7c40a 17464 i[3-7]86-sequent-bsd*)
5b93d8bb 17465 COREFILE=trad-core.lo
252b5132
RH
17466 TRAD_HEADER='"hosts/symmetry.h"'
17467 ;;
80c7c40a
NC
17468 i[3-7]86-sequent-sysv4*) ;;
17469 i[3-7]86-sequent-sysv*)
252b5132
RH
17470 COREFILE=trad-core.lo
17471 TRAD_HEADER='"hosts/symmetry.h"'
17472 ;;
80c7c40a 17473 i[3-7]86-*-bsdi)
7e3b3466
NC
17474 COREFILE=
17475 ;;
d2bef492 17476 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
17477 COREFILE=trad-core.lo
17478 TRAD_HEADER='"hosts/i386bsd.h"'
17479 ;;
0b3e17e9 17480 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
d4af9775
DB
17481 COREFILE=''
17482 TRAD_HEADER='"hosts/i386bsd.h"'
17483 ;;
4615568e 17484 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
17485 COREFILE=netbsd-core.lo
17486 ;;
80c7c40a 17487 i[3-7]86-esix-sysv3*)
252b5132
RH
17488 COREFILE=trad-core.lo
17489 TRAD_HEADER='"hosts/esix.h"'
17490 ;;
80c7c40a 17491 i[3-7]86-*-sco3.2v5*)
252b5132
RH
17492 COREFILE=sco5-core.lo
17493 ;;
80c7c40a 17494 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
17495 COREFILE=trad-core.lo
17496 TRAD_HEADER='"hosts/i386sco.h"'
17497 ;;
80c7c40a 17498 i[3-7]86-*-mach3*)
252b5132
RH
17499 COREFILE=trad-core.lo
17500 TRAD_HEADER='"hosts/i386mach3.h"'
17501 ;;
ed84e695 17502 i[3-7]86-*-linux-*)
252b5132
RH
17503 COREFILE=trad-core.lo
17504 TRAD_HEADER='"hosts/i386linux.h"'
17505 ;;
80c7c40a
NC
17506 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
17507 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
17508 i860-*-mach3* | i860-*-osf1*)
17509 COREFILE=trad-core.lo
17510 TRAD_HEADER='"hosts/i860mach3.h"'
17511 ;;
252b5132
RH
17512 mips-*-netbsd* | mips*-*-openbsd*)
17513 COREFILE=netbsd-core.lo
17514 ;;
17515 mips-dec-*)
17516 COREFILE=trad-core.lo
17517 TRAD_HEADER='"hosts/decstation.h"'
17518 ;;
17519 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
17520 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
17521 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
17522 mips-*-sysv4*) ;;
17523 mips-*-sysv* | mips-*-riscos*)
17524 COREFILE=trad-core.lo
17525 TRAD_HEADER='"hosts/riscos.h"'
17526 ;;
17527 mips-sony-bsd*)
17528 COREFILE=trad-core.lo
17529 TRAD_HEADER='"hosts/news-mips.h"'
17530 ;;
17531 m68*-bull*-sysv*)
17532 COREFILE=trad-core.lo
17533 TRAD_HEADER='"hosts/dpx2.h"'
17534 ;;
17535 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
17536 m68*-hp-bsd*)
17537 COREFILE=trad-core.lo
17538 TRAD_HEADER='"hosts/hp300bsd.h"'
17539 ;;
ed84e695 17540 m68*-*-linux-*)
252b5132
RH
17541 COREFILE=trad-core.lo
17542 TRAD_HEADER='"hosts/m68klinux.h"'
17543 ;;
17544 m68*-motorola-sysv*)
17545 COREFILE=trad-core.lo
17546 TRAD_HEADER='"hosts/delta68.h"'
17547 ;;
17548 m68*-sony-*)
17549 COREFILE=trad-core.lo
17550 TRAD_HEADER='"hosts/news.h"'
17551 ;;
17552 m68*-*-netbsd* | m68*-*-openbsd*)
17553 COREFILE=netbsd-core.lo
17554 ;;
17555 m68*-apple-aux*)
17556 COREFILE=trad-core.lo
17557 TRAD_HEADER='"hosts/m68kaux.h"'
17558 ;;
eb1e0e80
NC
17559 m88*-*-sysv4*)
17560 ;;
17561 m88*-motorola-sysv*)
17562 COREFILE=ptrace-core.lo
17563 ;;
252b5132
RH
17564 m88*-*-mach3*)
17565 COREFILE=trad-core.lo
17566 TRAD_HEADER='"hosts/m88kmach3.h"'
17567 ;;
c6f8758f
NC
17568 m88*-*-openbsd*)
17569 COREFILE=netbsd-core.lo
17570 ;;
252b5132
RH
17571 ns32k-pc532-mach)
17572 COREFILE=trad-core.lo
17573 TRAD_HEADER='"hosts/pc532mach.h"'
17574 ;;
17575 ns32k-*-netbsd* | ns32k-*-openbsd*)
17576 COREFILE=netbsd-core.lo
17577 ;;
eb1e0e80
NC
17578 rs6000-*-lynx*)
17579 COREFILE=lynx-core.lo
17580 ;;
17581 rs6000-*-aix5.* | powerpc-*-aix5.*)
17582 COREFILE=rs6000-core.lo
17583 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17584 ;;
83954261 17585 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
17586 COREFILE=rs6000-core.lo
17587 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
17588 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17589 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
17590 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17591echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17592 cat >conftest.$ac_ext <<_ACEOF
17593/* confdefs.h. */
17594_ACEOF
17595cat confdefs.h >>conftest.$ac_ext
17596cat >>conftest.$ac_ext <<_ACEOF
17597/* end confdefs.h. */
83954261 17598#include <core.h>
5464f5a1
NN
17599int
17600main ()
17601{
83954261 17602struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
17603 ;
17604 return 0;
17605}
17606_ACEOF
17607rm -f conftest.$ac_objext
17608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17609 (eval $ac_compile) 2>conftest.er1
17610 ac_status=$?
17611 grep -v '^ *+' conftest.er1 >conftest.err
17612 rm -f conftest.er1
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
49c96104
SE
17616 { ac_try='test -z "$ac_c_werror_flag"
17617 || test ! -s conftest.err'
5464f5a1
NN
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } &&
17623 { ac_try='test -s conftest.$ac_objext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17626 ac_status=$?
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629
17630cat >>confdefs.h <<\_ACEOF
83954261 17631#define HAVE_ST_C_IMPL 1
5464f5a1 17632_ACEOF
83954261 17633
5464f5a1
NN
17634 echo "$as_me:$LINENO: result: yes" >&5
17635echo "${ECHO_T}yes" >&6
83954261 17636else
5464f5a1
NN
17637 echo "$as_me: failed program was:" >&5
17638sed 's/^/| /' conftest.$ac_ext >&5
17639
17640echo "$as_me:$LINENO: result: no" >&5
17641echo "${ECHO_T}no" >&6
83954261 17642fi
5464f5a1 17643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 17644 ;;
252b5132
RH
17645 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
17646 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
17647 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
17648 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
17649 powerpc-*-beos*) ;;
13dfd2d0
NC
17650 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17651 COREFILE='' ;;
252b5132 17652 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 17653 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 17654 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
17655 sh*-*-netbsd* | sh*-*-openbsd*)
17656 COREFILE=netbsd-core.lo
17657 ;;
a9bf1154 17658 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
17659 COREFILE=netbsd-core.lo
17660 ;;
17661 tahoe-*-*)
17662 COREFILE=trad-core.lo
17663 TRAD_HEADER='"hosts/tahoe.h"'
17664 ;;
de6e5e1a
NC
17665 vax-*-netbsd* | vax-*-openbsd*)
17666 COREFILE=netbsd-core.lo
17667 ;;
252b5132
RH
17668 vax-*-ultrix2*)
17669 COREFILE=trad-core.lo
17670 TRAD_HEADER='"hosts/vaxult2.h"'
17671 ;;
17672 vax-*-ultrix*)
17673 COREFILE=trad-core.lo
17674 TRAD_HEADER='"hosts/vaxult2.h"'
17675 ;;
ed84e695 17676 vax-*-linux-*)
f8fc3443
NC
17677 COREFILE=trad-core.lo
17678 TRAD_HEADER='"hosts/vaxlinux.h"'
17679 ;;
252b5132
RH
17680 vax-*-*)
17681 COREFILE=trad-core.lo
17682 TRAD_HEADER='"hosts/vaxbsd.h"'
17683 ;;
85cfd8d3
MK
17684 x86_64-*-netbsd* | x86_64-*-openbsd*)
17685 COREFILE=netbsd-core.lo
17686 ;;
252b5132
RH
17687 esac
17688
17689 case "$COREFILE" in
17690 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
17691 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
17692 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
17693 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
17694 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
17695 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
17696 osf-core.lo) COREFLAG=-DOSF_CORE ;;
17697 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
17698 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
17699 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17700 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17701 esac
17702
17703 # ELF corefile support has several flavors, but all of
17704 # them use something called <sys/procfs.h>
5464f5a1
NN
17705
17706for ac_header in sys/procfs.h
252b5132 17707do
5464f5a1
NN
17708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17709if eval "test \"\${$as_ac_Header+set}\" = set"; then
17710 echo "$as_me:$LINENO: checking for $ac_header" >&5
17711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17712if eval "test \"\${$as_ac_Header+set}\" = set"; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17714fi
17715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17716echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17717else
17718 # Is the header compilable?
17719echo "$as_me:$LINENO: checking $ac_header usability" >&5
17720echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17721cat >conftest.$ac_ext <<_ACEOF
17722/* confdefs.h. */
17723_ACEOF
17724cat confdefs.h >>conftest.$ac_ext
17725cat >>conftest.$ac_ext <<_ACEOF
17726/* end confdefs.h. */
17727$ac_includes_default
17728#include <$ac_header>
17729_ACEOF
17730rm -f conftest.$ac_objext
17731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17732 (eval $ac_compile) 2>conftest.er1
17733 ac_status=$?
17734 grep -v '^ *+' conftest.er1 >conftest.err
17735 rm -f conftest.er1
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
49c96104
SE
17739 { ac_try='test -z "$ac_c_werror_flag"
17740 || test ! -s conftest.err'
5464f5a1
NN
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; } &&
17746 { ac_try='test -s conftest.$ac_objext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_header_compiler=yes
17753else
17754 echo "$as_me: failed program was:" >&5
17755sed 's/^/| /' conftest.$ac_ext >&5
17756
17757ac_header_compiler=no
17758fi
17759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17760echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17761echo "${ECHO_T}$ac_header_compiler" >&6
17762
17763# Is the header present?
17764echo "$as_me:$LINENO: checking $ac_header presence" >&5
17765echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17766cat >conftest.$ac_ext <<_ACEOF
17767/* confdefs.h. */
17768_ACEOF
17769cat confdefs.h >>conftest.$ac_ext
17770cat >>conftest.$ac_ext <<_ACEOF
17771/* end confdefs.h. */
17772#include <$ac_header>
17773_ACEOF
17774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17776 ac_status=$?
17777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } >/dev/null; then
17782 if test -s conftest.err; then
17783 ac_cpp_err=$ac_c_preproc_warn_flag
17784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17785 else
17786 ac_cpp_err=
17787 fi
252b5132 17788else
5464f5a1 17789 ac_cpp_err=yes
252b5132 17790fi
5464f5a1
NN
17791if test -z "$ac_cpp_err"; then
17792 ac_header_preproc=yes
17793else
17794 echo "$as_me: failed program was:" >&5
17795sed 's/^/| /' conftest.$ac_ext >&5
17796
17797 ac_header_preproc=no
252b5132 17798fi
5464f5a1
NN
17799rm -f conftest.err conftest.$ac_ext
17800echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17801echo "${ECHO_T}$ac_header_preproc" >&6
17802
17803# So? What about this header?
17804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17805 yes:no: )
17806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17807echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17809echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17810 ac_header_preproc=yes
17811 ;;
17812 no:yes:* )
17813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17814echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17816echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17818echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17820echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17822echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17824echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17825 (
17826 cat <<\_ASBOX
17827## ------------------------------------------ ##
17828## Report this to the AC_PACKAGE_NAME lists. ##
17829## ------------------------------------------ ##
17830_ASBOX
17831 ) |
17832 sed "s/^/$as_me: WARNING: /" >&2
17833 ;;
17834esac
17835echo "$as_me:$LINENO: checking for $ac_header" >&5
17836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17837if eval "test \"\${$as_ac_Header+set}\" = set"; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 17839else
5464f5a1
NN
17840 eval "$as_ac_Header=\$ac_header_preproc"
17841fi
17842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17844
252b5132 17845fi
5464f5a1
NN
17846if test `eval echo '${'$as_ac_Header'}'` = yes; then
17847 cat >>confdefs.h <<_ACEOF
17848#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17849_ACEOF
17850
17851fi
17852
252b5132
RH
17853done
17854
17855 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
17856 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17857echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17858 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17860else
17861 cat >conftest.$ac_ext <<_ACEOF
17862/* confdefs.h. */
17863_ACEOF
17864cat confdefs.h >>conftest.$ac_ext
17865cat >>conftest.$ac_ext <<_ACEOF
17866/* end confdefs.h. */
7ee38065
MS
17867
17868#define _SYSCALL32
252b5132 17869#include <sys/procfs.h>
5464f5a1
NN
17870int
17871main ()
17872{
252b5132 17873prstatus_t avar
5464f5a1
NN
17874 ;
17875 return 0;
17876}
17877_ACEOF
17878rm -f conftest.$ac_objext
17879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17880 (eval $ac_compile) 2>conftest.er1
17881 ac_status=$?
17882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
49c96104
SE
17887 { ac_try='test -z "$ac_c_werror_flag"
17888 || test ! -s conftest.err'
5464f5a1
NN
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17891 ac_status=$?
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; } &&
17894 { ac_try='test -s conftest.$ac_objext'
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; }; then
252b5132
RH
17900 bfd_cv_have_sys_procfs_type_prstatus_t=yes
17901else
5464f5a1
NN
17902 echo "$as_me: failed program was:" >&5
17903sed 's/^/| /' conftest.$ac_ext >&5
17904
17905bfd_cv_have_sys_procfs_type_prstatus_t=no
17906
252b5132 17907fi
5464f5a1 17908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17909fi
17910
17911 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
17912
17913cat >>confdefs.h <<\_ACEOF
252b5132 17914#define HAVE_PRSTATUS_T 1
5464f5a1 17915_ACEOF
252b5132
RH
17916
17917 fi
5464f5a1
NN
17918 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17919echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 17920
5464f5a1
NN
17921 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17922echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17923 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 17925else
5464f5a1
NN
17926 cat >conftest.$ac_ext <<_ACEOF
17927/* confdefs.h. */
17928_ACEOF
17929cat confdefs.h >>conftest.$ac_ext
17930cat >>conftest.$ac_ext <<_ACEOF
17931/* end confdefs.h. */
7ee38065
MS
17932
17933#define _SYSCALL32
17934#include <sys/procfs.h>
5464f5a1
NN
17935int
17936main ()
17937{
7ee38065 17938prstatus32_t avar
5464f5a1
NN
17939 ;
17940 return 0;
17941}
17942_ACEOF
17943rm -f conftest.$ac_objext
17944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17945 (eval $ac_compile) 2>conftest.er1
17946 ac_status=$?
17947 grep -v '^ *+' conftest.er1 >conftest.err
17948 rm -f conftest.er1
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } &&
49c96104
SE
17952 { ac_try='test -z "$ac_c_werror_flag"
17953 || test ! -s conftest.err'
5464f5a1
NN
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; } &&
17959 { ac_try='test -s conftest.$ac_objext'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
7ee38065
MS
17965 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
17966else
5464f5a1
NN
17967 echo "$as_me: failed program was:" >&5
17968sed 's/^/| /' conftest.$ac_ext >&5
17969
17970bfd_cv_have_sys_procfs_type_prstatus32_t=no
17971
7ee38065 17972fi
5464f5a1 17973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
17974fi
17975
17976 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
17977
17978cat >>confdefs.h <<\_ACEOF
7ee38065 17979#define HAVE_PRSTATUS32_T 1
5464f5a1 17980_ACEOF
7ee38065
MS
17981
17982 fi
5464f5a1
NN
17983 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
17984echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 17985
5464f5a1
NN
17986 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
17987echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17988 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17990else
5464f5a1
NN
17991 cat >conftest.$ac_ext <<_ACEOF
17992/* confdefs.h. */
17993_ACEOF
17994cat confdefs.h >>conftest.$ac_ext
17995cat >>conftest.$ac_ext <<_ACEOF
17996/* end confdefs.h. */
7ee38065
MS
17997
17998#define _SYSCALL32
252b5132 17999#include <sys/procfs.h>
5464f5a1
NN
18000int
18001main ()
18002{
252b5132 18003prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
18004 ;
18005 return 0;
18006}
18007_ACEOF
18008rm -f conftest.$ac_objext
18009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18010 (eval $ac_compile) 2>conftest.er1
18011 ac_status=$?
18012 grep -v '^ *+' conftest.er1 >conftest.err
18013 rm -f conftest.er1
18014 cat conftest.err >&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
49c96104
SE
18017 { ac_try='test -z "$ac_c_werror_flag"
18018 || test ! -s conftest.err'
5464f5a1
NN
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18021 ac_status=$?
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; } &&
18024 { ac_try='test -s conftest.$ac_objext'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
252b5132
RH
18030 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
18031else
5464f5a1
NN
18032 echo "$as_me: failed program was:" >&5
18033sed 's/^/| /' conftest.$ac_ext >&5
18034
18035bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18036
252b5132 18037fi
5464f5a1 18038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18039fi
18040
18041 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
18042
18043cat >>confdefs.h <<\_ACEOF
252b5132 18044#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 18045_ACEOF
252b5132
RH
18046
18047 fi
5464f5a1
NN
18048 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18049echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 18050
5464f5a1
NN
18051 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18052echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18053 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18055else
5464f5a1
NN
18056 cat >conftest.$ac_ext <<_ACEOF
18057/* confdefs.h. */
18058_ACEOF
18059cat confdefs.h >>conftest.$ac_ext
18060cat >>conftest.$ac_ext <<_ACEOF
18061/* end confdefs.h. */
7ee38065
MS
18062
18063#define _SYSCALL32
18064#include <sys/procfs.h>
5464f5a1
NN
18065int
18066main ()
18067{
7ee38065 18068prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
18069 ;
18070 return 0;
18071}
18072_ACEOF
18073rm -f conftest.$ac_objext
18074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18075 (eval $ac_compile) 2>conftest.er1
18076 ac_status=$?
18077 grep -v '^ *+' conftest.er1 >conftest.err
18078 rm -f conftest.er1
18079 cat conftest.err >&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } &&
49c96104
SE
18082 { ac_try='test -z "$ac_c_werror_flag"
18083 || test ! -s conftest.err'
5464f5a1
NN
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; } &&
18089 { ac_try='test -s conftest.$ac_objext'
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18092 ac_status=$?
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; }; then
7ee38065
MS
18095 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18096else
5464f5a1
NN
18097 echo "$as_me: failed program was:" >&5
18098sed 's/^/| /' conftest.$ac_ext >&5
18099
18100bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18101
7ee38065 18102fi
5464f5a1 18103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18104fi
18105
18106 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
18107
18108cat >>confdefs.h <<\_ACEOF
7ee38065 18109#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 18110_ACEOF
7ee38065
MS
18111
18112 fi
5464f5a1
NN
18113 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18114echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 18115
5464f5a1
NN
18116 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18117echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18118 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18119 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18120else
5464f5a1
NN
18121 cat >conftest.$ac_ext <<_ACEOF
18122/* confdefs.h. */
18123_ACEOF
18124cat confdefs.h >>conftest.$ac_ext
18125cat >>conftest.$ac_ext <<_ACEOF
18126/* end confdefs.h. */
7ee38065
MS
18127
18128#define _SYSCALL32
252b5132 18129#include <sys/procfs.h>
5464f5a1
NN
18130int
18131main ()
18132{
252b5132 18133pstatus_t avar
5464f5a1
NN
18134 ;
18135 return 0;
18136}
18137_ACEOF
18138rm -f conftest.$ac_objext
18139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18140 (eval $ac_compile) 2>conftest.er1
18141 ac_status=$?
18142 grep -v '^ *+' conftest.er1 >conftest.err
18143 rm -f conftest.er1
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } &&
49c96104
SE
18147 { ac_try='test -z "$ac_c_werror_flag"
18148 || test ! -s conftest.err'
5464f5a1
NN
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; } &&
18154 { ac_try='test -s conftest.$ac_objext'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
252b5132
RH
18160 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18161else
5464f5a1
NN
18162 echo "$as_me: failed program was:" >&5
18163sed 's/^/| /' conftest.$ac_ext >&5
18164
18165bfd_cv_have_sys_procfs_type_pstatus_t=no
18166
252b5132 18167fi
5464f5a1 18168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18169fi
18170
18171 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
18172
18173cat >>confdefs.h <<\_ACEOF
252b5132 18174#define HAVE_PSTATUS_T 1
5464f5a1 18175_ACEOF
252b5132
RH
18176
18177 fi
5464f5a1
NN
18178 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18179echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 18180
5464f5a1
NN
18181 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18182echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18183 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 18185else
5464f5a1
NN
18186 cat >conftest.$ac_ext <<_ACEOF
18187/* confdefs.h. */
18188_ACEOF
18189cat confdefs.h >>conftest.$ac_ext
18190cat >>conftest.$ac_ext <<_ACEOF
18191/* end confdefs.h. */
f572a39d
AM
18192
18193#define _SYSCALL32
18194#include <sys/procfs.h>
5464f5a1
NN
18195int
18196main ()
18197{
f572a39d 18198pxstatus_t avar
5464f5a1
NN
18199 ;
18200 return 0;
18201}
18202_ACEOF
18203rm -f conftest.$ac_objext
18204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18205 (eval $ac_compile) 2>conftest.er1
18206 ac_status=$?
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
49c96104
SE
18212 { ac_try='test -z "$ac_c_werror_flag"
18213 || test ! -s conftest.err'
5464f5a1
NN
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; } &&
18219 { ac_try='test -s conftest.$ac_objext'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
f572a39d
AM
18225 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18226else
5464f5a1
NN
18227 echo "$as_me: failed program was:" >&5
18228sed 's/^/| /' conftest.$ac_ext >&5
18229
18230bfd_cv_have_sys_procfs_type_pxstatus_t=no
18231
f572a39d 18232fi
5464f5a1 18233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
18234fi
18235
18236 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
18237
18238cat >>confdefs.h <<\_ACEOF
f572a39d 18239#define HAVE_PXSTATUS_T 1
5464f5a1 18240_ACEOF
f572a39d
AM
18241
18242 fi
5464f5a1
NN
18243 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18244echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 18245
5464f5a1
NN
18246 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18247echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18248 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18250else
5464f5a1
NN
18251 cat >conftest.$ac_ext <<_ACEOF
18252/* confdefs.h. */
18253_ACEOF
18254cat confdefs.h >>conftest.$ac_ext
18255cat >>conftest.$ac_ext <<_ACEOF
18256/* end confdefs.h. */
7ee38065
MS
18257
18258#define _SYSCALL32
18259#include <sys/procfs.h>
5464f5a1
NN
18260int
18261main ()
18262{
7ee38065 18263pstatus32_t avar
5464f5a1
NN
18264 ;
18265 return 0;
18266}
18267_ACEOF
18268rm -f conftest.$ac_objext
18269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18270 (eval $ac_compile) 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
49c96104
SE
18277 { ac_try='test -z "$ac_c_werror_flag"
18278 || test ! -s conftest.err'
5464f5a1
NN
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest.$ac_objext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
7ee38065
MS
18290 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18291else
5464f5a1
NN
18292 echo "$as_me: failed program was:" >&5
18293sed 's/^/| /' conftest.$ac_ext >&5
18294
18295bfd_cv_have_sys_procfs_type_pstatus32_t=no
18296
7ee38065 18297fi
5464f5a1 18298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18299fi
18300
18301 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
18302
18303cat >>confdefs.h <<\_ACEOF
7ee38065 18304#define HAVE_PSTATUS32_T 1
5464f5a1 18305_ACEOF
7ee38065
MS
18306
18307 fi
5464f5a1
NN
18308 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18309echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 18310
5464f5a1
NN
18311 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18312echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18313 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18315else
5464f5a1
NN
18316 cat >conftest.$ac_ext <<_ACEOF
18317/* confdefs.h. */
18318_ACEOF
18319cat confdefs.h >>conftest.$ac_ext
18320cat >>conftest.$ac_ext <<_ACEOF
18321/* end confdefs.h. */
7ee38065
MS
18322
18323#define _SYSCALL32
252b5132 18324#include <sys/procfs.h>
5464f5a1
NN
18325int
18326main ()
18327{
252b5132 18328prpsinfo_t avar
5464f5a1
NN
18329 ;
18330 return 0;
18331}
18332_ACEOF
18333rm -f conftest.$ac_objext
18334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18335 (eval $ac_compile) 2>conftest.er1
18336 ac_status=$?
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
49c96104
SE
18342 { ac_try='test -z "$ac_c_werror_flag"
18343 || test ! -s conftest.err'
5464f5a1
NN
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest.$ac_objext'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
252b5132
RH
18355 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18356else
5464f5a1
NN
18357 echo "$as_me: failed program was:" >&5
18358sed 's/^/| /' conftest.$ac_ext >&5
18359
18360bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18361
252b5132 18362fi
5464f5a1 18363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18364fi
18365
18366 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
18367
18368cat >>confdefs.h <<\_ACEOF
252b5132 18369#define HAVE_PRPSINFO_T 1
5464f5a1 18370_ACEOF
252b5132
RH
18371
18372 fi
5464f5a1
NN
18373 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18374echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 18375
5464f5a1
NN
18376 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18377echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18378 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18380else
5464f5a1
NN
18381 cat >conftest.$ac_ext <<_ACEOF
18382/* confdefs.h. */
18383_ACEOF
18384cat confdefs.h >>conftest.$ac_ext
18385cat >>conftest.$ac_ext <<_ACEOF
18386/* end confdefs.h. */
7ee38065
MS
18387
18388#define _SYSCALL32
18389#include <sys/procfs.h>
5464f5a1
NN
18390int
18391main ()
18392{
7ee38065 18393prpsinfo32_t avar
5464f5a1
NN
18394 ;
18395 return 0;
18396}
18397_ACEOF
18398rm -f conftest.$ac_objext
18399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18400 (eval $ac_compile) 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } &&
49c96104
SE
18407 { ac_try='test -z "$ac_c_werror_flag"
18408 || test ! -s conftest.err'
5464f5a1
NN
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try='test -s conftest.$ac_objext'
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; }; then
7ee38065
MS
18420 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
18421else
5464f5a1
NN
18422 echo "$as_me: failed program was:" >&5
18423sed 's/^/| /' conftest.$ac_ext >&5
18424
18425bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
18426
7ee38065 18427fi
5464f5a1 18428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18429fi
18430
18431 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
18432
18433cat >>confdefs.h <<\_ACEOF
7ee38065 18434#define HAVE_PRPSINFO32_T 1
5464f5a1 18435_ACEOF
7ee38065
MS
18436
18437 fi
5464f5a1
NN
18438 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
18439echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 18440
5464f5a1
NN
18441 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
18442echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
18443 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18445else
5464f5a1
NN
18446 cat >conftest.$ac_ext <<_ACEOF
18447/* confdefs.h. */
18448_ACEOF
18449cat confdefs.h >>conftest.$ac_ext
18450cat >>conftest.$ac_ext <<_ACEOF
18451/* end confdefs.h. */
7ee38065
MS
18452
18453#define _SYSCALL32
252b5132 18454#include <sys/procfs.h>
5464f5a1
NN
18455int
18456main ()
18457{
252b5132 18458psinfo_t avar
5464f5a1
NN
18459 ;
18460 return 0;
18461}
18462_ACEOF
18463rm -f conftest.$ac_objext
18464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18465 (eval $ac_compile) 2>conftest.er1
18466 ac_status=$?
18467 grep -v '^ *+' conftest.er1 >conftest.err
18468 rm -f conftest.er1
18469 cat conftest.err >&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); } &&
49c96104
SE
18472 { ac_try='test -z "$ac_c_werror_flag"
18473 || test ! -s conftest.err'
5464f5a1
NN
18474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475 (eval $ac_try) 2>&5
18476 ac_status=$?
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; } &&
18479 { ac_try='test -s conftest.$ac_objext'
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; }; then
252b5132
RH
18485 bfd_cv_have_sys_procfs_type_psinfo_t=yes
18486else
5464f5a1
NN
18487 echo "$as_me: failed program was:" >&5
18488sed 's/^/| /' conftest.$ac_ext >&5
18489
18490bfd_cv_have_sys_procfs_type_psinfo_t=no
18491
252b5132 18492fi
5464f5a1 18493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18494fi
18495
18496 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
18497
18498cat >>confdefs.h <<\_ACEOF
252b5132 18499#define HAVE_PSINFO_T 1
5464f5a1 18500_ACEOF
252b5132
RH
18501
18502 fi
5464f5a1
NN
18503 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18504echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 18505
5464f5a1
NN
18506 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18507echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18508 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18509 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18510else
5464f5a1
NN
18511 cat >conftest.$ac_ext <<_ACEOF
18512/* confdefs.h. */
18513_ACEOF
18514cat confdefs.h >>conftest.$ac_ext
18515cat >>conftest.$ac_ext <<_ACEOF
18516/* end confdefs.h. */
7ee38065
MS
18517
18518#define _SYSCALL32
18519#include <sys/procfs.h>
5464f5a1
NN
18520int
18521main ()
18522{
7ee38065 18523psinfo32_t avar
5464f5a1
NN
18524 ;
18525 return 0;
18526}
18527_ACEOF
18528rm -f conftest.$ac_objext
18529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18530 (eval $ac_compile) 2>conftest.er1
18531 ac_status=$?
18532 grep -v '^ *+' conftest.er1 >conftest.err
18533 rm -f conftest.er1
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
49c96104
SE
18537 { ac_try='test -z "$ac_c_werror_flag"
18538 || test ! -s conftest.err'
5464f5a1
NN
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; } &&
18544 { ac_try='test -s conftest.$ac_objext'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; }; then
7ee38065
MS
18550 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18551else
5464f5a1
NN
18552 echo "$as_me: failed program was:" >&5
18553sed 's/^/| /' conftest.$ac_ext >&5
18554
18555bfd_cv_have_sys_procfs_type_psinfo32_t=no
18556
7ee38065 18557fi
5464f5a1 18558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18559fi
18560
18561 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
18562
18563cat >>confdefs.h <<\_ACEOF
7ee38065 18564#define HAVE_PSINFO32_T 1
5464f5a1 18565_ACEOF
7ee38065
MS
18566
18567 fi
5464f5a1
NN
18568 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18569echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 18570
5464f5a1
NN
18571 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18572echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18573 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18575else
5464f5a1
NN
18576 cat >conftest.$ac_ext <<_ACEOF
18577/* confdefs.h. */
18578_ACEOF
18579cat confdefs.h >>conftest.$ac_ext
18580cat >>conftest.$ac_ext <<_ACEOF
18581/* end confdefs.h. */
7ee38065
MS
18582
18583#define _SYSCALL32
252b5132 18584#include <sys/procfs.h>
5464f5a1
NN
18585int
18586main ()
18587{
252b5132 18588lwpstatus_t avar
5464f5a1
NN
18589 ;
18590 return 0;
18591}
18592_ACEOF
18593rm -f conftest.$ac_objext
18594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18595 (eval $ac_compile) 2>conftest.er1
18596 ac_status=$?
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
49c96104
SE
18602 { ac_try='test -z "$ac_c_werror_flag"
18603 || test ! -s conftest.err'
5464f5a1
NN
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try='test -s conftest.$ac_objext'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
252b5132
RH
18615 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18616else
5464f5a1
NN
18617 echo "$as_me: failed program was:" >&5
18618sed 's/^/| /' conftest.$ac_ext >&5
18619
18620bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18621
252b5132 18622fi
5464f5a1 18623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18624fi
18625
18626 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
18627
18628cat >>confdefs.h <<\_ACEOF
252b5132 18629#define HAVE_LWPSTATUS_T 1
5464f5a1 18630_ACEOF
252b5132
RH
18631
18632 fi
5464f5a1
NN
18633 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18634echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 18635
5464f5a1
NN
18636 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18637echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18638 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 18640else
5464f5a1
NN
18641 cat >conftest.$ac_ext <<_ACEOF
18642/* confdefs.h. */
18643_ACEOF
18644cat confdefs.h >>conftest.$ac_ext
18645cat >>conftest.$ac_ext <<_ACEOF
18646/* end confdefs.h. */
f572a39d
AM
18647
18648#define _SYSCALL32
18649#include <sys/procfs.h>
5464f5a1
NN
18650int
18651main ()
18652{
f572a39d 18653lwpxstatus_t avar
5464f5a1
NN
18654 ;
18655 return 0;
18656}
18657_ACEOF
18658rm -f conftest.$ac_objext
18659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18660 (eval $ac_compile) 2>conftest.er1
18661 ac_status=$?
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
49c96104
SE
18667 { ac_try='test -z "$ac_c_werror_flag"
18668 || test ! -s conftest.err'
5464f5a1
NN
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; } &&
18674 { ac_try='test -s conftest.$ac_objext'
18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; }; then
f572a39d
AM
18680 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18681else
5464f5a1
NN
18682 echo "$as_me: failed program was:" >&5
18683sed 's/^/| /' conftest.$ac_ext >&5
18684
18685bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18686
f572a39d 18687fi
5464f5a1 18688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
18689fi
18690
18691 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
18692
18693cat >>confdefs.h <<\_ACEOF
f572a39d 18694#define HAVE_LWPXSTATUS_T 1
5464f5a1 18695_ACEOF
f572a39d
AM
18696
18697 fi
5464f5a1
NN
18698 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18699echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 18700
5464f5a1
NN
18701 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18702echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18703 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18704 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18705else
5464f5a1
NN
18706 cat >conftest.$ac_ext <<_ACEOF
18707/* confdefs.h. */
18708_ACEOF
18709cat confdefs.h >>conftest.$ac_ext
18710cat >>conftest.$ac_ext <<_ACEOF
18711/* end confdefs.h. */
7ee38065
MS
18712
18713#define _SYSCALL32
252b5132 18714#include <sys/procfs.h>
5464f5a1
NN
18715int
18716main ()
18717{
252b5132 18718lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
18719 ;
18720 return 0;
18721}
18722_ACEOF
18723rm -f conftest.$ac_objext
18724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18725 (eval $ac_compile) 2>conftest.er1
18726 ac_status=$?
18727 grep -v '^ *+' conftest.er1 >conftest.err
18728 rm -f conftest.er1
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } &&
49c96104
SE
18732 { ac_try='test -z "$ac_c_werror_flag"
18733 || test ! -s conftest.err'
5464f5a1
NN
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; } &&
18739 { ac_try='test -s conftest.$ac_objext'
18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741 (eval $ac_try) 2>&5
18742 ac_status=$?
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; }; then
252b5132
RH
18745 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18746else
5464f5a1
NN
18747 echo "$as_me: failed program was:" >&5
18748sed 's/^/| /' conftest.$ac_ext >&5
18749
18750bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18751
252b5132 18752fi
5464f5a1 18753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18754fi
18755
18756 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
18757
18758cat >>confdefs.h <<\_ACEOF
252b5132 18759#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 18760_ACEOF
252b5132
RH
18761
18762 fi
5464f5a1
NN
18763 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18764echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 18765
5464f5a1
NN
18766 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18767echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18768 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18769 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18770else
5464f5a1
NN
18771 cat >conftest.$ac_ext <<_ACEOF
18772/* confdefs.h. */
18773_ACEOF
18774cat confdefs.h >>conftest.$ac_ext
18775cat >>conftest.$ac_ext <<_ACEOF
18776/* end confdefs.h. */
7ee38065
MS
18777
18778#define _SYSCALL32
252b5132 18779#include <sys/procfs.h>
5464f5a1
NN
18780int
18781main ()
18782{
252b5132 18783lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
18784 ;
18785 return 0;
18786}
18787_ACEOF
18788rm -f conftest.$ac_objext
18789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790 (eval $ac_compile) 2>conftest.er1
18791 ac_status=$?
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
49c96104
SE
18797 { ac_try='test -z "$ac_c_werror_flag"
18798 || test ! -s conftest.err'
5464f5a1
NN
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest.$ac_objext'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
252b5132
RH
18810 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18811else
5464f5a1
NN
18812 echo "$as_me: failed program was:" >&5
18813sed 's/^/| /' conftest.$ac_ext >&5
18814
18815bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18816
252b5132 18817fi
5464f5a1 18818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18819fi
18820
18821 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
18822
18823cat >>confdefs.h <<\_ACEOF
252b5132 18824#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 18825_ACEOF
252b5132
RH
18826
18827 fi
5464f5a1
NN
18828 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18829echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 18830
5464f5a1
NN
18831 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18832echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18833 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18834 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 18835else
5464f5a1
NN
18836 cat >conftest.$ac_ext <<_ACEOF
18837/* confdefs.h. */
18838_ACEOF
18839cat confdefs.h >>conftest.$ac_ext
18840cat >>conftest.$ac_ext <<_ACEOF
18841/* end confdefs.h. */
7ee38065
MS
18842
18843#define _SYSCALL32
e3c976c4 18844#include <sys/procfs.h>
5464f5a1
NN
18845int
18846main ()
18847{
e3c976c4 18848win32_pstatus_t avar
5464f5a1
NN
18849 ;
18850 return 0;
18851}
18852_ACEOF
18853rm -f conftest.$ac_objext
18854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18855 (eval $ac_compile) 2>conftest.er1
18856 ac_status=$?
18857 grep -v '^ *+' conftest.er1 >conftest.err
18858 rm -f conftest.er1
18859 cat conftest.err >&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } &&
49c96104
SE
18862 { ac_try='test -z "$ac_c_werror_flag"
18863 || test ! -s conftest.err'
5464f5a1
NN
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; } &&
18869 { ac_try='test -s conftest.$ac_objext'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
e3c976c4
ILT
18875 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
18876else
5464f5a1
NN
18877 echo "$as_me: failed program was:" >&5
18878sed 's/^/| /' conftest.$ac_ext >&5
18879
18880bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18881
e3c976c4 18882fi
5464f5a1 18883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18884fi
18885
e3c976c4 18886 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
18887
18888cat >>confdefs.h <<\_ACEOF
e3c976c4 18889#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 18890_ACEOF
16e9c715
NC
18891
18892 fi
5464f5a1
NN
18893 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18894echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
18895
18896 fi
18897fi
16e9c715 18898
b3baf5d0 18899
6be7c12c 18900if test -n "$TRAD_HEADER"; then
5464f5a1
NN
18901
18902cat >>confdefs.h <<_ACEOF
252b5132 18903#define TRAD_HEADER $TRAD_HEADER
5464f5a1 18904_ACEOF
252b5132 18905
3f9b03b5 18906fi
252b5132
RH
18907
18908# Horrible hacks to build DLLs on Windows.
18909WIN32LDFLAGS=
18910WIN32LIBADD=
18911case "${host}" in
18912*-*-cygwin*)
18913 if test "$enable_shared" = "yes"; then
18914 WIN32LDFLAGS="-no-undefined"
18915 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
18916 fi
18917 ;;
78be1d6e 18918*-*-linux*)
39691762
L
18919 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
18920 # libiberty.a.
c5cb8442
TS
18921 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
18922 if test -n "$x"; then
18923 WIN32LIBADD="-L../libiberty/pic -liberty"
18924 fi
39691762 18925 ;;
252b5132
RH
18926esac
18927
6be7c12c
AO
18928
18929
252b5132
RH
18930# target stuff:
18931
18932# Canonicalize the secondary target names.
18933if test -n "$enable_targets" ; then
18934 for targ in `echo $enable_targets | sed 's/,/ /g'`
18935 do
6d83c84b 18936 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
18937 if test -n "$result" ; then
18938 canon_targets="$canon_targets $result"
18939 else
18940 # Allow targets that config.sub doesn't recognize, like "all".
18941 canon_targets="$canon_targets $targ"
18942 fi
18943 done
18944fi
18945
18946all_targets=false
18947defvec=
18948selvecs=
08f74004 18949assocvecs=
252b5132
RH
18950selarchs=
18951TDEFINES=
18952for targ in $target $canon_targets
18953do
18954 if test "x$targ" = "xall"; then
18955 all_targets=true
08f74004 18956 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
18957 else
18958 . $srcdir/config.bfd
18959 if test "x$targ" = "x$target"; then
18960 defvec=$targ_defvec
18961 fi
18962 selvecs="$selvecs $targ_defvec $targ_selvecs"
18963 selarchs="$selarchs $targ_archs"
18964 TDEFINES="$TDEFINES $targ_cflags"
18965 fi
18966done
18967
6be7c12c 18968
252b5132
RH
18969# This processing still needs to be done if we're to decide properly whether
18970# 64-bit support needs to be compiled in. Currently, it will be included if
18971# the default or any other explicitly requested target requires it; it
18972# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 18973# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
18974# used.
18975
18976# uniq the default and selected vectors in all the configured targets.
18977f=""
18978for i in $selvecs ; do
18979 case " $f " in
18980 *" $i "*) ;;
18981 *) f="$f $i" ;;
18982 esac
18983done
18984selvecs="$f"
18985
6be7c12c 18986
08f74004
AM
18987# uniq the associated vectors in all the configured targets.
18988f=""
18989for i in $assocvecs ; do
18990 case " $f " in
18991 *" $i "*) ;;
18992 *) f="$f $i" ;;
18993 esac
18994done
18995assocvecs="$f"
18996
18997
252b5132
RH
18998# uniq the architectures in all the configured targets.
18999f=""
19000for i in $selarchs ; do
19001 case " $f " in
19002 *" $i "*) ;;
19003 *) f="$f $i" ;;
19004 esac
19005done
19006selarchs="$f"
19007
19008# Target backend .o files.
19009tb=
19010
104d59d1 19011elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
19012
19013for vec in $selvecs
19014do
69263e90 19015 target_size=32
252b5132
RH
19016 case "$vec" in
19017 # This list is alphabetized to make it easy to compare
dc810e39
AM
19018 # with the two vector lists in targets.c. For the same reason,
19019 # use one entry per line, even though this leads to long lines.
252b5132 19020 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 19021 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
19022 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
19023 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19024 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 19025 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
19026 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19027 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19028 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19029 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
19030 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19031 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19032 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19033 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
19034 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19035 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19036 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
19037 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19038 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19039 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19040 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
19041 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
19042 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 19043 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
e81819a5
NC
19044 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
19045 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 19046 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
e81819a5
NC
19047 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19048 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 19049 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
e81819a5
NC
19050 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19051 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 19052 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 19053 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 19054 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 19055 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 19056 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 19057 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 19058 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 19059 bfd_elf32_bigarm_symbian_vec)
00a97672 19060 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 19061 bfd_elf32_bigarm_vxworks_vec)
00a97672 19062 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
19063 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19064 bfd_elf32_bigmips_vxworks_vec)
19065 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
3d3d428f 19066 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
0949843d 19067 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 19068 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 19069 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
19070 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19071 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 19072 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 19073 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 19074 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 19075 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 19076 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 19077 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 19078 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 19079 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 19080 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
0b3e17e9
NC
19081 bfd_elf32_i386_dragonfly_vec)
19082 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
eac338cf
PB
19083 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19084 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19085 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 19086 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 19087 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 19088 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 19089 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 19090 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 19091 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 19092 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 19093 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 19094 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 19095 bfd_elf32_littlearm_symbian_vec)
00a97672 19096 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 19097 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
19098 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19099 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
19100 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19101 bfd_elf32_littlemips_vxworks_vec)
19102 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 19103 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 19104 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
19105 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19106 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19107 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
19108 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19109 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
19110 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19111 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19112 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19113 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
19114 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19115 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
19116 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19117 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 19118 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 19119 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
19120 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19121 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19122 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19123 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 19124 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 19125 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
19126 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19127 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
19128 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19129 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19130 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 19131 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
19132 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19133 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
19134 # FIXME: We include cofflink.lo not because it's needed for
19135 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19136 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
19137 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19138 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19139 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19140 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19141 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19142 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19143 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19144 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19145 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19146 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19147 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19148 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19149 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 19150 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 19151 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
19152 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19153 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 19154 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
19155 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19156 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 19157 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 19158 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 19159 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 19160 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 19161 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
19162 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19163 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 19164 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
19165 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19166 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 19167 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
19168 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19169 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 19170 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 19171 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
19172 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19173 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 19174 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 19175 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
19176 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19177 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19178 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
19179 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19180 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
19181 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19182 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19183 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19184 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 19185 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 19186 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
19187 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 ;;
19188 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 19189 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 19190 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 19191 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
19192 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19193 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19194 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19195 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 19196 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 19197 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 19198 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 19199 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
19200 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19201 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
19202 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
19203 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
19204 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
19205 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
19206 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
19207 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
19208 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
19209 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
19210 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
19211 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 19212 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
19213 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
19214 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
19215 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
19216 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19217 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19218 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 19219 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
19220 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
19221 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
19222 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19223 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
19224 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19225 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
19226 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
19227 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19228 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19229 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
19230 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19231 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
19232 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
19233 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19234 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 19235 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
19236 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
19237 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 19238 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 19239 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 19240 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
19241 mach_o_be_vec) tb="$tb mach-o.lo" ;;
19242 mach_o_le_vec) tb="$tb mach-o.lo" ;;
19243 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
19244 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19245 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19246 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19247 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
19248 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19249 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 19250 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 19251 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 19252 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 19253 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 19254 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 19255 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 19256 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 19257 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
19258 pef_vec) tb="$tb pef.lo" ;;
19259 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 19260 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 19261 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 19262 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 19263 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 19264 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 19265 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 19266 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 19267 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 19268 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 19269 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
19270 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19271 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 19272 som_vec) tb="$tb som.lo" ;;
dc810e39 19273 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
19274 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
19275 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
19276 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19277 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19278 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 19279 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 19280 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
19281 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
19282 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
19283 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
19284 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
19285 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
19286 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
19287 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
19288 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 19289 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19290 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 19291 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19292 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 19293 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19294 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 19295 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 19296 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 19297 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 19298 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 19299 versados_vec) tb="$tb versados.lo" ;;
dc810e39 19300 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
19301 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19302 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
19303 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 19304 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 19305 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 19306
341ca622
AM
19307 # These appear out of order in targets.c
19308 srec_vec) tb="$tb srec.lo" ;;
19309 symbolsrec_vec) tb="$tb srec.lo" ;;
19310 tekhex_vec) tb="$tb tekhex.lo" ;;
19311 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
19312 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
19313
252b5132 19314 "") ;;
5464f5a1
NN
19315 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19316echo "$as_me: error: *** unknown target vector $vec" >&2;}
19317 { (exit 1); exit 1; }; } ;;
252b5132 19318 esac
69263e90
AM
19319
19320 if test ${target_size} = 64; then
19321 target64=true
19322 fi
19323 if test x"${vec}" = x"${defvec}"; then
19324 bfd_default_target_size=${target_size}
19325 fi
252b5132
RH
19326done
19327
19328# Target architecture .o files.
19329# A couple of CPUs use shorter file names to avoid problems on DOS
19330# filesystems.
d031aafb 19331ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
19332
19333# Weed out duplicate .o files.
19334f=""
19335for i in $tb ; do
19336 case " $f " in
19337 *" $i "*) ;;
19338 *) f="$f $i" ;;
19339 esac
19340done
19341tb="$f"
19342
19343f=""
19344for i in $ta ; do
19345 case " $f " in
19346 *" $i "*) ;;
19347 *) f="$f $i" ;;
19348 esac
19349done
19350ta="$f"
19351
19352bfd_backends="$tb"
19353bfd_machines="$ta"
19354
19355if test x${all_targets} = xtrue ; then
19356 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19357 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19358 selvecs=
19359 havevecs=
19360 selarchs=
08f74004
AM
19361 test -n "$assocvecs" &&
19362 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
19363else # all_targets is true
19364 # Only set these if they will be nonempty, for the clever echo.
19365 havevecs=
08f74004 19366 assocvecs=
252b5132
RH
19367 test -n "$selvecs" &&
19368 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19369 test -n "$selvecs" &&
19370 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19371 test -n "$selarchs" &&
19372 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19373fi # all_targets is true
19374
19375case ${host64}-${target64}-${want64} in
19376 *true*)
19377 wordsize=64
21e40a48 19378 bfd64_libs='$(BFD64_LIBS)'
252b5132 19379 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 19380 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
19381 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19382echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19383 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19384echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 19385 fi
966abd70
HPN
19386 if test -n "$GCC" ; then
19387 bad_64bit_gcc=no;
5464f5a1
NN
19388 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19389echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 19390 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
19391 cat >conftest.$ac_ext <<_ACEOF
19392/* confdefs.h. */
19393_ACEOF
19394cat confdefs.h >>conftest.$ac_ext
19395cat >>conftest.$ac_ext <<_ACEOF
19396/* end confdefs.h. */
966abd70 19397:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 19398_ACEOF
966abd70 19399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 19400 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 19401 bad_64bit_gcc=yes;
5464f5a1
NN
19402 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19403echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 19404else
5464f5a1
NN
19405 echo "$as_me:$LINENO: result: no" >&5
19406echo "${ECHO_T}no" >&6
966abd70
HPN
19407fi
19408rm -f conftest*
19409
19410 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
19411 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
19412echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
19413 { (exit 1); exit 1; }; }
966abd70
HPN
19414 fi
19415 fi
252b5132
RH
19416 ;;
19417 false-false-false)
19418 wordsize=32
19419 all_backends='$(BFD32_BACKENDS)'
19420 ;;
19421esac
19422
6be7c12c
AO
19423
19424
19425
19426
19427
69263e90 19428
2858ef35 19429
1012372a
AC
19430# Determine the host dependant file_ptr a.k.a. off_t type. In order
19431# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
19432# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
19433# Hopefully a reasonable assumption since fseeko et.al. should be
19434# upward compatible.
5464f5a1
NN
19435
19436
19437
19438
2e6f4fae
DJ
19439
19440for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 19441do
5464f5a1
NN
19442as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19443echo "$as_me:$LINENO: checking for $ac_func" >&5
19444echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19445if eval "test \"\${$as_ac_var+set}\" = set"; then
19446 echo $ECHO_N "(cached) $ECHO_C" >&6
19447else
2ba49b59
KC
19448 cat >conftest.$ac_ext <<_ACEOF
19449/* confdefs.h. */
19450_ACEOF
19451cat confdefs.h >>conftest.$ac_ext
19452cat >>conftest.$ac_ext <<_ACEOF
19453/* end confdefs.h. */
19454/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19456#define $ac_func innocuous_$ac_func
19457
19458/* System header to define __stub macros and hopefully few prototypes,
19459 which can conflict with char $ac_func (); below.
19460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19461 <limits.h> exists even on freestanding compilers. */
19462
19463#ifdef __STDC__
19464# include <limits.h>
19465#else
19466# include <assert.h>
19467#endif
19468
19469#undef $ac_func
19470
19471/* Override any gcc2 internal prototype to avoid an error. */
19472#ifdef __cplusplus
19473extern "C"
19474{
19475#endif
19476/* We use char because int might match the return type of a gcc2
19477 builtin and then its argument prototype would still apply. */
19478char $ac_func ();
19479/* The GNU C library defines this for functions which it implements
19480 to always fail with ENOSYS. Some functions are actually named
19481 something starting with __ and the normal name is an alias. */
19482#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19483choke me
19484#else
19485char (*f) () = $ac_func;
19486#endif
19487#ifdef __cplusplus
19488}
19489#endif
19490
19491int
19492main ()
19493{
19494return f != $ac_func;
19495 ;
19496 return 0;
19497}
19498_ACEOF
19499rm -f conftest.$ac_objext conftest$ac_exeext
19500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19501 (eval $ac_link) 2>conftest.er1
19502 ac_status=$?
19503 grep -v '^ *+' conftest.er1 >conftest.err
19504 rm -f conftest.er1
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
49c96104
SE
19508 { ac_try='test -z "$ac_c_werror_flag"
19509 || test ! -s conftest.err'
2ba49b59
KC
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } &&
19515 { ac_try='test -s conftest$ac_exeext'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521 eval "$as_ac_var=yes"
19522else
19523 echo "$as_me: failed program was:" >&5
19524sed 's/^/| /' conftest.$ac_ext >&5
19525
19526eval "$as_ac_var=no"
19527fi
19528rm -f conftest.err conftest.$ac_objext \
19529 conftest$ac_exeext conftest.$ac_ext
19530fi
19531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19532echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19533if test `eval echo '${'$as_ac_var'}'` = yes; then
19534 cat >>confdefs.h <<_ACEOF
19535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19536_ACEOF
19537
19538fi
19539done
19540
19541if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19542 echo "$as_me:$LINENO: checking for off_t" >&5
19543echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19544if test "${ac_cv_type_off_t+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19546else
19547 cat >conftest.$ac_ext <<_ACEOF
19548/* confdefs.h. */
19549_ACEOF
19550cat confdefs.h >>conftest.$ac_ext
19551cat >>conftest.$ac_ext <<_ACEOF
19552/* end confdefs.h. */
19553$ac_includes_default
19554int
19555main ()
19556{
19557if ((off_t *) 0)
19558 return 0;
19559if (sizeof (off_t))
19560 return 0;
19561 ;
19562 return 0;
19563}
19564_ACEOF
19565rm -f conftest.$ac_objext
19566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19567 (eval $ac_compile) 2>conftest.er1
19568 ac_status=$?
19569 grep -v '^ *+' conftest.er1 >conftest.err
19570 rm -f conftest.er1
19571 cat conftest.err >&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } &&
49c96104
SE
19574 { ac_try='test -z "$ac_c_werror_flag"
19575 || test ! -s conftest.err'
2ba49b59
KC
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19578 ac_status=$?
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; } &&
19581 { ac_try='test -s conftest.$ac_objext'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19584 ac_status=$?
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; }; then
19587 ac_cv_type_off_t=yes
19588else
19589 echo "$as_me: failed program was:" >&5
19590sed 's/^/| /' conftest.$ac_ext >&5
19591
19592ac_cv_type_off_t=no
19593fi
19594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19595fi
19596echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19597echo "${ECHO_T}$ac_cv_type_off_t" >&6
19598
19599echo "$as_me:$LINENO: checking size of off_t" >&5
19600echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19601if test "${ac_cv_sizeof_off_t+set}" = set; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19603else
19604 if test "$ac_cv_type_off_t" = yes; then
19605 # The cast to unsigned long works around a bug in the HP C Compiler
19606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19608 # This bug is HP SR number 8606223364.
19609 if test "$cross_compiling" = yes; then
19610 # Depending upon the size, compute the lo and hi bounds.
19611cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
19612/* confdefs.h. */
19613_ACEOF
19614cat confdefs.h >>conftest.$ac_ext
19615cat >>conftest.$ac_ext <<_ACEOF
19616/* end confdefs.h. */
2ba49b59
KC
19617$ac_includes_default
19618int
19619main ()
19620{
19621static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19622test_array [0] = 0
5464f5a1 19623
2ba49b59
KC
19624 ;
19625 return 0;
19626}
19627_ACEOF
19628rm -f conftest.$ac_objext
19629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19630 (eval $ac_compile) 2>conftest.er1
19631 ac_status=$?
19632 grep -v '^ *+' conftest.er1 >conftest.err
19633 rm -f conftest.er1
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } &&
49c96104
SE
19637 { ac_try='test -z "$ac_c_werror_flag"
19638 || test ! -s conftest.err'
2ba49b59
KC
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; } &&
19644 { ac_try='test -s conftest.$ac_objext'
19645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 ac_lo=0 ac_mid=0
19651 while :; do
19652 cat >conftest.$ac_ext <<_ACEOF
19653/* confdefs.h. */
19654_ACEOF
19655cat confdefs.h >>conftest.$ac_ext
19656cat >>conftest.$ac_ext <<_ACEOF
19657/* end confdefs.h. */
19658$ac_includes_default
19659int
19660main ()
19661{
19662static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19663test_array [0] = 0
5464f5a1 19664
2ba49b59
KC
19665 ;
19666 return 0;
19667}
19668_ACEOF
19669rm -f conftest.$ac_objext
19670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19671 (eval $ac_compile) 2>conftest.er1
19672 ac_status=$?
19673 grep -v '^ *+' conftest.er1 >conftest.err
19674 rm -f conftest.er1
19675 cat conftest.err >&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } &&
49c96104
SE
19678 { ac_try='test -z "$ac_c_werror_flag"
19679 || test ! -s conftest.err'
2ba49b59
KC
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; } &&
19685 { ac_try='test -s conftest.$ac_objext'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19688 ac_status=$?
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; }; then
19691 ac_hi=$ac_mid; break
19692else
19693 echo "$as_me: failed program was:" >&5
19694sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19695
2ba49b59
KC
19696ac_lo=`expr $ac_mid + 1`
19697 if test $ac_lo -le $ac_mid; then
19698 ac_lo= ac_hi=
19699 break
19700 fi
19701 ac_mid=`expr 2 '*' $ac_mid + 1`
19702fi
19703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19704 done
19705else
19706 echo "$as_me: failed program was:" >&5
19707sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19708
2ba49b59
KC
19709cat >conftest.$ac_ext <<_ACEOF
19710/* confdefs.h. */
19711_ACEOF
19712cat confdefs.h >>conftest.$ac_ext
19713cat >>conftest.$ac_ext <<_ACEOF
19714/* end confdefs.h. */
19715$ac_includes_default
19716int
19717main ()
5464f5a1 19718{
2ba49b59
KC
19719static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19720test_array [0] = 0
1012372a 19721
2ba49b59
KC
19722 ;
19723 return 0;
19724}
19725_ACEOF
19726rm -f conftest.$ac_objext
19727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19728 (eval $ac_compile) 2>conftest.er1
19729 ac_status=$?
19730 grep -v '^ *+' conftest.er1 >conftest.err
19731 rm -f conftest.er1
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } &&
49c96104
SE
19735 { ac_try='test -z "$ac_c_werror_flag"
19736 || test ! -s conftest.err'
2ba49b59
KC
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } &&
19742 { ac_try='test -s conftest.$ac_objext'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
19748 ac_hi=-1 ac_mid=-1
19749 while :; do
19750 cat >conftest.$ac_ext <<_ACEOF
19751/* confdefs.h. */
19752_ACEOF
19753cat confdefs.h >>conftest.$ac_ext
19754cat >>conftest.$ac_ext <<_ACEOF
19755/* end confdefs.h. */
19756$ac_includes_default
5464f5a1
NN
19757int
19758main ()
19759{
2ba49b59
KC
19760static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19761test_array [0] = 0
19762
5464f5a1
NN
19763 ;
19764 return 0;
19765}
19766_ACEOF
2ba49b59
KC
19767rm -f conftest.$ac_objext
19768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19769 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
19770 ac_status=$?
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
49c96104
SE
19776 { ac_try='test -z "$ac_c_werror_flag"
19777 || test ! -s conftest.err'
5464f5a1
NN
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; } &&
2ba49b59 19783 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; }; then
2ba49b59 19789 ac_lo=$ac_mid; break
5464f5a1
NN
19790else
19791 echo "$as_me: failed program was:" >&5
19792sed 's/^/| /' conftest.$ac_ext >&5
19793
2ba49b59
KC
19794ac_hi=`expr '(' $ac_mid ')' - 1`
19795 if test $ac_mid -le $ac_hi; then
19796 ac_lo= ac_hi=
19797 break
19798 fi
19799 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 19800fi
2ba49b59
KC
19801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19802 done
19803else
19804 echo "$as_me: failed program was:" >&5
19805sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19806
2ba49b59 19807ac_lo= ac_hi=
1012372a 19808fi
2ba49b59
KC
19809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19810fi
19811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19812# Binary search between lo and hi bounds.
19813while test "x$ac_lo" != "x$ac_hi"; do
19814 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
19815 cat >conftest.$ac_ext <<_ACEOF
19816/* confdefs.h. */
19817_ACEOF
19818cat confdefs.h >>conftest.$ac_ext
19819cat >>conftest.$ac_ext <<_ACEOF
19820/* end confdefs.h. */
2ba49b59 19821$ac_includes_default
5464f5a1
NN
19822int
19823main ()
19824{
2ba49b59
KC
19825static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19826test_array [0] = 0
19827
5464f5a1
NN
19828 ;
19829 return 0;
19830}
19831_ACEOF
19832rm -f conftest.$ac_objext
19833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19834 (eval $ac_compile) 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
49c96104
SE
19841 { ac_try='test -z "$ac_c_werror_flag"
19842 || test ! -s conftest.err'
5464f5a1
NN
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; } &&
19848 { ac_try='test -s conftest.$ac_objext'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
2ba49b59 19854 ac_hi=$ac_mid
1012372a 19855else
5464f5a1
NN
19856 echo "$as_me: failed program was:" >&5
19857sed 's/^/| /' conftest.$ac_ext >&5
19858
2ba49b59 19859ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 19860fi
5464f5a1 19861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 19862done
2ba49b59
KC
19863case $ac_lo in
19864?*) ac_cv_sizeof_off_t=$ac_lo;;
19865'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19866See \`config.log' for more details." >&5
19867echo "$as_me: error: cannot compute sizeof (off_t), 77
19868See \`config.log' for more details." >&2;}
19869 { (exit 1); exit 1; }; } ;;
19870esac
19871else
19872 if test "$cross_compiling" = yes; then
49c96104
SE
19873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19874See \`config.log' for more details." >&5
19875echo "$as_me: error: cannot run test program while cross compiling
19876See \`config.log' for more details." >&2;}
2ba49b59
KC
19877 { (exit 1); exit 1; }; }
19878else
19879 cat >conftest.$ac_ext <<_ACEOF
19880/* confdefs.h. */
19881_ACEOF
19882cat confdefs.h >>conftest.$ac_ext
19883cat >>conftest.$ac_ext <<_ACEOF
19884/* end confdefs.h. */
19885$ac_includes_default
19886long longval () { return (long) (sizeof (off_t)); }
19887unsigned long ulongval () { return (long) (sizeof (off_t)); }
19888#include <stdio.h>
19889#include <stdlib.h>
19890int
19891main ()
19892{
1012372a 19893
2ba49b59
KC
19894 FILE *f = fopen ("conftest.val", "w");
19895 if (! f)
19896 exit (1);
19897 if (((long) (sizeof (off_t))) < 0)
19898 {
19899 long i = longval ();
19900 if (i != ((long) (sizeof (off_t))))
19901 exit (1);
19902 fprintf (f, "%ld\n", i);
19903 }
19904 else
19905 {
19906 unsigned long i = ulongval ();
19907 if (i != ((long) (sizeof (off_t))))
19908 exit (1);
19909 fprintf (f, "%lu\n", i);
19910 }
19911 exit (ferror (f) || fclose (f) != 0);
19912
19913 ;
19914 return 0;
19915}
19916_ACEOF
19917rm -f conftest$ac_exeext
19918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19919 (eval $ac_link) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 ac_cv_sizeof_off_t=`cat conftest.val`
19929else
19930 echo "$as_me: program exited with status $ac_status" >&5
19931echo "$as_me: failed program was:" >&5
19932sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19933
2ba49b59
KC
19934( exit $ac_status )
19935{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19936See \`config.log' for more details." >&5
19937echo "$as_me: error: cannot compute sizeof (off_t), 77
19938See \`config.log' for more details." >&2;}
5464f5a1 19939 { (exit 1); exit 1; }; }
1012372a 19940fi
2ba49b59
KC
19941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19942fi
19943fi
19944rm -f conftest.val
19945else
19946 ac_cv_sizeof_off_t=0
19947fi
19948fi
5464f5a1
NN
19949echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19950echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 19951cat >>confdefs.h <<_ACEOF
1012372a 19952#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 19953_ACEOF
1012372a
AC
19954
19955
1012372a 19956fi
5464f5a1
NN
19957echo "$as_me:$LINENO: checking file_ptr type" >&5
19958echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
19959bfd_file_ptr="long"
19960bfd_ufile_ptr="unsigned long"
19961if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
19962 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
19963 bfd_file_ptr=BFD_HOST_64_BIT
19964 bfd_ufile_ptr=BFD_HOST_U_64_BIT
19965fi
5464f5a1
NN
19966echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
19967echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
19968
19969
19970
19971
252b5132
RH
19972tdefaults=""
19973test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
19974test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 19975test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
19976test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
19977test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
19978
6be7c12c 19979
5464f5a1
NN
19980
19981
19982for ac_header in stdlib.h unistd.h
252b5132 19983do
5464f5a1
NN
19984as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19985if eval "test \"\${$as_ac_Header+set}\" = set"; then
19986 echo "$as_me:$LINENO: checking for $ac_header" >&5
19987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19988if eval "test \"\${$as_ac_Header+set}\" = set"; then
19989 echo $ECHO_N "(cached) $ECHO_C" >&6
19990fi
19991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19992echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19993else
19994 # Is the header compilable?
19995echo "$as_me:$LINENO: checking $ac_header usability" >&5
19996echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19997cat >conftest.$ac_ext <<_ACEOF
19998/* confdefs.h. */
19999_ACEOF
20000cat confdefs.h >>conftest.$ac_ext
20001cat >>conftest.$ac_ext <<_ACEOF
20002/* end confdefs.h. */
20003$ac_includes_default
20004#include <$ac_header>
20005_ACEOF
20006rm -f conftest.$ac_objext
20007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20008 (eval $ac_compile) 2>conftest.er1
20009 ac_status=$?
20010 grep -v '^ *+' conftest.er1 >conftest.err
20011 rm -f conftest.er1
20012 cat conftest.err >&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } &&
49c96104
SE
20015 { ac_try='test -z "$ac_c_werror_flag"
20016 || test ! -s conftest.err'
5464f5a1
NN
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; } &&
20022 { ac_try='test -s conftest.$ac_objext'
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028 ac_header_compiler=yes
20029else
20030 echo "$as_me: failed program was:" >&5
20031sed 's/^/| /' conftest.$ac_ext >&5
20032
20033ac_header_compiler=no
20034fi
20035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20037echo "${ECHO_T}$ac_header_compiler" >&6
20038
20039# Is the header present?
20040echo "$as_me:$LINENO: checking $ac_header presence" >&5
20041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20042cat >conftest.$ac_ext <<_ACEOF
20043/* confdefs.h. */
20044_ACEOF
20045cat confdefs.h >>conftest.$ac_ext
20046cat >>conftest.$ac_ext <<_ACEOF
20047/* end confdefs.h. */
20048#include <$ac_header>
20049_ACEOF
20050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20052 ac_status=$?
20053 grep -v '^ *+' conftest.er1 >conftest.err
20054 rm -f conftest.er1
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } >/dev/null; then
20058 if test -s conftest.err; then
20059 ac_cpp_err=$ac_c_preproc_warn_flag
20060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20061 else
20062 ac_cpp_err=
20063 fi
252b5132 20064else
5464f5a1 20065 ac_cpp_err=yes
252b5132 20066fi
5464f5a1
NN
20067if test -z "$ac_cpp_err"; then
20068 ac_header_preproc=yes
20069else
20070 echo "$as_me: failed program was:" >&5
20071sed 's/^/| /' conftest.$ac_ext >&5
20072
20073 ac_header_preproc=no
252b5132 20074fi
5464f5a1
NN
20075rm -f conftest.err conftest.$ac_ext
20076echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20077echo "${ECHO_T}$ac_header_preproc" >&6
20078
20079# So? What about this header?
20080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20081 yes:no: )
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20086 ac_header_preproc=yes
20087 ;;
20088 no:yes:* )
20089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20092echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20096echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20101 (
20102 cat <<\_ASBOX
20103## ------------------------------------------ ##
20104## Report this to the AC_PACKAGE_NAME lists. ##
20105## ------------------------------------------ ##
20106_ASBOX
20107 ) |
20108 sed "s/^/$as_me: WARNING: /" >&2
20109 ;;
20110esac
20111echo "$as_me:$LINENO: checking for $ac_header" >&5
20112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20113if eval "test \"\${$as_ac_Header+set}\" = set"; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 20115else
5464f5a1
NN
20116 eval "$as_ac_Header=\$ac_header_preproc"
20117fi
20118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20120
20121fi
20122if test `eval echo '${'$as_ac_Header'}'` = yes; then
20123 cat >>confdefs.h <<_ACEOF
20124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20125_ACEOF
20126
252b5132 20127fi
5464f5a1 20128
252b5132
RH
20129done
20130
5464f5a1 20131
252b5132
RH
20132for ac_func in getpagesize
20133do
5464f5a1
NN
20134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20135echo "$as_me:$LINENO: checking for $ac_func" >&5
20136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20137if eval "test \"\${$as_ac_var+set}\" = set"; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20139else
20140 cat >conftest.$ac_ext <<_ACEOF
20141/* confdefs.h. */
20142_ACEOF
20143cat confdefs.h >>conftest.$ac_ext
20144cat >>conftest.$ac_ext <<_ACEOF
20145/* end confdefs.h. */
20146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20148#define $ac_func innocuous_$ac_func
20149
252b5132 20150/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
20151 which can conflict with char $ac_func (); below.
20152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20153 <limits.h> exists even on freestanding compilers. */
20154
20155#ifdef __STDC__
20156# include <limits.h>
20157#else
20158# include <assert.h>
20159#endif
6be7c12c 20160
5464f5a1 20161#undef $ac_func
252b5132 20162
5464f5a1
NN
20163/* Override any gcc2 internal prototype to avoid an error. */
20164#ifdef __cplusplus
20165extern "C"
20166{
20167#endif
20168/* We use char because int might match the return type of a gcc2
20169 builtin and then its argument prototype would still apply. */
20170char $ac_func ();
252b5132
RH
20171/* The GNU C library defines this for functions which it implements
20172 to always fail with ENOSYS. Some functions are actually named
20173 something starting with __ and the normal name is an alias. */
20174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20175choke me
20176#else
5464f5a1
NN
20177char (*f) () = $ac_func;
20178#endif
20179#ifdef __cplusplus
20180}
252b5132
RH
20181#endif
20182
5464f5a1
NN
20183int
20184main ()
20185{
20186return f != $ac_func;
20187 ;
20188 return 0;
20189}
20190_ACEOF
20191rm -f conftest.$ac_objext conftest$ac_exeext
20192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20193 (eval $ac_link) 2>conftest.er1
20194 ac_status=$?
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } &&
49c96104
SE
20200 { ac_try='test -z "$ac_c_werror_flag"
20201 || test ! -s conftest.err'
5464f5a1
NN
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; } &&
20207 { ac_try='test -s conftest$ac_exeext'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 eval "$as_ac_var=yes"
20214else
20215 echo "$as_me: failed program was:" >&5
20216sed 's/^/| /' conftest.$ac_ext >&5
20217
20218eval "$as_ac_var=no"
20219fi
20220rm -f conftest.err conftest.$ac_objext \
20221 conftest$ac_exeext conftest.$ac_ext
20222fi
20223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20225if test `eval echo '${'$as_ac_var'}'` = yes; then
20226 cat >>confdefs.h <<_ACEOF
20227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20228_ACEOF
252b5132 20229
252b5132
RH
20230fi
20231done
20232
5464f5a1
NN
20233echo "$as_me:$LINENO: checking for working mmap" >&5
20234echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20235if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
20237else
20238 if test "$cross_compiling" = yes; then
20239 ac_cv_func_mmap_fixed_mapped=no
20240else
5464f5a1
NN
20241 cat >conftest.$ac_ext <<_ACEOF
20242/* confdefs.h. */
20243_ACEOF
20244cat confdefs.h >>conftest.$ac_ext
20245cat >>conftest.$ac_ext <<_ACEOF
20246/* end confdefs.h. */
20247$ac_includes_default
20248/* malloc might have been renamed as rpl_malloc. */
20249#undef malloc
6be7c12c 20250
252b5132
RH
20251/* Thanks to Mike Haertel and Jim Avera for this test.
20252 Here is a matrix of mmap possibilities:
20253 mmap private not fixed
20254 mmap private fixed at somewhere currently unmapped
20255 mmap private fixed at somewhere already mapped
20256 mmap shared not fixed
20257 mmap shared fixed at somewhere currently unmapped
20258 mmap shared fixed at somewhere already mapped
20259 For private mappings, we should verify that changes cannot be read()
20260 back from the file, nor mmap's back from the file at a different
20261 address. (There have been systems where private was not correctly
20262 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 20263 VM page cache was not coherent with the file system buffer cache
252b5132
RH
20264 like early versions of FreeBSD and possibly contemporary NetBSD.)
20265 For shared mappings, we should conversely verify that changes get
5464f5a1 20266 propagated back to all the places they're supposed to be.
252b5132
RH
20267
20268 Grep wants private fixed already mapped.
20269 The main things grep needs to know about mmap are:
20270 * does it exist and is it safe to write into the mmap'd area
20271 * how to use it (BSD variants) */
5464f5a1 20272
252b5132
RH
20273#include <fcntl.h>
20274#include <sys/mman.h>
20275
5464f5a1
NN
20276#if !STDC_HEADERS && !HAVE_STDLIB_H
20277char *malloc ();
20278#endif
6be7c12c 20279
5464f5a1
NN
20280/* This mess was copied from the GNU getpagesize.h. */
20281#if !HAVE_GETPAGESIZE
252b5132 20282/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 20283# if !HAVE_SYS_PARAM_H
252b5132
RH
20284# define HAVE_SYS_PARAM_H 1
20285# endif
20286
20287# ifdef _SC_PAGESIZE
20288# define getpagesize() sysconf(_SC_PAGESIZE)
20289# else /* no _SC_PAGESIZE */
5464f5a1 20290# if HAVE_SYS_PARAM_H
252b5132
RH
20291# include <sys/param.h>
20292# ifdef EXEC_PAGESIZE
20293# define getpagesize() EXEC_PAGESIZE
20294# else /* no EXEC_PAGESIZE */
20295# ifdef NBPG
20296# define getpagesize() NBPG * CLSIZE
20297# ifndef CLSIZE
20298# define CLSIZE 1
20299# endif /* no CLSIZE */
20300# else /* no NBPG */
20301# ifdef NBPC
20302# define getpagesize() NBPC
20303# else /* no NBPC */
20304# ifdef PAGESIZE
20305# define getpagesize() PAGESIZE
20306# endif /* PAGESIZE */
20307# endif /* no NBPC */
20308# endif /* no NBPG */
20309# endif /* no EXEC_PAGESIZE */
20310# else /* no HAVE_SYS_PARAM_H */
20311# define getpagesize() 8192 /* punt totally */
20312# endif /* no HAVE_SYS_PARAM_H */
20313# endif /* no _SC_PAGESIZE */
20314
5464f5a1
NN
20315#endif /* no HAVE_GETPAGESIZE */
20316
20317int
20318main ()
20319{
20320 char *data, *data2, *data3;
20321 int i, pagesize;
20322 int fd;
20323
20324 pagesize = getpagesize ();
20325
20326 /* First, make a file with some known garbage in it. */
20327 data = (char *) malloc (pagesize);
20328 if (!data)
20329 exit (1);
20330 for (i = 0; i < pagesize; ++i)
20331 *(data + i) = rand ();
20332 umask (0);
20333 fd = creat ("conftest.mmap", 0600);
20334 if (fd < 0)
20335 exit (1);
20336 if (write (fd, data, pagesize) != pagesize)
20337 exit (1);
20338 close (fd);
20339
20340 /* Next, try to mmap the file at a fixed address which already has
20341 something else allocated at it. If we can, also make sure that
20342 we see the same garbage. */
20343 fd = open ("conftest.mmap", O_RDWR);
20344 if (fd < 0)
20345 exit (1);
20346 data2 = (char *) malloc (2 * pagesize);
20347 if (!data2)
20348 exit (1);
20349 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20350 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20351 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20352 exit (1);
20353 for (i = 0; i < pagesize; ++i)
20354 if (*(data + i) != *(data2 + i))
20355 exit (1);
20356
20357 /* Finally, make sure that changes to the mapped area do not
20358 percolate back to the file as seen by read(). (This is a bug on
20359 some variants of i386 svr4.0.) */
20360 for (i = 0; i < pagesize; ++i)
20361 *(data2 + i) = *(data2 + i) + 1;
20362 data3 = (char *) malloc (pagesize);
20363 if (!data3)
20364 exit (1);
20365 if (read (fd, data3, pagesize) != pagesize)
20366 exit (1);
20367 for (i = 0; i < pagesize; ++i)
20368 if (*(data + i) != *(data3 + i))
20369 exit (1);
20370 close (fd);
20371 exit (0);
20372}
20373_ACEOF
20374rm -f conftest$ac_exeext
20375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20376 (eval $ac_link) 2>&5
20377 ac_status=$?
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; }; then
20385 ac_cv_func_mmap_fixed_mapped=yes
20386else
20387 echo "$as_me: program exited with status $ac_status" >&5
20388echo "$as_me: failed program was:" >&5
20389sed 's/^/| /' conftest.$ac_ext >&5
20390
20391( exit $ac_status )
20392ac_cv_func_mmap_fixed_mapped=no
20393fi
20394rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20395fi
20396fi
20397echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20398echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20399if test $ac_cv_func_mmap_fixed_mapped = yes; then
20400
20401cat >>confdefs.h <<\_ACEOF
20402#define HAVE_MMAP 1
20403_ACEOF
20404
20405fi
20406rm -f conftest.mmap
20407
20408
20409
20410for ac_func in madvise mprotect
20411do
20412as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20413echo "$as_me:$LINENO: checking for $ac_func" >&5
20414echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20415if eval "test \"\${$as_ac_var+set}\" = set"; then
20416 echo $ECHO_N "(cached) $ECHO_C" >&6
20417else
20418 cat >conftest.$ac_ext <<_ACEOF
20419/* confdefs.h. */
20420_ACEOF
20421cat confdefs.h >>conftest.$ac_ext
20422cat >>conftest.$ac_ext <<_ACEOF
20423/* end confdefs.h. */
20424/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20426#define $ac_func innocuous_$ac_func
20427
20428/* System header to define __stub macros and hopefully few prototypes,
20429 which can conflict with char $ac_func (); below.
20430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20431 <limits.h> exists even on freestanding compilers. */
20432
20433#ifdef __STDC__
20434# include <limits.h>
20435#else
20436# include <assert.h>
20437#endif
20438
20439#undef $ac_func
20440
20441/* Override any gcc2 internal prototype to avoid an error. */
20442#ifdef __cplusplus
20443extern "C"
20444{
20445#endif
20446/* We use char because int might match the return type of a gcc2
20447 builtin and then its argument prototype would still apply. */
20448char $ac_func ();
20449/* The GNU C library defines this for functions which it implements
20450 to always fail with ENOSYS. Some functions are actually named
20451 something starting with __ and the normal name is an alias. */
20452#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20453choke me
20454#else
20455char (*f) () = $ac_func;
20456#endif
20457#ifdef __cplusplus
20458}
20459#endif
20460
20461int
20462main ()
20463{
20464return f != $ac_func;
20465 ;
20466 return 0;
20467}
20468_ACEOF
20469rm -f conftest.$ac_objext conftest$ac_exeext
20470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20471 (eval $ac_link) 2>conftest.er1
20472 ac_status=$?
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
49c96104
SE
20478 { ac_try='test -z "$ac_c_werror_flag"
20479 || test ! -s conftest.err'
5464f5a1
NN
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; } &&
20485 { ac_try='test -s conftest$ac_exeext'
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20491 eval "$as_ac_var=yes"
20492else
20493 echo "$as_me: failed program was:" >&5
20494sed 's/^/| /' conftest.$ac_ext >&5
20495
20496eval "$as_ac_var=no"
20497fi
20498rm -f conftest.err conftest.$ac_objext \
20499 conftest$ac_exeext conftest.$ac_ext
20500fi
20501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20502echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20503if test `eval echo '${'$as_ac_var'}'` = yes; then
20504 cat >>confdefs.h <<_ACEOF
20505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20506_ACEOF
20507
20508fi
20509done
20510
20511case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20512 true+yes )
20513cat >>confdefs.h <<\_ACEOF
20514#define USE_MMAP 1
20515_ACEOF
20516 ;;
20517esac
20518
20519rm -f doc/config.status
20520 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20521
20e95c23 20522
5464f5a1
NN
20523 ac_config_commands="$ac_config_commands default"
20524
108a6f8e
CD
20525
20526
20527
20528
20529
5464f5a1
NN
20530cat >confcache <<\_ACEOF
20531# This file is a shell script that caches the results of configure
20532# tests run on this system so they can be shared between configure
20533# scripts and configure runs, see configure's option --config-cache.
20534# It is not useful on other systems. If it contains results you don't
20535# want to keep, you may remove or edit it.
20536#
20537# config.status only pays attention to the cache file if you give it
20538# the --recheck option to rerun configure.
20539#
20540# `ac_cv_env_foo' variables (set or unset) will be overridden when
20541# loading this file, other *unset* `ac_cv_foo' will be assigned the
20542# following values.
20543
20544_ACEOF
20545
20546# The following way of writing the cache mishandles newlines in values,
20547# but we know of no workaround that is simple, portable, and efficient.
20548# So, don't put newlines in cache variables' values.
20549# Ultrix sh set writes to stderr and can't be redirected directly,
20550# and sets the high bit in the cache file unless we assign to the vars.
20551{
20552 (set) 2>&1 |
20553 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20554 *ac_space=\ *)
20555 # `set' does not quote correctly, so add quotes (double-quote
20556 # substitution turns \\\\ into \\, and sed turns \\ into \).
20557 sed -n \
20558 "s/'/'\\\\''/g;
20559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20560 ;;
20561 *)
20562 # `set' quotes correctly as required by POSIX, so do not add quotes.
20563 sed -n \
20564 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20565 ;;
20566 esac;
20567} |
20568 sed '
20569 t clear
20570 : clear
20571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20572 t end
20573 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20574 : end' >>confcache
20575if diff $cache_file confcache >/dev/null 2>&1; then :; else
20576 if test -w $cache_file; then
20577 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20578 cat confcache >$cache_file
20579 else
20580 echo "not updating unwritable cache $cache_file"
20581 fi
20582fi
20583rm -f confcache
20584
20585test "x$prefix" = xNONE && prefix=$ac_default_prefix
20586# Let make expand exec_prefix.
20587test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20588
20589# VPATH may cause trouble with some makes, so we remove $(srcdir),
20590# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20591# trailing colons and then remove the whole line if VPATH becomes empty
20592# (actually we leave an empty line to preserve line numbers).
20593if test "x$srcdir" = x.; then
20594 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20595s/:*\$(srcdir):*/:/;
20596s/:*\${srcdir}:*/:/;
20597s/:*@srcdir@:*/:/;
20598s/^\([^=]*=[ ]*\):*/\1/;
20599s/:*$//;
20600s/^[^=]*=[ ]*$//;
20601}'
20602fi
20603
20604DEFS=-DHAVE_CONFIG_H
20605
20606ac_libobjs=
20607ac_ltlibobjs=
20608for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20609 # 1. Remove the extension, and $U if already installed.
20610 ac_i=`echo "$ac_i" |
20611 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20612 # 2. Add them.
20613 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20614 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20615done
20616LIBOBJS=$ac_libobjs
20617
20618LTLIBOBJS=$ac_ltlibobjs
20619
20620
f5385ebf
AM
20621if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20622 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20623Usually this means the macro was only invoked conditionally." >&5
20624echo "$as_me: error: conditional \"AMDEP\" was never defined.
20625Usually this means the macro was only invoked conditionally." >&2;}
20626 { (exit 1); exit 1; }; }
20627fi
20628if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20629 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20630Usually this means the macro was only invoked conditionally." >&5
20631echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20632Usually this means the macro was only invoked conditionally." >&2;}
20633 { (exit 1); exit 1; }; }
20634fi
20635if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20636 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20637Usually this means the macro was only invoked conditionally." >&5
20638echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20639Usually this means the macro was only invoked conditionally." >&2;}
20640 { (exit 1); exit 1; }; }
20641fi
d5fbea21
DJ
20642if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20643 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20644Usually this means the macro was only invoked conditionally." >&5
20645echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20646Usually this means the macro was only invoked conditionally." >&2;}
20647 { (exit 1); exit 1; }; }
20648fi
f5385ebf
AM
20649if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20650 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20651Usually this means the macro was only invoked conditionally." >&5
20652echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20653Usually this means the macro was only invoked conditionally." >&2;}
20654 { (exit 1); exit 1; }; }
20655fi
5464f5a1
NN
20656
20657: ${CONFIG_STATUS=./config.status}
20658ac_clean_files_save=$ac_clean_files
20659ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20660{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20661echo "$as_me: creating $CONFIG_STATUS" >&6;}
20662cat >$CONFIG_STATUS <<_ACEOF
20663#! $SHELL
20664# Generated by $as_me.
20665# Run this file to recreate the current configuration.
20666# Compiler output produced by configure, useful for debugging
20667# configure, is in config.log if it exists.
20668
20669debug=false
20670ac_cs_recheck=false
20671ac_cs_silent=false
20672SHELL=\${CONFIG_SHELL-$SHELL}
20673_ACEOF
20674
20675cat >>$CONFIG_STATUS <<\_ACEOF
20676## --------------------- ##
20677## M4sh Initialization. ##
20678## --------------------- ##
20679
20680# Be Bourne compatible
20681if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20682 emulate sh
20683 NULLCMD=:
20684 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20685 # is contrary to our usage. Disable this feature.
20686 alias -g '${1+"$@"}'='"$@"'
20687elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20688 set -o posix
20689fi
20690DUALCASE=1; export DUALCASE # for MKS sh
20691
20692# Support unset when possible.
20693if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20694 as_unset=unset
20695else
20696 as_unset=false
20697fi
20698
20699
20700# Work around bugs in pre-3.0 UWIN ksh.
20701$as_unset ENV MAIL MAILPATH
20702PS1='$ '
20703PS2='> '
20704PS4='+ '
20705
20706# NLS nuisances.
20707for as_var in \
20708 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20709 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20710 LC_TELEPHONE LC_TIME
20711do
20712 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20713 eval $as_var=C; export $as_var
20714 else
20715 $as_unset $as_var
20716 fi
20717done
20718
20719# Required to use basename.
20720if expr a : '\(a\)' >/dev/null 2>&1; then
20721 as_expr=expr
20722else
20723 as_expr=false
20724fi
20725
20726if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20727 as_basename=basename
20728else
20729 as_basename=false
20730fi
252b5132 20731
6be7c12c 20732
5464f5a1
NN
20733# Name of the executable.
20734as_me=`$as_basename "$0" ||
20735$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20736 X"$0" : 'X\(//\)$' \| \
20737 X"$0" : 'X\(/\)$' \| \
20738 . : '\(.\)' 2>/dev/null ||
20739echo X/"$0" |
20740 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20741 /^X\/\(\/\/\)$/{ s//\1/; q; }
20742 /^X\/\(\/\).*/{ s//\1/; q; }
20743 s/.*/./; q'`
20744
20745
20746# PATH needs CR, and LINENO needs CR and PATH.
20747# Avoid depending upon Character Ranges.
20748as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20749as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20750as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20751as_cr_digits='0123456789'
20752as_cr_alnum=$as_cr_Letters$as_cr_digits
20753
20754# The user is always right.
20755if test "${PATH_SEPARATOR+set}" != set; then
20756 echo "#! /bin/sh" >conf$$.sh
20757 echo "exit 0" >>conf$$.sh
20758 chmod +x conf$$.sh
20759 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20760 PATH_SEPARATOR=';'
20761 else
20762 PATH_SEPARATOR=:
20763 fi
20764 rm -f conf$$.sh
20765fi
20766
20767
20768 as_lineno_1=$LINENO
20769 as_lineno_2=$LINENO
20770 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20771 test "x$as_lineno_1" != "x$as_lineno_2" &&
20772 test "x$as_lineno_3" = "x$as_lineno_2" || {
20773 # Find who we are. Look in the path if we contain no path at all
20774 # relative or not.
20775 case $0 in
20776 *[\\/]* ) as_myself=$0 ;;
20777 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20778for as_dir in $PATH
20779do
20780 IFS=$as_save_IFS
20781 test -z "$as_dir" && as_dir=.
20782 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20783done
20784
20785 ;;
20786 esac
20787 # We did not find ourselves, most probably we were run as `sh COMMAND'
20788 # in which case we are not to be found in the path.
20789 if test "x$as_myself" = x; then
20790 as_myself=$0
20791 fi
20792 if test ! -f "$as_myself"; then
20793 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20794echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20795 { (exit 1); exit 1; }; }
20796 fi
20797 case $CONFIG_SHELL in
20798 '')
20799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20800for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20801do
20802 IFS=$as_save_IFS
20803 test -z "$as_dir" && as_dir=.
20804 for as_base in sh bash ksh sh5; do
20805 case $as_dir in
20806 /*)
20807 if ("$as_dir/$as_base" -c '
20808 as_lineno_1=$LINENO
20809 as_lineno_2=$LINENO
20810 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20811 test "x$as_lineno_1" != "x$as_lineno_2" &&
20812 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20813 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20814 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20815 CONFIG_SHELL=$as_dir/$as_base
20816 export CONFIG_SHELL
20817 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20818 fi;;
20819 esac
20820 done
20821done
20822;;
20823 esac
20824
20825 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20826 # uniformly replaced by the line number. The first 'sed' inserts a
20827 # line-number line before each line; the second 'sed' does the real
20828 # work. The second script uses 'N' to pair each line-number line
20829 # with the numbered line, and appends trailing '-' during
20830 # substitution so that $LINENO is not a special case at line end.
20831 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20832 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20833 sed '=' <$as_myself |
20834 sed '
20835 N
20836 s,$,-,
20837 : loop
20838 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20839 t loop
20840 s,-$,,
20841 s,^['$as_cr_digits']*\n,,
20842 ' >$as_me.lineno &&
20843 chmod +x $as_me.lineno ||
20844 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20845echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20846 { (exit 1); exit 1; }; }
20847
20848 # Don't try to exec as it changes $[0], causing all sort of problems
20849 # (the dirname of $[0] is not the place where we might find the
20850 # original and so on. Autoconf is especially sensible to this).
20851 . ./$as_me.lineno
20852 # Exit status is that of the last command.
20853 exit
252b5132 20854}
6be7c12c 20855
5464f5a1
NN
20856
20857case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20858 *c*,-n*) ECHO_N= ECHO_C='
20859' ECHO_T=' ' ;;
20860 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20861 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20862esac
20863
20864if expr a : '\(a\)' >/dev/null 2>&1; then
20865 as_expr=expr
252b5132 20866else
5464f5a1 20867 as_expr=false
252b5132 20868fi
5464f5a1
NN
20869
20870rm -f conf$$ conf$$.exe conf$$.file
20871echo >conf$$.file
20872if ln -s conf$$.file conf$$ 2>/dev/null; then
20873 # We could just check for DJGPP; but this test a) works b) is more generic
20874 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20875 if test -f conf$$.exe; then
20876 # Don't use ln at all; we don't have any links
20877 as_ln_s='cp -p'
20878 else
20879 as_ln_s='ln -s'
20880 fi
20881elif ln conf$$.file conf$$ 2>/dev/null; then
20882 as_ln_s=ln
20883else
20884 as_ln_s='cp -p'
252b5132 20885fi
5464f5a1 20886rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 20887
5464f5a1
NN
20888if mkdir -p . 2>/dev/null; then
20889 as_mkdir_p=:
20890else
20891 test -d ./-p && rmdir ./-p
20892 as_mkdir_p=false
252b5132 20893fi
b3baf5d0 20894
5464f5a1 20895as_executable_p="test -f"
252b5132 20896
5464f5a1
NN
20897# Sed expression to map a string onto a valid CPP name.
20898as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 20899
5464f5a1
NN
20900# Sed expression to map a string onto a valid variable name.
20901as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 20902
252b5132 20903
5464f5a1
NN
20904# IFS
20905# We need space, tab and new line, in precisely that order.
20906as_nl='
20907'
20908IFS=" $as_nl"
252b5132 20909
5464f5a1
NN
20910# CDPATH.
20911$as_unset CDPATH
20912
20913exec 6>&1
20914
20915# Open the log real soon, to keep \$[0] and so on meaningful, and to
20916# report actual input values of CONFIG_FILES etc. instead of their
20917# values after options handling. Logging --version etc. is OK.
20918exec 5>>config.log
20919{
20920 echo
20921 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20922## Running $as_me. ##
20923_ASBOX
20924} >&5
20925cat >&5 <<_CSEOF
20926
20927This file was extended by $as_me, which was
20928generated by GNU Autoconf 2.59. Invocation command line was
20929
20930 CONFIG_FILES = $CONFIG_FILES
20931 CONFIG_HEADERS = $CONFIG_HEADERS
20932 CONFIG_LINKS = $CONFIG_LINKS
20933 CONFIG_COMMANDS = $CONFIG_COMMANDS
20934 $ $0 $@
20935
20936_CSEOF
20937echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20938echo >&5
20939_ACEOF
20940
20941# Files that config.status was made for.
20942if test -n "$ac_config_files"; then
20943 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 20944fi
5464f5a1
NN
20945
20946if test -n "$ac_config_headers"; then
20947 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 20948fi
252b5132 20949
5464f5a1
NN
20950if test -n "$ac_config_links"; then
20951 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 20952fi
252b5132 20953
5464f5a1
NN
20954if test -n "$ac_config_commands"; then
20955 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20956fi
252b5132 20957
5464f5a1
NN
20958cat >>$CONFIG_STATUS <<\_ACEOF
20959
20960ac_cs_usage="\
20961\`$as_me' instantiates files from templates according to the
20962current configuration.
20963
20964Usage: $0 [OPTIONS] [FILE]...
20965
20966 -h, --help print this help, then exit
20967 -V, --version print version number, then exit
20968 -q, --quiet do not print progress messages
20969 -d, --debug don't remove temporary files
20970 --recheck update $as_me by reconfiguring in the same conditions
20971 --file=FILE[:TEMPLATE]
20972 instantiate the configuration file FILE
20973 --header=FILE[:TEMPLATE]
20974 instantiate the configuration header FILE
20975
20976Configuration files:
20977$config_files
20978
20979Configuration headers:
20980$config_headers
20981
20982Configuration commands:
20983$config_commands
20984
20985Report bugs to <bug-autoconf@gnu.org>."
20986_ACEOF
20987
20988cat >>$CONFIG_STATUS <<_ACEOF
20989ac_cs_version="\\
20990config.status
20991configured by $0, generated by GNU Autoconf 2.59,
20992 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20993
20994Copyright (C) 2003 Free Software Foundation, Inc.
20995This config.status script is free software; the Free Software Foundation
20996gives unlimited permission to copy, distribute and modify it."
20997srcdir=$srcdir
20998INSTALL="$INSTALL"
20999_ACEOF
21000
21001cat >>$CONFIG_STATUS <<\_ACEOF
21002# If no file are specified by the user, then we need to provide default
21003# value. By we need to know if files were specified by the user.
21004ac_need_defaults=:
21005while test $# != 0
21006do
21007 case $1 in
21008 --*=*)
21009 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21010 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21011 ac_shift=:
6be7c12c 21012 ;;
5464f5a1
NN
21013 -*)
21014 ac_option=$1
21015 ac_optarg=$2
21016 ac_shift=shift
6be7c12c 21017 ;;
5464f5a1
NN
21018 *) # This is not an option, so the user has probably given explicit
21019 # arguments.
21020 ac_option=$1
21021 ac_need_defaults=false;;
21022 esac
252b5132 21023
5464f5a1
NN
21024 case $ac_option in
21025 # Handling of the options.
21026_ACEOF
21027cat >>$CONFIG_STATUS <<\_ACEOF
21028 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21029 ac_cs_recheck=: ;;
21030 --version | --vers* | -V )
21031 echo "$ac_cs_version"; exit 0 ;;
21032 --he | --h)
21033 # Conflict between --help and --header
21034 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21035Try \`$0 --help' for more information." >&5
21036echo "$as_me: error: ambiguous option: $1
21037Try \`$0 --help' for more information." >&2;}
21038 { (exit 1); exit 1; }; };;
21039 --help | --hel | -h )
21040 echo "$ac_cs_usage"; exit 0 ;;
21041 --debug | --d* | -d )
21042 debug=: ;;
21043 --file | --fil | --fi | --f )
21044 $ac_shift
21045 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21046 ac_need_defaults=false;;
21047 --header | --heade | --head | --hea )
21048 $ac_shift
21049 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21050 ac_need_defaults=false;;
21051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21052 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21053 ac_cs_silent=: ;;
6be7c12c 21054
5464f5a1
NN
21055 # This is an error.
21056 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21057Try \`$0 --help' for more information." >&5
21058echo "$as_me: error: unrecognized option: $1
21059Try \`$0 --help' for more information." >&2;}
21060 { (exit 1); exit 1; }; } ;;
252b5132 21061
5464f5a1 21062 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 21063
5464f5a1
NN
21064 esac
21065 shift
21066done
6be7c12c 21067
5464f5a1 21068ac_configure_extra_args=
252b5132 21069
5464f5a1
NN
21070if $ac_cs_silent; then
21071 exec 6>/dev/null
21072 ac_configure_extra_args="$ac_configure_extra_args --silent"
21073fi
6be7c12c 21074
5464f5a1
NN
21075_ACEOF
21076cat >>$CONFIG_STATUS <<_ACEOF
21077if \$ac_cs_recheck; then
21078 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21079 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21080fi
21081
21082_ACEOF
21083
21084cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 21085#
5464f5a1 21086# INIT-COMMANDS section.
6be7c12c 21087#
b3baf5d0 21088
f5385ebf 21089AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
21090
21091
21092# The HP-UX ksh and POSIX shell print the target directory to stdout
21093# if CDPATH is set.
21094(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21095
21096sed_quote_subst='$sed_quote_subst'
21097double_quote_subst='$double_quote_subst'
21098delay_variable_subst='$delay_variable_subst'
21099enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21100macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21101macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21102enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21103pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21104enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21105host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21106host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21107host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21108build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21109build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21110build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21111SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21112Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21113GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21114EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21115FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21116LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21117NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21118LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21119max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21120ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21121exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21122lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21123lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21124lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21125reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21126reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21127deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21128file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21129AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21130AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21131STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21132RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21133old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21134old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21135old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21136CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21137CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21138compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21139GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21140lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21141lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21142lt_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"`'
21143objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21144SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21145ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21146MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21147lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21148lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21149lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21150lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21151lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21152need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21153libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21154shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21155extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21156archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21157enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21158export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21159whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21160compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21161old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21162old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21163archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21164archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21165module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21166module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21167with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21168allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21169no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21170hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21171hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21172hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21173hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21174hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21175hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21176hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21177hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21178inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21179link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21180fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21181always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21182export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21183exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21184include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21185prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21186file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21187variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21188need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21189need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21190version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21191runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21192shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21193shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21194libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21195library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21196soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21197postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21198postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21199finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21200finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21201hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21202sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21203sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21204hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21205enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21206enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21207enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21208old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21209striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21210
21211LTCC='$LTCC'
21212LTCFLAGS='$LTCFLAGS'
21213compiler='$compiler_DEFAULT'
21214
21215# Quote evaled strings.
21216for var in SED \
21217GREP \
21218EGREP \
21219FGREP \
21220LD \
21221NM \
21222LN_S \
21223lt_SP2NL \
21224lt_NL2SP \
21225reload_flag \
21226deplibs_check_method \
21227file_magic_cmd \
21228AR \
21229AR_FLAGS \
21230STRIP \
21231RANLIB \
21232CC \
21233CFLAGS \
21234compiler \
21235lt_cv_sys_global_symbol_pipe \
21236lt_cv_sys_global_symbol_to_cdecl \
21237lt_cv_sys_global_symbol_to_c_name_address \
21238SHELL \
21239ECHO \
21240lt_prog_compiler_no_builtin_flag \
21241lt_prog_compiler_wl \
21242lt_prog_compiler_pic \
21243lt_prog_compiler_static \
21244lt_cv_prog_compiler_c_o \
21245need_locks \
21246shrext_cmds \
21247export_dynamic_flag_spec \
21248whole_archive_flag_spec \
21249compiler_needs_object \
21250with_gnu_ld \
21251allow_undefined_flag \
21252no_undefined_flag \
21253hardcode_libdir_flag_spec \
21254hardcode_libdir_flag_spec_ld \
21255hardcode_libdir_separator \
21256fix_srcfile_path \
21257exclude_expsyms \
21258include_expsyms \
21259file_list_spec \
21260variables_saved_for_relink \
21261libname_spec \
21262library_names_spec \
21263soname_spec \
21264finish_eval \
21265old_striplib \
21266striplib; do
21267 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21268 *[\\\\\\\`\\"\\\$]*)
21269 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21270 ;;
21271 *)
21272 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21273 ;;
21274 esac
21275done
21276
21277# Double-quote double-evaled strings.
21278for var in reload_cmds \
21279old_postinstall_cmds \
21280old_postuninstall_cmds \
21281old_archive_cmds \
21282extract_expsyms_cmds \
21283old_archive_from_new_cmds \
21284old_archive_from_expsyms_cmds \
21285archive_cmds \
21286archive_expsym_cmds \
21287module_cmds \
21288module_expsym_cmds \
21289export_symbols_cmds \
21290prelink_cmds \
21291postinstall_cmds \
21292postuninstall_cmds \
21293finish_cmds \
21294sys_lib_search_path_spec \
21295sys_lib_dlsearch_path_spec; do
21296 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21297 *[\\\\\\\`\\"\\\$]*)
21298 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21299 ;;
21300 *)
21301 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21302 ;;
21303 esac
21304done
21305
21306# Fix-up fallback echo if it was mangled by the above quoting rules.
21307case \$lt_ECHO in
21308*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21309 ;;
21310esac
21311
21312ac_aux_dir='$ac_aux_dir'
21313xsi_shell='$xsi_shell'
21314lt_shell_append='$lt_shell_append'
21315
21316# See if we are running on zsh, and set the options which allow our
21317# commands through without removal of \ escapes INIT.
21318if test -n "\${ZSH_VERSION+set}" ; then
21319 setopt NO_GLOB_SUBST
21320fi
21321
21322
21323 PACKAGE='$PACKAGE'
21324 VERSION='$VERSION'
21325 TIMESTAMP='$TIMESTAMP'
21326 RM='$RM'
21327 ofile='$ofile'
21328
21329
21330
20e95c23
DJ
21331# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21332 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21333 # from automake.
21334 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21335 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21336 LINGUAS="${LINGUAS-%UNSET%}"
21337
5464f5a1 21338
d5efd9fc
AM
21339GCC="$GCC"
21340CC="$CC"
21341acx_cv_header_stdint="$acx_cv_header_stdint"
21342acx_cv_type_int8_t="$acx_cv_type_int8_t"
21343acx_cv_type_int16_t="$acx_cv_type_int16_t"
21344acx_cv_type_int32_t="$acx_cv_type_int32_t"
21345acx_cv_type_int64_t="$acx_cv_type_int64_t"
21346acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21347ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21348ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21349ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21350ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21351ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21352ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21353ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21354ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21355
21356
5464f5a1
NN
21357
21358_ACEOF
21359
21360
21361
21362cat >>$CONFIG_STATUS <<\_ACEOF
21363for ac_config_target in $ac_config_targets
252b5132 21364do
5464f5a1
NN
21365 case "$ac_config_target" in
21366 # Handling of arguments.
21367 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21368 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21369 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21370 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 21371 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 21372 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 21373 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 21374 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
21375 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21376 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21377 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21378echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21379 { (exit 1); exit 1; }; };;
252b5132
RH
21380 esac
21381done
21382
5464f5a1
NN
21383# If the user did not use the arguments to specify the items to instantiate,
21384# then the envvar interface is used. Set only those that are not.
21385# We use the long form for the default assignment because of an extremely
21386# bizarre bug on SunOS 4.1.3.
21387if $ac_need_defaults; then
21388 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21389 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21390 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21391fi
21392
21393# Have a temporary directory for convenience. Make it in the build tree
21394# simply because there is no reason to put it here, and in addition,
21395# creating and moving files from /tmp can sometimes cause problems.
21396# Create a temporary directory, and hook for its removal unless debugging.
21397$debug ||
21398{
21399 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21400 trap '{ (exit 1); exit 1; }' 1 2 13 15
21401}
b3baf5d0 21402
5464f5a1 21403# Create a (secure) tmp directory for tmp files.
b3baf5d0 21404
5464f5a1
NN
21405{
21406 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21407 test -n "$tmp" && test -d "$tmp"
21408} ||
21409{
21410 tmp=./confstat$$-$RANDOM
21411 (umask 077 && mkdir $tmp)
21412} ||
21413{
21414 echo "$me: cannot create a temporary directory in ." >&2
21415 { (exit 1); exit 1; }
21416}
21417
21418_ACEOF
21419
21420cat >>$CONFIG_STATUS <<_ACEOF
21421
21422#
21423# CONFIG_FILES section.
21424#
b3baf5d0 21425
5464f5a1
NN
21426# No need to generate the scripts if there are no CONFIG_FILES.
21427# This happens for instance when ./config.status config.h
21428if test -n "\$CONFIG_FILES"; then
21429 # Protect against being on the right side of a sed subst in config.status.
21430 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21431 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21432s,@SHELL@,$SHELL,;t t
21433s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21434s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21435s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21436s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21437s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21438s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21439s,@exec_prefix@,$exec_prefix,;t t
21440s,@prefix@,$prefix,;t t
21441s,@program_transform_name@,$program_transform_name,;t t
21442s,@bindir@,$bindir,;t t
21443s,@sbindir@,$sbindir,;t t
21444s,@libexecdir@,$libexecdir,;t t
21445s,@datadir@,$datadir,;t t
21446s,@sysconfdir@,$sysconfdir,;t t
21447s,@sharedstatedir@,$sharedstatedir,;t t
21448s,@localstatedir@,$localstatedir,;t t
21449s,@libdir@,$libdir,;t t
21450s,@includedir@,$includedir,;t t
21451s,@oldincludedir@,$oldincludedir,;t t
21452s,@infodir@,$infodir,;t t
21453s,@mandir@,$mandir,;t t
21454s,@build_alias@,$build_alias,;t t
21455s,@host_alias@,$host_alias,;t t
21456s,@target_alias@,$target_alias,;t t
21457s,@DEFS@,$DEFS,;t t
21458s,@ECHO_C@,$ECHO_C,;t t
21459s,@ECHO_N@,$ECHO_N,;t t
21460s,@ECHO_T@,$ECHO_T,;t t
21461s,@LIBS@,$LIBS,;t t
21462s,@build@,$build,;t t
21463s,@build_cpu@,$build_cpu,;t t
21464s,@build_vendor@,$build_vendor,;t t
21465s,@build_os@,$build_os,;t t
21466s,@host@,$host,;t t
21467s,@host_cpu@,$host_cpu,;t t
21468s,@host_vendor@,$host_vendor,;t t
21469s,@host_os@,$host_os,;t t
21470s,@target@,$target,;t t
21471s,@target_cpu@,$target_cpu,;t t
21472s,@target_vendor@,$target_vendor,;t t
21473s,@target_os@,$target_os,;t t
21474s,@CC@,$CC,;t t
21475s,@CFLAGS@,$CFLAGS,;t t
21476s,@LDFLAGS@,$LDFLAGS,;t t
21477s,@CPPFLAGS@,$CPPFLAGS,;t t
21478s,@ac_ct_CC@,$ac_ct_CC,;t t
21479s,@EXEEXT@,$EXEEXT,;t t
21480s,@OBJEXT@,$OBJEXT,;t t
21481s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21482s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21483s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 21484s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
21485s,@PACKAGE@,$PACKAGE,;t t
21486s,@VERSION@,$VERSION,;t t
21487s,@ACLOCAL@,$ACLOCAL,;t t
21488s,@AUTOCONF@,$AUTOCONF,;t t
21489s,@AUTOMAKE@,$AUTOMAKE,;t t
21490s,@AUTOHEADER@,$AUTOHEADER,;t t
21491s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
21492s,@install_sh@,$install_sh,;t t
21493s,@STRIP@,$STRIP,;t t
21494s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21495s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21496s,@mkdir_p@,$mkdir_p,;t t
21497s,@AWK@,$AWK,;t t
5464f5a1 21498s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
21499s,@am__leading_dot@,$am__leading_dot,;t t
21500s,@AMTAR@,$AMTAR,;t t
21501s,@am__tar@,$am__tar,;t t
21502s,@am__untar@,$am__untar,;t t
21503s,@DEPDIR@,$DEPDIR,;t t
21504s,@am__include@,$am__include,;t t
21505s,@am__quote@,$am__quote,;t t
21506s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21507s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21508s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21509s,@CCDEPMODE@,$CCDEPMODE,;t t
21510s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21511s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
21512s,@AR@,$AR,;t t
21513s,@ac_ct_AR@,$ac_ct_AR,;t t
21514s,@RANLIB@,$RANLIB,;t t
21515s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5464f5a1 21516s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb
SE
21517s,@SED@,$SED,;t t
21518s,@EGREP@,$EGREP,;t t
21519s,@FGREP@,$FGREP,;t t
21520s,@GREP@,$GREP,;t t
21521s,@LD@,$LD,;t t
21522s,@DUMPBIN@,$DUMPBIN,;t t
21523s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21524s,@NM@,$NM,;t t
21525s,@LN_S@,$LN_S,;t t
21526s,@lt_ECHO@,$lt_ECHO,;t t
21527s,@CPP@,$CPP,;t t
0d4a1476 21528s,@DEBUGDIR@,$DEBUGDIR,;t t
92f01d61 21529s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
21530s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21531s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 21532s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 21533s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
21534s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21535s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21536s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
21537s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21538s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
21539s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21540s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
21541s,@host_noncanonical@,$host_noncanonical,;t t
21542s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
21543s,@bfdlibdir@,$bfdlibdir,;t t
21544s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 21545s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
21546s,@LIBINTL@,$LIBINTL,;t t
21547s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21548s,@INCINTL@,$INCINTL,;t t
5464f5a1 21549s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
21550s,@GMSGFMT@,$GMSGFMT,;t t
21551s,@POSUB@,$POSUB,;t t
5464f5a1 21552s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 21553s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 21554s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
21555s,@GENCAT@,$GENCAT,;t t
21556s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 21557s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
21558s,@MSGFMT@,$MSGFMT,;t t
21559s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
21560s,@HDEFINES@,$HDEFINES,;t t
21561s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
d2df793a 21562s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
5464f5a1
NN
21563s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21564s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21565s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
d2df793a 21566s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
5464f5a1
NN
21567s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21568s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21569s,@COREFILE@,$COREFILE,;t t
21570s,@COREFLAG@,$COREFLAG,;t t
21571s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21572s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21573s,@TDEFINES@,$TDEFINES,;t t
21574s,@wordsize@,$wordsize,;t t
21e40a48 21575s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
21576s,@all_backends@,$all_backends,;t t
21577s,@bfd_backends@,$bfd_backends,;t t
21578s,@bfd_machines@,$bfd_machines,;t t
21579s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21580s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21581s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21582s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
21583s,@datarootdir@,$datarootdir,;t t
21584s,@docdir@,$docdir,;t t
21585s,@htmldir@,$htmldir,;t t
5464f5a1
NN
21586s,@LIBOBJS@,$LIBOBJS,;t t
21587s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 21588CEOF
252b5132 21589
5464f5a1
NN
21590_ACEOF
21591
21592 cat >>$CONFIG_STATUS <<\_ACEOF
21593 # Split the substitutions into bite-sized pieces for seds with
21594 # small command number limits, like on Digital OSF/1 and HP-UX.
21595 ac_max_sed_lines=48
21596 ac_sed_frag=1 # Number of current file.
21597 ac_beg=1 # First line for current file.
21598 ac_end=$ac_max_sed_lines # Line after last line for current file.
21599 ac_more_lines=:
21600 ac_sed_cmds=
21601 while $ac_more_lines; do
21602 if test $ac_beg -gt 1; then
21603 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 21604 else
5464f5a1
NN
21605 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21606 fi
21607 if test ! -s $tmp/subs.frag; then
21608 ac_more_lines=false
21609 else
21610 # The purpose of the label and of the branching condition is to
21611 # speed up the sed processing (if there are no `@' at all, there
21612 # is no need to browse any of the substitutions).
21613 # These are the two extra sed commands mentioned above.
21614 (echo ':t
21615 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21616 if test -z "$ac_sed_cmds"; then
21617 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21618 else
21619 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21620 fi
21621 ac_sed_frag=`expr $ac_sed_frag + 1`
21622 ac_beg=$ac_end
21623 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 21624 fi
5464f5a1
NN
21625 done
21626 if test -z "$ac_sed_cmds"; then
21627 ac_sed_cmds=cat
252b5132 21628 fi
5464f5a1 21629fi # test -n "$CONFIG_FILES"
6be7c12c 21630
5464f5a1
NN
21631_ACEOF
21632cat >>$CONFIG_STATUS <<\_ACEOF
21633for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 21634 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
21635 case $ac_file in
21636 - | *:- | *:-:* ) # input from stdin
21637 cat >$tmp/stdin
21638 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21639 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21640 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21641 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21642 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
21643 esac
21644
5464f5a1
NN
21645 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21646 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21647$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21648 X"$ac_file" : 'X\(//\)[^/]' \| \
21649 X"$ac_file" : 'X\(//\)$' \| \
21650 X"$ac_file" : 'X\(/\)' \| \
21651 . : '\(.\)' 2>/dev/null ||
21652echo X"$ac_file" |
21653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21655 /^X\(\/\/\)$/{ s//\1/; q; }
21656 /^X\(\/\).*/{ s//\1/; q; }
21657 s/.*/./; q'`
21658 { if $as_mkdir_p; then
21659 mkdir -p "$ac_dir"
252b5132 21660 else
5464f5a1
NN
21661 as_dir="$ac_dir"
21662 as_dirs=
21663 while test ! -d "$as_dir"; do
21664 as_dirs="$as_dir $as_dirs"
21665 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21666$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21667 X"$as_dir" : 'X\(//\)[^/]' \| \
21668 X"$as_dir" : 'X\(//\)$' \| \
21669 X"$as_dir" : 'X\(/\)' \| \
21670 . : '\(.\)' 2>/dev/null ||
21671echo X"$as_dir" |
21672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21673 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21674 /^X\(\/\/\)$/{ s//\1/; q; }
21675 /^X\(\/\).*/{ s//\1/; q; }
21676 s/.*/./; q'`
21677 done
21678 test ! -n "$as_dirs" || mkdir $as_dirs
21679 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21680echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21681 { (exit 1); exit 1; }; }; }
21682
21683 ac_builddir=.
21684
21685if test "$ac_dir" != .; then
21686 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21687 # A "../" for each directory in $ac_dir_suffix.
21688 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21689else
21690 ac_dir_suffix= ac_top_builddir=
21691fi
252b5132 21692
5464f5a1
NN
21693case $srcdir in
21694 .) # No --srcdir option. We are building in place.
21695 ac_srcdir=.
21696 if test -z "$ac_top_builddir"; then
21697 ac_top_srcdir=.
21698 else
21699 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21700 fi ;;
21701 [\\/]* | ?:[\\/]* ) # Absolute path.
21702 ac_srcdir=$srcdir$ac_dir_suffix;
21703 ac_top_srcdir=$srcdir ;;
252b5132 21704 *) # Relative path.
5464f5a1
NN
21705 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21706 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21707esac
252b5132 21708
5464f5a1
NN
21709# Do not use `cd foo && pwd` to compute absolute paths, because
21710# the directories may not exist.
21711case `pwd` in
21712.) ac_abs_builddir="$ac_dir";;
21713*)
21714 case "$ac_dir" in
21715 .) ac_abs_builddir=`pwd`;;
21716 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21717 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21718 esac;;
21719esac
21720case $ac_abs_builddir in
21721.) ac_abs_top_builddir=${ac_top_builddir}.;;
21722*)
21723 case ${ac_top_builddir}. in
21724 .) ac_abs_top_builddir=$ac_abs_builddir;;
21725 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21726 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21727 esac;;
21728esac
21729case $ac_abs_builddir in
21730.) ac_abs_srcdir=$ac_srcdir;;
21731*)
21732 case $ac_srcdir in
21733 .) ac_abs_srcdir=$ac_abs_builddir;;
21734 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21735 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21736 esac;;
21737esac
21738case $ac_abs_builddir in
21739.) ac_abs_top_srcdir=$ac_top_srcdir;;
21740*)
21741 case $ac_top_srcdir in
21742 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21743 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21744 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21745 esac;;
21746esac
252b5132 21747
5464f5a1
NN
21748
21749 case $INSTALL in
21750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21751 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 21752 esac
252b5132 21753
49c96104
SE
21754 if test x"$ac_file" != x-; then
21755 { echo "$as_me:$LINENO: creating $ac_file" >&5
21756echo "$as_me: creating $ac_file" >&6;}
21757 rm -f "$ac_file"
21758 fi
5464f5a1
NN
21759 # Let's still pretend it is `configure' which instantiates (i.e., don't
21760 # use $as_me), people would be surprised to read:
21761 # /* config.h. Generated by config.status. */
21762 if test x"$ac_file" = x-; then
21763 configure_input=
21764 else
21765 configure_input="$ac_file. "
21766 fi
21767 configure_input=$configure_input"Generated from `echo $ac_file_in |
21768 sed 's,.*/,,'` by configure."
21769
21770 # First look for the input files in the build tree, otherwise in the
21771 # src tree.
21772 ac_file_inputs=`IFS=:
21773 for f in $ac_file_in; do
21774 case $f in
21775 -) echo $tmp/stdin ;;
21776 [\\/$]*)
21777 # Absolute (can't be DOS-style, as IFS=:)
21778 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21779echo "$as_me: error: cannot find input file: $f" >&2;}
21780 { (exit 1); exit 1; }; }
21781 echo "$f";;
21782 *) # Relative
21783 if test -f "$f"; then
21784 # Build tree
21785 echo "$f"
21786 elif test -f "$srcdir/$f"; then
21787 # Source tree
21788 echo "$srcdir/$f"
21789 else
21790 # /dev/null tree
21791 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21792echo "$as_me: error: cannot find input file: $f" >&2;}
21793 { (exit 1); exit 1; }; }
21794 fi;;
21795 esac
21796 done` || { (exit 1); exit 1; }
5464f5a1
NN
21797_ACEOF
21798cat >>$CONFIG_STATUS <<_ACEOF
21799 sed "$ac_vpsub
21800$extrasub
21801_ACEOF
21802cat >>$CONFIG_STATUS <<\_ACEOF
21803:t
21804/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21805s,@configure_input@,$configure_input,;t t
21806s,@srcdir@,$ac_srcdir,;t t
21807s,@abs_srcdir@,$ac_abs_srcdir,;t t
21808s,@top_srcdir@,$ac_top_srcdir,;t t
21809s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21810s,@builddir@,$ac_builddir,;t t
21811s,@abs_builddir@,$ac_abs_builddir,;t t
21812s,@top_builddir@,$ac_top_builddir,;t t
21813s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21814s,@INSTALL@,$ac_INSTALL,;t t
21815" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21816 rm -f $tmp/stdin
21817 if test x"$ac_file" != x-; then
21818 mv $tmp/out $ac_file
21819 else
21820 cat $tmp/out
21821 rm -f $tmp/out
21822 fi
21823
21824done
21825_ACEOF
21826cat >>$CONFIG_STATUS <<\_ACEOF
21827
21828#
21829# CONFIG_HEADER section.
21830#
252b5132
RH
21831
21832# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21833# NAME is the cpp macro being defined and VALUE is the value it is being given.
21834#
21835# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
21836ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21837ac_dB='[ ].*$,\1#\2'
21838ac_dC=' '
21839ac_dD=',;t'
21840# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21841ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21842ac_uB='$,\1#\2define\3'
252b5132 21843ac_uC=' '
5464f5a1
NN
21844ac_uD=',;t'
21845
21846for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 21847 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
21848 case $ac_file in
21849 - | *:- | *:-:* ) # input from stdin
21850 cat >$tmp/stdin
21851 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21852 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21853 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21854 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21855 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
21856 esac
21857
5464f5a1
NN
21858 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21859echo "$as_me: creating $ac_file" >&6;}
21860
21861 # First look for the input files in the build tree, otherwise in the
21862 # src tree.
21863 ac_file_inputs=`IFS=:
21864 for f in $ac_file_in; do
21865 case $f in
21866 -) echo $tmp/stdin ;;
21867 [\\/$]*)
21868 # Absolute (can't be DOS-style, as IFS=:)
21869 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21870echo "$as_me: error: cannot find input file: $f" >&2;}
21871 { (exit 1); exit 1; }; }
21872 # Do quote $f, to prevent DOS paths from being IFS'd.
21873 echo "$f";;
21874 *) # Relative
21875 if test -f "$f"; then
21876 # Build tree
21877 echo "$f"
21878 elif test -f "$srcdir/$f"; then
21879 # Source tree
21880 echo "$srcdir/$f"
21881 else
21882 # /dev/null tree
21883 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21884echo "$as_me: error: cannot find input file: $f" >&2;}
21885 { (exit 1); exit 1; }; }
21886 fi;;
21887 esac
21888 done` || { (exit 1); exit 1; }
21889 # Remove the trailing spaces.
21890 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21891
21892_ACEOF
21893
21894# Transform confdefs.h into two sed scripts, `conftest.defines' and
21895# `conftest.undefs', that substitutes the proper values into
21896# config.h.in to produce config.h. The first handles `#define'
21897# templates, and the second `#undef' templates.
21898# And first: Protect against being on the right side of a sed subst in
21899# config.status. Protect against being in an unquoted here document
21900# in config.status.
21901rm -f conftest.defines conftest.undefs
21902# Using a here document instead of a string reduces the quoting nightmare.
21903# Putting comments in sed scripts is not portable.
21904#
21905# `end' is used to avoid that the second main sed command (meant for
21906# 0-ary CPP macros) applies to n-ary macro definitions.
21907# See the Autoconf documentation for `clear'.
21908cat >confdef2sed.sed <<\_ACEOF
21909s/[\\&,]/\\&/g
21910s,[\\$`],\\&,g
21911t clear
21912: clear
21913s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21914t end
21915s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21916: end
21917_ACEOF
21918# If some macros were called several times there might be several times
21919# the same #defines, which is useless. Nevertheless, we may not want to
21920# sort them, since we want the *last* AC-DEFINE to be honored.
21921uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21922sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21923rm -f confdef2sed.sed
252b5132
RH
21924
21925# This sed command replaces #undef with comments. This is necessary, for
21926# example, in the case of _POSIX_SOURCE, which is predefined and required
21927# on some systems where configure will not decide to define it.
5464f5a1
NN
21928cat >>conftest.undefs <<\_ACEOF
21929s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21930_ACEOF
21931
21932# Break up conftest.defines because some shells have a limit on the size
21933# of here documents, and old seds have small limits too (100 cmds).
21934echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21935echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21936echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21937echo ' :' >>$CONFIG_STATUS
21938rm -f conftest.tail
21939while grep . conftest.defines >/dev/null
21940do
21941 # Write a limited-size here document to $tmp/defines.sed.
21942 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21943 # Speed up: don't consider the non `#define' lines.
21944 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21945 # Work around the forget-to-reset-the-flag bug.
21946 echo 't clr' >>$CONFIG_STATUS
21947 echo ': clr' >>$CONFIG_STATUS
21948 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21949 echo 'CEOF
21950 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21951 rm -f $tmp/in
21952 mv $tmp/out $tmp/in
21953' >>$CONFIG_STATUS
21954 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21955 rm -f conftest.defines
21956 mv conftest.tail conftest.defines
21957done
21958rm -f conftest.defines
21959echo ' fi # grep' >>$CONFIG_STATUS
21960echo >>$CONFIG_STATUS
252b5132 21961
5464f5a1
NN
21962# Break up conftest.undefs because some shells have a limit on the size
21963# of here documents, and old seds have small limits too (100 cmds).
21964echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 21965rm -f conftest.tail
5464f5a1 21966while grep . conftest.undefs >/dev/null
252b5132 21967do
5464f5a1
NN
21968 # Write a limited-size here document to $tmp/undefs.sed.
21969 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21970 # Speed up: don't consider the non `#undef'
21971 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21972 # Work around the forget-to-reset-the-flag bug.
21973 echo 't clr' >>$CONFIG_STATUS
21974 echo ': clr' >>$CONFIG_STATUS
21975 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 21976 echo 'CEOF
5464f5a1
NN
21977 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21978 rm -f $tmp/in
21979 mv $tmp/out $tmp/in
21980' >>$CONFIG_STATUS
21981 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21982 rm -f conftest.undefs
21983 mv conftest.tail conftest.undefs
252b5132 21984done
5464f5a1
NN
21985rm -f conftest.undefs
21986
21987cat >>$CONFIG_STATUS <<\_ACEOF
21988 # Let's still pretend it is `configure' which instantiates (i.e., don't
21989 # use $as_me), people would be surprised to read:
21990 # /* config.h. Generated by config.status. */
21991 if test x"$ac_file" = x-; then
21992 echo "/* Generated by configure. */" >$tmp/config.h
21993 else
21994 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21995 fi
21996 cat $tmp/in >>$tmp/config.h
21997 rm -f $tmp/in
21998 if test x"$ac_file" != x-; then
21999 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22000 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22001echo "$as_me: $ac_file is unchanged" >&6;}
22002 else
22003 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22004$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22005 X"$ac_file" : 'X\(//\)[^/]' \| \
22006 X"$ac_file" : 'X\(//\)$' \| \
22007 X"$ac_file" : 'X\(/\)' \| \
22008 . : '\(.\)' 2>/dev/null ||
22009echo X"$ac_file" |
22010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22011 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22012 /^X\(\/\/\)$/{ s//\1/; q; }
22013 /^X\(\/\).*/{ s//\1/; q; }
22014 s/.*/./; q'`
22015 { if $as_mkdir_p; then
22016 mkdir -p "$ac_dir"
252b5132 22017 else
5464f5a1
NN
22018 as_dir="$ac_dir"
22019 as_dirs=
22020 while test ! -d "$as_dir"; do
22021 as_dirs="$as_dir $as_dirs"
22022 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22023$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22024 X"$as_dir" : 'X\(//\)[^/]' \| \
22025 X"$as_dir" : 'X\(//\)$' \| \
22026 X"$as_dir" : 'X\(/\)' \| \
22027 . : '\(.\)' 2>/dev/null ||
22028echo X"$as_dir" |
22029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22030 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22031 /^X\(\/\/\)$/{ s//\1/; q; }
22032 /^X\(\/\).*/{ s//\1/; q; }
22033 s/.*/./; q'`
22034 done
22035 test ! -n "$as_dirs" || mkdir $as_dirs
22036 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22037echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22038 { (exit 1); exit 1; }; }; }
22039
22040 rm -f $ac_file
22041 mv $tmp/config.h $ac_file
252b5132 22042 fi
5464f5a1
NN
22043 else
22044 cat $tmp/config.h
22045 rm -f $tmp/config.h
252b5132 22046 fi
f5385ebf
AM
22047# Compute $ac_file's index in $config_headers.
22048_am_stamp_count=1
22049for _am_header in $config_headers :; do
22050 case $_am_header in
22051 $ac_file | $ac_file:* )
22052 break ;;
22053 * )
22054 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22055 esac
22056done
22057echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22058$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22059 X$ac_file : 'X\(//\)[^/]' \| \
22060 X$ac_file : 'X\(//\)$' \| \
22061 X$ac_file : 'X\(/\)' \| \
22062 . : '\(.\)' 2>/dev/null ||
22063echo X$ac_file |
22064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22066 /^X\(\/\/\)$/{ s//\1/; q; }
22067 /^X\(\/\).*/{ s//\1/; q; }
22068 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
22069done
22070_ACEOF
22071cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 22072
5464f5a1
NN
22073#
22074# CONFIG_COMMANDS section.
22075#
22076for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22077 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22078 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22079 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22080$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22081 X"$ac_dest" : 'X\(//\)[^/]' \| \
22082 X"$ac_dest" : 'X\(//\)$' \| \
22083 X"$ac_dest" : 'X\(/\)' \| \
22084 . : '\(.\)' 2>/dev/null ||
22085echo X"$ac_dest" |
22086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22088 /^X\(\/\/\)$/{ s//\1/; q; }
22089 /^X\(\/\).*/{ s//\1/; q; }
22090 s/.*/./; q'`
22091 { if $as_mkdir_p; then
22092 mkdir -p "$ac_dir"
22093 else
22094 as_dir="$ac_dir"
22095 as_dirs=
22096 while test ! -d "$as_dir"; do
22097 as_dirs="$as_dir $as_dirs"
22098 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22099$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22100 X"$as_dir" : 'X\(//\)[^/]' \| \
22101 X"$as_dir" : 'X\(//\)$' \| \
22102 X"$as_dir" : 'X\(/\)' \| \
22103 . : '\(.\)' 2>/dev/null ||
22104echo X"$as_dir" |
22105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22107 /^X\(\/\/\)$/{ s//\1/; q; }
22108 /^X\(\/\).*/{ s//\1/; q; }
22109 s/.*/./; q'`
22110 done
22111 test ! -n "$as_dirs" || mkdir $as_dirs
22112 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22113echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22114 { (exit 1); exit 1; }; }; }
b3baf5d0 22115
5464f5a1 22116 ac_builddir=.
b3baf5d0 22117
5464f5a1
NN
22118if test "$ac_dir" != .; then
22119 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22120 # A "../" for each directory in $ac_dir_suffix.
22121 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22122else
22123 ac_dir_suffix= ac_top_builddir=
22124fi
22125
22126case $srcdir in
22127 .) # No --srcdir option. We are building in place.
22128 ac_srcdir=.
22129 if test -z "$ac_top_builddir"; then
22130 ac_top_srcdir=.
22131 else
22132 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22133 fi ;;
22134 [\\/]* | ?:[\\/]* ) # Absolute path.
22135 ac_srcdir=$srcdir$ac_dir_suffix;
22136 ac_top_srcdir=$srcdir ;;
22137 *) # Relative path.
22138 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22139 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22140esac
22141
22142# Do not use `cd foo && pwd` to compute absolute paths, because
22143# the directories may not exist.
22144case `pwd` in
22145.) ac_abs_builddir="$ac_dir";;
22146*)
22147 case "$ac_dir" in
22148 .) ac_abs_builddir=`pwd`;;
22149 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22150 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22151 esac;;
22152esac
22153case $ac_abs_builddir in
22154.) ac_abs_top_builddir=${ac_top_builddir}.;;
22155*)
22156 case ${ac_top_builddir}. in
22157 .) ac_abs_top_builddir=$ac_abs_builddir;;
22158 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22159 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22160 esac;;
22161esac
22162case $ac_abs_builddir in
22163.) ac_abs_srcdir=$ac_srcdir;;
22164*)
22165 case $ac_srcdir in
22166 .) ac_abs_srcdir=$ac_abs_builddir;;
22167 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22168 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22169 esac;;
22170esac
22171case $ac_abs_builddir in
22172.) ac_abs_top_srcdir=$ac_top_srcdir;;
22173*)
22174 case $ac_top_srcdir in
22175 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22176 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22177 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22178 esac;;
22179esac
22180
22181
22182 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22183echo "$as_me: executing $ac_dest commands" >&6;}
22184 case $ac_dest in
f5385ebf
AM
22185 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22186 # Strip MF so we end up with the name of the file.
22187 mf=`echo "$mf" | sed -e 's/:.*$//'`
22188 # Check whether this is an Automake generated Makefile or not.
22189 # We used to match only the files named `Makefile.in', but
22190 # some people rename them; so instead we look at the file content.
22191 # Grep'ing the first line is not enough: some people post-process
22192 # each Makefile.in and add a new line on top of each file to say so.
22193 # So let's grep whole file.
22194 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22195 dirpart=`(dirname "$mf") 2>/dev/null ||
22196$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22197 X"$mf" : 'X\(//\)[^/]' \| \
22198 X"$mf" : 'X\(//\)$' \| \
22199 X"$mf" : 'X\(/\)' \| \
22200 . : '\(.\)' 2>/dev/null ||
22201echo X"$mf" |
22202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22204 /^X\(\/\/\)$/{ s//\1/; q; }
22205 /^X\(\/\).*/{ s//\1/; q; }
22206 s/.*/./; q'`
22207 else
22208 continue
22209 fi
22210 # Extract the definition of DEPDIR, am__include, and am__quote
22211 # from the Makefile without running `make'.
22212 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22213 test -z "$DEPDIR" && continue
22214 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22215 test -z "am__include" && continue
22216 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22217 # When using ansi2knr, U may be empty or an underscore; expand it
22218 U=`sed -n 's/^U = //p' < "$mf"`
22219 # Find all dependency output files, they are included files with
22220 # $(DEPDIR) in their names. We invoke sed twice because it is the
22221 # simplest approach to changing $(DEPDIR) to its actual value in the
22222 # expansion.
22223 for file in `sed -n "
22224 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22225 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22226 # Make sure the directory exists.
22227 test -f "$dirpart/$file" && continue
22228 fdir=`(dirname "$file") 2>/dev/null ||
22229$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22230 X"$file" : 'X\(//\)[^/]' \| \
22231 X"$file" : 'X\(//\)$' \| \
22232 X"$file" : 'X\(/\)' \| \
22233 . : '\(.\)' 2>/dev/null ||
22234echo X"$file" |
22235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22237 /^X\(\/\/\)$/{ s//\1/; q; }
22238 /^X\(\/\).*/{ s//\1/; q; }
22239 s/.*/./; q'`
22240 { if $as_mkdir_p; then
22241 mkdir -p $dirpart/$fdir
22242 else
22243 as_dir=$dirpart/$fdir
22244 as_dirs=
22245 while test ! -d "$as_dir"; do
22246 as_dirs="$as_dir $as_dirs"
22247 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22248$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22249 X"$as_dir" : 'X\(//\)[^/]' \| \
22250 X"$as_dir" : 'X\(//\)$' \| \
22251 X"$as_dir" : 'X\(/\)' \| \
22252 . : '\(.\)' 2>/dev/null ||
22253echo X"$as_dir" |
22254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22256 /^X\(\/\/\)$/{ s//\1/; q; }
22257 /^X\(\/\).*/{ s//\1/; q; }
22258 s/.*/./; q'`
22259 done
22260 test ! -n "$as_dirs" || mkdir $as_dirs
22261 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22262echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22263 { (exit 1); exit 1; }; }; }
22264
22265 # echo "creating $dirpart/$file"
22266 echo '# dummy' > "$dirpart/$file"
22267 done
22268done
d7040cdb
SE
22269 ;;
22270 libtool )
22271
22272 # See if we are running on zsh, and set the options which allow our
22273 # commands through without removal of \ escapes.
22274 if test -n "${ZSH_VERSION+set}" ; then
22275 setopt NO_GLOB_SUBST
22276 fi
22277
22278 cfgfile="${ofile}T"
22279 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22280 $RM "$cfgfile"
22281
22282 cat <<_LT_EOF >> "$cfgfile"
22283#! $SHELL
22284
22285# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22286# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22287# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22288# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22289#
22290# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22291# 2006, 2007 Free Software Foundation, Inc.
22292#
22293# This file is part of GNU Libtool:
22294# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22295#
22296# This program is free software; you can redistribute it and/or modify
22297# it under the terms of the GNU General Public License as published by
0b3e17e9 22298# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
22299# (at your option) any later version.
22300#
22301# This program is distributed in the hope that it will be useful, but
22302# WITHOUT ANY WARRANTY; without even the implied warranty of
22303# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22304# General Public License for more details.
22305#
22306# You should have received a copy of the GNU General Public License
22307# along with this program; if not, a copy can be downloaded from
22308# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22309# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22310# MA 02110-1301, USA.
22311#
22312# As a special exception to the GNU General Public License, if you
22313# distribute this file as part of a program that contains a
22314# configuration script generated by Autoconf, you may include it under
22315# the same distribution terms that you use for the rest of that program.
22316
22317
22318# The names of the tagged configurations supported by this script.
22319available_tags=""
22320
22321# ### BEGIN LIBTOOL CONFIG
22322
22323# Whether or not to build shared libraries.
22324build_libtool_libs=$enable_shared
22325
22326# Which release of libtool.m4 was used?
22327macro_version=$macro_version
22328macro_revision=$macro_revision
22329
22330# Whether or not to build static libraries.
22331build_old_libs=$enable_static
22332
22333# What type of objects to build.
22334pic_mode=$pic_mode
22335
22336# Whether or not to optimize for fast installation.
22337fast_install=$enable_fast_install
22338
22339# The host system.
22340host_alias=$host_alias
22341host=$host
22342host_os=$host_os
22343
22344# The build system.
22345build_alias=$build_alias
22346build=$build
22347build_os=$build_os
22348
22349# A sed program that does not truncate output.
22350SED=$lt_SED
22351
22352# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22353Xsed="\$SED -e 1s/^X//"
22354
22355# A grep program that handles long lines.
22356GREP=$lt_GREP
22357
22358# An ERE matcher.
22359EGREP=$lt_EGREP
22360
22361# A literal string matcher.
22362FGREP=$lt_FGREP
22363
22364# A BSD- or MS-compatible name lister.
22365NM=$lt_NM
22366
22367# Whether we need soft or hard links.
22368LN_S=$lt_LN_S
22369
22370# What is the maximum length of a command?
22371max_cmd_len=$max_cmd_len
22372
22373# Object file suffix (normally "o").
22374objext=$ac_objext
22375
22376# Executable file suffix (normally "").
22377exeext=$exeext
22378
22379# whether the shell understands "unset".
22380lt_unset=$lt_unset
22381
22382# turn spaces into newlines.
22383SP2NL=$lt_lt_SP2NL
22384
22385# turn newlines into spaces.
22386NL2SP=$lt_lt_NL2SP
22387
22388# How to create reloadable object files.
22389reload_flag=$lt_reload_flag
22390reload_cmds=$lt_reload_cmds
22391
22392# Method to check whether dependent libraries are shared objects.
22393deplibs_check_method=$lt_deplibs_check_method
22394
22395# Command to use when deplibs_check_method == "file_magic".
22396file_magic_cmd=$lt_file_magic_cmd
22397
22398# The archiver.
22399AR=$lt_AR
22400AR_FLAGS=$lt_AR_FLAGS
22401
22402# A symbol stripping program.
22403STRIP=$lt_STRIP
22404
22405# Commands used to install an old-style archive.
22406RANLIB=$lt_RANLIB
22407old_postinstall_cmds=$lt_old_postinstall_cmds
22408old_postuninstall_cmds=$lt_old_postuninstall_cmds
22409
22410# A C compiler.
22411LTCC=$lt_CC
22412
22413# LTCC compiler flags.
22414LTCFLAGS=$lt_CFLAGS
22415
22416# Take the output of nm and produce a listing of raw symbols and C names.
22417global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22418
22419# Transform the output of nm in a proper C declaration.
22420global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22421
22422# Transform the output of nm in a C name address pair.
22423global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22424
22425# The name of the directory that contains temporary libtool files.
22426objdir=$objdir
22427
22428# Shell to use when invoking shell scripts.
22429SHELL=$lt_SHELL
22430
22431# An echo program that does not interpret backslashes.
22432ECHO=$lt_ECHO
22433
22434# Used to examine libraries when file_magic_cmd begins with "file".
22435MAGIC_CMD=$MAGIC_CMD
22436
22437# Must we lock files when doing compilation?
22438need_locks=$lt_need_locks
22439
22440# Old archive suffix (normally "a").
22441libext=$libext
22442
22443# Shared library suffix (normally ".so").
22444shrext_cmds=$lt_shrext_cmds
22445
22446# The commands to extract the exported symbol list from a shared archive.
22447extract_expsyms_cmds=$lt_extract_expsyms_cmds
22448
22449# Variables whose values should be saved in libtool wrapper scripts and
22450# restored at link time.
22451variables_saved_for_relink=$lt_variables_saved_for_relink
22452
22453# Do we need the "lib" prefix for modules?
22454need_lib_prefix=$need_lib_prefix
22455
22456# Do we need a version for libraries?
22457need_version=$need_version
22458
22459# Library versioning type.
22460version_type=$version_type
22461
22462# Shared library runtime path variable.
22463runpath_var=$runpath_var
22464
22465# Shared library path variable.
22466shlibpath_var=$shlibpath_var
22467
22468# Is shlibpath searched before the hard-coded library search path?
22469shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22470
22471# Format of library name prefix.
22472libname_spec=$lt_libname_spec
22473
22474# List of archive names. First name is the real one, the rest are links.
22475# The last name is the one that the linker finds with -lNAME
22476library_names_spec=$lt_library_names_spec
22477
22478# The coded name of the library, if different from the real name.
22479soname_spec=$lt_soname_spec
22480
22481# Command to use after installation of a shared archive.
22482postinstall_cmds=$lt_postinstall_cmds
22483
22484# Command to use after uninstallation of a shared archive.
22485postuninstall_cmds=$lt_postuninstall_cmds
22486
22487# Commands used to finish a libtool library installation in a directory.
22488finish_cmds=$lt_finish_cmds
22489
22490# As "finish_cmds", except a single script fragment to be evaled but
22491# not shown.
22492finish_eval=$lt_finish_eval
22493
22494# Whether we should hardcode library paths into libraries.
22495hardcode_into_libs=$hardcode_into_libs
22496
22497# Compile-time system search path for libraries.
22498sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22499
22500# Run-time system search path for libraries.
22501sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22502
22503# Whether dlopen is supported.
22504dlopen_support=$enable_dlopen
22505
22506# Whether dlopen of programs is supported.
22507dlopen_self=$enable_dlopen_self
22508
22509# Whether dlopen of statically linked programs is supported.
22510dlopen_self_static=$enable_dlopen_self_static
22511
22512# Commands to strip libraries.
22513old_striplib=$lt_old_striplib
22514striplib=$lt_striplib
22515
22516
22517# The linker used to build libraries.
22518LD=$lt_LD
22519
22520# Commands used to build an old-style archive.
22521old_archive_cmds=$lt_old_archive_cmds
22522
22523# A language specific compiler.
22524CC=$lt_compiler
22525
22526# Is the compiler the GNU compiler?
22527with_gcc=$GCC
22528
22529# Compiler flag to turn off builtin functions.
22530no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22531
22532# How to pass a linker flag through the compiler.
22533wl=$lt_lt_prog_compiler_wl
22534
22535# Additional compiler flags for building library objects.
22536pic_flag=$lt_lt_prog_compiler_pic
22537
22538# Compiler flag to prevent dynamic linking.
22539link_static_flag=$lt_lt_prog_compiler_static
22540
22541# Does compiler simultaneously support -c and -o options?
22542compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22543
22544# Whether or not to add -lc for building shared libraries.
22545build_libtool_need_lc=$archive_cmds_need_lc
22546
22547# Whether or not to disallow shared libs when runtime libs are static.
22548allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22549
22550# Compiler flag to allow reflexive dlopens.
22551export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22552
22553# Compiler flag to generate shared objects directly from archives.
22554whole_archive_flag_spec=$lt_whole_archive_flag_spec
22555
22556# Whether the compiler copes with passing no objects directly.
22557compiler_needs_object=$lt_compiler_needs_object
22558
22559# Create an old-style archive from a shared archive.
22560old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22561
22562# Create a temporary old-style archive to link instead of a shared archive.
22563old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22564
22565# Commands used to build a shared archive.
22566archive_cmds=$lt_archive_cmds
22567archive_expsym_cmds=$lt_archive_expsym_cmds
22568
22569# Commands used to build a loadable module if different from building
22570# a shared archive.
22571module_cmds=$lt_module_cmds
22572module_expsym_cmds=$lt_module_expsym_cmds
22573
22574# Whether we are building with GNU ld or not.
22575with_gnu_ld=$lt_with_gnu_ld
22576
22577# Flag that allows shared libraries with undefined symbols to be built.
22578allow_undefined_flag=$lt_allow_undefined_flag
22579
22580# Flag that enforces no undefined symbols.
22581no_undefined_flag=$lt_no_undefined_flag
22582
22583# Flag to hardcode \$libdir into a binary during linking.
22584# This must work even if \$libdir does not exist
22585hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22586
22587# If ld is used when linking, flag to hardcode \$libdir into a binary
22588# during linking. This must work even if \$libdir does not exist.
22589hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22590
22591# Whether we need a single "-rpath" flag with a separated argument.
22592hardcode_libdir_separator=$lt_hardcode_libdir_separator
22593
22594# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22595# DIR into the resulting binary.
22596hardcode_direct=$hardcode_direct
22597
22598# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22599# DIR into the resulting binary and the resulting library dependency is
22600# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22601# library is relocated.
22602hardcode_direct_absolute=$hardcode_direct_absolute
22603
22604# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22605# into the resulting binary.
22606hardcode_minus_L=$hardcode_minus_L
22607
22608# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22609# into the resulting binary.
22610hardcode_shlibpath_var=$hardcode_shlibpath_var
22611
22612# Set to "yes" if building a shared library automatically hardcodes DIR
22613# into the library and all subsequent libraries and executables linked
22614# against it.
22615hardcode_automatic=$hardcode_automatic
22616
22617# Set to yes if linker adds runtime paths of dependent libraries
22618# to runtime path list.
22619inherit_rpath=$inherit_rpath
22620
22621# Whether libtool must link a program against all its dependency libraries.
22622link_all_deplibs=$link_all_deplibs
22623
22624# Fix the shell variable \$srcfile for the compiler.
22625fix_srcfile_path=$lt_fix_srcfile_path
22626
22627# Set to "yes" if exported symbols are required.
22628always_export_symbols=$always_export_symbols
22629
22630# The commands to list exported symbols.
22631export_symbols_cmds=$lt_export_symbols_cmds
22632
22633# Symbols that should not be listed in the preloaded symbols.
22634exclude_expsyms=$lt_exclude_expsyms
22635
22636# Symbols that must always be exported.
22637include_expsyms=$lt_include_expsyms
22638
22639# Commands necessary for linking programs (against libraries) with templates.
22640prelink_cmds=$lt_prelink_cmds
22641
22642# Specify filename containing input files.
22643file_list_spec=$lt_file_list_spec
22644
22645# How to hardcode a shared library path into an executable.
22646hardcode_action=$hardcode_action
22647
22648# ### END LIBTOOL CONFIG
22649
22650_LT_EOF
22651
22652 case $host_os in
22653 aix3*)
22654 cat <<\_LT_EOF >> "$cfgfile"
22655# AIX sometimes has problems with the GCC collect2 program. For some
22656# reason, if we set the COLLECT_NAMES environment variable, the problems
22657# vanish in a puff of smoke.
22658if test "X${COLLECT_NAMES+set}" != Xset; then
22659 COLLECT_NAMES=
22660 export COLLECT_NAMES
22661fi
22662_LT_EOF
22663 ;;
22664 esac
22665
22666
22667ltmain="$ac_aux_dir/ltmain.sh"
22668
22669
22670 # We use sed instead of cat because bash on DJGPP gets confused if
22671 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22672 # text mode, it properly converts lines to CR/LF. This bash problem
22673 # is reportedly fixed, but why not run on old versions too?
22674 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22675 || (rm -f "$cfgfile"; exit 1)
22676
22677 case $xsi_shell in
22678 yes)
22679 cat << \_LT_EOF >> "$cfgfile"
22680# func_dirname file append nondir_replacement
22681# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22682# otherwise set result to NONDIR_REPLACEMENT.
22683func_dirname ()
22684{
22685 case ${1} in
22686 */*) func_dirname_result="${1%/*}${2}" ;;
22687 * ) func_dirname_result="${3}" ;;
22688 esac
22689}
22690
22691# func_basename file
22692func_basename ()
22693{
22694 func_basename_result="${1##*/}"
22695}
22696
22697# func_stripname prefix suffix name
22698# strip PREFIX and SUFFIX off of NAME.
22699# PREFIX and SUFFIX must not contain globbing or regex special
22700# characters, hashes, percent signs, but SUFFIX may contain a leading
22701# dot (in which case that matches only a dot).
22702func_stripname ()
22703{
22704 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22705 # positional parameters, so assign one to ordinary parameter first.
22706 func_stripname_result=${3}
22707 func_stripname_result=${func_stripname_result#"${1}"}
22708 func_stripname_result=${func_stripname_result%"${2}"}
22709}
22710
22711# func_opt_split
22712func_opt_split ()
22713{
22714 func_opt_split_opt=${1%%=*}
22715 func_opt_split_arg=${1#*=}
22716}
22717
22718# func_lo2o object
22719func_lo2o ()
22720{
22721 case ${1} in
22722 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22723 *) func_lo2o_result=${1} ;;
22724 esac
22725}
22726_LT_EOF
22727 ;;
22728 *) # Bourne compatible functions.
22729 cat << \_LT_EOF >> "$cfgfile"
22730# func_dirname file append nondir_replacement
22731# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22732# otherwise set result to NONDIR_REPLACEMENT.
22733func_dirname ()
22734{
22735 # Extract subdirectory from the argument.
22736 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22737 if test "X$func_dirname_result" = "X${1}"; then
22738 func_dirname_result="${3}"
22739 else
22740 func_dirname_result="$func_dirname_result${2}"
22741 fi
22742}
22743
22744# func_basename file
22745func_basename ()
22746{
22747 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22748}
22749
22750# func_stripname prefix suffix name
22751# strip PREFIX and SUFFIX off of NAME.
22752# PREFIX and SUFFIX must not contain globbing or regex special
22753# characters, hashes, percent signs, but SUFFIX may contain a leading
22754# dot (in which case that matches only a dot).
22755# func_strip_suffix prefix name
22756func_stripname ()
22757{
22758 case ${2} in
22759 .*) func_stripname_result=`$ECHO "X${3}" \
22760 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22761 *) func_stripname_result=`$ECHO "X${3}" \
22762 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22763 esac
22764}
22765
22766# sed scripts:
22767my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22768my_sed_long_arg='1s/^-[^=]*=//'
22769
22770# func_opt_split
22771func_opt_split ()
22772{
22773 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22774 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22775}
22776
22777# func_lo2o object
22778func_lo2o ()
22779{
22780 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22781}
22782_LT_EOF
22783esac
22784
22785case $lt_shell_append in
22786 yes)
22787 cat << \_LT_EOF >> "$cfgfile"
22788
22789# func_append var value
22790# Append VALUE to the end of shell variable VAR.
22791func_append ()
22792{
22793 eval "$1+=\$2"
22794}
22795_LT_EOF
22796 ;;
22797 *)
22798 cat << \_LT_EOF >> "$cfgfile"
22799
22800# func_append var value
22801# Append VALUE to the end of shell variable VAR.
22802func_append ()
22803{
22804 eval "$1=\$$1\$2"
22805}
22806_LT_EOF
22807 ;;
22808 esac
22809
22810
22811 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22812 || (rm -f "$cfgfile"; exit 1)
22813
22814 mv -f "$cfgfile" "$ofile" ||
22815 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22816 chmod +x "$ofile"
22817
f5385ebf 22818 ;;
20e95c23
DJ
22819 default-1 )
22820 for ac_file in $CONFIG_FILES; do
22821 # Support "outfile[:infile[:infile...]]"
22822 case "$ac_file" in
22823 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22824 esac
22825 # PO directories have a Makefile.in generated from Makefile.in.in.
22826 case "$ac_file" in */Makefile.in)
22827 # Adjust a relative srcdir.
22828 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22829 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22830 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22831 # In autoconf-2.13 it is called $ac_given_srcdir.
22832 # In autoconf-2.50 it is called $srcdir.
22833 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22834 case "$ac_given_srcdir" in
22835 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22836 /*) top_srcdir="$ac_given_srcdir" ;;
22837 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22838 esac
22839 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22840 rm -f "$ac_dir/POTFILES"
22841 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22842 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22843 POMAKEFILEDEPS="POTFILES.in"
22844 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22845 # on $ac_dir but don't depend on user-specified configuration
22846 # parameters.
22847 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22848 # The LINGUAS file contains the set of available languages.
22849 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22850 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22851 fi
22852 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22853 # Hide the ALL_LINGUAS assigment from automake.
22854 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22855 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22856 else
22857 # The set of available languages was given in configure.in.
22858 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22859 fi
22860 case "$ac_given_srcdir" in
22861 .) srcdirpre= ;;
22862 *) srcdirpre='$(srcdir)/' ;;
22863 esac
22864 POFILES=
22865 GMOFILES=
22866 UPDATEPOFILES=
22867 DUMMYPOFILES=
22868 for lang in $ALL_LINGUAS; do
22869 POFILES="$POFILES $srcdirpre$lang.po"
22870 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22871 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22872 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22873 done
22874 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22875 # environment variable.
22876 INST_LINGUAS=
22877 if test -n "$ALL_LINGUAS"; then
22878 for presentlang in $ALL_LINGUAS; do
22879 useit=no
22880 if test "%UNSET%" != "$LINGUAS"; then
22881 desiredlanguages="$LINGUAS"
22882 else
22883 desiredlanguages="$ALL_LINGUAS"
22884 fi
22885 for desiredlang in $desiredlanguages; do
22886 # Use the presentlang catalog if desiredlang is
22887 # a. equal to presentlang, or
22888 # b. a variant of presentlang (because in this case,
22889 # presentlang can be used as a fallback for messages
22890 # which are not translated in the desiredlang catalog).
22891 case "$desiredlang" in
22892 "$presentlang"*) useit=yes;;
22893 esac
22894 done
22895 if test $useit = yes; then
22896 INST_LINGUAS="$INST_LINGUAS $presentlang"
22897 fi
22898 done
22899 fi
22900 CATALOGS=
22901 if test -n "$INST_LINGUAS"; then
22902 for lang in $INST_LINGUAS; do
22903 CATALOGS="$CATALOGS $lang.gmo"
22904 done
22905 fi
22906 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22907 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"
22908 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22909 if test -f "$f"; then
22910 case "$f" in
22911 *.orig | *.bak | *~) ;;
22912 *) cat "$f" >> "$ac_dir/Makefile" ;;
22913 esac
22914 fi
22915 done
22916 fi
22917 ;;
22918 esac
22919 done ;;
d5efd9fc
AM
22920 bfd_stdint.h )
22921if test "$GCC" = yes; then
22922 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22923else
22924 echo "/* generated for $CC */" > tmp-stdint.h
22925fi
22926
22927sed 's/^ *//' >> tmp-stdint.h <<EOF
22928
22929 #ifndef GCC_GENERATED_STDINT_H
22930 #define GCC_GENERATED_STDINT_H 1
22931
22932 #include <sys/types.h>
22933EOF
22934
22935if test "$acx_cv_header_stdint" != stdint.h; then
22936 echo "#include <stddef.h>" >> tmp-stdint.h
22937fi
22938if test "$acx_cv_header_stdint" != stddef.h; then
22939 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22940fi
22941
22942sed 's/^ *//' >> tmp-stdint.h <<EOF
22943 /* glibc uses these symbols as guards to prevent redefinitions. */
22944 #ifdef __int8_t_defined
22945 #define _INT8_T
22946 #define _INT16_T
22947 #define _INT32_T
22948 #endif
22949 #ifdef __uint32_t_defined
22950 #define _UINT32_T
22951 #endif
22952
22953EOF
22954
22955# ----------------- done header, emit basic int types -------------
22956if test "$acx_cv_header_stdint" = stddef.h; then
22957 sed 's/^ *//' >> tmp-stdint.h <<EOF
22958
22959 #ifndef _UINT8_T
22960 #define _UINT8_T
22961 #ifndef __uint8_t_defined
22962 #define __uint8_t_defined
22963 typedef unsigned $acx_cv_type_int8_t uint8_t;
22964 #endif
22965 #endif
22966
22967 #ifndef _UINT16_T
22968 #define _UINT16_T
22969 #ifndef __uint16_t_defined
22970 #define __uint16_t_defined
22971 typedef unsigned $acx_cv_type_int16_t uint16_t;
22972 #endif
22973 #endif
22974
22975 #ifndef _UINT32_T
22976 #define _UINT32_T
22977 #ifndef __uint32_t_defined
22978 #define __uint32_t_defined
22979 typedef unsigned $acx_cv_type_int32_t uint32_t;
22980 #endif
22981 #endif
22982
22983 #ifndef _INT8_T
22984 #define _INT8_T
22985 #ifndef __int8_t_defined
22986 #define __int8_t_defined
22987 typedef $acx_cv_type_int8_t int8_t;
22988 #endif
22989 #endif
22990
22991 #ifndef _INT16_T
22992 #define _INT16_T
22993 #ifndef __int16_t_defined
22994 #define __int16_t_defined
22995 typedef $acx_cv_type_int16_t int16_t;
22996 #endif
22997 #endif
22998
22999 #ifndef _INT32_T
23000 #define _INT32_T
23001 #ifndef __int32_t_defined
23002 #define __int32_t_defined
23003 typedef $acx_cv_type_int32_t int32_t;
23004 #endif
23005 #endif
23006EOF
23007elif test "$ac_cv_type_u_int32_t" = yes; then
23008 sed 's/^ *//' >> tmp-stdint.h <<EOF
23009
23010 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23011 #ifndef _INT8_T
23012 #define _INT8_T
23013 #endif
23014 #ifndef _INT16_T
23015 #define _INT16_T
23016 #endif
23017 #ifndef _INT32_T
23018 #define _INT32_T
23019 #endif
23020
23021 #ifndef _UINT8_T
23022 #define _UINT8_T
23023 #ifndef __uint8_t_defined
23024 #define __uint8_t_defined
23025 typedef u_int8_t uint8_t;
23026 #endif
23027 #endif
23028
23029 #ifndef _UINT16_T
23030 #define _UINT16_T
23031 #ifndef __uint16_t_defined
23032 #define __uint16_t_defined
23033 typedef u_int16_t uint16_t;
23034 #endif
23035 #endif
23036
23037 #ifndef _UINT32_T
23038 #define _UINT32_T
23039 #ifndef __uint32_t_defined
23040 #define __uint32_t_defined
23041 typedef u_int32_t uint32_t;
23042 #endif
23043 #endif
23044EOF
23045else
23046 sed 's/^ *//' >> tmp-stdint.h <<EOF
23047
23048 /* Some systems have guard macros to prevent redefinitions, define them. */
23049 #ifndef _INT8_T
23050 #define _INT8_T
23051 #endif
23052 #ifndef _INT16_T
23053 #define _INT16_T
23054 #endif
23055 #ifndef _INT32_T
23056 #define _INT32_T
23057 #endif
23058 #ifndef _UINT8_T
23059 #define _UINT8_T
23060 #endif
23061 #ifndef _UINT16_T
23062 #define _UINT16_T
23063 #endif
23064 #ifndef _UINT32_T
23065 #define _UINT32_T
23066 #endif
23067EOF
23068fi
23069
23070# ------------- done basic int types, emit int64_t types ------------
23071if test "$ac_cv_type_uint64_t" = yes; then
23072 sed 's/^ *//' >> tmp-stdint.h <<EOF
23073
23074 /* system headers have good uint64_t and int64_t */
23075 #ifndef _INT64_T
23076 #define _INT64_T
23077 #endif
23078 #ifndef _UINT64_T
23079 #define _UINT64_T
23080 #endif
23081EOF
23082elif test "$ac_cv_type_u_int64_t" = yes; then
23083 sed 's/^ *//' >> tmp-stdint.h <<EOF
23084
23085 /* system headers have an u_int64_t (and int64_t) */
23086 #ifndef _INT64_T
23087 #define _INT64_T
23088 #endif
23089 #ifndef _UINT64_T
23090 #define _UINT64_T
23091 #ifndef __uint64_t_defined
23092 #define __uint64_t_defined
23093 typedef u_int64_t uint64_t;
23094 #endif
23095 #endif
23096EOF
23097elif test -n "$acx_cv_type_int64_t"; then
23098 sed 's/^ *//' >> tmp-stdint.h <<EOF
23099
23100 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23101 #ifndef _INT64_T
23102 #define _INT64_T
23103 typedef $acx_cv_type_int64_t int64_t;
23104 #endif
23105 #ifndef _UINT64_T
23106 #define _UINT64_T
23107 #ifndef __uint64_t_defined
23108 #define __uint64_t_defined
23109 typedef unsigned $acx_cv_type_int64_t uint64_t;
23110 #endif
23111 #endif
23112EOF
23113else
23114 sed 's/^ *//' >> tmp-stdint.h <<EOF
23115
23116 /* some common heuristics for int64_t, using compiler-specific tests */
23117 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23118 #ifndef _INT64_T
23119 #define _INT64_T
23120 #ifndef __int64_t_defined
23121 typedef long long int64_t;
23122 #endif
23123 #endif
23124 #ifndef _UINT64_T
23125 #define _UINT64_T
23126 typedef unsigned long long uint64_t;
23127 #endif
23128
23129 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23130 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23131 does not implement __extension__. But that compiler doesn't define
23132 __GNUC_MINOR__. */
23133 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23134 # define __extension__
23135 # endif
23136
23137 # ifndef _INT64_T
23138 # define _INT64_T
23139 __extension__ typedef long long int64_t;
23140 # endif
23141 # ifndef _UINT64_T
23142 # define _UINT64_T
23143 __extension__ typedef unsigned long long uint64_t;
23144 # endif
23145
23146 #elif !defined __STRICT_ANSI__
23147 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23148
23149 # ifndef _INT64_T
23150 # define _INT64_T
23151 typedef __int64 int64_t;
23152 # endif
23153 # ifndef _UINT64_T
23154 # define _UINT64_T
23155 typedef unsigned __int64 uint64_t;
23156 # endif
23157 # endif /* compiler */
23158
23159 #endif /* ANSI version */
23160EOF
23161fi
23162
23163# ------------- done int64_t types, emit intptr types ------------
23164if test "$ac_cv_type_uintptr_t" != yes; then
23165 sed 's/^ *//' >> tmp-stdint.h <<EOF
23166
23167 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23168 #ifndef __uintptr_t_defined
23169 typedef u$acx_cv_type_intptr_t uintptr_t;
23170 #endif
23171 #ifndef __intptr_t_defined
23172 typedef $acx_cv_type_intptr_t intptr_t;
23173 #endif
23174EOF
23175fi
23176
23177# ------------- done intptr types, emit int_least types ------------
23178if test "$ac_cv_type_int_least32_t" != yes; then
23179 sed 's/^ *//' >> tmp-stdint.h <<EOF
23180
23181 /* Define int_least types */
23182 typedef int8_t int_least8_t;
23183 typedef int16_t int_least16_t;
23184 typedef int32_t int_least32_t;
23185 #ifdef _INT64_T
23186 typedef int64_t int_least64_t;
23187 #endif
23188
23189 typedef uint8_t uint_least8_t;
23190 typedef uint16_t uint_least16_t;
23191 typedef uint32_t uint_least32_t;
23192 #ifdef _UINT64_T
23193 typedef uint64_t uint_least64_t;
23194 #endif
23195EOF
23196fi
23197
23198# ------------- done intptr types, emit int_fast types ------------
23199if test "$ac_cv_type_int_fast32_t" != yes; then
23200 sed 's/^ *//' >> tmp-stdint.h <<EOF
23201
23202 /* Define int_fast types. short is often slow */
23203 typedef int8_t int_fast8_t;
23204 typedef int int_fast16_t;
23205 typedef int32_t int_fast32_t;
23206 #ifdef _INT64_T
23207 typedef int64_t int_fast64_t;
23208 #endif
23209
23210 typedef uint8_t uint_fast8_t;
23211 typedef unsigned int uint_fast16_t;
23212 typedef uint32_t uint_fast32_t;
23213 #ifdef _UINT64_T
23214 typedef uint64_t uint_fast64_t;
23215 #endif
23216EOF
23217fi
23218
23219if test "$ac_cv_type_uintmax_t" != yes; then
23220 sed 's/^ *//' >> tmp-stdint.h <<EOF
23221
23222 /* Define intmax based on what we found */
23223 #ifdef _INT64_T
23224 typedef int64_t intmax_t;
23225 #else
23226 typedef long intmax_t;
23227 #endif
23228 #ifdef _UINT64_T
23229 typedef uint64_t uintmax_t;
23230 #else
23231 typedef unsigned long uintmax_t;
23232 #endif
23233EOF
23234fi
23235
23236sed 's/^ *//' >> tmp-stdint.h <<EOF
23237
23238 #endif /* GCC_GENERATED_STDINT_H */
23239EOF
23240
23241if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23242 rm -f tmp-stdint.h
23243else
23244 mv -f tmp-stdint.h bfd_stdint.h
23245fi
23246
23247 ;;
20e95c23
DJ
23248 default )
23249case "$srcdir" in
23250 .) srcdirpre= ;;
23251 *) srcdirpre='$(srcdir)/' ;;
23252esac
23253POFILES=
23254GMOFILES=
23255for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23256 if test $lang != dummy; then
23257 POFILES="$POFILES $srcdirpre$lang.po"
23258 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23259 fi
23260done
23261sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23262 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23263 -e "s,@POFILES@,$POFILES," \
23264 -e "s,@GMOFILES@,$GMOFILES," \
23265 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
23266 esac
23267done
23268_ACEOF
23269
23270cat >>$CONFIG_STATUS <<\_ACEOF
23271
23272{ (exit 0); exit 0; }
23273_ACEOF
252b5132 23274chmod +x $CONFIG_STATUS
5464f5a1
NN
23275ac_clean_files=$ac_clean_files_save
23276
23277
23278# configure is writing to config.log, and then calls config.status.
23279# config.status does its own redirection, appending to config.log.
23280# Unfortunately, on DOS this fails, as config.log is still kept open
23281# by configure, so config.status won't be able to write to it; its
23282# output is simply discarded. So we exec the FD to /dev/null,
23283# effectively closing config.log, so it can be properly (re)opened and
23284# appended to by config.status. When coming back to configure, we
23285# need to make the FD available again.
23286if test "$no_create" != yes; then
23287 ac_cs_success=:
23288 ac_config_status_args=
23289 test "$silent" = yes &&
23290 ac_config_status_args="$ac_config_status_args --quiet"
23291 exec 5>/dev/null
23292 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23293 exec 5>>config.log
23294 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23295 # would make configure fail if this is the last instruction.
23296 $ac_cs_success || { (exit 1); exit 1; }
23297fi
252b5132 23298
55c80943 23299
This page took 2.12468 seconds and 4 git commands to generate.