PR 5146
[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
1430 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1431echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1432 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1433echo "$as_me: former value: $ac_old_val" >&2;}
1434 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1435echo "$as_me: current value: $ac_new_val" >&2;}
1436 ac_cache_corrupted=:
1437 fi;;
1438 esac
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1441 case $ac_new_val in
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1445 esac
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449 esac
1450 fi
1451done
1452if $ac_cache_corrupted; then
1453 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457 { (exit 1); exit 1; }; }
1458fi
1459
1460ac_ext=c
1461ac_cpp='$CPP $CPPFLAGS'
1462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486ac_aux_dir=
1487for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
1503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511# Make sure we can run config.sub.
1512$ac_config_sub sun4 >/dev/null 2>&1 ||
1513 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1514echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1515 { (exit 1); exit 1; }; }
1516
1517echo "$as_me:$LINENO: checking build system type" >&5
1518echo $ECHO_N "checking build system type... $ECHO_C" >&6
1519if test "${ac_cv_build+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521else
1522 ac_cv_build_alias=$build_alias
1523test -z "$ac_cv_build_alias" &&
1524 ac_cv_build_alias=`$ac_config_guess`
1525test -z "$ac_cv_build_alias" &&
1526 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1527echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1528 { (exit 1); exit 1; }; }
1529ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1530 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1531echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1532 { (exit 1); exit 1; }; }
1533
1534fi
1535echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1536echo "${ECHO_T}$ac_cv_build" >&6
1537build=$ac_cv_build
1538build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
1542
1543echo "$as_me:$LINENO: checking host system type" >&5
1544echo $ECHO_N "checking host system type... $ECHO_C" >&6
1545if test "${ac_cv_host+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547else
1548 ac_cv_host_alias=$host_alias
1549test -z "$ac_cv_host_alias" &&
1550 ac_cv_host_alias=$ac_cv_build_alias
1551ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1552 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1553echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1554 { (exit 1); exit 1; }; }
1555
1556fi
1557echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1558echo "${ECHO_T}$ac_cv_host" >&6
1559host=$ac_cv_host
1560host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563
1564
1565echo "$as_me:$LINENO: checking target system type" >&5
1566echo $ECHO_N "checking target system type... $ECHO_C" >&6
1567if test "${ac_cv_target+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569else
1570 ac_cv_target_alias=$target_alias
1571test "x$ac_cv_target_alias" = "x" &&
1572 ac_cv_target_alias=$ac_cv_host_alias
1573ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1575echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1576 { (exit 1); exit 1; }; }
1577
1578fi
1579echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1580echo "${ECHO_T}$ac_cv_target" >&6
1581target=$ac_cv_target
1582target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
1586
1587# The aliases save the names the user supplied, while $host etc.
1588# will get canonicalized.
1589test -n "$target_alias" &&
1590 test "$program_prefix$program_suffix$program_transform_name" = \
1591 NONENONEs,x,x, &&
1592 program_prefix=${target_alias}-
1593ac_ext=c
1594ac_cpp='$CPP $CPPFLAGS'
1595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1597ac_compiler_gnu=$ac_cv_c_compiler_gnu
1598if test -n "$ac_tool_prefix"; then
1599 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1600set dummy ${ac_tool_prefix}gcc; ac_word=$2
1601echo "$as_me:$LINENO: checking for $ac_word" >&5
1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1608else
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 break 2
1619 fi
1620done
1621done
1622
1623fi
1624fi
1625CC=$ac_cv_prog_CC
1626if test -n "$CC"; then
1627 echo "$as_me:$LINENO: result: $CC" >&5
1628echo "${ECHO_T}$CC" >&6
1629else
1630 echo "$as_me:$LINENO: result: no" >&5
1631echo "${ECHO_T}no" >&6
1632fi
1633
1634fi
1635if test -z "$ac_cv_prog_CC"; then
1636 ac_ct_CC=$CC
1637 # Extract the first word of "gcc", so it can be a program name with args.
1638set dummy gcc; ac_word=$2
1639echo "$as_me:$LINENO: checking for $ac_word" >&5
1640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646else
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_ac_ct_CC="gcc"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 break 2
1657 fi
1658done
1659done
1660
1661fi
1662fi
1663ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664if test -n "$ac_ct_CC"; then
1665 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666echo "${ECHO_T}$ac_ct_CC" >&6
1667else
1668 echo "$as_me:$LINENO: result: no" >&5
1669echo "${ECHO_T}no" >&6
1670fi
1671
1672 CC=$ac_ct_CC
1673else
1674 CC="$ac_cv_prog_CC"
1675fi
1676
1677if test -z "$CC"; then
1678 if test -n "$ac_tool_prefix"; then
1679 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1680set dummy ${ac_tool_prefix}cc; ac_word=$2
1681echo "$as_me:$LINENO: checking for $ac_word" >&5
1682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683if test "${ac_cv_prog_CC+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1685else
1686 if test -n "$CC"; then
1687 ac_cv_prog_CC="$CC" # Let the user override the test.
1688else
1689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690for as_dir in $PATH
1691do
1692 IFS=$as_save_IFS
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_CC="${ac_tool_prefix}cc"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 break 2
1699 fi
1700done
1701done
1702
1703fi
1704fi
1705CC=$ac_cv_prog_CC
1706if test -n "$CC"; then
1707 echo "$as_me:$LINENO: result: $CC" >&5
1708echo "${ECHO_T}$CC" >&6
1709else
1710 echo "$as_me:$LINENO: result: no" >&5
1711echo "${ECHO_T}no" >&6
1712fi
1713
1714fi
1715if test -z "$ac_cv_prog_CC"; then
1716 ac_ct_CC=$CC
1717 # Extract the first word of "cc", so it can be a program name with args.
1718set dummy cc; ac_word=$2
1719echo "$as_me:$LINENO: checking for $ac_word" >&5
1720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1723else
1724 if test -n "$ac_ct_CC"; then
1725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1726else
1727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728for as_dir in $PATH
1729do
1730 IFS=$as_save_IFS
1731 test -z "$as_dir" && as_dir=.
1732 for ac_exec_ext in '' $ac_executable_extensions; do
1733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734 ac_cv_prog_ac_ct_CC="cc"
1735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 break 2
1737 fi
1738done
1739done
1740
1741fi
1742fi
1743ac_ct_CC=$ac_cv_prog_ac_ct_CC
1744if test -n "$ac_ct_CC"; then
1745 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1746echo "${ECHO_T}$ac_ct_CC" >&6
1747else
1748 echo "$as_me:$LINENO: result: no" >&5
1749echo "${ECHO_T}no" >&6
1750fi
1751
1752 CC=$ac_ct_CC
1753else
1754 CC="$ac_cv_prog_CC"
1755fi
1756
1757fi
1758if test -z "$CC"; then
1759 # Extract the first word of "cc", so it can be a program name with args.
1760set dummy cc; ac_word=$2
1761echo "$as_me:$LINENO: checking for $ac_word" >&5
1762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763if test "${ac_cv_prog_CC+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1765else
1766 if test -n "$CC"; then
1767 ac_cv_prog_CC="$CC" # Let the user override the test.
1768else
1769 ac_prog_rejected=no
1770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771for as_dir in $PATH
1772do
1773 IFS=$as_save_IFS
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1778 ac_prog_rejected=yes
1779 continue
1780 fi
1781 ac_cv_prog_CC="cc"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783 break 2
1784 fi
1785done
1786done
1787
1788if test $ac_prog_rejected = yes; then
1789 # We found a bogon in the path, so make sure we never use it.
1790 set dummy $ac_cv_prog_CC
1791 shift
1792 if test $# != 0; then
1793 # We chose a different compiler from the bogus one.
1794 # However, it has the same basename, so the bogon will be chosen
1795 # first if we set CC to just the basename; use the full file name.
1796 shift
1797 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1798 fi
1799fi
1800fi
1801fi
1802CC=$ac_cv_prog_CC
1803if test -n "$CC"; then
1804 echo "$as_me:$LINENO: result: $CC" >&5
1805echo "${ECHO_T}$CC" >&6
1806else
1807 echo "$as_me:$LINENO: result: no" >&5
1808echo "${ECHO_T}no" >&6
1809fi
1810
1811fi
1812if test -z "$CC"; then
1813 if test -n "$ac_tool_prefix"; then
1814 for ac_prog in cl
1815 do
1816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1817set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1818echo "$as_me:$LINENO: checking for $ac_word" >&5
1819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822else
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1825else
1826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827for as_dir in $PATH
1828do
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 break 2
1836 fi
1837done
1838done
1839
1840fi
1841fi
1842CC=$ac_cv_prog_CC
1843if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845echo "${ECHO_T}$CC" >&6
1846else
1847 echo "$as_me:$LINENO: result: no" >&5
1848echo "${ECHO_T}no" >&6
1849fi
1850
1851 test -n "$CC" && break
1852 done
1853fi
1854if test -z "$CC"; then
1855 ac_ct_CC=$CC
1856 for ac_prog in cl
1857do
1858 # Extract the first word of "$ac_prog", so it can be a program name with args.
1859set dummy $ac_prog; ac_word=$2
1860echo "$as_me:$LINENO: checking for $ac_word" >&5
1861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864else
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867else
1868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869for as_dir in $PATH
1870do
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC="$ac_prog"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1878 fi
1879done
1880done
1881
1882fi
1883fi
1884ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887echo "${ECHO_T}$ac_ct_CC" >&6
1888else
1889 echo "$as_me:$LINENO: result: no" >&5
1890echo "${ECHO_T}no" >&6
1891fi
1892
1893 test -n "$ac_ct_CC" && break
1894done
1895
1896 CC=$ac_ct_CC
1897fi
1898
1899fi
1900
1901
1902test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1903See \`config.log' for more details." >&5
1904echo "$as_me: error: no acceptable C compiler found in \$PATH
1905See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1907
1908# Provide some information about the compiler.
1909echo "$as_me:$LINENO:" \
1910 "checking for C compiler version" >&5
1911ac_compiler=`set X $ac_compile; echo $2`
1912{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1913 (eval $ac_compiler --version </dev/null >&5) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }
1917{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1918 (eval $ac_compiler -v </dev/null >&5) 2>&5
1919 ac_status=$?
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }
1922{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1923 (eval $ac_compiler -V </dev/null >&5) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1927
1928cat >conftest.$ac_ext <<_ACEOF
1929/* confdefs.h. */
1930_ACEOF
1931cat confdefs.h >>conftest.$ac_ext
1932cat >>conftest.$ac_ext <<_ACEOF
1933/* end confdefs.h. */
1934
1935int
1936main ()
1937{
1938
1939 ;
1940 return 0;
1941}
1942_ACEOF
1943ac_clean_files_save=$ac_clean_files
1944ac_clean_files="$ac_clean_files a.out a.exe b.out"
1945# Try to create an executable without -o first, disregard a.out.
1946# It will help us diagnose broken compilers, and finding out an intuition
1947# of exeext.
1948echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1949echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1950ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1951if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1952 (eval $ac_link_default) 2>&5
1953 ac_status=$?
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }; then
1956 # Find the output, starting from the most likely. This scheme is
1957# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1958# resort.
1959
1960# Be careful to initialize this variable, since it used to be cached.
1961# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1962ac_cv_exeext=
1963# b.out is created by i960 compilers.
1964for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1965do
1966 test -f "$ac_file" || continue
1967 case $ac_file in
1968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1969 ;;
1970 conftest.$ac_ext )
1971 # This is the source file.
1972 ;;
1973 [ab].out )
1974 # We found the default executable, but exeext='' is most
1975 # certainly right.
1976 break;;
1977 *.* )
1978 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1979 # FIXME: I believe we export ac_cv_exeext for Libtool,
1980 # but it would be cool to find out if it's true. Does anybody
1981 # maintain Libtool? --akim.
1982 export ac_cv_exeext
1983 break;;
1984 * )
1985 break;;
1986 esac
1987done
1988else
1989 echo "$as_me: failed program was:" >&5
1990sed 's/^/| /' conftest.$ac_ext >&5
1991
1992{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1993See \`config.log' for more details." >&5
1994echo "$as_me: error: C compiler cannot create executables
1995See \`config.log' for more details." >&2;}
1996 { (exit 77); exit 77; }; }
1997fi
1998
1999ac_exeext=$ac_cv_exeext
2000echo "$as_me:$LINENO: result: $ac_file" >&5
2001echo "${ECHO_T}$ac_file" >&6
2002
2003# Check the compiler produces executables we can run. If not, either
2004# the compiler is broken, or we cross compile.
2005echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2006echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2007# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2008# If not cross compiling, check that we can run a simple program.
2009if test "$cross_compiling" != yes; then
2010 if { ac_try='./$ac_file'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 (eval $ac_try) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2016 cross_compiling=no
2017 else
2018 if test "$cross_compiling" = maybe; then
2019 cross_compiling=yes
2020 else
2021 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2022If you meant to cross compile, use \`--host'.
2023See \`config.log' for more details." >&5
2024echo "$as_me: error: cannot run C compiled programs.
2025If you meant to cross compile, use \`--host'.
2026See \`config.log' for more details." >&2;}
2027 { (exit 1); exit 1; }; }
2028 fi
2029 fi
2030fi
2031echo "$as_me:$LINENO: result: yes" >&5
2032echo "${ECHO_T}yes" >&6
2033
2034rm -f a.out a.exe conftest$ac_cv_exeext b.out
2035ac_clean_files=$ac_clean_files_save
2036# Check the compiler produces executables we can run. If not, either
2037# the compiler is broken, or we cross compile.
2038echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2039echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2040echo "$as_me:$LINENO: result: $cross_compiling" >&5
2041echo "${ECHO_T}$cross_compiling" >&6
2042
2043echo "$as_me:$LINENO: checking for suffix of executables" >&5
2044echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2046 (eval $ac_link) 2>&5
2047 ac_status=$?
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }; then
2050 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2051# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2052# work properly (i.e., refer to `conftest.exe'), while it won't with
2053# `rm'.
2054for ac_file in conftest.exe conftest conftest.*; do
2055 test -f "$ac_file" || continue
2056 case $ac_file in
2057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2058 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2059 export ac_cv_exeext
2060 break;;
2061 * ) break;;
2062 esac
2063done
2064else
2065 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2066See \`config.log' for more details." >&5
2067echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2068See \`config.log' for more details." >&2;}
2069 { (exit 1); exit 1; }; }
2070fi
2071
2072rm -f conftest$ac_cv_exeext
2073echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2074echo "${ECHO_T}$ac_cv_exeext" >&6
2075
2076rm -f conftest.$ac_ext
2077EXEEXT=$ac_cv_exeext
2078ac_exeext=$EXEEXT
2079echo "$as_me:$LINENO: checking for suffix of object files" >&5
2080echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2081if test "${ac_cv_objext+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083else
2084 cat >conftest.$ac_ext <<_ACEOF
2085/* confdefs.h. */
2086_ACEOF
2087cat confdefs.h >>conftest.$ac_ext
2088cat >>conftest.$ac_ext <<_ACEOF
2089/* end confdefs.h. */
2090
2091int
2092main ()
2093{
2094
2095 ;
2096 return 0;
2097}
2098_ACEOF
2099rm -f conftest.o conftest.obj
2100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; then
2105 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2106 case $ac_file in
2107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2108 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2109 break;;
2110 esac
2111done
2112else
2113 echo "$as_me: failed program was:" >&5
2114sed 's/^/| /' conftest.$ac_ext >&5
2115
2116{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2117See \`config.log' for more details." >&5
2118echo "$as_me: error: cannot compute suffix of object files: cannot compile
2119See \`config.log' for more details." >&2;}
2120 { (exit 1); exit 1; }; }
2121fi
2122
2123rm -f conftest.$ac_cv_objext conftest.$ac_ext
2124fi
2125echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2126echo "${ECHO_T}$ac_cv_objext" >&6
2127OBJEXT=$ac_cv_objext
2128ac_objext=$OBJEXT
2129echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2130echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2131if test "${ac_cv_c_compiler_gnu+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133else
2134 cat >conftest.$ac_ext <<_ACEOF
2135/* confdefs.h. */
2136_ACEOF
2137cat confdefs.h >>conftest.$ac_ext
2138cat >>conftest.$ac_ext <<_ACEOF
2139/* end confdefs.h. */
2140
2141int
2142main ()
2143{
2144#ifndef __GNUC__
2145 choke me
2146#endif
2147
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152rm -f conftest.$ac_objext
2153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>conftest.er1
2155 ac_status=$?
2156 grep -v '^ *+' conftest.er1 >conftest.err
2157 rm -f conftest.er1
2158 cat conftest.err >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
49c96104
SE
2161 { ac_try='test -z "$ac_c_werror_flag"
2162 || test ! -s conftest.err'
5464f5a1
NN
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 (eval $ac_try) 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } &&
2168 { ac_try='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 (eval $ac_try) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2174 ac_compiler_gnu=yes
2175else
2176 echo "$as_me: failed program was:" >&5
2177sed 's/^/| /' conftest.$ac_ext >&5
2178
2179ac_compiler_gnu=no
2180fi
2181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182ac_cv_c_compiler_gnu=$ac_compiler_gnu
2183
2184fi
2185echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2186echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2187GCC=`test $ac_compiler_gnu = yes && echo yes`
2188ac_test_CFLAGS=${CFLAGS+set}
2189ac_save_CFLAGS=$CFLAGS
2190CFLAGS="-g"
2191echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2192echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2193if test "${ac_cv_prog_cc_g+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196 cat >conftest.$ac_ext <<_ACEOF
2197/* confdefs.h. */
2198_ACEOF
2199cat confdefs.h >>conftest.$ac_ext
2200cat >>conftest.$ac_ext <<_ACEOF
2201/* end confdefs.h. */
2202
2203int
2204main ()
2205{
2206
2207 ;
2208 return 0;
2209}
2210_ACEOF
2211rm -f conftest.$ac_objext
2212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213 (eval $ac_compile) 2>conftest.er1
2214 ac_status=$?
2215 grep -v '^ *+' conftest.er1 >conftest.err
2216 rm -f conftest.er1
2217 cat conftest.err >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); } &&
49c96104
SE
2220 { ac_try='test -z "$ac_c_werror_flag"
2221 || test ! -s conftest.err'
5464f5a1
NN
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; } &&
2227 { ac_try='test -s conftest.$ac_objext'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 (eval $ac_try) 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2233 ac_cv_prog_cc_g=yes
2234else
2235 echo "$as_me: failed program was:" >&5
2236sed 's/^/| /' conftest.$ac_ext >&5
2237
2238ac_cv_prog_cc_g=no
2239fi
2240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2241fi
2242echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2243echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2244if test "$ac_test_CFLAGS" = set; then
2245 CFLAGS=$ac_save_CFLAGS
2246elif test $ac_cv_prog_cc_g = yes; then
2247 if test "$GCC" = yes; then
2248 CFLAGS="-g -O2"
2249 else
2250 CFLAGS="-g"
2251 fi
2252else
2253 if test "$GCC" = yes; then
2254 CFLAGS="-O2"
2255 else
2256 CFLAGS=
2257 fi
2258fi
2259echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2260echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2261if test "${ac_cv_prog_cc_stdc+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263else
2264 ac_cv_prog_cc_stdc=no
2265ac_save_CC=$CC
2266cat >conftest.$ac_ext <<_ACEOF
2267/* confdefs.h. */
2268_ACEOF
2269cat confdefs.h >>conftest.$ac_ext
2270cat >>conftest.$ac_ext <<_ACEOF
2271/* end confdefs.h. */
2272#include <stdarg.h>
2273#include <stdio.h>
2274#include <sys/types.h>
2275#include <sys/stat.h>
2276/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2277struct buf { int x; };
2278FILE * (*rcsopen) (struct buf *, struct stat *, int);
2279static char *e (p, i)
2280 char **p;
2281 int i;
2282{
2283 return p[i];
2284}
2285static char *f (char * (*g) (char **, int), char **p, ...)
2286{
2287 char *s;
2288 va_list v;
2289 va_start (v,p);
2290 s = g (p, va_arg (v,int));
2291 va_end (v);
2292 return s;
2293}
2294
2295/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2296 function prototypes and stuff, but not '\xHH' hex character constants.
2297 These don't provoke an error unfortunately, instead are silently treated
2298 as 'x'. The following induces an error, until -std1 is added to get
2299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2300 array size at least. It's necessary to write '\x00'==0 to get something
2301 that's true only with -std1. */
2302int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2303
2304int test (int i, double x);
2305struct s1 {int (*f) (int a);};
2306struct s2 {int (*f) (double a);};
2307int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2308int argc;
2309char **argv;
2310int
2311main ()
2312{
2313return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2314 ;
2315 return 0;
2316}
2317_ACEOF
2318# Don't try gcc -ansi; that turns off useful extensions and
2319# breaks some systems' header files.
2320# AIX -qlanglvl=ansi
2321# Ultrix and OSF/1 -std1
2322# HP-UX 10.20 and later -Ae
2323# HP-UX older versions -Aa -D_HPUX_SOURCE
2324# SVR4 -Xc -D__EXTENSIONS__
2325for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2326do
2327 CC="$ac_save_CC $ac_arg"
2328 rm -f conftest.$ac_objext
2329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>conftest.er1
2331 ac_status=$?
2332 grep -v '^ *+' conftest.er1 >conftest.err
2333 rm -f conftest.er1
2334 cat conftest.err >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
49c96104
SE
2337 { ac_try='test -z "$ac_c_werror_flag"
2338 || test ! -s conftest.err'
5464f5a1
NN
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; } &&
2344 { ac_try='test -s conftest.$ac_objext'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 (eval $ac_try) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 ac_cv_prog_cc_stdc=$ac_arg
2351break
2352else
2353 echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356fi
2357rm -f conftest.err conftest.$ac_objext
2358done
2359rm -f conftest.$ac_ext conftest.$ac_objext
2360CC=$ac_save_CC
2361
2362fi
2363
2364case "x$ac_cv_prog_cc_stdc" in
2365 x|xno)
2366 echo "$as_me:$LINENO: result: none needed" >&5
2367echo "${ECHO_T}none needed" >&6 ;;
2368 *)
2369 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2370echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2371 CC="$CC $ac_cv_prog_cc_stdc" ;;
2372esac
2373
2374# Some people use a C++ compiler to compile C. Since we use `exit',
2375# in C++ we need to declare it. In case someone uses the same compiler
2376# for both compiling C and C++ we need to have the C++ compiler decide
2377# the declaration of exit, since it's the most demanding environment.
2378cat >conftest.$ac_ext <<_ACEOF
2379#ifndef __cplusplus
2380 choke me
2381#endif
2382_ACEOF
2383rm -f conftest.$ac_objext
2384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
49c96104
SE
2392 { ac_try='test -z "$ac_c_werror_flag"
2393 || test ! -s conftest.err'
5464f5a1
NN
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 for ac_declaration in \
2406 '' \
2407 'extern "C" void std::exit (int) throw (); using std::exit;' \
2408 'extern "C" void std::exit (int); using std::exit;' \
2409 'extern "C" void exit (int) throw ();' \
2410 'extern "C" void exit (int);' \
2411 'void exit (int);'
2412do
2413 cat >conftest.$ac_ext <<_ACEOF
2414/* confdefs.h. */
2415_ACEOF
2416cat confdefs.h >>conftest.$ac_ext
2417cat >>conftest.$ac_ext <<_ACEOF
2418/* end confdefs.h. */
2419$ac_declaration
2420#include <stdlib.h>
2421int
2422main ()
2423{
2424exit (42);
2425 ;
2426 return 0;
2427}
2428_ACEOF
2429rm -f conftest.$ac_objext
2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2432 ac_status=$?
2433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
49c96104
SE
2438 { ac_try='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
5464f5a1
NN
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 :
2452else
2453 echo "$as_me: failed program was:" >&5
2454sed 's/^/| /' conftest.$ac_ext >&5
2455
2456continue
2457fi
2458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 cat >conftest.$ac_ext <<_ACEOF
2460/* confdefs.h. */
2461_ACEOF
2462cat confdefs.h >>conftest.$ac_ext
2463cat >>conftest.$ac_ext <<_ACEOF
2464/* end confdefs.h. */
2465$ac_declaration
2466int
2467main ()
2468{
2469exit (42);
2470 ;
2471 return 0;
2472}
2473_ACEOF
2474rm -f conftest.$ac_objext
2475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>conftest.er1
2477 ac_status=$?
2478 grep -v '^ *+' conftest.er1 >conftest.err
2479 rm -f conftest.er1
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
49c96104
SE
2483 { ac_try='test -z "$ac_c_werror_flag"
2484 || test ! -s conftest.err'
5464f5a1
NN
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2496 break
2497else
2498 echo "$as_me: failed program was:" >&5
2499sed 's/^/| /' conftest.$ac_ext >&5
2500
2501fi
2502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503done
2504rm -f conftest*
2505if test -n "$ac_declaration"; then
2506 echo '#ifdef __cplusplus' >>confdefs.h
2507 echo $ac_declaration >>confdefs.h
2508 echo '#endif' >>confdefs.h
2509fi
2510
2511else
2512 echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
2514
2515fi
2516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2517ac_ext=c
2518ac_cpp='$CPP $CPPFLAGS'
2519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522
2523
f5385ebf
AM
2524echo "$as_me:$LINENO: checking for library containing strerror" >&5
2525echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2526if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528else
f5385ebf
AM
2529 ac_func_search_save_LIBS=$LIBS
2530ac_cv_search_strerror=no
5464f5a1
NN
2531cat >conftest.$ac_ext <<_ACEOF
2532/* confdefs.h. */
2533_ACEOF
2534cat confdefs.h >>conftest.$ac_ext
2535cat >>conftest.$ac_ext <<_ACEOF
2536/* end confdefs.h. */
2537
2538/* Override any gcc2 internal prototype to avoid an error. */
2539#ifdef __cplusplus
2540extern "C"
2541#endif
2542/* We use char because int might match the return type of a gcc2
2543 builtin and then its argument prototype would still apply. */
2544char strerror ();
2545int
2546main ()
2547{
2548strerror ();
2549 ;
2550 return 0;
2551}
2552_ACEOF
2553rm -f conftest.$ac_objext conftest$ac_exeext
2554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2555 (eval $ac_link) 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
49c96104
SE
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
5464f5a1
NN
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest$ac_exeext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
f5385ebf 2575 ac_cv_search_strerror="none required"
5464f5a1
NN
2576else
2577 echo "$as_me: failed program was:" >&5
2578sed 's/^/| /' conftest.$ac_ext >&5
2579
5464f5a1
NN
2580fi
2581rm -f conftest.err conftest.$ac_objext \
2582 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2583if test "$ac_cv_search_strerror" = no; then
2584 for ac_lib in cposix; do
2585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2586 cat >conftest.$ac_ext <<_ACEOF
2587/* confdefs.h. */
2588_ACEOF
2589cat confdefs.h >>conftest.$ac_ext
2590cat >>conftest.$ac_ext <<_ACEOF
2591/* end confdefs.h. */
2592
2593/* Override any gcc2 internal prototype to avoid an error. */
2594#ifdef __cplusplus
2595extern "C"
2596#endif
2597/* We use char because int might match the return type of a gcc2
2598 builtin and then its argument prototype would still apply. */
2599char strerror ();
2600int
2601main ()
2602{
2603strerror ();
2604 ;
2605 return 0;
2606}
2607_ACEOF
2608rm -f conftest.$ac_objext conftest$ac_exeext
2609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2610 (eval $ac_link) 2>conftest.er1
2611 ac_status=$?
2612 grep -v '^ *+' conftest.er1 >conftest.err
2613 rm -f conftest.er1
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
49c96104
SE
2617 { ac_try='test -z "$ac_c_werror_flag"
2618 || test ! -s conftest.err'
f5385ebf
AM
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; } &&
2624 { ac_try='test -s conftest$ac_exeext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 ac_cv_search_strerror="-l$ac_lib"
2631break
2632else
2633 echo "$as_me: failed program was:" >&5
2634sed 's/^/| /' conftest.$ac_ext >&5
2635
5464f5a1 2636fi
f5385ebf
AM
2637rm -f conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2639 done
5464f5a1 2640fi
f5385ebf
AM
2641LIBS=$ac_func_search_save_LIBS
2642fi
2643echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2644echo "${ECHO_T}$ac_cv_search_strerror" >&6
2645if test "$ac_cv_search_strerror" != no; then
2646 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2647
f5385ebf 2648fi
5464f5a1
NN
2649
2650
f5385ebf 2651am__api_version="1.9"
5464f5a1
NN
2652# Find a good install program. We prefer a C program (faster),
2653# so one script is as good as another. But avoid the broken or
2654# incompatible versions:
2655# SysV /etc/install, /usr/sbin/install
2656# SunOS /usr/etc/install
2657# IRIX /sbin/install
2658# AIX /bin/install
2659# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2663# OS/2's system install, which has a completely different semantic
252b5132 2664# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2665echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2666echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2667if test -z "$INSTALL"; then
5464f5a1
NN
2668if test "${ac_cv_path_install+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2670else
5464f5a1
NN
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 # Account for people who put trailing slashes in PATH elements.
2677case $as_dir/ in
2678 ./ | .// | /cC/* | \
2679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2681 /usr/ucb/* ) ;;
2682 *)
2683 # OSF1 and SCO ODT 3.0 have their own names for install.
2684 # Don't use installbsd from OSF since it installs stuff as root
2685 # by default.
2686 for ac_prog in ginstall scoinst install; do
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2689 if test $ac_prog = install &&
5464f5a1 2690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2691 # AIX install. It has an incompatible calling convention.
2692 :
5464f5a1
NN
2693 elif test $ac_prog = install &&
2694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2695 # program-specific install script used by HP pwplus--don't use.
2696 :
252b5132 2697 else
5464f5a1
NN
2698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2699 break 3
252b5132
RH
2700 fi
2701 fi
2702 done
5464f5a1
NN
2703 done
2704 ;;
2705esac
2706done
2707
252b5132
RH
2708
2709fi
2710 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2711 INSTALL=$ac_cv_path_install
252b5132
RH
2712 else
2713 # As a last resort, use the slow shell script. We don't cache a
2714 # path for INSTALL within a source directory, because that will
2715 # break other packages using the cache if that directory is
2716 # removed, or if the path is relative.
5464f5a1 2717 INSTALL=$ac_install_sh
252b5132
RH
2718 fi
2719fi
5464f5a1
NN
2720echo "$as_me:$LINENO: result: $INSTALL" >&5
2721echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2722
2723# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2724# It thinks the first close brace ends the variable substitution.
2725test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2726
5464f5a1 2727test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2728
2729test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2730
5464f5a1
NN
2731echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2732echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2733# Just in case
2734sleep 1
f5385ebf 2735echo timestamp > conftest.file
252b5132
RH
2736# Do `set' in a subshell so we don't clobber the current shell's
2737# arguments. Must try -L first in case configure is actually a
2738# symlink; some systems play weird games with the mod time of symlinks
2739# (eg FreeBSD returns the mod time of the symlink's containing
2740# directory).
2741if (
f5385ebf 2742 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2743 if test "$*" = "X"; then
2744 # -L didn't work.
f5385ebf 2745 set X `ls -t $srcdir/configure conftest.file`
252b5132 2746 fi
f5385ebf
AM
2747 rm -f conftest.file
2748 if test "$*" != "X $srcdir/configure conftest.file" \
2749 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2750
2751 # If neither matched, then we have a broken ls. This can happen
2752 # if, for instance, CONFIG_SHELL is bash and it inherits a
2753 # broken ls alias from the environment. This has actually
2754 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2755 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2756alias in your environment" >&5
2757echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2758alias in your environment" >&2;}
2759 { (exit 1); exit 1; }; }
252b5132
RH
2760 fi
2761
f5385ebf 2762 test "$2" = conftest.file
252b5132
RH
2763 )
2764then
2765 # Ok.
2766 :
2767else
5464f5a1
NN
2768 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2769Check your system clock" >&5
2770echo "$as_me: error: newly created file is older than distributed files!
2771Check your system clock" >&2;}
2772 { (exit 1); exit 1; }; }
252b5132 2773fi
5464f5a1
NN
2774echo "$as_me:$LINENO: result: yes" >&5
2775echo "${ECHO_T}yes" >&6
252b5132 2776test "$program_prefix" != NONE &&
5464f5a1 2777 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2778# Use a double $ so make ignores it.
2779test "$program_suffix" != NONE &&
5464f5a1
NN
2780 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2781# Double any \ or $. echo might interpret backslashes.
2782# By default was `s,x,x', remove it if useless.
2783cat <<\_ACEOF >conftest.sed
2784s/[\\$]/&&/g;s/;s,x,x,$//
2785_ACEOF
2786program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2787rm conftest.sed
2788
f5385ebf
AM
2789# expand $ac_aux_dir to an absolute path
2790am_aux_dir=`cd $ac_aux_dir && pwd`
2791
2792test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2793# Use eval to expand $SHELL
2794if eval "$MISSING --run true"; then
2795 am_missing_run="$MISSING --run "
2796else
2797 am_missing_run=
2798 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2799echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2800fi
2801
2802if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2803 # We used to keeping the `.' as first argument, in order to
2804 # allow $(mkdir_p) to be used without argument. As in
2805 # $(mkdir_p) $(somedir)
2806 # where $(somedir) is conditionally defined. However this is wrong
2807 # for two reasons:
2808 # 1. if the package is installed by a user who cannot write `.'
2809 # make install will fail,
2810 # 2. the above comment should most certainly read
2811 # $(mkdir_p) $(DESTDIR)$(somedir)
2812 # so it does not work when $(somedir) is undefined and
2813 # $(DESTDIR) is not.
2814 # To support the latter case, we have to write
2815 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2816 # so the `.' trick is pointless.
2817 mkdir_p='mkdir -p --'
2818else
2819 # On NextStep and OpenStep, the `mkdir' command does not
2820 # recognize any option. It will interpret all options as
2821 # directories to create, and then abort because `.' already
2822 # exists.
2823 for d in ./-p ./--version;
2824 do
2825 test -d $d && rmdir $d
2826 done
2827 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2828 if test -f "$ac_aux_dir/mkinstalldirs"; then
2829 mkdir_p='$(mkinstalldirs)'
2830 else
2831 mkdir_p='$(install_sh) -d'
2832 fi
2833fi
2834
2835for ac_prog in gawk mawk nawk awk
2836do
2837 # Extract the first word of "$ac_prog", so it can be a program name with args.
2838set dummy $ac_prog; ac_word=$2
2839echo "$as_me:$LINENO: checking for $ac_word" >&5
2840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841if test "${ac_cv_prog_AWK+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843else
2844 if test -n "$AWK"; then
2845 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_AWK="$ac_prog"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858done
2859done
2860
2861fi
2862fi
2863AWK=$ac_cv_prog_AWK
2864if test -n "$AWK"; then
2865 echo "$as_me:$LINENO: result: $AWK" >&5
2866echo "${ECHO_T}$AWK" >&6
2867else
2868 echo "$as_me:$LINENO: result: no" >&5
2869echo "${ECHO_T}no" >&6
2870fi
2871
2872 test -n "$AWK" && break
2873done
2874
5464f5a1
NN
2875echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2876echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2877set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2878if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 cat >conftest.make <<\_ACEOF
252b5132 2882all:
5464f5a1
NN
2883 @echo 'ac_maketemp="$(MAKE)"'
2884_ACEOF
252b5132 2885# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2886eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2887if test -n "$ac_maketemp"; then
2888 eval ac_cv_prog_make_${ac_make}_set=yes
2889else
2890 eval ac_cv_prog_make_${ac_make}_set=no
2891fi
5464f5a1 2892rm -f conftest.make
252b5132
RH
2893fi
2894if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2895 echo "$as_me:$LINENO: result: yes" >&5
2896echo "${ECHO_T}yes" >&6
252b5132
RH
2897 SET_MAKE=
2898else
5464f5a1
NN
2899 echo "$as_me:$LINENO: result: no" >&5
2900echo "${ECHO_T}no" >&6
252b5132
RH
2901 SET_MAKE="MAKE=${MAKE-make}"
2902fi
2903
f5385ebf
AM
2904rm -rf .tst 2>/dev/null
2905mkdir .tst 2>/dev/null
2906if test -d .tst; then
2907 am__leading_dot=.
2908else
2909 am__leading_dot=_
2910fi
2911rmdir .tst 2>/dev/null
2912
2913DEPDIR="${am__leading_dot}deps"
2914
2915 ac_config_commands="$ac_config_commands depfiles"
2916
2917
2918am_make=${MAKE-make}
2919cat > confinc << 'END'
2920am__doit:
2921 @echo done
2922.PHONY: am__doit
2923END
2924# If we don't find an include directive, just comment out the code.
2925echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2926echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2927am__include="#"
2928am__quote=
2929_am_result=none
2930# First try GNU make style include.
2931echo "include confinc" > confmf
2932# We grep out `Entering directory' and `Leaving directory'
2933# messages which can occur if `w' ends up in MAKEFLAGS.
2934# In particular we don't look at `^make:' because GNU make might
2935# be invoked under some other name (usually "gmake"), in which
2936# case it prints its new name instead of `make'.
2937if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2938 am__include=include
2939 am__quote=
2940 _am_result=GNU
2941fi
2942# Now try BSD make style include.
2943if test "$am__include" = "#"; then
2944 echo '.include "confinc"' > confmf
2945 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2946 am__include=.include
2947 am__quote="\""
2948 _am_result=BSD
2949 fi
2950fi
2951
2952
2953echo "$as_me:$LINENO: result: $_am_result" >&5
2954echo "${ECHO_T}$_am_result" >&6
2955rm -f confinc confmf
2956
2957# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2958if test "${enable_dependency_tracking+set}" = set; then
2959 enableval="$enable_dependency_tracking"
2960
2961fi;
2962if test "x$enable_dependency_tracking" != xno; then
2963 am_depcomp="$ac_aux_dir/depcomp"
2964 AMDEPBACKSLASH='\'
2965fi
2966
2967
2968if test "x$enable_dependency_tracking" != xno; then
2969 AMDEP_TRUE=
2970 AMDEP_FALSE='#'
2971else
2972 AMDEP_TRUE='#'
2973 AMDEP_FALSE=
2974fi
6be7c12c 2975
252b5132 2976
252b5132 2977
f5385ebf
AM
2978# test to see if srcdir already configured
2979if test "`cd $srcdir && pwd`" != "`pwd`" &&
2980 test -f $srcdir/config.status; then
5464f5a1
NN
2981 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2982echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2983 { (exit 1); exit 1; }; }
252b5132 2984fi
5464f5a1 2985
f5385ebf
AM
2986# test whether we have cygpath
2987if test -z "$CYGPATH_W"; then
2988 if (cygpath --version) >/dev/null 2>/dev/null; then
2989 CYGPATH_W='cygpath -w'
2990 else
2991 CYGPATH_W=echo
2992 fi
2993fi
2994
2995
2996# Define the identity of the package.
2997 PACKAGE=bfd
be118e79 2998 VERSION=2.18.50
f5385ebf
AM
2999
3000
5464f5a1 3001cat >>confdefs.h <<_ACEOF
252b5132 3002#define PACKAGE "$PACKAGE"
5464f5a1 3003_ACEOF
252b5132 3004
5464f5a1
NN
3005
3006cat >>confdefs.h <<_ACEOF
252b5132 3007#define VERSION "$VERSION"
5464f5a1 3008_ACEOF
252b5132 3009
f5385ebf
AM
3010# Some tools Automake needs.
3011
3012ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3013
3014
3015AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3016
3017
3018AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3019
3020
3021AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3022
3023
3024MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 3025
f5385ebf 3026install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 3027
f5385ebf
AM
3028# Installed binaries are usually stripped using `strip' when the user
3029# run `make install-strip'. However `strip' might not be the right
3030# tool to use in cross-compilation environments, therefore Automake
3031# will honor the `STRIP' environment variable to overrule this program.
3032if test "$cross_compiling" != no; then
3033 if test -n "$ac_tool_prefix"; then
3034 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3035set dummy ${ac_tool_prefix}strip; ac_word=$2
3036echo "$as_me:$LINENO: checking for $ac_word" >&5
3037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3038if test "${ac_cv_prog_STRIP+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040else
3041 if test -n "$STRIP"; then
3042 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3043else
f5385ebf
AM
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 break 2
3054 fi
3055done
3056done
3057
3058fi
3059fi
3060STRIP=$ac_cv_prog_STRIP
3061if test -n "$STRIP"; then
3062 echo "$as_me:$LINENO: result: $STRIP" >&5
3063echo "${ECHO_T}$STRIP" >&6
3064else
3065 echo "$as_me:$LINENO: result: no" >&5
3066echo "${ECHO_T}no" >&6
3067fi
3068
252b5132 3069fi
f5385ebf
AM
3070if test -z "$ac_cv_prog_STRIP"; then
3071 ac_ct_STRIP=$STRIP
3072 # Extract the first word of "strip", so it can be a program name with args.
3073set dummy strip; ac_word=$2
3074echo "$as_me:$LINENO: checking for $ac_word" >&5
3075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
3079 if test -n "$ac_ct_STRIP"; then
3080 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3081else
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_ac_ct_STRIP="strip"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093done
3094done
252b5132 3095
f5385ebf
AM
3096 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3097fi
3098fi
3099ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3100if test -n "$ac_ct_STRIP"; then
3101 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3102echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3103else
f5385ebf
AM
3104 echo "$as_me:$LINENO: result: no" >&5
3105echo "${ECHO_T}no" >&6
252b5132
RH
3106fi
3107
f5385ebf 3108 STRIP=$ac_ct_STRIP
252b5132 3109else
f5385ebf
AM
3110 STRIP="$ac_cv_prog_STRIP"
3111fi
3112
252b5132 3113fi
f5385ebf
AM
3114INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3115
3116# We need awk for the "check" target. The system "awk" is bad on
3117# some platforms.
3118# Always define AMTAR for backward compatibility.
3119
3120AMTAR=${AMTAR-"${am_missing_run}tar"}
3121
3122am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3123
252b5132 3124
f5385ebf
AM
3125
3126
3127depcc="$CC" am_compiler_list=
3128
3129echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3130echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3131if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3133else
f5385ebf
AM
3134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3135 # We make a subdir and do the tests there. Otherwise we can end up
3136 # making bogus files that we don't know about and never remove. For
3137 # instance it was reported that on HP-UX the gcc test will end up
3138 # making a dummy file named `D' -- because `-MD' means `put the output
3139 # in D'.
3140 mkdir conftest.dir
3141 # Copy depcomp to subdir because otherwise we won't find it if we're
3142 # using a relative directory.
3143 cp "$am_depcomp" conftest.dir
3144 cd conftest.dir
3145 # We will build objects and dependencies in a subdirectory because
3146 # it helps to detect inapplicable dependency modes. For instance
3147 # both Tru64's cc and ICC support -MD to output dependencies as a
3148 # side effect of compilation, but ICC will put the dependencies in
3149 # the current directory while Tru64 will put them in the object
3150 # directory.
3151 mkdir sub
3152
3153 am_cv_CC_dependencies_compiler_type=none
3154 if test "$am_compiler_list" = ""; then
3155 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3156 fi
3157 for depmode in $am_compiler_list; do
3158 # Setup a source with many dependencies, because some compilers
3159 # like to wrap large dependency lists on column 80 (with \), and
3160 # we should not choose a depcomp mode which is confused by this.
3161 #
3162 # We need to recreate these files for each test, as the compiler may
3163 # overwrite some of them when testing with obscure command lines.
3164 # This happens at least with the AIX C compiler.
3165 : > sub/conftest.c
3166 for i in 1 2 3 4 5 6; do
3167 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3168 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3169 # Solaris 8's {/usr,}/bin/sh.
3170 touch sub/conftst$i.h
3171 done
3172 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3173
3174 case $depmode in
3175 nosideeffect)
3176 # after this tag, mechanisms are not by side-effect, so they'll
3177 # only be used when explicitly requested
3178 if test "x$enable_dependency_tracking" = xyes; then
3179 continue
3180 else
3181 break
3182 fi
3183 ;;
3184 none) break ;;
3185 esac
3186 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3187 # mode. It turns out that the SunPro C++ compiler does not properly
3188 # handle `-M -o', and we need to detect this.
3189 if depmode=$depmode \
3190 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3192 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3193 >/dev/null 2>conftest.err &&
3194 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3195 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3196 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3197 # icc doesn't choke on unknown options, it will just issue warnings
3198 # or remarks (even with -Werror). So we grep stderr for any message
3199 # that says an option was ignored or not supported.
3200 # When given -MP, icc 7.0 and 7.1 complain thusly:
3201 # icc: Command line warning: ignoring option '-M'; no argument required
3202 # The diagnosis changed in icc 8.0:
3203 # icc: Command line remark: option '-MP' not supported
3204 if (grep 'ignoring option' conftest.err ||
3205 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3206 am_cv_CC_dependencies_compiler_type=$depmode
3207 break
3208 fi
3209 fi
3210 done
3211
3212 cd ..
3213 rm -rf conftest.dir
3214else
3215 am_cv_CC_dependencies_compiler_type=none
3216fi
3217
252b5132 3218fi
f5385ebf
AM
3219echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3220echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3221CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3222
f5385ebf
AM
3223
3224
3225if
3226 test "x$enable_dependency_tracking" != xno \
3227 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3228 am__fastdepCC_TRUE=
3229 am__fastdepCC_FALSE='#'
252b5132 3230else
f5385ebf
AM
3231 am__fastdepCC_TRUE='#'
3232 am__fastdepCC_FALSE=
252b5132
RH
3233fi
3234
6be7c12c 3235
e43d48cc 3236
f5385ebf 3237
5464f5a1
NN
3238if test -n "$ac_tool_prefix"; then
3239 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3240set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3241echo "$as_me:$LINENO: checking for $ac_word" >&5
3242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3243if test "${ac_cv_prog_AR+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3245else
3246 if test -n "$AR"; then
3247 ac_cv_prog_AR="$AR" # Let the user override the test.
3248else
5464f5a1
NN
3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250for as_dir in $PATH
3251do
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256 ac_cv_prog_AR="${ac_tool_prefix}ar"
3257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 break 2
3259 fi
3260done
3261done
3262
252b5132
RH
3263fi
3264fi
5464f5a1 3265AR=$ac_cv_prog_AR
252b5132 3266if test -n "$AR"; then
5464f5a1
NN
3267 echo "$as_me:$LINENO: result: $AR" >&5
3268echo "${ECHO_T}$AR" >&6
252b5132 3269else
5464f5a1
NN
3270 echo "$as_me:$LINENO: result: no" >&5
3271echo "${ECHO_T}no" >&6
3272fi
3273
252b5132 3274fi
5464f5a1
NN
3275if test -z "$ac_cv_prog_AR"; then
3276 ac_ct_AR=$AR
3277 # Extract the first word of "ar", so it can be a program name with args.
3278set dummy ar; ac_word=$2
3279echo "$as_me:$LINENO: checking for $ac_word" >&5
3280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284 if test -n "$ac_ct_AR"; then
3285 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_ac_ct_AR="ar"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298done
3299done
252b5132 3300
5464f5a1
NN
3301fi
3302fi
3303ac_ct_AR=$ac_cv_prog_ac_ct_AR
3304if test -n "$ac_ct_AR"; then
3305 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3306echo "${ECHO_T}$ac_ct_AR" >&6
3307else
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310fi
252b5132 3311
5464f5a1
NN
3312 AR=$ac_ct_AR
3313else
3314 AR="$ac_cv_prog_AR"
3315fi
6be7c12c 3316
5464f5a1
NN
3317if test -n "$ac_tool_prefix"; then
3318 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3319set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3320echo "$as_me:$LINENO: checking for $ac_word" >&5
3321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3322if test "${ac_cv_prog_RANLIB+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3324else
3325 if test -n "$RANLIB"; then
3326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3327else
5464f5a1
NN
3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329for as_dir in $PATH
3330do
3331 IFS=$as_save_IFS
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3338 fi
3339done
3340done
3341
252b5132
RH
3342fi
3343fi
5464f5a1 3344RANLIB=$ac_cv_prog_RANLIB
252b5132 3345if test -n "$RANLIB"; then
5464f5a1
NN
3346 echo "$as_me:$LINENO: result: $RANLIB" >&5
3347echo "${ECHO_T}$RANLIB" >&6
252b5132 3348else
5464f5a1
NN
3349 echo "$as_me:$LINENO: result: no" >&5
3350echo "${ECHO_T}no" >&6
252b5132
RH
3351fi
3352
5464f5a1 3353fi
252b5132 3354if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3355 ac_ct_RANLIB=$RANLIB
252b5132
RH
3356 # Extract the first word of "ranlib", so it can be a program name with args.
3357set dummy ranlib; ac_word=$2
5464f5a1
NN
3358echo "$as_me:$LINENO: checking for $ac_word" >&5
3359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3362else
5464f5a1
NN
3363 if test -n "$ac_ct_RANLIB"; then
3364 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3365else
5464f5a1
NN
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_ac_ct_RANLIB="ranlib"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377done
3378done
3379
3380 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3381fi
3382fi
5464f5a1
NN
3383ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3384if test -n "$ac_ct_RANLIB"; then
3385 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3386echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3387else
5464f5a1
NN
3388 echo "$as_me:$LINENO: result: no" >&5
3389echo "${ECHO_T}no" >&6
252b5132
RH
3390fi
3391
5464f5a1 3392 RANLIB=$ac_ct_RANLIB
252b5132 3393else
5464f5a1 3394 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3395fi
3396
252b5132
RH
3397
3398# Check whether --enable-shared or --disable-shared was given.
3399if test "${enable_shared+set}" = set; then
3400 enableval="$enable_shared"
3401 p=${PACKAGE-default}
d7040cdb
SE
3402 case $enableval in
3403 yes) enable_shared=yes ;;
3404 no) enable_shared=no ;;
3405 *)
3406 enable_shared=no
3407 # Look at the argument we got. We use all the common list separators.
3408 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3409 for pkg in $enableval; do
3410 IFS="$lt_save_ifs"
3411 if test "X$pkg" = "X$p"; then
3412 enable_shared=yes
3413 fi
3414 done
3415 IFS="$lt_save_ifs"
3416 ;;
3417 esac
252b5132
RH
3418else
3419 enable_shared=no
5464f5a1 3420fi;
252b5132 3421
d7040cdb
SE
3422
3423
3424
3425
3426
3427
3428
3429
cfbc9945
SE
3430ac_ext=c
3431ac_cpp='$CPP $CPPFLAGS'
3432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435if test -n "$ac_tool_prefix"; then
3436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3437set dummy ${ac_tool_prefix}gcc; ac_word=$2
3438echo "$as_me:$LINENO: checking for $ac_word" >&5
3439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440if test "${ac_cv_prog_CC+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3442else
cfbc9945
SE
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 3445else
cfbc9945
SE
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH
3448do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3456 fi
3457done
3458done
c5d1701e 3459
cfbc9945
SE
3460fi
3461fi
3462CC=$ac_cv_prog_CC
3463if test -n "$CC"; then
3464 echo "$as_me:$LINENO: result: $CC" >&5
3465echo "${ECHO_T}$CC" >&6
252b5132 3466else
cfbc9945
SE
3467 echo "$as_me:$LINENO: result: no" >&5
3468echo "${ECHO_T}no" >&6
252b5132 3469fi
cfbc9945
SE
3470
3471fi
3472if test -z "$ac_cv_prog_CC"; then
3473 ac_ct_CC=$CC
3474 # Extract the first word of "gcc", so it can be a program name with args.
3475set dummy gcc; ac_word=$2
3476echo "$as_me:$LINENO: checking for $ac_word" >&5
3477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3479 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3480else
cfbc9945
SE
3481 if test -n "$ac_ct_CC"; then
3482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3483else
cfbc9945
SE
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_ac_ct_CC="gcc"
3492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3494 fi
3495done
3496done
3497
252b5132
RH
3498fi
3499fi
cfbc9945
SE
3500ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501if test -n "$ac_ct_CC"; then
3502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3503echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3504else
5464f5a1
NN
3505 echo "$as_me:$LINENO: result: no" >&5
3506echo "${ECHO_T}no" >&6
252b5132 3507fi
cfbc9945
SE
3508
3509 CC=$ac_ct_CC
3510else
3511 CC="$ac_cv_prog_CC"
3512fi
3513
3514if test -z "$CC"; then
3515 if test -n "$ac_tool_prefix"; then
3516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3517set dummy ${ac_tool_prefix}cc; ac_word=$2
3518echo "$as_me:$LINENO: checking for $ac_word" >&5
3519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3520if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3521 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3522else
cfbc9945
SE
3523 if test -n "$CC"; then
3524 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3525else
cfbc9945
SE
3526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH
3528do
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533 ac_cv_prog_CC="${ac_tool_prefix}cc"
3534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 break 2
3536 fi
3537done
3538done
3539
252b5132
RH
3540fi
3541fi
cfbc9945
SE
3542CC=$ac_cv_prog_CC
3543if test -n "$CC"; then
3544 echo "$as_me:$LINENO: result: $CC" >&5
3545echo "${ECHO_T}$CC" >&6
ac48eca1 3546else
cfbc9945
SE
3547 echo "$as_me:$LINENO: result: no" >&5
3548echo "${ECHO_T}no" >&6
ac48eca1 3549fi
ac48eca1 3550
cfbc9945
SE
3551fi
3552if test -z "$ac_cv_prog_CC"; then
3553 ac_ct_CC=$CC
3554 # Extract the first word of "cc", so it can be a program name with args.
3555set dummy cc; ac_word=$2
3556echo "$as_me:$LINENO: checking for $ac_word" >&5
3557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3559 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3560else
cfbc9945
SE
3561 if test -n "$ac_ct_CC"; then
3562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3563else
cfbc9945
SE
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_ac_ct_CC="cc"
3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575done
3576done
3577
252b5132 3578fi
cfbc9945
SE
3579fi
3580ac_ct_CC=$ac_cv_prog_ac_ct_CC
3581if test -n "$ac_ct_CC"; then
3582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3583echo "${ECHO_T}$ac_ct_CC" >&6
3584else
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
252b5132
RH
3587fi
3588
cfbc9945
SE
3589 CC=$ac_ct_CC
3590else
3591 CC="$ac_cv_prog_CC"
3592fi
252b5132 3593
cfbc9945
SE
3594fi
3595if test -z "$CC"; then
3596 # Extract the first word of "cc", so it can be a program name with args.
3597set dummy cc; ac_word=$2
3598echo "$as_me:$LINENO: checking for $ac_word" >&5
3599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3600if test "${ac_cv_prog_CC+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3602else
cfbc9945
SE
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC="$CC" # Let the user override the test.
3605else
3606 ac_prog_rejected=no
3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608for as_dir in $PATH
3609do
3610 IFS=$as_save_IFS
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3615 ac_prog_rejected=yes
3616 continue
3617 fi
3618 ac_cv_prog_CC="cc"
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3621 fi
3622done
3623done
3624
3625if test $ac_prog_rejected = yes; then
3626 # We found a bogon in the path, so make sure we never use it.
3627 set dummy $ac_cv_prog_CC
3628 shift
3629 if test $# != 0; then
3630 # We chose a different compiler from the bogus one.
3631 # However, it has the same basename, so the bogon will be chosen
3632 # first if we set CC to just the basename; use the full file name.
3633 shift
3634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3635 fi
3636fi
3637fi
3638fi
3639CC=$ac_cv_prog_CC
3640if test -n "$CC"; then
3641 echo "$as_me:$LINENO: result: $CC" >&5
3642echo "${ECHO_T}$CC" >&6
3643else
3644 echo "$as_me:$LINENO: result: no" >&5
3645echo "${ECHO_T}no" >&6
252b5132
RH
3646fi
3647
cfbc9945
SE
3648fi
3649if test -z "$CC"; then
3650 if test -n "$ac_tool_prefix"; then
3651 for ac_prog in cl
3652 do
3653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3655echo "$as_me:$LINENO: checking for $ac_word" >&5
3656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3658 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3659else
cfbc9945
SE
3660 if test -n "$CC"; then
3661 ac_cv_prog_CC="$CC" # Let the user override the test.
3662else
3663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664for as_dir in $PATH
3665do
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674done
3675done
ac48eca1 3676
cfbc9945
SE
3677fi
3678fi
3679CC=$ac_cv_prog_CC
3680if test -n "$CC"; then
3681 echo "$as_me:$LINENO: result: $CC" >&5
3682echo "${ECHO_T}$CC" >&6
3683else
3684 echo "$as_me:$LINENO: result: no" >&5
3685echo "${ECHO_T}no" >&6
3686fi
ac48eca1 3687
cfbc9945
SE
3688 test -n "$CC" && break
3689 done
3690fi
3691if test -z "$CC"; then
3692 ac_ct_CC=$CC
3693 for ac_prog in cl
3694do
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696set dummy $ac_prog; ac_word=$2
3697echo "$as_me:$LINENO: checking for $ac_word" >&5
3698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_ac_ct_CC="$ac_prog"
3713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716done
3717done
ac48eca1 3718
cfbc9945
SE
3719fi
3720fi
3721ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722if test -n "$ac_ct_CC"; then
3723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3724echo "${ECHO_T}$ac_ct_CC" >&6
3725else
3726 echo "$as_me:$LINENO: result: no" >&5
3727echo "${ECHO_T}no" >&6
3728fi
ac48eca1 3729
cfbc9945
SE
3730 test -n "$ac_ct_CC" && break
3731done
ac48eca1 3732
cfbc9945
SE
3733 CC=$ac_ct_CC
3734fi
55c80943 3735
cfbc9945 3736fi
ac48eca1 3737
ac48eca1 3738
cfbc9945
SE
3739test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3740See \`config.log' for more details." >&5
3741echo "$as_me: error: no acceptable C compiler found in \$PATH
3742See \`config.log' for more details." >&2;}
3743 { (exit 1); exit 1; }; }
ac48eca1 3744
cfbc9945
SE
3745# Provide some information about the compiler.
3746echo "$as_me:$LINENO:" \
3747 "checking for C compiler version" >&5
3748ac_compiler=`set X $ac_compile; echo $2`
3749{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3750 (eval $ac_compiler --version </dev/null >&5) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }
3754{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3755 (eval $ac_compiler -v </dev/null >&5) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }
3759{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3760 (eval $ac_compiler -V </dev/null >&5) 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }
ac48eca1 3764
cfbc9945
SE
3765echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3766echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3767if test "${ac_cv_c_compiler_gnu+set}" = set; then
5464f5a1 3768 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3769else
cfbc9945
SE
3770 cat >conftest.$ac_ext <<_ACEOF
3771/* confdefs.h. */
3772_ACEOF
3773cat confdefs.h >>conftest.$ac_ext
3774cat >>conftest.$ac_ext <<_ACEOF
3775/* end confdefs.h. */
ac48eca1 3776
cfbc9945
SE
3777int
3778main ()
3779{
3780#ifndef __GNUC__
3781 choke me
3782#endif
5464f5a1 3783
cfbc9945
SE
3784 ;
3785 return 0;
3786}
3787_ACEOF
3788rm -f conftest.$ac_objext
3789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790 (eval $ac_compile) 2>conftest.er1
3791 ac_status=$?
3792 grep -v '^ *+' conftest.er1 >conftest.err
3793 rm -f conftest.er1
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } &&
3797 { ac_try='test -z "$ac_c_werror_flag"
3798 || test ! -s conftest.err'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; } &&
3804 { ac_try='test -s conftest.$ac_objext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 (eval $ac_try) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 ac_compiler_gnu=yes
ac48eca1 3811else
cfbc9945
SE
3812 echo "$as_me: failed program was:" >&5
3813sed 's/^/| /' conftest.$ac_ext >&5
3814
3815ac_compiler_gnu=no
ac48eca1 3816fi
cfbc9945
SE
3817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3818ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3819
5464f5a1 3820fi
cfbc9945
SE
3821echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3822echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3823GCC=`test $ac_compiler_gnu = yes && echo yes`
3824ac_test_CFLAGS=${CFLAGS+set}
3825ac_save_CFLAGS=$CFLAGS
3826CFLAGS="-g"
3827echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3828echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3829if test "${ac_cv_prog_cc_g+set}" = set; then
5464f5a1 3830 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3831else
cfbc9945
SE
3832 cat >conftest.$ac_ext <<_ACEOF
3833/* confdefs.h. */
3834_ACEOF
3835cat confdefs.h >>conftest.$ac_ext
3836cat >>conftest.$ac_ext <<_ACEOF
3837/* end confdefs.h. */
3838
3839int
3840main ()
3841{
3842
3843 ;
3844 return 0;
3845}
3846_ACEOF
3847rm -f conftest.$ac_objext
3848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849 (eval $ac_compile) 2>conftest.er1
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } &&
3856 { ac_try='test -z "$ac_c_werror_flag"
3857 || test ! -s conftest.err'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try='test -s conftest.$ac_objext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_prog_cc_g=yes
6be7c12c 3870else
cfbc9945
SE
3871 echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3873
cfbc9945 3874ac_cv_prog_cc_g=no
ac48eca1 3875fi
cfbc9945 3876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3877fi
cfbc9945
SE
3878echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3879echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3880if test "$ac_test_CFLAGS" = set; then
3881 CFLAGS=$ac_save_CFLAGS
3882elif test $ac_cv_prog_cc_g = yes; then
3883 if test "$GCC" = yes; then
3884 CFLAGS="-g -O2"
3885 else
3886 CFLAGS="-g"
3887 fi
ac48eca1 3888else
cfbc9945
SE
3889 if test "$GCC" = yes; then
3890 CFLAGS="-O2"
3891 else
3892 CFLAGS=
3893 fi
ac48eca1 3894fi
cfbc9945
SE
3895echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3896echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3897if test "${ac_cv_prog_cc_stdc+set}" = set; then
5464f5a1 3898 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3899else
cfbc9945
SE
3900 ac_cv_prog_cc_stdc=no
3901ac_save_CC=$CC
3902cat >conftest.$ac_ext <<_ACEOF
3903/* confdefs.h. */
3904_ACEOF
3905cat confdefs.h >>conftest.$ac_ext
3906cat >>conftest.$ac_ext <<_ACEOF
3907/* end confdefs.h. */
3908#include <stdarg.h>
3909#include <stdio.h>
3910#include <sys/types.h>
3911#include <sys/stat.h>
3912/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3913struct buf { int x; };
3914FILE * (*rcsopen) (struct buf *, struct stat *, int);
3915static char *e (p, i)
3916 char **p;
3917 int i;
3918{
3919 return p[i];
3920}
3921static char *f (char * (*g) (char **, int), char **p, ...)
3922{
3923 char *s;
3924 va_list v;
3925 va_start (v,p);
3926 s = g (p, va_arg (v,int));
3927 va_end (v);
3928 return s;
3929}
5464f5a1 3930
cfbc9945
SE
3931/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3932 function prototypes and stuff, but not '\xHH' hex character constants.
3933 These don't provoke an error unfortunately, instead are silently treated
3934 as 'x'. The following induces an error, until -std1 is added to get
3935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3936 array size at least. It's necessary to write '\x00'==0 to get something
3937 that's true only with -std1. */
3938int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3939
3940int test (int i, double x);
3941struct s1 {int (*f) (int a);};
3942struct s2 {int (*f) (double a);};
3943int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3944int argc;
3945char **argv;
3946int
3947main ()
3948{
3949return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3950 ;
3951 return 0;
3952}
3953_ACEOF
3954# Don't try gcc -ansi; that turns off useful extensions and
3955# breaks some systems' header files.
3956# AIX -qlanglvl=ansi
3957# Ultrix and OSF/1 -std1
3958# HP-UX 10.20 and later -Ae
3959# HP-UX older versions -Aa -D_HPUX_SOURCE
3960# SVR4 -Xc -D__EXTENSIONS__
3961for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3962do
3963 CC="$ac_save_CC $ac_arg"
3964 rm -f conftest.$ac_objext
3965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966 (eval $ac_compile) 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } &&
3973 { ac_try='test -z "$ac_c_werror_flag"
3974 || test ! -s conftest.err'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 (eval $ac_try) 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_cv_prog_cc_stdc=$ac_arg
3987break
ac48eca1 3988else
cfbc9945
SE
3989 echo "$as_me: failed program was:" >&5
3990sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3991
5464f5a1 3992fi
cfbc9945 3993rm -f conftest.err conftest.$ac_objext
5464f5a1 3994done
cfbc9945
SE
3995rm -f conftest.$ac_ext conftest.$ac_objext
3996CC=$ac_save_CC
5464f5a1 3997
ac48eca1 3998fi
252b5132 3999
cfbc9945
SE
4000case "x$ac_cv_prog_cc_stdc" in
4001 x|xno)
4002 echo "$as_me:$LINENO: result: none needed" >&5
4003echo "${ECHO_T}none needed" >&6 ;;
4004 *)
4005 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4006echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4007 CC="$CC $ac_cv_prog_cc_stdc" ;;
4008esac
6be7c12c 4009
cfbc9945
SE
4010# Some people use a C++ compiler to compile C. Since we use `exit',
4011# in C++ we need to declare it. In case someone uses the same compiler
4012# for both compiling C and C++ we need to have the C++ compiler decide
4013# the declaration of exit, since it's the most demanding environment.
4014cat >conftest.$ac_ext <<_ACEOF
4015#ifndef __cplusplus
4016 choke me
4017#endif
4018_ACEOF
4019rm -f conftest.$ac_objext
4020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>conftest.er1
5464f5a1 4022 ac_status=$?
cfbc9945
SE
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
5464f5a1 4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4027 (exit $ac_status); } &&
4028 { ac_try='test -z "$ac_c_werror_flag"
4029 || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
5464f5a1
NN
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
d70c5fc7
NC
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4040 (exit $ac_status); }; }; then
4041 for ac_declaration in \
4042 '' \
4043 'extern "C" void std::exit (int) throw (); using std::exit;' \
4044 'extern "C" void std::exit (int); using std::exit;' \
4045 'extern "C" void exit (int) throw ();' \
4046 'extern "C" void exit (int);' \
4047 'void exit (int);'
4048do
4049 cat >conftest.$ac_ext <<_ACEOF
4050/* confdefs.h. */
4051_ACEOF
4052cat confdefs.h >>conftest.$ac_ext
4053cat >>conftest.$ac_ext <<_ACEOF
4054/* end confdefs.h. */
4055$ac_declaration
4056#include <stdlib.h>
4057int
4058main ()
4059{
4060exit (42);
4061 ;
4062 return 0;
4063}
4064_ACEOF
4065rm -f conftest.$ac_objext
4066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag"
4075 || test ! -s conftest.err'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try='test -s conftest.$ac_objext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 :
b2ef150d 4088else
cfbc9945
SE
4089 echo "$as_me: failed program was:" >&5
4090sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 4091
cfbc9945
SE
4092continue
4093fi
4094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
4096/* confdefs.h. */
4097_ACEOF
4098cat confdefs.h >>conftest.$ac_ext
4099cat >>conftest.$ac_ext <<_ACEOF
4100/* end confdefs.h. */
cfbc9945 4101$ac_declaration
5464f5a1
NN
4102int
4103main ()
4104{
cfbc9945 4105exit (42);
5464f5a1
NN
4106 ;
4107 return 0;
4108}
4109_ACEOF
cfbc9945
SE
4110rm -f conftest.$ac_objext
4111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
49c96104
SE
4119 { ac_try='test -z "$ac_c_werror_flag"
4120 || test ! -s conftest.err'
5464f5a1
NN
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; } &&
cfbc9945 4126 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 (eval $ac_try) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
cfbc9945 4132 break
b2ef150d 4133else
5464f5a1
NN
4134 echo "$as_me: failed program was:" >&5
4135sed 's/^/| /' conftest.$ac_ext >&5
4136
b2ef150d 4137fi
cfbc9945
SE
4138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139done
4140rm -f conftest*
4141if test -n "$ac_declaration"; then
4142 echo '#ifdef __cplusplus' >>confdefs.h
4143 echo $ac_declaration >>confdefs.h
4144 echo '#endif' >>confdefs.h
6ec7057a 4145fi
cfbc9945 4146
92f01d61 4147else
cfbc9945
SE
4148 echo "$as_me: failed program was:" >&5
4149sed 's/^/| /' conftest.$ac_ext >&5
92f01d61 4150
cfbc9945
SE
4151fi
4152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4153ac_ext=c
4154ac_cpp='$CPP $CPPFLAGS'
4155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61
JM
4158
4159
cfbc9945
SE
4160cat >>confdefs.h <<\_ACEOF
4161#define _GNU_SOURCE 1
4162_ACEOF
a1ac8190 4163
c428fa83 4164
cfbc9945 4165
d7040cdb
SE
4166
4167
4168macro_version='2.1a'
4169macro_revision='1.2435'
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182ltmain="$ac_aux_dir/ltmain.sh"
4183
4184# Set options
4185
4186enable_dlopen=no
4187
4188
4189enable_win32_dll=no
4190
4191
4192
cfbc9945
SE
4193# Check whether --enable-static or --disable-static was given.
4194if test "${enable_static+set}" = set; then
4195 enableval="$enable_static"
4196 p=${PACKAGE-default}
d7040cdb
SE
4197 case $enableval in
4198 yes) enable_static=yes ;;
4199 no) enable_static=no ;;
4200 *)
4201 enable_static=no
4202 # Look at the argument we got. We use all the common list separators.
4203 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4204 for pkg in $enableval; do
4205 IFS="$lt_save_ifs"
4206 if test "X$pkg" = "X$p"; then
4207 enable_static=yes
4208 fi
4209 done
4210 IFS="$lt_save_ifs"
4211 ;;
4212 esac
c428fa83 4213else
cfbc9945
SE
4214 enable_static=yes
4215fi;
d7040cdb
SE
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225# Check whether --with-pic or --without-pic was given.
4226if test "${with_pic+set}" = set; then
4227 withval="$with_pic"
4228 pic_mode="$withval"
4229else
4230 pic_mode=default
4231fi;
4232
4233test -z "$pic_mode" && pic_mode=default
4234
4235
4236
4237
4238
4239
4240
cfbc9945
SE
4241# Check whether --enable-fast-install or --disable-fast-install was given.
4242if test "${enable_fast_install+set}" = set; then
4243 enableval="$enable_fast_install"
4244 p=${PACKAGE-default}
d7040cdb
SE
4245 case $enableval in
4246 yes) enable_fast_install=yes ;;
4247 no) enable_fast_install=no ;;
4248 *)
4249 enable_fast_install=no
4250 # Look at the argument we got. We use all the common list separators.
4251 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4252 for pkg in $enableval; do
4253 IFS="$lt_save_ifs"
4254 if test "X$pkg" = "X$p"; then
4255 enable_fast_install=yes
4256 fi
4257 done
4258 IFS="$lt_save_ifs"
4259 ;;
4260 esac
cfbc9945
SE
4261else
4262 enable_fast_install=yes
4263fi;
c428fa83 4264
d7040cdb
SE
4265
4266
4267
4268
4269
4270
4271
4272echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4273echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4274if test "${lt_cv_path_SED+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4276else
4277 # Loop through the user's path and test for sed and gsed.
4278# Then use that list of sed's as ones to test for truncation.
4279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280for as_dir in $PATH
4281do
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for lt_ac_prog in sed gsed; do
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4287 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4288 fi
4289 done
4290 done
4291done
4292IFS=$as_save_IFS
4293lt_ac_max=0
4294lt_ac_count=0
4295# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4296# along with /bin/sed that truncates output.
4297for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4298 test ! -f $lt_ac_sed && continue
4299 cat /dev/null > conftest.in
4300 lt_ac_count=0
4301 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4302 # Check for GNU sed and select it if it is found.
4303 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4304 lt_cv_path_SED=$lt_ac_sed
4305 break
4306 fi
4307 while true; do
4308 cat conftest.in conftest.in >conftest.tmp
4309 mv conftest.tmp conftest.in
4310 cp conftest.in conftest.nl
4311 echo >>conftest.nl
4312 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4313 cmp -s conftest.out conftest.nl || break
4314 # 10000 chars as input seems more than enough
4315 test $lt_ac_count -gt 10 && break
4316 lt_ac_count=`expr $lt_ac_count + 1`
4317 if test $lt_ac_count -gt $lt_ac_max; then
4318 lt_ac_max=$lt_ac_count
4319 lt_cv_path_SED=$lt_ac_sed
4320 fi
4321 done
4322done
4323
4324fi
4325
4326SED=$lt_cv_path_SED
4327
4328echo "$as_me:$LINENO: result: $SED" >&5
4329echo "${ECHO_T}$SED" >&6
4330
4331test -z "$SED" && SED=sed
4332Xsed="$SED -e 1s/^X//"
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344echo "$as_me:$LINENO: checking for egrep" >&5
4345echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4346if test "${ac_cv_prog_egrep+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348else
4349 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4350 then ac_cv_prog_egrep='grep -E'
4351 else ac_cv_prog_egrep='egrep'
4352 fi
4353fi
4354echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4355echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4356 EGREP=$ac_cv_prog_egrep
4357
4358
4359echo "$as_me:$LINENO: checking for fgrep" >&5
4360echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4361if test "${ac_cv_prog_fgrep+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4363else
4364 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4365 then ac_cv_prog_fgrep='grep -F'
4366 else ac_cv_prog_fgrep='fgrep'
4367 fi
4368fi
4369echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4370echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4371 FGREP=$ac_cv_prog_fgrep
4372
4373
4374test -z "$GREP" && GREP=grep
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
cfbc9945
SE
4394# Check whether --with-gnu-ld or --without-gnu-ld was given.
4395if test "${with_gnu_ld+set}" = set; then
4396 withval="$with_gnu_ld"
4397 test "$withval" = no || with_gnu_ld=yes
4398else
4399 with_gnu_ld=no
c428fa83 4400fi;
cfbc9945
SE
4401ac_prog=ld
4402if test "$GCC" = yes; then
4403 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
4404 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4405echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
cfbc9945
SE
4406 case $host in
4407 *-*-mingw*)
4408 # gcc leaves a trailing carriage return which upsets mingw
4409 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4410 *)
4411 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4412 esac
4413 case $ac_prog in
4414 # Accept absolute paths.
d7040cdb 4415 [\\/]* | ?:[\\/]*)
cfbc9945 4416 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
4417 # Canonicalize the pathname of ld
4418 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4419 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4420 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
4421 done
4422 test -z "$LD" && LD="$ac_prog"
4423 ;;
5bd8253d 4424 "")
cfbc9945
SE
4425 # If it fails, then pretend we aren't using GCC.
4426 ac_prog=ld
5bd8253d
L
4427 ;;
4428 *)
cfbc9945
SE
4429 # If it is relative, then search for the first ld in PATH.
4430 with_gnu_ld=unknown
5bd8253d 4431 ;;
cfbc9945
SE
4432 esac
4433elif test "$with_gnu_ld" = yes; then
4434 echo "$as_me:$LINENO: checking for GNU ld" >&5
4435echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4436else
4437 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4438echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4439fi
4440if test "${lt_cv_path_LD+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443 if test -z "$LD"; then
d7040cdb 4444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 4445 for ac_dir in $PATH; do
d7040cdb 4446 IFS="$lt_save_ifs"
cfbc9945
SE
4447 test -z "$ac_dir" && ac_dir=.
4448 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4449 lt_cv_path_LD="$ac_dir/$ac_prog"
4450 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 4451 # but apparently some variants of GNU ld only accept -v.
cfbc9945 4452 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
4453 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4454 *GNU* | *'with BFD'*)
cfbc9945 4455 test "$with_gnu_ld" != no && break
d7040cdb
SE
4456 ;;
4457 *)
cfbc9945 4458 test "$with_gnu_ld" != yes && break
d7040cdb
SE
4459 ;;
4460 esac
cfbc9945
SE
4461 fi
4462 done
d7040cdb 4463 IFS="$lt_save_ifs"
cfbc9945
SE
4464else
4465 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 4466fi
1ad12f97
NC
4467fi
4468
cfbc9945
SE
4469LD="$lt_cv_path_LD"
4470if test -n "$LD"; then
4471 echo "$as_me:$LINENO: result: $LD" >&5
4472echo "${ECHO_T}$LD" >&6
4473else
4474 echo "$as_me:$LINENO: result: no" >&5
4475echo "${ECHO_T}no" >&6
4476fi
4477test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4478echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4479 { (exit 1); exit 1; }; }
4480echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4481echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4482if test "${lt_cv_prog_gnu_ld+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484else
d7040cdb
SE
4485 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4486case `$LD -v 2>&1 </dev/null` in
4487*GNU* | *'with BFD'*)
cfbc9945 4488 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
4489 ;;
4490*)
cfbc9945 4491 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4492 ;;
4493esac
49c96104 4494fi
cfbc9945
SE
4495echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4496echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4497with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 4498
9e9b66a9 4499
cfbc9945 4500
d7040cdb
SE
4501
4502
4503
4504
4505
4506
4507
4508echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4509echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
cfbc9945
SE
4510if test "${lt_cv_path_NM+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513 if test -n "$NM"; then
4514 # Let the user override the test.
4515 lt_cv_path_NM="$NM"
4516else
d7040cdb
SE
4517 lt_nm_to_check="${ac_tool_prefix}nm"
4518 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4519 lt_nm_to_check="$lt_nm_to_check nm"
4520 fi
4521 for lt_tmp_nm in $lt_nm_to_check; do
4522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4523 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4524 IFS="$lt_save_ifs"
4525 test -z "$ac_dir" && ac_dir=.
4526 tmp_nm="$ac_dir/$lt_tmp_nm"
4527 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4528 # Check to see if the nm accepts a BSD-compat flag.
4529 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4530 # nm: unknown option "B" ignored
4531 # Tru64's nm complains that /dev/null is an invalid object file
4532 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4533 */dev/null* | *'Invalid file or object type'*)
4534 lt_cv_path_NM="$tmp_nm -B"
4535 break
4536 ;;
4537 *)
4538 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4539 */dev/null*)
4540 lt_cv_path_NM="$tmp_nm -p"
4541 break
4542 ;;
4543 *)
4544 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4545 continue # so that we can try to find one that supports BSD flags
4546 ;;
4547 esac
4548 ;;
4549 esac
cfbc9945 4550 fi
d7040cdb
SE
4551 done
4552 IFS="$lt_save_ifs"
cfbc9945 4553 done
d7040cdb 4554 : ${lt_cv_path_NM=no}
cfbc9945 4555fi
a2d91340 4556fi
d7040cdb
SE
4557echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4558echo "${ECHO_T}$lt_cv_path_NM" >&6
4559if test "$lt_cv_path_NM" != "no"; then
4560 NM="$lt_cv_path_NM"
cfbc9945 4561else
d7040cdb
SE
4562 # Didn't find any BSD compatible name lister, look for dumpbin.
4563 if test -n "$ac_tool_prefix"; then
4564 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4565 do
4566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4567set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4568echo "$as_me:$LINENO: checking for $ac_word" >&5
4569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570if test "${ac_cv_prog_DUMPBIN+set}" = set; then
cfbc9945 4571 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4572else
d7040cdb
SE
4573 if test -n "$DUMPBIN"; then
4574 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4575else
4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587done
4588done
5464f5a1 4589
d7040cdb
SE
4590fi
4591fi
4592DUMPBIN=$ac_cv_prog_DUMPBIN
4593if test -n "$DUMPBIN"; then
4594 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4595echo "${ECHO_T}$DUMPBIN" >&6
4596else
4597 echo "$as_me:$LINENO: result: no" >&5
4598echo "${ECHO_T}no" >&6
4599fi
d5fbea21 4600
d7040cdb
SE
4601 test -n "$DUMPBIN" && break
4602 done
4603fi
4604if test -z "$DUMPBIN"; then
4605 ac_ct_DUMPBIN=$DUMPBIN
4606 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4607do
4608 # Extract the first word of "$ac_prog", so it can be a program name with args.
4609set dummy $ac_prog; ac_word=$2
4610echo "$as_me:$LINENO: checking for $ac_word" >&5
4611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4612if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615 if test -n "$ac_ct_DUMPBIN"; then
4616 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4617else
4618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4625 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
cfbc9945 4628 fi
d7040cdb
SE
4629done
4630done
d5fbea21 4631
d7040cdb
SE
4632fi
4633fi
4634ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4635if test -n "$ac_ct_DUMPBIN"; then
4636 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4637echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4638else
4639 echo "$as_me:$LINENO: result: no" >&5
4640echo "${ECHO_T}no" >&6
4641fi
d5fbea21 4642
d7040cdb
SE
4643 test -n "$ac_ct_DUMPBIN" && break
4644done
4645test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
24443139 4646
d7040cdb
SE
4647 DUMPBIN=$ac_ct_DUMPBIN
4648fi
24443139 4649
24443139 4650
d7040cdb
SE
4651 if test "$DUMPBIN" != ":"; then
4652 NM="$DUMPBIN"
cfbc9945 4653 fi
d7040cdb
SE
4654fi
4655test -z "$NM" && NM=nm
a703a6ea 4656
f5385ebf 4657
cfbc9945 4658
24443139
AS
4659
4660
4661
d7040cdb
SE
4662echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4663echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4664if test "${lt_cv_nm_interface+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666else
4667 lt_cv_nm_interface="BSD nm"
4668 echo "int some_variable = 0;" > conftest.$ac_ext
504b7d20 4669 (eval echo "\"\$as_me:4669: $ac_compile\"" >&5)
d7040cdb
SE
4670 (eval "$ac_compile" 2>conftest.err)
4671 cat conftest.err >&5
504b7d20 4672 (eval echo "\"\$as_me:4672: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
4673 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4674 cat conftest.err >&5
504b7d20 4675 (eval echo "\"\$as_me:4675: output\"" >&5)
d7040cdb
SE
4676 cat conftest.out >&5
4677 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4678 lt_cv_nm_interface="MS dumpbin"
4679 fi
4680 rm -f conftest*
cfbc9945 4681fi
d7040cdb
SE
4682echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4683echo "${ECHO_T}$lt_cv_nm_interface" >&6
a703a6ea 4684
d7040cdb
SE
4685echo "$as_me:$LINENO: checking whether ln -s works" >&5
4686echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4687LN_S=$as_ln_s
4688if test "$LN_S" = "ln -s"; then
4689 echo "$as_me:$LINENO: result: yes" >&5
4690echo "${ECHO_T}yes" >&6
4691else
4692 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4693echo "${ECHO_T}no, using $LN_S" >&6
4694fi
252b5132 4695
cfbc9945
SE
4696# find the maximum length of command line arguments
4697echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4698echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4699if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701else
4702 i=0
4703 teststring="ABCD"
5464f5a1 4704
cfbc9945
SE
4705 case $build_os in
4706 msdosdjgpp*)
4707 # On DJGPP, this test can blow up pretty badly due to problems in libc
4708 # (any single argument exceeding 2000 bytes causes a buffer overrun
4709 # during glob expansion). Even if it were fixed, the result of this
4710 # check would be larger than it should be.
4711 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4712 ;;
5464f5a1 4713
d7040cdb
SE
4714 gnu*)
4715 # Under GNU Hurd, this test is not required because there is
4716 # no limit to the length of command line arguments.
4717 # Libtool will interpret -1 as no limit whatsoever
4718 lt_cv_sys_max_cmd_len=-1;
4719 ;;
4720
cfbc9945
SE
4721 cygwin* | mingw*)
4722 # On Win9x/ME, this test blows up -- it succeeds, but takes
4723 # about 5 minutes as the teststring grows exponentially.
4724 # Worse, since 9x/ME are not pre-emptively multitasking,
4725 # you end up with a "frozen" computer, even though with patience
4726 # the test eventually succeeds (with a max line length of 256k).
4727 # Instead, let's just punt: use the minimum linelength reported by
4728 # all of the supported platforms: 8192 (on NT/2K/XP).
4729 lt_cv_sys_max_cmd_len=8192;
4730 ;;
5464f5a1 4731
cfbc9945
SE
4732 amigaos*)
4733 # On AmigaOS with pdksh, this test takes hours, literally.
4734 # So we just punt and use a minimum line length of 8192.
4735 lt_cv_sys_max_cmd_len=8192;
4736 ;;
5464f5a1 4737
cfbc9945
SE
4738 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4739 # This has been around since 386BSD, at least. Likely further.
4740 if test -x /sbin/sysctl; then
4741 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4742 elif test -x /usr/sbin/sysctl; then
4743 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4744 else
d7040cdb 4745 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
4746 fi
4747 # And add a safety zone
4748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4750 ;;
d7040cdb
SE
4751
4752 interix*)
4753 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4754 lt_cv_sys_max_cmd_len=196608
4755 ;;
4756
4757 osf*)
4758 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4759 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4760 # nice to cause kernel panics so lets avoid the loop below.
4761 # First set a reasonable default.
4762 lt_cv_sys_max_cmd_len=16384
4763 #
4764 if test -x /sbin/sysconfig; then
4765 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4766 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4767 esac
4768 fi
4769 ;;
4770 sco3.2v5*)
4771 lt_cv_sys_max_cmd_len=102400
4772 ;;
4773 sysv5* | sco5v6* | sysv4.2uw2*)
4774 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4775 if test -n "$kargmax"; then
4776 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4777 else
4778 lt_cv_sys_max_cmd_len=32768
4779 fi
4780 ;;
4781 *)
79887925
L
4782 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4783 if test -n $lt_cv_sys_max_cmd_len; then
4784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4786 else
4787 # Make teststring a little bigger before we do anything with it.
4788 # a 1K string should be a reasonable start.
4789 for i in 1 2 3 4 5 6 7 8 ; do
4790 teststring=$teststring$teststring
4791 done
4792 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4793 # If test is not a shell built-in, we'll probably end up computing a
4794 # maximum length that is only half of the actual maximum length, but
4795 # we can't tell.
4796 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4797 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4798 test $i != 17 # 1/2 MB should be enough
4799 do
4800 i=`expr $i + 1`
4801 teststring=$teststring$teststring
4802 done
4803 # Only check the string length outside the loop.
4804 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4805 teststring=
4806 # Add a significant safety factor because C++ compilers can tack on
4807 # massive amounts of additional arguments before passing them to the
4808 # linker. It appears as though 1/2 is a usable value.
4809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4810 fi
d7040cdb 4811 ;;
cfbc9945 4812 esac
5464f5a1 4813
252b5132 4814fi
cfbc9945 4815
d7040cdb 4816if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
4817 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4818echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 4819else
cfbc9945
SE
4820 echo "$as_me:$LINENO: result: none" >&5
4821echo "${ECHO_T}none" >&6
5464f5a1 4822fi
d7040cdb 4823max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 4824
cfbc9945 4825
252b5132 4826
cfbc9945 4827
cfbc9945 4828
d7040cdb
SE
4829
4830
4831: ${CP="cp -f"}
4832: ${MV="mv -f"}
4833: ${RM="rm -f"}
4834
4835echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4836echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4837# Try some XSI features
4838xsi_shell=no
4839( _lt_dummy="a/b/c"
4840 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4841 = c,a/b,, ) >/dev/null 2>&1 \
4842 && xsi_shell=yes
4843echo "$as_me:$LINENO: result: $xsi_shell" >&5
4844echo "${ECHO_T}$xsi_shell" >&6
4845
4846
4847echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4848echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4849lt_shell_append=no
4850( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4851 >/dev/null 2>&1 \
4852 && lt_shell_append=yes
4853echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4854echo "${ECHO_T}$lt_shell_append" >&6
4855
4856
4857if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4858 lt_unset=unset
5464f5a1 4859else
d7040cdb 4860 lt_unset=false
5464f5a1 4861fi
252b5132 4862
d7040cdb
SE
4863
4864
4865
4866
4867# test EBCDIC or ASCII
4868case `echo X|tr X '\101'` in
4869 A) # ASCII based system
4870 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4871 lt_SP2NL='tr \040 \012'
4872 lt_NL2SP='tr \015\012 \040\040'
4873 ;;
4874 *) # EBCDIC based system
4875 lt_SP2NL='tr \100 \n'
4876 lt_NL2SP='tr \r\n \100\100'
4877 ;;
4878esac
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4889echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4890if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892else
d7040cdb
SE
4893 lt_cv_ld_reload_flag='-r'
4894fi
4895echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4896echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4897reload_flag=$lt_cv_ld_reload_flag
4898case $reload_flag in
4899"" | " "*) ;;
4900*) reload_flag=" $reload_flag" ;;
4901esac
4902reload_cmds='$LD$reload_flag -o $output$reload_objs'
4903case $host_os in
4904 darwin*)
4905 if test "$GCC" = yes; then
4906 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4907 else
4908 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4909 fi
4910 ;;
4911esac
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4923echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4924if test "${lt_cv_deplibs_check_method+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4926else
4927 lt_cv_file_magic_cmd='$MAGIC_CMD'
4928lt_cv_file_magic_test_file=
4929lt_cv_deplibs_check_method='unknown'
4930# Need to set the preceding variable on all platforms that support
4931# interlibrary dependencies.
4932# 'none' -- dependencies not supported.
4933# `unknown' -- same as none, but documents that we really don't know.
4934# 'pass_all' -- all dependencies passed with no checks.
4935# 'test_compile' -- check by making test program.
4936# 'file_magic [[regex]]' -- check by looking for files in library path
4937# which responds to the $file_magic_cmd with a given extended regex.
4938# If you have `file' or equivalent on your system and you're not sure
4939# whether `pass_all' will *always* work, you probably want this one.
4940
4941case $host_os in
4942aix4* | aix5*)
4943 lt_cv_deplibs_check_method=pass_all
4944 ;;
4945
4946beos*)
4947 lt_cv_deplibs_check_method=pass_all
4948 ;;
4949
4950bsdi[45]*)
4951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4952 lt_cv_file_magic_cmd='/usr/bin/file -L'
4953 lt_cv_file_magic_test_file=/shlib/libc.so
4954 ;;
4955
4956cygwin*)
4957 # func_win32_libid is a shell function defined in ltmain.sh
4958 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4959 lt_cv_file_magic_cmd='func_win32_libid'
4960 ;;
4961
4962mingw* | pw32*)
4963 # Base MSYS/MinGW do not provide the 'file' command needed by
4964 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4965 # unless we find 'file', for example because we are cross-compiling.
4966 if ( file / ) >/dev/null 2>&1; then
4967 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4968 lt_cv_file_magic_cmd='func_win32_libid'
4969 else
4970 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4971 lt_cv_file_magic_cmd='$OBJDUMP -f'
4972 fi
4973 ;;
4974
4975darwin* | rhapsody*)
4976 lt_cv_deplibs_check_method=pass_all
cfbc9945 4977 ;;
d7040cdb
SE
4978
4979freebsd* | dragonfly*)
4980 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4981 case $host_cpu in
4982 i*86 )
4983 # Not sure whether the presence of OpenBSD here was a mistake.
4984 # Let's accept both of them until this is cleared up.
4985 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4986 lt_cv_file_magic_cmd=/usr/bin/file
4987 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4988 ;;
4989 esac
4990 else
4991 lt_cv_deplibs_check_method=pass_all
4992 fi
4993 ;;
4994
4995gnu*)
4996 lt_cv_deplibs_check_method=pass_all
cfbc9945 4997 ;;
d7040cdb
SE
4998
4999hpux10.20* | hpux11*)
5000 lt_cv_file_magic_cmd=/usr/bin/file
5001 case $host_cpu in
5002 ia64*)
5003 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5004 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5005 ;;
5006 hppa*64*)
5007 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]'
5008 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5009 ;;
cfbc9945 5010 *)
d7040cdb
SE
5011 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5012 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5013 ;;
5014 esac
5015 ;;
6be7c12c 5016
d7040cdb
SE
5017interix[3-9]*)
5018 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5020 ;;
cfbc9945 5021
d7040cdb
SE
5022irix5* | irix6* | nonstopux*)
5023 case $LD in
5024 *-32|*"-32 ") libmagic=32-bit;;
5025 *-n32|*"-n32 ") libmagic=N32;;
5026 *-64|*"-64 ") libmagic=64-bit;;
5027 *) libmagic=never-match;;
5028 esac
5029 lt_cv_deplibs_check_method=pass_all
cfbc9945 5030 ;;
cfbc9945 5031
d7040cdb
SE
5032# This must be Linux ELF.
5033linux* | k*bsd*-gnu)
5034 lt_cv_deplibs_check_method=pass_all
5035 ;;
5464f5a1 5036
d7040cdb
SE
5037netbsd*)
5038 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 5040 else
d7040cdb 5041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 5042 fi
d7040cdb
SE
5043 ;;
5044
5045newos6*)
5046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5047 lt_cv_file_magic_cmd=/usr/bin/file
5048 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5049 ;;
5050
5051*nto* | *qnx*)
5052 lt_cv_deplibs_check_method=pass_all
5053 ;;
cfbc9945 5054
d7040cdb
SE
5055openbsd*)
5056 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5058 else
5059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
5060 fi
5061 ;;
d7040cdb
SE
5062
5063osf3* | osf4* | osf5*)
5064 lt_cv_deplibs_check_method=pass_all
5065 ;;
5066
5067rdos*)
5068 lt_cv_deplibs_check_method=pass_all
5069 ;;
5070
5071solaris*)
5072 lt_cv_deplibs_check_method=pass_all
5073 ;;
5074
5075sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5076 lt_cv_deplibs_check_method=pass_all
5077 ;;
5078
5079sysv4 | sysv4.3*)
5080 case $host_vendor in
5081 motorola)
5082 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]'
5083 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5084 ;;
5085 ncr)
5086 lt_cv_deplibs_check_method=pass_all
5087 ;;
5088 sequent)
5089 lt_cv_file_magic_cmd='/bin/file'
5090 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5091 ;;
5092 sni)
5093 lt_cv_file_magic_cmd='/bin/file'
5094 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5095 lt_cv_file_magic_test_file=/lib/libc.so
5096 ;;
5097 siemens)
5098 lt_cv_deplibs_check_method=pass_all
5099 ;;
5100 pc)
5101 lt_cv_deplibs_check_method=pass_all
5102 ;;
5103 esac
5104 ;;
5105
5106tpf*)
5107 lt_cv_deplibs_check_method=pass_all
5108 ;;
cfbc9945
SE
5109esac
5110
d7040cdb
SE
5111fi
5112echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5113echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5114file_magic_cmd=$lt_cv_file_magic_cmd
5115deplibs_check_method=$lt_cv_deplibs_check_method
5116test -z "$deplibs_check_method" && deplibs_check_method=unknown
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
cfbc9945 5129if test -n "$ac_tool_prefix"; then
d7040cdb
SE
5130 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5131set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
5132echo "$as_me:$LINENO: checking for $ac_word" >&5
5133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5134if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136else
d7040cdb
SE
5137 if test -n "$AR"; then
5138 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
5139else
5140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH
5142do
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5147 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5150 fi
5151done
5152done
5153
5154fi
5155fi
d7040cdb
SE
5156AR=$ac_cv_prog_AR
5157if test -n "$AR"; then
5158 echo "$as_me:$LINENO: result: $AR" >&5
5159echo "${ECHO_T}$AR" >&6
5464f5a1
NN
5160else
5161 echo "$as_me:$LINENO: result: no" >&5
5162echo "${ECHO_T}no" >&6
5163fi
5164
5464f5a1 5165fi
d7040cdb
SE
5166if test -z "$ac_cv_prog_AR"; then
5167 ac_ct_AR=$AR
5168 # Extract the first word of "ar", so it can be a program name with args.
5169set dummy ar; ac_word=$2
5464f5a1
NN
5170echo "$as_me:$LINENO: checking for $ac_word" >&5
5171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5172if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 5173 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5174else
d7040cdb
SE
5175 if test -n "$ac_ct_AR"; then
5176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 5177else
5464f5a1
NN
5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5185 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5188 fi
5189done
5190done
5191
d7040cdb 5192 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
5193fi
5194fi
d7040cdb
SE
5195ac_ct_AR=$ac_cv_prog_ac_ct_AR
5196if test -n "$ac_ct_AR"; then
5197 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5198echo "${ECHO_T}$ac_ct_AR" >&6
5199else
5200 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
5201echo "${ECHO_T}no" >&6
5202fi
5203
d7040cdb 5204 AR=$ac_ct_AR
cfbc9945 5205else
d7040cdb 5206 AR="$ac_cv_prog_AR"
5464f5a1 5207fi
cfbc9945 5208
d7040cdb
SE
5209test -z "$AR" && AR=ar
5210test -z "$AR_FLAGS" && AR_FLAGS=cru
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
cfbc9945
SE
5222if test -n "$ac_tool_prefix"; then
5223 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5224set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
5225echo "$as_me:$LINENO: checking for $ac_word" >&5
5226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5227if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
cfbc9945
SE
5230 if test -n "$STRIP"; then
5231 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
5232else
5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234for as_dir in $PATH
5235do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 5240 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244done
5245done
5246
5247fi
5248fi
cfbc9945
SE
5249STRIP=$ac_cv_prog_STRIP
5250if test -n "$STRIP"; then
5251 echo "$as_me:$LINENO: result: $STRIP" >&5
5252echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
5253else
5254 echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6
5256fi
5257
252b5132 5258fi
cfbc9945
SE
5259if test -z "$ac_cv_prog_STRIP"; then
5260 ac_ct_STRIP=$STRIP
5261 # Extract the first word of "strip", so it can be a program name with args.
5262set dummy strip; ac_word=$2
5464f5a1
NN
5263echo "$as_me:$LINENO: checking for $ac_word" >&5
5264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5265if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267else
cfbc9945
SE
5268 if test -n "$ac_ct_STRIP"; then
5269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
5270else
5271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272for as_dir in $PATH
5273do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 5278 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
5279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282done
5283done
5284
cfbc9945 5285 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
5286fi
5287fi
cfbc9945
SE
5288ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5289if test -n "$ac_ct_STRIP"; then
5290 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5291echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
5292else
5293 echo "$as_me:$LINENO: result: no" >&5
5294echo "${ECHO_T}no" >&6
5295fi
5296
cfbc9945
SE
5297 STRIP=$ac_ct_STRIP
5298else
5299 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
5300fi
5301
d7040cdb 5302test -z "$STRIP" && STRIP=:
5464f5a1 5303
cfbc9945
SE
5304
5305
cfbc9945 5306
cfbc9945
SE
5307
5308
d7040cdb
SE
5309if test -n "$ac_tool_prefix"; then
5310 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5311set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5312echo "$as_me:$LINENO: checking for $ac_word" >&5
5313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314if test "${ac_cv_prog_RANLIB+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 5316else
d7040cdb
SE
5317 if test -n "$RANLIB"; then
5318 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
cfbc9945 5330 fi
d7040cdb
SE
5331done
5332done
cfbc9945 5333
d7040cdb
SE
5334fi
5335fi
5336RANLIB=$ac_cv_prog_RANLIB
5337if test -n "$RANLIB"; then
5338 echo "$as_me:$LINENO: result: $RANLIB" >&5
5339echo "${ECHO_T}$RANLIB" >&6
5340else
5341 echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
5343fi
cfbc9945 5344
d7040cdb
SE
5345fi
5346if test -z "$ac_cv_prog_RANLIB"; then
5347 ac_ct_RANLIB=$RANLIB
5348 # Extract the first word of "ranlib", so it can be a program name with args.
5349set dummy ranlib; ac_word=$2
5350echo "$as_me:$LINENO: checking for $ac_word" >&5
5351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5352if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 if test -n "$ac_ct_RANLIB"; then
5356 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5357else
5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_ac_ct_RANLIB="ranlib"
5366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
cfbc9945 5368 fi
d7040cdb
SE
5369done
5370done
cfbc9945 5371
d7040cdb
SE
5372 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5373fi
5374fi
5375ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5376if test -n "$ac_ct_RANLIB"; then
5377 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5378echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 5379else
d7040cdb
SE
5380 echo "$as_me:$LINENO: result: no" >&5
5381echo "${ECHO_T}no" >&6
5382fi
5464f5a1 5383
d7040cdb
SE
5384 RANLIB=$ac_ct_RANLIB
5385else
5386 RANLIB="$ac_cv_prog_RANLIB"
5387fi
5464f5a1 5388
d7040cdb 5389test -z "$RANLIB" && RANLIB=:
5464f5a1 5390
5464f5a1 5391
5464f5a1 5392
cfbc9945 5393
cfbc9945 5394
d7040cdb
SE
5395
5396# Determine commands to create old-style static archives.
5397old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5398old_postinstall_cmds='chmod 644 $oldlib'
5399old_postuninstall_cmds=
5400
5401if test -n "$RANLIB"; then
5402 case $host_os in
5403 openbsd*)
5404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5405 ;;
5406 *)
5407 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5408 ;;
5409 esac
5410 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 5411fi
cfbc9945
SE
5412
5413
cfbc9945
SE
5414
5415
cfbc9945 5416
cfbc9945 5417
cfbc9945 5418
cfbc9945 5419
cfbc9945
SE
5420
5421
cfbc9945 5422
cfbc9945 5423
cfbc9945
SE
5424
5425
5426
5427
5428
5429
5430
5464f5a1 5431
5464f5a1 5432
cfbc9945
SE
5433
5434
5435
5464f5a1 5436
5464f5a1 5437
cfbc9945
SE
5438
5439
5440
5464f5a1 5441
cfbc9945
SE
5442
5443
5444
5445
d7040cdb
SE
5446# If no C compiler was specified, use CC.
5447LTCC=${LTCC-"$CC"}
cfbc9945 5448
d7040cdb
SE
5449# If no C compiler flags were specified, use CFLAGS.
5450LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 5451
d7040cdb
SE
5452# Allow CC to be a program name with arguments.
5453compiler=$CC
cfbc9945 5454
cfbc9945 5455
d7040cdb
SE
5456# Check for command to grab the raw symbol name followed by C symbol from nm.
5457echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5458echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5459if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5464f5a1 5462
d7040cdb
SE
5463# These are sane defaults that work on at least a few old systems.
5464# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 5465
d7040cdb
SE
5466# Character class describing NM global symbol codes.
5467symcode='[BCDEGRST]'
5468
5469# Regexp to match symbols that can be accessed directly from C.
5470sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5471
5472# Define system-specific variables.
5473case $host_os in
5474aix*)
5475 symcode='[BCDT]'
5476 ;;
5477cygwin* | mingw* | pw32*)
5478 symcode='[ABCDGISTW]'
5479 ;;
5480hpux*)
5481 if test "$host_cpu" = ia64; then
5482 symcode='[ABCDEGRST]'
5483 fi
5484 ;;
5485irix* | nonstopux*)
5486 symcode='[BCDEGRST]'
5487 ;;
5488osf*)
5489 symcode='[BCDEGQRST]'
5490 ;;
5491solaris*)
5492 symcode='[BDRT]'
5493 ;;
5494sco3.2v5*)
5495 symcode='[DT]'
5496 ;;
5497sysv4.2uw2*)
5498 symcode='[DT]'
5499 ;;
5500sysv5* | sco5v6* | unixware* | OpenUNIX*)
5501 symcode='[ABDT]'
5502 ;;
5503sysv4)
5504 symcode='[DFNSTU]'
5505 ;;
cfbc9945 5506esac
5464f5a1 5507
d7040cdb
SE
5508# If we're using GNU nm, then use its standard symbol codes.
5509case `$NM -V 2>&1` in
5510*GNU* | *'with BFD'*)
5511 symcode='[ABCDGIRSTW]' ;;
5512esac
5464f5a1 5513
d7040cdb
SE
5514# Transform an extracted symbol line into a proper C declaration.
5515# Some systems (esp. on ia64) link data and code symbols differently,
5516# so use this general approach.
5517lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 5518
d7040cdb
SE
5519# Transform an extracted symbol line into symbol name and symbol address
5520lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5464f5a1 5521
d7040cdb
SE
5522# Handle CRLF in mingw tool chain
5523opt_cr=
5524case $build_os in
5525mingw*)
5526 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5527 ;;
5528esac
5464f5a1 5529
d7040cdb
SE
5530# Try without a prefix underscore, then with it.
5531for ac_symprfx in "" "_"; do
5532
5533 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5534 symxfrm="\\1 $ac_symprfx\\2 \\2"
5535
5536 # Write the raw and C identifiers.
5537 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5538 # Fake it for dumpbin and say T for any non-static function
5539 # and D for any global variable.
5540 # Also find C++ and __fastcall symbols from MSVC++,
5541 # which start with @ or ?.
5542 lt_cv_sys_global_symbol_pipe="$AWK '"\
5543" {last_section=section; section=\$ 3};"\
5544" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5545" \$ 0!~/External *\|/{next};"\
5546" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5547" {if(hide[section]) next};"\
5548" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5549" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5550" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5551" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5552" ' prfx=^$ac_symprfx"
5553 else
5554 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5555 fi
cfbc9945 5556
d7040cdb
SE
5557 # Check to see that the pipe works correctly.
5558 pipe_works=no
cfbc9945 5559
d7040cdb
SE
5560 rm -f conftest*
5561 cat > conftest.$ac_ext <<_LT_EOF
5562#ifdef __cplusplus
5563extern "C" {
5564#endif
5565char nm_test_var;
5566void nm_test_func(void);
5567void nm_test_func(void){}
5568#ifdef __cplusplus
5569}
5570#endif
5571int main(){nm_test_var='a';nm_test_func();return(0);}
5572_LT_EOF
cfbc9945 5573
d7040cdb
SE
5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575 (eval $ac_compile) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; then
5579 # Now try to grab the symbols.
5580 nlist=conftest.nm
5581 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5582 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && test -s "$nlist"; then
5586 # Try sorting and uniquifying the output.
5587 if sort "$nlist" | uniq > "$nlist"T; then
5588 mv -f "$nlist"T "$nlist"
5589 else
5590 rm -f "$nlist"T
5591 fi
cfbc9945 5592
d7040cdb
SE
5593 # Make sure that we snagged all the symbols we need.
5594 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5595 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5596 cat <<_LT_EOF > conftest.$ac_ext
5597#ifdef __cplusplus
5598extern "C" {
5599#endif
cfbc9945 5600
d7040cdb
SE
5601_LT_EOF
5602 # Now generate the symbol file.
5603 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 5604
d7040cdb 5605 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 5606
d7040cdb
SE
5607/* The mapping between symbol names and symbols. */
5608const struct {
5609 const char *name;
5610 void *address;
5611}
5612lt__PROGRAM__LTX_preloaded_symbols[] =
5613{
5614 { "@PROGRAM@", (void *) 0 },
5615_LT_EOF
5616 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5617 cat <<\_LT_EOF >> conftest.$ac_ext
5618 {0, (void *) 0}
5619};
5620
5621/* This works around a problem in FreeBSD linker */
5622#ifdef FREEBSD_WORKAROUND
5623static const void *lt_preloaded_setup() {
5624 return lt__PROGRAM__LTX_preloaded_symbols;
5625}
5626#endif
cfbc9945 5627
d7040cdb
SE
5628#ifdef __cplusplus
5629}
5630#endif
5631_LT_EOF
5632 # Now try linking the two files.
5633 mv conftest.$ac_objext conftstm.$ac_objext
5634 lt_save_LIBS="$LIBS"
5635 lt_save_CFLAGS="$CFLAGS"
5636 LIBS="conftstm.$ac_objext"
5637 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5643 pipe_works=yes
5644 fi
5645 LIBS="$lt_save_LIBS"
5646 CFLAGS="$lt_save_CFLAGS"
5647 else
5648 echo "cannot find nm_test_func in $nlist" >&5
5649 fi
5650 else
5651 echo "cannot find nm_test_var in $nlist" >&5
5652 fi
5653 else
5654 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5655 fi
5656 else
5657 echo "$progname: failed program was:" >&5
5658 cat conftest.$ac_ext >&5
5659 fi
5660 rm -f conftest* conftst*
cfbc9945 5661
d7040cdb
SE
5662 # Do not use the global_symbol_pipe unless it works.
5663 if test "$pipe_works" = yes; then
5664 break
5665 else
5666 lt_cv_sys_global_symbol_pipe=
5667 fi
5668done
cfbc9945 5669
252b5132 5670fi
5464f5a1 5671
d7040cdb
SE
5672if test -z "$lt_cv_sys_global_symbol_pipe"; then
5673 lt_cv_sys_global_symbol_to_cdecl=
5674fi
5675if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5676 echo "$as_me:$LINENO: result: failed" >&5
5677echo "${ECHO_T}failed" >&6
b3baf5d0 5678else
d7040cdb
SE
5679 echo "$as_me:$LINENO: result: ok" >&5
5680echo "${ECHO_T}ok" >&6
5681fi
5464f5a1 5682
cfbc9945 5683
b3baf5d0 5684
cfbc9945
SE
5685
5686
5687
5688
5464f5a1 5689
4a2a2686
HPN
5690
5691
5692
cfbc9945
SE
5693
5694
cfbc9945 5695
cfbc9945 5696
9d7cbccd 5697
20e95c23 5698
d7040cdb
SE
5699# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5700if test "${enable_libtool_lock+set}" = set; then
5701 enableval="$enable_libtool_lock"
20e95c23 5702
d7040cdb
SE
5703fi;
5704test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 5705
d7040cdb
SE
5706# Some flags need to be propagated to the compiler or linker for good
5707# libtool support.
5708case $host in
5709ia64-*-hpux*)
5710 # Find out which ABI we are using.
5711 echo 'int i;' > conftest.$ac_ext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; then
5717 case `/usr/bin/file conftest.$ac_objext` in
5718 *ELF-32*)
5719 HPUX_IA64_MODE="32"
5720 ;;
5721 *ELF-64*)
5722 HPUX_IA64_MODE="64"
5723 ;;
20e95c23 5724 esac
d7040cdb
SE
5725 fi
5726 rm -rf conftest*
5727 ;;
5728*-*-irix6*)
5729 # Find out which ABI we are using.
504b7d20 5730 echo '#line 5730 "configure"' > conftest.$ac_ext
d7040cdb
SE
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; then
5736 if test "$lt_cv_prog_gnu_ld" = yes; then
5737 case `/usr/bin/file conftest.$ac_objext` in
5738 *32-bit*)
5739 LD="${LD-ld} -melf32bsmip"
5740 ;;
5741 *N32*)
5742 LD="${LD-ld} -melf32bmipn32"
5743 ;;
5744 *64-bit*)
5745 LD="${LD-ld} -melf64bmip"
5746 ;;
5747 esac
20e95c23 5748 else
d7040cdb
SE
5749 case `/usr/bin/file conftest.$ac_objext` in
5750 *32-bit*)
5751 LD="${LD-ld} -32"
5752 ;;
5753 *N32*)
5754 LD="${LD-ld} -n32"
5755 ;;
5756 *64-bit*)
5757 LD="${LD-ld} -64"
5758 ;;
20e95c23
DJ
5759 esac
5760 fi
d7040cdb
SE
5761 fi
5762 rm -rf conftest*
5763 ;;
20e95c23 5764
d7040cdb
SE
5765x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5766s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5767 # Find out which ABI we are using.
5768 echo 'int i;' > conftest.$ac_ext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; then
5774 case `/usr/bin/file conftest.o` in
5775 *32-bit*)
5776 case $host in
5777 x86_64-*kfreebsd*-gnu)
5778 LD="${LD-ld} -m elf_i386_fbsd"
5779 ;;
5780 x86_64-*linux*)
5781 LD="${LD-ld} -m elf_i386"
5782 ;;
5783 ppc64-*linux*|powerpc64-*linux*)
5784 LD="${LD-ld} -m elf32ppclinux"
5785 ;;
5786 s390x-*linux*)
5787 LD="${LD-ld} -m elf_s390"
5788 ;;
5789 sparc64-*linux*)
5790 LD="${LD-ld} -m elf32_sparc"
5791 ;;
5792 esac
5793 ;;
5794 *64-bit*)
5795 case $host in
5796 x86_64-*kfreebsd*-gnu)
5797 LD="${LD-ld} -m elf_x86_64_fbsd"
5798 ;;
5799 x86_64-*linux*)
5800 LD="${LD-ld} -m elf_x86_64"
5801 ;;
5802 ppc*-*linux*|powerpc*-*linux*)
5803 LD="${LD-ld} -m elf64ppc"
5804 ;;
5805 s390*-*linux*|s390*-*tpf*)
5806 LD="${LD-ld} -m elf64_s390"
5807 ;;
5808 sparc*-*linux*)
5809 LD="${LD-ld} -m elf64_sparc"
5810 ;;
5811 esac
5812 ;;
20e95c23
DJ
5813 esac
5814 fi
d7040cdb
SE
5815 rm -rf conftest*
5816 ;;
20e95c23 5817
d7040cdb
SE
5818*-*-sco3.2v5*)
5819 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5820 SAVE_CFLAGS="$CFLAGS"
5821 CFLAGS="$CFLAGS -belf"
5822 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5823echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5824if test "${lt_cv_cc_needs_belf+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5826else
d7040cdb
SE
5827 ac_ext=c
5828ac_cpp='$CPP $CPPFLAGS'
5829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 5832
d7040cdb
SE
5833 cat >conftest.$ac_ext <<_ACEOF
5834/* confdefs.h. */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h. */
20e95c23 5839
d7040cdb
SE
5840int
5841main ()
5842{
20e95c23 5843
d7040cdb
SE
5844 ;
5845 return 0;
5846}
5847_ACEOF
5848rm -f conftest.$ac_objext conftest$ac_exeext
5849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850 (eval $ac_link) 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try='test -z "$ac_c_werror_flag"
5858 || test ! -s conftest.err'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 (eval $ac_try) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; } &&
5864 { ac_try='test -s conftest$ac_exeext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 lt_cv_cc_needs_belf=yes
5871else
5872 echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
5875lt_cv_cc_needs_belf=no
5876fi
5877rm -f conftest.err conftest.$ac_objext \
5878 conftest$ac_exeext conftest.$ac_ext
5879 ac_ext=c
5880ac_cpp='$CPP $CPPFLAGS'
5881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883ac_compiler_gnu=$ac_cv_c_compiler_gnu
5884
5885fi
5886echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5887echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5888 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5889 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5890 CFLAGS="$SAVE_CFLAGS"
5891 fi
5892 ;;
5893sparc*-*solaris*)
5894 # Find out which ABI we are using.
5895 echo 'int i;' > conftest.$ac_ext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897 (eval $ac_compile) 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; then
5901 case `/usr/bin/file conftest.o` in
5902 *64-bit*)
5903 case $lt_cv_prog_gnu_ld in
5904 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5905 *) LD="${LD-ld} -64" ;;
5906 esac
5907 ;;
5908 esac
5909 fi
5910 rm -rf conftest*
5911 ;;
5912esac
5913
5914need_locks="$enable_libtool_lock"
5915
5916ac_ext=c
5917ac_cpp='$CPP $CPPFLAGS'
5918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5920ac_compiler_gnu=$ac_cv_c_compiler_gnu
5921echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5922echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5923# On Suns, sometimes $CPP names a directory.
5924if test -n "$CPP" && test -d "$CPP"; then
5925 CPP=
5926fi
5927if test -z "$CPP"; then
5928 if test "${ac_cv_prog_CPP+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930else
5931 # Double quotes because CPP needs to be expanded
5932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5933 do
5934 ac_preproc_ok=false
5935for ac_c_preproc_warn_flag in '' yes
5936do
5937 # Use a header file that comes with gcc, so configuring glibc
5938 # with a fresh cross-compiler works.
5939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5940 # <limits.h> exists even on freestanding compilers.
5941 # On the NeXT, cc -E runs the code through the compiler's parser,
5942 # not just through cpp. "Syntax error" is here to catch this case.
5943 cat >conftest.$ac_ext <<_ACEOF
5944/* confdefs.h. */
5945_ACEOF
5946cat confdefs.h >>conftest.$ac_ext
5947cat >>conftest.$ac_ext <<_ACEOF
5948/* end confdefs.h. */
5949#ifdef __STDC__
5950# include <limits.h>
5951#else
5952# include <assert.h>
5953#endif
5954 Syntax error
5955_ACEOF
5956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5958 ac_status=$?
5959 grep -v '^ *+' conftest.er1 >conftest.err
5960 rm -f conftest.er1
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } >/dev/null; then
5964 if test -s conftest.err; then
5965 ac_cpp_err=$ac_c_preproc_warn_flag
5966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5967 else
5968 ac_cpp_err=
5969 fi
5970else
5971 ac_cpp_err=yes
5972fi
5973if test -z "$ac_cpp_err"; then
5974 :
5975else
5976 echo "$as_me: failed program was:" >&5
5977sed 's/^/| /' conftest.$ac_ext >&5
5978
5979 # Broken: fails on valid input.
5980continue
5981fi
5982rm -f conftest.err conftest.$ac_ext
5983
5984 # OK, works on sane cases. Now check whether non-existent headers
5985 # can be detected and how.
5986 cat >conftest.$ac_ext <<_ACEOF
5987/* confdefs.h. */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h. */
5992#include <ac_nonexistent.h>
5993_ACEOF
5994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5996 ac_status=$?
5997 grep -v '^ *+' conftest.er1 >conftest.err
5998 rm -f conftest.er1
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } >/dev/null; then
6002 if test -s conftest.err; then
6003 ac_cpp_err=$ac_c_preproc_warn_flag
6004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6005 else
6006 ac_cpp_err=
6007 fi
6008else
6009 ac_cpp_err=yes
6010fi
6011if test -z "$ac_cpp_err"; then
6012 # Broken: success on invalid input.
6013continue
6014else
6015 echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018 # Passes both tests.
6019ac_preproc_ok=:
6020break
6021fi
6022rm -f conftest.err conftest.$ac_ext
6023
6024done
6025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6026rm -f conftest.err conftest.$ac_ext
6027if $ac_preproc_ok; then
6028 break
6029fi
6030
6031 done
6032 ac_cv_prog_CPP=$CPP
6033
6034fi
6035 CPP=$ac_cv_prog_CPP
6036else
6037 ac_cv_prog_CPP=$CPP
6038fi
6039echo "$as_me:$LINENO: result: $CPP" >&5
6040echo "${ECHO_T}$CPP" >&6
6041ac_preproc_ok=false
6042for ac_c_preproc_warn_flag in '' yes
6043do
6044 # Use a header file that comes with gcc, so configuring glibc
6045 # with a fresh cross-compiler works.
6046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6047 # <limits.h> exists even on freestanding compilers.
6048 # On the NeXT, cc -E runs the code through the compiler's parser,
6049 # not just through cpp. "Syntax error" is here to catch this case.
6050 cat >conftest.$ac_ext <<_ACEOF
6051/* confdefs.h. */
6052_ACEOF
6053cat confdefs.h >>conftest.$ac_ext
6054cat >>conftest.$ac_ext <<_ACEOF
6055/* end confdefs.h. */
6056#ifdef __STDC__
6057# include <limits.h>
6058#else
6059# include <assert.h>
6060#endif
6061 Syntax error
6062_ACEOF
6063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } >/dev/null; then
6071 if test -s conftest.err; then
6072 ac_cpp_err=$ac_c_preproc_warn_flag
6073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6074 else
6075 ac_cpp_err=
6076 fi
6077else
6078 ac_cpp_err=yes
6079fi
6080if test -z "$ac_cpp_err"; then
6081 :
6082else
6083 echo "$as_me: failed program was:" >&5
6084sed 's/^/| /' conftest.$ac_ext >&5
6085
6086 # Broken: fails on valid input.
6087continue
6088fi
6089rm -f conftest.err conftest.$ac_ext
6090
6091 # OK, works on sane cases. Now check whether non-existent headers
6092 # can be detected and how.
6093 cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h. */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h. */
6099#include <ac_nonexistent.h>
6100_ACEOF
6101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6103 ac_status=$?
6104 grep -v '^ *+' conftest.er1 >conftest.err
6105 rm -f conftest.er1
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } >/dev/null; then
6109 if test -s conftest.err; then
6110 ac_cpp_err=$ac_c_preproc_warn_flag
6111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6112 else
6113 ac_cpp_err=
6114 fi
6115else
6116 ac_cpp_err=yes
6117fi
6118if test -z "$ac_cpp_err"; then
6119 # Broken: success on invalid input.
6120continue
6121else
6122 echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 # Passes both tests.
6126ac_preproc_ok=:
6127break
6128fi
6129rm -f conftest.err conftest.$ac_ext
6130
6131done
6132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6133rm -f conftest.err conftest.$ac_ext
6134if $ac_preproc_ok; then
6135 :
6136else
6137 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6138See \`config.log' for more details." >&5
6139echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6140See \`config.log' for more details." >&2;}
6141 { (exit 1); exit 1; }; }
6142fi
6143
6144ac_ext=c
6145ac_cpp='$CPP $CPPFLAGS'
6146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149
6150
6151echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6152echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6153if test "${ac_cv_header_stdc+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156 cat >conftest.$ac_ext <<_ACEOF
6157/* confdefs.h. */
6158_ACEOF
6159cat confdefs.h >>conftest.$ac_ext
6160cat >>conftest.$ac_ext <<_ACEOF
6161/* end confdefs.h. */
6162#include <stdlib.h>
6163#include <stdarg.h>
6164#include <string.h>
6165#include <float.h>
6166
6167int
6168main ()
6169{
6170
6171 ;
6172 return 0;
6173}
6174_ACEOF
6175rm -f conftest.$ac_objext
6176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6177 (eval $ac_compile) 2>conftest.er1
6178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } &&
6184 { ac_try='test -z "$ac_c_werror_flag"
6185 || test ! -s conftest.err'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 (eval $ac_try) 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; } &&
6191 { ac_try='test -s conftest.$ac_objext'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 (eval $ac_try) 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6197 ac_cv_header_stdc=yes
6198else
6199 echo "$as_me: failed program was:" >&5
6200sed 's/^/| /' conftest.$ac_ext >&5
6201
6202ac_cv_header_stdc=no
6203fi
6204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6205
6206if test $ac_cv_header_stdc = yes; then
6207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6208 cat >conftest.$ac_ext <<_ACEOF
6209/* confdefs.h. */
6210_ACEOF
6211cat confdefs.h >>conftest.$ac_ext
6212cat >>conftest.$ac_ext <<_ACEOF
6213/* end confdefs.h. */
6214#include <string.h>
6215
6216_ACEOF
6217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6218 $EGREP "memchr" >/dev/null 2>&1; then
6219 :
6220else
6221 ac_cv_header_stdc=no
6222fi
6223rm -f conftest*
6224
6225fi
6226
6227if test $ac_cv_header_stdc = yes; then
6228 # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
6236
6237_ACEOF
6238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6250 if test "$cross_compiling" = yes; then
6251 :
6252else
6253 cat >conftest.$ac_ext <<_ACEOF
6254/* confdefs.h. */
6255_ACEOF
6256cat confdefs.h >>conftest.$ac_ext
6257cat >>conftest.$ac_ext <<_ACEOF
6258/* end confdefs.h. */
6259#include <ctype.h>
6260#if ((' ' & 0x0FF) == 0x020)
6261# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6262# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6263#else
6264# define ISLOWER(c) \
6265 (('a' <= (c) && (c) <= 'i') \
6266 || ('j' <= (c) && (c) <= 'r') \
6267 || ('s' <= (c) && (c) <= 'z'))
6268# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6269#endif
6270
6271#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6272int
6273main ()
6274{
6275 int i;
6276 for (i = 0; i < 256; i++)
6277 if (XOR (islower (i), ISLOWER (i))
6278 || toupper (i) != TOUPPER (i))
6279 exit(2);
6280 exit (0);
6281}
6282_ACEOF
6283rm -f conftest$ac_exeext
6284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 :
6295else
6296 echo "$as_me: program exited with status $ac_status" >&5
6297echo "$as_me: failed program was:" >&5
6298sed 's/^/| /' conftest.$ac_ext >&5
6299
6300( exit $ac_status )
6301ac_cv_header_stdc=no
6302fi
6303rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6304fi
6305fi
6306fi
6307echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6308echo "${ECHO_T}$ac_cv_header_stdc" >&6
6309if test $ac_cv_header_stdc = yes; then
6310
6311cat >>confdefs.h <<\_ACEOF
6312#define STDC_HEADERS 1
6313_ACEOF
6314
6315fi
6316
6317# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6328 inttypes.h stdint.h unistd.h
6329do
6330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6331echo "$as_me:$LINENO: checking for $ac_header" >&5
6332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6333if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335else
6336 cat >conftest.$ac_ext <<_ACEOF
6337/* confdefs.h. */
6338_ACEOF
6339cat confdefs.h >>conftest.$ac_ext
6340cat >>conftest.$ac_ext <<_ACEOF
6341/* end confdefs.h. */
6342$ac_includes_default
6343
6344#include <$ac_header>
6345_ACEOF
6346rm -f conftest.$ac_objext
6347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -z "$ac_c_werror_flag"
6356 || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try='test -s conftest.$ac_objext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 (eval $ac_try) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 eval "$as_ac_Header=yes"
6369else
6370 echo "$as_me: failed program was:" >&5
6371sed 's/^/| /' conftest.$ac_ext >&5
6372
6373eval "$as_ac_Header=no"
6374fi
6375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6376fi
6377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6379if test `eval echo '${'$as_ac_Header'}'` = yes; then
6380 cat >>confdefs.h <<_ACEOF
6381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6382_ACEOF
6383
6384fi
6385
6386done
6387
6388
6389
6390for ac_header in dlfcn.h
6391do
6392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6393echo "$as_me:$LINENO: checking for $ac_header" >&5
6394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6395if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397else
6398 cat >conftest.$ac_ext <<_ACEOF
6399/* confdefs.h. */
6400_ACEOF
6401cat confdefs.h >>conftest.$ac_ext
6402cat >>conftest.$ac_ext <<_ACEOF
6403/* end confdefs.h. */
6404$ac_includes_default
6405
6406#include <$ac_header>
6407_ACEOF
6408rm -f conftest.$ac_objext
6409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -z "$ac_c_werror_flag"
6418 || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 eval "$as_ac_Header=yes"
6431else
6432 echo "$as_me: failed program was:" >&5
6433sed 's/^/| /' conftest.$ac_ext >&5
6434
6435eval "$as_ac_Header=no"
6436fi
6437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438fi
6439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6441if test `eval echo '${'$as_ac_Header'}'` = yes; then
6442 cat >>confdefs.h <<_ACEOF
6443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6444_ACEOF
6445
6446fi
6447
6448done
6449
6450
6451
6452# This can be used to rebuild libtool when needed
6453LIBTOOL_DEPS="$ltmain"
6454
6455# Always use our own libtool.
6456LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482test -z "$LN_S" && LN_S="ln -s"
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497if test -n "${ZSH_VERSION+set}" ; then
6498 setopt NO_GLOB_SUBST
6499fi
6500
6501echo "$as_me:$LINENO: checking for objdir" >&5
6502echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6503if test "${lt_cv_objdir+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506 rm -f .libs 2>/dev/null
6507mkdir .libs 2>/dev/null
6508if test -d .libs; then
6509 lt_cv_objdir=.libs
6510else
6511 # MS-DOS does not allow filenames that begin with a dot.
6512 lt_cv_objdir=_libs
6513fi
6514rmdir .libs 2>/dev/null
6515fi
6516echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6517echo "${ECHO_T}$lt_cv_objdir" >&6
6518objdir=$lt_cv_objdir
6519
6520
6521
6522
6523
6524cat >>confdefs.h <<_ACEOF
6525#define LT_OBJDIR "$lt_cv_objdir/"
6526_ACEOF
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544case $host_os in
6545aix3*)
6546 # AIX sometimes has problems with the GCC collect2 program. For some
6547 # reason, if we set the COLLECT_NAMES environment variable, the problems
6548 # vanish in a puff of smoke.
6549 if test "X${COLLECT_NAMES+set}" != Xset; then
6550 COLLECT_NAMES=
6551 export COLLECT_NAMES
6552 fi
6553 ;;
6554esac
6555
6556# Sed substitution that helps us do robust quoting. It backslashifies
6557# metacharacters that are still active within double-quoted strings.
6558sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6559
6560# Same as above, but do not quote variable references.
6561double_quote_subst='s/\(["`\\]\)/\\\1/g'
6562
6563# Sed substitution to delay expansion of an escaped shell variable in a
6564# double_quote_subst'ed string.
6565delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6566
6567# Sed substitution to delay expansion of an escaped single quote.
6568delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6569
6570# Sed substitution to avoid accidental globbing in evaled expressions
6571no_glob_subst='s/\*/\\\*/g'
6572
6573# Global variables:
6574ofile=libtool
6575can_build_shared=yes
6576
6577# All known linkers require a `.a' archive for static linking (except MSVC,
6578# which needs '.lib').
6579libext=a
6580
6581with_gnu_ld="$lt_cv_prog_gnu_ld"
6582
6583old_CC="$CC"
6584old_CFLAGS="$CFLAGS"
6585
6586# Set sane defaults for various variables
6587test -z "$CC" && CC=cc
6588test -z "$LTCC" && LTCC=$CC
6589test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6590test -z "$LD" && LD=ld
6591test -z "$ac_objext" && ac_objext=o
6592
6593for cc_temp in $compiler""; do
6594 case $cc_temp in
6595 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6596 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6597 \-*) ;;
6598 *) break;;
6599 esac
6600done
6601cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6602
6603
6604# Only perform the check for file, if the check method requires it
6605test -z "$MAGIC_CMD" && MAGIC_CMD=file
6606case $deplibs_check_method in
6607file_magic*)
6608 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6609 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6610echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6611if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
6614 case $MAGIC_CMD in
6615[\\/*] | ?:[\\/]*)
6616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6617 ;;
6618*)
6619 lt_save_MAGIC_CMD="$MAGIC_CMD"
6620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6621 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6622 for ac_dir in $ac_dummy; do
6623 IFS="$lt_save_ifs"
6624 test -z "$ac_dir" && ac_dir=.
6625 if test -f $ac_dir/${ac_tool_prefix}file; then
6626 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6627 if test -n "$file_magic_test_file"; then
6628 case $deplibs_check_method in
6629 "file_magic "*)
6630 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6632 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6633 $EGREP "$file_magic_regex" > /dev/null; then
6634 :
6635 else
6636 cat <<_LT_EOF 1>&2
6637
6638*** Warning: the command libtool uses to detect shared libraries,
6639*** $file_magic_cmd, produces output that libtool cannot recognize.
6640*** The result is that libtool may fail to recognize shared libraries
6641*** as such. This will affect the creation of libtool libraries that
6642*** depend on shared libraries, but programs linked with such libtool
6643*** libraries will work regardless of this problem. Nevertheless, you
6644*** may want to report the problem to your system manager and/or to
6645*** bug-libtool@gnu.org
6646
6647_LT_EOF
6648 fi ;;
6649 esac
6650 fi
6651 break
6652 fi
6653 done
6654 IFS="$lt_save_ifs"
6655 MAGIC_CMD="$lt_save_MAGIC_CMD"
6656 ;;
6657esac
6658fi
6659
6660MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6661if test -n "$MAGIC_CMD"; then
6662 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6663echo "${ECHO_T}$MAGIC_CMD" >&6
6664else
6665 echo "$as_me:$LINENO: result: no" >&5
6666echo "${ECHO_T}no" >&6
6667fi
6668
6669
6670
6671
6672
6673if test -z "$lt_cv_path_MAGIC_CMD"; then
6674 if test -n "$ac_tool_prefix"; then
6675 echo "$as_me:$LINENO: checking for file" >&5
6676echo $ECHO_N "checking for file... $ECHO_C" >&6
6677if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679else
6680 case $MAGIC_CMD in
6681[\\/*] | ?:[\\/]*)
6682 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6683 ;;
6684*)
6685 lt_save_MAGIC_CMD="$MAGIC_CMD"
6686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6687 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6688 for ac_dir in $ac_dummy; do
6689 IFS="$lt_save_ifs"
6690 test -z "$ac_dir" && ac_dir=.
6691 if test -f $ac_dir/file; then
6692 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6693 if test -n "$file_magic_test_file"; then
6694 case $deplibs_check_method in
6695 "file_magic "*)
6696 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6698 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6699 $EGREP "$file_magic_regex" > /dev/null; then
6700 :
6701 else
6702 cat <<_LT_EOF 1>&2
6703
6704*** Warning: the command libtool uses to detect shared libraries,
6705*** $file_magic_cmd, produces output that libtool cannot recognize.
6706*** The result is that libtool may fail to recognize shared libraries
6707*** as such. This will affect the creation of libtool libraries that
6708*** depend on shared libraries, but programs linked with such libtool
6709*** libraries will work regardless of this problem. Nevertheless, you
6710*** may want to report the problem to your system manager and/or to
6711*** bug-libtool@gnu.org
6712
6713_LT_EOF
6714 fi ;;
6715 esac
6716 fi
6717 break
6718 fi
6719 done
6720 IFS="$lt_save_ifs"
6721 MAGIC_CMD="$lt_save_MAGIC_CMD"
6722 ;;
6723esac
6724fi
6725
6726MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6727if test -n "$MAGIC_CMD"; then
6728 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6729echo "${ECHO_T}$MAGIC_CMD" >&6
6730else
6731 echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6
6733fi
6734
6735
6736 else
6737 MAGIC_CMD=:
6738 fi
6739fi
6740
6741 fi
6742 ;;
6743esac
6744
6745# Use C for the default configuration in the libtool script
6746
6747lt_save_CC="$CC"
6748ac_ext=c
6749ac_cpp='$CPP $CPPFLAGS'
6750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6752ac_compiler_gnu=$ac_cv_c_compiler_gnu
6753
6754
6755# Source file extension for C test sources.
6756ac_ext=c
6757
6758# Object file extension for compiled C test sources.
6759objext=o
6760objext=$objext
6761
6762# Code to be used in simple compile tests
6763lt_simple_compile_test_code="int some_variable = 0;"
6764
6765# Code to be used in simple link tests
6766lt_simple_link_test_code='int main(){return(0);}'
6767
6768
6769
6770
6771
6772
6773
6774# If no C compiler was specified, use CC.
6775LTCC=${LTCC-"$CC"}
6776
6777# If no C compiler flags were specified, use CFLAGS.
6778LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6779
6780# Allow CC to be a program name with arguments.
6781compiler=$CC
6782
6783# Save the default compiler, since it gets overwritten when the other
6784# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6785compiler_DEFAULT=$CC
6786
6787# save warnings/boilerplate of simple test code
6788ac_outfile=conftest.$ac_objext
6789echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6790eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6791_lt_compiler_boilerplate=`cat conftest.err`
6792$RM conftest*
6793
6794ac_outfile=conftest.$ac_objext
6795echo "$lt_simple_link_test_code" >conftest.$ac_ext
6796eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6797_lt_linker_boilerplate=`cat conftest.err`
6798$RM conftest*
6799
6800
6801## CAVEAT EMPTOR:
6802## There is no encapsulation within the following macros, do not change
6803## the running order or otherwise move them around unless you know exactly
6804## what you are doing...
6805if test -n "$compiler"; then
6806
6807lt_prog_compiler_no_builtin_flag=
6808
6809if test "$GCC" = yes; then
6810 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6811
6812 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6813echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6814if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6816else
6817 lt_cv_prog_compiler_rtti_exceptions=no
6818 ac_outfile=conftest.$ac_objext
6819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6820 lt_compiler_flag="-fno-rtti -fno-exceptions"
6821 # Insert the option either (1) after the last *FLAGS variable, or
6822 # (2) before a word containing "conftest.", or (3) at the end.
6823 # Note that $ac_compile itself does not contain backslashes and begins
6824 # with a dollar sign (not a hyphen), so the echo should work correctly.
6825 # The option is referenced via a variable to avoid confusing sed.
6826 lt_compile=`echo "$ac_compile" | $SED \
6827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6829 -e 's:$: $lt_compiler_flag:'`
504b7d20 6830 (eval echo "\"\$as_me:6830: $lt_compile\"" >&5)
d7040cdb
SE
6831 (eval "$lt_compile" 2>conftest.err)
6832 ac_status=$?
6833 cat conftest.err >&5
504b7d20 6834 echo "$as_me:6834: \$? = $ac_status" >&5
d7040cdb
SE
6835 if (exit $ac_status) && test -s "$ac_outfile"; then
6836 # The compiler can only warn and ignore the option if not recognized
6837 # So say no if there are warnings other than the usual output.
6838 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6840 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6841 lt_cv_prog_compiler_rtti_exceptions=yes
6842 fi
6843 fi
6844 $RM conftest*
6845
6846fi
6847echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6848echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6849
6850if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6851 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6852else
6853 :
6854fi
6855
6856fi
6857
6858
6859
6860
6861
6862
6863 lt_prog_compiler_wl=
6864lt_prog_compiler_pic=
6865lt_prog_compiler_static=
6866
6867echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6868echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6869
6870 if test "$GCC" = yes; then
6871 lt_prog_compiler_wl='-Wl,'
6872 lt_prog_compiler_static='-static'
6873
6874 case $host_os in
6875 aix*)
6876 # All AIX code is PIC.
6877 if test "$host_cpu" = ia64; then
6878 # AIX 5 now supports IA64 processor
6879 lt_prog_compiler_static='-Bstatic'
6880 fi
6881 ;;
6882
6883 amigaos*)
6884 if test "$host_cpu" = m68k; then
6885 # FIXME: we need at least 68020 code to build shared libraries, but
6886 # adding the `-m68020' flag to GCC prevents building anything better,
6887 # like `-m68040'.
6888 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6889 fi
6890 ;;
6891
6892 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6893 # PIC is the default for these OSes.
6894 ;;
6895
6896 mingw* | cygwin* | pw32* | os2*)
6897 # This hack is so that the source file can tell whether it is being
6898 # built for inclusion in a dll (and should export symbols for example).
6899 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6900 # (--disable-auto-import) libraries
6901 lt_prog_compiler_pic='-DDLL_EXPORT'
6902 ;;
6903
6904 darwin* | rhapsody*)
6905 # PIC is the default on this platform
6906 # Common symbols not allowed in MH_DYLIB files
6907 lt_prog_compiler_pic='-fno-common'
6908 ;;
6909
6910 hpux*)
6911 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6912 # not for PA HP-UX.
6913 case $host_cpu in
6914 hppa*64*|ia64*)
6915 # +Z the default
6916 ;;
6917 *)
6918 lt_prog_compiler_pic='-fPIC'
6919 ;;
6920 esac
6921 ;;
6922
6923 interix[3-9]*)
6924 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6925 # Instead, we relocate shared libraries at runtime.
6926 ;;
6927
6928 msdosdjgpp*)
6929 # Just because we use GCC doesn't mean we suddenly get shared libraries
6930 # on systems that don't support them.
6931 lt_prog_compiler_can_build_shared=no
6932 enable_shared=no
6933 ;;
6934
6935 *nto* | *qnx*)
6936 # QNX uses GNU C++, but need to define -shared option too, otherwise
6937 # it will coredump.
6938 lt_prog_compiler_pic='-fPIC -shared'
6939 ;;
6940
6941 sysv4*MP*)
6942 if test -d /usr/nec; then
6943 lt_prog_compiler_pic=-Kconform_pic
6944 fi
6945 ;;
6946
6947 *)
6948 lt_prog_compiler_pic='-fPIC'
6949 ;;
6950 esac
6951 else
6952 # PORTME Check for flag to pass linker flags through the system compiler.
6953 case $host_os in
6954 aix*)
6955 lt_prog_compiler_wl='-Wl,'
6956 if test "$host_cpu" = ia64; then
6957 # AIX 5 now supports IA64 processor
6958 lt_prog_compiler_static='-Bstatic'
6959 else
6960 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6961 fi
6962 ;;
6963 darwin*)
6964 # PIC is the default on this platform
6965 # Common symbols not allowed in MH_DYLIB files
6966 case $cc_basename in
6967 xlc*)
6968 lt_prog_compiler_pic='-qnocommon'
6969 lt_prog_compiler_wl='-Wl,'
6970 ;;
6971 esac
6972 ;;
6973
6974 mingw* | cygwin* | pw32* | os2*)
6975 # This hack is so that the source file can tell whether it is being
6976 # built for inclusion in a dll (and should export symbols for example).
6977 lt_prog_compiler_pic='-DDLL_EXPORT'
6978 ;;
6979
6980 hpux9* | hpux10* | hpux11*)
6981 lt_prog_compiler_wl='-Wl,'
6982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6983 # not for PA HP-UX.
6984 case $host_cpu in
6985 hppa*64*|ia64*)
6986 # +Z the default
6987 ;;
6988 *)
6989 lt_prog_compiler_pic='+Z'
6990 ;;
6991 esac
6992 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6993 lt_prog_compiler_static='${wl}-a ${wl}archive'
6994 ;;
6995
6996 irix5* | irix6* | nonstopux*)
6997 lt_prog_compiler_wl='-Wl,'
6998 # PIC (with -KPIC) is the default.
6999 lt_prog_compiler_static='-non_shared'
7000 ;;
7001
7002 linux* | k*bsd*-gnu)
7003 case $cc_basename in
7004 icc* | ecc*)
7005 lt_prog_compiler_wl='-Wl,'
7006 lt_prog_compiler_pic='-KPIC'
7007 lt_prog_compiler_static='-static'
7008 ;;
7009 pgcc* | pgf77* | pgf90* | pgf95*)
7010 # Portland Group compilers (*not* the Pentium gcc compiler,
7011 # which looks to be a dead project)
7012 lt_prog_compiler_wl='-Wl,'
7013 lt_prog_compiler_pic='-fpic'
7014 lt_prog_compiler_static='-Bstatic'
7015 ;;
7016 ccc*)
7017 lt_prog_compiler_wl='-Wl,'
7018 # All Alpha code is PIC.
7019 lt_prog_compiler_static='-non_shared'
7020 ;;
7021 *)
7022 case `$CC -V 2>&1 | sed 5q` in
7023 *Sun\ C*)
7024 # Sun C 5.9
7025 lt_prog_compiler_pic='-KPIC'
7026 lt_prog_compiler_static='-Bstatic'
7027 lt_prog_compiler_wl='-Wl,'
7028 ;;
7029 *Sun\ F*)
7030 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7031 lt_prog_compiler_pic='-KPIC'
7032 lt_prog_compiler_static='-Bstatic'
7033 lt_prog_compiler_wl=''
7034 ;;
7035 esac
7036 ;;
7037 esac
7038 ;;
7039
7040 newsos6)
7041 lt_prog_compiler_pic='-KPIC'
7042 lt_prog_compiler_static='-Bstatic'
7043 ;;
7044
7045 *nto* | *qnx*)
7046 # QNX uses GNU C++, but need to define -shared option too, otherwise
7047 # it will coredump.
7048 lt_prog_compiler_pic='-fPIC -shared'
7049 ;;
7050
7051 osf3* | osf4* | osf5*)
7052 lt_prog_compiler_wl='-Wl,'
7053 # All OSF/1 code is PIC.
7054 lt_prog_compiler_static='-non_shared'
7055 ;;
7056
7057 rdos*)
7058 lt_prog_compiler_static='-non_shared'
7059 ;;
7060
7061 solaris*)
7062 lt_prog_compiler_pic='-KPIC'
7063 lt_prog_compiler_static='-Bstatic'
7064 case $cc_basename in
7065 f77* | f90* | f95*)
7066 lt_prog_compiler_wl='-Qoption ld ';;
7067 *)
7068 lt_prog_compiler_wl='-Wl,';;
7069 esac
7070 ;;
7071
7072 sunos4*)
7073 lt_prog_compiler_wl='-Qoption ld '
7074 lt_prog_compiler_pic='-PIC'
7075 lt_prog_compiler_static='-Bstatic'
7076 ;;
7077
7078 sysv4 | sysv4.2uw2* | sysv4.3*)
7079 lt_prog_compiler_wl='-Wl,'
7080 lt_prog_compiler_pic='-KPIC'
7081 lt_prog_compiler_static='-Bstatic'
7082 ;;
7083
7084 sysv4*MP*)
7085 if test -d /usr/nec ;then
7086 lt_prog_compiler_pic='-Kconform_pic'
7087 lt_prog_compiler_static='-Bstatic'
7088 fi
7089 ;;
7090
7091 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7092 lt_prog_compiler_wl='-Wl,'
7093 lt_prog_compiler_pic='-KPIC'
7094 lt_prog_compiler_static='-Bstatic'
7095 ;;
7096
7097 unicos*)
7098 lt_prog_compiler_wl='-Wl,'
7099 lt_prog_compiler_can_build_shared=no
7100 ;;
7101
7102 uts4*)
7103 lt_prog_compiler_pic='-pic'
7104 lt_prog_compiler_static='-Bstatic'
7105 ;;
7106
7107 *)
7108 lt_prog_compiler_can_build_shared=no
7109 ;;
7110 esac
7111 fi
7112
7113case $host_os in
7114 # For platforms which do not support PIC, -DPIC is meaningless:
7115 *djgpp*)
7116 lt_prog_compiler_pic=
7117 ;;
7118 *)
7119 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7120 ;;
7121esac
7122echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7123echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7124
7125
7126
7127
7128
7129
7130#
7131# Check to make sure the PIC flag actually works.
7132#
7133if test -n "$lt_prog_compiler_pic"; then
7134 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7135echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7136if test "${lt_prog_compiler_pic_works+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138else
7139 lt_prog_compiler_pic_works=no
7140 ac_outfile=conftest.$ac_objext
7141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7142 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7143 # Insert the option either (1) after the last *FLAGS variable, or
7144 # (2) before a word containing "conftest.", or (3) at the end.
7145 # Note that $ac_compile itself does not contain backslashes and begins
7146 # with a dollar sign (not a hyphen), so the echo should work correctly.
7147 # The option is referenced via a variable to avoid confusing sed.
7148 lt_compile=`echo "$ac_compile" | $SED \
7149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7151 -e 's:$: $lt_compiler_flag:'`
504b7d20 7152 (eval echo "\"\$as_me:7152: $lt_compile\"" >&5)
d7040cdb
SE
7153 (eval "$lt_compile" 2>conftest.err)
7154 ac_status=$?
7155 cat conftest.err >&5
504b7d20 7156 echo "$as_me:7156: \$? = $ac_status" >&5
d7040cdb
SE
7157 if (exit $ac_status) && test -s "$ac_outfile"; then
7158 # The compiler can only warn and ignore the option if not recognized
7159 # So say no if there are warnings other than the usual output.
7160 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7163 lt_prog_compiler_pic_works=yes
7164 fi
7165 fi
7166 $RM conftest*
7167
7168fi
7169echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7170echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7171
7172if test x"$lt_prog_compiler_pic_works" = xyes; then
7173 case $lt_prog_compiler_pic in
7174 "" | " "*) ;;
7175 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7176 esac
7177else
7178 lt_prog_compiler_pic=
7179 lt_prog_compiler_can_build_shared=no
7180fi
7181
7182fi
7183
7184
7185
7186
7187
7188
7189#
7190# Check to make sure the static flag actually works.
7191#
7192wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7193echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7194echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7195if test "${lt_prog_compiler_static_works+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198 lt_prog_compiler_static_works=no
7199 save_LDFLAGS="$LDFLAGS"
7200 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7201 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7203 # The linker can only warn and ignore the option if not recognized
7204 # So say no if there are warnings
7205 if test -s conftest.err; then
7206 # Append any errors to the config.log.
7207 cat conftest.err 1>&5
7208 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7210 if diff conftest.exp conftest.er2 >/dev/null; then
7211 lt_prog_compiler_static_works=yes
7212 fi
7213 else
7214 lt_prog_compiler_static_works=yes
7215 fi
7216 fi
7217 $RM conftest*
7218 LDFLAGS="$save_LDFLAGS"
7219
7220fi
7221echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7222echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7223
7224if test x"$lt_prog_compiler_static_works" = xyes; then
7225 :
7226else
7227 lt_prog_compiler_static=
7228fi
7229
7230
7231
7232
7233
7234
7235
7236 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7237echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7238if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240else
7241 lt_cv_prog_compiler_c_o=no
7242 $RM -r conftest 2>/dev/null
7243 mkdir conftest
7244 cd conftest
7245 mkdir out
7246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7247
7248 lt_compiler_flag="-o out/conftest2.$ac_objext"
7249 # Insert the option either (1) after the last *FLAGS variable, or
7250 # (2) before a word containing "conftest.", or (3) at the end.
7251 # Note that $ac_compile itself does not contain backslashes and begins
7252 # with a dollar sign (not a hyphen), so the echo should work correctly.
7253 lt_compile=`echo "$ac_compile" | $SED \
7254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7256 -e 's:$: $lt_compiler_flag:'`
504b7d20 7257 (eval echo "\"\$as_me:7257: $lt_compile\"" >&5)
d7040cdb
SE
7258 (eval "$lt_compile" 2>out/conftest.err)
7259 ac_status=$?
7260 cat out/conftest.err >&5
504b7d20 7261 echo "$as_me:7261: \$? = $ac_status" >&5
d7040cdb
SE
7262 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7263 then
7264 # The compiler can only warn and ignore the option if not recognized
7265 # So say no if there are warnings
7266 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7267 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7268 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7269 lt_cv_prog_compiler_c_o=yes
7270 fi
7271 fi
7272 chmod u+w . 2>&5
7273 $RM conftest*
7274 # SGI C++ compiler will create directory out/ii_files/ for
7275 # template instantiation
7276 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7277 $RM out/* && rmdir out
7278 cd ..
7279 $RM -r conftest
7280 $RM conftest*
7281
7282fi
7283echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7284echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7285
7286
7287
7288
7289
7290
7291 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7292echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7293if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296 lt_cv_prog_compiler_c_o=no
7297 $RM -r conftest 2>/dev/null
7298 mkdir conftest
7299 cd conftest
7300 mkdir out
7301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7302
7303 lt_compiler_flag="-o out/conftest2.$ac_objext"
7304 # Insert the option either (1) after the last *FLAGS variable, or
7305 # (2) before a word containing "conftest.", or (3) at the end.
7306 # Note that $ac_compile itself does not contain backslashes and begins
7307 # with a dollar sign (not a hyphen), so the echo should work correctly.
7308 lt_compile=`echo "$ac_compile" | $SED \
7309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7311 -e 's:$: $lt_compiler_flag:'`
504b7d20 7312 (eval echo "\"\$as_me:7312: $lt_compile\"" >&5)
d7040cdb
SE
7313 (eval "$lt_compile" 2>out/conftest.err)
7314 ac_status=$?
7315 cat out/conftest.err >&5
504b7d20 7316 echo "$as_me:7316: \$? = $ac_status" >&5
d7040cdb
SE
7317 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7318 then
7319 # The compiler can only warn and ignore the option if not recognized
7320 # So say no if there are warnings
7321 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7322 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7323 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7324 lt_cv_prog_compiler_c_o=yes
7325 fi
7326 fi
7327 chmod u+w . 2>&5
7328 $RM conftest*
7329 # SGI C++ compiler will create directory out/ii_files/ for
7330 # template instantiation
7331 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7332 $RM out/* && rmdir out
7333 cd ..
7334 $RM -r conftest
7335 $RM conftest*
7336
7337fi
7338echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7339echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7340
7341
7342
7343
7344hard_links="nottested"
7345if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7346 # do not overwrite the value of need_locks provided by the user
7347 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7348echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7349 hard_links=yes
7350 $RM conftest*
7351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7352 touch conftest.a
7353 ln conftest.a conftest.b 2>&5 || hard_links=no
7354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7355 echo "$as_me:$LINENO: result: $hard_links" >&5
7356echo "${ECHO_T}$hard_links" >&6
7357 if test "$hard_links" = no; then
7358 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7359echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7360 need_locks=warn
7361 fi
7362else
7363 need_locks=no
7364fi
7365
7366
7367
7368
7369
7370
7371 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7372echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7373
7374 runpath_var=
7375 allow_undefined_flag=
7376 always_export_symbols=no
7377 archive_cmds=
7378 archive_expsym_cmds=
7379 compiler_needs_object=no
7380 enable_shared_with_static_runtimes=no
7381 export_dynamic_flag_spec=
7382 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7383 hardcode_automatic=no
7384 hardcode_direct=no
7385 hardcode_direct_absolute=no
7386 hardcode_libdir_flag_spec=
7387 hardcode_libdir_flag_spec_ld=
7388 hardcode_libdir_separator=
7389 hardcode_minus_L=no
7390 hardcode_shlibpath_var=unsupported
7391 inherit_rpath=no
7392 link_all_deplibs=unknown
7393 module_cmds=
7394 module_expsym_cmds=
7395 old_archive_from_new_cmds=
7396 old_archive_from_expsyms_cmds=
7397 thread_safe_flag_spec=
7398 whole_archive_flag_spec=
7399 # include_expsyms should be a list of space-separated symbols to be *always*
7400 # included in the symbol list
7401 include_expsyms=
7402 # exclude_expsyms can be an extended regexp of symbols to exclude
7403 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7404 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7405 # as well as any symbol that contains `d'.
7406 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7407 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7408 # platforms (ab)use it in PIC code, but their linkers get confused if
7409 # the symbol is explicitly referenced. Since portable code cannot
7410 # rely on this symbol name, it's probably fine to never include it in
7411 # preloaded symbol tables.
7412 extract_expsyms_cmds=
7413
7414 case $host_os in
7415 cygwin* | mingw* | pw32*)
7416 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7417 # When not using gcc, we currently assume that we are using
7418 # Microsoft Visual C++.
7419 if test "$GCC" != yes; then
7420 with_gnu_ld=no
7421 fi
7422 ;;
7423 interix*)
7424 # we just hope/assume this is gcc and not c89 (= MSVC++)
7425 with_gnu_ld=yes
7426 ;;
7427 openbsd*)
7428 with_gnu_ld=no
7429 ;;
7430 esac
7431
7432 ld_shlibs=yes
7433 if test "$with_gnu_ld" = yes; then
7434 # If archive_cmds runs LD, not CC, wlarc should be empty
7435 wlarc='${wl}'
7436
7437 # Set some defaults for GNU ld with shared library support. These
7438 # are reset later if shared libraries are not supported. Putting them
7439 # here allows them to be overridden if necessary.
7440 runpath_var=LD_RUN_PATH
7441 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7442 export_dynamic_flag_spec='${wl}--export-dynamic'
7443 # ancient GNU ld didn't support --whole-archive et. al.
7444 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7445 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7446 else
7447 whole_archive_flag_spec=
7448 fi
7449 supports_anon_versioning=no
7450 case `$LD -v 2>&1` in
7451 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7452 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7453 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7454 *\ 2.11.*) ;; # other 2.11 versions
7455 *) supports_anon_versioning=yes ;;
7456 esac
7457
7458 # See if GNU ld supports shared libraries.
7459 case $host_os in
7460 aix3* | aix4* | aix5*)
7461 # On AIX/PPC, the GNU linker is very broken
7462 if test "$host_cpu" != ia64; then
7463 ld_shlibs=no
7464 cat <<_LT_EOF 1>&2
7465
7466*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7467*** to be unable to reliably create shared libraries on AIX.
7468*** Therefore, libtool is disabling shared libraries support. If you
7469*** really care for shared libraries, you may want to modify your PATH
7470*** so that a non-GNU linker is found, and then restart.
7471
7472_LT_EOF
7473 fi
7474 ;;
7475
7476 amigaos*)
7477 if test "$host_cpu" = m68k; then
7478 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)'
7479 hardcode_libdir_flag_spec='-L$libdir'
7480 hardcode_minus_L=yes
7481 fi
7482
7483 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7484 # that the semantics of dynamic libraries on AmigaOS, at least up
7485 # to version 4, is to share data among multiple programs linked
7486 # with the same dynamic library. Since this doesn't match the
7487 # behavior of shared libraries on other platforms, we can't use
7488 # them.
7489 ld_shlibs=no
7490 ;;
7491
7492 beos*)
7493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7494 allow_undefined_flag=unsupported
7495 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7496 # support --undefined. This deserves some investigation. FIXME
7497 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7498 else
7499 ld_shlibs=no
7500 fi
7501 ;;
7502
7503 cygwin* | mingw* | pw32*)
7504 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7505 # as there is no search path for DLLs.
7506 hardcode_libdir_flag_spec='-L$libdir'
7507 allow_undefined_flag=unsupported
7508 always_export_symbols=no
7509 enable_shared_with_static_runtimes=yes
7510 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7511
7512 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7514 # If the export-symbols file already is a .def file (1st line
7515 # is EXPORTS), use it as is; otherwise, prepend...
7516 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7517 cp $export_symbols $output_objdir/$soname.def;
7518 else
7519 echo EXPORTS > $output_objdir/$soname.def;
7520 cat $export_symbols >> $output_objdir/$soname.def;
7521 fi~
7522 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7523 else
7524 ld_shlibs=no
7525 fi
7526 ;;
7527
7528 interix[3-9]*)
7529 hardcode_direct=no
7530 hardcode_shlibpath_var=no
7531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7532 export_dynamic_flag_spec='${wl}-E'
7533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7534 # Instead, shared libraries are loaded at an image base (0x10000000 by
7535 # default) and relocated if they conflict, which is a slow very memory
7536 # consuming and fragmenting process. To avoid this, we pick a random,
7537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7538 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7540 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'
7541 ;;
7542
7543 gnu* | linux* | tpf* | k*bsd*-gnu)
7544 tmp_diet=no
7545 if test "$host_os" = linux-dietlibc; then
7546 case $cc_basename in
7547 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7548 esac
7549 fi
7550 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7551 && test "$tmp_diet" = no
7552 then
7553 tmp_addflag=
7554 case $cc_basename,$host_cpu in
7555 pgcc*) # Portland Group C compiler
7556 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'
7557 tmp_addflag=' $pic_flag'
7558 ;;
7559 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7560 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'
7561 tmp_addflag=' $pic_flag -Mnomain' ;;
7562 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7563 tmp_addflag=' -i_dynamic' ;;
7564 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7565 tmp_addflag=' -i_dynamic -nofor_main' ;;
7566 ifc* | ifort*) # Intel Fortran compiler
7567 tmp_addflag=' -nofor_main' ;;
7568 esac
7569 case `$CC -V 2>&1 | sed 5q` in
7570 *Sun\ C*) # Sun C 5.9
7571 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'
7572 compiler_needs_object=yes
7573 tmp_sharedflag='-G' ;;
7574 *Sun\ F*) # Sun Fortran 8.3
7575 tmp_sharedflag='-G' ;;
7576 *)
7577 tmp_sharedflag='-shared' ;;
7578 esac
7579 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7580
7581 if test "x$supports_anon_versioning" = xyes; then
7582 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7583 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7584 echo "local: *; };" >> $output_objdir/$libname.ver~
7585 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7586 fi
7587 else
7588 ld_shlibs=no
7589 fi
7590 ;;
7591
7592 netbsd*)
7593 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7594 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7595 wlarc=
7596 else
7597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7598 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7599 fi
7600 ;;
7601
7602 solaris*)
7603 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7604 ld_shlibs=no
7605 cat <<_LT_EOF 1>&2
7606
7607*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7608*** create shared libraries on Solaris systems. Therefore, libtool
7609*** is disabling shared libraries support. We urge you to upgrade GNU
7610*** binutils to release 2.9.1 or newer. Another option is to modify
7611*** your PATH or compiler configuration so that the native linker is
7612*** used, and then restart.
7613
7614_LT_EOF
7615 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7618 else
7619 ld_shlibs=no
7620 fi
7621 ;;
7622
7623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7624 case `$LD -v 2>&1` in
7625 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7626 ld_shlibs=no
7627 cat <<_LT_EOF 1>&2
7628
7629*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7630*** reliably create shared libraries on SCO systems. Therefore, libtool
7631*** is disabling shared libraries support. We urge you to upgrade GNU
7632*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7633*** your PATH or compiler configuration so that the native linker is
7634*** used, and then restart.
7635
7636_LT_EOF
7637 ;;
7638 *)
7639 # For security reasons, it is highly recommended that you always
7640 # use absolute paths for naming shared libraries, and exclude the
7641 # DT_RUNPATH tag from executables and libraries. But doing so
7642 # requires that you compile everything twice, which is a pain.
7643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7646 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7647 else
7648 ld_shlibs=no
7649 fi
7650 ;;
7651 esac
7652 ;;
7653
7654 sunos4*)
7655 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7656 wlarc=
7657 hardcode_direct=yes
7658 hardcode_shlibpath_var=no
7659 ;;
7660
7661 *)
7662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7664 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7665 else
7666 ld_shlibs=no
7667 fi
7668 ;;
7669 esac
7670
7671 if test "$ld_shlibs" = no; then
7672 runpath_var=
7673 hardcode_libdir_flag_spec=
7674 export_dynamic_flag_spec=
7675 whole_archive_flag_spec=
7676 fi
7677 else
7678 # PORTME fill in a description of your system's linker (not GNU ld)
7679 case $host_os in
7680 aix3*)
7681 allow_undefined_flag=unsupported
7682 always_export_symbols=yes
7683 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'
7684 # Note: this linker hardcodes the directories in LIBPATH if there
7685 # are no directories specified by -L.
7686 hardcode_minus_L=yes
7687 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7688 # Neither direct hardcoding nor static linking is supported with a
7689 # broken collect2.
7690 hardcode_direct=unsupported
7691 fi
7692 ;;
7693
7694 aix4* | aix5*)
7695 if test "$host_cpu" = ia64; then
7696 # On IA64, the linker does run time linking by default, so we don't
7697 # have to do anything special.
7698 aix_use_runtimelinking=no
7699 exp_sym_flag='-Bexport'
7700 no_entry_flag=""
7701 else
7702 # If we're using GNU nm, then we don't want the "-C" option.
7703 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7704 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7705 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'
7706 else
7707 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'
7708 fi
7709 aix_use_runtimelinking=no
7710
7711 # Test if we are trying to use run time linking or normal
7712 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7713 # need to do runtime linking.
7714 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7715 for ld_flag in $LDFLAGS; do
7716 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7717 aix_use_runtimelinking=yes
7718 break
7719 fi
7720 done
7721 ;;
7722 esac
7723
7724 exp_sym_flag='-bexport'
7725 no_entry_flag='-bnoentry'
7726 fi
7727
7728 # When large executables or shared objects are built, AIX ld can
7729 # have problems creating the table of contents. If linking a library
7730 # or program results in "error TOC overflow" add -mminimal-toc to
7731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7733
7734 archive_cmds=''
7735 hardcode_direct=yes
7736 hardcode_direct_absolute=yes
7737 hardcode_libdir_separator=':'
7738 link_all_deplibs=yes
7739 file_list_spec='${wl}-f,'
7740
7741 if test "$GCC" = yes; then
7742 case $host_os in aix4.[012]|aix4.[012].*)
7743 # We only want to do this on AIX 4.2 and lower, the check
7744 # below for broken collect2 doesn't work under 4.3+
7745 collect2name=`${CC} -print-prog-name=collect2`
7746 if test -f "$collect2name" &&
7747 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7748 then
7749 # We have reworked collect2
7750 :
7751 else
7752 # We have old collect2
7753 hardcode_direct=unsupported
7754 # It fails to find uninstalled libraries when the uninstalled
7755 # path is not listed in the libpath. Setting hardcode_minus_L
7756 # to unsupported forces relinking
7757 hardcode_minus_L=yes
7758 hardcode_libdir_flag_spec='-L$libdir'
7759 hardcode_libdir_separator=
7760 fi
7761 ;;
7762 esac
7763 shared_flag='-shared'
7764 if test "$aix_use_runtimelinking" = yes; then
7765 shared_flag="$shared_flag "'${wl}-G'
7766 fi
7767 else
7768 # not using gcc
7769 if test "$host_cpu" = ia64; then
7770 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7771 # chokes on -Wl,-G. The following line is correct:
7772 shared_flag='-G'
7773 else
7774 if test "$aix_use_runtimelinking" = yes; then
7775 shared_flag='${wl}-G'
7776 else
7777 shared_flag='${wl}-bM:SRE'
7778 fi
7779 fi
7780 fi
7781
7782 # It seems that -bexpall does not export symbols beginning with
7783 # underscore (_), so it is better to generate a list of symbols to export.
7784 always_export_symbols=yes
7785 if test "$aix_use_runtimelinking" = yes; then
7786 # Warning - without using the other runtime loading flags (-brtl),
7787 # -berok will link without error, but may produce a broken library.
7788 allow_undefined_flag='-berok'
7789 # Determine the default libpath from the value encoded in an
7790 # empty executable.
7791 cat >conftest.$ac_ext <<_ACEOF
7792/* confdefs.h. */
7793_ACEOF
7794cat confdefs.h >>conftest.$ac_ext
7795cat >>conftest.$ac_ext <<_ACEOF
7796/* end confdefs.h. */
7797
7798int
7799main ()
7800{
7801
7802 ;
7803 return 0;
7804}
7805_ACEOF
7806rm -f conftest.$ac_objext conftest$ac_exeext
7807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7808 (eval $ac_link) 2>conftest.er1
7809 ac_status=$?
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } &&
7815 { ac_try='test -z "$ac_c_werror_flag"
7816 || test ! -s conftest.err'
7817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 (eval $ac_try) 2>&5
7819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; } &&
7822 { ac_try='test -s conftest$ac_exeext'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; }; then
7828
7829lt_aix_libpath_sed='
7830 /Import File Strings/,/^$/ {
7831 /^0/ {
7832 s/^0 *\(.*\)$/\1/
7833 p
7834 }
7835 }'
7836aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7837# Check for a 64-bit object if we didn't find anything.
7838if test -z "$aix_libpath"; then
7839 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7840fi
7841else
7842 echo "$as_me: failed program was:" >&5
7843sed 's/^/| /' conftest.$ac_ext >&5
7844
7845fi
7846rm -f conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7849
7850 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7851 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"
7852 else
7853 if test "$host_cpu" = ia64; then
7854 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7855 allow_undefined_flag="-z nodefs"
7856 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"
7857 else
7858 # Determine the default libpath from the value encoded in an
7859 # empty executable.
7860 cat >conftest.$ac_ext <<_ACEOF
7861/* confdefs.h. */
7862_ACEOF
7863cat confdefs.h >>conftest.$ac_ext
7864cat >>conftest.$ac_ext <<_ACEOF
7865/* end confdefs.h. */
7866
7867int
7868main ()
7869{
7870
7871 ;
7872 return 0;
7873}
7874_ACEOF
7875rm -f conftest.$ac_objext conftest$ac_exeext
7876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7877 (eval $ac_link) 2>conftest.er1
7878 ac_status=$?
7879 grep -v '^ *+' conftest.er1 >conftest.err
7880 rm -f conftest.er1
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try='test -z "$ac_c_werror_flag"
7885 || test ! -s conftest.err'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 (eval $ac_try) 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try='test -s conftest$ac_exeext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897
7898lt_aix_libpath_sed='
7899 /Import File Strings/,/^$/ {
7900 /^0/ {
7901 s/^0 *\(.*\)$/\1/
7902 p
7903 }
7904 }'
7905aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7906# Check for a 64-bit object if we didn't find anything.
7907if test -z "$aix_libpath"; then
7908 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7909fi
7910else
7911 echo "$as_me: failed program was:" >&5
7912sed 's/^/| /' conftest.$ac_ext >&5
7913
7914fi
7915rm -f conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7918
7919 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7920 # Warning - without using the other run time loading flags,
7921 # -berok will link without error, but may produce a broken library.
7922 no_undefined_flag=' ${wl}-bernotok'
7923 allow_undefined_flag=' ${wl}-berok'
7924 # Exported symbols can be pulled into shared objects from archives
7925 whole_archive_flag_spec='$convenience'
7926 archive_cmds_need_lc=yes
7927 # This is similar to how AIX traditionally builds its shared libraries.
7928 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'
7929 fi
7930 fi
7931 ;;
7932
7933 amigaos*)
7934 if test "$host_cpu" = m68k; then
7935 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)'
7936 hardcode_libdir_flag_spec='-L$libdir'
7937 hardcode_minus_L=yes
7938 fi
7939 # see comment about different semantics on the GNU ld section
7940 ld_shlibs=no
7941 ;;
7942
7943 bsdi[45]*)
7944 export_dynamic_flag_spec=-rdynamic
7945 ;;
7946
7947 cygwin* | mingw* | pw32*)
7948 # When not using gcc, we currently assume that we are using
7949 # Microsoft Visual C++.
7950 # hardcode_libdir_flag_spec is actually meaningless, as there is
7951 # no search path for DLLs.
7952 hardcode_libdir_flag_spec=' '
7953 allow_undefined_flag=unsupported
7954 # Tell ltmain to make .lib files, not .a files.
7955 libext=lib
7956 # Tell ltmain to make .dll files, not .so files.
7957 shrext_cmds=".dll"
7958 # FIXME: Setting linknames here is a bad hack.
7959 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7960 # The linker will automatically build a .lib file if we build a DLL.
7961 old_archive_from_new_cmds='true'
7962 # FIXME: Should let the user specify the lib program.
7963 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7964 fix_srcfile_path='`cygpath -w "$srcfile"`'
7965 enable_shared_with_static_runtimes=yes
7966 ;;
7967
7968 darwin* | rhapsody*)
7969 case $host_os in
7970 rhapsody* | darwin1.[012])
7971 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7972 ;;
7973 *) # Darwin 1.3 on
7974 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7975 10.[012])
7976 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7977 ;;
7978 10.*)
7979 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7980 ;;
7981 esac
7982 ;;
7983 esac
7984 archive_cmds_need_lc=no
7985 hardcode_direct=no
7986 hardcode_automatic=yes
7987 hardcode_shlibpath_var=unsupported
7988 whole_archive_flag_spec=''
7989 link_all_deplibs=yes
7990 if test "$GCC" = yes ; then
7991 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7993else
7994 lt_cv_apple_cc_single_mod=no
7995 if test -z "${LT_MULTI_MODULE}"; then
7996 # By default we will add the -single_module flag. You can override
7997 # by either setting the environment variable LT_MULTI_MODULE
7998 # non-empty at configure time, or by adding -multi-module to the
7999 # link flags.
8000 echo "int foo(void){return 1;}" > conftest.c
8001 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8002 -dynamiclib ${wl}-single_module conftest.c
8003 if test -f libconftest.dylib; then
8004 lt_cv_apple_cc_single_mod=yes
8005 rm libconftest.dylib
8006 fi
8007 rm conftest.$ac_ext
8008 fi
8009fi
8010
8011 output_verbose_link_cmd=echo
8012 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8013 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8014 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}'
8015 else
8016 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8017 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}'
8018 fi
8019 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8020 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}'
8021 else
8022 case $cc_basename in
8023 xlc*)
8024 output_verbose_link_cmd=echo
8025 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8026 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8027 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8028 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}'
8029 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}'
8030 ;;
8031 *)
8032 ld_shlibs=no
8033 ;;
8034 esac
8035 fi
8036 ;;
8037
8038 dgux*)
8039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8040 hardcode_libdir_flag_spec='-L$libdir'
8041 hardcode_shlibpath_var=no
8042 ;;
8043
8044 freebsd1*)
8045 ld_shlibs=no
8046 ;;
8047
8048 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8049 # support. Future versions do this automatically, but an explicit c++rt0.o
8050 # does not break anything, and helps significantly (at the cost of a little
8051 # extra space).
8052 freebsd2.2*)
8053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8054 hardcode_libdir_flag_spec='-R$libdir'
8055 hardcode_direct=yes
8056 hardcode_shlibpath_var=no
8057 ;;
8058
8059 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8060 freebsd2*)
8061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8062 hardcode_direct=yes
8063 hardcode_minus_L=yes
8064 hardcode_shlibpath_var=no
8065 ;;
8066
8067 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8068 freebsd* | dragonfly*)
8069 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8070 hardcode_libdir_flag_spec='-R$libdir'
8071 hardcode_direct=yes
8072 hardcode_shlibpath_var=no
8073 ;;
8074
8075 hpux9*)
8076 if test "$GCC" = yes; then
8077 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'
8078 else
8079 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'
8080 fi
8081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8082 hardcode_libdir_separator=:
8083 hardcode_direct=yes
8084
8085 # hardcode_minus_L: Not really in the search PATH,
8086 # but as the default location of the library.
8087 hardcode_minus_L=yes
8088 export_dynamic_flag_spec='${wl}-E'
8089 ;;
8090
8091 hpux10*)
8092 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8093 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8094 else
8095 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8096 fi
8097 if test "$with_gnu_ld" = no; then
8098 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8099 hardcode_libdir_flag_spec_ld='+b $libdir'
8100 hardcode_libdir_separator=:
8101 hardcode_direct=yes
8102 hardcode_direct_absolute=yes
8103 export_dynamic_flag_spec='${wl}-E'
8104 # hardcode_minus_L: Not really in the search PATH,
8105 # but as the default location of the library.
8106 hardcode_minus_L=yes
8107 fi
8108 ;;
8109
8110 hpux11*)
8111 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8112 case $host_cpu in
8113 hppa*64*)
8114 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8115 ;;
8116 ia64*)
8117 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8118 ;;
8119 *)
8120 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8121 ;;
8122 esac
8123 else
8124 case $host_cpu in
8125 hppa*64*)
8126 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8127 ;;
8128 ia64*)
8129 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8130 ;;
8131 *)
8132 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8133 ;;
8134 esac
8135 fi
8136 if test "$with_gnu_ld" = no; then
8137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8138 hardcode_libdir_separator=:
8139
8140 case $host_cpu in
8141 hppa*64*|ia64*)
8142 hardcode_direct=no
8143 hardcode_shlibpath_var=no
8144 ;;
8145 *)
8146 hardcode_direct=yes
8147 hardcode_direct_absolute=yes
8148 export_dynamic_flag_spec='${wl}-E'
8149
8150 # hardcode_minus_L: Not really in the search PATH,
8151 # but as the default location of the library.
8152 hardcode_minus_L=yes
8153 ;;
8154 esac
8155 fi
8156 ;;
8157
8158 irix5* | irix6* | nonstopux*)
8159 if test "$GCC" = yes; then
8160 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'
8161 # Try to use the -exported_symbol ld option, if it does not
8162 # work, assume that -exports_file does not work either and
8163 # implicitly export all symbols.
8164 save_LDFLAGS="$LDFLAGS"
8165 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8166 cat >conftest.$ac_ext <<_ACEOF
8167int foo(void) {}
8168_ACEOF
8169rm -f conftest.$ac_objext conftest$ac_exeext
8170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8171 (eval $ac_link) 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag"
8179 || test ! -s conftest.err'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 (eval $ac_try) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; } &&
8185 { ac_try='test -s conftest$ac_exeext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 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'
8192
8193else
8194 echo "$as_me: failed program was:" >&5
8195sed 's/^/| /' conftest.$ac_ext >&5
8196
8197fi
8198rm -f conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8200 LDFLAGS="$save_LDFLAGS"
8201 else
8202 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'
8203 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'
8204 fi
8205 archive_cmds_need_lc='no'
8206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8207 hardcode_libdir_separator=:
8208 inherit_rpath=yes
8209 link_all_deplibs=yes
8210 ;;
8211
8212 netbsd*)
8213 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8215 else
8216 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8217 fi
8218 hardcode_libdir_flag_spec='-R$libdir'
8219 hardcode_direct=yes
8220 hardcode_shlibpath_var=no
8221 ;;
8222
8223 newsos6)
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_direct=yes
8226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8227 hardcode_libdir_separator=:
8228 hardcode_shlibpath_var=no
8229 ;;
8230
8231 *nto* | *qnx*)
8232 ;;
8233
8234 openbsd*)
8235 hardcode_direct=yes
8236 hardcode_shlibpath_var=no
8237 hardcode_direct_absolute=yes
8238 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8239 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8240 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8242 export_dynamic_flag_spec='${wl}-E'
8243 else
8244 case $host_os in
8245 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8247 hardcode_libdir_flag_spec='-R$libdir'
8248 ;;
8249 *)
8250 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8251 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8252 ;;
8253 esac
8254 fi
8255 ;;
8256
8257 os2*)
8258 hardcode_libdir_flag_spec='-L$libdir'
8259 hardcode_minus_L=yes
8260 allow_undefined_flag=unsupported
8261 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'
8262 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8263 ;;
8264
8265 osf3*)
8266 if test "$GCC" = yes; then
8267 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8268 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'
8269 else
8270 allow_undefined_flag=' -expect_unresolved \*'
8271 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'
8272 fi
8273 archive_cmds_need_lc='no'
8274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8275 hardcode_libdir_separator=:
8276 ;;
8277
8278 osf4* | osf5*) # as osf3* with the addition of -msym flag
8279 if test "$GCC" = yes; then
8280 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8281 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'
8282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8283 else
8284 allow_undefined_flag=' -expect_unresolved \*'
8285 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'
8286 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~
8287 $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'
8288
8289 # Both c and cxx compiler support -rpath directly
8290 hardcode_libdir_flag_spec='-rpath $libdir'
8291 fi
8292 archive_cmds_need_lc='no'
8293 hardcode_libdir_separator=:
8294 ;;
8295
8296 solaris*)
8297 no_undefined_flag=' -z defs'
8298 if test "$GCC" = yes; then
8299 wlarc='${wl}'
8300 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8302 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8303 else
8304 case `$CC -V 2>&1` in
8305 *"Compilers 5.0"*)
8306 wlarc=''
8307 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8309 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8310 ;;
8311 *)
8312 wlarc='${wl}'
8313 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8315 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8316 ;;
8317 esac
8318 fi
8319 hardcode_libdir_flag_spec='-R$libdir'
8320 hardcode_shlibpath_var=no
8321 case $host_os in
8322 solaris2.[0-5] | solaris2.[0-5].*) ;;
8323 *)
8324 # The compiler driver will combine and reorder linker options,
8325 # but understands `-z linker_flag'. GCC discards it without `$wl',
8326 # but is careful enough not to reorder.
8327 # Supported since Solaris 2.6 (maybe 2.5.1?)
8328 if test "$GCC" = yes; then
8329 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8330 else
8331 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8332 fi
8333 ;;
8334 esac
8335 link_all_deplibs=yes
8336 ;;
8337
8338 sunos4*)
8339 if test "x$host_vendor" = xsequent; then
8340 # Use $CC to link under sequent, because it throws in some extra .o
8341 # files that make .init and .fini sections work.
8342 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8343 else
8344 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8345 fi
8346 hardcode_libdir_flag_spec='-L$libdir'
8347 hardcode_direct=yes
8348 hardcode_minus_L=yes
8349 hardcode_shlibpath_var=no
8350 ;;
8351
8352 sysv4)
8353 case $host_vendor in
8354 sni)
8355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8356 hardcode_direct=yes # is this really true???
8357 ;;
8358 siemens)
8359 ## LD is ld it makes a PLAMLIB
8360 ## CC just makes a GrossModule.
8361 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8362 reload_cmds='$CC -r -o $output$reload_objs'
8363 hardcode_direct=no
8364 ;;
8365 motorola)
8366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8367 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8368 ;;
8369 esac
8370 runpath_var='LD_RUN_PATH'
8371 hardcode_shlibpath_var=no
8372 ;;
8373
8374 sysv4.3*)
8375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8376 hardcode_shlibpath_var=no
8377 export_dynamic_flag_spec='-Bexport'
8378 ;;
8379
8380 sysv4*MP*)
8381 if test -d /usr/nec; then
8382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8383 hardcode_shlibpath_var=no
8384 runpath_var=LD_RUN_PATH
8385 hardcode_runpath_var=yes
8386 ld_shlibs=yes
8387 fi
8388 ;;
8389
8390 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8391 no_undefined_flag='${wl}-z,text'
8392 archive_cmds_need_lc=no
8393 hardcode_shlibpath_var=no
8394 runpath_var='LD_RUN_PATH'
8395
8396 if test "$GCC" = yes; then
8397 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8398 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8399 else
8400 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8401 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8402 fi
8403 ;;
8404
8405 sysv5* | sco3.2v5* | sco5v6*)
8406 # Note: We can NOT use -z defs as we might desire, because we do not
8407 # link with -lc, and that would cause any symbols used from libc to
8408 # always be unresolved, which means just about no library would
8409 # ever link correctly. If we're not using GNU ld we use -z text
8410 # though, which does catch some bad symbols but isn't as heavy-handed
8411 # as -z defs.
8412 no_undefined_flag='${wl}-z,text'
8413 allow_undefined_flag='${wl}-z,nodefs'
8414 archive_cmds_need_lc=no
8415 hardcode_shlibpath_var=no
8416 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8417 hardcode_libdir_separator=':'
8418 link_all_deplibs=yes
8419 export_dynamic_flag_spec='${wl}-Bexport'
8420 runpath_var='LD_RUN_PATH'
8421
8422 if test "$GCC" = yes; then
8423 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8425 else
8426 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8428 fi
8429 ;;
8430
8431 uts4*)
8432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8433 hardcode_libdir_flag_spec='-L$libdir'
8434 hardcode_shlibpath_var=no
8435 ;;
8436
8437 *)
8438 ld_shlibs=no
8439 ;;
8440 esac
8441
8442 if test x$host_vendor = xsni; then
8443 case $host in
8444 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8445 export_dynamic_flag_spec='${wl}-Blargedynsym'
8446 ;;
8447 esac
8448 fi
8449 fi
8450
8451echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8452echo "${ECHO_T}$ld_shlibs" >&6
8453test "$ld_shlibs" = no && can_build_shared=no
8454
8455with_gnu_ld=$with_gnu_ld
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471#
8472# Do we need to explicitly link libc?
8473#
8474case "x$archive_cmds_need_lc" in
8475x|xyes)
8476 # Assume -lc should be added
8477 archive_cmds_need_lc=yes
8478
8479 if test "$enable_shared" = yes && test "$GCC" = yes; then
8480 case $archive_cmds in
8481 *'~'*)
8482 # FIXME: we may have to deal with multi-command sequences.
8483 ;;
8484 '$CC '*)
8485 # Test whether the compiler implicitly links with -lc since on some
8486 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8487 # to ld, don't add -lc before -lgcc.
8488 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8489echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8490 $RM conftest*
8491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8492
8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494 (eval $ac_compile) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } 2>conftest.err; then
8498 soname=conftest
8499 lib=conftest
8500 libobjs=conftest.$ac_objext
8501 deplibs=
8502 wl=$lt_prog_compiler_wl
8503 pic_flag=$lt_prog_compiler_pic
8504 compiler_flags=-v
8505 linker_flags=-v
8506 verstring=
8507 output_objdir=.
8508 libname=conftest
8509 lt_save_allow_undefined_flag=$allow_undefined_flag
8510 allow_undefined_flag=
8511 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8512 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }
8516 then
8517 archive_cmds_need_lc=no
8518 else
8519 archive_cmds_need_lc=yes
8520 fi
8521 allow_undefined_flag=$lt_save_allow_undefined_flag
8522 else
8523 cat conftest.err 1>&5
8524 fi
8525 $RM conftest*
8526 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8527echo "${ECHO_T}$archive_cmds_need_lc" >&6
8528 ;;
8529 esac
8530 fi
8531 ;;
8532esac
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
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 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8691echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8692withGCC=$GCC
8693if test "$withGCC" = yes; then
8694 case $host_os in
8695 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8696 *) lt_awk_arg="/^libraries:/" ;;
8697 esac
8698 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8699 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8700 # if the path contains ";" then we assume it to be the separator
8701 # otherwise default to the standard path separator (i.e. ":") - it is
8702 # assumed that no part of a normal pathname contains ";" but that should
8703 # okay in the real world where ";" in dirpaths is itself problematic.
8704 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8705 else
8706 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8707 fi
8708 # Ok, now we have the path, separated by spaces, we can step through it
8709 # and add multilib dir if necessary.
8710 lt_tmp_lt_search_path_spec=
8711 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8712 for lt_sys_path in $lt_search_path_spec; do
8713 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8714 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8715 else
8716 test -d "$lt_sys_path" && \
8717 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8718 fi
8719 done
8720 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8721BEGIN {RS=" "; FS="/|\n";} {
8722 lt_foo="";
8723 lt_count=0;
8724 for (lt_i = NF; lt_i > 0; lt_i--) {
8725 if ($lt_i != "" && $lt_i != ".") {
8726 if ($lt_i == "..") {
8727 lt_count++;
8728 } else {
8729 if (lt_count == 0) {
8730 lt_foo="/" $lt_i lt_foo;
8731 } else {
8732 lt_count--;
8733 }
8734 }
8735 }
8736 }
8737 if (lt_foo != "") { lt_freq[lt_foo]++; }
8738 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8739}'`
8740 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8741else
8742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8743fi
8744library_names_spec=
8745libname_spec='lib$name'
8746soname_spec=
8747shrext_cmds=".so"
8748postinstall_cmds=
8749postuninstall_cmds=
8750finish_cmds=
8751finish_eval=
8752shlibpath_var=
8753shlibpath_overrides_runpath=unknown
8754version_type=none
8755dynamic_linker="$host_os ld.so"
8756sys_lib_dlsearch_path_spec="/lib /usr/lib"
8757need_lib_prefix=unknown
8758hardcode_into_libs=no
8759
8760# when you set need_version to no, make sure it does not cause -set_version
8761# flags to be left without arguments
8762need_version=unknown
8763
8764case $host_os in
8765aix3*)
8766 version_type=linux
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8768 shlibpath_var=LIBPATH
8769
8770 # AIX 3 has no versioning support, so we append a major version to the name.
8771 soname_spec='${libname}${release}${shared_ext}$major'
8772 ;;
8773
8774aix4* | aix5*)
8775 version_type=linux
8776 need_lib_prefix=no
8777 need_version=no
8778 hardcode_into_libs=yes
8779 if test "$host_cpu" = ia64; then
8780 # AIX 5 supports IA64
8781 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 else
8784 # With GCC up to 2.95.x, collect2 would create an import file
8785 # for dependence libraries. The import file would start with
8786 # the line `#! .'. This would cause the generated library to
8787 # depend on `.', always an invalid library. This was fixed in
8788 # development snapshots of GCC prior to 3.0.
8789 case $host_os in
8790 aix4 | aix4.[01] | aix4.[01].*)
8791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8792 echo ' yes '
8793 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8794 :
8795 else
8796 can_build_shared=no
8797 fi
8798 ;;
8799 esac
8800 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8801 # soname into executable. Probably we can add versioning support to
8802 # collect2, so additional links can be useful in future.
8803 if test "$aix_use_runtimelinking" = yes; then
8804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8805 # instead of lib<name>.a to let people know that these are not
8806 # typical AIX shared libraries.
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8808 else
8809 # We preserve .a as extension for shared libraries through AIX4.2
8810 # and later when we are not doing run time linking.
8811 library_names_spec='${libname}${release}.a $libname.a'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 fi
8814 shlibpath_var=LIBPATH
8815 fi
8816 ;;
8817
8818amigaos*)
8819 if test "$host_cpu" = m68k; then
8820 library_names_spec='$libname.ixlibrary $libname.a'
8821 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8822 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'
8823 else
8824 dynamic_linker=no
8825 fi
8826 ;;
8827
8828beos*)
8829 library_names_spec='${libname}${shared_ext}'
8830 dynamic_linker="$host_os ld.so"
8831 shlibpath_var=LIBRARY_PATH
8832 ;;
8833
8834bsdi[45]*)
8835 version_type=linux
8836 need_version=no
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8843 # the default ld.so.conf also contains /usr/contrib/lib and
8844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8845 # libtool to hard-code these into programs
8846 ;;
8847
8848cygwin* | mingw* | pw32*)
8849 version_type=windows
8850 shrext_cmds=".dll"
8851 need_version=no
8852 need_lib_prefix=no
8853
8854 case $withGCC,$host_os in
8855 yes,cygwin* | yes,mingw* | yes,pw32*)
8856 library_names_spec='$libname.dll.a'
8857 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8858 postinstall_cmds='base_file=`basename \${file}`~
8859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8860 dldir=$destdir/`dirname \$dlpath`~
8861 test -d \$dldir || mkdir -p \$dldir~
8862 $install_prog $dir/$dlname \$dldir/$dlname~
8863 chmod a+x \$dldir/$dlname~
8864 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8865 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8866 fi'
8867 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8868 dlpath=$dir/\$dldll~
8869 $RM \$dlpath'
8870 shlibpath_overrides_runpath=yes
8871
8872 case $host_os in
8873 cygwin*)
8874 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8875 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8877 ;;
8878 mingw*)
8879 # MinGW DLLs use traditional 'lib' prefix
8880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8881 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8882 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8883 # It is most probably a Windows format PATH printed by
8884 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8885 # path with ; separators, and with drive letters. We can handle the
8886 # drive letters (cygwin fileutils understands them), so leave them,
8887 # especially as we might pass files found there to a mingw objdump,
8888 # which wouldn't understand a cygwinified path. Ahh.
8889 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8890 else
8891 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8892 fi
8893 ;;
8894 pw32*)
8895 # pw32 DLLs use 'pw' prefix rather than 'lib'
8896 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8897 ;;
8898 esac
8899 ;;
8900
8901 *)
8902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8903 ;;
8904 esac
8905 dynamic_linker='Win32 ld.exe'
8906 # FIXME: first we should search . and the directory the executable is in
8907 shlibpath_var=PATH
8908 ;;
8909
8910darwin* | rhapsody*)
8911 dynamic_linker="$host_os dyld"
8912 version_type=darwin
8913 need_lib_prefix=no
8914 need_version=no
8915 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8916 soname_spec='${libname}${release}${major}$shared_ext'
8917 shlibpath_overrides_runpath=yes
8918 shlibpath_var=DYLD_LIBRARY_PATH
8919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8920
8921 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8923 ;;
8924
8925dgux*)
8926 version_type=linux
8927 need_lib_prefix=no
8928 need_version=no
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 ;;
8933
8934freebsd1*)
8935 dynamic_linker=no
8936 ;;
8937
8938freebsd* | dragonfly*)
8939 # DragonFly does not have aout. When/if they implement a new
8940 # versioning mechanism, adjust this.
8941 if test -x /usr/bin/objformat; then
8942 objformat=`/usr/bin/objformat`
8943 else
8944 case $host_os in
8945 freebsd[123]*) objformat=aout ;;
8946 *) objformat=elf ;;
8947 esac
8948 fi
8949 version_type=freebsd-$objformat
8950 case $version_type in
8951 freebsd-elf*)
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8953 need_version=no
8954 need_lib_prefix=no
8955 ;;
8956 freebsd-*)
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8958 need_version=yes
8959 ;;
8960 esac
8961 shlibpath_var=LD_LIBRARY_PATH
8962 case $host_os in
8963 freebsd2*)
8964 shlibpath_overrides_runpath=yes
8965 ;;
8966 freebsd3.[01]* | freebsdelf3.[01]*)
8967 shlibpath_overrides_runpath=yes
8968 hardcode_into_libs=yes
8969 ;;
8970 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8971 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8972 shlibpath_overrides_runpath=no
8973 hardcode_into_libs=yes
8974 ;;
8975 *) # from 4.6 on, and DragonFly
8976 shlibpath_overrides_runpath=yes
8977 hardcode_into_libs=yes
8978 ;;
8979 esac
8980 ;;
8981
8982gnu*)
8983 version_type=linux
8984 need_lib_prefix=no
8985 need_version=no
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 hardcode_into_libs=yes
8990 ;;
8991
8992hpux9* | hpux10* | hpux11*)
8993 # Give a soname corresponding to the major version so that dld.sl refuses to
8994 # link against other versions.
8995 version_type=sunos
8996 need_lib_prefix=no
8997 need_version=no
8998 case $host_cpu in
8999 ia64*)
9000 shrext_cmds='.so'
9001 hardcode_into_libs=yes
9002 dynamic_linker="$host_os dld.so"
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 if test "X$HPUX_IA64_MODE" = X32; then
9008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9009 else
9010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9011 fi
9012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9013 ;;
9014 hppa*64*)
9015 shrext_cmds='.sl'
9016 hardcode_into_libs=yes
9017 dynamic_linker="$host_os dld.sl"
9018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9024 ;;
9025 *)
9026 shrext_cmds='.sl'
9027 dynamic_linker="$host_os dld.sl"
9028 shlibpath_var=SHLIB_PATH
9029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031 soname_spec='${libname}${release}${shared_ext}$major'
9032 ;;
9033 esac
9034 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9035 postinstall_cmds='chmod 555 $lib'
9036 ;;
9037
9038interix[3-9]*)
9039 version_type=linux
9040 need_lib_prefix=no
9041 need_version=no
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 shlibpath_overrides_runpath=no
9047 hardcode_into_libs=yes
9048 ;;
9049
9050irix5* | irix6* | nonstopux*)
9051 case $host_os in
9052 nonstopux*) version_type=nonstopux ;;
9053 *)
9054 if test "$lt_cv_prog_gnu_ld" = yes; then
9055 version_type=linux
9056 else
9057 version_type=irix
9058 fi ;;
9059 esac
9060 need_lib_prefix=no
9061 need_version=no
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 case $host_os in
9065 irix5* | nonstopux*)
9066 libsuff= shlibsuff=
9067 ;;
9068 *)
9069 case $LD in # libtool.m4 will add one of these switches to LD
9070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9071 libsuff= shlibsuff= libmagic=32-bit;;
9072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9073 libsuff=32 shlibsuff=N32 libmagic=N32;;
9074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9076 *) libsuff= shlibsuff= libmagic=never-match;;
9077 esac
9078 ;;
9079 esac
9080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9081 shlibpath_overrides_runpath=no
9082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9084 hardcode_into_libs=yes
9085 ;;
9086
9087# No shared lib support for Linux oldld, aout, or coff.
9088linux*oldld* | linux*aout* | linux*coff*)
9089 dynamic_linker=no
9090 ;;
9091
9092# This must be Linux ELF.
9093linux* | k*bsd*-gnu)
9094 version_type=linux
9095 need_lib_prefix=no
9096 need_version=no
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 shlibpath_overrides_runpath=no
9102 # Some binutils ld are patched to set DT_RUNPATH
9103 save_LDFLAGS=$LDFLAGS
9104 save_libdir=$libdir
9105 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9106 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9107 cat >conftest.$ac_ext <<_ACEOF
9108/* confdefs.h. */
9109_ACEOF
9110cat confdefs.h >>conftest.$ac_ext
9111cat >>conftest.$ac_ext <<_ACEOF
9112/* end confdefs.h. */
9113
9114int
9115main ()
9116{
9117
9118 ;
9119 return 0;
9120}
9121_ACEOF
9122rm -f conftest.$ac_objext conftest$ac_exeext
9123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9124 (eval $ac_link) 2>conftest.er1
9125 ac_status=$?
9126 grep -v '^ *+' conftest.er1 >conftest.err
9127 rm -f conftest.er1
9128 cat conftest.err >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try='test -z "$ac_c_werror_flag"
9132 || test ! -s conftest.err'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; } &&
9138 { ac_try='test -s conftest$ac_exeext'
9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 (eval $ac_try) 2>&5
9141 ac_status=$?
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; }; then
9144 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9145 shlibpath_overrides_runpath=yes
9146fi
9147
9148else
9149 echo "$as_me: failed program was:" >&5
9150sed 's/^/| /' conftest.$ac_ext >&5
9151
9152fi
9153rm -f conftest.err conftest.$ac_objext \
9154 conftest$ac_exeext conftest.$ac_ext
9155 LDFLAGS=$save_LDFLAGS
9156 libdir=$save_libdir
9157
9158 # This implies no fast_install, which is unacceptable.
9159 # Some rework will be needed to allow for fast_install
9160 # before this can be enabled.
9161 hardcode_into_libs=yes
9162
9163 # Append ld.so.conf contents to the search path
9164 if test -f /etc/ld.so.conf; then
9165 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' ' '`
9166 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9167 fi
9168
9169 # We used to test for /lib/ld.so.1 and disable shared libraries on
9170 # powerpc, because MkLinux only supported shared libraries with the
9171 # GNU dynamic linker. Since this was broken with cross compilers,
9172 # most powerpc-linux boxes support dynamic linking these days and
9173 # people can always --disable-shared, the test was removed, and we
9174 # assume the GNU/Linux dynamic linker is in use.
9175 dynamic_linker='GNU/Linux ld.so'
9176 ;;
9177
9178netbsd*)
9179 version_type=sunos
9180 need_lib_prefix=no
9181 need_version=no
9182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9185 dynamic_linker='NetBSD (a.out) ld.so'
9186 else
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 dynamic_linker='NetBSD ld.elf_so'
9190 fi
9191 shlibpath_var=LD_LIBRARY_PATH
9192 shlibpath_overrides_runpath=yes
9193 hardcode_into_libs=yes
9194 ;;
9195
9196newsos6)
9197 version_type=linux
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9201 ;;
9202
9203*nto* | *qnx*)
9204 version_type=qnx
9205 need_lib_prefix=no
9206 need_version=no
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9208 soname_spec='${libname}${release}${shared_ext}$major'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 shlibpath_overrides_runpath=no
9211 hardcode_into_libs=yes
9212 dynamic_linker='ldqnx.so'
9213 ;;
9214
9215openbsd*)
9216 version_type=sunos
9217 sys_lib_dlsearch_path_spec="/usr/lib"
9218 need_lib_prefix=no
9219 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9220 case $host_os in
9221 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9222 *) need_version=no ;;
9223 esac
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9228 case $host_os in
9229 openbsd2.[89] | openbsd2.[89].*)
9230 shlibpath_overrides_runpath=no
9231 ;;
9232 *)
9233 shlibpath_overrides_runpath=yes
9234 ;;
9235 esac
9236 else
9237 shlibpath_overrides_runpath=yes
9238 fi
9239 ;;
9240
9241os2*)
9242 libname_spec='$name'
9243 shrext_cmds=".dll"
9244 need_lib_prefix=no
9245 library_names_spec='$libname${shared_ext} $libname.a'
9246 dynamic_linker='OS/2 ld.exe'
9247 shlibpath_var=LIBPATH
9248 ;;
9249
9250osf3* | osf4* | osf5*)
9251 version_type=osf
9252 need_lib_prefix=no
9253 need_version=no
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9259 ;;
9260
9261rdos*)
9262 dynamic_linker=no
9263 ;;
9264
9265solaris*)
9266 version_type=linux
9267 need_lib_prefix=no
9268 need_version=no
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 shlibpath_overrides_runpath=yes
9273 hardcode_into_libs=yes
9274 # ldd complains unless libraries are executable
9275 postinstall_cmds='chmod +x $lib'
9276 ;;
9277
9278sunos4*)
9279 version_type=sunos
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=yes
9284 if test "$with_gnu_ld" = yes; then
9285 need_lib_prefix=no
9286 fi
9287 need_version=yes
9288 ;;
9289
9290sysv4 | sysv4.3*)
9291 version_type=linux
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 case $host_vendor in
9296 sni)
9297 shlibpath_overrides_runpath=no
9298 need_lib_prefix=no
9299 runpath_var=LD_RUN_PATH
9300 ;;
9301 siemens)
9302 need_lib_prefix=no
9303 ;;
9304 motorola)
9305 need_lib_prefix=no
9306 need_version=no
9307 shlibpath_overrides_runpath=no
9308 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9309 ;;
9310 esac
9311 ;;
9312
9313sysv4*MP*)
9314 if test -d /usr/nec ;then
9315 version_type=linux
9316 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9317 soname_spec='$libname${shared_ext}.$major'
9318 shlibpath_var=LD_LIBRARY_PATH
9319 fi
9320 ;;
9321
9322sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9323 version_type=freebsd-elf
9324 need_lib_prefix=no
9325 need_version=no
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=yes
9330 hardcode_into_libs=yes
9331 if test "$with_gnu_ld" = yes; then
9332 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9333 else
9334 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9335 case $host_os in
9336 sco3.2v5*)
9337 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9338 ;;
9339 esac
9340 fi
9341 sys_lib_dlsearch_path_spec='/usr/lib'
9342 ;;
9343
9344tpf*)
9345 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9346 version_type=linux
9347 need_lib_prefix=no
9348 need_version=no
9349 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350 shlibpath_var=LD_LIBRARY_PATH
9351 shlibpath_overrides_runpath=no
9352 hardcode_into_libs=yes
9353 ;;
9354
9355uts4*)
9356 version_type=linux
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358 soname_spec='${libname}${release}${shared_ext}$major'
9359 shlibpath_var=LD_LIBRARY_PATH
9360 ;;
9361
9362*)
9363 dynamic_linker=no
9364 ;;
9365esac
9366echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9367echo "${ECHO_T}$dynamic_linker" >&6
9368test "$dynamic_linker" = no && can_build_shared=no
9369
9370variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9371if test "$GCC" = yes; then
9372 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9373fi
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9462echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9463hardcode_action=
9464if test -n "$hardcode_libdir_flag_spec" ||
9465 test -n "$runpath_var" ||
9466 test "X$hardcode_automatic" = "Xyes" ; then
9467
9468 # We can hardcode non-existent directories.
9469 if test "$hardcode_direct" != no &&
9470 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9471 # have to relink, otherwise we might link with an installed library
9472 # when we should be linking with a yet-to-be-installed one
9473 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9474 test "$hardcode_minus_L" != no; then
9475 # Linking always hardcodes the temporary library directory.
9476 hardcode_action=relink
9477 else
9478 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9479 hardcode_action=immediate
9480 fi
9481else
9482 # We cannot hardcode anything, or else we can only hardcode existing
9483 # directories.
9484 hardcode_action=unsupported
9485fi
9486echo "$as_me:$LINENO: result: $hardcode_action" >&5
9487echo "${ECHO_T}$hardcode_action" >&6
9488
9489if test "$hardcode_action" = relink ||
9490 test "$inherit_rpath" = yes; then
9491 # Fast installation is not supported
9492 enable_fast_install=no
9493elif test "$shlibpath_overrides_runpath" = yes ||
9494 test "$enable_shared" = no; then
9495 # Fast installation is not necessary
9496 enable_fast_install=needless
9497fi
9498
9499
9500
9501
9502
9503
9504 if test "x$enable_dlopen" != xyes; then
9505 enable_dlopen=unknown
9506 enable_dlopen_self=unknown
9507 enable_dlopen_self_static=unknown
9508else
9509 lt_cv_dlopen=no
9510 lt_cv_dlopen_libs=
9511
9512 case $host_os in
9513 beos*)
9514 lt_cv_dlopen="load_add_on"
9515 lt_cv_dlopen_libs=
9516 lt_cv_dlopen_self=yes
9517 ;;
9518
9519 mingw* | pw32*)
9520 lt_cv_dlopen="LoadLibrary"
9521 lt_cv_dlopen_libs=
9522 ;;
9523
9524 cygwin*)
9525 lt_cv_dlopen="dlopen"
9526 lt_cv_dlopen_libs=
9527 ;;
9528
9529 darwin*)
9530 # if libdl is installed we need to link against it
9531 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9532echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9533if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9535else
9536 ac_check_lib_save_LIBS=$LIBS
9537LIBS="-ldl $LIBS"
9538cat >conftest.$ac_ext <<_ACEOF
9539/* confdefs.h. */
9540_ACEOF
9541cat confdefs.h >>conftest.$ac_ext
9542cat >>conftest.$ac_ext <<_ACEOF
9543/* end confdefs.h. */
9544
9545/* Override any gcc2 internal prototype to avoid an error. */
9546#ifdef __cplusplus
9547extern "C"
9548#endif
9549/* We use char because int might match the return type of a gcc2
9550 builtin and then its argument prototype would still apply. */
9551char dlopen ();
9552int
9553main ()
9554{
9555dlopen ();
9556 ;
9557 return 0;
9558}
9559_ACEOF
9560rm -f conftest.$ac_objext conftest$ac_exeext
9561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9562 (eval $ac_link) 2>conftest.er1
9563 ac_status=$?
9564 grep -v '^ *+' conftest.er1 >conftest.err
9565 rm -f conftest.er1
9566 cat conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -z "$ac_c_werror_flag"
9570 || test ! -s conftest.err'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 (eval $ac_try) 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 (eval $ac_try) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_cv_lib_dl_dlopen=yes
9583else
9584 echo "$as_me: failed program was:" >&5
9585sed 's/^/| /' conftest.$ac_ext >&5
9586
9587ac_cv_lib_dl_dlopen=no
9588fi
9589rm -f conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591LIBS=$ac_check_lib_save_LIBS
9592fi
9593echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9594echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9595if test $ac_cv_lib_dl_dlopen = yes; then
9596 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9597else
9598
9599 lt_cv_dlopen="dyld"
9600 lt_cv_dlopen_libs=
9601 lt_cv_dlopen_self=yes
9602
9603fi
9604
9605 ;;
9606
9607 *)
9608 echo "$as_me:$LINENO: checking for shl_load" >&5
9609echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9610if test "${ac_cv_func_shl_load+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612else
9613 cat >conftest.$ac_ext <<_ACEOF
9614/* confdefs.h. */
9615_ACEOF
9616cat confdefs.h >>conftest.$ac_ext
9617cat >>conftest.$ac_ext <<_ACEOF
9618/* end confdefs.h. */
9619/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9621#define shl_load innocuous_shl_load
9622
9623/* System header to define __stub macros and hopefully few prototypes,
9624 which can conflict with char shl_load (); below.
9625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9626 <limits.h> exists even on freestanding compilers. */
9627
9628#ifdef __STDC__
9629# include <limits.h>
9630#else
9631# include <assert.h>
9632#endif
9633
9634#undef shl_load
9635
9636/* Override any gcc2 internal prototype to avoid an error. */
9637#ifdef __cplusplus
9638extern "C"
9639{
9640#endif
9641/* We use char because int might match the return type of a gcc2
9642 builtin and then its argument prototype would still apply. */
9643char shl_load ();
9644/* The GNU C library defines this for functions which it implements
9645 to always fail with ENOSYS. Some functions are actually named
9646 something starting with __ and the normal name is an alias. */
9647#if defined (__stub_shl_load) || defined (__stub___shl_load)
9648choke me
9649#else
9650char (*f) () = shl_load;
9651#endif
9652#ifdef __cplusplus
9653}
9654#endif
9655
9656int
9657main ()
9658{
9659return f != shl_load;
9660 ;
9661 return 0;
9662}
9663_ACEOF
9664rm -f conftest.$ac_objext conftest$ac_exeext
9665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666 (eval $ac_link) 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -z "$ac_c_werror_flag"
9674 || test ! -s conftest.err'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 (eval $ac_try) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; } &&
9680 { ac_try='test -s conftest$ac_exeext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 (eval $ac_try) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_cv_func_shl_load=yes
9687else
9688 echo "$as_me: failed program was:" >&5
9689sed 's/^/| /' conftest.$ac_ext >&5
9690
9691ac_cv_func_shl_load=no
9692fi
9693rm -f conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
9695fi
9696echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9697echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9698if test $ac_cv_func_shl_load = yes; then
9699 lt_cv_dlopen="shl_load"
9700else
9701 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9702echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9703if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9705else
9706 ac_check_lib_save_LIBS=$LIBS
9707LIBS="-ldld $LIBS"
9708cat >conftest.$ac_ext <<_ACEOF
9709/* confdefs.h. */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h. */
9714
9715/* Override any gcc2 internal prototype to avoid an error. */
9716#ifdef __cplusplus
9717extern "C"
9718#endif
9719/* We use char because int might match the return type of a gcc2
9720 builtin and then its argument prototype would still apply. */
9721char shl_load ();
9722int
9723main ()
9724{
9725shl_load ();
9726 ;
9727 return 0;
9728}
9729_ACEOF
9730rm -f conftest.$ac_objext conftest$ac_exeext
9731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9732 (eval $ac_link) 2>conftest.er1
9733 ac_status=$?
9734 grep -v '^ *+' conftest.er1 >conftest.err
9735 rm -f conftest.er1
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -z "$ac_c_werror_flag"
9740 || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 (eval $ac_try) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest$ac_exeext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 ac_cv_lib_dld_shl_load=yes
9753else
9754 echo "$as_me: failed program was:" >&5
9755sed 's/^/| /' conftest.$ac_ext >&5
9756
9757ac_cv_lib_dld_shl_load=no
9758fi
9759rm -f conftest.err conftest.$ac_objext \
9760 conftest$ac_exeext conftest.$ac_ext
9761LIBS=$ac_check_lib_save_LIBS
9762fi
9763echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9764echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9765if test $ac_cv_lib_dld_shl_load = yes; then
9766 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9767else
9768 echo "$as_me:$LINENO: checking for dlopen" >&5
9769echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9770if test "${ac_cv_func_dlopen+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773 cat >conftest.$ac_ext <<_ACEOF
9774/* confdefs.h. */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h. */
9779/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9781#define dlopen innocuous_dlopen
9782
9783/* System header to define __stub macros and hopefully few prototypes,
9784 which can conflict with char dlopen (); below.
9785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9786 <limits.h> exists even on freestanding compilers. */
9787
9788#ifdef __STDC__
9789# include <limits.h>
9790#else
9791# include <assert.h>
9792#endif
9793
9794#undef dlopen
9795
9796/* Override any gcc2 internal prototype to avoid an error. */
9797#ifdef __cplusplus
9798extern "C"
9799{
9800#endif
9801/* We use char because int might match the return type of a gcc2
9802 builtin and then its argument prototype would still apply. */
9803char dlopen ();
9804/* The GNU C library defines this for functions which it implements
9805 to always fail with ENOSYS. Some functions are actually named
9806 something starting with __ and the normal name is an alias. */
9807#if defined (__stub_dlopen) || defined (__stub___dlopen)
9808choke me
9809#else
9810char (*f) () = dlopen;
9811#endif
9812#ifdef __cplusplus
9813}
9814#endif
9815
9816int
9817main ()
9818{
9819return f != dlopen;
9820 ;
9821 return 0;
9822}
9823_ACEOF
9824rm -f conftest.$ac_objext conftest$ac_exeext
9825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9826 (eval $ac_link) 2>conftest.er1
9827 ac_status=$?
9828 grep -v '^ *+' conftest.er1 >conftest.err
9829 rm -f conftest.er1
9830 cat conftest.err >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } &&
9833 { ac_try='test -z "$ac_c_werror_flag"
9834 || test ! -s conftest.err'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 (eval $ac_try) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try='test -s conftest$ac_exeext'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 (eval $ac_try) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_cv_func_dlopen=yes
9847else
9848 echo "$as_me: failed program was:" >&5
9849sed 's/^/| /' conftest.$ac_ext >&5
9850
9851ac_cv_func_dlopen=no
9852fi
9853rm -f conftest.err conftest.$ac_objext \
9854 conftest$ac_exeext conftest.$ac_ext
9855fi
9856echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9857echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9858if test $ac_cv_func_dlopen = yes; then
9859 lt_cv_dlopen="dlopen"
9860else
9861 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9862echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9863if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865else
9866 ac_check_lib_save_LIBS=$LIBS
9867LIBS="-ldl $LIBS"
9868cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
9874
9875/* Override any gcc2 internal prototype to avoid an error. */
9876#ifdef __cplusplus
9877extern "C"
9878#endif
9879/* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9881char dlopen ();
9882int
9883main ()
9884{
9885dlopen ();
9886 ;
9887 return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext conftest$ac_exeext
9891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_lib_dl_dlopen=yes
9913else
9914 echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
9917ac_cv_lib_dl_dlopen=no
9918fi
9919rm -f conftest.err conftest.$ac_objext \
9920 conftest$ac_exeext conftest.$ac_ext
9921LIBS=$ac_check_lib_save_LIBS
9922fi
9923echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9924echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9925if test $ac_cv_lib_dl_dlopen = yes; then
9926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9927else
9928 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9929echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9930if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932else
9933 ac_check_lib_save_LIBS=$LIBS
9934LIBS="-lsvld $LIBS"
9935cat >conftest.$ac_ext <<_ACEOF
9936/* confdefs.h. */
9937_ACEOF
9938cat confdefs.h >>conftest.$ac_ext
9939cat >>conftest.$ac_ext <<_ACEOF
9940/* end confdefs.h. */
9941
9942/* Override any gcc2 internal prototype to avoid an error. */
9943#ifdef __cplusplus
9944extern "C"
9945#endif
9946/* We use char because int might match the return type of a gcc2
9947 builtin and then its argument prototype would still apply. */
9948char dlopen ();
9949int
9950main ()
9951{
9952dlopen ();
9953 ;
9954 return 0;
9955}
9956_ACEOF
9957rm -f conftest.$ac_objext conftest$ac_exeext
9958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959 (eval $ac_link) 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try='test -z "$ac_c_werror_flag"
9967 || test ! -s conftest.err'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest$ac_exeext'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 (eval $ac_try) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_cv_lib_svld_dlopen=yes
9980else
9981 echo "$as_me: failed program was:" >&5
9982sed 's/^/| /' conftest.$ac_ext >&5
9983
9984ac_cv_lib_svld_dlopen=no
9985fi
9986rm -f conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988LIBS=$ac_check_lib_save_LIBS
9989fi
9990echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9991echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9992if test $ac_cv_lib_svld_dlopen = yes; then
9993 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9994else
9995 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9996echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9997if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999else
10000 ac_check_lib_save_LIBS=$LIBS
10001LIBS="-ldld $LIBS"
10002cat >conftest.$ac_ext <<_ACEOF
10003/* confdefs.h. */
10004_ACEOF
10005cat confdefs.h >>conftest.$ac_ext
10006cat >>conftest.$ac_ext <<_ACEOF
10007/* end confdefs.h. */
10008
10009/* Override any gcc2 internal prototype to avoid an error. */
10010#ifdef __cplusplus
10011extern "C"
10012#endif
10013/* We use char because int might match the return type of a gcc2
10014 builtin and then its argument prototype would still apply. */
10015char dld_link ();
10016int
10017main ()
10018{
10019dld_link ();
10020 ;
10021 return 0;
10022}
10023_ACEOF
10024rm -f conftest.$ac_objext conftest$ac_exeext
10025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026 (eval $ac_link) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_c_werror_flag"
10034 || test ! -s conftest.err'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_lib_dld_dld_link=yes
10047else
10048 echo "$as_me: failed program was:" >&5
10049sed 's/^/| /' conftest.$ac_ext >&5
10050
10051ac_cv_lib_dld_dld_link=no
10052fi
10053rm -f conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext conftest.$ac_ext
10055LIBS=$ac_check_lib_save_LIBS
10056fi
10057echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10058echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10059if test $ac_cv_lib_dld_dld_link = yes; then
10060 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10061fi
10062
10063
10064fi
10065
10066
10067fi
10068
10069
10070fi
10071
10072
10073fi
10074
10075
10076fi
10077
10078 ;;
10079 esac
10080
10081 if test "x$lt_cv_dlopen" != xno; then
10082 enable_dlopen=yes
20e95c23 10083 else
d7040cdb 10084 enable_dlopen=no
252b5132 10085 fi
5464f5a1 10086
d7040cdb
SE
10087 case $lt_cv_dlopen in
10088 dlopen)
10089 save_CPPFLAGS="$CPPFLAGS"
10090 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10091
10092 save_LDFLAGS="$LDFLAGS"
10093 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10094
10095 save_LIBS="$LIBS"
10096 LIBS="$lt_cv_dlopen_libs $LIBS"
10097
10098 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10099echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10100if test "${lt_cv_dlopen_self+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10102else
d7040cdb
SE
10103 if test "$cross_compiling" = yes; then :
10104 lt_cv_dlopen_self=cross
10105else
10106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10107 lt_status=$lt_dlunknown
10108 cat > conftest.$ac_ext <<_LT_EOF
504b7d20 10109#line 10109 "configure"
d7040cdb
SE
10110#include "confdefs.h"
10111
10112#if HAVE_DLFCN_H
10113#include <dlfcn.h>
10114#endif
10115
10116#include <stdio.h>
10117
10118#ifdef RTLD_GLOBAL
10119# define LT_DLGLOBAL RTLD_GLOBAL
10120#else
10121# ifdef DL_GLOBAL
10122# define LT_DLGLOBAL DL_GLOBAL
10123# else
10124# define LT_DLGLOBAL 0
10125# endif
10126#endif
10127
10128/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10129 find out it does not work in some platform. */
10130#ifndef LT_DLLAZY_OR_NOW
10131# ifdef RTLD_LAZY
10132# define LT_DLLAZY_OR_NOW RTLD_LAZY
10133# else
10134# ifdef DL_LAZY
10135# define LT_DLLAZY_OR_NOW DL_LAZY
10136# else
10137# ifdef RTLD_NOW
10138# define LT_DLLAZY_OR_NOW RTLD_NOW
10139# else
10140# ifdef DL_NOW
10141# define LT_DLLAZY_OR_NOW DL_NOW
10142# else
10143# define LT_DLLAZY_OR_NOW 0
10144# endif
10145# endif
10146# endif
10147# endif
10148#endif
10149
10150#ifdef __cplusplus
10151extern "C" void exit (int);
10152#endif
10153
10154void fnord() { int i=42;}
10155int main ()
10156{
10157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10158 int status = $lt_dlunknown;
10159
10160 if (self)
10161 {
10162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10163 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10164 /* dlclose (self); */
10165 }
10166 else
10167 puts (dlerror ());
10168
10169 exit (status);
10170}
10171_LT_EOF
10172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173 (eval $ac_link) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10177 (./conftest; exit; ) >&5 2>/dev/null
10178 lt_status=$?
10179 case x$lt_status in
10180 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10181 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10182 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10183 esac
10184 else :
10185 # compilation failed
10186 lt_cv_dlopen_self=no
10187 fi
252b5132 10188fi
d7040cdb 10189rm -fr conftest*
20e95c23 10190
d7040cdb
SE
10191
10192fi
10193echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10194echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10195
10196 if test "x$lt_cv_dlopen_self" = xyes; then
10197 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10198 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10199echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10200if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10202else
d7040cdb
SE
10203 if test "$cross_compiling" = yes; then :
10204 lt_cv_dlopen_self_static=cross
10205else
10206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10207 lt_status=$lt_dlunknown
10208 cat > conftest.$ac_ext <<_LT_EOF
504b7d20 10209#line 10209 "configure"
d7040cdb
SE
10210#include "confdefs.h"
10211
10212#if HAVE_DLFCN_H
10213#include <dlfcn.h>
10214#endif
10215
10216#include <stdio.h>
10217
10218#ifdef RTLD_GLOBAL
10219# define LT_DLGLOBAL RTLD_GLOBAL
10220#else
10221# ifdef DL_GLOBAL
10222# define LT_DLGLOBAL DL_GLOBAL
10223# else
10224# define LT_DLGLOBAL 0
10225# endif
10226#endif
10227
10228/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10229 find out it does not work in some platform. */
10230#ifndef LT_DLLAZY_OR_NOW
10231# ifdef RTLD_LAZY
10232# define LT_DLLAZY_OR_NOW RTLD_LAZY
10233# else
10234# ifdef DL_LAZY
10235# define LT_DLLAZY_OR_NOW DL_LAZY
10236# else
10237# ifdef RTLD_NOW
10238# define LT_DLLAZY_OR_NOW RTLD_NOW
10239# else
10240# ifdef DL_NOW
10241# define LT_DLLAZY_OR_NOW DL_NOW
10242# else
10243# define LT_DLLAZY_OR_NOW 0
10244# endif
10245# endif
10246# endif
10247# endif
10248#endif
10249
10250#ifdef __cplusplus
10251extern "C" void exit (int);
10252#endif
10253
10254void fnord() { int i=42;}
10255int main ()
10256{
10257 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10258 int status = $lt_dlunknown;
10259
10260 if (self)
10261 {
10262 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10263 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10264 /* dlclose (self); */
10265 }
10266 else
10267 puts (dlerror ());
10268
10269 exit (status);
10270}
10271_LT_EOF
10272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273 (eval $ac_link) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10277 (./conftest; exit; ) >&5 2>/dev/null
10278 lt_status=$?
10279 case x$lt_status in
10280 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10281 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10282 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10283 esac
10284 else :
10285 # compilation failed
10286 lt_cv_dlopen_self_static=no
10287 fi
10288fi
10289rm -fr conftest*
10290
10291
10292fi
10293echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10294echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10295 fi
10296
10297 CPPFLAGS="$save_CPPFLAGS"
10298 LDFLAGS="$save_LDFLAGS"
10299 LIBS="$save_LIBS"
10300 ;;
10301 esac
10302
10303 case $lt_cv_dlopen_self in
10304 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10305 *) enable_dlopen_self=unknown ;;
10306 esac
10307
10308 case $lt_cv_dlopen_self_static in
10309 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10310 *) enable_dlopen_self_static=unknown ;;
10311 esac
10312fi
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330striplib=
10331old_striplib=
10332echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10333echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10334if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10335 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10336 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10337 echo "$as_me:$LINENO: result: yes" >&5
10338echo "${ECHO_T}yes" >&6
10339else
10340# FIXME - insert some real tests, host_os isn't really good enough
10341 case $host_os in
10342 darwin*)
10343 if test -n "$STRIP" ; then
10344 striplib="$STRIP -x"
10345 old_striplib="$STRIP -S"
10346 echo "$as_me:$LINENO: result: yes" >&5
10347echo "${ECHO_T}yes" >&6
10348 else
10349 echo "$as_me:$LINENO: result: no" >&5
10350echo "${ECHO_T}no" >&6
10351 fi
20e95c23
DJ
10352 ;;
10353 *)
d7040cdb
SE
10354 echo "$as_me:$LINENO: result: no" >&5
10355echo "${ECHO_T}no" >&6
10356 ;;
10357 esac
10358fi
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371 # Report which library types will actually be built
10372 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10373echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10374 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10375echo "${ECHO_T}$can_build_shared" >&6
10376
10377 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10378echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10379 test "$can_build_shared" = "no" && enable_shared=no
10380
10381 # On AIX, shared libraries and static libraries use the same namespace, and
10382 # are all built from PIC.
10383 case $host_os in
10384 aix3*)
10385 test "$enable_shared" = yes && enable_static=no
10386 if test -n "$RANLIB"; then
10387 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10388 postinstall_cmds='$RANLIB $lib'
10389 fi
10390 ;;
10391
10392 aix4* | aix5*)
10393 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10394 test "$enable_shared" = yes && enable_static=no
10395 fi
20e95c23 10396 ;;
d7040cdb
SE
10397 esac
10398 echo "$as_me:$LINENO: result: $enable_shared" >&5
10399echo "${ECHO_T}$enable_shared" >&6
10400
10401 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10402echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10403 # Make sure either enable_shared or enable_static is yes.
10404 test "$enable_shared" = yes || enable_static=yes
10405 echo "$as_me:$LINENO: result: $enable_static" >&5
10406echo "${ECHO_T}$enable_static" >&6
10407
10408
10409
10410
10411fi
10412ac_ext=c
10413ac_cpp='$CPP $CPPFLAGS'
10414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10416ac_compiler_gnu=$ac_cv_c_compiler_gnu
10417
10418CC="$lt_save_CC"
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432 ac_config_commands="$ac_config_commands libtool"
10433
10434
10435
10436
10437# Only expand once:
10438
10439
10440
10441# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10442if test "${enable_64_bit_bfd+set}" = set; then
10443 enableval="$enable_64_bit_bfd"
10444 case "${enableval}" in
10445 yes) want64=true ;;
10446 no) want64=false ;;
10447 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10448echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10449 { (exit 1); exit 1; }; } ;;
10450esac
10451else
10452 want64=false
504b7d20
NC
10453fi;
10454# Check whether --enable-targets or --disable-targets was given.
d7040cdb
SE
10455if test "${enable_targets+set}" = set; then
10456 enableval="$enable_targets"
10457 case "${enableval}" in
10458 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10459echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10460 { (exit 1); exit 1; }; }
10461 ;;
10462 no) enable_targets= ;;
10463 *) enable_targets=$enableval ;;
10464esac
504b7d20
NC
10465fi;
10466# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
d7040cdb
SE
10467if test "${enable_commonbfdlib+set}" = set; then
10468 enableval="$enable_commonbfdlib"
10469 case "${enableval}" in
10470 yes) commonbfdlib=true ;;
10471 no) commonbfdlib=false ;;
10472 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10473echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10474 { (exit 1); exit 1; }; } ;;
10475esac
10476fi;
504b7d20 10477
d7040cdb
SE
10478# Check whether --with-mmap or --without-mmap was given.
10479if test "${with_mmap+set}" = set; then
10480 withval="$with_mmap"
10481 case "${withval}" in
10482 yes) want_mmap=true ;;
10483 no) want_mmap=false ;;
10484 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10485echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10486 { (exit 1); exit 1; }; } ;;
20e95c23 10487esac
252b5132 10488else
d7040cdb
SE
10489 want_mmap=false
10490fi;
10491# Check whether --enable-secureplt or --disable-secureplt was given.
10492if test "${enable_secureplt+set}" = set; then
10493 enableval="$enable_secureplt"
10494 case "${enableval}" in
10495 yes) use_secureplt=true ;;
10496 no) use_secureplt=false ;;
10497 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10498echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10499 { (exit 1); exit 1; }; } ;;
10500esac
252b5132 10501else
d7040cdb
SE
10502 use_secureplt=false
10503fi; if test $use_secureplt = true; then
10504
10505cat >>confdefs.h <<\_ACEOF
10506#define USE_SECUREPLT 1
10507_ACEOF
5464f5a1 10508
252b5132 10509fi
20e95c23 10510
0d4a1476
AS
10511DEBUGDIR=${libdir}/debug
10512
0d4a1476
AS
10513# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10514if test "${with_separate_debug_dir+set}" = set; then
10515 withval="$with_separate_debug_dir"
10516 DEBUGDIR="${withval}"
10517fi;
10518
10519
504b7d20
NC
10520# Check to see if we should allow the generation of
10521# symbols with the ELF standard's STT_COMMON type.
10522# Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
10523if test "${enable_elf_stt_common+set}" = set; then
10524 enableval="$enable_elf_stt_common"
10525 case "${enableval}" in
10526 yes) want_elf_stt_common=true ;;
10527 no) want_elf_stt_common=false ;;
10528 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
10529echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
10530 { (exit 1); exit 1; }; } ;;
10531 esac
10532else
10533 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
10534# test whether the loader supports the STT_COMMON type, but that would
10535# mean that built binaries could not be exported to older systems where
10536# the loader does not support it. So by default we always choose to
10537# disable this feature.
504b7d20 10538 want_elf_stt_common=false
504b7d20
NC
10539fi; if test $want_elf_stt_common = true; then
10540
10541cat >>confdefs.h <<\_ACEOF
10542#define USE_STT_COMMON 1
10543_ACEOF
10544
10545fi
10546
10547
d7040cdb 10548
d7040cdb
SE
10549# Check whether --with-pkgversion or --without-pkgversion was given.
10550if test "${with_pkgversion+set}" = set; then
10551 withval="$with_pkgversion"
10552 case "$withval" in
10553 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10554echo "$as_me: error: package version not specified" >&2;}
10555 { (exit 1); exit 1; }; } ;;
10556 no) PKGVERSION= ;;
10557 *) PKGVERSION="($withval) " ;;
10558 esac
252b5132 10559else
d7040cdb 10560 PKGVERSION="(GNU Binutils) "
252b5132 10561
d7040cdb 10562fi;
20e95c23
DJ
10563
10564
5464f5a1 10565
20e95c23 10566
d7040cdb
SE
10567# Check whether --with-bugurl or --without-bugurl was given.
10568if test "${with_bugurl+set}" = set; then
10569 withval="$with_bugurl"
10570 case "$withval" in
10571 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10572echo "$as_me: error: bug URL not specified" >&2;}
10573 { (exit 1); exit 1; }; } ;;
10574 no) BUGURL=
10575 ;;
10576 *) BUGURL="$withval"
10577 ;;
10578 esac
252b5132 10579else
d7040cdb
SE
10580 BUGURL="http://www.sourceware.org/bugzilla/"
10581
10582fi;
10583 case ${BUGURL} in
10584 "")
10585 REPORT_BUGS_TO=
10586 REPORT_BUGS_TEXI=
20e95c23
DJ
10587 ;;
10588 *)
d7040cdb
SE
10589 REPORT_BUGS_TO="<$BUGURL>"
10590 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 10591 ;;
d7040cdb
SE
10592 esac;
10593
10594
10595
10596
10597
10598GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10599
10600# Check whether --enable-werror or --disable-werror was given.
10601if test "${enable_werror+set}" = set; then
10602 enableval="$enable_werror"
10603 case "${enableval}" in
10604 yes | y) ERROR_ON_WARNING="yes" ;;
10605 no | n) ERROR_ON_WARNING="no" ;;
10606 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10607echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10608 { (exit 1); exit 1; }; } ;;
10609 esac
10610fi;
10611
10612# Enable -Werror by default when using gcc
10613if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10614 ERROR_ON_WARNING=yes
10615fi
10616
10617NO_WERROR=
10618if test "${ERROR_ON_WARNING}" = yes ; then
10619 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10620 NO_WERROR="-Wno-error"
10621fi
10622
10623if test "${GCC}" = yes ; then
10624 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10625fi
10626
10627# Check whether --enable-build-warnings or --disable-build-warnings was given.
10628if test "${enable_build_warnings+set}" = set; then
10629 enableval="$enable_build_warnings"
10630 case "${enableval}" in
10631 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10632 no) if test "${GCC}" = yes ; then
10633 WARN_CFLAGS="-w"
10634 fi;;
10635 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10636 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10637 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10638 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10639 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 10640esac
d7040cdb
SE
10641fi;
10642
10643if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10644 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 10645fi
d7040cdb
SE
10646
10647
10648
10649
10650
10651 ac_config_headers="$ac_config_headers config.h:config.in"
10652
10653
10654if test -z "$target" ; then
10655 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10656echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10657 { (exit 1); exit 1; }; }
20e95c23
DJ
10658fi
10659
d7040cdb
SE
10660echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10661echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10662 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10663if test "${enable_maintainer_mode+set}" = set; then
10664 enableval="$enable_maintainer_mode"
10665 USE_MAINTAINER_MODE=$enableval
10666else
10667 USE_MAINTAINER_MODE=no
10668fi;
10669 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10670echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
10671
10672
d7040cdb
SE
10673if test $USE_MAINTAINER_MODE = yes; then
10674 MAINTAINER_MODE_TRUE=
10675 MAINTAINER_MODE_FALSE='#'
10676else
10677 MAINTAINER_MODE_TRUE='#'
10678 MAINTAINER_MODE_FALSE=
6be7c12c 10679fi
5464f5a1 10680
d7040cdb
SE
10681 MAINT=$MAINTAINER_MODE_TRUE
10682
10683
10684
10685
10686if false; then
10687 GENINSRC_NEVER_TRUE=
10688 GENINSRC_NEVER_FALSE='#'
20e95c23 10689else
d7040cdb
SE
10690 GENINSRC_NEVER_TRUE='#'
10691 GENINSRC_NEVER_FALSE=
5464f5a1 10692fi
5464f5a1 10693
d7040cdb
SE
10694 case ${build_alias} in
10695 "") build_noncanonical=${build} ;;
10696 *) build_noncanonical=${build_alias} ;;
20e95c23 10697esac
d7040cdb
SE
10698
10699 case ${host_alias} in
10700 "") host_noncanonical=${build_noncanonical} ;;
10701 *) host_noncanonical=${host_alias} ;;
10702esac
10703
10704 case ${target_alias} in
10705 "") target_noncanonical=${host_noncanonical} ;;
10706 *) target_noncanonical=${target_alias} ;;
10707esac
10708
10709echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10710echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10711 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10712if test "${enable_install_libbfd+set}" = set; then
10713 enableval="$enable_install_libbfd"
10714 install_libbfd_p=$enableval
252b5132 10715else
d7040cdb
SE
10716 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10717 install_libbfd_p=yes
10718 else
10719 install_libbfd_p=no
10720 fi
10721fi;
10722 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10723echo "${ECHO_T}$install_libbfd_p" >&6
10724
10725
10726if test $install_libbfd_p = yes; then
10727 INSTALL_LIBBFD_TRUE=
10728 INSTALL_LIBBFD_FALSE='#'
10729else
10730 INSTALL_LIBBFD_TRUE='#'
10731 INSTALL_LIBBFD_FALSE=
5464f5a1 10732fi
5464f5a1 10733
d7040cdb 10734 # Need _noncanonical variables for this.
5464f5a1 10735
5464f5a1 10736
d7040cdb
SE
10737
10738
10739 # libbfd.a is a host library containing target dependent code
10740 bfdlibdir='$(libdir)'
10741 bfdincludedir='$(includedir)'
10742 if test "${host}" != "${target}"; then
10743 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10744 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 10745 fi
6be7c12c 10746
5464f5a1 10747
5464f5a1
NN
10748
10749
5464f5a1 10750
ac48eca1 10751
d7040cdb
SE
10752host64=false
10753target64=false
10754bfd_default_target_size=32
252b5132 10755
d7040cdb 10756# host stuff:
20e95c23 10757
041a1845 10758ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
d7040cdb
SE
10759# If we haven't got the data from the intl directory,
10760# assume NLS is disabled.
10761USE_NLS=no
10762LIBINTL=
10763LIBINTL_DEP=
10764INCINTL=
10765XGETTEXT=
10766GMSGFMT=
10767POSUB=
10768
10769if test -f ../intl/config.intl; then
10770 . ../intl/config.intl
252b5132 10771fi
d7040cdb
SE
10772echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10773echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10774if test x"$USE_NLS" != xyes; then
10775 echo "$as_me:$LINENO: result: no" >&5
10776echo "${ECHO_T}no" >&6
10777else
10778 echo "$as_me:$LINENO: result: yes" >&5
10779echo "${ECHO_T}yes" >&6
5464f5a1 10780
d7040cdb
SE
10781cat >>confdefs.h <<\_ACEOF
10782#define ENABLE_NLS 1
10783_ACEOF
252b5132 10784
6be7c12c 10785
d7040cdb
SE
10786 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10787echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10788 # Look for .po and .gmo files in the source directory.
10789 CATALOGS=
10790 XLINGUAS=
10791 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10792 # If there aren't any .gmo files the shell will give us the
10793 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10794 # weeded out.
10795 case "$cat" in *\**)
10796 continue;;
10797 esac
10798 # The quadruple backslash is collapsed to a double backslash
10799 # by the backticks, then collapsed again by the double quotes,
10800 # leaving us with one backslash in the sed expression (right
10801 # before the dot that mustn't act as a wildcard).
10802 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10803 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10804 # The user is allowed to set LINGUAS to a list of languages to
10805 # install catalogs for. If it's empty that means "all of them."
10806 if test "x$LINGUAS" = x; then
10807 CATALOGS="$CATALOGS $cat"
10808 XLINGUAS="$XLINGUAS $lang"
10809 else
10810 case "$LINGUAS" in *$lang*)
10811 CATALOGS="$CATALOGS $cat"
10812 XLINGUAS="$XLINGUAS $lang"
10813 ;;
10814 esac
10815 fi
10816 done
10817 LINGUAS="$XLINGUAS"
10818 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10819echo "${ECHO_T}$LINGUAS" >&6
10820
252b5132 10821
d7040cdb 10822 DATADIRNAME=share
252b5132 10823
d7040cdb 10824 INSTOBJEXT=.mo
5464f5a1 10825
d7040cdb 10826 GENCAT=gencat
20e95c23 10827
d7040cdb 10828 CATOBJEXT=.gmo
5464f5a1 10829
20e95c23 10830fi
5464f5a1 10831
d7040cdb
SE
10832 MKINSTALLDIRS=
10833 if test -n "$ac_aux_dir"; then
10834 case "$ac_aux_dir" in
10835 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10836 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10837 esac
10838 fi
10839 if test -z "$MKINSTALLDIRS"; then
10840 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 10841 fi
5464f5a1 10842
5464f5a1 10843
d7040cdb
SE
10844
10845 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10846echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10847 # Check whether --enable-nls or --disable-nls was given.
10848if test "${enable_nls+set}" = set; then
10849 enableval="$enable_nls"
10850 USE_NLS=$enableval
252b5132 10851else
d7040cdb
SE
10852 USE_NLS=yes
10853fi;
10854 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10855echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 10856
252b5132 10857
5464f5a1 10858
252b5132 10859
d7040cdb
SE
10860
10861
10862# Prepare PATH_SEPARATOR.
10863# The user is always right.
10864if test "${PATH_SEPARATOR+set}" != set; then
10865 echo "#! /bin/sh" >conf$$.sh
10866 echo "exit 0" >>conf$$.sh
10867 chmod +x conf$$.sh
10868 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10869 PATH_SEPARATOR=';'
20e95c23 10870 else
d7040cdb 10871 PATH_SEPARATOR=:
20e95c23 10872 fi
d7040cdb
SE
10873 rm -f conf$$.sh
10874fi
10875
10876# Find out how to test for executable files. Don't use a zero-byte file,
10877# as systems may use methods other than mode bits to determine executability.
10878cat >conf$$.file <<_ASEOF
10879#! /bin/sh
10880exit 0
10881_ASEOF
10882chmod +x conf$$.file
10883if test -x conf$$.file >/dev/null 2>&1; then
10884 ac_executable_p="test -x"
20e95c23 10885else
d7040cdb 10886 ac_executable_p="test -f"
20e95c23 10887fi
d7040cdb 10888rm -f conf$$.file
5464f5a1 10889
d7040cdb
SE
10890# Extract the first word of "msgfmt", so it can be a program name with args.
10891set dummy msgfmt; ac_word=$2
10892echo "$as_me:$LINENO: checking for $ac_word" >&5
10893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10894if test "${ac_cv_path_MSGFMT+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10896else
10897 case "$MSGFMT" in
10898 [\\/]* | ?:[\\/]*)
10899 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10900 ;;
10901 *)
10902 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10903 for ac_dir in $PATH; do
10904 IFS="$ac_save_IFS"
10905 test -z "$ac_dir" && ac_dir=.
10906 for ac_exec_ext in '' $ac_executable_extensions; do
10907 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10908 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10909 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10910 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10911 break 2
10912 fi
10913 fi
10914 done
10915 done
10916 IFS="$ac_save_IFS"
10917 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10918 ;;
10919esac
5464f5a1 10920fi
d7040cdb
SE
10921MSGFMT="$ac_cv_path_MSGFMT"
10922if test "$MSGFMT" != ":"; then
10923 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10924echo "${ECHO_T}$MSGFMT" >&6
20e95c23 10925else
d7040cdb
SE
10926 echo "$as_me:$LINENO: result: no" >&5
10927echo "${ECHO_T}no" >&6
252b5132 10928fi
d7040cdb
SE
10929
10930 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10931set dummy gmsgfmt; ac_word=$2
10932echo "$as_me:$LINENO: checking for $ac_word" >&5
10933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10934if test "${ac_cv_path_GMSGFMT+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10936else
d7040cdb
SE
10937 case $GMSGFMT in
10938 [\\/]* | ?:[\\/]*)
10939 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10940 ;;
10941 *)
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943for as_dir in $PATH
10944do
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10949 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10952 fi
10953done
10954done
5464f5a1 10955
d7040cdb
SE
10956 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10957 ;;
10958esac
252b5132 10959fi
d7040cdb 10960GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 10961
d7040cdb
SE
10962if test -n "$GMSGFMT"; then
10963 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10964echo "${ECHO_T}$GMSGFMT" >&6
252b5132 10965else
d7040cdb
SE
10966 echo "$as_me:$LINENO: result: no" >&5
10967echo "${ECHO_T}no" >&6
252b5132
RH
10968fi
10969
20e95c23
DJ
10970
10971
d7040cdb
SE
10972# Prepare PATH_SEPARATOR.
10973# The user is always right.
10974if test "${PATH_SEPARATOR+set}" != set; then
10975 echo "#! /bin/sh" >conf$$.sh
10976 echo "exit 0" >>conf$$.sh
10977 chmod +x conf$$.sh
10978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10979 PATH_SEPARATOR=';'
10980 else
10981 PATH_SEPARATOR=:
10982 fi
10983 rm -f conf$$.sh
252b5132 10984fi
20e95c23 10985
d7040cdb
SE
10986# Find out how to test for executable files. Don't use a zero-byte file,
10987# as systems may use methods other than mode bits to determine executability.
10988cat >conf$$.file <<_ASEOF
10989#! /bin/sh
10990exit 0
10991_ASEOF
10992chmod +x conf$$.file
10993if test -x conf$$.file >/dev/null 2>&1; then
10994 ac_executable_p="test -x"
10995else
10996 ac_executable_p="test -f"
10997fi
10998rm -f conf$$.file
252b5132 10999
d7040cdb
SE
11000# Extract the first word of "xgettext", so it can be a program name with args.
11001set dummy xgettext; ac_word=$2
11002echo "$as_me:$LINENO: checking for $ac_word" >&5
11003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11004if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006else
d7040cdb
SE
11007 case "$XGETTEXT" in
11008 [\\/]* | ?:[\\/]*)
11009 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11010 ;;
11011 *)
11012 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11013 for ac_dir in $PATH; do
11014 IFS="$ac_save_IFS"
11015 test -z "$ac_dir" && ac_dir=.
11016 for ac_exec_ext in '' $ac_executable_extensions; do
11017 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11018 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11019 (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
11020 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11021 break 2
11022 fi
11023 fi
11024 done
11025 done
11026 IFS="$ac_save_IFS"
11027 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11028 ;;
11029esac
11030fi
11031XGETTEXT="$ac_cv_path_XGETTEXT"
11032if test "$XGETTEXT" != ":"; then
11033 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11034echo "${ECHO_T}$XGETTEXT" >&6
252b5132 11035else
d7040cdb
SE
11036 echo "$as_me:$LINENO: result: no" >&5
11037echo "${ECHO_T}no" >&6
252b5132
RH
11038fi
11039
d7040cdb 11040 rm -f messages.po
5464f5a1 11041
252b5132 11042
d7040cdb
SE
11043# Prepare PATH_SEPARATOR.
11044# The user is always right.
11045if test "${PATH_SEPARATOR+set}" != set; then
11046 echo "#! /bin/sh" >conf$$.sh
11047 echo "exit 0" >>conf$$.sh
11048 chmod +x conf$$.sh
11049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11050 PATH_SEPARATOR=';'
11051 else
11052 PATH_SEPARATOR=:
11053 fi
11054 rm -f conf$$.sh
252b5132
RH
11055fi
11056
d7040cdb
SE
11057# Find out how to test for executable files. Don't use a zero-byte file,
11058# as systems may use methods other than mode bits to determine executability.
11059cat >conf$$.file <<_ASEOF
11060#! /bin/sh
11061exit 0
11062_ASEOF
11063chmod +x conf$$.file
11064if test -x conf$$.file >/dev/null 2>&1; then
11065 ac_executable_p="test -x"
5464f5a1 11066else
d7040cdb 11067 ac_executable_p="test -f"
20e95c23 11068fi
d7040cdb 11069rm -f conf$$.file
5464f5a1 11070
d7040cdb
SE
11071# Extract the first word of "msgmerge", so it can be a program name with args.
11072set dummy msgmerge; ac_word=$2
11073echo "$as_me:$LINENO: checking for $ac_word" >&5
11074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11075if test "${ac_cv_path_MSGMERGE+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077else
11078 case "$MSGMERGE" in
11079 [\\/]* | ?:[\\/]*)
11080 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11081 ;;
11082 *)
11083 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11084 for ac_dir in $PATH; do
11085 IFS="$ac_save_IFS"
11086 test -z "$ac_dir" && ac_dir=.
11087 for ac_exec_ext in '' $ac_executable_extensions; do
11088 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11089 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11090 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11091 break 2
11092 fi
11093 fi
11094 done
11095 done
11096 IFS="$ac_save_IFS"
11097 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11098 ;;
11099esac
5464f5a1 11100fi
d7040cdb
SE
11101MSGMERGE="$ac_cv_path_MSGMERGE"
11102if test "$MSGMERGE" != ":"; then
11103 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11104echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 11105else
d7040cdb
SE
11106 echo "$as_me:$LINENO: result: no" >&5
11107echo "${ECHO_T}no" >&6
11108fi
20e95c23 11109
5464f5a1 11110
d7040cdb
SE
11111 if test "$GMSGFMT" != ":"; then
11112 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11113 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11114 : ;
11115 else
11116 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11117 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11118echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11119 GMSGFMT=":"
11120 fi
11121 fi
252b5132 11122
d7040cdb
SE
11123 if test "$XGETTEXT" != ":"; then
11124 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11125 (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
11126 : ;
11127 else
11128 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11129echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11130 XGETTEXT=":"
11131 fi
11132 rm -f messages.po
11133 fi
6be7c12c 11134
d7040cdb 11135 ac_config_commands="$ac_config_commands default-1"
5464f5a1 11136
252b5132 11137
5464f5a1 11138
d7040cdb
SE
11139# Permit host specific settings.
11140. ${srcdir}/configure.host
11141
11142
11143# Find a good install program. We prefer a C program (faster),
11144# so one script is as good as another. But avoid the broken or
11145# incompatible versions:
11146# SysV /etc/install, /usr/sbin/install
11147# SunOS /usr/etc/install
11148# IRIX /sbin/install
11149# AIX /bin/install
11150# AmigaOS /C/install, which installs bootblocks on floppy discs
11151# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11152# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11153# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11154# OS/2's system install, which has a completely different semantic
11155# ./install, which can be erroneously created by make from ./install.sh.
11156echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11157echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11158if test -z "$INSTALL"; then
11159if test "${ac_cv_path_install+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161else
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163for as_dir in $PATH
11164do
11165 IFS=$as_save_IFS
11166 test -z "$as_dir" && as_dir=.
11167 # Account for people who put trailing slashes in PATH elements.
11168case $as_dir/ in
11169 ./ | .// | /cC/* | \
11170 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11171 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11172 /usr/ucb/* ) ;;
11173 *)
11174 # OSF1 and SCO ODT 3.0 have their own names for install.
11175 # Don't use installbsd from OSF since it installs stuff as root
11176 # by default.
11177 for ac_prog in ginstall scoinst install; do
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11180 if test $ac_prog = install &&
11181 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11182 # AIX install. It has an incompatible calling convention.
11183 :
11184 elif test $ac_prog = install &&
11185 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11186 # program-specific install script used by HP pwplus--don't use.
11187 :
11188 else
11189 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11190 break 3
11191 fi
11192 fi
11193 done
11194 done
11195 ;;
11196esac
11197done
11198
252b5132 11199
d7040cdb
SE
11200fi
11201 if test "${ac_cv_path_install+set}" = set; then
11202 INSTALL=$ac_cv_path_install
11203 else
11204 # As a last resort, use the slow shell script. We don't cache a
11205 # path for INSTALL within a source directory, because that will
11206 # break other packages using the cache if that directory is
11207 # removed, or if the path is relative.
11208 INSTALL=$ac_install_sh
11209 fi
11210fi
11211echo "$as_me:$LINENO: result: $INSTALL" >&5
11212echo "${ECHO_T}$INSTALL" >&6
5464f5a1 11213
d7040cdb
SE
11214# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11215# It thinks the first close brace ends the variable substitution.
11216test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 11217
d7040cdb 11218test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 11219
d7040cdb 11220test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 11221
252b5132 11222
d7040cdb 11223BFD_HOST_64BIT_LONG=0
d2df793a 11224BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
11225BFD_HOST_64_BIT_DEFINED=0
11226BFD_HOST_64_BIT=
11227BFD_HOST_U_64_BIT=
d2df793a 11228BFD_HOSTPTR_T="unsigned long"
6be7c12c 11229
d7040cdb
SE
11230echo "$as_me:$LINENO: checking for long long" >&5
11231echo $ECHO_N "checking for long long... $ECHO_C" >&6
2ba49b59 11232if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 11233 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11234else
5464f5a1
NN
11235 cat >conftest.$ac_ext <<_ACEOF
11236/* confdefs.h. */
11237_ACEOF
11238cat confdefs.h >>conftest.$ac_ext
11239cat >>conftest.$ac_ext <<_ACEOF
11240/* end confdefs.h. */
2ba49b59 11241$ac_includes_default
5464f5a1
NN
11242int
11243main ()
11244{
2ba49b59
KC
11245if ((long long *) 0)
11246 return 0;
11247if (sizeof (long long))
11248 return 0;
5464f5a1
NN
11249 ;
11250 return 0;
11251}
11252_ACEOF
11253rm -f conftest.$ac_objext
11254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11255 (eval $ac_compile) 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
49c96104
SE
11262 { ac_try='test -z "$ac_c_werror_flag"
11263 || test ! -s conftest.err'
5464f5a1
NN
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11266 ac_status=$?
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; } &&
11269 { ac_try='test -s conftest.$ac_objext'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
2ba49b59 11275 ac_cv_type_long_long=yes
6726e1ea 11276else
5464f5a1
NN
11277 echo "$as_me: failed program was:" >&5
11278sed 's/^/| /' conftest.$ac_ext >&5
11279
2ba49b59 11280ac_cv_type_long_long=no
6726e1ea 11281fi
5464f5a1 11282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 11283fi
2ba49b59
KC
11284echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11285echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 11286
2ba49b59
KC
11287echo "$as_me:$LINENO: checking size of long long" >&5
11288echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11289if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 11290 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11291else
2ba49b59
KC
11292 if test "$ac_cv_type_long_long" = yes; then
11293 # The cast to unsigned long works around a bug in the HP C Compiler
11294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11296 # This bug is HP SR number 8606223364.
11297 if test "$cross_compiling" = yes; then
11298 # Depending upon the size, compute the lo and hi bounds.
11299cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11300/* confdefs.h. */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h. */
2ba49b59
KC
11305$ac_includes_default
11306int
11307main ()
11308{
11309static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11310test_array [0] = 0
6726e1ea 11311
2ba49b59
KC
11312 ;
11313 return 0;
11314}
11315_ACEOF
11316rm -f conftest.$ac_objext
11317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11318 (eval $ac_compile) 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
49c96104
SE
11325 { ac_try='test -z "$ac_c_werror_flag"
11326 || test ! -s conftest.err'
2ba49b59
KC
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; } &&
11332 { ac_try='test -s conftest.$ac_objext'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 ac_lo=0 ac_mid=0
11339 while :; do
11340 cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h. */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h. */
11346$ac_includes_default
5464f5a1
NN
11347int
11348main ()
11349{
2ba49b59
KC
11350static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11351test_array [0] = 0
11352
5464f5a1
NN
11353 ;
11354 return 0;
11355}
11356_ACEOF
11357rm -f conftest.$ac_objext
11358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11359 (eval $ac_compile) 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
49c96104
SE
11366 { ac_try='test -z "$ac_c_werror_flag"
11367 || test ! -s conftest.err'
5464f5a1
NN
11368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369 (eval $ac_try) 2>&5
11370 ac_status=$?
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; } &&
11373 { ac_try='test -s conftest.$ac_objext'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
2ba49b59 11379 ac_hi=$ac_mid; break
6726e1ea 11380else
5464f5a1
NN
11381 echo "$as_me: failed program was:" >&5
11382sed 's/^/| /' conftest.$ac_ext >&5
11383
2ba49b59
KC
11384ac_lo=`expr $ac_mid + 1`
11385 if test $ac_lo -le $ac_mid; then
11386 ac_lo= ac_hi=
11387 break
11388 fi
11389 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 11390fi
5464f5a1 11391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 11392 done
252b5132 11393else
2ba49b59
KC
11394 echo "$as_me: failed program was:" >&5
11395sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 11396
5464f5a1
NN
11397cat >conftest.$ac_ext <<_ACEOF
11398/* confdefs.h. */
11399_ACEOF
11400cat confdefs.h >>conftest.$ac_ext
11401cat >>conftest.$ac_ext <<_ACEOF
11402/* end confdefs.h. */
11403$ac_includes_default
2ba49b59
KC
11404int
11405main ()
11406{
11407static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11408test_array [0] = 0
11409
11410 ;
11411 return 0;
11412}
5464f5a1
NN
11413_ACEOF
11414rm -f conftest.$ac_objext
11415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11416 (eval $ac_compile) 2>conftest.er1
11417 ac_status=$?
11418 grep -v '^ *+' conftest.er1 >conftest.err
11419 rm -f conftest.er1
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
49c96104
SE
11423 { ac_try='test -z "$ac_c_werror_flag"
11424 || test ! -s conftest.err'
5464f5a1
NN
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; } &&
11430 { ac_try='test -s conftest.$ac_objext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
2ba49b59
KC
11436 ac_hi=-1 ac_mid=-1
11437 while :; do
11438 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11439/* confdefs.h. */
11440_ACEOF
11441cat confdefs.h >>conftest.$ac_ext
11442cat >>conftest.$ac_ext <<_ACEOF
11443/* end confdefs.h. */
2ba49b59
KC
11444$ac_includes_default
11445int
11446main ()
11447{
11448static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11449test_array [0] = 0
11450
11451 ;
11452 return 0;
11453}
5464f5a1 11454_ACEOF
2ba49b59
KC
11455rm -f conftest.$ac_objext
11456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11457 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11458 ac_status=$?
11459 grep -v '^ *+' conftest.er1 >conftest.err
11460 rm -f conftest.er1
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 11463 (exit $ac_status); } &&
49c96104
SE
11464 { ac_try='test -z "$ac_c_werror_flag"
11465 || test ! -s conftest.err'
2ba49b59
KC
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest.$ac_objext'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_lo=$ac_mid; break
252b5132 11478else
2ba49b59
KC
11479 echo "$as_me: failed program was:" >&5
11480sed 's/^/| /' conftest.$ac_ext >&5
11481
11482ac_hi=`expr '(' $ac_mid ')' - 1`
11483 if test $ac_mid -le $ac_hi; then
11484 ac_lo= ac_hi=
11485 break
11486 fi
11487 ac_mid=`expr 2 '*' $ac_mid`
252b5132 11488fi
2ba49b59
KC
11489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11490 done
5464f5a1
NN
11491else
11492 echo "$as_me: failed program was:" >&5
11493sed 's/^/| /' conftest.$ac_ext >&5
11494
2ba49b59 11495ac_lo= ac_hi=
252b5132 11496fi
2ba49b59
KC
11497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11498fi
11499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11500# Binary search between lo and hi bounds.
11501while test "x$ac_lo" != "x$ac_hi"; do
11502 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11503 cat >conftest.$ac_ext <<_ACEOF
11504/* confdefs.h. */
11505_ACEOF
11506cat confdefs.h >>conftest.$ac_ext
11507cat >>conftest.$ac_ext <<_ACEOF
11508/* end confdefs.h. */
11509$ac_includes_default
11510int
11511main ()
11512{
11513static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11514test_array [0] = 0
5464f5a1 11515
2ba49b59
KC
11516 ;
11517 return 0;
11518}
5464f5a1
NN
11519_ACEOF
11520rm -f conftest.$ac_objext
11521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11522 (eval $ac_compile) 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
49c96104
SE
11529 { ac_try='test -z "$ac_c_werror_flag"
11530 || test ! -s conftest.err'
5464f5a1
NN
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; } &&
11536 { ac_try='test -s conftest.$ac_objext'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
2ba49b59 11542 ac_hi=$ac_mid
5464f5a1
NN
11543else
11544 echo "$as_me: failed program was:" >&5
11545sed 's/^/| /' conftest.$ac_ext >&5
11546
2ba49b59 11547ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
11548fi
11549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
11550done
11551case $ac_lo in
11552?*) ac_cv_sizeof_long_long=$ac_lo;;
11553'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11554See \`config.log' for more details." >&5
11555echo "$as_me: error: cannot compute sizeof (long long), 77
11556See \`config.log' for more details." >&2;}
11557 { (exit 1); exit 1; }; } ;;
11558esac
11559else
11560 if test "$cross_compiling" = yes; then
49c96104
SE
11561 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11562See \`config.log' for more details." >&5
11563echo "$as_me: error: cannot run test program while cross compiling
11564See \`config.log' for more details." >&2;}
2ba49b59
KC
11565 { (exit 1); exit 1; }; }
11566else
11567 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11568/* confdefs.h. */
11569_ACEOF
11570cat confdefs.h >>conftest.$ac_ext
11571cat >>conftest.$ac_ext <<_ACEOF
11572/* end confdefs.h. */
2ba49b59
KC
11573$ac_includes_default
11574long longval () { return (long) (sizeof (long long)); }
11575unsigned long ulongval () { return (long) (sizeof (long long)); }
11576#include <stdio.h>
11577#include <stdlib.h>
11578int
11579main ()
11580{
11581
11582 FILE *f = fopen ("conftest.val", "w");
11583 if (! f)
11584 exit (1);
11585 if (((long) (sizeof (long long))) < 0)
11586 {
11587 long i = longval ();
11588 if (i != ((long) (sizeof (long long))))
11589 exit (1);
11590 fprintf (f, "%ld\n", i);
11591 }
11592 else
11593 {
11594 unsigned long i = ulongval ();
11595 if (i != ((long) (sizeof (long long))))
11596 exit (1);
11597 fprintf (f, "%lu\n", i);
11598 }
11599 exit (ferror (f) || fclose (f) != 0);
11600
11601 ;
11602 return 0;
11603}
5464f5a1 11604_ACEOF
2ba49b59
KC
11605rm -f conftest$ac_exeext
11606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>&5
5464f5a1 11608 ac_status=$?
5464f5a1 11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
11610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 11617else
2ba49b59
KC
11618 echo "$as_me: program exited with status $ac_status" >&5
11619echo "$as_me: failed program was:" >&5
5464f5a1
NN
11620sed 's/^/| /' conftest.$ac_ext >&5
11621
2ba49b59
KC
11622( exit $ac_status )
11623{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11624See \`config.log' for more details." >&5
11625echo "$as_me: error: cannot compute sizeof (long long), 77
11626See \`config.log' for more details." >&2;}
11627 { (exit 1); exit 1; }; }
252b5132 11628fi
2ba49b59
KC
11629rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11630fi
11631fi
11632rm -f conftest.val
6be7c12c 11633else
2ba49b59 11634 ac_cv_sizeof_long_long=0
5464f5a1 11635fi
5464f5a1 11636fi
2ba49b59
KC
11637echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11638echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11639cat >>confdefs.h <<_ACEOF
11640#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
11641_ACEOF
11642
5464f5a1 11643
d2df793a
NC
11644echo "$as_me:$LINENO: checking for void *" >&5
11645echo $ECHO_N "checking for void *... $ECHO_C" >&6
11646if test "${ac_cv_type_void_p+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11648else
11649 cat >conftest.$ac_ext <<_ACEOF
11650/* confdefs.h. */
11651_ACEOF
11652cat confdefs.h >>conftest.$ac_ext
11653cat >>conftest.$ac_ext <<_ACEOF
11654/* end confdefs.h. */
11655$ac_includes_default
11656int
11657main ()
11658{
11659if ((void * *) 0)
11660 return 0;
11661if (sizeof (void *))
11662 return 0;
11663 ;
11664 return 0;
11665}
11666_ACEOF
11667rm -f conftest.$ac_objext
11668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669 (eval $ac_compile) 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_c_werror_flag"
11677 || test ! -s conftest.err'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; } &&
11683 { ac_try='test -s conftest.$ac_objext'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 ac_cv_type_void_p=yes
11690else
11691 echo "$as_me: failed program was:" >&5
11692sed 's/^/| /' conftest.$ac_ext >&5
11693
11694ac_cv_type_void_p=no
11695fi
11696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11697fi
11698echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11699echo "${ECHO_T}$ac_cv_type_void_p" >&6
11700
11701echo "$as_me:$LINENO: checking size of void *" >&5
11702echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11703if test "${ac_cv_sizeof_void_p+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705else
11706 if test "$ac_cv_type_void_p" = yes; then
11707 # The cast to unsigned long works around a bug in the HP C Compiler
11708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11710 # This bug is HP SR number 8606223364.
11711 if test "$cross_compiling" = yes; then
11712 # Depending upon the size, compute the lo and hi bounds.
11713cat >conftest.$ac_ext <<_ACEOF
11714/* confdefs.h. */
11715_ACEOF
11716cat confdefs.h >>conftest.$ac_ext
11717cat >>conftest.$ac_ext <<_ACEOF
11718/* end confdefs.h. */
11719$ac_includes_default
11720int
11721main ()
11722{
11723static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11724test_array [0] = 0
11725
11726 ;
11727 return 0;
11728}
11729_ACEOF
11730rm -f conftest.$ac_objext
11731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11732 (eval $ac_compile) 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -z "$ac_c_werror_flag"
11740 || test ! -s conftest.err'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try='test -s conftest.$ac_objext'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }; then
11752 ac_lo=0 ac_mid=0
11753 while :; do
11754 cat >conftest.$ac_ext <<_ACEOF
11755/* confdefs.h. */
11756_ACEOF
11757cat confdefs.h >>conftest.$ac_ext
11758cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h. */
11760$ac_includes_default
11761int
11762main ()
11763{
11764static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11765test_array [0] = 0
11766
11767 ;
11768 return 0;
11769}
11770_ACEOF
11771rm -f conftest.$ac_objext
11772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11773 (eval $ac_compile) 2>conftest.er1
11774 ac_status=$?
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -z "$ac_c_werror_flag"
11781 || test ! -s conftest.err'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; } &&
11787 { ac_try='test -s conftest.$ac_objext'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
11793 ac_hi=$ac_mid; break
11794else
11795 echo "$as_me: failed program was:" >&5
11796sed 's/^/| /' conftest.$ac_ext >&5
11797
11798ac_lo=`expr $ac_mid + 1`
11799 if test $ac_lo -le $ac_mid; then
11800 ac_lo= ac_hi=
11801 break
11802 fi
11803 ac_mid=`expr 2 '*' $ac_mid + 1`
11804fi
11805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11806 done
11807else
11808 echo "$as_me: failed program was:" >&5
11809sed 's/^/| /' conftest.$ac_ext >&5
11810
11811cat >conftest.$ac_ext <<_ACEOF
11812/* confdefs.h. */
11813_ACEOF
11814cat confdefs.h >>conftest.$ac_ext
11815cat >>conftest.$ac_ext <<_ACEOF
11816/* end confdefs.h. */
11817$ac_includes_default
11818int
11819main ()
11820{
11821static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11822test_array [0] = 0
11823
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828rm -f conftest.$ac_objext
11829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11830 (eval $ac_compile) 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_c_werror_flag"
11838 || test ! -s conftest.err'
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; } &&
11844 { ac_try='test -s conftest.$ac_objext'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 ac_hi=-1 ac_mid=-1
11851 while :; do
11852 cat >conftest.$ac_ext <<_ACEOF
11853/* confdefs.h. */
11854_ACEOF
11855cat confdefs.h >>conftest.$ac_ext
11856cat >>conftest.$ac_ext <<_ACEOF
11857/* end confdefs.h. */
11858$ac_includes_default
11859int
11860main ()
11861{
11862static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11863test_array [0] = 0
11864
11865 ;
11866 return 0;
11867}
11868_ACEOF
11869rm -f conftest.$ac_objext
11870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11871 (eval $ac_compile) 2>conftest.er1
11872 ac_status=$?
11873 grep -v '^ *+' conftest.er1 >conftest.err
11874 rm -f conftest.er1
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } &&
11878 { ac_try='test -z "$ac_c_werror_flag"
11879 || test ! -s conftest.err'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11882 ac_status=$?
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; } &&
11885 { ac_try='test -s conftest.$ac_objext'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 ac_lo=$ac_mid; break
11892else
11893 echo "$as_me: failed program was:" >&5
11894sed 's/^/| /' conftest.$ac_ext >&5
11895
11896ac_hi=`expr '(' $ac_mid ')' - 1`
11897 if test $ac_mid -le $ac_hi; then
11898 ac_lo= ac_hi=
11899 break
11900 fi
11901 ac_mid=`expr 2 '*' $ac_mid`
11902fi
11903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11904 done
11905else
11906 echo "$as_me: failed program was:" >&5
11907sed 's/^/| /' conftest.$ac_ext >&5
11908
11909ac_lo= ac_hi=
11910fi
11911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11912fi
11913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11914# Binary search between lo and hi bounds.
11915while test "x$ac_lo" != "x$ac_hi"; do
11916 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11917 cat >conftest.$ac_ext <<_ACEOF
11918/* confdefs.h. */
11919_ACEOF
11920cat confdefs.h >>conftest.$ac_ext
11921cat >>conftest.$ac_ext <<_ACEOF
11922/* end confdefs.h. */
11923$ac_includes_default
11924int
11925main ()
11926{
11927static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11928test_array [0] = 0
11929
11930 ;
11931 return 0;
11932}
11933_ACEOF
11934rm -f conftest.$ac_objext
11935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11936 (eval $ac_compile) 2>conftest.er1
11937 ac_status=$?
11938 grep -v '^ *+' conftest.er1 >conftest.err
11939 rm -f conftest.er1
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } &&
11943 { ac_try='test -z "$ac_c_werror_flag"
11944 || test ! -s conftest.err'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; } &&
11950 { ac_try='test -s conftest.$ac_objext'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 ac_hi=$ac_mid
11957else
11958 echo "$as_me: failed program was:" >&5
11959sed 's/^/| /' conftest.$ac_ext >&5
11960
11961ac_lo=`expr '(' $ac_mid ')' + 1`
11962fi
11963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11964done
11965case $ac_lo in
11966?*) ac_cv_sizeof_void_p=$ac_lo;;
11967'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
11968See \`config.log' for more details." >&5
11969echo "$as_me: error: cannot compute sizeof (void *), 77
11970See \`config.log' for more details." >&2;}
11971 { (exit 1); exit 1; }; } ;;
11972esac
11973else
11974 if test "$cross_compiling" = yes; then
11975 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11976See \`config.log' for more details." >&5
11977echo "$as_me: error: cannot run test program while cross compiling
11978See \`config.log' for more details." >&2;}
11979 { (exit 1); exit 1; }; }
11980else
11981 cat >conftest.$ac_ext <<_ACEOF
11982/* confdefs.h. */
11983_ACEOF
11984cat confdefs.h >>conftest.$ac_ext
11985cat >>conftest.$ac_ext <<_ACEOF
11986/* end confdefs.h. */
11987$ac_includes_default
11988long longval () { return (long) (sizeof (void *)); }
11989unsigned long ulongval () { return (long) (sizeof (void *)); }
11990#include <stdio.h>
11991#include <stdlib.h>
11992int
11993main ()
11994{
11995
11996 FILE *f = fopen ("conftest.val", "w");
11997 if (! f)
11998 exit (1);
11999 if (((long) (sizeof (void *))) < 0)
12000 {
12001 long i = longval ();
12002 if (i != ((long) (sizeof (void *))))
12003 exit (1);
12004 fprintf (f, "%ld\n", i);
12005 }
12006 else
12007 {
12008 unsigned long i = ulongval ();
12009 if (i != ((long) (sizeof (void *))))
12010 exit (1);
12011 fprintf (f, "%lu\n", i);
12012 }
12013 exit (ferror (f) || fclose (f) != 0);
12014
12015 ;
12016 return 0;
12017}
12018_ACEOF
12019rm -f conftest$ac_exeext
12020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12021 (eval $ac_link) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 ac_cv_sizeof_void_p=`cat conftest.val`
12031else
12032 echo "$as_me: program exited with status $ac_status" >&5
12033echo "$as_me: failed program was:" >&5
12034sed 's/^/| /' conftest.$ac_ext >&5
12035
12036( exit $ac_status )
12037{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12038See \`config.log' for more details." >&5
12039echo "$as_me: error: cannot compute sizeof (void *), 77
12040See \`config.log' for more details." >&2;}
12041 { (exit 1); exit 1; }; }
12042fi
12043rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12044fi
12045fi
12046rm -f conftest.val
12047else
12048 ac_cv_sizeof_void_p=0
12049fi
12050fi
12051echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12052echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12053cat >>confdefs.h <<_ACEOF
12054#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12055_ACEOF
12056
12057
2ba49b59
KC
12058echo "$as_me:$LINENO: checking for long" >&5
12059echo $ECHO_N "checking for long... $ECHO_C" >&6
12060if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
12061 echo $ECHO_N "(cached) $ECHO_C" >&6
12062else
12063 cat >conftest.$ac_ext <<_ACEOF
12064/* confdefs.h. */
12065_ACEOF
12066cat confdefs.h >>conftest.$ac_ext
12067cat >>conftest.$ac_ext <<_ACEOF
12068/* end confdefs.h. */
2ba49b59 12069$ac_includes_default
5464f5a1
NN
12070int
12071main ()
12072{
2ba49b59
KC
12073if ((long *) 0)
12074 return 0;
12075if (sizeof (long))
12076 return 0;
5464f5a1
NN
12077 ;
12078 return 0;
12079}
12080_ACEOF
12081rm -f conftest.$ac_objext
12082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12083 (eval $ac_compile) 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
49c96104
SE
12090 { ac_try='test -z "$ac_c_werror_flag"
12091 || test ! -s conftest.err'
5464f5a1
NN
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try='test -s conftest.$ac_objext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
2ba49b59 12103 ac_cv_type_long=yes
252b5132 12104else
5464f5a1
NN
12105 echo "$as_me: failed program was:" >&5
12106sed 's/^/| /' conftest.$ac_ext >&5
12107
2ba49b59 12108ac_cv_type_long=no
252b5132 12109fi
5464f5a1 12110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12111fi
2ba49b59
KC
12112echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12113echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 12114
2ba49b59
KC
12115echo "$as_me:$LINENO: checking size of long" >&5
12116echo $ECHO_N "checking size of long... $ECHO_C" >&6
12117if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119else
2ba49b59
KC
12120 if test "$ac_cv_type_long" = yes; then
12121 # The cast to unsigned long works around a bug in the HP C Compiler
12122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12124 # This bug is HP SR number 8606223364.
12125 if test "$cross_compiling" = yes; then
12126 # Depending upon the size, compute the lo and hi bounds.
12127cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12128/* confdefs.h. */
12129_ACEOF
12130cat confdefs.h >>conftest.$ac_ext
12131cat >>conftest.$ac_ext <<_ACEOF
12132/* end confdefs.h. */
2ba49b59 12133$ac_includes_default
5464f5a1
NN
12134int
12135main ()
12136{
2ba49b59
KC
12137static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12138test_array [0] = 0
12139
5464f5a1
NN
12140 ;
12141 return 0;
12142}
12143_ACEOF
12144rm -f conftest.$ac_objext
12145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12146 (eval $ac_compile) 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
49c96104
SE
12153 { ac_try='test -z "$ac_c_werror_flag"
12154 || test ! -s conftest.err'
5464f5a1
NN
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest.$ac_objext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
2ba49b59
KC
12166 ac_lo=0 ac_mid=0
12167 while :; do
12168 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12169/* confdefs.h. */
12170_ACEOF
12171cat confdefs.h >>conftest.$ac_ext
12172cat >>conftest.$ac_ext <<_ACEOF
12173/* end confdefs.h. */
2ba49b59 12174$ac_includes_default
5464f5a1
NN
12175int
12176main ()
12177{
2ba49b59
KC
12178static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12179test_array [0] = 0
12180
5464f5a1
NN
12181 ;
12182 return 0;
12183}
12184_ACEOF
2ba49b59
KC
12185rm -f conftest.$ac_objext
12186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12187 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
49c96104
SE
12194 { ac_try='test -z "$ac_c_werror_flag"
12195 || test ! -s conftest.err'
5464f5a1
NN
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; } &&
2ba49b59 12201 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
2ba49b59 12207 ac_hi=$ac_mid; break
5464f5a1
NN
12208else
12209 echo "$as_me: failed program was:" >&5
12210sed 's/^/| /' conftest.$ac_ext >&5
12211
2ba49b59
KC
12212ac_lo=`expr $ac_mid + 1`
12213 if test $ac_lo -le $ac_mid; then
12214 ac_lo= ac_hi=
12215 break
12216 fi
12217 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 12218fi
2ba49b59
KC
12219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12220 done
12221else
12222 echo "$as_me: failed program was:" >&5
12223sed 's/^/| /' conftest.$ac_ext >&5
12224
12225cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12226/* confdefs.h. */
12227_ACEOF
12228cat confdefs.h >>conftest.$ac_ext
12229cat >>conftest.$ac_ext <<_ACEOF
12230/* end confdefs.h. */
2ba49b59 12231$ac_includes_default
5464f5a1
NN
12232int
12233main ()
12234{
2ba49b59
KC
12235static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12236test_array [0] = 0
12237
5464f5a1
NN
12238 ;
12239 return 0;
12240}
12241_ACEOF
2ba49b59
KC
12242rm -f conftest.$ac_objext
12243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
49c96104
SE
12251 { ac_try='test -z "$ac_c_werror_flag"
12252 || test ! -s conftest.err'
5464f5a1
NN
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12255 ac_status=$?
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
2ba49b59 12258 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
2ba49b59
KC
12264 ac_hi=-1 ac_mid=-1
12265 while :; do
12266 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12267/* confdefs.h. */
12268_ACEOF
12269cat confdefs.h >>conftest.$ac_ext
12270cat >>conftest.$ac_ext <<_ACEOF
12271/* end confdefs.h. */
2ba49b59 12272$ac_includes_default
5464f5a1
NN
12273int
12274main ()
12275{
2ba49b59
KC
12276static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12277test_array [0] = 0
12278
5464f5a1
NN
12279 ;
12280 return 0;
12281}
12282_ACEOF
2ba49b59
KC
12283rm -f conftest.$ac_objext
12284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12285 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12286 ac_status=$?
12287 grep -v '^ *+' conftest.er1 >conftest.err
12288 rm -f conftest.er1
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } &&
49c96104
SE
12292 { ac_try='test -z "$ac_c_werror_flag"
12293 || test ! -s conftest.err'
5464f5a1
NN
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
2ba49b59 12299 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
2ba49b59 12305 ac_lo=$ac_mid; break
5464f5a1
NN
12306else
12307 echo "$as_me: failed program was:" >&5
12308sed 's/^/| /' conftest.$ac_ext >&5
12309
2ba49b59
KC
12310ac_hi=`expr '(' $ac_mid ')' - 1`
12311 if test $ac_mid -le $ac_hi; then
12312 ac_lo= ac_hi=
12313 break
12314 fi
12315 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 12316fi
2ba49b59
KC
12317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12318 done
12319else
12320 echo "$as_me: failed program was:" >&5
12321sed 's/^/| /' conftest.$ac_ext >&5
12322
12323ac_lo= ac_hi=
12324fi
12325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12326fi
12327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12328# Binary search between lo and hi bounds.
12329while test "x$ac_lo" != "x$ac_hi"; do
12330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12331 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12332/* confdefs.h. */
12333_ACEOF
12334cat confdefs.h >>conftest.$ac_ext
12335cat >>conftest.$ac_ext <<_ACEOF
12336/* end confdefs.h. */
2ba49b59 12337$ac_includes_default
5464f5a1
NN
12338int
12339main ()
12340{
2ba49b59
KC
12341static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12342test_array [0] = 0
12343
5464f5a1
NN
12344 ;
12345 return 0;
12346}
12347_ACEOF
2ba49b59
KC
12348rm -f conftest.$ac_objext
12349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12350 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12351 ac_status=$?
12352 grep -v '^ *+' conftest.er1 >conftest.err
12353 rm -f conftest.er1
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
49c96104
SE
12357 { ac_try='test -z "$ac_c_werror_flag"
12358 || test ! -s conftest.err'
5464f5a1
NN
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
2ba49b59 12364 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
2ba49b59 12370 ac_hi=$ac_mid
5464f5a1
NN
12371else
12372 echo "$as_me: failed program was:" >&5
12373sed 's/^/| /' conftest.$ac_ext >&5
12374
2ba49b59 12375ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 12376fi
2ba49b59
KC
12377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12378done
12379case $ac_lo in
12380?*) ac_cv_sizeof_long=$ac_lo;;
12381'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12382See \`config.log' for more details." >&5
12383echo "$as_me: error: cannot compute sizeof (long), 77
12384See \`config.log' for more details." >&2;}
12385 { (exit 1); exit 1; }; } ;;
12386esac
12387else
12388 if test "$cross_compiling" = yes; then
49c96104
SE
12389 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12390See \`config.log' for more details." >&5
12391echo "$as_me: error: cannot run test program while cross compiling
12392See \`config.log' for more details." >&2;}
2ba49b59 12393 { (exit 1); exit 1; }; }
2e0fbf77
JW
12394else
12395 cat >conftest.$ac_ext <<_ACEOF
12396/* confdefs.h. */
12397_ACEOF
12398cat confdefs.h >>conftest.$ac_ext
12399cat >>conftest.$ac_ext <<_ACEOF
12400/* end confdefs.h. */
2ba49b59
KC
12401$ac_includes_default
12402long longval () { return (long) (sizeof (long)); }
12403unsigned long ulongval () { return (long) (sizeof (long)); }
12404#include <stdio.h>
12405#include <stdlib.h>
2e0fbf77
JW
12406int
12407main ()
12408{
12409
2ba49b59
KC
12410 FILE *f = fopen ("conftest.val", "w");
12411 if (! f)
12412 exit (1);
12413 if (((long) (sizeof (long))) < 0)
12414 {
12415 long i = longval ();
12416 if (i != ((long) (sizeof (long))))
12417 exit (1);
12418 fprintf (f, "%ld\n", i);
12419 }
12420 else
12421 {
12422 unsigned long i = ulongval ();
12423 if (i != ((long) (sizeof (long))))
12424 exit (1);
12425 fprintf (f, "%lu\n", i);
12426 }
12427 exit (ferror (f) || fclose (f) != 0);
12428
2e0fbf77
JW
12429 ;
12430 return 0;
12431}
12432_ACEOF
2ba49b59
KC
12433rm -f conftest$ac_exeext
12434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12435 (eval $ac_link) 2>&5
2e0fbf77
JW
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
2ba49b59 12444 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 12445else
2ba49b59
KC
12446 echo "$as_me: program exited with status $ac_status" >&5
12447echo "$as_me: failed program was:" >&5
2e0fbf77
JW
12448sed 's/^/| /' conftest.$ac_ext >&5
12449
2ba49b59
KC
12450( exit $ac_status )
12451{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12452See \`config.log' for more details." >&5
12453echo "$as_me: error: cannot compute sizeof (long), 77
12454See \`config.log' for more details." >&2;}
12455 { (exit 1); exit 1; }; }
2e0fbf77 12456fi
2ba49b59 12457rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 12458fi
2ba49b59
KC
12459fi
12460rm -f conftest.val
12461else
12462 ac_cv_sizeof_long=0
12463fi
12464fi
12465echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12466echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12467cat >>confdefs.h <<_ACEOF
12468#define SIZEOF_LONG $ac_cv_sizeof_long
12469_ACEOF
12470
12471
d2df793a
NC
12472
12473if test "x${ac_cv_sizeof_void_p}" = "x8"; then
2ba49b59 12474 host64=true
bce5e5c9
AM
12475fi
12476
12477if test "x${ac_cv_sizeof_long}" = "x8"; then
2ba49b59
KC
12478 BFD_HOST_64BIT_LONG=1
12479 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12480 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12481elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
bce5e5c9 12482 BFD_HOST_64BIT_LONG_LONG=1
2ba49b59
KC
12483 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12484 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
bce5e5c9
AM
12485 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12486 BFD_HOSTPTR_T="unsigned long long"
12487 fi
2ba49b59
KC
12488fi
12489
12490if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12491 BFD_HOST_64_BIT_DEFINED=1
12492 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12493 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12494fi
12495
12496
12497
12498
12499
12500
12501
d2df793a 12502
2ba49b59
KC
12503# Put a plausible default for CC_FOR_BUILD in Makefile.
12504if test -z "$CC_FOR_BUILD"; then
12505 if test "x$cross_compiling" = "xno"; then
12506 CC_FOR_BUILD='$(CC)'
12507 else
12508 CC_FOR_BUILD=gcc
12509 fi
12510fi
12511
12512# Also set EXEEXT_FOR_BUILD.
12513if test "x$cross_compiling" = "xno"; then
12514 EXEEXT_FOR_BUILD='$(EXEEXT)'
12515else
12516 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12517echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12518if test "${bfd_cv_build_exeext+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520else
12521 rm -f conftest*
12522 echo 'int main () { return 0; }' > conftest.c
12523 bfd_cv_build_exeext=
12524 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12525 for file in conftest.*; do
12526 case $file in
12527 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12528 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12529 esac
12530 done
12531 rm -f conftest*
12532 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12533fi
12534echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12535echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12536 EXEEXT_FOR_BUILD=""
12537 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12538fi
12539
12540
12541
12542
12543
12544
12545
12546
8bc9c892
NC
12547
12548for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
2ba49b59
KC
12549do
12550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12551if eval "test \"\${$as_ac_Header+set}\" = set"; then
12552 echo "$as_me:$LINENO: checking for $ac_header" >&5
12553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12554if eval "test \"\${$as_ac_Header+set}\" = set"; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12556fi
12557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12559else
12560 # Is the header compilable?
12561echo "$as_me:$LINENO: checking $ac_header usability" >&5
12562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12563cat >conftest.$ac_ext <<_ACEOF
12564/* confdefs.h. */
12565_ACEOF
12566cat confdefs.h >>conftest.$ac_ext
12567cat >>conftest.$ac_ext <<_ACEOF
12568/* end confdefs.h. */
12569$ac_includes_default
12570#include <$ac_header>
12571_ACEOF
12572rm -f conftest.$ac_objext
12573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12574 (eval $ac_compile) 2>conftest.er1
12575 ac_status=$?
12576 grep -v '^ *+' conftest.er1 >conftest.err
12577 rm -f conftest.er1
12578 cat conftest.err >&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } &&
49c96104
SE
12581 { ac_try='test -z "$ac_c_werror_flag"
12582 || test ! -s conftest.err'
2ba49b59
KC
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; } &&
12588 { ac_try='test -s conftest.$ac_objext'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; }; then
12594 ac_header_compiler=yes
12595else
12596 echo "$as_me: failed program was:" >&5
12597sed 's/^/| /' conftest.$ac_ext >&5
12598
12599ac_header_compiler=no
12600fi
12601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12602echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12603echo "${ECHO_T}$ac_header_compiler" >&6
12604
12605# Is the header present?
12606echo "$as_me:$LINENO: checking $ac_header presence" >&5
12607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12608cat >conftest.$ac_ext <<_ACEOF
12609/* confdefs.h. */
12610_ACEOF
12611cat confdefs.h >>conftest.$ac_ext
12612cat >>conftest.$ac_ext <<_ACEOF
12613/* end confdefs.h. */
12614#include <$ac_header>
12615_ACEOF
12616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12617 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
12624 if test -s conftest.err; then
12625 ac_cpp_err=$ac_c_preproc_warn_flag
12626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12627 else
12628 ac_cpp_err=
12629 fi
12630else
12631 ac_cpp_err=yes
12632fi
12633if test -z "$ac_cpp_err"; then
12634 ac_header_preproc=yes
12635else
12636 echo "$as_me: failed program was:" >&5
12637sed 's/^/| /' conftest.$ac_ext >&5
12638
12639 ac_header_preproc=no
12640fi
12641rm -f conftest.err conftest.$ac_ext
12642echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12643echo "${ECHO_T}$ac_header_preproc" >&6
12644
12645# So? What about this header?
12646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12647 yes:no: )
12648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12652 ac_header_preproc=yes
12653 ;;
12654 no:yes:* )
12655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12658echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12662echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12667 (
12668 cat <<\_ASBOX
12669## ------------------------------------------ ##
12670## Report this to the AC_PACKAGE_NAME lists. ##
12671## ------------------------------------------ ##
12672_ASBOX
12673 ) |
12674 sed "s/^/$as_me: WARNING: /" >&2
12675 ;;
12676esac
12677echo "$as_me:$LINENO: checking for $ac_header" >&5
12678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12679if eval "test \"\${$as_ac_Header+set}\" = set"; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12681else
12682 eval "$as_ac_Header=\$ac_header_preproc"
12683fi
12684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12686
12687fi
12688if test `eval echo '${'$as_ac_Header'}'` = yes; then
12689 cat >>confdefs.h <<_ACEOF
12690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12691_ACEOF
12692
12693fi
12694
12695done
12696
12697
12698
12699
12700for ac_header in fcntl.h sys/file.h sys/time.h
12701do
12702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12703if eval "test \"\${$as_ac_Header+set}\" = set"; then
12704 echo "$as_me:$LINENO: checking for $ac_header" >&5
12705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12706if eval "test \"\${$as_ac_Header+set}\" = set"; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708fi
12709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12711else
12712 # Is the header compilable?
12713echo "$as_me:$LINENO: checking $ac_header usability" >&5
12714echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12715cat >conftest.$ac_ext <<_ACEOF
12716/* confdefs.h. */
12717_ACEOF
12718cat confdefs.h >>conftest.$ac_ext
12719cat >>conftest.$ac_ext <<_ACEOF
12720/* end confdefs.h. */
12721$ac_includes_default
12722#include <$ac_header>
12723_ACEOF
12724rm -f conftest.$ac_objext
12725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12726 (eval $ac_compile) 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
49c96104
SE
12733 { ac_try='test -z "$ac_c_werror_flag"
12734 || test ! -s conftest.err'
2ba49b59
KC
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; } &&
12740 { ac_try='test -s conftest.$ac_objext'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 ac_header_compiler=yes
12747else
12748 echo "$as_me: failed program was:" >&5
12749sed 's/^/| /' conftest.$ac_ext >&5
12750
12751ac_header_compiler=no
12752fi
12753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12754echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12755echo "${ECHO_T}$ac_header_compiler" >&6
12756
12757# Is the header present?
12758echo "$as_me:$LINENO: checking $ac_header presence" >&5
12759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12760cat >conftest.$ac_ext <<_ACEOF
12761/* confdefs.h. */
12762_ACEOF
12763cat confdefs.h >>conftest.$ac_ext
12764cat >>conftest.$ac_ext <<_ACEOF
12765/* end confdefs.h. */
12766#include <$ac_header>
12767_ACEOF
12768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12769 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
12776 if test -s conftest.err; then
12777 ac_cpp_err=$ac_c_preproc_warn_flag
12778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12779 else
12780 ac_cpp_err=
12781 fi
12782else
12783 ac_cpp_err=yes
12784fi
12785if test -z "$ac_cpp_err"; then
12786 ac_header_preproc=yes
12787else
12788 echo "$as_me: failed program was:" >&5
12789sed 's/^/| /' conftest.$ac_ext >&5
12790
12791 ac_header_preproc=no
12792fi
12793rm -f conftest.err conftest.$ac_ext
12794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12795echo "${ECHO_T}$ac_header_preproc" >&6
12796
12797# So? What about this header?
12798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12799 yes:no: )
12800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12803echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12804 ac_header_preproc=yes
12805 ;;
12806 no:yes:* )
12807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12808echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12810echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12812echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12814echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12818echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12819 (
12820 cat <<\_ASBOX
12821## ------------------------------------------ ##
12822## Report this to the AC_PACKAGE_NAME lists. ##
12823## ------------------------------------------ ##
12824_ASBOX
12825 ) |
12826 sed "s/^/$as_me: WARNING: /" >&2
12827 ;;
12828esac
12829echo "$as_me:$LINENO: checking for $ac_header" >&5
12830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12831if eval "test \"\${$as_ac_Header+set}\" = set"; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833else
12834 eval "$as_ac_Header=\$ac_header_preproc"
12835fi
12836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12838
12839fi
12840if test `eval echo '${'$as_ac_Header'}'` = yes; then
12841 cat >>confdefs.h <<_ACEOF
12842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12843_ACEOF
12844
12845fi
12846
12847done
12848
d5efd9fc
AM
12849
12850
12851inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12852
12853acx_cv_header_stdint=stddef.h
12854acx_cv_header_stdint_kind="(already complete)"
12855for i in stdint.h $inttype_headers; do
12856 unset ac_cv_type_uintptr_t
12857 unset ac_cv_type_uintmax_t
12858 unset ac_cv_type_int_least32_t
12859 unset ac_cv_type_int_fast32_t
12860 unset ac_cv_type_uint64_t
12861 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12862 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12863echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12864if test "${ac_cv_type_uintmax_t+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12866else
12867 cat >conftest.$ac_ext <<_ACEOF
12868/* confdefs.h. */
12869_ACEOF
12870cat confdefs.h >>conftest.$ac_ext
12871cat >>conftest.$ac_ext <<_ACEOF
12872/* end confdefs.h. */
12873#include <sys/types.h>
12874#include <$i>
12875
12876int
12877main ()
12878{
12879if ((uintmax_t *) 0)
12880 return 0;
12881if (sizeof (uintmax_t))
12882 return 0;
12883 ;
12884 return 0;
12885}
12886_ACEOF
12887rm -f conftest.$ac_objext
12888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889 (eval $ac_compile) 2>conftest.er1
12890 ac_status=$?
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -z "$ac_c_werror_flag"
12897 || test ! -s conftest.err'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest.$ac_objext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_cv_type_uintmax_t=yes
12910else
12911 echo "$as_me: failed program was:" >&5
12912sed 's/^/| /' conftest.$ac_ext >&5
12913
12914ac_cv_type_uintmax_t=no
12915fi
12916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12917fi
12918echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12919echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12920if test $ac_cv_type_uintmax_t = yes; then
12921 acx_cv_header_stdint=$i
12922else
12923 continue
12924fi
12925
12926 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12927echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12928if test "${ac_cv_type_uintptr_t+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12930else
12931 cat >conftest.$ac_ext <<_ACEOF
12932/* confdefs.h. */
12933_ACEOF
12934cat confdefs.h >>conftest.$ac_ext
12935cat >>conftest.$ac_ext <<_ACEOF
12936/* end confdefs.h. */
12937#include <sys/types.h>
12938#include <$i>
12939
12940int
12941main ()
12942{
12943if ((uintptr_t *) 0)
12944 return 0;
12945if (sizeof (uintptr_t))
12946 return 0;
12947 ;
12948 return 0;
12949}
12950_ACEOF
12951rm -f conftest.$ac_objext
12952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>conftest.er1
12954 ac_status=$?
12955 grep -v '^ *+' conftest.er1 >conftest.err
12956 rm -f conftest.er1
12957 cat conftest.err >&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -z "$ac_c_werror_flag"
12961 || test ! -s conftest.err'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_cv_type_uintptr_t=yes
12974else
12975 echo "$as_me: failed program was:" >&5
12976sed 's/^/| /' conftest.$ac_ext >&5
12977
12978ac_cv_type_uintptr_t=no
12979fi
12980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12981fi
12982echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12983echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12984if test $ac_cv_type_uintptr_t = yes; then
12985 :
12986else
12987 acx_cv_header_stdint_kind="(mostly complete)"
12988fi
12989
12990 echo "$as_me:$LINENO: checking for int_least32_t" >&5
12991echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
12992if test "${ac_cv_type_int_least32_t+set}" = set; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12994else
12995 cat >conftest.$ac_ext <<_ACEOF
12996/* confdefs.h. */
12997_ACEOF
12998cat confdefs.h >>conftest.$ac_ext
12999cat >>conftest.$ac_ext <<_ACEOF
13000/* end confdefs.h. */
13001#include <sys/types.h>
13002#include <$i>
13003
13004int
13005main ()
13006{
13007if ((int_least32_t *) 0)
13008 return 0;
13009if (sizeof (int_least32_t))
13010 return 0;
13011 ;
13012 return 0;
13013}
13014_ACEOF
13015rm -f conftest.$ac_objext
13016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13017 (eval $ac_compile) 2>conftest.er1
13018 ac_status=$?
13019 grep -v '^ *+' conftest.er1 >conftest.err
13020 rm -f conftest.er1
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); } &&
13024 { ac_try='test -z "$ac_c_werror_flag"
13025 || test ! -s conftest.err'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; } &&
13031 { ac_try='test -s conftest.$ac_objext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_type_int_least32_t=yes
13038else
13039 echo "$as_me: failed program was:" >&5
13040sed 's/^/| /' conftest.$ac_ext >&5
13041
13042ac_cv_type_int_least32_t=no
13043fi
13044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13045fi
13046echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13047echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13048if test $ac_cv_type_int_least32_t = yes; then
13049 :
13050else
13051 acx_cv_header_stdint_kind="(mostly complete)"
13052fi
13053
13054 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13055echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13056if test "${ac_cv_type_int_fast32_t+set}" = set; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13058else
13059 cat >conftest.$ac_ext <<_ACEOF
13060/* confdefs.h. */
13061_ACEOF
13062cat confdefs.h >>conftest.$ac_ext
13063cat >>conftest.$ac_ext <<_ACEOF
13064/* end confdefs.h. */
13065#include <sys/types.h>
13066#include <$i>
13067
13068int
13069main ()
13070{
13071if ((int_fast32_t *) 0)
13072 return 0;
13073if (sizeof (int_fast32_t))
13074 return 0;
13075 ;
13076 return 0;
13077}
13078_ACEOF
13079rm -f conftest.$ac_objext
13080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13081 (eval $ac_compile) 2>conftest.er1
13082 ac_status=$?
13083 grep -v '^ *+' conftest.er1 >conftest.err
13084 rm -f conftest.er1
13085 cat conftest.err >&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } &&
13088 { ac_try='test -z "$ac_c_werror_flag"
13089 || test ! -s conftest.err'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; } &&
13095 { ac_try='test -s conftest.$ac_objext'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_cv_type_int_fast32_t=yes
13102else
13103 echo "$as_me: failed program was:" >&5
13104sed 's/^/| /' conftest.$ac_ext >&5
13105
13106ac_cv_type_int_fast32_t=no
13107fi
13108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13109fi
13110echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13111echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13112if test $ac_cv_type_int_fast32_t = yes; then
13113 :
13114else
13115 acx_cv_header_stdint_kind="(mostly complete)"
13116fi
13117
13118 echo "$as_me:$LINENO: checking for uint64_t" >&5
13119echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13120if test "${ac_cv_type_uint64_t+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13122else
13123 cat >conftest.$ac_ext <<_ACEOF
13124/* confdefs.h. */
13125_ACEOF
13126cat confdefs.h >>conftest.$ac_ext
13127cat >>conftest.$ac_ext <<_ACEOF
13128/* end confdefs.h. */
13129#include <sys/types.h>
13130#include <$i>
13131
13132int
13133main ()
13134{
13135if ((uint64_t *) 0)
13136 return 0;
13137if (sizeof (uint64_t))
13138 return 0;
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143rm -f conftest.$ac_objext
13144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try='test -z "$ac_c_werror_flag"
13153 || test ! -s conftest.err'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; } &&
13159 { ac_try='test -s conftest.$ac_objext'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 ac_cv_type_uint64_t=yes
13166else
13167 echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
13170ac_cv_type_uint64_t=no
13171fi
13172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13173fi
13174echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13175echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13176if test $ac_cv_type_uint64_t = yes; then
13177 :
13178else
13179 acx_cv_header_stdint_kind="(lacks uint64_t)"
13180fi
13181
13182 break
13183done
13184if test "$acx_cv_header_stdint" = stddef.h; then
13185 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13186 for i in stdint.h $inttype_headers; do
13187 unset ac_cv_type_uintptr_t
13188 unset ac_cv_type_uint32_t
13189 unset ac_cv_type_uint64_t
13190 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13191 echo "$as_me:$LINENO: checking for uint32_t" >&5
13192echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13193if test "${ac_cv_type_uint32_t+set}" = set; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195else
13196 cat >conftest.$ac_ext <<_ACEOF
13197/* confdefs.h. */
13198_ACEOF
13199cat confdefs.h >>conftest.$ac_ext
13200cat >>conftest.$ac_ext <<_ACEOF
13201/* end confdefs.h. */
13202#include <sys/types.h>
13203#include <$i>
13204
13205int
13206main ()
13207{
13208if ((uint32_t *) 0)
13209 return 0;
13210if (sizeof (uint32_t))
13211 return 0;
13212 ;
13213 return 0;
13214}
13215_ACEOF
13216rm -f conftest.$ac_objext
13217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13218 (eval $ac_compile) 2>conftest.er1
13219 ac_status=$?
13220 grep -v '^ *+' conftest.er1 >conftest.err
13221 rm -f conftest.er1
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -z "$ac_c_werror_flag"
13226 || test ! -s conftest.err'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; } &&
13232 { ac_try='test -s conftest.$ac_objext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13235 ac_status=$?
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 ac_cv_type_uint32_t=yes
13239else
13240 echo "$as_me: failed program was:" >&5
13241sed 's/^/| /' conftest.$ac_ext >&5
13242
13243ac_cv_type_uint32_t=no
13244fi
13245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13246fi
13247echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13248echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13249if test $ac_cv_type_uint32_t = yes; then
13250 acx_cv_header_stdint=$i
13251else
13252 continue
13253fi
13254
13255 echo "$as_me:$LINENO: checking for uint64_t" >&5
13256echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13257if test "${ac_cv_type_uint64_t+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13259else
13260 cat >conftest.$ac_ext <<_ACEOF
13261/* confdefs.h. */
13262_ACEOF
13263cat confdefs.h >>conftest.$ac_ext
13264cat >>conftest.$ac_ext <<_ACEOF
13265/* end confdefs.h. */
13266#include <sys/types.h>
13267#include <$i>
13268
13269int
13270main ()
13271{
13272if ((uint64_t *) 0)
13273 return 0;
13274if (sizeof (uint64_t))
13275 return 0;
13276 ;
13277 return 0;
13278}
13279_ACEOF
13280rm -f conftest.$ac_objext
13281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13282 (eval $ac_compile) 2>conftest.er1
13283 ac_status=$?
13284 grep -v '^ *+' conftest.er1 >conftest.err
13285 rm -f conftest.er1
13286 cat conftest.err >&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
13289 { ac_try='test -z "$ac_c_werror_flag"
13290 || test ! -s conftest.err'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; } &&
13296 { ac_try='test -s conftest.$ac_objext'
13297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298 (eval $ac_try) 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 ac_cv_type_uint64_t=yes
13303else
13304 echo "$as_me: failed program was:" >&5
13305sed 's/^/| /' conftest.$ac_ext >&5
13306
13307ac_cv_type_uint64_t=no
13308fi
13309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13310fi
13311echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13312echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13313
13314 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13315echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13316if test "${ac_cv_type_uintptr_t+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13318else
13319 cat >conftest.$ac_ext <<_ACEOF
13320/* confdefs.h. */
13321_ACEOF
13322cat confdefs.h >>conftest.$ac_ext
13323cat >>conftest.$ac_ext <<_ACEOF
13324/* end confdefs.h. */
13325#include <sys/types.h>
13326#include <$i>
13327
13328int
13329main ()
13330{
13331if ((uintptr_t *) 0)
13332 return 0;
13333if (sizeof (uintptr_t))
13334 return 0;
13335 ;
13336 return 0;
13337}
13338_ACEOF
13339rm -f conftest.$ac_objext
13340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13341 (eval $ac_compile) 2>conftest.er1
13342 ac_status=$?
13343 grep -v '^ *+' conftest.er1 >conftest.err
13344 rm -f conftest.er1
13345 cat conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try='test -z "$ac_c_werror_flag"
13349 || test ! -s conftest.err'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; } &&
13355 { ac_try='test -s conftest.$ac_objext'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 ac_cv_type_uintptr_t=yes
13362else
13363 echo "$as_me: failed program was:" >&5
13364sed 's/^/| /' conftest.$ac_ext >&5
13365
13366ac_cv_type_uintptr_t=no
13367fi
13368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13369fi
13370echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13371echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13372
13373 break
13374 done
13375fi
13376if test "$acx_cv_header_stdint" = stddef.h; then
13377 acx_cv_header_stdint_kind="(u_intXX_t style)"
13378 for i in sys/types.h $inttype_headers; do
13379 unset ac_cv_type_u_int32_t
13380 unset ac_cv_type_u_int64_t
13381 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13382 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13383echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13384if test "${ac_cv_type_u_int32_t+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13386else
13387 cat >conftest.$ac_ext <<_ACEOF
13388/* confdefs.h. */
13389_ACEOF
13390cat confdefs.h >>conftest.$ac_ext
13391cat >>conftest.$ac_ext <<_ACEOF
13392/* end confdefs.h. */
13393#include <sys/types.h>
13394#include <$i>
13395
13396int
13397main ()
13398{
13399if ((u_int32_t *) 0)
13400 return 0;
13401if (sizeof (u_int32_t))
13402 return 0;
13403 ;
13404 return 0;
13405}
13406_ACEOF
13407rm -f conftest.$ac_objext
13408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13409 (eval $ac_compile) 2>conftest.er1
13410 ac_status=$?
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -z "$ac_c_werror_flag"
13417 || test ! -s conftest.err'
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; } &&
13423 { ac_try='test -s conftest.$ac_objext'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13429 ac_cv_type_u_int32_t=yes
13430else
13431 echo "$as_me: failed program was:" >&5
13432sed 's/^/| /' conftest.$ac_ext >&5
13433
13434ac_cv_type_u_int32_t=no
13435fi
13436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13437fi
13438echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13439echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13440if test $ac_cv_type_u_int32_t = yes; then
13441 acx_cv_header_stdint=$i
13442else
13443 continue
13444fi
13445
13446 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13447echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13448if test "${ac_cv_type_u_int64_t+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450else
13451 cat >conftest.$ac_ext <<_ACEOF
13452/* confdefs.h. */
13453_ACEOF
13454cat confdefs.h >>conftest.$ac_ext
13455cat >>conftest.$ac_ext <<_ACEOF
13456/* end confdefs.h. */
13457#include <sys/types.h>
13458#include <$i>
13459
13460int
13461main ()
13462{
13463if ((u_int64_t *) 0)
13464 return 0;
13465if (sizeof (u_int64_t))
13466 return 0;
13467 ;
13468 return 0;
13469}
13470_ACEOF
13471rm -f conftest.$ac_objext
13472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473 (eval $ac_compile) 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try='test -z "$ac_c_werror_flag"
13481 || test ! -s conftest.err'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; } &&
13487 { ac_try='test -s conftest.$ac_objext'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13493 ac_cv_type_u_int64_t=yes
13494else
13495 echo "$as_me: failed program was:" >&5
13496sed 's/^/| /' conftest.$ac_ext >&5
13497
13498ac_cv_type_u_int64_t=no
13499fi
13500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13501fi
13502echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13503echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13504
13505 break
13506 done
13507fi
13508if test "$acx_cv_header_stdint" = stddef.h; then
13509 acx_cv_header_stdint_kind="(using manual detection)"
13510fi
13511
13512test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13513test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13514test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13515test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13516test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13517
13518# ----------------- Summarize what we found so far
13519
13520echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13521echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13522
13523case `$as_basename bfd_stdint.h ||
13524$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13525 Xbfd_stdint.h : 'X\(//\)$' \| \
13526 Xbfd_stdint.h : 'X\(/\)$' \| \
13527 . : '\(.\)' 2>/dev/null ||
13528echo X/bfd_stdint.h |
13529 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13530 /^X\/\(\/\/\)$/{ s//\1/; q; }
13531 /^X\/\(\/\).*/{ s//\1/; q; }
13532 s/.*/./; q'` in
13533 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13534echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13535 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13536echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13537 *) ;;
13538esac
13539
13540echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13541echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13542
13543# ----------------- done included file, check C basic types --------
13544
13545# Lacking an uintptr_t? Test size of void *
13546case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13547 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13548echo $ECHO_N "checking for void *... $ECHO_C" >&6
13549if test "${ac_cv_type_void_p+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551else
13552 cat >conftest.$ac_ext <<_ACEOF
13553/* confdefs.h. */
13554_ACEOF
13555cat confdefs.h >>conftest.$ac_ext
13556cat >>conftest.$ac_ext <<_ACEOF
13557/* end confdefs.h. */
13558$ac_includes_default
13559int
13560main ()
13561{
13562if ((void * *) 0)
13563 return 0;
13564if (sizeof (void *))
13565 return 0;
13566 ;
13567 return 0;
13568}
13569_ACEOF
13570rm -f conftest.$ac_objext
13571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>conftest.er1
13573 ac_status=$?
13574 grep -v '^ *+' conftest.er1 >conftest.err
13575 rm -f conftest.er1
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -z "$ac_c_werror_flag"
13580 || test ! -s conftest.err'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; } &&
13586 { ac_try='test -s conftest.$ac_objext'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_cv_type_void_p=yes
13593else
13594 echo "$as_me: failed program was:" >&5
13595sed 's/^/| /' conftest.$ac_ext >&5
13596
13597ac_cv_type_void_p=no
13598fi
13599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13600fi
13601echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13602echo "${ECHO_T}$ac_cv_type_void_p" >&6
13603
13604echo "$as_me:$LINENO: checking size of void *" >&5
13605echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13606if test "${ac_cv_sizeof_void_p+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608else
13609 if test "$ac_cv_type_void_p" = yes; then
13610 # The cast to unsigned long works around a bug in the HP C Compiler
13611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13613 # This bug is HP SR number 8606223364.
13614 if test "$cross_compiling" = yes; then
13615 # Depending upon the size, compute the lo and hi bounds.
13616cat >conftest.$ac_ext <<_ACEOF
13617/* confdefs.h. */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
13621/* end confdefs.h. */
13622$ac_includes_default
13623int
13624main ()
13625{
13626static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13627test_array [0] = 0
13628
13629 ;
13630 return 0;
13631}
13632_ACEOF
13633rm -f conftest.$ac_objext
13634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13635 (eval $ac_compile) 2>conftest.er1
13636 ac_status=$?
13637 grep -v '^ *+' conftest.er1 >conftest.err
13638 rm -f conftest.er1
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try='test -z "$ac_c_werror_flag"
13643 || test ! -s conftest.err'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; } &&
13649 { ac_try='test -s conftest.$ac_objext'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13655 ac_lo=0 ac_mid=0
13656 while :; do
13657 cat >conftest.$ac_ext <<_ACEOF
13658/* confdefs.h. */
13659_ACEOF
13660cat confdefs.h >>conftest.$ac_ext
13661cat >>conftest.$ac_ext <<_ACEOF
13662/* end confdefs.h. */
13663$ac_includes_default
13664int
13665main ()
13666{
13667static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13668test_array [0] = 0
13669
13670 ;
13671 return 0;
13672}
13673_ACEOF
13674rm -f conftest.$ac_objext
13675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676 (eval $ac_compile) 2>conftest.er1
13677 ac_status=$?
13678 grep -v '^ *+' conftest.er1 >conftest.err
13679 rm -f conftest.er1
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
13683 { ac_try='test -z "$ac_c_werror_flag"
13684 || test ! -s conftest.err'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest.$ac_objext'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13696 ac_hi=$ac_mid; break
13697else
13698 echo "$as_me: failed program was:" >&5
13699sed 's/^/| /' conftest.$ac_ext >&5
13700
13701ac_lo=`expr $ac_mid + 1`
13702 if test $ac_lo -le $ac_mid; then
13703 ac_lo= ac_hi=
13704 break
13705 fi
13706 ac_mid=`expr 2 '*' $ac_mid + 1`
13707fi
13708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13709 done
13710else
13711 echo "$as_me: failed program was:" >&5
13712sed 's/^/| /' conftest.$ac_ext >&5
13713
13714cat >conftest.$ac_ext <<_ACEOF
13715/* confdefs.h. */
13716_ACEOF
13717cat confdefs.h >>conftest.$ac_ext
13718cat >>conftest.$ac_ext <<_ACEOF
13719/* end confdefs.h. */
13720$ac_includes_default
13721int
13722main ()
13723{
13724static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13725test_array [0] = 0
13726
13727 ;
13728 return 0;
13729}
13730_ACEOF
13731rm -f conftest.$ac_objext
13732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_hi=-1 ac_mid=-1
13754 while :; do
13755 cat >conftest.$ac_ext <<_ACEOF
13756/* confdefs.h. */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h. */
13761$ac_includes_default
13762int
13763main ()
13764{
13765static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13766test_array [0] = 0
13767
13768 ;
13769 return 0;
13770}
13771_ACEOF
13772rm -f conftest.$ac_objext
13773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13774 (eval $ac_compile) 2>conftest.er1
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -z "$ac_c_werror_flag"
13782 || test ! -s conftest.err'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest.$ac_objext'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 ac_lo=$ac_mid; break
13795else
13796 echo "$as_me: failed program was:" >&5
13797sed 's/^/| /' conftest.$ac_ext >&5
13798
13799ac_hi=`expr '(' $ac_mid ')' - 1`
13800 if test $ac_mid -le $ac_hi; then
13801 ac_lo= ac_hi=
13802 break
13803 fi
13804 ac_mid=`expr 2 '*' $ac_mid`
13805fi
13806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13807 done
13808else
13809 echo "$as_me: failed program was:" >&5
13810sed 's/^/| /' conftest.$ac_ext >&5
13811
13812ac_lo= ac_hi=
13813fi
13814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13815fi
13816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13817# Binary search between lo and hi bounds.
13818while test "x$ac_lo" != "x$ac_hi"; do
13819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13820 cat >conftest.$ac_ext <<_ACEOF
13821/* confdefs.h. */
13822_ACEOF
13823cat confdefs.h >>conftest.$ac_ext
13824cat >>conftest.$ac_ext <<_ACEOF
13825/* end confdefs.h. */
13826$ac_includes_default
13827int
13828main ()
13829{
13830static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13831test_array [0] = 0
13832
13833 ;
13834 return 0;
13835}
13836_ACEOF
13837rm -f conftest.$ac_objext
13838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13839 (eval $ac_compile) 2>conftest.er1
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
13846 { ac_try='test -z "$ac_c_werror_flag"
13847 || test ! -s conftest.err'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } &&
13853 { ac_try='test -s conftest.$ac_objext'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13859 ac_hi=$ac_mid
13860else
13861 echo "$as_me: failed program was:" >&5
13862sed 's/^/| /' conftest.$ac_ext >&5
13863
13864ac_lo=`expr '(' $ac_mid ')' + 1`
13865fi
13866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13867done
13868case $ac_lo in
13869?*) ac_cv_sizeof_void_p=$ac_lo;;
13870'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13871See \`config.log' for more details." >&5
13872echo "$as_me: error: cannot compute sizeof (void *), 77
13873See \`config.log' for more details." >&2;}
13874 { (exit 1); exit 1; }; } ;;
13875esac
13876else
13877 if test "$cross_compiling" = yes; then
13878 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13879See \`config.log' for more details." >&5
13880echo "$as_me: error: cannot run test program while cross compiling
13881See \`config.log' for more details." >&2;}
13882 { (exit 1); exit 1; }; }
13883else
13884 cat >conftest.$ac_ext <<_ACEOF
13885/* confdefs.h. */
13886_ACEOF
13887cat confdefs.h >>conftest.$ac_ext
13888cat >>conftest.$ac_ext <<_ACEOF
13889/* end confdefs.h. */
13890$ac_includes_default
13891long longval () { return (long) (sizeof (void *)); }
13892unsigned long ulongval () { return (long) (sizeof (void *)); }
13893#include <stdio.h>
13894#include <stdlib.h>
13895int
13896main ()
13897{
13898
13899 FILE *f = fopen ("conftest.val", "w");
13900 if (! f)
13901 exit (1);
13902 if (((long) (sizeof (void *))) < 0)
13903 {
13904 long i = longval ();
13905 if (i != ((long) (sizeof (void *))))
13906 exit (1);
13907 fprintf (f, "%ld\n", i);
13908 }
13909 else
13910 {
13911 unsigned long i = ulongval ();
13912 if (i != ((long) (sizeof (void *))))
13913 exit (1);
13914 fprintf (f, "%lu\n", i);
13915 }
13916 exit (ferror (f) || fclose (f) != 0);
13917
13918 ;
13919 return 0;
13920}
13921_ACEOF
13922rm -f conftest$ac_exeext
13923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13924 (eval $ac_link) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 ac_cv_sizeof_void_p=`cat conftest.val`
13934else
13935 echo "$as_me: program exited with status $ac_status" >&5
13936echo "$as_me: failed program was:" >&5
13937sed 's/^/| /' conftest.$ac_ext >&5
13938
13939( exit $ac_status )
13940{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13941See \`config.log' for more details." >&5
13942echo "$as_me: error: cannot compute sizeof (void *), 77
13943See \`config.log' for more details." >&2;}
13944 { (exit 1); exit 1; }; }
13945fi
13946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13947fi
13948fi
13949rm -f conftest.val
13950else
13951 ac_cv_sizeof_void_p=0
13952fi
13953fi
13954echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13955echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13956cat >>confdefs.h <<_ACEOF
13957#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13958_ACEOF
13959
13960 ;;
13961esac
13962
13963# Lacking an uint64_t? Test size of long
13964case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13965 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13966echo $ECHO_N "checking for long... $ECHO_C" >&6
13967if test "${ac_cv_type_long+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13969else
13970 cat >conftest.$ac_ext <<_ACEOF
13971/* confdefs.h. */
13972_ACEOF
13973cat confdefs.h >>conftest.$ac_ext
13974cat >>conftest.$ac_ext <<_ACEOF
13975/* end confdefs.h. */
13976$ac_includes_default
13977int
13978main ()
13979{
13980if ((long *) 0)
13981 return 0;
13982if (sizeof (long))
13983 return 0;
13984 ;
13985 return 0;
13986}
13987_ACEOF
13988rm -f conftest.$ac_objext
13989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990 (eval $ac_compile) 2>conftest.er1
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
13997 { ac_try='test -z "$ac_c_werror_flag"
13998 || test ! -s conftest.err'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; } &&
14004 { ac_try='test -s conftest.$ac_objext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 ac_cv_type_long=yes
14011else
14012 echo "$as_me: failed program was:" >&5
14013sed 's/^/| /' conftest.$ac_ext >&5
14014
14015ac_cv_type_long=no
14016fi
14017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14018fi
14019echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14020echo "${ECHO_T}$ac_cv_type_long" >&6
14021
14022echo "$as_me:$LINENO: checking size of long" >&5
14023echo $ECHO_N "checking size of long... $ECHO_C" >&6
14024if test "${ac_cv_sizeof_long+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14026else
14027 if test "$ac_cv_type_long" = yes; then
14028 # The cast to unsigned long works around a bug in the HP C Compiler
14029 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14030 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14031 # This bug is HP SR number 8606223364.
14032 if test "$cross_compiling" = yes; then
14033 # Depending upon the size, compute the lo and hi bounds.
14034cat >conftest.$ac_ext <<_ACEOF
14035/* confdefs.h. */
14036_ACEOF
14037cat confdefs.h >>conftest.$ac_ext
14038cat >>conftest.$ac_ext <<_ACEOF
14039/* end confdefs.h. */
14040$ac_includes_default
14041int
14042main ()
14043{
14044static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14045test_array [0] = 0
14046
14047 ;
14048 return 0;
14049}
14050_ACEOF
14051rm -f conftest.$ac_objext
14052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14053 (eval $ac_compile) 2>conftest.er1
14054 ac_status=$?
14055 grep -v '^ *+' conftest.er1 >conftest.err
14056 rm -f conftest.er1
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } &&
14060 { ac_try='test -z "$ac_c_werror_flag"
14061 || test ! -s conftest.err'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; } &&
14067 { ac_try='test -s conftest.$ac_objext'
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14070 ac_status=$?
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14073 ac_lo=0 ac_mid=0
14074 while :; do
14075 cat >conftest.$ac_ext <<_ACEOF
14076/* confdefs.h. */
14077_ACEOF
14078cat confdefs.h >>conftest.$ac_ext
14079cat >>conftest.$ac_ext <<_ACEOF
14080/* end confdefs.h. */
14081$ac_includes_default
14082int
14083main ()
14084{
14085static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14086test_array [0] = 0
14087
14088 ;
14089 return 0;
14090}
14091_ACEOF
14092rm -f conftest.$ac_objext
14093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14094 (eval $ac_compile) 2>conftest.er1
14095 ac_status=$?
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -z "$ac_c_werror_flag"
14102 || test ! -s conftest.err'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest.$ac_objext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_hi=$ac_mid; break
14115else
14116 echo "$as_me: failed program was:" >&5
14117sed 's/^/| /' conftest.$ac_ext >&5
14118
14119ac_lo=`expr $ac_mid + 1`
14120 if test $ac_lo -le $ac_mid; then
14121 ac_lo= ac_hi=
14122 break
14123 fi
14124 ac_mid=`expr 2 '*' $ac_mid + 1`
14125fi
14126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14127 done
14128else
14129 echo "$as_me: failed program was:" >&5
14130sed 's/^/| /' conftest.$ac_ext >&5
14131
14132cat >conftest.$ac_ext <<_ACEOF
14133/* confdefs.h. */
14134_ACEOF
14135cat confdefs.h >>conftest.$ac_ext
14136cat >>conftest.$ac_ext <<_ACEOF
14137/* end confdefs.h. */
14138$ac_includes_default
14139int
14140main ()
14141{
14142static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14143test_array [0] = 0
14144
14145 ;
14146 return 0;
14147}
14148_ACEOF
14149rm -f conftest.$ac_objext
14150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14151 (eval $ac_compile) 2>conftest.er1
14152 ac_status=$?
14153 grep -v '^ *+' conftest.er1 >conftest.err
14154 rm -f conftest.er1
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } &&
14158 { ac_try='test -z "$ac_c_werror_flag"
14159 || test ! -s conftest.err'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14162 ac_status=$?
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; } &&
14165 { ac_try='test -s conftest.$ac_objext'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14171 ac_hi=-1 ac_mid=-1
14172 while :; do
14173 cat >conftest.$ac_ext <<_ACEOF
14174/* confdefs.h. */
14175_ACEOF
14176cat confdefs.h >>conftest.$ac_ext
14177cat >>conftest.$ac_ext <<_ACEOF
14178/* end confdefs.h. */
14179$ac_includes_default
14180int
14181main ()
14182{
14183static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14184test_array [0] = 0
14185
14186 ;
14187 return 0;
14188}
14189_ACEOF
14190rm -f conftest.$ac_objext
14191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192 (eval $ac_compile) 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -z "$ac_c_werror_flag"
14200 || test ! -s conftest.err'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest.$ac_objext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 ac_lo=$ac_mid; break
14213else
14214 echo "$as_me: failed program was:" >&5
14215sed 's/^/| /' conftest.$ac_ext >&5
14216
14217ac_hi=`expr '(' $ac_mid ')' - 1`
14218 if test $ac_mid -le $ac_hi; then
14219 ac_lo= ac_hi=
14220 break
14221 fi
14222 ac_mid=`expr 2 '*' $ac_mid`
14223fi
14224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14225 done
14226else
14227 echo "$as_me: failed program was:" >&5
14228sed 's/^/| /' conftest.$ac_ext >&5
14229
14230ac_lo= ac_hi=
14231fi
14232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14233fi
14234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14235# Binary search between lo and hi bounds.
14236while test "x$ac_lo" != "x$ac_hi"; do
14237 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14238 cat >conftest.$ac_ext <<_ACEOF
14239/* confdefs.h. */
14240_ACEOF
14241cat confdefs.h >>conftest.$ac_ext
14242cat >>conftest.$ac_ext <<_ACEOF
14243/* end confdefs.h. */
14244$ac_includes_default
14245int
14246main ()
14247{
14248static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14249test_array [0] = 0
14250
14251 ;
14252 return 0;
14253}
14254_ACEOF
14255rm -f conftest.$ac_objext
14256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14257 (eval $ac_compile) 2>conftest.er1
14258 ac_status=$?
14259 grep -v '^ *+' conftest.er1 >conftest.err
14260 rm -f conftest.er1
14261 cat conftest.err >&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } &&
14264 { ac_try='test -z "$ac_c_werror_flag"
14265 || test ! -s conftest.err'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; } &&
14271 { ac_try='test -s conftest.$ac_objext'
14272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273 (eval $ac_try) 2>&5
14274 ac_status=$?
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); }; }; then
14277 ac_hi=$ac_mid
14278else
14279 echo "$as_me: failed program was:" >&5
14280sed 's/^/| /' conftest.$ac_ext >&5
14281
14282ac_lo=`expr '(' $ac_mid ')' + 1`
14283fi
14284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14285done
14286case $ac_lo in
14287?*) ac_cv_sizeof_long=$ac_lo;;
14288'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14289See \`config.log' for more details." >&5
14290echo "$as_me: error: cannot compute sizeof (long), 77
14291See \`config.log' for more details." >&2;}
14292 { (exit 1); exit 1; }; } ;;
14293esac
14294else
14295 if test "$cross_compiling" = yes; then
14296 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14297See \`config.log' for more details." >&5
14298echo "$as_me: error: cannot run test program while cross compiling
14299See \`config.log' for more details." >&2;}
14300 { (exit 1); exit 1; }; }
14301else
14302 cat >conftest.$ac_ext <<_ACEOF
14303/* confdefs.h. */
14304_ACEOF
14305cat confdefs.h >>conftest.$ac_ext
14306cat >>conftest.$ac_ext <<_ACEOF
14307/* end confdefs.h. */
14308$ac_includes_default
14309long longval () { return (long) (sizeof (long)); }
14310unsigned long ulongval () { return (long) (sizeof (long)); }
14311#include <stdio.h>
14312#include <stdlib.h>
14313int
14314main ()
14315{
14316
14317 FILE *f = fopen ("conftest.val", "w");
14318 if (! f)
14319 exit (1);
14320 if (((long) (sizeof (long))) < 0)
14321 {
14322 long i = longval ();
14323 if (i != ((long) (sizeof (long))))
14324 exit (1);
14325 fprintf (f, "%ld\n", i);
14326 }
14327 else
14328 {
14329 unsigned long i = ulongval ();
14330 if (i != ((long) (sizeof (long))))
14331 exit (1);
14332 fprintf (f, "%lu\n", i);
14333 }
14334 exit (ferror (f) || fclose (f) != 0);
14335
14336 ;
14337 return 0;
14338}
14339_ACEOF
14340rm -f conftest$ac_exeext
14341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14342 (eval $ac_link) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; }; then
14351 ac_cv_sizeof_long=`cat conftest.val`
14352else
14353 echo "$as_me: program exited with status $ac_status" >&5
14354echo "$as_me: failed program was:" >&5
14355sed 's/^/| /' conftest.$ac_ext >&5
14356
14357( exit $ac_status )
14358{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14359See \`config.log' for more details." >&5
14360echo "$as_me: error: cannot compute sizeof (long), 77
14361See \`config.log' for more details." >&2;}
14362 { (exit 1); exit 1; }; }
14363fi
14364rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14365fi
14366fi
14367rm -f conftest.val
14368else
14369 ac_cv_sizeof_long=0
14370fi
14371fi
14372echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14373echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14374cat >>confdefs.h <<_ACEOF
14375#define SIZEOF_LONG $ac_cv_sizeof_long
14376_ACEOF
14377
14378 ;;
14379esac
14380
14381if test $acx_cv_header_stdint = stddef.h; then
14382 # Lacking a good header? Test size of everything and deduce all types.
14383 echo "$as_me:$LINENO: checking for int" >&5
14384echo $ECHO_N "checking for int... $ECHO_C" >&6
14385if test "${ac_cv_type_int+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14387else
14388 cat >conftest.$ac_ext <<_ACEOF
14389/* confdefs.h. */
14390_ACEOF
14391cat confdefs.h >>conftest.$ac_ext
14392cat >>conftest.$ac_ext <<_ACEOF
14393/* end confdefs.h. */
14394$ac_includes_default
14395int
14396main ()
14397{
14398if ((int *) 0)
14399 return 0;
14400if (sizeof (int))
14401 return 0;
14402 ;
14403 return 0;
14404}
14405_ACEOF
14406rm -f conftest.$ac_objext
14407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408 (eval $ac_compile) 2>conftest.er1
14409 ac_status=$?
14410 grep -v '^ *+' conftest.er1 >conftest.err
14411 rm -f conftest.er1
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
14415 { ac_try='test -z "$ac_c_werror_flag"
14416 || test ! -s conftest.err'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try='test -s conftest.$ac_objext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_cv_type_int=yes
14429else
14430 echo "$as_me: failed program was:" >&5
14431sed 's/^/| /' conftest.$ac_ext >&5
14432
14433ac_cv_type_int=no
14434fi
14435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14436fi
14437echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14438echo "${ECHO_T}$ac_cv_type_int" >&6
14439
14440echo "$as_me:$LINENO: checking size of int" >&5
14441echo $ECHO_N "checking size of int... $ECHO_C" >&6
14442if test "${ac_cv_sizeof_int+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14444else
14445 if test "$ac_cv_type_int" = yes; then
14446 # The cast to unsigned long works around a bug in the HP C Compiler
14447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14449 # This bug is HP SR number 8606223364.
14450 if test "$cross_compiling" = yes; then
14451 # Depending upon the size, compute the lo and hi bounds.
14452cat >conftest.$ac_ext <<_ACEOF
14453/* confdefs.h. */
14454_ACEOF
14455cat confdefs.h >>conftest.$ac_ext
14456cat >>conftest.$ac_ext <<_ACEOF
14457/* end confdefs.h. */
14458$ac_includes_default
14459int
14460main ()
14461{
14462static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14463test_array [0] = 0
14464
14465 ;
14466 return 0;
14467}
14468_ACEOF
14469rm -f conftest.$ac_objext
14470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471 (eval $ac_compile) 2>conftest.er1
14472 ac_status=$?
14473 grep -v '^ *+' conftest.er1 >conftest.err
14474 rm -f conftest.er1
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } &&
14478 { ac_try='test -z "$ac_c_werror_flag"
14479 || test ! -s conftest.err'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; } &&
14485 { ac_try='test -s conftest.$ac_objext'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
14491 ac_lo=0 ac_mid=0
14492 while :; do
14493 cat >conftest.$ac_ext <<_ACEOF
14494/* confdefs.h. */
14495_ACEOF
14496cat confdefs.h >>conftest.$ac_ext
14497cat >>conftest.$ac_ext <<_ACEOF
14498/* end confdefs.h. */
14499$ac_includes_default
14500int
14501main ()
14502{
14503static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14504test_array [0] = 0
14505
14506 ;
14507 return 0;
14508}
14509_ACEOF
14510rm -f conftest.$ac_objext
14511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14512 (eval $ac_compile) 2>conftest.er1
14513 ac_status=$?
14514 grep -v '^ *+' conftest.er1 >conftest.err
14515 rm -f conftest.er1
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -z "$ac_c_werror_flag"
14520 || test ! -s conftest.err'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; } &&
14526 { ac_try='test -s conftest.$ac_objext'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_hi=$ac_mid; break
14533else
14534 echo "$as_me: failed program was:" >&5
14535sed 's/^/| /' conftest.$ac_ext >&5
14536
14537ac_lo=`expr $ac_mid + 1`
14538 if test $ac_lo -le $ac_mid; then
14539 ac_lo= ac_hi=
14540 break
14541 fi
14542 ac_mid=`expr 2 '*' $ac_mid + 1`
14543fi
14544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14545 done
14546else
14547 echo "$as_me: failed program was:" >&5
14548sed 's/^/| /' conftest.$ac_ext >&5
14549
14550cat >conftest.$ac_ext <<_ACEOF
14551/* confdefs.h. */
14552_ACEOF
14553cat confdefs.h >>conftest.$ac_ext
14554cat >>conftest.$ac_ext <<_ACEOF
14555/* end confdefs.h. */
14556$ac_includes_default
14557int
14558main ()
14559{
14560static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14561test_array [0] = 0
14562
14563 ;
14564 return 0;
14565}
14566_ACEOF
14567rm -f conftest.$ac_objext
14568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14569 (eval $ac_compile) 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try='test -z "$ac_c_werror_flag"
14577 || test ! -s conftest.err'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try='test -s conftest.$ac_objext'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 ac_hi=-1 ac_mid=-1
14590 while :; do
14591 cat >conftest.$ac_ext <<_ACEOF
14592/* confdefs.h. */
14593_ACEOF
14594cat confdefs.h >>conftest.$ac_ext
14595cat >>conftest.$ac_ext <<_ACEOF
14596/* end confdefs.h. */
14597$ac_includes_default
14598int
14599main ()
14600{
14601static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14602test_array [0] = 0
14603
14604 ;
14605 return 0;
14606}
14607_ACEOF
14608rm -f conftest.$ac_objext
14609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>conftest.er1
14611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } &&
14617 { ac_try='test -z "$ac_c_werror_flag"
14618 || test ! -s conftest.err'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; } &&
14624 { ac_try='test -s conftest.$ac_objext'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14627 ac_status=$?
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; }; then
14630 ac_lo=$ac_mid; break
14631else
14632 echo "$as_me: failed program was:" >&5
14633sed 's/^/| /' conftest.$ac_ext >&5
14634
14635ac_hi=`expr '(' $ac_mid ')' - 1`
14636 if test $ac_mid -le $ac_hi; then
14637 ac_lo= ac_hi=
14638 break
14639 fi
14640 ac_mid=`expr 2 '*' $ac_mid`
14641fi
14642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14643 done
14644else
14645 echo "$as_me: failed program was:" >&5
14646sed 's/^/| /' conftest.$ac_ext >&5
14647
14648ac_lo= ac_hi=
14649fi
14650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14651fi
14652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14653# Binary search between lo and hi bounds.
14654while test "x$ac_lo" != "x$ac_hi"; do
14655 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14656 cat >conftest.$ac_ext <<_ACEOF
14657/* confdefs.h. */
14658_ACEOF
14659cat confdefs.h >>conftest.$ac_ext
14660cat >>conftest.$ac_ext <<_ACEOF
14661/* end confdefs.h. */
14662$ac_includes_default
14663int
14664main ()
14665{
14666static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14667test_array [0] = 0
14668
14669 ;
14670 return 0;
14671}
14672_ACEOF
14673rm -f conftest.$ac_objext
14674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14675 (eval $ac_compile) 2>conftest.er1
14676 ac_status=$?
14677 grep -v '^ *+' conftest.er1 >conftest.err
14678 rm -f conftest.er1
14679 cat conftest.err >&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } &&
14682 { ac_try='test -z "$ac_c_werror_flag"
14683 || test ! -s conftest.err'
14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14686 ac_status=$?
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; } &&
14689 { ac_try='test -s conftest.$ac_objext'
14690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691 (eval $ac_try) 2>&5
14692 ac_status=$?
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; }; then
14695 ac_hi=$ac_mid
14696else
14697 echo "$as_me: failed program was:" >&5
14698sed 's/^/| /' conftest.$ac_ext >&5
14699
14700ac_lo=`expr '(' $ac_mid ')' + 1`
14701fi
14702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14703done
14704case $ac_lo in
14705?*) ac_cv_sizeof_int=$ac_lo;;
14706'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14707See \`config.log' for more details." >&5
14708echo "$as_me: error: cannot compute sizeof (int), 77
14709See \`config.log' for more details." >&2;}
14710 { (exit 1); exit 1; }; } ;;
14711esac
14712else
14713 if test "$cross_compiling" = yes; then
14714 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14715See \`config.log' for more details." >&5
14716echo "$as_me: error: cannot run test program while cross compiling
14717See \`config.log' for more details." >&2;}
14718 { (exit 1); exit 1; }; }
14719else
14720 cat >conftest.$ac_ext <<_ACEOF
14721/* confdefs.h. */
14722_ACEOF
14723cat confdefs.h >>conftest.$ac_ext
14724cat >>conftest.$ac_ext <<_ACEOF
14725/* end confdefs.h. */
14726$ac_includes_default
14727long longval () { return (long) (sizeof (int)); }
14728unsigned long ulongval () { return (long) (sizeof (int)); }
14729#include <stdio.h>
14730#include <stdlib.h>
14731int
14732main ()
14733{
14734
14735 FILE *f = fopen ("conftest.val", "w");
14736 if (! f)
14737 exit (1);
14738 if (((long) (sizeof (int))) < 0)
14739 {
14740 long i = longval ();
14741 if (i != ((long) (sizeof (int))))
14742 exit (1);
14743 fprintf (f, "%ld\n", i);
14744 }
14745 else
14746 {
14747 unsigned long i = ulongval ();
14748 if (i != ((long) (sizeof (int))))
14749 exit (1);
14750 fprintf (f, "%lu\n", i);
14751 }
14752 exit (ferror (f) || fclose (f) != 0);
14753
14754 ;
14755 return 0;
14756}
14757_ACEOF
14758rm -f conftest$ac_exeext
14759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14760 (eval $ac_link) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
14769 ac_cv_sizeof_int=`cat conftest.val`
14770else
14771 echo "$as_me: program exited with status $ac_status" >&5
14772echo "$as_me: failed program was:" >&5
14773sed 's/^/| /' conftest.$ac_ext >&5
14774
14775( exit $ac_status )
14776{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14777See \`config.log' for more details." >&5
14778echo "$as_me: error: cannot compute sizeof (int), 77
14779See \`config.log' for more details." >&2;}
14780 { (exit 1); exit 1; }; }
14781fi
14782rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14783fi
14784fi
14785rm -f conftest.val
14786else
14787 ac_cv_sizeof_int=0
14788fi
14789fi
14790echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14791echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14792cat >>confdefs.h <<_ACEOF
14793#define SIZEOF_INT $ac_cv_sizeof_int
14794_ACEOF
14795
14796
14797 echo "$as_me:$LINENO: checking for short" >&5
14798echo $ECHO_N "checking for short... $ECHO_C" >&6
14799if test "${ac_cv_type_short+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14801else
14802 cat >conftest.$ac_ext <<_ACEOF
14803/* confdefs.h. */
14804_ACEOF
14805cat confdefs.h >>conftest.$ac_ext
14806cat >>conftest.$ac_ext <<_ACEOF
14807/* end confdefs.h. */
14808$ac_includes_default
14809int
14810main ()
14811{
14812if ((short *) 0)
14813 return 0;
14814if (sizeof (short))
14815 return 0;
14816 ;
14817 return 0;
14818}
14819_ACEOF
14820rm -f conftest.$ac_objext
14821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14822 (eval $ac_compile) 2>conftest.er1
14823 ac_status=$?
14824 grep -v '^ *+' conftest.er1 >conftest.err
14825 rm -f conftest.er1
14826 cat conftest.err >&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
14829 { ac_try='test -z "$ac_c_werror_flag"
14830 || test ! -s conftest.err'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; } &&
14836 { ac_try='test -s conftest.$ac_objext'
14837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838 (eval $ac_try) 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14842 ac_cv_type_short=yes
14843else
14844 echo "$as_me: failed program was:" >&5
14845sed 's/^/| /' conftest.$ac_ext >&5
14846
14847ac_cv_type_short=no
14848fi
14849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14850fi
14851echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14852echo "${ECHO_T}$ac_cv_type_short" >&6
14853
14854echo "$as_me:$LINENO: checking size of short" >&5
14855echo $ECHO_N "checking size of short... $ECHO_C" >&6
14856if test "${ac_cv_sizeof_short+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14858else
14859 if test "$ac_cv_type_short" = yes; then
14860 # The cast to unsigned long works around a bug in the HP C Compiler
14861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14863 # This bug is HP SR number 8606223364.
14864 if test "$cross_compiling" = yes; then
14865 # Depending upon the size, compute the lo and hi bounds.
14866cat >conftest.$ac_ext <<_ACEOF
14867/* confdefs.h. */
14868_ACEOF
14869cat confdefs.h >>conftest.$ac_ext
14870cat >>conftest.$ac_ext <<_ACEOF
14871/* end confdefs.h. */
14872$ac_includes_default
14873int
14874main ()
14875{
14876static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14877test_array [0] = 0
14878
14879 ;
14880 return 0;
14881}
14882_ACEOF
14883rm -f conftest.$ac_objext
14884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14885 (eval $ac_compile) 2>conftest.er1
14886 ac_status=$?
14887 grep -v '^ *+' conftest.er1 >conftest.err
14888 rm -f conftest.er1
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try='test -z "$ac_c_werror_flag"
14893 || test ! -s conftest.err'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; } &&
14899 { ac_try='test -s conftest.$ac_objext'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; }; then
14905 ac_lo=0 ac_mid=0
14906 while :; do
14907 cat >conftest.$ac_ext <<_ACEOF
14908/* confdefs.h. */
14909_ACEOF
14910cat confdefs.h >>conftest.$ac_ext
14911cat >>conftest.$ac_ext <<_ACEOF
14912/* end confdefs.h. */
14913$ac_includes_default
14914int
14915main ()
14916{
14917static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14918test_array [0] = 0
14919
14920 ;
14921 return 0;
14922}
14923_ACEOF
14924rm -f conftest.$ac_objext
14925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14926 (eval $ac_compile) 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } &&
14933 { ac_try='test -z "$ac_c_werror_flag"
14934 || test ! -s conftest.err'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; } &&
14940 { ac_try='test -s conftest.$ac_objext'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; }; then
14946 ac_hi=$ac_mid; break
14947else
14948 echo "$as_me: failed program was:" >&5
14949sed 's/^/| /' conftest.$ac_ext >&5
14950
14951ac_lo=`expr $ac_mid + 1`
14952 if test $ac_lo -le $ac_mid; then
14953 ac_lo= ac_hi=
14954 break
14955 fi
14956 ac_mid=`expr 2 '*' $ac_mid + 1`
14957fi
14958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14959 done
14960else
14961 echo "$as_me: failed program was:" >&5
14962sed 's/^/| /' conftest.$ac_ext >&5
14963
14964cat >conftest.$ac_ext <<_ACEOF
14965/* confdefs.h. */
14966_ACEOF
14967cat confdefs.h >>conftest.$ac_ext
14968cat >>conftest.$ac_ext <<_ACEOF
14969/* end confdefs.h. */
14970$ac_includes_default
14971int
14972main ()
14973{
14974static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14975test_array [0] = 0
14976
14977 ;
14978 return 0;
14979}
14980_ACEOF
14981rm -f conftest.$ac_objext
14982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14983 (eval $ac_compile) 2>conftest.er1
14984 ac_status=$?
14985 grep -v '^ *+' conftest.er1 >conftest.err
14986 rm -f conftest.er1
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -z "$ac_c_werror_flag"
14991 || test ! -s conftest.err'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; } &&
14997 { ac_try='test -s conftest.$ac_objext'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15000 ac_status=$?
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15003 ac_hi=-1 ac_mid=-1
15004 while :; do
15005 cat >conftest.$ac_ext <<_ACEOF
15006/* confdefs.h. */
15007_ACEOF
15008cat confdefs.h >>conftest.$ac_ext
15009cat >>conftest.$ac_ext <<_ACEOF
15010/* end confdefs.h. */
15011$ac_includes_default
15012int
15013main ()
15014{
15015static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15016test_array [0] = 0
15017
15018 ;
15019 return 0;
15020}
15021_ACEOF
15022rm -f conftest.$ac_objext
15023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>conftest.er1
15025 ac_status=$?
15026 grep -v '^ *+' conftest.er1 >conftest.err
15027 rm -f conftest.er1
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
15031 { ac_try='test -z "$ac_c_werror_flag"
15032 || test ! -s conftest.err'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; } &&
15038 { ac_try='test -s conftest.$ac_objext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_lo=$ac_mid; break
15045else
15046 echo "$as_me: failed program was:" >&5
15047sed 's/^/| /' conftest.$ac_ext >&5
15048
15049ac_hi=`expr '(' $ac_mid ')' - 1`
15050 if test $ac_mid -le $ac_hi; then
15051 ac_lo= ac_hi=
15052 break
15053 fi
15054 ac_mid=`expr 2 '*' $ac_mid`
15055fi
15056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15057 done
15058else
15059 echo "$as_me: failed program was:" >&5
15060sed 's/^/| /' conftest.$ac_ext >&5
15061
15062ac_lo= ac_hi=
15063fi
15064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15065fi
15066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15067# Binary search between lo and hi bounds.
15068while test "x$ac_lo" != "x$ac_hi"; do
15069 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15070 cat >conftest.$ac_ext <<_ACEOF
15071/* confdefs.h. */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
15075/* end confdefs.h. */
15076$ac_includes_default
15077int
15078main ()
15079{
15080static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15081test_array [0] = 0
15082
15083 ;
15084 return 0;
15085}
15086_ACEOF
15087rm -f conftest.$ac_objext
15088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15089 (eval $ac_compile) 2>conftest.er1
15090 ac_status=$?
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -z "$ac_c_werror_flag"
15097 || test ! -s conftest.err'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; } &&
15103 { ac_try='test -s conftest.$ac_objext'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15106 ac_status=$?
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 ac_hi=$ac_mid
15110else
15111 echo "$as_me: failed program was:" >&5
15112sed 's/^/| /' conftest.$ac_ext >&5
15113
15114ac_lo=`expr '(' $ac_mid ')' + 1`
15115fi
15116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15117done
15118case $ac_lo in
15119?*) ac_cv_sizeof_short=$ac_lo;;
15120'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15121See \`config.log' for more details." >&5
15122echo "$as_me: error: cannot compute sizeof (short), 77
15123See \`config.log' for more details." >&2;}
15124 { (exit 1); exit 1; }; } ;;
15125esac
15126else
15127 if test "$cross_compiling" = yes; then
15128 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15129See \`config.log' for more details." >&5
15130echo "$as_me: error: cannot run test program while cross compiling
15131See \`config.log' for more details." >&2;}
15132 { (exit 1); exit 1; }; }
15133else
15134 cat >conftest.$ac_ext <<_ACEOF
15135/* confdefs.h. */
15136_ACEOF
15137cat confdefs.h >>conftest.$ac_ext
15138cat >>conftest.$ac_ext <<_ACEOF
15139/* end confdefs.h. */
15140$ac_includes_default
15141long longval () { return (long) (sizeof (short)); }
15142unsigned long ulongval () { return (long) (sizeof (short)); }
15143#include <stdio.h>
15144#include <stdlib.h>
15145int
15146main ()
15147{
15148
15149 FILE *f = fopen ("conftest.val", "w");
15150 if (! f)
15151 exit (1);
15152 if (((long) (sizeof (short))) < 0)
15153 {
15154 long i = longval ();
15155 if (i != ((long) (sizeof (short))))
15156 exit (1);
15157 fprintf (f, "%ld\n", i);
15158 }
15159 else
15160 {
15161 unsigned long i = ulongval ();
15162 if (i != ((long) (sizeof (short))))
15163 exit (1);
15164 fprintf (f, "%lu\n", i);
15165 }
15166 exit (ferror (f) || fclose (f) != 0);
15167
15168 ;
15169 return 0;
15170}
15171_ACEOF
15172rm -f conftest$ac_exeext
15173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15174 (eval $ac_link) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15183 ac_cv_sizeof_short=`cat conftest.val`
15184else
15185 echo "$as_me: program exited with status $ac_status" >&5
15186echo "$as_me: failed program was:" >&5
15187sed 's/^/| /' conftest.$ac_ext >&5
15188
15189( exit $ac_status )
15190{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15191See \`config.log' for more details." >&5
15192echo "$as_me: error: cannot compute sizeof (short), 77
15193See \`config.log' for more details." >&2;}
15194 { (exit 1); exit 1; }; }
15195fi
15196rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15197fi
15198fi
15199rm -f conftest.val
15200else
15201 ac_cv_sizeof_short=0
15202fi
15203fi
15204echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15205echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15206cat >>confdefs.h <<_ACEOF
15207#define SIZEOF_SHORT $ac_cv_sizeof_short
15208_ACEOF
15209
15210
15211 echo "$as_me:$LINENO: checking for char" >&5
15212echo $ECHO_N "checking for char... $ECHO_C" >&6
15213if test "${ac_cv_type_char+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15215else
15216 cat >conftest.$ac_ext <<_ACEOF
15217/* confdefs.h. */
15218_ACEOF
15219cat confdefs.h >>conftest.$ac_ext
15220cat >>conftest.$ac_ext <<_ACEOF
15221/* end confdefs.h. */
15222$ac_includes_default
15223int
15224main ()
15225{
15226if ((char *) 0)
15227 return 0;
15228if (sizeof (char))
15229 return 0;
15230 ;
15231 return 0;
15232}
15233_ACEOF
15234rm -f conftest.$ac_objext
15235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15236 (eval $ac_compile) 2>conftest.er1
15237 ac_status=$?
15238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -z "$ac_c_werror_flag"
15244 || test ! -s conftest.err'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try='test -s conftest.$ac_objext'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15256 ac_cv_type_char=yes
15257else
15258 echo "$as_me: failed program was:" >&5
15259sed 's/^/| /' conftest.$ac_ext >&5
15260
15261ac_cv_type_char=no
15262fi
15263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15264fi
15265echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15266echo "${ECHO_T}$ac_cv_type_char" >&6
15267
15268echo "$as_me:$LINENO: checking size of char" >&5
15269echo $ECHO_N "checking size of char... $ECHO_C" >&6
15270if test "${ac_cv_sizeof_char+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272else
15273 if test "$ac_cv_type_char" = yes; then
15274 # The cast to unsigned long works around a bug in the HP C Compiler
15275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15277 # This bug is HP SR number 8606223364.
15278 if test "$cross_compiling" = yes; then
15279 # Depending upon the size, compute the lo and hi bounds.
15280cat >conftest.$ac_ext <<_ACEOF
15281/* confdefs.h. */
15282_ACEOF
15283cat confdefs.h >>conftest.$ac_ext
15284cat >>conftest.$ac_ext <<_ACEOF
15285/* end confdefs.h. */
15286$ac_includes_default
15287int
15288main ()
15289{
15290static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15291test_array [0] = 0
15292
15293 ;
15294 return 0;
15295}
15296_ACEOF
15297rm -f conftest.$ac_objext
15298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15299 (eval $ac_compile) 2>conftest.er1
15300 ac_status=$?
15301 grep -v '^ *+' conftest.er1 >conftest.err
15302 rm -f conftest.er1
15303 cat conftest.err >&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } &&
15306 { ac_try='test -z "$ac_c_werror_flag"
15307 || test ! -s conftest.err'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; } &&
15313 { ac_try='test -s conftest.$ac_objext'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15316 ac_status=$?
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
15319 ac_lo=0 ac_mid=0
15320 while :; do
15321 cat >conftest.$ac_ext <<_ACEOF
15322/* confdefs.h. */
15323_ACEOF
15324cat confdefs.h >>conftest.$ac_ext
15325cat >>conftest.$ac_ext <<_ACEOF
15326/* end confdefs.h. */
15327$ac_includes_default
15328int
15329main ()
15330{
15331static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15332test_array [0] = 0
15333
15334 ;
15335 return 0;
15336}
15337_ACEOF
15338rm -f conftest.$ac_objext
15339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 (eval $ac_compile) 2>conftest.er1
15341 ac_status=$?
15342 grep -v '^ *+' conftest.er1 >conftest.err
15343 rm -f conftest.er1
15344 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
15347 { ac_try='test -z "$ac_c_werror_flag"
15348 || test ! -s conftest.err'
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15351 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; } &&
15354 { ac_try='test -s conftest.$ac_objext'
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 ac_hi=$ac_mid; break
15361else
15362 echo "$as_me: failed program was:" >&5
15363sed 's/^/| /' conftest.$ac_ext >&5
15364
15365ac_lo=`expr $ac_mid + 1`
15366 if test $ac_lo -le $ac_mid; then
15367 ac_lo= ac_hi=
15368 break
15369 fi
15370 ac_mid=`expr 2 '*' $ac_mid + 1`
15371fi
15372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15373 done
15374else
15375 echo "$as_me: failed program was:" >&5
15376sed 's/^/| /' conftest.$ac_ext >&5
15377
15378cat >conftest.$ac_ext <<_ACEOF
15379/* confdefs.h. */
15380_ACEOF
15381cat confdefs.h >>conftest.$ac_ext
15382cat >>conftest.$ac_ext <<_ACEOF
15383/* end confdefs.h. */
15384$ac_includes_default
15385int
15386main ()
15387{
15388static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15389test_array [0] = 0
15390
15391 ;
15392 return 0;
15393}
15394_ACEOF
15395rm -f conftest.$ac_objext
15396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15397 (eval $ac_compile) 2>conftest.er1
15398 ac_status=$?
15399 grep -v '^ *+' conftest.er1 >conftest.err
15400 rm -f conftest.er1
15401 cat conftest.err >&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } &&
15404 { ac_try='test -z "$ac_c_werror_flag"
15405 || test ! -s conftest.err'
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15408 ac_status=$?
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; } &&
15411 { ac_try='test -s conftest.$ac_objext'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15414 ac_status=$?
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; }; then
15417 ac_hi=-1 ac_mid=-1
15418 while :; do
15419 cat >conftest.$ac_ext <<_ACEOF
15420/* confdefs.h. */
15421_ACEOF
15422cat confdefs.h >>conftest.$ac_ext
15423cat >>conftest.$ac_ext <<_ACEOF
15424/* end confdefs.h. */
15425$ac_includes_default
15426int
15427main ()
15428{
15429static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15430test_array [0] = 0
15431
15432 ;
15433 return 0;
15434}
15435_ACEOF
15436rm -f conftest.$ac_objext
15437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15438 (eval $ac_compile) 2>conftest.er1
15439 ac_status=$?
15440 grep -v '^ *+' conftest.er1 >conftest.err
15441 rm -f conftest.er1
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
15445 { ac_try='test -z "$ac_c_werror_flag"
15446 || test ! -s conftest.err'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest.$ac_objext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_lo=$ac_mid; break
15459else
15460 echo "$as_me: failed program was:" >&5
15461sed 's/^/| /' conftest.$ac_ext >&5
15462
15463ac_hi=`expr '(' $ac_mid ')' - 1`
15464 if test $ac_mid -le $ac_hi; then
15465 ac_lo= ac_hi=
15466 break
15467 fi
15468 ac_mid=`expr 2 '*' $ac_mid`
15469fi
15470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15471 done
15472else
15473 echo "$as_me: failed program was:" >&5
15474sed 's/^/| /' conftest.$ac_ext >&5
15475
15476ac_lo= ac_hi=
15477fi
15478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15479fi
15480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15481# Binary search between lo and hi bounds.
15482while test "x$ac_lo" != "x$ac_hi"; do
15483 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15484 cat >conftest.$ac_ext <<_ACEOF
15485/* confdefs.h. */
15486_ACEOF
15487cat confdefs.h >>conftest.$ac_ext
15488cat >>conftest.$ac_ext <<_ACEOF
15489/* end confdefs.h. */
15490$ac_includes_default
15491int
15492main ()
15493{
15494static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15495test_array [0] = 0
15496
15497 ;
15498 return 0;
15499}
15500_ACEOF
15501rm -f conftest.$ac_objext
15502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15503 (eval $ac_compile) 2>conftest.er1
15504 ac_status=$?
15505 grep -v '^ *+' conftest.er1 >conftest.err
15506 rm -f conftest.er1
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try='test -z "$ac_c_werror_flag"
15511 || test ! -s conftest.err'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; } &&
15517 { ac_try='test -s conftest.$ac_objext'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15523 ac_hi=$ac_mid
15524else
15525 echo "$as_me: failed program was:" >&5
15526sed 's/^/| /' conftest.$ac_ext >&5
15527
15528ac_lo=`expr '(' $ac_mid ')' + 1`
15529fi
15530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15531done
15532case $ac_lo in
15533?*) ac_cv_sizeof_char=$ac_lo;;
15534'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15535See \`config.log' for more details." >&5
15536echo "$as_me: error: cannot compute sizeof (char), 77
15537See \`config.log' for more details." >&2;}
15538 { (exit 1); exit 1; }; } ;;
15539esac
15540else
15541 if test "$cross_compiling" = yes; then
15542 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15543See \`config.log' for more details." >&5
15544echo "$as_me: error: cannot run test program while cross compiling
15545See \`config.log' for more details." >&2;}
15546 { (exit 1); exit 1; }; }
15547else
15548 cat >conftest.$ac_ext <<_ACEOF
15549/* confdefs.h. */
15550_ACEOF
15551cat confdefs.h >>conftest.$ac_ext
15552cat >>conftest.$ac_ext <<_ACEOF
15553/* end confdefs.h. */
15554$ac_includes_default
15555long longval () { return (long) (sizeof (char)); }
15556unsigned long ulongval () { return (long) (sizeof (char)); }
15557#include <stdio.h>
15558#include <stdlib.h>
15559int
15560main ()
15561{
15562
15563 FILE *f = fopen ("conftest.val", "w");
15564 if (! f)
15565 exit (1);
15566 if (((long) (sizeof (char))) < 0)
15567 {
15568 long i = longval ();
15569 if (i != ((long) (sizeof (char))))
15570 exit (1);
15571 fprintf (f, "%ld\n", i);
15572 }
15573 else
15574 {
15575 unsigned long i = ulongval ();
15576 if (i != ((long) (sizeof (char))))
15577 exit (1);
15578 fprintf (f, "%lu\n", i);
15579 }
15580 exit (ferror (f) || fclose (f) != 0);
15581
15582 ;
15583 return 0;
15584}
15585_ACEOF
15586rm -f conftest$ac_exeext
15587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588 (eval $ac_link) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 ac_cv_sizeof_char=`cat conftest.val`
15598else
15599 echo "$as_me: program exited with status $ac_status" >&5
15600echo "$as_me: failed program was:" >&5
15601sed 's/^/| /' conftest.$ac_ext >&5
15602
15603( exit $ac_status )
15604{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15605See \`config.log' for more details." >&5
15606echo "$as_me: error: cannot compute sizeof (char), 77
15607See \`config.log' for more details." >&2;}
15608 { (exit 1); exit 1; }; }
15609fi
15610rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15611fi
15612fi
15613rm -f conftest.val
15614else
15615 ac_cv_sizeof_char=0
15616fi
15617fi
15618echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15619echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15620cat >>confdefs.h <<_ACEOF
15621#define SIZEOF_CHAR $ac_cv_sizeof_char
15622_ACEOF
15623
15624
15625
15626 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15627echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15628 case "$ac_cv_sizeof_char" in
15629 1) acx_cv_type_int8_t=char ;;
15630 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15631echo "$as_me: error: no 8-bit type" >&2;}
15632 { (exit please report a bug); exit please report a bug; }; }
15633 esac
15634 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15635echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15636
15637 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15638echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15639 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15640 2:*) acx_cv_type_int16_t=int ;;
15641 *:2) acx_cv_type_int16_t=short ;;
15642 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15643echo "$as_me: error: no 16-bit type" >&2;}
15644 { (exit please report a bug); exit please report a bug; }; }
15645 esac
15646 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15647echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15648
15649 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15650echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15651 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15652 4:*) acx_cv_type_int32_t=int ;;
15653 *:4) acx_cv_type_int32_t=long ;;
15654 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15655echo "$as_me: error: no 32-bit type" >&2;}
15656 { (exit please report a bug); exit please report a bug; }; }
15657 esac
15658 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15659echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15660fi
15661
15662# These tests are here to make the output prettier
15663
15664if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15665 case "$ac_cv_sizeof_long" in
15666 8) acx_cv_type_int64_t=long ;;
15667 esac
15668 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15669echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15670 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15671echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15672fi
15673
15674# Now we can use the above types
15675
15676if test "$ac_cv_type_uintptr_t" != yes; then
15677 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15678echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15679 case $ac_cv_sizeof_void_p in
15680 2) acx_cv_type_intptr_t=int16_t ;;
15681 4) acx_cv_type_intptr_t=int32_t ;;
15682 8) acx_cv_type_intptr_t=int64_t ;;
15683 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15684echo "$as_me: error: no equivalent for intptr_t" >&2;}
15685 { (exit please report a bug); exit please report a bug; }; }
15686 esac
15687 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15688echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15689fi
15690
15691# ----------------- done all checks, emit header -------------
15692 ac_config_commands="$ac_config_commands bfd_stdint.h"
15693
15694
15695
2ba49b59
KC
15696echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15697echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15698if test "${ac_cv_header_time+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15700else
15701 cat >conftest.$ac_ext <<_ACEOF
15702/* confdefs.h. */
15703_ACEOF
15704cat confdefs.h >>conftest.$ac_ext
15705cat >>conftest.$ac_ext <<_ACEOF
15706/* end confdefs.h. */
15707#include <sys/types.h>
15708#include <sys/time.h>
15709#include <time.h>
15710
15711int
15712main ()
15713{
15714if ((struct tm *) 0)
15715return 0;
15716 ;
15717 return 0;
15718}
15719_ACEOF
15720rm -f conftest.$ac_objext
15721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15722 (eval $ac_compile) 2>conftest.er1
15723 ac_status=$?
15724 grep -v '^ *+' conftest.er1 >conftest.err
15725 rm -f conftest.er1
15726 cat conftest.err >&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } &&
49c96104
SE
15729 { ac_try='test -z "$ac_c_werror_flag"
15730 || test ! -s conftest.err'
2ba49b59
KC
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; } &&
15736 { ac_try='test -s conftest.$ac_objext'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_cv_header_time=yes
15743else
15744 echo "$as_me: failed program was:" >&5
15745sed 's/^/| /' conftest.$ac_ext >&5
15746
15747ac_cv_header_time=no
15748fi
15749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15750fi
15751echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15752echo "${ECHO_T}$ac_cv_header_time" >&6
15753if test $ac_cv_header_time = yes; then
15754
15755cat >>confdefs.h <<\_ACEOF
15756#define TIME_WITH_SYS_TIME 1
15757_ACEOF
15758
15759fi
15760
15761
15762
15763
15764
15765
15766ac_header_dirent=no
15767for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15768 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15769echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15770echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15771if eval "test \"\${$as_ac_Header+set}\" = set"; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15773else
15774 cat >conftest.$ac_ext <<_ACEOF
15775/* confdefs.h. */
15776_ACEOF
15777cat confdefs.h >>conftest.$ac_ext
15778cat >>conftest.$ac_ext <<_ACEOF
15779/* end confdefs.h. */
15780#include <sys/types.h>
15781#include <$ac_hdr>
15782
15783int
15784main ()
15785{
15786if ((DIR *) 0)
15787return 0;
15788 ;
15789 return 0;
15790}
15791_ACEOF
15792rm -f conftest.$ac_objext
15793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15794 (eval $ac_compile) 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } &&
49c96104
SE
15801 { ac_try='test -z "$ac_c_werror_flag"
15802 || test ! -s conftest.err'
2ba49b59
KC
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; } &&
15808 { ac_try='test -s conftest.$ac_objext'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 eval "$as_ac_Header=yes"
15815else
15816 echo "$as_me: failed program was:" >&5
15817sed 's/^/| /' conftest.$ac_ext >&5
15818
15819eval "$as_ac_Header=no"
15820fi
15821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15822fi
15823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15825if test `eval echo '${'$as_ac_Header'}'` = yes; then
15826 cat >>confdefs.h <<_ACEOF
15827#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15828_ACEOF
15829
15830ac_header_dirent=$ac_hdr; break
15831fi
15832
15833done
15834# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15835if test $ac_header_dirent = dirent.h; then
15836 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15837echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15838if test "${ac_cv_search_opendir+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15840else
15841 ac_func_search_save_LIBS=$LIBS
15842ac_cv_search_opendir=no
15843cat >conftest.$ac_ext <<_ACEOF
15844/* confdefs.h. */
15845_ACEOF
15846cat confdefs.h >>conftest.$ac_ext
15847cat >>conftest.$ac_ext <<_ACEOF
15848/* end confdefs.h. */
15849
15850/* Override any gcc2 internal prototype to avoid an error. */
15851#ifdef __cplusplus
15852extern "C"
15853#endif
15854/* We use char because int might match the return type of a gcc2
15855 builtin and then its argument prototype would still apply. */
15856char opendir ();
15857int
15858main ()
15859{
15860opendir ();
15861 ;
15862 return 0;
15863}
15864_ACEOF
15865rm -f conftest.$ac_objext conftest$ac_exeext
15866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15867 (eval $ac_link) 2>conftest.er1
15868 ac_status=$?
15869 grep -v '^ *+' conftest.er1 >conftest.err
15870 rm -f conftest.er1
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } &&
49c96104
SE
15874 { ac_try='test -z "$ac_c_werror_flag"
15875 || test ! -s conftest.err'
2ba49b59
KC
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; } &&
15881 { ac_try='test -s conftest$ac_exeext'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 ac_cv_search_opendir="none required"
15888else
15889 echo "$as_me: failed program was:" >&5
15890sed 's/^/| /' conftest.$ac_ext >&5
15891
15892fi
15893rm -f conftest.err conftest.$ac_objext \
15894 conftest$ac_exeext conftest.$ac_ext
15895if test "$ac_cv_search_opendir" = no; then
15896 for ac_lib in dir; do
15897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15898 cat >conftest.$ac_ext <<_ACEOF
15899/* confdefs.h. */
15900_ACEOF
15901cat confdefs.h >>conftest.$ac_ext
15902cat >>conftest.$ac_ext <<_ACEOF
15903/* end confdefs.h. */
15904
15905/* Override any gcc2 internal prototype to avoid an error. */
15906#ifdef __cplusplus
15907extern "C"
15908#endif
15909/* We use char because int might match the return type of a gcc2
15910 builtin and then its argument prototype would still apply. */
15911char opendir ();
15912int
15913main ()
15914{
15915opendir ();
15916 ;
15917 return 0;
15918}
15919_ACEOF
15920rm -f conftest.$ac_objext conftest$ac_exeext
15921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15922 (eval $ac_link) 2>conftest.er1
15923 ac_status=$?
15924 grep -v '^ *+' conftest.er1 >conftest.err
15925 rm -f conftest.er1
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } &&
49c96104
SE
15929 { ac_try='test -z "$ac_c_werror_flag"
15930 || test ! -s conftest.err'
2ba49b59
KC
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; } &&
15936 { ac_try='test -s conftest$ac_exeext'
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15939 ac_status=$?
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; }; then
15942 ac_cv_search_opendir="-l$ac_lib"
15943break
15944else
15945 echo "$as_me: failed program was:" >&5
15946sed 's/^/| /' conftest.$ac_ext >&5
15947
15948fi
15949rm -f conftest.err conftest.$ac_objext \
15950 conftest$ac_exeext conftest.$ac_ext
15951 done
15952fi
15953LIBS=$ac_func_search_save_LIBS
15954fi
15955echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15956echo "${ECHO_T}$ac_cv_search_opendir" >&6
15957if test "$ac_cv_search_opendir" != no; then
15958 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15959
15960fi
15961
15962else
15963 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15964echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15965if test "${ac_cv_search_opendir+set}" = set; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15967else
15968 ac_func_search_save_LIBS=$LIBS
15969ac_cv_search_opendir=no
15970cat >conftest.$ac_ext <<_ACEOF
15971/* confdefs.h. */
15972_ACEOF
15973cat confdefs.h >>conftest.$ac_ext
15974cat >>conftest.$ac_ext <<_ACEOF
15975/* end confdefs.h. */
15976
15977/* Override any gcc2 internal prototype to avoid an error. */
15978#ifdef __cplusplus
15979extern "C"
15980#endif
15981/* We use char because int might match the return type of a gcc2
15982 builtin and then its argument prototype would still apply. */
15983char opendir ();
15984int
15985main ()
15986{
15987opendir ();
15988 ;
15989 return 0;
15990}
15991_ACEOF
15992rm -f conftest.$ac_objext conftest$ac_exeext
15993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15994 (eval $ac_link) 2>conftest.er1
15995 ac_status=$?
15996 grep -v '^ *+' conftest.er1 >conftest.err
15997 rm -f conftest.er1
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
49c96104
SE
16001 { ac_try='test -z "$ac_c_werror_flag"
16002 || test ! -s conftest.err'
2ba49b59
KC
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try='test -s conftest$ac_exeext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 ac_cv_search_opendir="none required"
16015else
16016 echo "$as_me: failed program was:" >&5
16017sed 's/^/| /' conftest.$ac_ext >&5
16018
16019fi
16020rm -f conftest.err conftest.$ac_objext \
16021 conftest$ac_exeext conftest.$ac_ext
16022if test "$ac_cv_search_opendir" = no; then
16023 for ac_lib in x; do
16024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16025 cat >conftest.$ac_ext <<_ACEOF
16026/* confdefs.h. */
16027_ACEOF
16028cat confdefs.h >>conftest.$ac_ext
16029cat >>conftest.$ac_ext <<_ACEOF
16030/* end confdefs.h. */
16031
16032/* Override any gcc2 internal prototype to avoid an error. */
16033#ifdef __cplusplus
16034extern "C"
16035#endif
16036/* We use char because int might match the return type of a gcc2
16037 builtin and then its argument prototype would still apply. */
16038char opendir ();
16039int
16040main ()
16041{
16042opendir ();
16043 ;
16044 return 0;
16045}
16046_ACEOF
16047rm -f conftest.$ac_objext conftest$ac_exeext
16048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16049 (eval $ac_link) 2>conftest.er1
16050 ac_status=$?
16051 grep -v '^ *+' conftest.er1 >conftest.err
16052 rm -f conftest.er1
16053 cat conftest.err >&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } &&
49c96104
SE
16056 { ac_try='test -z "$ac_c_werror_flag"
16057 || test ! -s conftest.err'
2ba49b59
KC
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; } &&
16063 { ac_try='test -s conftest$ac_exeext'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16066 ac_status=$?
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; }; then
16069 ac_cv_search_opendir="-l$ac_lib"
16070break
16071else
16072 echo "$as_me: failed program was:" >&5
16073sed 's/^/| /' conftest.$ac_ext >&5
16074
16075fi
16076rm -f conftest.err conftest.$ac_objext \
16077 conftest$ac_exeext conftest.$ac_ext
16078 done
16079fi
16080LIBS=$ac_func_search_save_LIBS
16081fi
16082echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16083echo "${ECHO_T}$ac_cv_search_opendir" >&6
16084if test "$ac_cv_search_opendir" != no; then
16085 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16086
16087fi
16088
16089fi
16090
16091echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16092echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16093if test "${gcc_cv_header_string+set}" = set; then
16094 echo $ECHO_N "(cached) $ECHO_C" >&6
16095else
16096 cat >conftest.$ac_ext <<_ACEOF
16097/* confdefs.h. */
16098_ACEOF
16099cat confdefs.h >>conftest.$ac_ext
16100cat >>conftest.$ac_ext <<_ACEOF
16101/* end confdefs.h. */
16102#include <string.h>
16103#include <strings.h>
16104int
16105main ()
16106{
16107
16108 ;
16109 return 0;
16110}
16111_ACEOF
16112rm -f conftest.$ac_objext
16113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16114 (eval $ac_compile) 2>conftest.er1
16115 ac_status=$?
16116 grep -v '^ *+' conftest.er1 >conftest.err
16117 rm -f conftest.er1
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
49c96104
SE
16121 { ac_try='test -z "$ac_c_werror_flag"
16122 || test ! -s conftest.err'
2ba49b59
KC
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; } &&
16128 { ac_try='test -s conftest.$ac_objext'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16131 ac_status=$?
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16134 gcc_cv_header_string=yes
16135else
16136 echo "$as_me: failed program was:" >&5
16137sed 's/^/| /' conftest.$ac_ext >&5
16138
16139gcc_cv_header_string=no
16140fi
16141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16142fi
16143echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16144echo "${ECHO_T}$gcc_cv_header_string" >&6
16145if test $gcc_cv_header_string = yes; then
16146
16147cat >>confdefs.h <<\_ACEOF
16148#define STRING_WITH_STRINGS 1
16149_ACEOF
16150
2e0fbf77
JW
16151fi
16152
5464f5a1
NN
16153
16154
16155
16156
16157
16158
16159
633fd09f 16160for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 16161do
5464f5a1
NN
16162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16163echo "$as_me:$LINENO: checking for $ac_func" >&5
16164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16165if eval "test \"\${$as_ac_var+set}\" = set"; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16167else
16168 cat >conftest.$ac_ext <<_ACEOF
16169/* confdefs.h. */
16170_ACEOF
16171cat confdefs.h >>conftest.$ac_ext
16172cat >>conftest.$ac_ext <<_ACEOF
16173/* end confdefs.h. */
16174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16176#define $ac_func innocuous_$ac_func
16177
252b5132 16178/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
16179 which can conflict with char $ac_func (); below.
16180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16181 <limits.h> exists even on freestanding compilers. */
16182
16183#ifdef __STDC__
16184# include <limits.h>
16185#else
16186# include <assert.h>
16187#endif
6be7c12c 16188
5464f5a1 16189#undef $ac_func
252b5132 16190
5464f5a1
NN
16191/* Override any gcc2 internal prototype to avoid an error. */
16192#ifdef __cplusplus
16193extern "C"
16194{
16195#endif
16196/* We use char because int might match the return type of a gcc2
16197 builtin and then its argument prototype would still apply. */
16198char $ac_func ();
252b5132
RH
16199/* The GNU C library defines this for functions which it implements
16200 to always fail with ENOSYS. Some functions are actually named
16201 something starting with __ and the normal name is an alias. */
16202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16203choke me
16204#else
5464f5a1
NN
16205char (*f) () = $ac_func;
16206#endif
16207#ifdef __cplusplus
16208}
252b5132
RH
16209#endif
16210
5464f5a1
NN
16211int
16212main ()
16213{
16214return f != $ac_func;
16215 ;
16216 return 0;
16217}
16218_ACEOF
16219rm -f conftest.$ac_objext conftest$ac_exeext
16220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16221 (eval $ac_link) 2>conftest.er1
16222 ac_status=$?
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
49c96104
SE
16228 { ac_try='test -z "$ac_c_werror_flag"
16229 || test ! -s conftest.err'
5464f5a1
NN
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } &&
16235 { ac_try='test -s conftest$ac_exeext'
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 eval "$as_ac_var=yes"
16242else
16243 echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
16245
16246eval "$as_ac_var=no"
16247fi
16248rm -f conftest.err conftest.$ac_objext \
16249 conftest$ac_exeext conftest.$ac_ext
16250fi
16251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16252echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16253if test `eval echo '${'$as_ac_var'}'` = yes; then
16254 cat >>confdefs.h <<_ACEOF
16255#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16256_ACEOF
252b5132 16257
252b5132
RH
16258fi
16259done
16260
5464f5a1 16261
49c97a80
ILT
16262for ac_func in strtoull
16263do
5464f5a1
NN
16264as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16265echo "$as_me:$LINENO: checking for $ac_func" >&5
16266echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16267if eval "test \"\${$as_ac_var+set}\" = set"; then
16268 echo $ECHO_N "(cached) $ECHO_C" >&6
16269else
16270 cat >conftest.$ac_ext <<_ACEOF
16271/* confdefs.h. */
16272_ACEOF
16273cat confdefs.h >>conftest.$ac_ext
16274cat >>conftest.$ac_ext <<_ACEOF
16275/* end confdefs.h. */
16276/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16278#define $ac_func innocuous_$ac_func
16279
49c97a80 16280/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
16281 which can conflict with char $ac_func (); below.
16282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16283 <limits.h> exists even on freestanding compilers. */
16284
16285#ifdef __STDC__
16286# include <limits.h>
16287#else
16288# include <assert.h>
16289#endif
49c97a80 16290
5464f5a1 16291#undef $ac_func
49c97a80 16292
5464f5a1
NN
16293/* Override any gcc2 internal prototype to avoid an error. */
16294#ifdef __cplusplus
16295extern "C"
16296{
16297#endif
16298/* We use char because int might match the return type of a gcc2
16299 builtin and then its argument prototype would still apply. */
16300char $ac_func ();
49c97a80
ILT
16301/* The GNU C library defines this for functions which it implements
16302 to always fail with ENOSYS. Some functions are actually named
16303 something starting with __ and the normal name is an alias. */
16304#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16305choke me
16306#else
5464f5a1
NN
16307char (*f) () = $ac_func;
16308#endif
16309#ifdef __cplusplus
16310}
49c97a80
ILT
16311#endif
16312
5464f5a1
NN
16313int
16314main ()
16315{
16316return f != $ac_func;
16317 ;
16318 return 0;
16319}
16320_ACEOF
16321rm -f conftest.$ac_objext conftest$ac_exeext
16322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16323 (eval $ac_link) 2>conftest.er1
16324 ac_status=$?
16325 grep -v '^ *+' conftest.er1 >conftest.err
16326 rm -f conftest.er1
16327 cat conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
49c96104
SE
16330 { ac_try='test -z "$ac_c_werror_flag"
16331 || test ! -s conftest.err'
5464f5a1
NN
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try='test -s conftest$ac_exeext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 eval "$as_ac_var=yes"
16344else
16345 echo "$as_me: failed program was:" >&5
16346sed 's/^/| /' conftest.$ac_ext >&5
16347
16348eval "$as_ac_var=no"
16349fi
16350rm -f conftest.err conftest.$ac_objext \
16351 conftest$ac_exeext conftest.$ac_ext
16352fi
16353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16354echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16355if test `eval echo '${'$as_ac_var'}'` = yes; then
16356 cat >>confdefs.h <<_ACEOF
16357#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16358_ACEOF
49c97a80 16359
49c97a80
ILT
16360fi
16361done
16362
6be7c12c 16363
2e9ebff5
JG
16364echo "$as_me:$LINENO: checking whether basename is declared" >&5
16365echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16366if test "${ac_cv_have_decl_basename+set}" = set; then
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
16368else
16369 cat >conftest.$ac_ext <<_ACEOF
16370/* confdefs.h. */
16371_ACEOF
16372cat confdefs.h >>conftest.$ac_ext
16373cat >>conftest.$ac_ext <<_ACEOF
16374/* end confdefs.h. */
ec7b76fe 16375$ac_includes_default
2e9ebff5
JG
16376int
16377main ()
16378{
16379#ifndef basename
16380 char *p = (char *) basename;
16381#endif
16382
16383 ;
16384 return 0;
16385}
16386_ACEOF
16387rm -f conftest.$ac_objext
16388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389 (eval $ac_compile) 2>conftest.er1
16390 ac_status=$?
16391 grep -v '^ *+' conftest.er1 >conftest.err
16392 rm -f conftest.er1
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
49c96104
SE
16396 { ac_try='test -z "$ac_c_werror_flag"
16397 || test ! -s conftest.err'
2e9ebff5
JG
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16400 ac_status=$?
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; } &&
16403 { ac_try='test -s conftest.$ac_objext'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16406 ac_status=$?
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 ac_cv_have_decl_basename=yes
16410else
16411 echo "$as_me: failed program was:" >&5
16412sed 's/^/| /' conftest.$ac_ext >&5
16413
16414ac_cv_have_decl_basename=no
16415fi
16416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16417fi
16418echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16419echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16420if test $ac_cv_have_decl_basename = yes; then
16421
16422cat >>confdefs.h <<_ACEOF
16423#define HAVE_DECL_BASENAME 1
16424_ACEOF
16425
16426
16427else
16428 cat >>confdefs.h <<_ACEOF
16429#define HAVE_DECL_BASENAME 0
16430_ACEOF
16431
16432
16433fi
16434
16435
ec7b76fe
JG
16436echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16437echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16438if test "${ac_cv_have_decl_ftello+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16440else
16441 cat >conftest.$ac_ext <<_ACEOF
16442/* confdefs.h. */
16443_ACEOF
16444cat confdefs.h >>conftest.$ac_ext
16445cat >>conftest.$ac_ext <<_ACEOF
16446/* end confdefs.h. */
16447$ac_includes_default
16448int
16449main ()
16450{
16451#ifndef ftello
16452 char *p = (char *) ftello;
16453#endif
16454
16455 ;
16456 return 0;
16457}
16458_ACEOF
16459rm -f conftest.$ac_objext
16460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16461 (eval $ac_compile) 2>conftest.er1
16462 ac_status=$?
16463 grep -v '^ *+' conftest.er1 >conftest.err
16464 rm -f conftest.er1
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
49c96104
SE
16468 { ac_try='test -z "$ac_c_werror_flag"
16469 || test ! -s conftest.err'
ec7b76fe
JG
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; } &&
16475 { ac_try='test -s conftest.$ac_objext'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 ac_cv_have_decl_ftello=yes
16482else
16483 echo "$as_me: failed program was:" >&5
16484sed 's/^/| /' conftest.$ac_ext >&5
16485
16486ac_cv_have_decl_ftello=no
16487fi
16488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16489fi
16490echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16491echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16492if test $ac_cv_have_decl_ftello = yes; then
16493
16494cat >>confdefs.h <<_ACEOF
16495#define HAVE_DECL_FTELLO 1
16496_ACEOF
16497
16498
16499else
16500 cat >>confdefs.h <<_ACEOF
16501#define HAVE_DECL_FTELLO 0
16502_ACEOF
16503
16504
16505fi
16506
16507
16508echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16509echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16510if test "${ac_cv_have_decl_ftello64+set}" = set; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16512else
16513 cat >conftest.$ac_ext <<_ACEOF
16514/* confdefs.h. */
16515_ACEOF
16516cat confdefs.h >>conftest.$ac_ext
16517cat >>conftest.$ac_ext <<_ACEOF
16518/* end confdefs.h. */
16519$ac_includes_default
16520int
16521main ()
16522{
16523#ifndef ftello64
16524 char *p = (char *) ftello64;
16525#endif
16526
16527 ;
16528 return 0;
16529}
16530_ACEOF
16531rm -f conftest.$ac_objext
16532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16533 (eval $ac_compile) 2>conftest.er1
16534 ac_status=$?
16535 grep -v '^ *+' conftest.er1 >conftest.err
16536 rm -f conftest.er1
16537 cat conftest.err >&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } &&
49c96104
SE
16540 { ac_try='test -z "$ac_c_werror_flag"
16541 || test ! -s conftest.err'
ec7b76fe
JG
16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5
16544 ac_status=$?
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; } &&
16547 { ac_try='test -s conftest.$ac_objext'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_cv_have_decl_ftello64=yes
16554else
16555 echo "$as_me: failed program was:" >&5
16556sed 's/^/| /' conftest.$ac_ext >&5
16557
16558ac_cv_have_decl_ftello64=no
16559fi
16560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16561fi
16562echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16563echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16564if test $ac_cv_have_decl_ftello64 = yes; then
16565
16566cat >>confdefs.h <<_ACEOF
16567#define HAVE_DECL_FTELLO64 1
16568_ACEOF
16569
16570
16571else
16572 cat >>confdefs.h <<_ACEOF
16573#define HAVE_DECL_FTELLO64 0
16574_ACEOF
16575
16576
16577fi
16578
16579
16580echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16581echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16582if test "${ac_cv_have_decl_fseeko+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16584else
16585 cat >conftest.$ac_ext <<_ACEOF
16586/* confdefs.h. */
16587_ACEOF
16588cat confdefs.h >>conftest.$ac_ext
16589cat >>conftest.$ac_ext <<_ACEOF
16590/* end confdefs.h. */
16591$ac_includes_default
16592int
16593main ()
16594{
16595#ifndef fseeko
16596 char *p = (char *) fseeko;
16597#endif
16598
16599 ;
16600 return 0;
16601}
16602_ACEOF
16603rm -f conftest.$ac_objext
16604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16605 (eval $ac_compile) 2>conftest.er1
16606 ac_status=$?
16607 grep -v '^ *+' conftest.er1 >conftest.err
16608 rm -f conftest.er1
16609 cat conftest.err >&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } &&
49c96104
SE
16612 { ac_try='test -z "$ac_c_werror_flag"
16613 || test ! -s conftest.err'
ec7b76fe
JG
16614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16615 (eval $ac_try) 2>&5
16616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); }; } &&
16619 { ac_try='test -s conftest.$ac_objext'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_cv_have_decl_fseeko=yes
16626else
16627 echo "$as_me: failed program was:" >&5
16628sed 's/^/| /' conftest.$ac_ext >&5
16629
16630ac_cv_have_decl_fseeko=no
16631fi
16632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16633fi
16634echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16635echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16636if test $ac_cv_have_decl_fseeko = yes; then
16637
16638cat >>confdefs.h <<_ACEOF
16639#define HAVE_DECL_FSEEKO 1
16640_ACEOF
16641
16642
16643else
16644 cat >>confdefs.h <<_ACEOF
16645#define HAVE_DECL_FSEEKO 0
16646_ACEOF
16647
16648
16649fi
16650
16651
16652echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16653echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16654if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16656else
16657 cat >conftest.$ac_ext <<_ACEOF
16658/* confdefs.h. */
16659_ACEOF
16660cat confdefs.h >>conftest.$ac_ext
16661cat >>conftest.$ac_ext <<_ACEOF
16662/* end confdefs.h. */
16663$ac_includes_default
16664int
16665main ()
16666{
16667#ifndef fseeko64
16668 char *p = (char *) fseeko64;
16669#endif
16670
16671 ;
16672 return 0;
16673}
16674_ACEOF
16675rm -f conftest.$ac_objext
16676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16677 (eval $ac_compile) 2>conftest.er1
16678 ac_status=$?
16679 grep -v '^ *+' conftest.er1 >conftest.err
16680 rm -f conftest.er1
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
49c96104
SE
16684 { ac_try='test -z "$ac_c_werror_flag"
16685 || test ! -s conftest.err'
ec7b76fe
JG
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest.$ac_objext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 ac_cv_have_decl_fseeko64=yes
16698else
16699 echo "$as_me: failed program was:" >&5
16700sed 's/^/| /' conftest.$ac_ext >&5
16701
16702ac_cv_have_decl_fseeko64=no
16703fi
16704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16705fi
16706echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16707echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16708if test $ac_cv_have_decl_fseeko64 = yes; then
16709
16710cat >>confdefs.h <<_ACEOF
16711#define HAVE_DECL_FSEEKO64 1
16712_ACEOF
16713
16714
16715else
16716 cat >>confdefs.h <<_ACEOF
16717#define HAVE_DECL_FSEEKO64 0
16718_ACEOF
16719
16720
16721fi
16722
16723
2e9ebff5 16724
6be7c12c 16725
252b5132 16726case "${host}" in
855b0be7 16727*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
16728
16729cat >>confdefs.h <<\_ACEOF
252b5132 16730#define USE_BINARY_FOPEN 1
5464f5a1 16731_ACEOF
252b5132
RH
16732 ;;
16733esac
16734
d34a2b1d
JG
16735echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16736echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16737if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 16738 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16739else
5464f5a1
NN
16740 cat >conftest.$ac_ext <<_ACEOF
16741/* confdefs.h. */
16742_ACEOF
16743cat confdefs.h >>conftest.$ac_ext
16744cat >>conftest.$ac_ext <<_ACEOF
16745/* end confdefs.h. */
d34a2b1d 16746$ac_includes_default
5464f5a1
NN
16747int
16748main ()
16749{
d34a2b1d
JG
16750#ifndef ffs
16751 char *p = (char *) ffs;
16752#endif
16753
5464f5a1
NN
16754 ;
16755 return 0;
16756}
16757_ACEOF
16758rm -f conftest.$ac_objext
16759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16760 (eval $ac_compile) 2>conftest.er1
16761 ac_status=$?
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
49c96104
SE
16767 { ac_try='test -z "$ac_c_werror_flag"
16768 || test ! -s conftest.err'
5464f5a1
NN
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; } &&
16774 { ac_try='test -s conftest.$ac_objext'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
d34a2b1d 16780 ac_cv_have_decl_ffs=yes
252b5132 16781else
5464f5a1
NN
16782 echo "$as_me: failed program was:" >&5
16783sed 's/^/| /' conftest.$ac_ext >&5
16784
d34a2b1d 16785ac_cv_have_decl_ffs=no
252b5132 16786fi
5464f5a1 16787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16788fi
d34a2b1d
JG
16789echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16790echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16791if test $ac_cv_have_decl_ffs = yes; then
252b5132 16792
d34a2b1d
JG
16793cat >>confdefs.h <<_ACEOF
16794#define HAVE_DECL_FFS 1
16795_ACEOF
5464f5a1 16796
d34a2b1d
JG
16797
16798else
16799 cat >>confdefs.h <<_ACEOF
16800#define HAVE_DECL_FFS 0
5464f5a1 16801_ACEOF
252b5132 16802
d34a2b1d 16803
252b5132
RH
16804fi
16805
d34a2b1d
JG
16806
16807echo "$as_me:$LINENO: checking whether free is declared" >&5
16808echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16809if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 16810 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16811else
5464f5a1
NN
16812 cat >conftest.$ac_ext <<_ACEOF
16813/* confdefs.h. */
16814_ACEOF
16815cat confdefs.h >>conftest.$ac_ext
16816cat >>conftest.$ac_ext <<_ACEOF
16817/* end confdefs.h. */
d34a2b1d 16818$ac_includes_default
5464f5a1
NN
16819int
16820main ()
16821{
d34a2b1d
JG
16822#ifndef free
16823 char *p = (char *) free;
16824#endif
16825
5464f5a1
NN
16826 ;
16827 return 0;
16828}
16829_ACEOF
16830rm -f conftest.$ac_objext
16831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16832 (eval $ac_compile) 2>conftest.er1
16833 ac_status=$?
16834 grep -v '^ *+' conftest.er1 >conftest.err
16835 rm -f conftest.er1
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
49c96104
SE
16839 { ac_try='test -z "$ac_c_werror_flag"
16840 || test ! -s conftest.err'
5464f5a1
NN
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
d34a2b1d 16852 ac_cv_have_decl_free=yes
252b5132 16853else
5464f5a1
NN
16854 echo "$as_me: failed program was:" >&5
16855sed 's/^/| /' conftest.$ac_ext >&5
16856
d34a2b1d 16857ac_cv_have_decl_free=no
252b5132 16858fi
5464f5a1 16859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16860fi
d34a2b1d
JG
16861echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16862echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16863if test $ac_cv_have_decl_free = yes; then
16864
16865cat >>confdefs.h <<_ACEOF
16866#define HAVE_DECL_FREE 1
16867_ACEOF
252b5132 16868
5464f5a1 16869
d34a2b1d
JG
16870else
16871 cat >>confdefs.h <<_ACEOF
16872#define HAVE_DECL_FREE 0
5464f5a1 16873_ACEOF
252b5132 16874
d34a2b1d 16875
252b5132
RH
16876fi
16877
d34a2b1d
JG
16878
16879echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16880echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16881if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 16882 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16883else
5464f5a1
NN
16884 cat >conftest.$ac_ext <<_ACEOF
16885/* confdefs.h. */
16886_ACEOF
16887cat confdefs.h >>conftest.$ac_ext
16888cat >>conftest.$ac_ext <<_ACEOF
16889/* end confdefs.h. */
d34a2b1d 16890$ac_includes_default
5464f5a1
NN
16891int
16892main ()
16893{
d34a2b1d
JG
16894#ifndef getenv
16895 char *p = (char *) getenv;
16896#endif
16897
5464f5a1
NN
16898 ;
16899 return 0;
16900}
16901_ACEOF
16902rm -f conftest.$ac_objext
16903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16904 (eval $ac_compile) 2>conftest.er1
16905 ac_status=$?
16906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
49c96104
SE
16911 { ac_try='test -z "$ac_c_werror_flag"
16912 || test ! -s conftest.err'
5464f5a1
NN
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest.$ac_objext'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
d34a2b1d 16924 ac_cv_have_decl_getenv=yes
252b5132 16925else
5464f5a1
NN
16926 echo "$as_me: failed program was:" >&5
16927sed 's/^/| /' conftest.$ac_ext >&5
16928
d34a2b1d 16929ac_cv_have_decl_getenv=no
252b5132 16930fi
5464f5a1 16931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16932fi
d34a2b1d
JG
16933echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16934echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16935if test $ac_cv_have_decl_getenv = yes; then
252b5132 16936
d34a2b1d
JG
16937cat >>confdefs.h <<_ACEOF
16938#define HAVE_DECL_GETENV 1
16939_ACEOF
5464f5a1 16940
d34a2b1d
JG
16941
16942else
16943 cat >>confdefs.h <<_ACEOF
16944#define HAVE_DECL_GETENV 0
5464f5a1 16945_ACEOF
252b5132 16946
d34a2b1d 16947
252b5132
RH
16948fi
16949
d34a2b1d
JG
16950
16951echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16952echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16953if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 16954 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16955else
5464f5a1
NN
16956 cat >conftest.$ac_ext <<_ACEOF
16957/* confdefs.h. */
16958_ACEOF
16959cat confdefs.h >>conftest.$ac_ext
16960cat >>conftest.$ac_ext <<_ACEOF
16961/* end confdefs.h. */
d34a2b1d 16962$ac_includes_default
5464f5a1
NN
16963int
16964main ()
16965{
d34a2b1d
JG
16966#ifndef malloc
16967 char *p = (char *) malloc;
16968#endif
16969
5464f5a1
NN
16970 ;
16971 return 0;
16972}
16973_ACEOF
16974rm -f conftest.$ac_objext
16975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16976 (eval $ac_compile) 2>conftest.er1
16977 ac_status=$?
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
49c96104
SE
16983 { ac_try='test -z "$ac_c_werror_flag"
16984 || test ! -s conftest.err'
5464f5a1
NN
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; } &&
16990 { ac_try='test -s conftest.$ac_objext'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16993 ac_status=$?
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
d34a2b1d 16996 ac_cv_have_decl_malloc=yes
252b5132 16997else
5464f5a1
NN
16998 echo "$as_me: failed program was:" >&5
16999sed 's/^/| /' conftest.$ac_ext >&5
17000
d34a2b1d 17001ac_cv_have_decl_malloc=no
252b5132 17002fi
5464f5a1 17003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17004fi
d34a2b1d
JG
17005echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17006echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17007if test $ac_cv_have_decl_malloc = yes; then
252b5132 17008
d34a2b1d
JG
17009cat >>confdefs.h <<_ACEOF
17010#define HAVE_DECL_MALLOC 1
17011_ACEOF
5464f5a1 17012
d34a2b1d
JG
17013
17014else
17015 cat >>confdefs.h <<_ACEOF
17016#define HAVE_DECL_MALLOC 0
5464f5a1 17017_ACEOF
252b5132 17018
d34a2b1d 17019
252b5132
RH
17020fi
17021
d34a2b1d
JG
17022
17023echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17024echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17025if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 17026 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17027else
5464f5a1
NN
17028 cat >conftest.$ac_ext <<_ACEOF
17029/* confdefs.h. */
17030_ACEOF
17031cat confdefs.h >>conftest.$ac_ext
17032cat >>conftest.$ac_ext <<_ACEOF
17033/* end confdefs.h. */
d34a2b1d 17034$ac_includes_default
5464f5a1
NN
17035int
17036main ()
17037{
d34a2b1d
JG
17038#ifndef realloc
17039 char *p = (char *) realloc;
17040#endif
17041
5464f5a1
NN
17042 ;
17043 return 0;
17044}
17045_ACEOF
17046rm -f conftest.$ac_objext
17047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17048 (eval $ac_compile) 2>conftest.er1
17049 ac_status=$?
17050 grep -v '^ *+' conftest.er1 >conftest.err
17051 rm -f conftest.er1
17052 cat conftest.err >&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } &&
49c96104
SE
17055 { ac_try='test -z "$ac_c_werror_flag"
17056 || test ! -s conftest.err'
5464f5a1
NN
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; } &&
17062 { ac_try='test -s conftest.$ac_objext'
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
d34a2b1d 17068 ac_cv_have_decl_realloc=yes
252b5132 17069else
5464f5a1
NN
17070 echo "$as_me: failed program was:" >&5
17071sed 's/^/| /' conftest.$ac_ext >&5
17072
d34a2b1d 17073ac_cv_have_decl_realloc=no
252b5132 17074fi
5464f5a1 17075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17076fi
d34a2b1d
JG
17077echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17078echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17079if test $ac_cv_have_decl_realloc = yes; then
17080
17081cat >>confdefs.h <<_ACEOF
17082#define HAVE_DECL_REALLOC 1
17083_ACEOF
252b5132 17084
5464f5a1 17085
d34a2b1d
JG
17086else
17087 cat >>confdefs.h <<_ACEOF
17088#define HAVE_DECL_REALLOC 0
efa9bda4
AL
17089_ACEOF
17090
d34a2b1d 17091
efa9bda4
AL
17092fi
17093
d34a2b1d 17094
be5cacdb
L
17095echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17096echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17097if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17098 echo $ECHO_N "(cached) $ECHO_C" >&6
17099else
17100 cat >conftest.$ac_ext <<_ACEOF
17101/* confdefs.h. */
17102_ACEOF
17103cat confdefs.h >>conftest.$ac_ext
17104cat >>conftest.$ac_ext <<_ACEOF
17105/* end confdefs.h. */
17106$ac_includes_default
17107int
17108main ()
17109{
17110#ifndef stpcpy
17111 char *p = (char *) stpcpy;
17112#endif
17113
17114 ;
17115 return 0;
17116}
17117_ACEOF
17118rm -f conftest.$ac_objext
17119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120 (eval $ac_compile) 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
49c96104
SE
17127 { ac_try='test -z "$ac_c_werror_flag"
17128 || test ! -s conftest.err'
be5cacdb
L
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; } &&
17134 { ac_try='test -s conftest.$ac_objext'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 ac_cv_have_decl_stpcpy=yes
17141else
17142 echo "$as_me: failed program was:" >&5
17143sed 's/^/| /' conftest.$ac_ext >&5
17144
17145ac_cv_have_decl_stpcpy=no
17146fi
17147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17148fi
17149echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17150echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17151if test $ac_cv_have_decl_stpcpy = yes; then
17152
17153cat >>confdefs.h <<_ACEOF
17154#define HAVE_DECL_STPCPY 1
17155_ACEOF
17156
17157
17158else
17159 cat >>confdefs.h <<_ACEOF
17160#define HAVE_DECL_STPCPY 0
17161_ACEOF
17162
17163
17164fi
17165
17166
d34a2b1d
JG
17167echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17168echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17169if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17171else
17172 cat >conftest.$ac_ext <<_ACEOF
17173/* confdefs.h. */
17174_ACEOF
17175cat confdefs.h >>conftest.$ac_ext
17176cat >>conftest.$ac_ext <<_ACEOF
17177/* end confdefs.h. */
d34a2b1d 17178$ac_includes_default
efa9bda4
AL
17179int
17180main ()
17181{
d34a2b1d
JG
17182#ifndef strstr
17183 char *p = (char *) strstr;
17184#endif
17185
efa9bda4
AL
17186 ;
17187 return 0;
17188}
17189_ACEOF
17190rm -f conftest.$ac_objext
17191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17192 (eval $ac_compile) 2>conftest.er1
17193 ac_status=$?
17194 grep -v '^ *+' conftest.er1 >conftest.err
17195 rm -f conftest.er1
17196 cat conftest.err >&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); } &&
49c96104
SE
17199 { ac_try='test -z "$ac_c_werror_flag"
17200 || test ! -s conftest.err'
efa9bda4
AL
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17203 ac_status=$?
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; } &&
17206 { ac_try='test -s conftest.$ac_objext'
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
d34a2b1d 17212 ac_cv_have_decl_strstr=yes
efa9bda4
AL
17213else
17214 echo "$as_me: failed program was:" >&5
17215sed 's/^/| /' conftest.$ac_ext >&5
17216
d34a2b1d 17217ac_cv_have_decl_strstr=no
efa9bda4
AL
17218fi
17219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17220fi
d34a2b1d
JG
17221echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17222echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17223if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 17224
d34a2b1d
JG
17225cat >>confdefs.h <<_ACEOF
17226#define HAVE_DECL_STRSTR 1
17227_ACEOF
efa9bda4 17228
d34a2b1d
JG
17229
17230else
17231 cat >>confdefs.h <<_ACEOF
17232#define HAVE_DECL_STRSTR 0
5464f5a1 17233_ACEOF
252b5132 17234
d34a2b1d 17235
252b5132
RH
17236fi
17237
6be7c12c 17238
36527912
AJ
17239echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17240echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17241if test "${ac_cv_have_decl_snprintf+set}" = set; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17243else
17244 cat >conftest.$ac_ext <<_ACEOF
17245/* confdefs.h. */
17246_ACEOF
17247cat confdefs.h >>conftest.$ac_ext
17248cat >>conftest.$ac_ext <<_ACEOF
17249/* end confdefs.h. */
17250$ac_includes_default
17251int
17252main ()
17253{
17254#ifndef snprintf
17255 char *p = (char *) snprintf;
17256#endif
17257
17258 ;
17259 return 0;
17260}
17261_ACEOF
17262rm -f conftest.$ac_objext
17263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17264 (eval $ac_compile) 2>conftest.er1
17265 ac_status=$?
17266 grep -v '^ *+' conftest.er1 >conftest.err
17267 rm -f conftest.er1
17268 cat conftest.err >&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } &&
49c96104
SE
17271 { ac_try='test -z "$ac_c_werror_flag"
17272 || test ! -s conftest.err'
36527912
AJ
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274 (eval $ac_try) 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; } &&
17278 { ac_try='test -s conftest.$ac_objext'
17279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280 (eval $ac_try) 2>&5
17281 ac_status=$?
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; }; then
17284 ac_cv_have_decl_snprintf=yes
17285else
17286 echo "$as_me: failed program was:" >&5
17287sed 's/^/| /' conftest.$ac_ext >&5
17288
17289ac_cv_have_decl_snprintf=no
17290fi
17291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17292fi
17293echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17294echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17295if test $ac_cv_have_decl_snprintf = yes; then
17296
17297cat >>confdefs.h <<_ACEOF
17298#define HAVE_DECL_SNPRINTF 1
17299_ACEOF
17300
17301
17302else
17303 cat >>confdefs.h <<_ACEOF
17304#define HAVE_DECL_SNPRINTF 0
17305_ACEOF
17306
17307
17308fi
17309
17310
17311echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17312echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17313if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17315else
17316 cat >conftest.$ac_ext <<_ACEOF
17317/* confdefs.h. */
17318_ACEOF
17319cat confdefs.h >>conftest.$ac_ext
17320cat >>conftest.$ac_ext <<_ACEOF
17321/* end confdefs.h. */
17322$ac_includes_default
17323int
17324main ()
17325{
17326#ifndef vsnprintf
17327 char *p = (char *) vsnprintf;
17328#endif
17329
17330 ;
17331 return 0;
17332}
17333_ACEOF
17334rm -f conftest.$ac_objext
17335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17336 (eval $ac_compile) 2>conftest.er1
17337 ac_status=$?
17338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
49c96104
SE
17343 { ac_try='test -z "$ac_c_werror_flag"
17344 || test ! -s conftest.err'
36527912
AJ
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17347 ac_status=$?
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; } &&
17350 { ac_try='test -s conftest.$ac_objext'
17351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 (eval $ac_try) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; }; then
17356 ac_cv_have_decl_vsnprintf=yes
17357else
17358 echo "$as_me: failed program was:" >&5
17359sed 's/^/| /' conftest.$ac_ext >&5
17360
17361ac_cv_have_decl_vsnprintf=no
17362fi
17363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17364fi
17365echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17366echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17367if test $ac_cv_have_decl_vsnprintf = yes; then
17368
17369cat >>confdefs.h <<_ACEOF
17370#define HAVE_DECL_VSNPRINTF 1
17371_ACEOF
17372
17373
17374else
17375 cat >>confdefs.h <<_ACEOF
17376#define HAVE_DECL_VSNPRINTF 0
17377_ACEOF
17378
17379
17380fi
17381
17382
d34a2b1d 17383
252b5132
RH
17384# If we are configured native, pick a core file support file.
17385COREFILE=
17386COREFLAG=
17387TRAD_HEADER=
17388if test "${target}" = "${host}"; then
17389 case "${host}" in
13dfd2d0 17390 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
17391 COREFILE=''
17392 ;;
ed84e695 17393 alpha*-*-linux-*)
252b5132
RH
17394 COREFILE=trad-core.lo
17395 TRAD_HEADER='"hosts/alphalinux.h"'
17396 ;;
690cc98b
NC
17397 alpha*-*-netbsd* | alpha*-*-openbsd*)
17398 COREFILE=netbsd-core.lo
17399 ;;
252b5132 17400 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
17401 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
17402 COREFILE='' ;;
e33533a4
MK
17403 arm-*-netbsd* | arm-*-openbsd*)
17404 COREFILE=netbsd-core.lo
17405 ;;
252b5132
RH
17406 arm-*-riscix) COREFILE=trad-core.lo ;;
17407 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
17408 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
17409 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
17410 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
17411 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
17412 hppa*-*-netbsd* | hppa*-*-openbsd*)
17413 COREFILE=netbsd-core.lo
17414 ;;
17415
dc810e39 17416 i370-*-*)
5b93d8bb
AM
17417 COREFILE=trad-core.lo
17418 TRAD_HEADER='"hosts/i370linux.h"'
17419 ;;
17420
80c7c40a 17421 i[3-7]86-sequent-bsd*)
5b93d8bb 17422 COREFILE=trad-core.lo
252b5132
RH
17423 TRAD_HEADER='"hosts/symmetry.h"'
17424 ;;
80c7c40a
NC
17425 i[3-7]86-sequent-sysv4*) ;;
17426 i[3-7]86-sequent-sysv*)
252b5132
RH
17427 COREFILE=trad-core.lo
17428 TRAD_HEADER='"hosts/symmetry.h"'
17429 ;;
80c7c40a 17430 i[3-7]86-*-bsdi)
7e3b3466
NC
17431 COREFILE=
17432 ;;
d2bef492 17433 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
17434 COREFILE=trad-core.lo
17435 TRAD_HEADER='"hosts/i386bsd.h"'
17436 ;;
0b3e17e9 17437 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
d4af9775
DB
17438 COREFILE=''
17439 TRAD_HEADER='"hosts/i386bsd.h"'
17440 ;;
4615568e 17441 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
17442 COREFILE=netbsd-core.lo
17443 ;;
80c7c40a 17444 i[3-7]86-esix-sysv3*)
252b5132
RH
17445 COREFILE=trad-core.lo
17446 TRAD_HEADER='"hosts/esix.h"'
17447 ;;
80c7c40a 17448 i[3-7]86-*-sco3.2v5*)
252b5132
RH
17449 COREFILE=sco5-core.lo
17450 ;;
80c7c40a 17451 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
17452 COREFILE=trad-core.lo
17453 TRAD_HEADER='"hosts/i386sco.h"'
17454 ;;
80c7c40a 17455 i[3-7]86-*-mach3*)
252b5132
RH
17456 COREFILE=trad-core.lo
17457 TRAD_HEADER='"hosts/i386mach3.h"'
17458 ;;
ed84e695 17459 i[3-7]86-*-linux-*)
252b5132
RH
17460 COREFILE=trad-core.lo
17461 TRAD_HEADER='"hosts/i386linux.h"'
17462 ;;
80c7c40a
NC
17463 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
17464 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
17465 i860-*-mach3* | i860-*-osf1*)
17466 COREFILE=trad-core.lo
17467 TRAD_HEADER='"hosts/i860mach3.h"'
17468 ;;
252b5132
RH
17469 mips-*-netbsd* | mips*-*-openbsd*)
17470 COREFILE=netbsd-core.lo
17471 ;;
17472 mips-dec-*)
17473 COREFILE=trad-core.lo
17474 TRAD_HEADER='"hosts/decstation.h"'
17475 ;;
17476 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
17477 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
17478 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
17479 mips-*-sysv4*) ;;
17480 mips-*-sysv* | mips-*-riscos*)
17481 COREFILE=trad-core.lo
17482 TRAD_HEADER='"hosts/riscos.h"'
17483 ;;
17484 mips-sony-bsd*)
17485 COREFILE=trad-core.lo
17486 TRAD_HEADER='"hosts/news-mips.h"'
17487 ;;
17488 m68*-bull*-sysv*)
17489 COREFILE=trad-core.lo
17490 TRAD_HEADER='"hosts/dpx2.h"'
17491 ;;
17492 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
17493 m68*-hp-bsd*)
17494 COREFILE=trad-core.lo
17495 TRAD_HEADER='"hosts/hp300bsd.h"'
17496 ;;
ed84e695 17497 m68*-*-linux-*)
252b5132
RH
17498 COREFILE=trad-core.lo
17499 TRAD_HEADER='"hosts/m68klinux.h"'
17500 ;;
17501 m68*-motorola-sysv*)
17502 COREFILE=trad-core.lo
17503 TRAD_HEADER='"hosts/delta68.h"'
17504 ;;
17505 m68*-sony-*)
17506 COREFILE=trad-core.lo
17507 TRAD_HEADER='"hosts/news.h"'
17508 ;;
17509 m68*-*-netbsd* | m68*-*-openbsd*)
17510 COREFILE=netbsd-core.lo
17511 ;;
17512 m68*-apple-aux*)
17513 COREFILE=trad-core.lo
17514 TRAD_HEADER='"hosts/m68kaux.h"'
17515 ;;
eb1e0e80
NC
17516 m88*-*-sysv4*)
17517 ;;
17518 m88*-motorola-sysv*)
17519 COREFILE=ptrace-core.lo
17520 ;;
252b5132
RH
17521 m88*-*-mach3*)
17522 COREFILE=trad-core.lo
17523 TRAD_HEADER='"hosts/m88kmach3.h"'
17524 ;;
c6f8758f
NC
17525 m88*-*-openbsd*)
17526 COREFILE=netbsd-core.lo
17527 ;;
252b5132
RH
17528 ns32k-pc532-mach)
17529 COREFILE=trad-core.lo
17530 TRAD_HEADER='"hosts/pc532mach.h"'
17531 ;;
17532 ns32k-*-netbsd* | ns32k-*-openbsd*)
17533 COREFILE=netbsd-core.lo
17534 ;;
eb1e0e80
NC
17535 rs6000-*-lynx*)
17536 COREFILE=lynx-core.lo
17537 ;;
17538 rs6000-*-aix5.* | powerpc-*-aix5.*)
17539 COREFILE=rs6000-core.lo
17540 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17541 ;;
83954261 17542 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
17543 COREFILE=rs6000-core.lo
17544 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
17545 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17546 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
17547 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17548echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17549 cat >conftest.$ac_ext <<_ACEOF
17550/* confdefs.h. */
17551_ACEOF
17552cat confdefs.h >>conftest.$ac_ext
17553cat >>conftest.$ac_ext <<_ACEOF
17554/* end confdefs.h. */
83954261 17555#include <core.h>
5464f5a1
NN
17556int
17557main ()
17558{
83954261 17559struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
17560 ;
17561 return 0;
17562}
17563_ACEOF
17564rm -f conftest.$ac_objext
17565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17566 (eval $ac_compile) 2>conftest.er1
17567 ac_status=$?
17568 grep -v '^ *+' conftest.er1 >conftest.err
17569 rm -f conftest.er1
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
49c96104
SE
17573 { ac_try='test -z "$ac_c_werror_flag"
17574 || test ! -s conftest.err'
5464f5a1
NN
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest.$ac_objext'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586
17587cat >>confdefs.h <<\_ACEOF
83954261 17588#define HAVE_ST_C_IMPL 1
5464f5a1 17589_ACEOF
83954261 17590
5464f5a1
NN
17591 echo "$as_me:$LINENO: result: yes" >&5
17592echo "${ECHO_T}yes" >&6
83954261 17593else
5464f5a1
NN
17594 echo "$as_me: failed program was:" >&5
17595sed 's/^/| /' conftest.$ac_ext >&5
17596
17597echo "$as_me:$LINENO: result: no" >&5
17598echo "${ECHO_T}no" >&6
83954261 17599fi
5464f5a1 17600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 17601 ;;
252b5132
RH
17602 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
17603 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
17604 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
17605 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
17606 powerpc-*-beos*) ;;
13dfd2d0
NC
17607 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17608 COREFILE='' ;;
252b5132 17609 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 17610 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 17611 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
17612 sh*-*-netbsd* | sh*-*-openbsd*)
17613 COREFILE=netbsd-core.lo
17614 ;;
a9bf1154 17615 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
17616 COREFILE=netbsd-core.lo
17617 ;;
17618 tahoe-*-*)
17619 COREFILE=trad-core.lo
17620 TRAD_HEADER='"hosts/tahoe.h"'
17621 ;;
de6e5e1a
NC
17622 vax-*-netbsd* | vax-*-openbsd*)
17623 COREFILE=netbsd-core.lo
17624 ;;
252b5132
RH
17625 vax-*-ultrix2*)
17626 COREFILE=trad-core.lo
17627 TRAD_HEADER='"hosts/vaxult2.h"'
17628 ;;
17629 vax-*-ultrix*)
17630 COREFILE=trad-core.lo
17631 TRAD_HEADER='"hosts/vaxult2.h"'
17632 ;;
ed84e695 17633 vax-*-linux-*)
f8fc3443
NC
17634 COREFILE=trad-core.lo
17635 TRAD_HEADER='"hosts/vaxlinux.h"'
17636 ;;
252b5132
RH
17637 vax-*-*)
17638 COREFILE=trad-core.lo
17639 TRAD_HEADER='"hosts/vaxbsd.h"'
17640 ;;
85cfd8d3
MK
17641 x86_64-*-netbsd* | x86_64-*-openbsd*)
17642 COREFILE=netbsd-core.lo
17643 ;;
252b5132
RH
17644 esac
17645
17646 case "$COREFILE" in
17647 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
17648 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
17649 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
17650 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
17651 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
17652 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
17653 osf-core.lo) COREFLAG=-DOSF_CORE ;;
17654 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
17655 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
17656 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17657 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17658 esac
17659
17660 # ELF corefile support has several flavors, but all of
17661 # them use something called <sys/procfs.h>
5464f5a1
NN
17662
17663for ac_header in sys/procfs.h
252b5132 17664do
5464f5a1
NN
17665as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17666if eval "test \"\${$as_ac_Header+set}\" = set"; then
17667 echo "$as_me:$LINENO: checking for $ac_header" >&5
17668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17669if eval "test \"\${$as_ac_Header+set}\" = set"; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17671fi
17672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17673echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17674else
17675 # Is the header compilable?
17676echo "$as_me:$LINENO: checking $ac_header usability" >&5
17677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17678cat >conftest.$ac_ext <<_ACEOF
17679/* confdefs.h. */
17680_ACEOF
17681cat confdefs.h >>conftest.$ac_ext
17682cat >>conftest.$ac_ext <<_ACEOF
17683/* end confdefs.h. */
17684$ac_includes_default
17685#include <$ac_header>
17686_ACEOF
17687rm -f conftest.$ac_objext
17688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17689 (eval $ac_compile) 2>conftest.er1
17690 ac_status=$?
17691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
49c96104
SE
17696 { ac_try='test -z "$ac_c_werror_flag"
17697 || test ! -s conftest.err'
5464f5a1
NN
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17700 ac_status=$?
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; } &&
17703 { ac_try='test -s conftest.$ac_objext'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; }; then
17709 ac_header_compiler=yes
17710else
17711 echo "$as_me: failed program was:" >&5
17712sed 's/^/| /' conftest.$ac_ext >&5
17713
17714ac_header_compiler=no
17715fi
17716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17718echo "${ECHO_T}$ac_header_compiler" >&6
17719
17720# Is the header present?
17721echo "$as_me:$LINENO: checking $ac_header presence" >&5
17722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17723cat >conftest.$ac_ext <<_ACEOF
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h. */
17729#include <$ac_header>
17730_ACEOF
17731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17732 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
17739 if test -s conftest.err; then
17740 ac_cpp_err=$ac_c_preproc_warn_flag
17741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17742 else
17743 ac_cpp_err=
17744 fi
252b5132 17745else
5464f5a1 17746 ac_cpp_err=yes
252b5132 17747fi
5464f5a1
NN
17748if test -z "$ac_cpp_err"; then
17749 ac_header_preproc=yes
17750else
17751 echo "$as_me: failed program was:" >&5
17752sed 's/^/| /' conftest.$ac_ext >&5
17753
17754 ac_header_preproc=no
252b5132 17755fi
5464f5a1
NN
17756rm -f conftest.err conftest.$ac_ext
17757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17758echo "${ECHO_T}$ac_header_preproc" >&6
17759
17760# So? What about this header?
17761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17762 yes:no: )
17763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17767 ac_header_preproc=yes
17768 ;;
17769 no:yes:* )
17770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17782 (
17783 cat <<\_ASBOX
17784## ------------------------------------------ ##
17785## Report this to the AC_PACKAGE_NAME lists. ##
17786## ------------------------------------------ ##
17787_ASBOX
17788 ) |
17789 sed "s/^/$as_me: WARNING: /" >&2
17790 ;;
17791esac
17792echo "$as_me:$LINENO: checking for $ac_header" >&5
17793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17794if eval "test \"\${$as_ac_Header+set}\" = set"; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 17796else
5464f5a1
NN
17797 eval "$as_ac_Header=\$ac_header_preproc"
17798fi
17799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17801
252b5132 17802fi
5464f5a1
NN
17803if test `eval echo '${'$as_ac_Header'}'` = yes; then
17804 cat >>confdefs.h <<_ACEOF
17805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17806_ACEOF
17807
17808fi
17809
252b5132
RH
17810done
17811
17812 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
17813 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17814echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17815 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17816 echo $ECHO_N "(cached) $ECHO_C" >&6
17817else
17818 cat >conftest.$ac_ext <<_ACEOF
17819/* confdefs.h. */
17820_ACEOF
17821cat confdefs.h >>conftest.$ac_ext
17822cat >>conftest.$ac_ext <<_ACEOF
17823/* end confdefs.h. */
7ee38065
MS
17824
17825#define _SYSCALL32
252b5132 17826#include <sys/procfs.h>
5464f5a1
NN
17827int
17828main ()
17829{
252b5132 17830prstatus_t avar
5464f5a1
NN
17831 ;
17832 return 0;
17833}
17834_ACEOF
17835rm -f conftest.$ac_objext
17836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17837 (eval $ac_compile) 2>conftest.er1
17838 ac_status=$?
17839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
49c96104
SE
17844 { ac_try='test -z "$ac_c_werror_flag"
17845 || test ! -s conftest.err'
5464f5a1
NN
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; } &&
17851 { ac_try='test -s conftest.$ac_objext'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
252b5132
RH
17857 bfd_cv_have_sys_procfs_type_prstatus_t=yes
17858else
5464f5a1
NN
17859 echo "$as_me: failed program was:" >&5
17860sed 's/^/| /' conftest.$ac_ext >&5
17861
17862bfd_cv_have_sys_procfs_type_prstatus_t=no
17863
252b5132 17864fi
5464f5a1 17865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17866fi
17867
17868 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
17869
17870cat >>confdefs.h <<\_ACEOF
252b5132 17871#define HAVE_PRSTATUS_T 1
5464f5a1 17872_ACEOF
252b5132
RH
17873
17874 fi
5464f5a1
NN
17875 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17876echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 17877
5464f5a1
NN
17878 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17879echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17880 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 17882else
5464f5a1
NN
17883 cat >conftest.$ac_ext <<_ACEOF
17884/* confdefs.h. */
17885_ACEOF
17886cat confdefs.h >>conftest.$ac_ext
17887cat >>conftest.$ac_ext <<_ACEOF
17888/* end confdefs.h. */
7ee38065
MS
17889
17890#define _SYSCALL32
17891#include <sys/procfs.h>
5464f5a1
NN
17892int
17893main ()
17894{
7ee38065 17895prstatus32_t avar
5464f5a1
NN
17896 ;
17897 return 0;
17898}
17899_ACEOF
17900rm -f conftest.$ac_objext
17901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17902 (eval $ac_compile) 2>conftest.er1
17903 ac_status=$?
17904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
49c96104
SE
17909 { ac_try='test -z "$ac_c_werror_flag"
17910 || test ! -s conftest.err'
5464f5a1
NN
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest.$ac_objext'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
7ee38065
MS
17922 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
17923else
5464f5a1
NN
17924 echo "$as_me: failed program was:" >&5
17925sed 's/^/| /' conftest.$ac_ext >&5
17926
17927bfd_cv_have_sys_procfs_type_prstatus32_t=no
17928
7ee38065 17929fi
5464f5a1 17930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
17931fi
17932
17933 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
17934
17935cat >>confdefs.h <<\_ACEOF
7ee38065 17936#define HAVE_PRSTATUS32_T 1
5464f5a1 17937_ACEOF
7ee38065
MS
17938
17939 fi
5464f5a1
NN
17940 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
17941echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 17942
5464f5a1
NN
17943 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
17944echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17945 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17947else
5464f5a1
NN
17948 cat >conftest.$ac_ext <<_ACEOF
17949/* confdefs.h. */
17950_ACEOF
17951cat confdefs.h >>conftest.$ac_ext
17952cat >>conftest.$ac_ext <<_ACEOF
17953/* end confdefs.h. */
7ee38065
MS
17954
17955#define _SYSCALL32
252b5132 17956#include <sys/procfs.h>
5464f5a1
NN
17957int
17958main ()
17959{
252b5132 17960prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
17961 ;
17962 return 0;
17963}
17964_ACEOF
17965rm -f conftest.$ac_objext
17966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17967 (eval $ac_compile) 2>conftest.er1
17968 ac_status=$?
17969 grep -v '^ *+' conftest.er1 >conftest.err
17970 rm -f conftest.er1
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } &&
49c96104
SE
17974 { ac_try='test -z "$ac_c_werror_flag"
17975 || test ! -s conftest.err'
5464f5a1
NN
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; } &&
17981 { ac_try='test -s conftest.$ac_objext'
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
252b5132
RH
17987 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
17988else
5464f5a1
NN
17989 echo "$as_me: failed program was:" >&5
17990sed 's/^/| /' conftest.$ac_ext >&5
17991
17992bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
17993
252b5132 17994fi
5464f5a1 17995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17996fi
17997
17998 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
17999
18000cat >>confdefs.h <<\_ACEOF
252b5132 18001#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 18002_ACEOF
252b5132
RH
18003
18004 fi
5464f5a1
NN
18005 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18006echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 18007
5464f5a1
NN
18008 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18009echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18010 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
18011 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18012else
5464f5a1
NN
18013 cat >conftest.$ac_ext <<_ACEOF
18014/* confdefs.h. */
18015_ACEOF
18016cat confdefs.h >>conftest.$ac_ext
18017cat >>conftest.$ac_ext <<_ACEOF
18018/* end confdefs.h. */
7ee38065
MS
18019
18020#define _SYSCALL32
18021#include <sys/procfs.h>
5464f5a1
NN
18022int
18023main ()
18024{
7ee38065 18025prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
18026 ;
18027 return 0;
18028}
18029_ACEOF
18030rm -f conftest.$ac_objext
18031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18032 (eval $ac_compile) 2>conftest.er1
18033 ac_status=$?
18034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
49c96104
SE
18039 { ac_try='test -z "$ac_c_werror_flag"
18040 || test ! -s conftest.err'
5464f5a1
NN
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; } &&
18046 { ac_try='test -s conftest.$ac_objext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
7ee38065
MS
18052 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18053else
5464f5a1
NN
18054 echo "$as_me: failed program was:" >&5
18055sed 's/^/| /' conftest.$ac_ext >&5
18056
18057bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18058
7ee38065 18059fi
5464f5a1 18060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18061fi
18062
18063 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
18064
18065cat >>confdefs.h <<\_ACEOF
7ee38065 18066#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 18067_ACEOF
7ee38065
MS
18068
18069 fi
5464f5a1
NN
18070 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18071echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 18072
5464f5a1
NN
18073 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18074echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18075 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18077else
5464f5a1
NN
18078 cat >conftest.$ac_ext <<_ACEOF
18079/* confdefs.h. */
18080_ACEOF
18081cat confdefs.h >>conftest.$ac_ext
18082cat >>conftest.$ac_ext <<_ACEOF
18083/* end confdefs.h. */
7ee38065
MS
18084
18085#define _SYSCALL32
252b5132 18086#include <sys/procfs.h>
5464f5a1
NN
18087int
18088main ()
18089{
252b5132 18090pstatus_t avar
5464f5a1
NN
18091 ;
18092 return 0;
18093}
18094_ACEOF
18095rm -f conftest.$ac_objext
18096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18097 (eval $ac_compile) 2>conftest.er1
18098 ac_status=$?
18099 grep -v '^ *+' conftest.er1 >conftest.err
18100 rm -f conftest.er1
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
49c96104
SE
18104 { ac_try='test -z "$ac_c_werror_flag"
18105 || test ! -s conftest.err'
5464f5a1
NN
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest.$ac_objext'
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
252b5132
RH
18117 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18118else
5464f5a1
NN
18119 echo "$as_me: failed program was:" >&5
18120sed 's/^/| /' conftest.$ac_ext >&5
18121
18122bfd_cv_have_sys_procfs_type_pstatus_t=no
18123
252b5132 18124fi
5464f5a1 18125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18126fi
18127
18128 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
18129
18130cat >>confdefs.h <<\_ACEOF
252b5132 18131#define HAVE_PSTATUS_T 1
5464f5a1 18132_ACEOF
252b5132
RH
18133
18134 fi
5464f5a1
NN
18135 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18136echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 18137
5464f5a1
NN
18138 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18139echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18140 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 18142else
5464f5a1
NN
18143 cat >conftest.$ac_ext <<_ACEOF
18144/* confdefs.h. */
18145_ACEOF
18146cat confdefs.h >>conftest.$ac_ext
18147cat >>conftest.$ac_ext <<_ACEOF
18148/* end confdefs.h. */
f572a39d
AM
18149
18150#define _SYSCALL32
18151#include <sys/procfs.h>
5464f5a1
NN
18152int
18153main ()
18154{
f572a39d 18155pxstatus_t avar
5464f5a1
NN
18156 ;
18157 return 0;
18158}
18159_ACEOF
18160rm -f conftest.$ac_objext
18161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18162 (eval $ac_compile) 2>conftest.er1
18163 ac_status=$?
18164 grep -v '^ *+' conftest.er1 >conftest.err
18165 rm -f conftest.er1
18166 cat conftest.err >&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } &&
49c96104
SE
18169 { ac_try='test -z "$ac_c_werror_flag"
18170 || test ! -s conftest.err'
5464f5a1
NN
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; } &&
18176 { ac_try='test -s conftest.$ac_objext'
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; }; then
f572a39d
AM
18182 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18183else
5464f5a1
NN
18184 echo "$as_me: failed program was:" >&5
18185sed 's/^/| /' conftest.$ac_ext >&5
18186
18187bfd_cv_have_sys_procfs_type_pxstatus_t=no
18188
f572a39d 18189fi
5464f5a1 18190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
18191fi
18192
18193 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
18194
18195cat >>confdefs.h <<\_ACEOF
f572a39d 18196#define HAVE_PXSTATUS_T 1
5464f5a1 18197_ACEOF
f572a39d
AM
18198
18199 fi
5464f5a1
NN
18200 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18201echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 18202
5464f5a1
NN
18203 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18204echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18205 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18207else
5464f5a1
NN
18208 cat >conftest.$ac_ext <<_ACEOF
18209/* confdefs.h. */
18210_ACEOF
18211cat confdefs.h >>conftest.$ac_ext
18212cat >>conftest.$ac_ext <<_ACEOF
18213/* end confdefs.h. */
7ee38065
MS
18214
18215#define _SYSCALL32
18216#include <sys/procfs.h>
5464f5a1
NN
18217int
18218main ()
18219{
7ee38065 18220pstatus32_t avar
5464f5a1
NN
18221 ;
18222 return 0;
18223}
18224_ACEOF
18225rm -f conftest.$ac_objext
18226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18227 (eval $ac_compile) 2>conftest.er1
18228 ac_status=$?
18229 grep -v '^ *+' conftest.er1 >conftest.err
18230 rm -f conftest.er1
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
49c96104
SE
18234 { ac_try='test -z "$ac_c_werror_flag"
18235 || test ! -s conftest.err'
5464f5a1
NN
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest.$ac_objext'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18244 ac_status=$?
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
7ee38065
MS
18247 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18248else
5464f5a1
NN
18249 echo "$as_me: failed program was:" >&5
18250sed 's/^/| /' conftest.$ac_ext >&5
18251
18252bfd_cv_have_sys_procfs_type_pstatus32_t=no
18253
7ee38065 18254fi
5464f5a1 18255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18256fi
18257
18258 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
18259
18260cat >>confdefs.h <<\_ACEOF
7ee38065 18261#define HAVE_PSTATUS32_T 1
5464f5a1 18262_ACEOF
7ee38065
MS
18263
18264 fi
5464f5a1
NN
18265 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18266echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 18267
5464f5a1
NN
18268 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18269echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18270 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18272else
5464f5a1
NN
18273 cat >conftest.$ac_ext <<_ACEOF
18274/* confdefs.h. */
18275_ACEOF
18276cat confdefs.h >>conftest.$ac_ext
18277cat >>conftest.$ac_ext <<_ACEOF
18278/* end confdefs.h. */
7ee38065
MS
18279
18280#define _SYSCALL32
252b5132 18281#include <sys/procfs.h>
5464f5a1
NN
18282int
18283main ()
18284{
252b5132 18285prpsinfo_t avar
5464f5a1
NN
18286 ;
18287 return 0;
18288}
18289_ACEOF
18290rm -f conftest.$ac_objext
18291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18292 (eval $ac_compile) 2>conftest.er1
18293 ac_status=$?
18294 grep -v '^ *+' conftest.er1 >conftest.err
18295 rm -f conftest.er1
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } &&
49c96104
SE
18299 { ac_try='test -z "$ac_c_werror_flag"
18300 || test ! -s conftest.err'
5464f5a1
NN
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } &&
18306 { ac_try='test -s conftest.$ac_objext'
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; }; then
252b5132
RH
18312 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18313else
5464f5a1
NN
18314 echo "$as_me: failed program was:" >&5
18315sed 's/^/| /' conftest.$ac_ext >&5
18316
18317bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18318
252b5132 18319fi
5464f5a1 18320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18321fi
18322
18323 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
18324
18325cat >>confdefs.h <<\_ACEOF
252b5132 18326#define HAVE_PRPSINFO_T 1
5464f5a1 18327_ACEOF
252b5132
RH
18328
18329 fi
5464f5a1
NN
18330 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18331echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 18332
5464f5a1
NN
18333 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18334echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18335 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18336 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18337else
5464f5a1
NN
18338 cat >conftest.$ac_ext <<_ACEOF
18339/* confdefs.h. */
18340_ACEOF
18341cat confdefs.h >>conftest.$ac_ext
18342cat >>conftest.$ac_ext <<_ACEOF
18343/* end confdefs.h. */
7ee38065
MS
18344
18345#define _SYSCALL32
18346#include <sys/procfs.h>
5464f5a1
NN
18347int
18348main ()
18349{
7ee38065 18350prpsinfo32_t avar
5464f5a1
NN
18351 ;
18352 return 0;
18353}
18354_ACEOF
18355rm -f conftest.$ac_objext
18356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18357 (eval $ac_compile) 2>conftest.er1
18358 ac_status=$?
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
49c96104
SE
18364 { ac_try='test -z "$ac_c_werror_flag"
18365 || test ! -s conftest.err'
5464f5a1
NN
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try='test -s conftest.$ac_objext'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
7ee38065
MS
18377 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
18378else
5464f5a1
NN
18379 echo "$as_me: failed program was:" >&5
18380sed 's/^/| /' conftest.$ac_ext >&5
18381
18382bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
18383
7ee38065 18384fi
5464f5a1 18385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18386fi
18387
18388 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
18389
18390cat >>confdefs.h <<\_ACEOF
7ee38065 18391#define HAVE_PRPSINFO32_T 1
5464f5a1 18392_ACEOF
7ee38065
MS
18393
18394 fi
5464f5a1
NN
18395 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
18396echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 18397
5464f5a1
NN
18398 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
18399echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
18400 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18402else
5464f5a1
NN
18403 cat >conftest.$ac_ext <<_ACEOF
18404/* confdefs.h. */
18405_ACEOF
18406cat confdefs.h >>conftest.$ac_ext
18407cat >>conftest.$ac_ext <<_ACEOF
18408/* end confdefs.h. */
7ee38065
MS
18409
18410#define _SYSCALL32
252b5132 18411#include <sys/procfs.h>
5464f5a1
NN
18412int
18413main ()
18414{
252b5132 18415psinfo_t avar
5464f5a1
NN
18416 ;
18417 return 0;
18418}
18419_ACEOF
18420rm -f conftest.$ac_objext
18421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18422 (eval $ac_compile) 2>conftest.er1
18423 ac_status=$?
18424 grep -v '^ *+' conftest.er1 >conftest.err
18425 rm -f conftest.er1
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
49c96104
SE
18429 { ac_try='test -z "$ac_c_werror_flag"
18430 || test ! -s conftest.err'
5464f5a1
NN
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; } &&
18436 { ac_try='test -s conftest.$ac_objext'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
252b5132
RH
18442 bfd_cv_have_sys_procfs_type_psinfo_t=yes
18443else
5464f5a1
NN
18444 echo "$as_me: failed program was:" >&5
18445sed 's/^/| /' conftest.$ac_ext >&5
18446
18447bfd_cv_have_sys_procfs_type_psinfo_t=no
18448
252b5132 18449fi
5464f5a1 18450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18451fi
18452
18453 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
18454
18455cat >>confdefs.h <<\_ACEOF
252b5132 18456#define HAVE_PSINFO_T 1
5464f5a1 18457_ACEOF
252b5132
RH
18458
18459 fi
5464f5a1
NN
18460 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18461echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 18462
5464f5a1
NN
18463 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18464echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18465 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18466 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18467else
5464f5a1
NN
18468 cat >conftest.$ac_ext <<_ACEOF
18469/* confdefs.h. */
18470_ACEOF
18471cat confdefs.h >>conftest.$ac_ext
18472cat >>conftest.$ac_ext <<_ACEOF
18473/* end confdefs.h. */
7ee38065
MS
18474
18475#define _SYSCALL32
18476#include <sys/procfs.h>
5464f5a1
NN
18477int
18478main ()
18479{
7ee38065 18480psinfo32_t avar
5464f5a1
NN
18481 ;
18482 return 0;
18483}
18484_ACEOF
18485rm -f conftest.$ac_objext
18486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18487 (eval $ac_compile) 2>conftest.er1
18488 ac_status=$?
18489 grep -v '^ *+' conftest.er1 >conftest.err
18490 rm -f conftest.er1
18491 cat conftest.err >&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } &&
49c96104
SE
18494 { ac_try='test -z "$ac_c_werror_flag"
18495 || test ! -s conftest.err'
5464f5a1
NN
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; } &&
18501 { ac_try='test -s conftest.$ac_objext'
18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503 (eval $ac_try) 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; }; then
7ee38065
MS
18507 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18508else
5464f5a1
NN
18509 echo "$as_me: failed program was:" >&5
18510sed 's/^/| /' conftest.$ac_ext >&5
18511
18512bfd_cv_have_sys_procfs_type_psinfo32_t=no
18513
7ee38065 18514fi
5464f5a1 18515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18516fi
18517
18518 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
18519
18520cat >>confdefs.h <<\_ACEOF
7ee38065 18521#define HAVE_PSINFO32_T 1
5464f5a1 18522_ACEOF
7ee38065
MS
18523
18524 fi
5464f5a1
NN
18525 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18526echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 18527
5464f5a1
NN
18528 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18529echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18530 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18531 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18532else
5464f5a1
NN
18533 cat >conftest.$ac_ext <<_ACEOF
18534/* confdefs.h. */
18535_ACEOF
18536cat confdefs.h >>conftest.$ac_ext
18537cat >>conftest.$ac_ext <<_ACEOF
18538/* end confdefs.h. */
7ee38065
MS
18539
18540#define _SYSCALL32
252b5132 18541#include <sys/procfs.h>
5464f5a1
NN
18542int
18543main ()
18544{
252b5132 18545lwpstatus_t avar
5464f5a1
NN
18546 ;
18547 return 0;
18548}
18549_ACEOF
18550rm -f conftest.$ac_objext
18551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18552 (eval $ac_compile) 2>conftest.er1
18553 ac_status=$?
18554 grep -v '^ *+' conftest.er1 >conftest.err
18555 rm -f conftest.er1
18556 cat conftest.err >&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } &&
49c96104
SE
18559 { ac_try='test -z "$ac_c_werror_flag"
18560 || test ! -s conftest.err'
5464f5a1
NN
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; } &&
18566 { ac_try='test -s conftest.$ac_objext'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; }; then
252b5132
RH
18572 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18573else
5464f5a1
NN
18574 echo "$as_me: failed program was:" >&5
18575sed 's/^/| /' conftest.$ac_ext >&5
18576
18577bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18578
252b5132 18579fi
5464f5a1 18580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18581fi
18582
18583 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
18584
18585cat >>confdefs.h <<\_ACEOF
252b5132 18586#define HAVE_LWPSTATUS_T 1
5464f5a1 18587_ACEOF
252b5132
RH
18588
18589 fi
5464f5a1
NN
18590 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18591echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 18592
5464f5a1
NN
18593 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18594echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18595 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 18597else
5464f5a1
NN
18598 cat >conftest.$ac_ext <<_ACEOF
18599/* confdefs.h. */
18600_ACEOF
18601cat confdefs.h >>conftest.$ac_ext
18602cat >>conftest.$ac_ext <<_ACEOF
18603/* end confdefs.h. */
f572a39d
AM
18604
18605#define _SYSCALL32
18606#include <sys/procfs.h>
5464f5a1
NN
18607int
18608main ()
18609{
f572a39d 18610lwpxstatus_t avar
5464f5a1
NN
18611 ;
18612 return 0;
18613}
18614_ACEOF
18615rm -f conftest.$ac_objext
18616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18617 (eval $ac_compile) 2>conftest.er1
18618 ac_status=$?
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
49c96104
SE
18624 { ac_try='test -z "$ac_c_werror_flag"
18625 || test ! -s conftest.err'
5464f5a1
NN
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; } &&
18631 { ac_try='test -s conftest.$ac_objext'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18634 ac_status=$?
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; }; then
f572a39d
AM
18637 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18638else
5464f5a1
NN
18639 echo "$as_me: failed program was:" >&5
18640sed 's/^/| /' conftest.$ac_ext >&5
18641
18642bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18643
f572a39d 18644fi
5464f5a1 18645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
18646fi
18647
18648 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
18649
18650cat >>confdefs.h <<\_ACEOF
f572a39d 18651#define HAVE_LWPXSTATUS_T 1
5464f5a1 18652_ACEOF
f572a39d
AM
18653
18654 fi
5464f5a1
NN
18655 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18656echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 18657
5464f5a1
NN
18658 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18659echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18660 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18662else
5464f5a1
NN
18663 cat >conftest.$ac_ext <<_ACEOF
18664/* confdefs.h. */
18665_ACEOF
18666cat confdefs.h >>conftest.$ac_ext
18667cat >>conftest.$ac_ext <<_ACEOF
18668/* end confdefs.h. */
7ee38065
MS
18669
18670#define _SYSCALL32
252b5132 18671#include <sys/procfs.h>
5464f5a1
NN
18672int
18673main ()
18674{
252b5132 18675lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
18676 ;
18677 return 0;
18678}
18679_ACEOF
18680rm -f conftest.$ac_objext
18681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18682 (eval $ac_compile) 2>conftest.er1
18683 ac_status=$?
18684 grep -v '^ *+' conftest.er1 >conftest.err
18685 rm -f conftest.er1
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } &&
49c96104
SE
18689 { ac_try='test -z "$ac_c_werror_flag"
18690 || test ! -s conftest.err'
5464f5a1
NN
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18693 ac_status=$?
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; } &&
18696 { ac_try='test -s conftest.$ac_objext'
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18699 ac_status=$?
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
252b5132
RH
18702 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18703else
5464f5a1
NN
18704 echo "$as_me: failed program was:" >&5
18705sed 's/^/| /' conftest.$ac_ext >&5
18706
18707bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18708
252b5132 18709fi
5464f5a1 18710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18711fi
18712
18713 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
18714
18715cat >>confdefs.h <<\_ACEOF
252b5132 18716#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 18717_ACEOF
252b5132
RH
18718
18719 fi
5464f5a1
NN
18720 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18721echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 18722
5464f5a1
NN
18723 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18724echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18725 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18726 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18727else
5464f5a1
NN
18728 cat >conftest.$ac_ext <<_ACEOF
18729/* confdefs.h. */
18730_ACEOF
18731cat confdefs.h >>conftest.$ac_ext
18732cat >>conftest.$ac_ext <<_ACEOF
18733/* end confdefs.h. */
7ee38065
MS
18734
18735#define _SYSCALL32
252b5132 18736#include <sys/procfs.h>
5464f5a1
NN
18737int
18738main ()
18739{
252b5132 18740lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
18741 ;
18742 return 0;
18743}
18744_ACEOF
18745rm -f conftest.$ac_objext
18746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18747 (eval $ac_compile) 2>conftest.er1
18748 ac_status=$?
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
49c96104
SE
18754 { ac_try='test -z "$ac_c_werror_flag"
18755 || test ! -s conftest.err'
5464f5a1
NN
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest.$ac_objext'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
252b5132
RH
18767 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18768else
5464f5a1
NN
18769 echo "$as_me: failed program was:" >&5
18770sed 's/^/| /' conftest.$ac_ext >&5
18771
18772bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18773
252b5132 18774fi
5464f5a1 18775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18776fi
18777
18778 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
18779
18780cat >>confdefs.h <<\_ACEOF
252b5132 18781#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 18782_ACEOF
252b5132
RH
18783
18784 fi
5464f5a1
NN
18785 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18786echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 18787
5464f5a1
NN
18788 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18789echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18790 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 18792else
5464f5a1
NN
18793 cat >conftest.$ac_ext <<_ACEOF
18794/* confdefs.h. */
18795_ACEOF
18796cat confdefs.h >>conftest.$ac_ext
18797cat >>conftest.$ac_ext <<_ACEOF
18798/* end confdefs.h. */
7ee38065
MS
18799
18800#define _SYSCALL32
e3c976c4 18801#include <sys/procfs.h>
5464f5a1
NN
18802int
18803main ()
18804{
e3c976c4 18805win32_pstatus_t avar
5464f5a1
NN
18806 ;
18807 return 0;
18808}
18809_ACEOF
18810rm -f conftest.$ac_objext
18811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18812 (eval $ac_compile) 2>conftest.er1
18813 ac_status=$?
18814 grep -v '^ *+' conftest.er1 >conftest.err
18815 rm -f conftest.er1
18816 cat conftest.err >&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } &&
49c96104
SE
18819 { ac_try='test -z "$ac_c_werror_flag"
18820 || test ! -s conftest.err'
5464f5a1
NN
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
e3c976c4
ILT
18832 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
18833else
5464f5a1
NN
18834 echo "$as_me: failed program was:" >&5
18835sed 's/^/| /' conftest.$ac_ext >&5
18836
18837bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18838
e3c976c4 18839fi
5464f5a1 18840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18841fi
18842
e3c976c4 18843 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
18844
18845cat >>confdefs.h <<\_ACEOF
e3c976c4 18846#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 18847_ACEOF
16e9c715
NC
18848
18849 fi
5464f5a1
NN
18850 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18851echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
18852
18853 fi
18854fi
16e9c715 18855
b3baf5d0 18856
6be7c12c 18857if test -n "$TRAD_HEADER"; then
5464f5a1
NN
18858
18859cat >>confdefs.h <<_ACEOF
252b5132 18860#define TRAD_HEADER $TRAD_HEADER
5464f5a1 18861_ACEOF
252b5132 18862
3f9b03b5 18863fi
252b5132
RH
18864
18865# Horrible hacks to build DLLs on Windows.
18866WIN32LDFLAGS=
18867WIN32LIBADD=
18868case "${host}" in
18869*-*-cygwin*)
18870 if test "$enable_shared" = "yes"; then
18871 WIN32LDFLAGS="-no-undefined"
18872 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
18873 fi
18874 ;;
78be1d6e 18875*-*-linux*)
39691762
L
18876 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
18877 # libiberty.a.
ca51bfff
L
18878 case "${host}" in
18879 mips*-*-linux*)
18880 # Linux/MIPS uses PIC by default.
18881 if test "$enable_shared" = "yes"; then
18882 WIN32LIBADD="-L../libiberty -liberty"
18883 fi
18884 ;;
18885 *)
66e25bab 18886 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 18887 if test -n "$x"; then
ca51bfff
L
18888 WIN32LIBADD="-L../libiberty/pic -liberty"
18889 fi
18890 ;;
18891 esac
39691762 18892 ;;
252b5132
RH
18893esac
18894
6be7c12c
AO
18895
18896
252b5132
RH
18897# target stuff:
18898
18899# Canonicalize the secondary target names.
18900if test -n "$enable_targets" ; then
18901 for targ in `echo $enable_targets | sed 's/,/ /g'`
18902 do
6d83c84b 18903 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
18904 if test -n "$result" ; then
18905 canon_targets="$canon_targets $result"
18906 else
18907 # Allow targets that config.sub doesn't recognize, like "all".
18908 canon_targets="$canon_targets $targ"
18909 fi
18910 done
18911fi
18912
18913all_targets=false
18914defvec=
18915selvecs=
08f74004 18916assocvecs=
252b5132
RH
18917selarchs=
18918TDEFINES=
18919for targ in $target $canon_targets
18920do
18921 if test "x$targ" = "xall"; then
18922 all_targets=true
08f74004 18923 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
18924 else
18925 . $srcdir/config.bfd
18926 if test "x$targ" = "x$target"; then
18927 defvec=$targ_defvec
18928 fi
18929 selvecs="$selvecs $targ_defvec $targ_selvecs"
18930 selarchs="$selarchs $targ_archs"
18931 TDEFINES="$TDEFINES $targ_cflags"
18932 fi
18933done
18934
6be7c12c 18935
252b5132
RH
18936# This processing still needs to be done if we're to decide properly whether
18937# 64-bit support needs to be compiled in. Currently, it will be included if
18938# the default or any other explicitly requested target requires it; it
18939# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 18940# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
18941# used.
18942
18943# uniq the default and selected vectors in all the configured targets.
18944f=""
18945for i in $selvecs ; do
18946 case " $f " in
18947 *" $i "*) ;;
18948 *) f="$f $i" ;;
18949 esac
18950done
18951selvecs="$f"
18952
6be7c12c 18953
08f74004
AM
18954# uniq the associated vectors in all the configured targets.
18955f=""
18956for i in $assocvecs ; do
18957 case " $f " in
18958 *" $i "*) ;;
18959 *) f="$f $i" ;;
18960 esac
18961done
18962assocvecs="$f"
18963
18964
252b5132
RH
18965# uniq the architectures in all the configured targets.
18966f=""
18967for i in $selarchs ; do
18968 case " $f " in
18969 *" $i "*) ;;
18970 *) f="$f $i" ;;
18971 esac
18972done
18973selarchs="$f"
18974
18975# Target backend .o files.
18976tb=
18977
104d59d1 18978elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
18979
18980for vec in $selvecs
18981do
69263e90 18982 target_size=32
252b5132
RH
18983 case "$vec" in
18984 # This list is alphabetized to make it easy to compare
dc810e39
AM
18985 # with the two vector lists in targets.c. For the same reason,
18986 # use one entry per line, even though this leads to long lines.
252b5132 18987 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 18988 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
18989 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
18990 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
18991 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 18992 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
18993 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18994 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18995 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
18996 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
18997 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18998 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18999 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19000 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
19001 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19002 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19003 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
19004 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19005 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19006 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19007 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
19008 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
19009 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 19010 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 19011 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 19012 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 19013 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 19014 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 19015 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 19016 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 19017 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 19018 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 19019 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 19020 bfd_elf32_bigarm_symbian_vec)
00a97672 19021 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 19022 bfd_elf32_bigarm_vxworks_vec)
00a97672 19023 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
19024 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19025 bfd_elf32_bigmips_vxworks_vec)
19026 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
3d3d428f 19027 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
0949843d 19028 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 19029 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 19030 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
19031 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19032 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 19033 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 19034 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 19035 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 19036 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 19037 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 19038 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 19039 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 19040 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 19041 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
0b3e17e9
NC
19042 bfd_elf32_i386_dragonfly_vec)
19043 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
eac338cf
PB
19044 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19045 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19046 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 19047 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 19048 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 19049 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 19050 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 19051 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 19052 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 19053 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 19054 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 19055 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 19056 bfd_elf32_littlearm_symbian_vec)
00a97672 19057 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 19058 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
19059 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19060 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
19061 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19062 bfd_elf32_littlemips_vxworks_vec)
19063 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 19064 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 19065 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
19066 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19067 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19068 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
19069 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19070 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
19071 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19072 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19073 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19074 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
19075 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19076 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
19077 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19078 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 19079 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 19080 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
19081 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19082 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19083 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19084 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 19085 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 19086 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
19087 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19088 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
19089 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19090 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19091 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 19092 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
19093 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19094 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
19095 # FIXME: We include cofflink.lo not because it's needed for
19096 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19097 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
19098 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19099 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19100 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19101 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19102 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19103 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19104 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19105 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19106 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19107 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19108 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19109 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19110 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 19111 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 19112 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
19113 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19114 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 19115 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
19116 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19117 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 19118 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 19119 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 19120 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 19121 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 19122 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
19123 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19124 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 19125 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
19126 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19127 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 19128 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
19129 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19130 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 19131 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 19132 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
19133 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19134 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 19135 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 19136 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
19137 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19138 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19139 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
19140 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19141 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
19142 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19143 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19144 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19145 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 19146 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 19147 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
19148 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 ;;
19149 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 19150 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 19151 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 19152 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
19153 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19154 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19155 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19156 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 19157 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 19158 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 19159 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 19160 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
19161 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19162 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
19163 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
19164 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
19165 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
19166 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
19167 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
19168 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
19169 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
19170 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
19171 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
19172 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 19173 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
19174 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
19175 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
19176 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
19177 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19178 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19179 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 19180 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
19181 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
19182 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
19183 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19184 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
19185 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19186 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
19187 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
19188 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19189 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19190 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
19191 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19192 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
19193 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
19194 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19195 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 19196 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
19197 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
19198 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 19199 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 19200 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 19201 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
19202 mach_o_be_vec) tb="$tb mach-o.lo" ;;
19203 mach_o_le_vec) tb="$tb mach-o.lo" ;;
19204 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
19205 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19206 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19207 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19208 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
19209 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19210 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 19211 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 19212 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 19213 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 19214 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 19215 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 19216 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 19217 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 19218 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
19219 pef_vec) tb="$tb pef.lo" ;;
19220 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 19221 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 19222 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 19223 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 19224 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 19225 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 19226 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 19227 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 19228 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 19229 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 19230 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
19231 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19232 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 19233 som_vec) tb="$tb som.lo" ;;
dc810e39 19234 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
19235 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
19236 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
19237 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19238 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19239 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 19240 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 19241 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
19242 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
19243 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
19244 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
19245 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
19246 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
19247 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
19248 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
19249 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 19250 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19251 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 19252 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19253 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 19254 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19255 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 19256 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 19257 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 19258 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 19259 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 19260 versados_vec) tb="$tb versados.lo" ;;
dc810e39 19261 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
19262 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19263 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
19264 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 19265 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 19266 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 19267
341ca622
AM
19268 # These appear out of order in targets.c
19269 srec_vec) tb="$tb srec.lo" ;;
19270 symbolsrec_vec) tb="$tb srec.lo" ;;
19271 tekhex_vec) tb="$tb tekhex.lo" ;;
19272 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
19273 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
19274
252b5132 19275 "") ;;
5464f5a1
NN
19276 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19277echo "$as_me: error: *** unknown target vector $vec" >&2;}
19278 { (exit 1); exit 1; }; } ;;
252b5132 19279 esac
69263e90
AM
19280
19281 if test ${target_size} = 64; then
19282 target64=true
19283 fi
19284 if test x"${vec}" = x"${defvec}"; then
19285 bfd_default_target_size=${target_size}
19286 fi
252b5132
RH
19287done
19288
19289# Target architecture .o files.
19290# A couple of CPUs use shorter file names to avoid problems on DOS
19291# filesystems.
d031aafb 19292ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
19293
19294# Weed out duplicate .o files.
19295f=""
19296for i in $tb ; do
19297 case " $f " in
19298 *" $i "*) ;;
19299 *) f="$f $i" ;;
19300 esac
19301done
19302tb="$f"
19303
19304f=""
19305for i in $ta ; do
19306 case " $f " in
19307 *" $i "*) ;;
19308 *) f="$f $i" ;;
19309 esac
19310done
19311ta="$f"
19312
19313bfd_backends="$tb"
19314bfd_machines="$ta"
19315
19316if test x${all_targets} = xtrue ; then
19317 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19318 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19319 selvecs=
19320 havevecs=
19321 selarchs=
08f74004
AM
19322 test -n "$assocvecs" &&
19323 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
19324else # all_targets is true
19325 # Only set these if they will be nonempty, for the clever echo.
19326 havevecs=
08f74004 19327 assocvecs=
252b5132
RH
19328 test -n "$selvecs" &&
19329 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19330 test -n "$selvecs" &&
19331 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19332 test -n "$selarchs" &&
19333 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19334fi # all_targets is true
19335
19336case ${host64}-${target64}-${want64} in
19337 *true*)
19338 wordsize=64
21e40a48 19339 bfd64_libs='$(BFD64_LIBS)'
252b5132 19340 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 19341 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
19342 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19343echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19345echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 19346 fi
966abd70
HPN
19347 if test -n "$GCC" ; then
19348 bad_64bit_gcc=no;
5464f5a1
NN
19349 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19350echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 19351 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
19352 cat >conftest.$ac_ext <<_ACEOF
19353/* confdefs.h. */
19354_ACEOF
19355cat confdefs.h >>conftest.$ac_ext
19356cat >>conftest.$ac_ext <<_ACEOF
19357/* end confdefs.h. */
966abd70 19358:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 19359_ACEOF
966abd70 19360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 19361 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 19362 bad_64bit_gcc=yes;
5464f5a1
NN
19363 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19364echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 19365else
5464f5a1
NN
19366 echo "$as_me:$LINENO: result: no" >&5
19367echo "${ECHO_T}no" >&6
966abd70
HPN
19368fi
19369rm -f conftest*
19370
19371 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
19372 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
19373echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
19374 { (exit 1); exit 1; }; }
966abd70
HPN
19375 fi
19376 fi
252b5132
RH
19377 ;;
19378 false-false-false)
19379 wordsize=32
19380 all_backends='$(BFD32_BACKENDS)'
19381 ;;
19382esac
19383
6be7c12c
AO
19384
19385
19386
19387
19388
69263e90 19389
2858ef35 19390
1012372a
AC
19391# Determine the host dependant file_ptr a.k.a. off_t type. In order
19392# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
19393# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
19394# Hopefully a reasonable assumption since fseeko et.al. should be
19395# upward compatible.
5464f5a1
NN
19396
19397
19398
19399
2e6f4fae
DJ
19400
19401for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 19402do
5464f5a1
NN
19403as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19404echo "$as_me:$LINENO: checking for $ac_func" >&5
19405echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19406if eval "test \"\${$as_ac_var+set}\" = set"; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19408else
2ba49b59
KC
19409 cat >conftest.$ac_ext <<_ACEOF
19410/* confdefs.h. */
19411_ACEOF
19412cat confdefs.h >>conftest.$ac_ext
19413cat >>conftest.$ac_ext <<_ACEOF
19414/* end confdefs.h. */
19415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19417#define $ac_func innocuous_$ac_func
19418
19419/* System header to define __stub macros and hopefully few prototypes,
19420 which can conflict with char $ac_func (); below.
19421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19422 <limits.h> exists even on freestanding compilers. */
19423
19424#ifdef __STDC__
19425# include <limits.h>
19426#else
19427# include <assert.h>
19428#endif
19429
19430#undef $ac_func
19431
19432/* Override any gcc2 internal prototype to avoid an error. */
19433#ifdef __cplusplus
19434extern "C"
19435{
19436#endif
19437/* We use char because int might match the return type of a gcc2
19438 builtin and then its argument prototype would still apply. */
19439char $ac_func ();
19440/* The GNU C library defines this for functions which it implements
19441 to always fail with ENOSYS. Some functions are actually named
19442 something starting with __ and the normal name is an alias. */
19443#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19444choke me
19445#else
19446char (*f) () = $ac_func;
19447#endif
19448#ifdef __cplusplus
19449}
19450#endif
19451
19452int
19453main ()
19454{
19455return f != $ac_func;
19456 ;
19457 return 0;
19458}
19459_ACEOF
19460rm -f conftest.$ac_objext conftest$ac_exeext
19461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19462 (eval $ac_link) 2>conftest.er1
19463 ac_status=$?
19464 grep -v '^ *+' conftest.er1 >conftest.err
19465 rm -f conftest.er1
19466 cat conftest.err >&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
49c96104
SE
19469 { ac_try='test -z "$ac_c_werror_flag"
19470 || test ! -s conftest.err'
2ba49b59
KC
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest$ac_exeext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 eval "$as_ac_var=yes"
19483else
19484 echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487eval "$as_ac_var=no"
19488fi
19489rm -f conftest.err conftest.$ac_objext \
19490 conftest$ac_exeext conftest.$ac_ext
19491fi
19492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19493echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19494if test `eval echo '${'$as_ac_var'}'` = yes; then
19495 cat >>confdefs.h <<_ACEOF
19496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19497_ACEOF
19498
19499fi
19500done
19501
19502if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19503 echo "$as_me:$LINENO: checking for off_t" >&5
19504echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19505if test "${ac_cv_type_off_t+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19507else
19508 cat >conftest.$ac_ext <<_ACEOF
19509/* confdefs.h. */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h. */
19514$ac_includes_default
19515int
19516main ()
19517{
19518if ((off_t *) 0)
19519 return 0;
19520if (sizeof (off_t))
19521 return 0;
19522 ;
19523 return 0;
19524}
19525_ACEOF
19526rm -f conftest.$ac_objext
19527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19528 (eval $ac_compile) 2>conftest.er1
19529 ac_status=$?
19530 grep -v '^ *+' conftest.er1 >conftest.err
19531 rm -f conftest.er1
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } &&
49c96104
SE
19535 { ac_try='test -z "$ac_c_werror_flag"
19536 || test ! -s conftest.err'
2ba49b59
KC
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } &&
19542 { ac_try='test -s conftest.$ac_objext'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 ac_cv_type_off_t=yes
19549else
19550 echo "$as_me: failed program was:" >&5
19551sed 's/^/| /' conftest.$ac_ext >&5
19552
19553ac_cv_type_off_t=no
19554fi
19555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19556fi
19557echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19558echo "${ECHO_T}$ac_cv_type_off_t" >&6
19559
19560echo "$as_me:$LINENO: checking size of off_t" >&5
19561echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19562if test "${ac_cv_sizeof_off_t+set}" = set; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19564else
19565 if test "$ac_cv_type_off_t" = yes; then
19566 # The cast to unsigned long works around a bug in the HP C Compiler
19567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19569 # This bug is HP SR number 8606223364.
19570 if test "$cross_compiling" = yes; then
19571 # Depending upon the size, compute the lo and hi bounds.
19572cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
19573/* confdefs.h. */
19574_ACEOF
19575cat confdefs.h >>conftest.$ac_ext
19576cat >>conftest.$ac_ext <<_ACEOF
19577/* end confdefs.h. */
2ba49b59
KC
19578$ac_includes_default
19579int
19580main ()
19581{
19582static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19583test_array [0] = 0
5464f5a1 19584
2ba49b59
KC
19585 ;
19586 return 0;
19587}
19588_ACEOF
19589rm -f conftest.$ac_objext
19590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19591 (eval $ac_compile) 2>conftest.er1
19592 ac_status=$?
19593 grep -v '^ *+' conftest.er1 >conftest.err
19594 rm -f conftest.er1
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } &&
49c96104
SE
19598 { ac_try='test -z "$ac_c_werror_flag"
19599 || test ! -s conftest.err'
2ba49b59
KC
19600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601 (eval $ac_try) 2>&5
19602 ac_status=$?
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); }; } &&
19605 { ac_try='test -s conftest.$ac_objext'
19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607 (eval $ac_try) 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; }; then
19611 ac_lo=0 ac_mid=0
19612 while :; do
19613 cat >conftest.$ac_ext <<_ACEOF
19614/* confdefs.h. */
19615_ACEOF
19616cat confdefs.h >>conftest.$ac_ext
19617cat >>conftest.$ac_ext <<_ACEOF
19618/* end confdefs.h. */
19619$ac_includes_default
19620int
19621main ()
19622{
19623static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19624test_array [0] = 0
5464f5a1 19625
2ba49b59
KC
19626 ;
19627 return 0;
19628}
19629_ACEOF
19630rm -f conftest.$ac_objext
19631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632 (eval $ac_compile) 2>conftest.er1
19633 ac_status=$?
19634 grep -v '^ *+' conftest.er1 >conftest.err
19635 rm -f conftest.er1
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
49c96104
SE
19639 { ac_try='test -z "$ac_c_werror_flag"
19640 || test ! -s conftest.err'
2ba49b59
KC
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try='test -s conftest.$ac_objext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_hi=$ac_mid; break
19653else
19654 echo "$as_me: failed program was:" >&5
19655sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19656
2ba49b59
KC
19657ac_lo=`expr $ac_mid + 1`
19658 if test $ac_lo -le $ac_mid; then
19659 ac_lo= ac_hi=
19660 break
19661 fi
19662 ac_mid=`expr 2 '*' $ac_mid + 1`
19663fi
19664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19665 done
19666else
19667 echo "$as_me: failed program was:" >&5
19668sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19669
2ba49b59
KC
19670cat >conftest.$ac_ext <<_ACEOF
19671/* confdefs.h. */
19672_ACEOF
19673cat confdefs.h >>conftest.$ac_ext
19674cat >>conftest.$ac_ext <<_ACEOF
19675/* end confdefs.h. */
19676$ac_includes_default
19677int
19678main ()
5464f5a1 19679{
2ba49b59
KC
19680static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19681test_array [0] = 0
1012372a 19682
2ba49b59
KC
19683 ;
19684 return 0;
19685}
19686_ACEOF
19687rm -f conftest.$ac_objext
19688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19689 (eval $ac_compile) 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
49c96104
SE
19696 { ac_try='test -z "$ac_c_werror_flag"
19697 || test ! -s conftest.err'
2ba49b59
KC
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; } &&
19703 { ac_try='test -s conftest.$ac_objext'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19709 ac_hi=-1 ac_mid=-1
19710 while :; do
19711 cat >conftest.$ac_ext <<_ACEOF
19712/* confdefs.h. */
19713_ACEOF
19714cat confdefs.h >>conftest.$ac_ext
19715cat >>conftest.$ac_ext <<_ACEOF
19716/* end confdefs.h. */
19717$ac_includes_default
5464f5a1
NN
19718int
19719main ()
19720{
2ba49b59
KC
19721static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19722test_array [0] = 0
19723
5464f5a1
NN
19724 ;
19725 return 0;
19726}
19727_ACEOF
2ba49b59
KC
19728rm -f conftest.$ac_objext
19729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19730 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
19731 ac_status=$?
19732 grep -v '^ *+' conftest.er1 >conftest.err
19733 rm -f conftest.er1
19734 cat conftest.err >&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } &&
49c96104
SE
19737 { ac_try='test -z "$ac_c_werror_flag"
19738 || test ! -s conftest.err'
5464f5a1
NN
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; } &&
2ba49b59 19744 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
2ba49b59 19750 ac_lo=$ac_mid; break
5464f5a1
NN
19751else
19752 echo "$as_me: failed program was:" >&5
19753sed 's/^/| /' conftest.$ac_ext >&5
19754
2ba49b59
KC
19755ac_hi=`expr '(' $ac_mid ')' - 1`
19756 if test $ac_mid -le $ac_hi; then
19757 ac_lo= ac_hi=
19758 break
19759 fi
19760 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 19761fi
2ba49b59
KC
19762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19763 done
19764else
19765 echo "$as_me: failed program was:" >&5
19766sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19767
2ba49b59 19768ac_lo= ac_hi=
1012372a 19769fi
2ba49b59
KC
19770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19771fi
19772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19773# Binary search between lo and hi bounds.
19774while test "x$ac_lo" != "x$ac_hi"; do
19775 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
19776 cat >conftest.$ac_ext <<_ACEOF
19777/* confdefs.h. */
19778_ACEOF
19779cat confdefs.h >>conftest.$ac_ext
19780cat >>conftest.$ac_ext <<_ACEOF
19781/* end confdefs.h. */
2ba49b59 19782$ac_includes_default
5464f5a1
NN
19783int
19784main ()
19785{
2ba49b59
KC
19786static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19787test_array [0] = 0
19788
5464f5a1
NN
19789 ;
19790 return 0;
19791}
19792_ACEOF
19793rm -f conftest.$ac_objext
19794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19795 (eval $ac_compile) 2>conftest.er1
19796 ac_status=$?
19797 grep -v '^ *+' conftest.er1 >conftest.err
19798 rm -f conftest.er1
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
49c96104
SE
19802 { ac_try='test -z "$ac_c_werror_flag"
19803 || test ! -s conftest.err'
5464f5a1
NN
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest.$ac_objext'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
2ba49b59 19815 ac_hi=$ac_mid
1012372a 19816else
5464f5a1
NN
19817 echo "$as_me: failed program was:" >&5
19818sed 's/^/| /' conftest.$ac_ext >&5
19819
2ba49b59 19820ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 19821fi
5464f5a1 19822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 19823done
2ba49b59
KC
19824case $ac_lo in
19825?*) ac_cv_sizeof_off_t=$ac_lo;;
19826'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19827See \`config.log' for more details." >&5
19828echo "$as_me: error: cannot compute sizeof (off_t), 77
19829See \`config.log' for more details." >&2;}
19830 { (exit 1); exit 1; }; } ;;
19831esac
19832else
19833 if test "$cross_compiling" = yes; then
49c96104
SE
19834 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19835See \`config.log' for more details." >&5
19836echo "$as_me: error: cannot run test program while cross compiling
19837See \`config.log' for more details." >&2;}
2ba49b59
KC
19838 { (exit 1); exit 1; }; }
19839else
19840 cat >conftest.$ac_ext <<_ACEOF
19841/* confdefs.h. */
19842_ACEOF
19843cat confdefs.h >>conftest.$ac_ext
19844cat >>conftest.$ac_ext <<_ACEOF
19845/* end confdefs.h. */
19846$ac_includes_default
19847long longval () { return (long) (sizeof (off_t)); }
19848unsigned long ulongval () { return (long) (sizeof (off_t)); }
19849#include <stdio.h>
19850#include <stdlib.h>
19851int
19852main ()
19853{
1012372a 19854
2ba49b59
KC
19855 FILE *f = fopen ("conftest.val", "w");
19856 if (! f)
19857 exit (1);
19858 if (((long) (sizeof (off_t))) < 0)
19859 {
19860 long i = longval ();
19861 if (i != ((long) (sizeof (off_t))))
19862 exit (1);
19863 fprintf (f, "%ld\n", i);
19864 }
19865 else
19866 {
19867 unsigned long i = ulongval ();
19868 if (i != ((long) (sizeof (off_t))))
19869 exit (1);
19870 fprintf (f, "%lu\n", i);
19871 }
19872 exit (ferror (f) || fclose (f) != 0);
19873
19874 ;
19875 return 0;
19876}
19877_ACEOF
19878rm -f conftest$ac_exeext
19879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19880 (eval $ac_link) 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; }; then
19889 ac_cv_sizeof_off_t=`cat conftest.val`
19890else
19891 echo "$as_me: program exited with status $ac_status" >&5
19892echo "$as_me: failed program was:" >&5
19893sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19894
2ba49b59
KC
19895( exit $ac_status )
19896{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19897See \`config.log' for more details." >&5
19898echo "$as_me: error: cannot compute sizeof (off_t), 77
19899See \`config.log' for more details." >&2;}
5464f5a1 19900 { (exit 1); exit 1; }; }
1012372a 19901fi
2ba49b59
KC
19902rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19903fi
19904fi
19905rm -f conftest.val
19906else
19907 ac_cv_sizeof_off_t=0
19908fi
19909fi
5464f5a1
NN
19910echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19911echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 19912cat >>confdefs.h <<_ACEOF
1012372a 19913#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 19914_ACEOF
1012372a
AC
19915
19916
1012372a 19917fi
5464f5a1
NN
19918echo "$as_me:$LINENO: checking file_ptr type" >&5
19919echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
19920bfd_file_ptr="long"
19921bfd_ufile_ptr="unsigned long"
19922if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
19923 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
19924 bfd_file_ptr=BFD_HOST_64_BIT
19925 bfd_ufile_ptr=BFD_HOST_U_64_BIT
19926fi
5464f5a1
NN
19927echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
19928echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
19929
19930
19931
19932
252b5132
RH
19933tdefaults=""
19934test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
19935test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 19936test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
19937test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
19938test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
19939
6be7c12c 19940
5464f5a1
NN
19941
19942
19943for ac_header in stdlib.h unistd.h
252b5132 19944do
5464f5a1
NN
19945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19946if eval "test \"\${$as_ac_Header+set}\" = set"; then
19947 echo "$as_me:$LINENO: checking for $ac_header" >&5
19948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19949if eval "test \"\${$as_ac_Header+set}\" = set"; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951fi
19952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19954else
19955 # Is the header compilable?
19956echo "$as_me:$LINENO: checking $ac_header usability" >&5
19957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19958cat >conftest.$ac_ext <<_ACEOF
19959/* confdefs.h. */
19960_ACEOF
19961cat confdefs.h >>conftest.$ac_ext
19962cat >>conftest.$ac_ext <<_ACEOF
19963/* end confdefs.h. */
19964$ac_includes_default
19965#include <$ac_header>
19966_ACEOF
19967rm -f conftest.$ac_objext
19968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19969 (eval $ac_compile) 2>conftest.er1
19970 ac_status=$?
19971 grep -v '^ *+' conftest.er1 >conftest.err
19972 rm -f conftest.er1
19973 cat conftest.err >&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } &&
49c96104
SE
19976 { ac_try='test -z "$ac_c_werror_flag"
19977 || test ! -s conftest.err'
5464f5a1
NN
19978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979 (eval $ac_try) 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; } &&
19983 { ac_try='test -s conftest.$ac_objext'
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; }; then
19989 ac_header_compiler=yes
19990else
19991 echo "$as_me: failed program was:" >&5
19992sed 's/^/| /' conftest.$ac_ext >&5
19993
19994ac_header_compiler=no
19995fi
19996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19998echo "${ECHO_T}$ac_header_compiler" >&6
19999
20000# Is the header present?
20001echo "$as_me:$LINENO: checking $ac_header presence" >&5
20002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20003cat >conftest.$ac_ext <<_ACEOF
20004/* confdefs.h. */
20005_ACEOF
20006cat confdefs.h >>conftest.$ac_ext
20007cat >>conftest.$ac_ext <<_ACEOF
20008/* end confdefs.h. */
20009#include <$ac_header>
20010_ACEOF
20011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20013 ac_status=$?
20014 grep -v '^ *+' conftest.er1 >conftest.err
20015 rm -f conftest.er1
20016 cat conftest.err >&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } >/dev/null; then
20019 if test -s conftest.err; then
20020 ac_cpp_err=$ac_c_preproc_warn_flag
20021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20022 else
20023 ac_cpp_err=
20024 fi
252b5132 20025else
5464f5a1 20026 ac_cpp_err=yes
252b5132 20027fi
5464f5a1
NN
20028if test -z "$ac_cpp_err"; then
20029 ac_header_preproc=yes
20030else
20031 echo "$as_me: failed program was:" >&5
20032sed 's/^/| /' conftest.$ac_ext >&5
20033
20034 ac_header_preproc=no
252b5132 20035fi
5464f5a1
NN
20036rm -f conftest.err conftest.$ac_ext
20037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20038echo "${ECHO_T}$ac_header_preproc" >&6
20039
20040# So? What about this header?
20041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20042 yes:no: )
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20047 ac_header_preproc=yes
20048 ;;
20049 no:yes:* )
20050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20062 (
20063 cat <<\_ASBOX
20064## ------------------------------------------ ##
20065## Report this to the AC_PACKAGE_NAME lists. ##
20066## ------------------------------------------ ##
20067_ASBOX
20068 ) |
20069 sed "s/^/$as_me: WARNING: /" >&2
20070 ;;
20071esac
20072echo "$as_me:$LINENO: checking for $ac_header" >&5
20073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20074if eval "test \"\${$as_ac_Header+set}\" = set"; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 20076else
5464f5a1
NN
20077 eval "$as_ac_Header=\$ac_header_preproc"
20078fi
20079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20081
20082fi
20083if test `eval echo '${'$as_ac_Header'}'` = yes; then
20084 cat >>confdefs.h <<_ACEOF
20085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20086_ACEOF
20087
252b5132 20088fi
5464f5a1 20089
252b5132
RH
20090done
20091
5464f5a1 20092
252b5132
RH
20093for ac_func in getpagesize
20094do
5464f5a1
NN
20095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20096echo "$as_me:$LINENO: checking for $ac_func" >&5
20097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20098if eval "test \"\${$as_ac_var+set}\" = set"; then
20099 echo $ECHO_N "(cached) $ECHO_C" >&6
20100else
20101 cat >conftest.$ac_ext <<_ACEOF
20102/* confdefs.h. */
20103_ACEOF
20104cat confdefs.h >>conftest.$ac_ext
20105cat >>conftest.$ac_ext <<_ACEOF
20106/* end confdefs.h. */
20107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20109#define $ac_func innocuous_$ac_func
20110
252b5132 20111/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
20112 which can conflict with char $ac_func (); below.
20113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20114 <limits.h> exists even on freestanding compilers. */
20115
20116#ifdef __STDC__
20117# include <limits.h>
20118#else
20119# include <assert.h>
20120#endif
6be7c12c 20121
5464f5a1 20122#undef $ac_func
252b5132 20123
5464f5a1
NN
20124/* Override any gcc2 internal prototype to avoid an error. */
20125#ifdef __cplusplus
20126extern "C"
20127{
20128#endif
20129/* We use char because int might match the return type of a gcc2
20130 builtin and then its argument prototype would still apply. */
20131char $ac_func ();
252b5132
RH
20132/* The GNU C library defines this for functions which it implements
20133 to always fail with ENOSYS. Some functions are actually named
20134 something starting with __ and the normal name is an alias. */
20135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20136choke me
20137#else
5464f5a1
NN
20138char (*f) () = $ac_func;
20139#endif
20140#ifdef __cplusplus
20141}
252b5132
RH
20142#endif
20143
5464f5a1
NN
20144int
20145main ()
20146{
20147return f != $ac_func;
20148 ;
20149 return 0;
20150}
20151_ACEOF
20152rm -f conftest.$ac_objext conftest$ac_exeext
20153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20154 (eval $ac_link) 2>conftest.er1
20155 ac_status=$?
20156 grep -v '^ *+' conftest.er1 >conftest.err
20157 rm -f conftest.er1
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } &&
49c96104
SE
20161 { ac_try='test -z "$ac_c_werror_flag"
20162 || test ! -s conftest.err'
5464f5a1
NN
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; } &&
20168 { ac_try='test -s conftest$ac_exeext'
20169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 eval "$as_ac_var=yes"
20175else
20176 echo "$as_me: failed program was:" >&5
20177sed 's/^/| /' conftest.$ac_ext >&5
20178
20179eval "$as_ac_var=no"
20180fi
20181rm -f conftest.err conftest.$ac_objext \
20182 conftest$ac_exeext conftest.$ac_ext
20183fi
20184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20185echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20186if test `eval echo '${'$as_ac_var'}'` = yes; then
20187 cat >>confdefs.h <<_ACEOF
20188#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20189_ACEOF
252b5132 20190
252b5132
RH
20191fi
20192done
20193
5464f5a1
NN
20194echo "$as_me:$LINENO: checking for working mmap" >&5
20195echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20196if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
20198else
20199 if test "$cross_compiling" = yes; then
20200 ac_cv_func_mmap_fixed_mapped=no
20201else
5464f5a1
NN
20202 cat >conftest.$ac_ext <<_ACEOF
20203/* confdefs.h. */
20204_ACEOF
20205cat confdefs.h >>conftest.$ac_ext
20206cat >>conftest.$ac_ext <<_ACEOF
20207/* end confdefs.h. */
20208$ac_includes_default
20209/* malloc might have been renamed as rpl_malloc. */
20210#undef malloc
6be7c12c 20211
252b5132
RH
20212/* Thanks to Mike Haertel and Jim Avera for this test.
20213 Here is a matrix of mmap possibilities:
20214 mmap private not fixed
20215 mmap private fixed at somewhere currently unmapped
20216 mmap private fixed at somewhere already mapped
20217 mmap shared not fixed
20218 mmap shared fixed at somewhere currently unmapped
20219 mmap shared fixed at somewhere already mapped
20220 For private mappings, we should verify that changes cannot be read()
20221 back from the file, nor mmap's back from the file at a different
20222 address. (There have been systems where private was not correctly
20223 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 20224 VM page cache was not coherent with the file system buffer cache
252b5132
RH
20225 like early versions of FreeBSD and possibly contemporary NetBSD.)
20226 For shared mappings, we should conversely verify that changes get
5464f5a1 20227 propagated back to all the places they're supposed to be.
252b5132
RH
20228
20229 Grep wants private fixed already mapped.
20230 The main things grep needs to know about mmap are:
20231 * does it exist and is it safe to write into the mmap'd area
20232 * how to use it (BSD variants) */
5464f5a1 20233
252b5132
RH
20234#include <fcntl.h>
20235#include <sys/mman.h>
20236
5464f5a1
NN
20237#if !STDC_HEADERS && !HAVE_STDLIB_H
20238char *malloc ();
20239#endif
6be7c12c 20240
5464f5a1
NN
20241/* This mess was copied from the GNU getpagesize.h. */
20242#if !HAVE_GETPAGESIZE
252b5132 20243/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 20244# if !HAVE_SYS_PARAM_H
252b5132
RH
20245# define HAVE_SYS_PARAM_H 1
20246# endif
20247
20248# ifdef _SC_PAGESIZE
20249# define getpagesize() sysconf(_SC_PAGESIZE)
20250# else /* no _SC_PAGESIZE */
5464f5a1 20251# if HAVE_SYS_PARAM_H
252b5132
RH
20252# include <sys/param.h>
20253# ifdef EXEC_PAGESIZE
20254# define getpagesize() EXEC_PAGESIZE
20255# else /* no EXEC_PAGESIZE */
20256# ifdef NBPG
20257# define getpagesize() NBPG * CLSIZE
20258# ifndef CLSIZE
20259# define CLSIZE 1
20260# endif /* no CLSIZE */
20261# else /* no NBPG */
20262# ifdef NBPC
20263# define getpagesize() NBPC
20264# else /* no NBPC */
20265# ifdef PAGESIZE
20266# define getpagesize() PAGESIZE
20267# endif /* PAGESIZE */
20268# endif /* no NBPC */
20269# endif /* no NBPG */
20270# endif /* no EXEC_PAGESIZE */
20271# else /* no HAVE_SYS_PARAM_H */
20272# define getpagesize() 8192 /* punt totally */
20273# endif /* no HAVE_SYS_PARAM_H */
20274# endif /* no _SC_PAGESIZE */
20275
5464f5a1
NN
20276#endif /* no HAVE_GETPAGESIZE */
20277
20278int
20279main ()
20280{
20281 char *data, *data2, *data3;
20282 int i, pagesize;
20283 int fd;
20284
20285 pagesize = getpagesize ();
20286
20287 /* First, make a file with some known garbage in it. */
20288 data = (char *) malloc (pagesize);
20289 if (!data)
20290 exit (1);
20291 for (i = 0; i < pagesize; ++i)
20292 *(data + i) = rand ();
20293 umask (0);
20294 fd = creat ("conftest.mmap", 0600);
20295 if (fd < 0)
20296 exit (1);
20297 if (write (fd, data, pagesize) != pagesize)
20298 exit (1);
20299 close (fd);
20300
20301 /* Next, try to mmap the file at a fixed address which already has
20302 something else allocated at it. If we can, also make sure that
20303 we see the same garbage. */
20304 fd = open ("conftest.mmap", O_RDWR);
20305 if (fd < 0)
20306 exit (1);
20307 data2 = (char *) malloc (2 * pagesize);
20308 if (!data2)
20309 exit (1);
20310 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20311 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20312 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20313 exit (1);
20314 for (i = 0; i < pagesize; ++i)
20315 if (*(data + i) != *(data2 + i))
20316 exit (1);
20317
20318 /* Finally, make sure that changes to the mapped area do not
20319 percolate back to the file as seen by read(). (This is a bug on
20320 some variants of i386 svr4.0.) */
20321 for (i = 0; i < pagesize; ++i)
20322 *(data2 + i) = *(data2 + i) + 1;
20323 data3 = (char *) malloc (pagesize);
20324 if (!data3)
20325 exit (1);
20326 if (read (fd, data3, pagesize) != pagesize)
20327 exit (1);
20328 for (i = 0; i < pagesize; ++i)
20329 if (*(data + i) != *(data3 + i))
20330 exit (1);
20331 close (fd);
20332 exit (0);
20333}
20334_ACEOF
20335rm -f conftest$ac_exeext
20336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20337 (eval $ac_link) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20343 ac_status=$?
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 ac_cv_func_mmap_fixed_mapped=yes
20347else
20348 echo "$as_me: program exited with status $ac_status" >&5
20349echo "$as_me: failed program was:" >&5
20350sed 's/^/| /' conftest.$ac_ext >&5
20351
20352( exit $ac_status )
20353ac_cv_func_mmap_fixed_mapped=no
20354fi
20355rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20356fi
20357fi
20358echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20359echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20360if test $ac_cv_func_mmap_fixed_mapped = yes; then
20361
20362cat >>confdefs.h <<\_ACEOF
20363#define HAVE_MMAP 1
20364_ACEOF
20365
20366fi
20367rm -f conftest.mmap
20368
20369
20370
20371for ac_func in madvise mprotect
20372do
20373as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20374echo "$as_me:$LINENO: checking for $ac_func" >&5
20375echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20376if eval "test \"\${$as_ac_var+set}\" = set"; then
20377 echo $ECHO_N "(cached) $ECHO_C" >&6
20378else
20379 cat >conftest.$ac_ext <<_ACEOF
20380/* confdefs.h. */
20381_ACEOF
20382cat confdefs.h >>conftest.$ac_ext
20383cat >>conftest.$ac_ext <<_ACEOF
20384/* end confdefs.h. */
20385/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20387#define $ac_func innocuous_$ac_func
20388
20389/* System header to define __stub macros and hopefully few prototypes,
20390 which can conflict with char $ac_func (); below.
20391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20392 <limits.h> exists even on freestanding compilers. */
20393
20394#ifdef __STDC__
20395# include <limits.h>
20396#else
20397# include <assert.h>
20398#endif
20399
20400#undef $ac_func
20401
20402/* Override any gcc2 internal prototype to avoid an error. */
20403#ifdef __cplusplus
20404extern "C"
20405{
20406#endif
20407/* We use char because int might match the return type of a gcc2
20408 builtin and then its argument prototype would still apply. */
20409char $ac_func ();
20410/* The GNU C library defines this for functions which it implements
20411 to always fail with ENOSYS. Some functions are actually named
20412 something starting with __ and the normal name is an alias. */
20413#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20414choke me
20415#else
20416char (*f) () = $ac_func;
20417#endif
20418#ifdef __cplusplus
20419}
20420#endif
20421
20422int
20423main ()
20424{
20425return f != $ac_func;
20426 ;
20427 return 0;
20428}
20429_ACEOF
20430rm -f conftest.$ac_objext conftest$ac_exeext
20431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20432 (eval $ac_link) 2>conftest.er1
20433 ac_status=$?
20434 grep -v '^ *+' conftest.er1 >conftest.err
20435 rm -f conftest.er1
20436 cat conftest.err >&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } &&
49c96104
SE
20439 { ac_try='test -z "$ac_c_werror_flag"
20440 || test ! -s conftest.err'
5464f5a1
NN
20441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20442 (eval $ac_try) 2>&5
20443 ac_status=$?
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); }; } &&
20446 { ac_try='test -s conftest$ac_exeext'
20447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448 (eval $ac_try) 2>&5
20449 ac_status=$?
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; }; then
20452 eval "$as_ac_var=yes"
20453else
20454 echo "$as_me: failed program was:" >&5
20455sed 's/^/| /' conftest.$ac_ext >&5
20456
20457eval "$as_ac_var=no"
20458fi
20459rm -f conftest.err conftest.$ac_objext \
20460 conftest$ac_exeext conftest.$ac_ext
20461fi
20462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20463echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20464if test `eval echo '${'$as_ac_var'}'` = yes; then
20465 cat >>confdefs.h <<_ACEOF
20466#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20467_ACEOF
20468
20469fi
20470done
20471
20472case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20473 true+yes )
20474cat >>confdefs.h <<\_ACEOF
20475#define USE_MMAP 1
20476_ACEOF
20477 ;;
20478esac
20479
20480rm -f doc/config.status
20481 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20482
20e95c23 20483
5464f5a1
NN
20484 ac_config_commands="$ac_config_commands default"
20485
108a6f8e
CD
20486
20487
20488
20489
20490
5464f5a1
NN
20491cat >confcache <<\_ACEOF
20492# This file is a shell script that caches the results of configure
20493# tests run on this system so they can be shared between configure
20494# scripts and configure runs, see configure's option --config-cache.
20495# It is not useful on other systems. If it contains results you don't
20496# want to keep, you may remove or edit it.
20497#
20498# config.status only pays attention to the cache file if you give it
20499# the --recheck option to rerun configure.
20500#
20501# `ac_cv_env_foo' variables (set or unset) will be overridden when
20502# loading this file, other *unset* `ac_cv_foo' will be assigned the
20503# following values.
20504
20505_ACEOF
20506
20507# The following way of writing the cache mishandles newlines in values,
20508# but we know of no workaround that is simple, portable, and efficient.
20509# So, don't put newlines in cache variables' values.
20510# Ultrix sh set writes to stderr and can't be redirected directly,
20511# and sets the high bit in the cache file unless we assign to the vars.
20512{
20513 (set) 2>&1 |
20514 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20515 *ac_space=\ *)
20516 # `set' does not quote correctly, so add quotes (double-quote
20517 # substitution turns \\\\ into \\, and sed turns \\ into \).
20518 sed -n \
20519 "s/'/'\\\\''/g;
20520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20521 ;;
20522 *)
20523 # `set' quotes correctly as required by POSIX, so do not add quotes.
20524 sed -n \
20525 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20526 ;;
20527 esac;
20528} |
20529 sed '
20530 t clear
20531 : clear
20532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20533 t end
20534 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20535 : end' >>confcache
20536if diff $cache_file confcache >/dev/null 2>&1; then :; else
20537 if test -w $cache_file; then
20538 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20539 cat confcache >$cache_file
20540 else
20541 echo "not updating unwritable cache $cache_file"
20542 fi
20543fi
20544rm -f confcache
20545
20546test "x$prefix" = xNONE && prefix=$ac_default_prefix
20547# Let make expand exec_prefix.
20548test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20549
20550# VPATH may cause trouble with some makes, so we remove $(srcdir),
20551# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20552# trailing colons and then remove the whole line if VPATH becomes empty
20553# (actually we leave an empty line to preserve line numbers).
20554if test "x$srcdir" = x.; then
20555 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20556s/:*\$(srcdir):*/:/;
20557s/:*\${srcdir}:*/:/;
20558s/:*@srcdir@:*/:/;
20559s/^\([^=]*=[ ]*\):*/\1/;
20560s/:*$//;
20561s/^[^=]*=[ ]*$//;
20562}'
20563fi
20564
20565DEFS=-DHAVE_CONFIG_H
20566
20567ac_libobjs=
20568ac_ltlibobjs=
20569for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20570 # 1. Remove the extension, and $U if already installed.
20571 ac_i=`echo "$ac_i" |
20572 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20573 # 2. Add them.
20574 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20575 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20576done
20577LIBOBJS=$ac_libobjs
20578
20579LTLIBOBJS=$ac_ltlibobjs
20580
20581
f5385ebf
AM
20582if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20583 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20584Usually this means the macro was only invoked conditionally." >&5
20585echo "$as_me: error: conditional \"AMDEP\" was never defined.
20586Usually this means the macro was only invoked conditionally." >&2;}
20587 { (exit 1); exit 1; }; }
20588fi
20589if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20590 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20591Usually this means the macro was only invoked conditionally." >&5
20592echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20593Usually this means the macro was only invoked conditionally." >&2;}
20594 { (exit 1); exit 1; }; }
20595fi
20596if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20597 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20598Usually this means the macro was only invoked conditionally." >&5
20599echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20600Usually this means the macro was only invoked conditionally." >&2;}
20601 { (exit 1); exit 1; }; }
20602fi
d5fbea21
DJ
20603if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20604 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20605Usually this means the macro was only invoked conditionally." >&5
20606echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20607Usually this means the macro was only invoked conditionally." >&2;}
20608 { (exit 1); exit 1; }; }
20609fi
f5385ebf
AM
20610if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20611 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20612Usually this means the macro was only invoked conditionally." >&5
20613echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20614Usually this means the macro was only invoked conditionally." >&2;}
20615 { (exit 1); exit 1; }; }
20616fi
5464f5a1
NN
20617
20618: ${CONFIG_STATUS=./config.status}
20619ac_clean_files_save=$ac_clean_files
20620ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20621{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20622echo "$as_me: creating $CONFIG_STATUS" >&6;}
20623cat >$CONFIG_STATUS <<_ACEOF
20624#! $SHELL
20625# Generated by $as_me.
20626# Run this file to recreate the current configuration.
20627# Compiler output produced by configure, useful for debugging
20628# configure, is in config.log if it exists.
20629
20630debug=false
20631ac_cs_recheck=false
20632ac_cs_silent=false
20633SHELL=\${CONFIG_SHELL-$SHELL}
20634_ACEOF
20635
20636cat >>$CONFIG_STATUS <<\_ACEOF
20637## --------------------- ##
20638## M4sh Initialization. ##
20639## --------------------- ##
20640
20641# Be Bourne compatible
20642if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20643 emulate sh
20644 NULLCMD=:
20645 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20646 # is contrary to our usage. Disable this feature.
20647 alias -g '${1+"$@"}'='"$@"'
20648elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20649 set -o posix
20650fi
20651DUALCASE=1; export DUALCASE # for MKS sh
20652
20653# Support unset when possible.
20654if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20655 as_unset=unset
20656else
20657 as_unset=false
20658fi
20659
20660
20661# Work around bugs in pre-3.0 UWIN ksh.
20662$as_unset ENV MAIL MAILPATH
20663PS1='$ '
20664PS2='> '
20665PS4='+ '
20666
20667# NLS nuisances.
20668for as_var in \
20669 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20670 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20671 LC_TELEPHONE LC_TIME
20672do
20673 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20674 eval $as_var=C; export $as_var
20675 else
20676 $as_unset $as_var
20677 fi
20678done
20679
20680# Required to use basename.
20681if expr a : '\(a\)' >/dev/null 2>&1; then
20682 as_expr=expr
20683else
20684 as_expr=false
20685fi
20686
20687if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20688 as_basename=basename
20689else
20690 as_basename=false
20691fi
252b5132 20692
6be7c12c 20693
5464f5a1
NN
20694# Name of the executable.
20695as_me=`$as_basename "$0" ||
20696$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20697 X"$0" : 'X\(//\)$' \| \
20698 X"$0" : 'X\(/\)$' \| \
20699 . : '\(.\)' 2>/dev/null ||
20700echo X/"$0" |
20701 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20702 /^X\/\(\/\/\)$/{ s//\1/; q; }
20703 /^X\/\(\/\).*/{ s//\1/; q; }
20704 s/.*/./; q'`
20705
20706
20707# PATH needs CR, and LINENO needs CR and PATH.
20708# Avoid depending upon Character Ranges.
20709as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20710as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20711as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20712as_cr_digits='0123456789'
20713as_cr_alnum=$as_cr_Letters$as_cr_digits
20714
20715# The user is always right.
20716if test "${PATH_SEPARATOR+set}" != set; then
20717 echo "#! /bin/sh" >conf$$.sh
20718 echo "exit 0" >>conf$$.sh
20719 chmod +x conf$$.sh
20720 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20721 PATH_SEPARATOR=';'
20722 else
20723 PATH_SEPARATOR=:
20724 fi
20725 rm -f conf$$.sh
20726fi
20727
20728
20729 as_lineno_1=$LINENO
20730 as_lineno_2=$LINENO
20731 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20732 test "x$as_lineno_1" != "x$as_lineno_2" &&
20733 test "x$as_lineno_3" = "x$as_lineno_2" || {
20734 # Find who we are. Look in the path if we contain no path at all
20735 # relative or not.
20736 case $0 in
20737 *[\\/]* ) as_myself=$0 ;;
20738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20739for as_dir in $PATH
20740do
20741 IFS=$as_save_IFS
20742 test -z "$as_dir" && as_dir=.
20743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20744done
20745
20746 ;;
20747 esac
20748 # We did not find ourselves, most probably we were run as `sh COMMAND'
20749 # in which case we are not to be found in the path.
20750 if test "x$as_myself" = x; then
20751 as_myself=$0
20752 fi
20753 if test ! -f "$as_myself"; then
20754 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20755echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20756 { (exit 1); exit 1; }; }
20757 fi
20758 case $CONFIG_SHELL in
20759 '')
20760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20761for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20762do
20763 IFS=$as_save_IFS
20764 test -z "$as_dir" && as_dir=.
20765 for as_base in sh bash ksh sh5; do
20766 case $as_dir in
20767 /*)
20768 if ("$as_dir/$as_base" -c '
20769 as_lineno_1=$LINENO
20770 as_lineno_2=$LINENO
20771 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20772 test "x$as_lineno_1" != "x$as_lineno_2" &&
20773 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20774 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20775 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20776 CONFIG_SHELL=$as_dir/$as_base
20777 export CONFIG_SHELL
20778 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20779 fi;;
20780 esac
20781 done
20782done
20783;;
20784 esac
20785
20786 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20787 # uniformly replaced by the line number. The first 'sed' inserts a
20788 # line-number line before each line; the second 'sed' does the real
20789 # work. The second script uses 'N' to pair each line-number line
20790 # with the numbered line, and appends trailing '-' during
20791 # substitution so that $LINENO is not a special case at line end.
20792 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20793 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20794 sed '=' <$as_myself |
20795 sed '
20796 N
20797 s,$,-,
20798 : loop
20799 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20800 t loop
20801 s,-$,,
20802 s,^['$as_cr_digits']*\n,,
20803 ' >$as_me.lineno &&
20804 chmod +x $as_me.lineno ||
20805 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20806echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20807 { (exit 1); exit 1; }; }
20808
20809 # Don't try to exec as it changes $[0], causing all sort of problems
20810 # (the dirname of $[0] is not the place where we might find the
20811 # original and so on. Autoconf is especially sensible to this).
20812 . ./$as_me.lineno
20813 # Exit status is that of the last command.
20814 exit
252b5132 20815}
6be7c12c 20816
5464f5a1
NN
20817
20818case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20819 *c*,-n*) ECHO_N= ECHO_C='
20820' ECHO_T=' ' ;;
20821 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20822 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20823esac
20824
20825if expr a : '\(a\)' >/dev/null 2>&1; then
20826 as_expr=expr
252b5132 20827else
5464f5a1 20828 as_expr=false
252b5132 20829fi
5464f5a1
NN
20830
20831rm -f conf$$ conf$$.exe conf$$.file
20832echo >conf$$.file
20833if ln -s conf$$.file conf$$ 2>/dev/null; then
20834 # We could just check for DJGPP; but this test a) works b) is more generic
20835 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20836 if test -f conf$$.exe; then
20837 # Don't use ln at all; we don't have any links
20838 as_ln_s='cp -p'
20839 else
20840 as_ln_s='ln -s'
20841 fi
20842elif ln conf$$.file conf$$ 2>/dev/null; then
20843 as_ln_s=ln
20844else
20845 as_ln_s='cp -p'
252b5132 20846fi
5464f5a1 20847rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 20848
5464f5a1
NN
20849if mkdir -p . 2>/dev/null; then
20850 as_mkdir_p=:
20851else
20852 test -d ./-p && rmdir ./-p
20853 as_mkdir_p=false
252b5132 20854fi
b3baf5d0 20855
5464f5a1 20856as_executable_p="test -f"
252b5132 20857
5464f5a1
NN
20858# Sed expression to map a string onto a valid CPP name.
20859as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 20860
5464f5a1
NN
20861# Sed expression to map a string onto a valid variable name.
20862as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 20863
252b5132 20864
5464f5a1
NN
20865# IFS
20866# We need space, tab and new line, in precisely that order.
20867as_nl='
20868'
20869IFS=" $as_nl"
252b5132 20870
5464f5a1
NN
20871# CDPATH.
20872$as_unset CDPATH
20873
20874exec 6>&1
20875
20876# Open the log real soon, to keep \$[0] and so on meaningful, and to
20877# report actual input values of CONFIG_FILES etc. instead of their
20878# values after options handling. Logging --version etc. is OK.
20879exec 5>>config.log
20880{
20881 echo
20882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20883## Running $as_me. ##
20884_ASBOX
20885} >&5
20886cat >&5 <<_CSEOF
20887
20888This file was extended by $as_me, which was
20889generated by GNU Autoconf 2.59. Invocation command line was
20890
20891 CONFIG_FILES = $CONFIG_FILES
20892 CONFIG_HEADERS = $CONFIG_HEADERS
20893 CONFIG_LINKS = $CONFIG_LINKS
20894 CONFIG_COMMANDS = $CONFIG_COMMANDS
20895 $ $0 $@
20896
20897_CSEOF
20898echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20899echo >&5
20900_ACEOF
20901
20902# Files that config.status was made for.
20903if test -n "$ac_config_files"; then
20904 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 20905fi
5464f5a1
NN
20906
20907if test -n "$ac_config_headers"; then
20908 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 20909fi
252b5132 20910
5464f5a1
NN
20911if test -n "$ac_config_links"; then
20912 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 20913fi
252b5132 20914
5464f5a1
NN
20915if test -n "$ac_config_commands"; then
20916 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20917fi
252b5132 20918
5464f5a1
NN
20919cat >>$CONFIG_STATUS <<\_ACEOF
20920
20921ac_cs_usage="\
20922\`$as_me' instantiates files from templates according to the
20923current configuration.
20924
20925Usage: $0 [OPTIONS] [FILE]...
20926
20927 -h, --help print this help, then exit
20928 -V, --version print version number, then exit
20929 -q, --quiet do not print progress messages
20930 -d, --debug don't remove temporary files
20931 --recheck update $as_me by reconfiguring in the same conditions
20932 --file=FILE[:TEMPLATE]
20933 instantiate the configuration file FILE
20934 --header=FILE[:TEMPLATE]
20935 instantiate the configuration header FILE
20936
20937Configuration files:
20938$config_files
20939
20940Configuration headers:
20941$config_headers
20942
20943Configuration commands:
20944$config_commands
20945
20946Report bugs to <bug-autoconf@gnu.org>."
20947_ACEOF
20948
20949cat >>$CONFIG_STATUS <<_ACEOF
20950ac_cs_version="\\
20951config.status
20952configured by $0, generated by GNU Autoconf 2.59,
20953 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20954
20955Copyright (C) 2003 Free Software Foundation, Inc.
20956This config.status script is free software; the Free Software Foundation
20957gives unlimited permission to copy, distribute and modify it."
20958srcdir=$srcdir
20959INSTALL="$INSTALL"
20960_ACEOF
20961
20962cat >>$CONFIG_STATUS <<\_ACEOF
20963# If no file are specified by the user, then we need to provide default
20964# value. By we need to know if files were specified by the user.
20965ac_need_defaults=:
20966while test $# != 0
20967do
20968 case $1 in
20969 --*=*)
20970 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20971 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20972 ac_shift=:
6be7c12c 20973 ;;
5464f5a1
NN
20974 -*)
20975 ac_option=$1
20976 ac_optarg=$2
20977 ac_shift=shift
6be7c12c 20978 ;;
5464f5a1
NN
20979 *) # This is not an option, so the user has probably given explicit
20980 # arguments.
20981 ac_option=$1
20982 ac_need_defaults=false;;
20983 esac
252b5132 20984
5464f5a1
NN
20985 case $ac_option in
20986 # Handling of the options.
20987_ACEOF
20988cat >>$CONFIG_STATUS <<\_ACEOF
20989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20990 ac_cs_recheck=: ;;
20991 --version | --vers* | -V )
20992 echo "$ac_cs_version"; exit 0 ;;
20993 --he | --h)
20994 # Conflict between --help and --header
20995 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20996Try \`$0 --help' for more information." >&5
20997echo "$as_me: error: ambiguous option: $1
20998Try \`$0 --help' for more information." >&2;}
20999 { (exit 1); exit 1; }; };;
21000 --help | --hel | -h )
21001 echo "$ac_cs_usage"; exit 0 ;;
21002 --debug | --d* | -d )
21003 debug=: ;;
21004 --file | --fil | --fi | --f )
21005 $ac_shift
21006 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21007 ac_need_defaults=false;;
21008 --header | --heade | --head | --hea )
21009 $ac_shift
21010 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21011 ac_need_defaults=false;;
21012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21013 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21014 ac_cs_silent=: ;;
6be7c12c 21015
5464f5a1
NN
21016 # This is an error.
21017 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21018Try \`$0 --help' for more information." >&5
21019echo "$as_me: error: unrecognized option: $1
21020Try \`$0 --help' for more information." >&2;}
21021 { (exit 1); exit 1; }; } ;;
252b5132 21022
5464f5a1 21023 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 21024
5464f5a1
NN
21025 esac
21026 shift
21027done
6be7c12c 21028
5464f5a1 21029ac_configure_extra_args=
252b5132 21030
5464f5a1
NN
21031if $ac_cs_silent; then
21032 exec 6>/dev/null
21033 ac_configure_extra_args="$ac_configure_extra_args --silent"
21034fi
6be7c12c 21035
5464f5a1
NN
21036_ACEOF
21037cat >>$CONFIG_STATUS <<_ACEOF
21038if \$ac_cs_recheck; then
21039 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21040 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21041fi
21042
21043_ACEOF
21044
21045cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 21046#
5464f5a1 21047# INIT-COMMANDS section.
6be7c12c 21048#
b3baf5d0 21049
f5385ebf 21050AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
21051
21052
21053# The HP-UX ksh and POSIX shell print the target directory to stdout
21054# if CDPATH is set.
21055(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21056
21057sed_quote_subst='$sed_quote_subst'
21058double_quote_subst='$double_quote_subst'
21059delay_variable_subst='$delay_variable_subst'
21060enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21061macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21062macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21063enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21064pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21065enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21066host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21067host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21068host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21069build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21070build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21071build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21072SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21073Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21074GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21075EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21076FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21077LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21078NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21079LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21080max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21081ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21082exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21083lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21084lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21085lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21086reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21087reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21088deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21089file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21090AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21091AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21092STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21093RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21094old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21095old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21096old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21097CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21098CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21099compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21100GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21101lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21102lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21103lt_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"`'
21104objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21105SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21106ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21107MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21108lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21109lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21110lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21111lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21112lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21113need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21114libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21115shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21116extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21117archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21118enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21119export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21120whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21121compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21122old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21123old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21124archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21125archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21126module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21127module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21128with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21129allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21130no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21131hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21132hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21133hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21134hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21135hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21136hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21137hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21138hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21139inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21140link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21141fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21142always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21143export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21144exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21145include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21146prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21147file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21148variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21149need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21150need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21151version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21152runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21153shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21154shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21155libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21156library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21157soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21158postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21159postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21160finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21161finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21162hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21163sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21164sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21165hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21166enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21167enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21168enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21169old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21170striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21171
21172LTCC='$LTCC'
21173LTCFLAGS='$LTCFLAGS'
21174compiler='$compiler_DEFAULT'
21175
21176# Quote evaled strings.
21177for var in SED \
21178GREP \
21179EGREP \
21180FGREP \
21181LD \
21182NM \
21183LN_S \
21184lt_SP2NL \
21185lt_NL2SP \
21186reload_flag \
21187deplibs_check_method \
21188file_magic_cmd \
21189AR \
21190AR_FLAGS \
21191STRIP \
21192RANLIB \
21193CC \
21194CFLAGS \
21195compiler \
21196lt_cv_sys_global_symbol_pipe \
21197lt_cv_sys_global_symbol_to_cdecl \
21198lt_cv_sys_global_symbol_to_c_name_address \
21199SHELL \
21200ECHO \
21201lt_prog_compiler_no_builtin_flag \
21202lt_prog_compiler_wl \
21203lt_prog_compiler_pic \
21204lt_prog_compiler_static \
21205lt_cv_prog_compiler_c_o \
21206need_locks \
21207shrext_cmds \
21208export_dynamic_flag_spec \
21209whole_archive_flag_spec \
21210compiler_needs_object \
21211with_gnu_ld \
21212allow_undefined_flag \
21213no_undefined_flag \
21214hardcode_libdir_flag_spec \
21215hardcode_libdir_flag_spec_ld \
21216hardcode_libdir_separator \
21217fix_srcfile_path \
21218exclude_expsyms \
21219include_expsyms \
21220file_list_spec \
21221variables_saved_for_relink \
21222libname_spec \
21223library_names_spec \
21224soname_spec \
21225finish_eval \
21226old_striplib \
21227striplib; do
21228 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21229 *[\\\\\\\`\\"\\\$]*)
21230 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21231 ;;
21232 *)
21233 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21234 ;;
21235 esac
21236done
21237
21238# Double-quote double-evaled strings.
21239for var in reload_cmds \
21240old_postinstall_cmds \
21241old_postuninstall_cmds \
21242old_archive_cmds \
21243extract_expsyms_cmds \
21244old_archive_from_new_cmds \
21245old_archive_from_expsyms_cmds \
21246archive_cmds \
21247archive_expsym_cmds \
21248module_cmds \
21249module_expsym_cmds \
21250export_symbols_cmds \
21251prelink_cmds \
21252postinstall_cmds \
21253postuninstall_cmds \
21254finish_cmds \
21255sys_lib_search_path_spec \
21256sys_lib_dlsearch_path_spec; do
21257 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21258 *[\\\\\\\`\\"\\\$]*)
21259 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21260 ;;
21261 *)
21262 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21263 ;;
21264 esac
21265done
21266
21267# Fix-up fallback echo if it was mangled by the above quoting rules.
21268case \$lt_ECHO in
21269*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21270 ;;
21271esac
21272
21273ac_aux_dir='$ac_aux_dir'
21274xsi_shell='$xsi_shell'
21275lt_shell_append='$lt_shell_append'
21276
21277# See if we are running on zsh, and set the options which allow our
21278# commands through without removal of \ escapes INIT.
21279if test -n "\${ZSH_VERSION+set}" ; then
21280 setopt NO_GLOB_SUBST
21281fi
21282
21283
21284 PACKAGE='$PACKAGE'
21285 VERSION='$VERSION'
21286 TIMESTAMP='$TIMESTAMP'
21287 RM='$RM'
21288 ofile='$ofile'
21289
21290
21291
20e95c23
DJ
21292# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21293 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21294 # from automake.
21295 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21296 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21297 LINGUAS="${LINGUAS-%UNSET%}"
21298
5464f5a1 21299
d5efd9fc
AM
21300GCC="$GCC"
21301CC="$CC"
21302acx_cv_header_stdint="$acx_cv_header_stdint"
21303acx_cv_type_int8_t="$acx_cv_type_int8_t"
21304acx_cv_type_int16_t="$acx_cv_type_int16_t"
21305acx_cv_type_int32_t="$acx_cv_type_int32_t"
21306acx_cv_type_int64_t="$acx_cv_type_int64_t"
21307acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21308ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21309ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21310ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21311ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21312ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21313ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21314ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21315ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21316
21317
5464f5a1
NN
21318
21319_ACEOF
21320
21321
21322
21323cat >>$CONFIG_STATUS <<\_ACEOF
21324for ac_config_target in $ac_config_targets
252b5132 21325do
5464f5a1
NN
21326 case "$ac_config_target" in
21327 # Handling of arguments.
21328 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21329 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21330 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21331 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 21332 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 21333 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 21334 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 21335 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
21336 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21337 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21338 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21339echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21340 { (exit 1); exit 1; }; };;
252b5132
RH
21341 esac
21342done
21343
5464f5a1
NN
21344# If the user did not use the arguments to specify the items to instantiate,
21345# then the envvar interface is used. Set only those that are not.
21346# We use the long form for the default assignment because of an extremely
21347# bizarre bug on SunOS 4.1.3.
21348if $ac_need_defaults; then
21349 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21350 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21351 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21352fi
21353
21354# Have a temporary directory for convenience. Make it in the build tree
21355# simply because there is no reason to put it here, and in addition,
21356# creating and moving files from /tmp can sometimes cause problems.
21357# Create a temporary directory, and hook for its removal unless debugging.
21358$debug ||
21359{
21360 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21361 trap '{ (exit 1); exit 1; }' 1 2 13 15
21362}
b3baf5d0 21363
5464f5a1 21364# Create a (secure) tmp directory for tmp files.
b3baf5d0 21365
5464f5a1
NN
21366{
21367 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21368 test -n "$tmp" && test -d "$tmp"
21369} ||
21370{
21371 tmp=./confstat$$-$RANDOM
21372 (umask 077 && mkdir $tmp)
21373} ||
21374{
21375 echo "$me: cannot create a temporary directory in ." >&2
21376 { (exit 1); exit 1; }
21377}
21378
21379_ACEOF
21380
21381cat >>$CONFIG_STATUS <<_ACEOF
21382
21383#
21384# CONFIG_FILES section.
21385#
b3baf5d0 21386
5464f5a1
NN
21387# No need to generate the scripts if there are no CONFIG_FILES.
21388# This happens for instance when ./config.status config.h
21389if test -n "\$CONFIG_FILES"; then
21390 # Protect against being on the right side of a sed subst in config.status.
21391 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21392 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21393s,@SHELL@,$SHELL,;t t
21394s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21395s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21396s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21397s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21398s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21399s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21400s,@exec_prefix@,$exec_prefix,;t t
21401s,@prefix@,$prefix,;t t
21402s,@program_transform_name@,$program_transform_name,;t t
21403s,@bindir@,$bindir,;t t
21404s,@sbindir@,$sbindir,;t t
21405s,@libexecdir@,$libexecdir,;t t
21406s,@datadir@,$datadir,;t t
21407s,@sysconfdir@,$sysconfdir,;t t
21408s,@sharedstatedir@,$sharedstatedir,;t t
21409s,@localstatedir@,$localstatedir,;t t
21410s,@libdir@,$libdir,;t t
21411s,@includedir@,$includedir,;t t
21412s,@oldincludedir@,$oldincludedir,;t t
21413s,@infodir@,$infodir,;t t
21414s,@mandir@,$mandir,;t t
21415s,@build_alias@,$build_alias,;t t
21416s,@host_alias@,$host_alias,;t t
21417s,@target_alias@,$target_alias,;t t
21418s,@DEFS@,$DEFS,;t t
21419s,@ECHO_C@,$ECHO_C,;t t
21420s,@ECHO_N@,$ECHO_N,;t t
21421s,@ECHO_T@,$ECHO_T,;t t
21422s,@LIBS@,$LIBS,;t t
21423s,@build@,$build,;t t
21424s,@build_cpu@,$build_cpu,;t t
21425s,@build_vendor@,$build_vendor,;t t
21426s,@build_os@,$build_os,;t t
21427s,@host@,$host,;t t
21428s,@host_cpu@,$host_cpu,;t t
21429s,@host_vendor@,$host_vendor,;t t
21430s,@host_os@,$host_os,;t t
21431s,@target@,$target,;t t
21432s,@target_cpu@,$target_cpu,;t t
21433s,@target_vendor@,$target_vendor,;t t
21434s,@target_os@,$target_os,;t t
21435s,@CC@,$CC,;t t
21436s,@CFLAGS@,$CFLAGS,;t t
21437s,@LDFLAGS@,$LDFLAGS,;t t
21438s,@CPPFLAGS@,$CPPFLAGS,;t t
21439s,@ac_ct_CC@,$ac_ct_CC,;t t
21440s,@EXEEXT@,$EXEEXT,;t t
21441s,@OBJEXT@,$OBJEXT,;t t
21442s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21443s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21444s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 21445s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
21446s,@PACKAGE@,$PACKAGE,;t t
21447s,@VERSION@,$VERSION,;t t
21448s,@ACLOCAL@,$ACLOCAL,;t t
21449s,@AUTOCONF@,$AUTOCONF,;t t
21450s,@AUTOMAKE@,$AUTOMAKE,;t t
21451s,@AUTOHEADER@,$AUTOHEADER,;t t
21452s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
21453s,@install_sh@,$install_sh,;t t
21454s,@STRIP@,$STRIP,;t t
21455s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21456s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21457s,@mkdir_p@,$mkdir_p,;t t
21458s,@AWK@,$AWK,;t t
5464f5a1 21459s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
21460s,@am__leading_dot@,$am__leading_dot,;t t
21461s,@AMTAR@,$AMTAR,;t t
21462s,@am__tar@,$am__tar,;t t
21463s,@am__untar@,$am__untar,;t t
21464s,@DEPDIR@,$DEPDIR,;t t
21465s,@am__include@,$am__include,;t t
21466s,@am__quote@,$am__quote,;t t
21467s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21468s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21469s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21470s,@CCDEPMODE@,$CCDEPMODE,;t t
21471s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21472s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
21473s,@AR@,$AR,;t t
21474s,@ac_ct_AR@,$ac_ct_AR,;t t
21475s,@RANLIB@,$RANLIB,;t t
21476s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5464f5a1 21477s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb
SE
21478s,@SED@,$SED,;t t
21479s,@EGREP@,$EGREP,;t t
21480s,@FGREP@,$FGREP,;t t
21481s,@GREP@,$GREP,;t t
21482s,@LD@,$LD,;t t
21483s,@DUMPBIN@,$DUMPBIN,;t t
21484s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21485s,@NM@,$NM,;t t
21486s,@LN_S@,$LN_S,;t t
21487s,@lt_ECHO@,$lt_ECHO,;t t
21488s,@CPP@,$CPP,;t t
0d4a1476 21489s,@DEBUGDIR@,$DEBUGDIR,;t t
92f01d61 21490s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
21491s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21492s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 21493s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 21494s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
21495s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21496s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21497s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
21498s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21499s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
21500s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21501s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
21502s,@host_noncanonical@,$host_noncanonical,;t t
21503s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
21504s,@bfdlibdir@,$bfdlibdir,;t t
21505s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 21506s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
21507s,@LIBINTL@,$LIBINTL,;t t
21508s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21509s,@INCINTL@,$INCINTL,;t t
5464f5a1 21510s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
21511s,@GMSGFMT@,$GMSGFMT,;t t
21512s,@POSUB@,$POSUB,;t t
5464f5a1 21513s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 21514s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 21515s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
21516s,@GENCAT@,$GENCAT,;t t
21517s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 21518s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
21519s,@MSGFMT@,$MSGFMT,;t t
21520s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
21521s,@HDEFINES@,$HDEFINES,;t t
21522s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
d2df793a 21523s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
5464f5a1
NN
21524s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21525s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21526s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
d2df793a 21527s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
5464f5a1
NN
21528s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21529s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21530s,@COREFILE@,$COREFILE,;t t
21531s,@COREFLAG@,$COREFLAG,;t t
21532s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21533s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21534s,@TDEFINES@,$TDEFINES,;t t
21535s,@wordsize@,$wordsize,;t t
21e40a48 21536s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
21537s,@all_backends@,$all_backends,;t t
21538s,@bfd_backends@,$bfd_backends,;t t
21539s,@bfd_machines@,$bfd_machines,;t t
21540s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21541s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21542s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21543s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
21544s,@datarootdir@,$datarootdir,;t t
21545s,@docdir@,$docdir,;t t
21546s,@htmldir@,$htmldir,;t t
5464f5a1
NN
21547s,@LIBOBJS@,$LIBOBJS,;t t
21548s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 21549CEOF
252b5132 21550
5464f5a1
NN
21551_ACEOF
21552
21553 cat >>$CONFIG_STATUS <<\_ACEOF
21554 # Split the substitutions into bite-sized pieces for seds with
21555 # small command number limits, like on Digital OSF/1 and HP-UX.
21556 ac_max_sed_lines=48
21557 ac_sed_frag=1 # Number of current file.
21558 ac_beg=1 # First line for current file.
21559 ac_end=$ac_max_sed_lines # Line after last line for current file.
21560 ac_more_lines=:
21561 ac_sed_cmds=
21562 while $ac_more_lines; do
21563 if test $ac_beg -gt 1; then
21564 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 21565 else
5464f5a1
NN
21566 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21567 fi
21568 if test ! -s $tmp/subs.frag; then
21569 ac_more_lines=false
21570 else
21571 # The purpose of the label and of the branching condition is to
21572 # speed up the sed processing (if there are no `@' at all, there
21573 # is no need to browse any of the substitutions).
21574 # These are the two extra sed commands mentioned above.
21575 (echo ':t
21576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21577 if test -z "$ac_sed_cmds"; then
21578 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21579 else
21580 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21581 fi
21582 ac_sed_frag=`expr $ac_sed_frag + 1`
21583 ac_beg=$ac_end
21584 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 21585 fi
5464f5a1
NN
21586 done
21587 if test -z "$ac_sed_cmds"; then
21588 ac_sed_cmds=cat
252b5132 21589 fi
5464f5a1 21590fi # test -n "$CONFIG_FILES"
6be7c12c 21591
5464f5a1
NN
21592_ACEOF
21593cat >>$CONFIG_STATUS <<\_ACEOF
21594for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 21595 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
21596 case $ac_file in
21597 - | *:- | *:-:* ) # input from stdin
21598 cat >$tmp/stdin
21599 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21600 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21601 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21603 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
21604 esac
21605
5464f5a1
NN
21606 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21607 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21608$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21609 X"$ac_file" : 'X\(//\)[^/]' \| \
21610 X"$ac_file" : 'X\(//\)$' \| \
21611 X"$ac_file" : 'X\(/\)' \| \
21612 . : '\(.\)' 2>/dev/null ||
21613echo X"$ac_file" |
21614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21616 /^X\(\/\/\)$/{ s//\1/; q; }
21617 /^X\(\/\).*/{ s//\1/; q; }
21618 s/.*/./; q'`
21619 { if $as_mkdir_p; then
21620 mkdir -p "$ac_dir"
252b5132 21621 else
5464f5a1
NN
21622 as_dir="$ac_dir"
21623 as_dirs=
21624 while test ! -d "$as_dir"; do
21625 as_dirs="$as_dir $as_dirs"
21626 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21627$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21628 X"$as_dir" : 'X\(//\)[^/]' \| \
21629 X"$as_dir" : 'X\(//\)$' \| \
21630 X"$as_dir" : 'X\(/\)' \| \
21631 . : '\(.\)' 2>/dev/null ||
21632echo X"$as_dir" |
21633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21635 /^X\(\/\/\)$/{ s//\1/; q; }
21636 /^X\(\/\).*/{ s//\1/; q; }
21637 s/.*/./; q'`
21638 done
21639 test ! -n "$as_dirs" || mkdir $as_dirs
21640 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21641echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21642 { (exit 1); exit 1; }; }; }
21643
21644 ac_builddir=.
21645
21646if test "$ac_dir" != .; then
21647 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21648 # A "../" for each directory in $ac_dir_suffix.
21649 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21650else
21651 ac_dir_suffix= ac_top_builddir=
21652fi
252b5132 21653
5464f5a1
NN
21654case $srcdir in
21655 .) # No --srcdir option. We are building in place.
21656 ac_srcdir=.
21657 if test -z "$ac_top_builddir"; then
21658 ac_top_srcdir=.
21659 else
21660 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21661 fi ;;
21662 [\\/]* | ?:[\\/]* ) # Absolute path.
21663 ac_srcdir=$srcdir$ac_dir_suffix;
21664 ac_top_srcdir=$srcdir ;;
252b5132 21665 *) # Relative path.
5464f5a1
NN
21666 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21667 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21668esac
252b5132 21669
5464f5a1
NN
21670# Do not use `cd foo && pwd` to compute absolute paths, because
21671# the directories may not exist.
21672case `pwd` in
21673.) ac_abs_builddir="$ac_dir";;
21674*)
21675 case "$ac_dir" in
21676 .) ac_abs_builddir=`pwd`;;
21677 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21678 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21679 esac;;
21680esac
21681case $ac_abs_builddir in
21682.) ac_abs_top_builddir=${ac_top_builddir}.;;
21683*)
21684 case ${ac_top_builddir}. in
21685 .) ac_abs_top_builddir=$ac_abs_builddir;;
21686 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21687 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21688 esac;;
21689esac
21690case $ac_abs_builddir in
21691.) ac_abs_srcdir=$ac_srcdir;;
21692*)
21693 case $ac_srcdir in
21694 .) ac_abs_srcdir=$ac_abs_builddir;;
21695 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21696 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21697 esac;;
21698esac
21699case $ac_abs_builddir in
21700.) ac_abs_top_srcdir=$ac_top_srcdir;;
21701*)
21702 case $ac_top_srcdir in
21703 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21704 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21705 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21706 esac;;
21707esac
252b5132 21708
5464f5a1
NN
21709
21710 case $INSTALL in
21711 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21712 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 21713 esac
252b5132 21714
49c96104
SE
21715 if test x"$ac_file" != x-; then
21716 { echo "$as_me:$LINENO: creating $ac_file" >&5
21717echo "$as_me: creating $ac_file" >&6;}
21718 rm -f "$ac_file"
21719 fi
5464f5a1
NN
21720 # Let's still pretend it is `configure' which instantiates (i.e., don't
21721 # use $as_me), people would be surprised to read:
21722 # /* config.h. Generated by config.status. */
21723 if test x"$ac_file" = x-; then
21724 configure_input=
21725 else
21726 configure_input="$ac_file. "
21727 fi
21728 configure_input=$configure_input"Generated from `echo $ac_file_in |
21729 sed 's,.*/,,'` by configure."
21730
21731 # First look for the input files in the build tree, otherwise in the
21732 # src tree.
21733 ac_file_inputs=`IFS=:
21734 for f in $ac_file_in; do
21735 case $f in
21736 -) echo $tmp/stdin ;;
21737 [\\/$]*)
21738 # Absolute (can't be DOS-style, as IFS=:)
21739 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21740echo "$as_me: error: cannot find input file: $f" >&2;}
21741 { (exit 1); exit 1; }; }
21742 echo "$f";;
21743 *) # Relative
21744 if test -f "$f"; then
21745 # Build tree
21746 echo "$f"
21747 elif test -f "$srcdir/$f"; then
21748 # Source tree
21749 echo "$srcdir/$f"
21750 else
21751 # /dev/null tree
21752 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21753echo "$as_me: error: cannot find input file: $f" >&2;}
21754 { (exit 1); exit 1; }; }
21755 fi;;
21756 esac
21757 done` || { (exit 1); exit 1; }
5464f5a1
NN
21758_ACEOF
21759cat >>$CONFIG_STATUS <<_ACEOF
21760 sed "$ac_vpsub
21761$extrasub
21762_ACEOF
21763cat >>$CONFIG_STATUS <<\_ACEOF
21764:t
21765/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21766s,@configure_input@,$configure_input,;t t
21767s,@srcdir@,$ac_srcdir,;t t
21768s,@abs_srcdir@,$ac_abs_srcdir,;t t
21769s,@top_srcdir@,$ac_top_srcdir,;t t
21770s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21771s,@builddir@,$ac_builddir,;t t
21772s,@abs_builddir@,$ac_abs_builddir,;t t
21773s,@top_builddir@,$ac_top_builddir,;t t
21774s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21775s,@INSTALL@,$ac_INSTALL,;t t
21776" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21777 rm -f $tmp/stdin
21778 if test x"$ac_file" != x-; then
21779 mv $tmp/out $ac_file
21780 else
21781 cat $tmp/out
21782 rm -f $tmp/out
21783 fi
21784
21785done
21786_ACEOF
21787cat >>$CONFIG_STATUS <<\_ACEOF
21788
21789#
21790# CONFIG_HEADER section.
21791#
252b5132
RH
21792
21793# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21794# NAME is the cpp macro being defined and VALUE is the value it is being given.
21795#
21796# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
21797ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21798ac_dB='[ ].*$,\1#\2'
21799ac_dC=' '
21800ac_dD=',;t'
21801# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21802ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21803ac_uB='$,\1#\2define\3'
252b5132 21804ac_uC=' '
5464f5a1
NN
21805ac_uD=',;t'
21806
21807for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 21808 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
21809 case $ac_file in
21810 - | *:- | *:-:* ) # input from stdin
21811 cat >$tmp/stdin
21812 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21814 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21816 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
21817 esac
21818
5464f5a1
NN
21819 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21820echo "$as_me: creating $ac_file" >&6;}
21821
21822 # First look for the input files in the build tree, otherwise in the
21823 # src tree.
21824 ac_file_inputs=`IFS=:
21825 for f in $ac_file_in; do
21826 case $f in
21827 -) echo $tmp/stdin ;;
21828 [\\/$]*)
21829 # Absolute (can't be DOS-style, as IFS=:)
21830 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21831echo "$as_me: error: cannot find input file: $f" >&2;}
21832 { (exit 1); exit 1; }; }
21833 # Do quote $f, to prevent DOS paths from being IFS'd.
21834 echo "$f";;
21835 *) # Relative
21836 if test -f "$f"; then
21837 # Build tree
21838 echo "$f"
21839 elif test -f "$srcdir/$f"; then
21840 # Source tree
21841 echo "$srcdir/$f"
21842 else
21843 # /dev/null tree
21844 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21845echo "$as_me: error: cannot find input file: $f" >&2;}
21846 { (exit 1); exit 1; }; }
21847 fi;;
21848 esac
21849 done` || { (exit 1); exit 1; }
21850 # Remove the trailing spaces.
21851 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21852
21853_ACEOF
21854
21855# Transform confdefs.h into two sed scripts, `conftest.defines' and
21856# `conftest.undefs', that substitutes the proper values into
21857# config.h.in to produce config.h. The first handles `#define'
21858# templates, and the second `#undef' templates.
21859# And first: Protect against being on the right side of a sed subst in
21860# config.status. Protect against being in an unquoted here document
21861# in config.status.
21862rm -f conftest.defines conftest.undefs
21863# Using a here document instead of a string reduces the quoting nightmare.
21864# Putting comments in sed scripts is not portable.
21865#
21866# `end' is used to avoid that the second main sed command (meant for
21867# 0-ary CPP macros) applies to n-ary macro definitions.
21868# See the Autoconf documentation for `clear'.
21869cat >confdef2sed.sed <<\_ACEOF
21870s/[\\&,]/\\&/g
21871s,[\\$`],\\&,g
21872t clear
21873: clear
21874s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21875t end
21876s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21877: end
21878_ACEOF
21879# If some macros were called several times there might be several times
21880# the same #defines, which is useless. Nevertheless, we may not want to
21881# sort them, since we want the *last* AC-DEFINE to be honored.
21882uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21883sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21884rm -f confdef2sed.sed
252b5132
RH
21885
21886# This sed command replaces #undef with comments. This is necessary, for
21887# example, in the case of _POSIX_SOURCE, which is predefined and required
21888# on some systems where configure will not decide to define it.
5464f5a1
NN
21889cat >>conftest.undefs <<\_ACEOF
21890s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21891_ACEOF
21892
21893# Break up conftest.defines because some shells have a limit on the size
21894# of here documents, and old seds have small limits too (100 cmds).
21895echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21896echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21897echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21898echo ' :' >>$CONFIG_STATUS
21899rm -f conftest.tail
21900while grep . conftest.defines >/dev/null
21901do
21902 # Write a limited-size here document to $tmp/defines.sed.
21903 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21904 # Speed up: don't consider the non `#define' lines.
21905 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21906 # Work around the forget-to-reset-the-flag bug.
21907 echo 't clr' >>$CONFIG_STATUS
21908 echo ': clr' >>$CONFIG_STATUS
21909 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21910 echo 'CEOF
21911 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21912 rm -f $tmp/in
21913 mv $tmp/out $tmp/in
21914' >>$CONFIG_STATUS
21915 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21916 rm -f conftest.defines
21917 mv conftest.tail conftest.defines
21918done
21919rm -f conftest.defines
21920echo ' fi # grep' >>$CONFIG_STATUS
21921echo >>$CONFIG_STATUS
252b5132 21922
5464f5a1
NN
21923# Break up conftest.undefs because some shells have a limit on the size
21924# of here documents, and old seds have small limits too (100 cmds).
21925echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 21926rm -f conftest.tail
5464f5a1 21927while grep . conftest.undefs >/dev/null
252b5132 21928do
5464f5a1
NN
21929 # Write a limited-size here document to $tmp/undefs.sed.
21930 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21931 # Speed up: don't consider the non `#undef'
21932 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21933 # Work around the forget-to-reset-the-flag bug.
21934 echo 't clr' >>$CONFIG_STATUS
21935 echo ': clr' >>$CONFIG_STATUS
21936 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 21937 echo 'CEOF
5464f5a1
NN
21938 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21939 rm -f $tmp/in
21940 mv $tmp/out $tmp/in
21941' >>$CONFIG_STATUS
21942 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21943 rm -f conftest.undefs
21944 mv conftest.tail conftest.undefs
252b5132 21945done
5464f5a1
NN
21946rm -f conftest.undefs
21947
21948cat >>$CONFIG_STATUS <<\_ACEOF
21949 # Let's still pretend it is `configure' which instantiates (i.e., don't
21950 # use $as_me), people would be surprised to read:
21951 # /* config.h. Generated by config.status. */
21952 if test x"$ac_file" = x-; then
21953 echo "/* Generated by configure. */" >$tmp/config.h
21954 else
21955 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21956 fi
21957 cat $tmp/in >>$tmp/config.h
21958 rm -f $tmp/in
21959 if test x"$ac_file" != x-; then
21960 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21961 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21962echo "$as_me: $ac_file is unchanged" >&6;}
21963 else
21964 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21965$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21966 X"$ac_file" : 'X\(//\)[^/]' \| \
21967 X"$ac_file" : 'X\(//\)$' \| \
21968 X"$ac_file" : 'X\(/\)' \| \
21969 . : '\(.\)' 2>/dev/null ||
21970echo X"$ac_file" |
21971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21973 /^X\(\/\/\)$/{ s//\1/; q; }
21974 /^X\(\/\).*/{ s//\1/; q; }
21975 s/.*/./; q'`
21976 { if $as_mkdir_p; then
21977 mkdir -p "$ac_dir"
252b5132 21978 else
5464f5a1
NN
21979 as_dir="$ac_dir"
21980 as_dirs=
21981 while test ! -d "$as_dir"; do
21982 as_dirs="$as_dir $as_dirs"
21983 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21984$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21985 X"$as_dir" : 'X\(//\)[^/]' \| \
21986 X"$as_dir" : 'X\(//\)$' \| \
21987 X"$as_dir" : 'X\(/\)' \| \
21988 . : '\(.\)' 2>/dev/null ||
21989echo X"$as_dir" |
21990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21992 /^X\(\/\/\)$/{ s//\1/; q; }
21993 /^X\(\/\).*/{ s//\1/; q; }
21994 s/.*/./; q'`
21995 done
21996 test ! -n "$as_dirs" || mkdir $as_dirs
21997 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21998echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21999 { (exit 1); exit 1; }; }; }
22000
22001 rm -f $ac_file
22002 mv $tmp/config.h $ac_file
252b5132 22003 fi
5464f5a1
NN
22004 else
22005 cat $tmp/config.h
22006 rm -f $tmp/config.h
252b5132 22007 fi
f5385ebf
AM
22008# Compute $ac_file's index in $config_headers.
22009_am_stamp_count=1
22010for _am_header in $config_headers :; do
22011 case $_am_header in
22012 $ac_file | $ac_file:* )
22013 break ;;
22014 * )
22015 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22016 esac
22017done
22018echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22019$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22020 X$ac_file : 'X\(//\)[^/]' \| \
22021 X$ac_file : 'X\(//\)$' \| \
22022 X$ac_file : 'X\(/\)' \| \
22023 . : '\(.\)' 2>/dev/null ||
22024echo X$ac_file |
22025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22027 /^X\(\/\/\)$/{ s//\1/; q; }
22028 /^X\(\/\).*/{ s//\1/; q; }
22029 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
22030done
22031_ACEOF
22032cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 22033
5464f5a1
NN
22034#
22035# CONFIG_COMMANDS section.
22036#
22037for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22038 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22039 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22040 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22041$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22042 X"$ac_dest" : 'X\(//\)[^/]' \| \
22043 X"$ac_dest" : 'X\(//\)$' \| \
22044 X"$ac_dest" : 'X\(/\)' \| \
22045 . : '\(.\)' 2>/dev/null ||
22046echo X"$ac_dest" |
22047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22049 /^X\(\/\/\)$/{ s//\1/; q; }
22050 /^X\(\/\).*/{ s//\1/; q; }
22051 s/.*/./; q'`
22052 { if $as_mkdir_p; then
22053 mkdir -p "$ac_dir"
22054 else
22055 as_dir="$ac_dir"
22056 as_dirs=
22057 while test ! -d "$as_dir"; do
22058 as_dirs="$as_dir $as_dirs"
22059 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22060$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22061 X"$as_dir" : 'X\(//\)[^/]' \| \
22062 X"$as_dir" : 'X\(//\)$' \| \
22063 X"$as_dir" : 'X\(/\)' \| \
22064 . : '\(.\)' 2>/dev/null ||
22065echo X"$as_dir" |
22066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22068 /^X\(\/\/\)$/{ s//\1/; q; }
22069 /^X\(\/\).*/{ s//\1/; q; }
22070 s/.*/./; q'`
22071 done
22072 test ! -n "$as_dirs" || mkdir $as_dirs
22073 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22074echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22075 { (exit 1); exit 1; }; }; }
b3baf5d0 22076
5464f5a1 22077 ac_builddir=.
b3baf5d0 22078
5464f5a1
NN
22079if test "$ac_dir" != .; then
22080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22081 # A "../" for each directory in $ac_dir_suffix.
22082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22083else
22084 ac_dir_suffix= ac_top_builddir=
22085fi
22086
22087case $srcdir in
22088 .) # No --srcdir option. We are building in place.
22089 ac_srcdir=.
22090 if test -z "$ac_top_builddir"; then
22091 ac_top_srcdir=.
22092 else
22093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22094 fi ;;
22095 [\\/]* | ?:[\\/]* ) # Absolute path.
22096 ac_srcdir=$srcdir$ac_dir_suffix;
22097 ac_top_srcdir=$srcdir ;;
22098 *) # Relative path.
22099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22101esac
22102
22103# Do not use `cd foo && pwd` to compute absolute paths, because
22104# the directories may not exist.
22105case `pwd` in
22106.) ac_abs_builddir="$ac_dir";;
22107*)
22108 case "$ac_dir" in
22109 .) ac_abs_builddir=`pwd`;;
22110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22112 esac;;
22113esac
22114case $ac_abs_builddir in
22115.) ac_abs_top_builddir=${ac_top_builddir}.;;
22116*)
22117 case ${ac_top_builddir}. in
22118 .) ac_abs_top_builddir=$ac_abs_builddir;;
22119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22121 esac;;
22122esac
22123case $ac_abs_builddir in
22124.) ac_abs_srcdir=$ac_srcdir;;
22125*)
22126 case $ac_srcdir in
22127 .) ac_abs_srcdir=$ac_abs_builddir;;
22128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22130 esac;;
22131esac
22132case $ac_abs_builddir in
22133.) ac_abs_top_srcdir=$ac_top_srcdir;;
22134*)
22135 case $ac_top_srcdir in
22136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22139 esac;;
22140esac
22141
22142
22143 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22144echo "$as_me: executing $ac_dest commands" >&6;}
22145 case $ac_dest in
f5385ebf
AM
22146 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22147 # Strip MF so we end up with the name of the file.
22148 mf=`echo "$mf" | sed -e 's/:.*$//'`
22149 # Check whether this is an Automake generated Makefile or not.
22150 # We used to match only the files named `Makefile.in', but
22151 # some people rename them; so instead we look at the file content.
22152 # Grep'ing the first line is not enough: some people post-process
22153 # each Makefile.in and add a new line on top of each file to say so.
22154 # So let's grep whole file.
22155 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22156 dirpart=`(dirname "$mf") 2>/dev/null ||
22157$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22158 X"$mf" : 'X\(//\)[^/]' \| \
22159 X"$mf" : 'X\(//\)$' \| \
22160 X"$mf" : 'X\(/\)' \| \
22161 . : '\(.\)' 2>/dev/null ||
22162echo X"$mf" |
22163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22165 /^X\(\/\/\)$/{ s//\1/; q; }
22166 /^X\(\/\).*/{ s//\1/; q; }
22167 s/.*/./; q'`
22168 else
22169 continue
22170 fi
22171 # Extract the definition of DEPDIR, am__include, and am__quote
22172 # from the Makefile without running `make'.
22173 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22174 test -z "$DEPDIR" && continue
22175 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22176 test -z "am__include" && continue
22177 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22178 # When using ansi2knr, U may be empty or an underscore; expand it
22179 U=`sed -n 's/^U = //p' < "$mf"`
22180 # Find all dependency output files, they are included files with
22181 # $(DEPDIR) in their names. We invoke sed twice because it is the
22182 # simplest approach to changing $(DEPDIR) to its actual value in the
22183 # expansion.
22184 for file in `sed -n "
22185 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22186 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22187 # Make sure the directory exists.
22188 test -f "$dirpart/$file" && continue
22189 fdir=`(dirname "$file") 2>/dev/null ||
22190$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22191 X"$file" : 'X\(//\)[^/]' \| \
22192 X"$file" : 'X\(//\)$' \| \
22193 X"$file" : 'X\(/\)' \| \
22194 . : '\(.\)' 2>/dev/null ||
22195echo X"$file" |
22196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22198 /^X\(\/\/\)$/{ s//\1/; q; }
22199 /^X\(\/\).*/{ s//\1/; q; }
22200 s/.*/./; q'`
22201 { if $as_mkdir_p; then
22202 mkdir -p $dirpart/$fdir
22203 else
22204 as_dir=$dirpart/$fdir
22205 as_dirs=
22206 while test ! -d "$as_dir"; do
22207 as_dirs="$as_dir $as_dirs"
22208 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22209$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22210 X"$as_dir" : 'X\(//\)[^/]' \| \
22211 X"$as_dir" : 'X\(//\)$' \| \
22212 X"$as_dir" : 'X\(/\)' \| \
22213 . : '\(.\)' 2>/dev/null ||
22214echo X"$as_dir" |
22215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22217 /^X\(\/\/\)$/{ s//\1/; q; }
22218 /^X\(\/\).*/{ s//\1/; q; }
22219 s/.*/./; q'`
22220 done
22221 test ! -n "$as_dirs" || mkdir $as_dirs
22222 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22223echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22224 { (exit 1); exit 1; }; }; }
22225
22226 # echo "creating $dirpart/$file"
22227 echo '# dummy' > "$dirpart/$file"
22228 done
22229done
d7040cdb
SE
22230 ;;
22231 libtool )
22232
22233 # See if we are running on zsh, and set the options which allow our
22234 # commands through without removal of \ escapes.
22235 if test -n "${ZSH_VERSION+set}" ; then
22236 setopt NO_GLOB_SUBST
22237 fi
22238
22239 cfgfile="${ofile}T"
22240 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22241 $RM "$cfgfile"
22242
22243 cat <<_LT_EOF >> "$cfgfile"
22244#! $SHELL
22245
22246# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22247# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22248# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22249# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22250#
22251# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22252# 2006, 2007 Free Software Foundation, Inc.
22253#
22254# This file is part of GNU Libtool:
22255# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22256#
22257# This program is free software; you can redistribute it and/or modify
22258# it under the terms of the GNU General Public License as published by
0b3e17e9 22259# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
22260# (at your option) any later version.
22261#
22262# This program is distributed in the hope that it will be useful, but
22263# WITHOUT ANY WARRANTY; without even the implied warranty of
22264# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22265# General Public License for more details.
22266#
22267# You should have received a copy of the GNU General Public License
22268# along with this program; if not, a copy can be downloaded from
22269# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22270# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22271# MA 02110-1301, USA.
22272#
22273# As a special exception to the GNU General Public License, if you
22274# distribute this file as part of a program that contains a
22275# configuration script generated by Autoconf, you may include it under
22276# the same distribution terms that you use for the rest of that program.
22277
22278
22279# The names of the tagged configurations supported by this script.
22280available_tags=""
22281
22282# ### BEGIN LIBTOOL CONFIG
22283
22284# Whether or not to build shared libraries.
22285build_libtool_libs=$enable_shared
22286
22287# Which release of libtool.m4 was used?
22288macro_version=$macro_version
22289macro_revision=$macro_revision
22290
22291# Whether or not to build static libraries.
22292build_old_libs=$enable_static
22293
22294# What type of objects to build.
22295pic_mode=$pic_mode
22296
22297# Whether or not to optimize for fast installation.
22298fast_install=$enable_fast_install
22299
22300# The host system.
22301host_alias=$host_alias
22302host=$host
22303host_os=$host_os
22304
22305# The build system.
22306build_alias=$build_alias
22307build=$build
22308build_os=$build_os
22309
22310# A sed program that does not truncate output.
22311SED=$lt_SED
22312
22313# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22314Xsed="\$SED -e 1s/^X//"
22315
22316# A grep program that handles long lines.
22317GREP=$lt_GREP
22318
22319# An ERE matcher.
22320EGREP=$lt_EGREP
22321
22322# A literal string matcher.
22323FGREP=$lt_FGREP
22324
22325# A BSD- or MS-compatible name lister.
22326NM=$lt_NM
22327
22328# Whether we need soft or hard links.
22329LN_S=$lt_LN_S
22330
22331# What is the maximum length of a command?
22332max_cmd_len=$max_cmd_len
22333
22334# Object file suffix (normally "o").
22335objext=$ac_objext
22336
22337# Executable file suffix (normally "").
22338exeext=$exeext
22339
22340# whether the shell understands "unset".
22341lt_unset=$lt_unset
22342
22343# turn spaces into newlines.
22344SP2NL=$lt_lt_SP2NL
22345
22346# turn newlines into spaces.
22347NL2SP=$lt_lt_NL2SP
22348
22349# How to create reloadable object files.
22350reload_flag=$lt_reload_flag
22351reload_cmds=$lt_reload_cmds
22352
22353# Method to check whether dependent libraries are shared objects.
22354deplibs_check_method=$lt_deplibs_check_method
22355
22356# Command to use when deplibs_check_method == "file_magic".
22357file_magic_cmd=$lt_file_magic_cmd
22358
22359# The archiver.
22360AR=$lt_AR
22361AR_FLAGS=$lt_AR_FLAGS
22362
22363# A symbol stripping program.
22364STRIP=$lt_STRIP
22365
22366# Commands used to install an old-style archive.
22367RANLIB=$lt_RANLIB
22368old_postinstall_cmds=$lt_old_postinstall_cmds
22369old_postuninstall_cmds=$lt_old_postuninstall_cmds
22370
22371# A C compiler.
22372LTCC=$lt_CC
22373
22374# LTCC compiler flags.
22375LTCFLAGS=$lt_CFLAGS
22376
22377# Take the output of nm and produce a listing of raw symbols and C names.
22378global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22379
22380# Transform the output of nm in a proper C declaration.
22381global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22382
22383# Transform the output of nm in a C name address pair.
22384global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22385
22386# The name of the directory that contains temporary libtool files.
22387objdir=$objdir
22388
22389# Shell to use when invoking shell scripts.
22390SHELL=$lt_SHELL
22391
22392# An echo program that does not interpret backslashes.
22393ECHO=$lt_ECHO
22394
22395# Used to examine libraries when file_magic_cmd begins with "file".
22396MAGIC_CMD=$MAGIC_CMD
22397
22398# Must we lock files when doing compilation?
22399need_locks=$lt_need_locks
22400
22401# Old archive suffix (normally "a").
22402libext=$libext
22403
22404# Shared library suffix (normally ".so").
22405shrext_cmds=$lt_shrext_cmds
22406
22407# The commands to extract the exported symbol list from a shared archive.
22408extract_expsyms_cmds=$lt_extract_expsyms_cmds
22409
22410# Variables whose values should be saved in libtool wrapper scripts and
22411# restored at link time.
22412variables_saved_for_relink=$lt_variables_saved_for_relink
22413
22414# Do we need the "lib" prefix for modules?
22415need_lib_prefix=$need_lib_prefix
22416
22417# Do we need a version for libraries?
22418need_version=$need_version
22419
22420# Library versioning type.
22421version_type=$version_type
22422
22423# Shared library runtime path variable.
22424runpath_var=$runpath_var
22425
22426# Shared library path variable.
22427shlibpath_var=$shlibpath_var
22428
22429# Is shlibpath searched before the hard-coded library search path?
22430shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22431
22432# Format of library name prefix.
22433libname_spec=$lt_libname_spec
22434
22435# List of archive names. First name is the real one, the rest are links.
22436# The last name is the one that the linker finds with -lNAME
22437library_names_spec=$lt_library_names_spec
22438
22439# The coded name of the library, if different from the real name.
22440soname_spec=$lt_soname_spec
22441
22442# Command to use after installation of a shared archive.
22443postinstall_cmds=$lt_postinstall_cmds
22444
22445# Command to use after uninstallation of a shared archive.
22446postuninstall_cmds=$lt_postuninstall_cmds
22447
22448# Commands used to finish a libtool library installation in a directory.
22449finish_cmds=$lt_finish_cmds
22450
22451# As "finish_cmds", except a single script fragment to be evaled but
22452# not shown.
22453finish_eval=$lt_finish_eval
22454
22455# Whether we should hardcode library paths into libraries.
22456hardcode_into_libs=$hardcode_into_libs
22457
22458# Compile-time system search path for libraries.
22459sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22460
22461# Run-time system search path for libraries.
22462sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22463
22464# Whether dlopen is supported.
22465dlopen_support=$enable_dlopen
22466
22467# Whether dlopen of programs is supported.
22468dlopen_self=$enable_dlopen_self
22469
22470# Whether dlopen of statically linked programs is supported.
22471dlopen_self_static=$enable_dlopen_self_static
22472
22473# Commands to strip libraries.
22474old_striplib=$lt_old_striplib
22475striplib=$lt_striplib
22476
22477
22478# The linker used to build libraries.
22479LD=$lt_LD
22480
22481# Commands used to build an old-style archive.
22482old_archive_cmds=$lt_old_archive_cmds
22483
22484# A language specific compiler.
22485CC=$lt_compiler
22486
22487# Is the compiler the GNU compiler?
22488with_gcc=$GCC
22489
22490# Compiler flag to turn off builtin functions.
22491no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22492
22493# How to pass a linker flag through the compiler.
22494wl=$lt_lt_prog_compiler_wl
22495
22496# Additional compiler flags for building library objects.
22497pic_flag=$lt_lt_prog_compiler_pic
22498
22499# Compiler flag to prevent dynamic linking.
22500link_static_flag=$lt_lt_prog_compiler_static
22501
22502# Does compiler simultaneously support -c and -o options?
22503compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22504
22505# Whether or not to add -lc for building shared libraries.
22506build_libtool_need_lc=$archive_cmds_need_lc
22507
22508# Whether or not to disallow shared libs when runtime libs are static.
22509allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22510
22511# Compiler flag to allow reflexive dlopens.
22512export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22513
22514# Compiler flag to generate shared objects directly from archives.
22515whole_archive_flag_spec=$lt_whole_archive_flag_spec
22516
22517# Whether the compiler copes with passing no objects directly.
22518compiler_needs_object=$lt_compiler_needs_object
22519
22520# Create an old-style archive from a shared archive.
22521old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22522
22523# Create a temporary old-style archive to link instead of a shared archive.
22524old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22525
22526# Commands used to build a shared archive.
22527archive_cmds=$lt_archive_cmds
22528archive_expsym_cmds=$lt_archive_expsym_cmds
22529
22530# Commands used to build a loadable module if different from building
22531# a shared archive.
22532module_cmds=$lt_module_cmds
22533module_expsym_cmds=$lt_module_expsym_cmds
22534
22535# Whether we are building with GNU ld or not.
22536with_gnu_ld=$lt_with_gnu_ld
22537
22538# Flag that allows shared libraries with undefined symbols to be built.
22539allow_undefined_flag=$lt_allow_undefined_flag
22540
22541# Flag that enforces no undefined symbols.
22542no_undefined_flag=$lt_no_undefined_flag
22543
22544# Flag to hardcode \$libdir into a binary during linking.
22545# This must work even if \$libdir does not exist
22546hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22547
22548# If ld is used when linking, flag to hardcode \$libdir into a binary
22549# during linking. This must work even if \$libdir does not exist.
22550hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22551
22552# Whether we need a single "-rpath" flag with a separated argument.
22553hardcode_libdir_separator=$lt_hardcode_libdir_separator
22554
22555# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22556# DIR into the resulting binary.
22557hardcode_direct=$hardcode_direct
22558
22559# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22560# DIR into the resulting binary and the resulting library dependency is
22561# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22562# library is relocated.
22563hardcode_direct_absolute=$hardcode_direct_absolute
22564
22565# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22566# into the resulting binary.
22567hardcode_minus_L=$hardcode_minus_L
22568
22569# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22570# into the resulting binary.
22571hardcode_shlibpath_var=$hardcode_shlibpath_var
22572
22573# Set to "yes" if building a shared library automatically hardcodes DIR
22574# into the library and all subsequent libraries and executables linked
22575# against it.
22576hardcode_automatic=$hardcode_automatic
22577
22578# Set to yes if linker adds runtime paths of dependent libraries
22579# to runtime path list.
22580inherit_rpath=$inherit_rpath
22581
22582# Whether libtool must link a program against all its dependency libraries.
22583link_all_deplibs=$link_all_deplibs
22584
22585# Fix the shell variable \$srcfile for the compiler.
22586fix_srcfile_path=$lt_fix_srcfile_path
22587
22588# Set to "yes" if exported symbols are required.
22589always_export_symbols=$always_export_symbols
22590
22591# The commands to list exported symbols.
22592export_symbols_cmds=$lt_export_symbols_cmds
22593
22594# Symbols that should not be listed in the preloaded symbols.
22595exclude_expsyms=$lt_exclude_expsyms
22596
22597# Symbols that must always be exported.
22598include_expsyms=$lt_include_expsyms
22599
22600# Commands necessary for linking programs (against libraries) with templates.
22601prelink_cmds=$lt_prelink_cmds
22602
22603# Specify filename containing input files.
22604file_list_spec=$lt_file_list_spec
22605
22606# How to hardcode a shared library path into an executable.
22607hardcode_action=$hardcode_action
22608
22609# ### END LIBTOOL CONFIG
22610
22611_LT_EOF
22612
22613 case $host_os in
22614 aix3*)
22615 cat <<\_LT_EOF >> "$cfgfile"
22616# AIX sometimes has problems with the GCC collect2 program. For some
22617# reason, if we set the COLLECT_NAMES environment variable, the problems
22618# vanish in a puff of smoke.
22619if test "X${COLLECT_NAMES+set}" != Xset; then
22620 COLLECT_NAMES=
22621 export COLLECT_NAMES
22622fi
22623_LT_EOF
22624 ;;
22625 esac
22626
22627
22628ltmain="$ac_aux_dir/ltmain.sh"
22629
22630
22631 # We use sed instead of cat because bash on DJGPP gets confused if
22632 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22633 # text mode, it properly converts lines to CR/LF. This bash problem
22634 # is reportedly fixed, but why not run on old versions too?
22635 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22636 || (rm -f "$cfgfile"; exit 1)
22637
22638 case $xsi_shell in
22639 yes)
22640 cat << \_LT_EOF >> "$cfgfile"
22641# func_dirname file append nondir_replacement
22642# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22643# otherwise set result to NONDIR_REPLACEMENT.
22644func_dirname ()
22645{
22646 case ${1} in
22647 */*) func_dirname_result="${1%/*}${2}" ;;
22648 * ) func_dirname_result="${3}" ;;
22649 esac
22650}
22651
22652# func_basename file
22653func_basename ()
22654{
22655 func_basename_result="${1##*/}"
22656}
22657
22658# func_stripname prefix suffix name
22659# strip PREFIX and SUFFIX off of NAME.
22660# PREFIX and SUFFIX must not contain globbing or regex special
22661# characters, hashes, percent signs, but SUFFIX may contain a leading
22662# dot (in which case that matches only a dot).
22663func_stripname ()
22664{
22665 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22666 # positional parameters, so assign one to ordinary parameter first.
22667 func_stripname_result=${3}
22668 func_stripname_result=${func_stripname_result#"${1}"}
22669 func_stripname_result=${func_stripname_result%"${2}"}
22670}
22671
22672# func_opt_split
22673func_opt_split ()
22674{
22675 func_opt_split_opt=${1%%=*}
22676 func_opt_split_arg=${1#*=}
22677}
22678
22679# func_lo2o object
22680func_lo2o ()
22681{
22682 case ${1} in
22683 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22684 *) func_lo2o_result=${1} ;;
22685 esac
22686}
22687_LT_EOF
22688 ;;
22689 *) # Bourne compatible functions.
22690 cat << \_LT_EOF >> "$cfgfile"
22691# func_dirname file append nondir_replacement
22692# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22693# otherwise set result to NONDIR_REPLACEMENT.
22694func_dirname ()
22695{
22696 # Extract subdirectory from the argument.
22697 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22698 if test "X$func_dirname_result" = "X${1}"; then
22699 func_dirname_result="${3}"
22700 else
22701 func_dirname_result="$func_dirname_result${2}"
22702 fi
22703}
22704
22705# func_basename file
22706func_basename ()
22707{
22708 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22709}
22710
22711# func_stripname prefix suffix name
22712# strip PREFIX and SUFFIX off of NAME.
22713# PREFIX and SUFFIX must not contain globbing or regex special
22714# characters, hashes, percent signs, but SUFFIX may contain a leading
22715# dot (in which case that matches only a dot).
22716# func_strip_suffix prefix name
22717func_stripname ()
22718{
22719 case ${2} in
22720 .*) func_stripname_result=`$ECHO "X${3}" \
22721 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22722 *) func_stripname_result=`$ECHO "X${3}" \
22723 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22724 esac
22725}
22726
22727# sed scripts:
22728my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22729my_sed_long_arg='1s/^-[^=]*=//'
22730
22731# func_opt_split
22732func_opt_split ()
22733{
22734 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22735 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22736}
22737
22738# func_lo2o object
22739func_lo2o ()
22740{
22741 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22742}
22743_LT_EOF
22744esac
22745
22746case $lt_shell_append in
22747 yes)
22748 cat << \_LT_EOF >> "$cfgfile"
22749
22750# func_append var value
22751# Append VALUE to the end of shell variable VAR.
22752func_append ()
22753{
22754 eval "$1+=\$2"
22755}
22756_LT_EOF
22757 ;;
22758 *)
22759 cat << \_LT_EOF >> "$cfgfile"
22760
22761# func_append var value
22762# Append VALUE to the end of shell variable VAR.
22763func_append ()
22764{
22765 eval "$1=\$$1\$2"
22766}
22767_LT_EOF
22768 ;;
22769 esac
22770
22771
22772 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22773 || (rm -f "$cfgfile"; exit 1)
22774
22775 mv -f "$cfgfile" "$ofile" ||
22776 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22777 chmod +x "$ofile"
22778
f5385ebf 22779 ;;
20e95c23
DJ
22780 default-1 )
22781 for ac_file in $CONFIG_FILES; do
22782 # Support "outfile[:infile[:infile...]]"
22783 case "$ac_file" in
22784 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22785 esac
22786 # PO directories have a Makefile.in generated from Makefile.in.in.
22787 case "$ac_file" in */Makefile.in)
22788 # Adjust a relative srcdir.
22789 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22790 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22791 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22792 # In autoconf-2.13 it is called $ac_given_srcdir.
22793 # In autoconf-2.50 it is called $srcdir.
22794 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22795 case "$ac_given_srcdir" in
22796 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22797 /*) top_srcdir="$ac_given_srcdir" ;;
22798 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22799 esac
22800 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22801 rm -f "$ac_dir/POTFILES"
22802 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22803 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22804 POMAKEFILEDEPS="POTFILES.in"
22805 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22806 # on $ac_dir but don't depend on user-specified configuration
22807 # parameters.
22808 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22809 # The LINGUAS file contains the set of available languages.
22810 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22811 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22812 fi
22813 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22814 # Hide the ALL_LINGUAS assigment from automake.
22815 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22816 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22817 else
22818 # The set of available languages was given in configure.in.
22819 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22820 fi
22821 case "$ac_given_srcdir" in
22822 .) srcdirpre= ;;
22823 *) srcdirpre='$(srcdir)/' ;;
22824 esac
22825 POFILES=
22826 GMOFILES=
22827 UPDATEPOFILES=
22828 DUMMYPOFILES=
22829 for lang in $ALL_LINGUAS; do
22830 POFILES="$POFILES $srcdirpre$lang.po"
22831 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22832 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22833 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22834 done
22835 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22836 # environment variable.
22837 INST_LINGUAS=
22838 if test -n "$ALL_LINGUAS"; then
22839 for presentlang in $ALL_LINGUAS; do
22840 useit=no
22841 if test "%UNSET%" != "$LINGUAS"; then
22842 desiredlanguages="$LINGUAS"
22843 else
22844 desiredlanguages="$ALL_LINGUAS"
22845 fi
22846 for desiredlang in $desiredlanguages; do
22847 # Use the presentlang catalog if desiredlang is
22848 # a. equal to presentlang, or
22849 # b. a variant of presentlang (because in this case,
22850 # presentlang can be used as a fallback for messages
22851 # which are not translated in the desiredlang catalog).
22852 case "$desiredlang" in
22853 "$presentlang"*) useit=yes;;
22854 esac
22855 done
22856 if test $useit = yes; then
22857 INST_LINGUAS="$INST_LINGUAS $presentlang"
22858 fi
22859 done
22860 fi
22861 CATALOGS=
22862 if test -n "$INST_LINGUAS"; then
22863 for lang in $INST_LINGUAS; do
22864 CATALOGS="$CATALOGS $lang.gmo"
22865 done
22866 fi
22867 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22868 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"
22869 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22870 if test -f "$f"; then
22871 case "$f" in
22872 *.orig | *.bak | *~) ;;
22873 *) cat "$f" >> "$ac_dir/Makefile" ;;
22874 esac
22875 fi
22876 done
22877 fi
22878 ;;
22879 esac
22880 done ;;
d5efd9fc
AM
22881 bfd_stdint.h )
22882if test "$GCC" = yes; then
22883 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22884else
22885 echo "/* generated for $CC */" > tmp-stdint.h
22886fi
22887
22888sed 's/^ *//' >> tmp-stdint.h <<EOF
22889
22890 #ifndef GCC_GENERATED_STDINT_H
22891 #define GCC_GENERATED_STDINT_H 1
22892
22893 #include <sys/types.h>
22894EOF
22895
22896if test "$acx_cv_header_stdint" != stdint.h; then
22897 echo "#include <stddef.h>" >> tmp-stdint.h
22898fi
22899if test "$acx_cv_header_stdint" != stddef.h; then
22900 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22901fi
22902
22903sed 's/^ *//' >> tmp-stdint.h <<EOF
22904 /* glibc uses these symbols as guards to prevent redefinitions. */
22905 #ifdef __int8_t_defined
22906 #define _INT8_T
22907 #define _INT16_T
22908 #define _INT32_T
22909 #endif
22910 #ifdef __uint32_t_defined
22911 #define _UINT32_T
22912 #endif
22913
22914EOF
22915
22916# ----------------- done header, emit basic int types -------------
22917if test "$acx_cv_header_stdint" = stddef.h; then
22918 sed 's/^ *//' >> tmp-stdint.h <<EOF
22919
22920 #ifndef _UINT8_T
22921 #define _UINT8_T
22922 #ifndef __uint8_t_defined
22923 #define __uint8_t_defined
22924 typedef unsigned $acx_cv_type_int8_t uint8_t;
22925 #endif
22926 #endif
22927
22928 #ifndef _UINT16_T
22929 #define _UINT16_T
22930 #ifndef __uint16_t_defined
22931 #define __uint16_t_defined
22932 typedef unsigned $acx_cv_type_int16_t uint16_t;
22933 #endif
22934 #endif
22935
22936 #ifndef _UINT32_T
22937 #define _UINT32_T
22938 #ifndef __uint32_t_defined
22939 #define __uint32_t_defined
22940 typedef unsigned $acx_cv_type_int32_t uint32_t;
22941 #endif
22942 #endif
22943
22944 #ifndef _INT8_T
22945 #define _INT8_T
22946 #ifndef __int8_t_defined
22947 #define __int8_t_defined
22948 typedef $acx_cv_type_int8_t int8_t;
22949 #endif
22950 #endif
22951
22952 #ifndef _INT16_T
22953 #define _INT16_T
22954 #ifndef __int16_t_defined
22955 #define __int16_t_defined
22956 typedef $acx_cv_type_int16_t int16_t;
22957 #endif
22958 #endif
22959
22960 #ifndef _INT32_T
22961 #define _INT32_T
22962 #ifndef __int32_t_defined
22963 #define __int32_t_defined
22964 typedef $acx_cv_type_int32_t int32_t;
22965 #endif
22966 #endif
22967EOF
22968elif test "$ac_cv_type_u_int32_t" = yes; then
22969 sed 's/^ *//' >> tmp-stdint.h <<EOF
22970
22971 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22972 #ifndef _INT8_T
22973 #define _INT8_T
22974 #endif
22975 #ifndef _INT16_T
22976 #define _INT16_T
22977 #endif
22978 #ifndef _INT32_T
22979 #define _INT32_T
22980 #endif
22981
22982 #ifndef _UINT8_T
22983 #define _UINT8_T
22984 #ifndef __uint8_t_defined
22985 #define __uint8_t_defined
22986 typedef u_int8_t uint8_t;
22987 #endif
22988 #endif
22989
22990 #ifndef _UINT16_T
22991 #define _UINT16_T
22992 #ifndef __uint16_t_defined
22993 #define __uint16_t_defined
22994 typedef u_int16_t uint16_t;
22995 #endif
22996 #endif
22997
22998 #ifndef _UINT32_T
22999 #define _UINT32_T
23000 #ifndef __uint32_t_defined
23001 #define __uint32_t_defined
23002 typedef u_int32_t uint32_t;
23003 #endif
23004 #endif
23005EOF
23006else
23007 sed 's/^ *//' >> tmp-stdint.h <<EOF
23008
23009 /* Some systems have guard macros to prevent redefinitions, define them. */
23010 #ifndef _INT8_T
23011 #define _INT8_T
23012 #endif
23013 #ifndef _INT16_T
23014 #define _INT16_T
23015 #endif
23016 #ifndef _INT32_T
23017 #define _INT32_T
23018 #endif
23019 #ifndef _UINT8_T
23020 #define _UINT8_T
23021 #endif
23022 #ifndef _UINT16_T
23023 #define _UINT16_T
23024 #endif
23025 #ifndef _UINT32_T
23026 #define _UINT32_T
23027 #endif
23028EOF
23029fi
23030
23031# ------------- done basic int types, emit int64_t types ------------
23032if test "$ac_cv_type_uint64_t" = yes; then
23033 sed 's/^ *//' >> tmp-stdint.h <<EOF
23034
23035 /* system headers have good uint64_t and int64_t */
23036 #ifndef _INT64_T
23037 #define _INT64_T
23038 #endif
23039 #ifndef _UINT64_T
23040 #define _UINT64_T
23041 #endif
23042EOF
23043elif test "$ac_cv_type_u_int64_t" = yes; then
23044 sed 's/^ *//' >> tmp-stdint.h <<EOF
23045
23046 /* system headers have an u_int64_t (and int64_t) */
23047 #ifndef _INT64_T
23048 #define _INT64_T
23049 #endif
23050 #ifndef _UINT64_T
23051 #define _UINT64_T
23052 #ifndef __uint64_t_defined
23053 #define __uint64_t_defined
23054 typedef u_int64_t uint64_t;
23055 #endif
23056 #endif
23057EOF
23058elif test -n "$acx_cv_type_int64_t"; then
23059 sed 's/^ *//' >> tmp-stdint.h <<EOF
23060
23061 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23062 #ifndef _INT64_T
23063 #define _INT64_T
23064 typedef $acx_cv_type_int64_t int64_t;
23065 #endif
23066 #ifndef _UINT64_T
23067 #define _UINT64_T
23068 #ifndef __uint64_t_defined
23069 #define __uint64_t_defined
23070 typedef unsigned $acx_cv_type_int64_t uint64_t;
23071 #endif
23072 #endif
23073EOF
23074else
23075 sed 's/^ *//' >> tmp-stdint.h <<EOF
23076
23077 /* some common heuristics for int64_t, using compiler-specific tests */
23078 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23079 #ifndef _INT64_T
23080 #define _INT64_T
23081 #ifndef __int64_t_defined
23082 typedef long long int64_t;
23083 #endif
23084 #endif
23085 #ifndef _UINT64_T
23086 #define _UINT64_T
23087 typedef unsigned long long uint64_t;
23088 #endif
23089
23090 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23091 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23092 does not implement __extension__. But that compiler doesn't define
23093 __GNUC_MINOR__. */
23094 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23095 # define __extension__
23096 # endif
23097
23098 # ifndef _INT64_T
23099 # define _INT64_T
23100 __extension__ typedef long long int64_t;
23101 # endif
23102 # ifndef _UINT64_T
23103 # define _UINT64_T
23104 __extension__ typedef unsigned long long uint64_t;
23105 # endif
23106
23107 #elif !defined __STRICT_ANSI__
23108 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23109
23110 # ifndef _INT64_T
23111 # define _INT64_T
23112 typedef __int64 int64_t;
23113 # endif
23114 # ifndef _UINT64_T
23115 # define _UINT64_T
23116 typedef unsigned __int64 uint64_t;
23117 # endif
23118 # endif /* compiler */
23119
23120 #endif /* ANSI version */
23121EOF
23122fi
23123
23124# ------------- done int64_t types, emit intptr types ------------
23125if test "$ac_cv_type_uintptr_t" != yes; then
23126 sed 's/^ *//' >> tmp-stdint.h <<EOF
23127
23128 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23129 #ifndef __uintptr_t_defined
23130 typedef u$acx_cv_type_intptr_t uintptr_t;
23131 #endif
23132 #ifndef __intptr_t_defined
23133 typedef $acx_cv_type_intptr_t intptr_t;
23134 #endif
23135EOF
23136fi
23137
23138# ------------- done intptr types, emit int_least types ------------
23139if test "$ac_cv_type_int_least32_t" != yes; then
23140 sed 's/^ *//' >> tmp-stdint.h <<EOF
23141
23142 /* Define int_least types */
23143 typedef int8_t int_least8_t;
23144 typedef int16_t int_least16_t;
23145 typedef int32_t int_least32_t;
23146 #ifdef _INT64_T
23147 typedef int64_t int_least64_t;
23148 #endif
23149
23150 typedef uint8_t uint_least8_t;
23151 typedef uint16_t uint_least16_t;
23152 typedef uint32_t uint_least32_t;
23153 #ifdef _UINT64_T
23154 typedef uint64_t uint_least64_t;
23155 #endif
23156EOF
23157fi
23158
23159# ------------- done intptr types, emit int_fast types ------------
23160if test "$ac_cv_type_int_fast32_t" != yes; then
23161 sed 's/^ *//' >> tmp-stdint.h <<EOF
23162
23163 /* Define int_fast types. short is often slow */
23164 typedef int8_t int_fast8_t;
23165 typedef int int_fast16_t;
23166 typedef int32_t int_fast32_t;
23167 #ifdef _INT64_T
23168 typedef int64_t int_fast64_t;
23169 #endif
23170
23171 typedef uint8_t uint_fast8_t;
23172 typedef unsigned int uint_fast16_t;
23173 typedef uint32_t uint_fast32_t;
23174 #ifdef _UINT64_T
23175 typedef uint64_t uint_fast64_t;
23176 #endif
23177EOF
23178fi
23179
23180if test "$ac_cv_type_uintmax_t" != yes; then
23181 sed 's/^ *//' >> tmp-stdint.h <<EOF
23182
23183 /* Define intmax based on what we found */
23184 #ifdef _INT64_T
23185 typedef int64_t intmax_t;
23186 #else
23187 typedef long intmax_t;
23188 #endif
23189 #ifdef _UINT64_T
23190 typedef uint64_t uintmax_t;
23191 #else
23192 typedef unsigned long uintmax_t;
23193 #endif
23194EOF
23195fi
23196
23197sed 's/^ *//' >> tmp-stdint.h <<EOF
23198
23199 #endif /* GCC_GENERATED_STDINT_H */
23200EOF
23201
23202if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23203 rm -f tmp-stdint.h
23204else
23205 mv -f tmp-stdint.h bfd_stdint.h
23206fi
23207
23208 ;;
20e95c23
DJ
23209 default )
23210case "$srcdir" in
23211 .) srcdirpre= ;;
23212 *) srcdirpre='$(srcdir)/' ;;
23213esac
23214POFILES=
23215GMOFILES=
23216for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23217 if test $lang != dummy; then
23218 POFILES="$POFILES $srcdirpre$lang.po"
23219 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23220 fi
23221done
23222sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23223 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23224 -e "s,@POFILES@,$POFILES," \
23225 -e "s,@GMOFILES@,$GMOFILES," \
23226 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
23227 esac
23228done
23229_ACEOF
23230
23231cat >>$CONFIG_STATUS <<\_ACEOF
23232
23233{ (exit 0); exit 0; }
23234_ACEOF
252b5132 23235chmod +x $CONFIG_STATUS
5464f5a1
NN
23236ac_clean_files=$ac_clean_files_save
23237
23238
23239# configure is writing to config.log, and then calls config.status.
23240# config.status does its own redirection, appending to config.log.
23241# Unfortunately, on DOS this fails, as config.log is still kept open
23242# by configure, so config.status won't be able to write to it; its
23243# output is simply discarded. So we exec the FD to /dev/null,
23244# effectively closing config.log, so it can be properly (re)opened and
23245# appended to by config.status. When coming back to configure, we
23246# need to make the FD available again.
23247if test "$no_create" != yes; then
23248 ac_cs_success=:
23249 ac_config_status_args=
23250 test "$silent" = yes &&
23251 ac_config_status_args="$ac_config_status_args --quiet"
23252 exec 5>/dev/null
23253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23254 exec 5>>config.log
23255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23256 # would make configure fail if this is the last instruction.
23257 $ac_cs_success || { (exit 1); exit 1; }
23258fi
252b5132 23259
55c80943 23260
This page took 1.677797 seconds and 4 git commands to generate.