* po/fi.po: New Finnish translation.
[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
241a6c40
AM
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
5464f5a1
NN
1019 --enable-install-libbfd controls installation of libbfd and related headers
1020 --disable-nls do not use Native Language Support
1021
1022Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1028 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1029 --with-separate-debug-dir=DIR
1030 Look for global separate debug info in DIR
1031 [default=LIBDIR/debug]
a1ac8190
JM
1032 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1033 Binutils"
c428fa83 1034 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
1035
1036Some influential environment variables:
1037 CC C compiler command
1038 CFLAGS C compiler flags
1039 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040 nonstandard directory <lib dir>
1041 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042 headers in a nonstandard directory <include dir>
1043 CPP C preprocessor
1044
1045Use these variables to override the choices made by `configure' or to help
1046it to find libraries and programs with nonstandard names/locations.
1047
1048_ACEOF
1049fi
1050
1051if test "$ac_init_help" = "recursive"; then
1052 # If there are subdirs, report their specific --help.
1053 ac_popdir=`pwd`
1054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055 test -d $ac_dir || continue
1056 ac_builddir=.
1057
1058if test "$ac_dir" != .; then
1059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060 # A "../" for each directory in $ac_dir_suffix.
1061 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062else
1063 ac_dir_suffix= ac_top_builddir=
1064fi
1065
1066case $srcdir in
1067 .) # No --srcdir option. We are building in place.
1068 ac_srcdir=.
1069 if test -z "$ac_top_builddir"; then
1070 ac_top_srcdir=.
1071 else
1072 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073 fi ;;
1074 [\\/]* | ?:[\\/]* ) # Absolute path.
1075 ac_srcdir=$srcdir$ac_dir_suffix;
1076 ac_top_srcdir=$srcdir ;;
1077 *) # Relative path.
1078 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
1080esac
1081
5464f5a1
NN
1082# Do not use `cd foo && pwd` to compute absolute paths, because
1083# the directories may not exist.
1084case `pwd` in
1085.) ac_abs_builddir="$ac_dir";;
1086*)
1087 case "$ac_dir" in
1088 .) ac_abs_builddir=`pwd`;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1090 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1091 esac;;
1092esac
1093case $ac_abs_builddir in
1094.) ac_abs_top_builddir=${ac_top_builddir}.;;
1095*)
1096 case ${ac_top_builddir}. in
1097 .) ac_abs_top_builddir=$ac_abs_builddir;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1099 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1100 esac;;
1101esac
1102case $ac_abs_builddir in
1103.) ac_abs_srcdir=$ac_srcdir;;
1104*)
1105 case $ac_srcdir in
1106 .) ac_abs_srcdir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1108 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1109 esac;;
1110esac
1111case $ac_abs_builddir in
1112.) ac_abs_top_srcdir=$ac_top_srcdir;;
1113*)
1114 case $ac_top_srcdir in
1115 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1117 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1118 esac;;
1119esac
6be7c12c 1120
5464f5a1
NN
1121 cd $ac_dir
1122 # Check for guested configure; otherwise get Cygnus style configure.
1123 if test -f $ac_srcdir/configure.gnu; then
1124 echo
1125 $SHELL $ac_srcdir/configure.gnu --help=recursive
1126 elif test -f $ac_srcdir/configure; then
1127 echo
1128 $SHELL $ac_srcdir/configure --help=recursive
1129 elif test -f $ac_srcdir/configure.ac ||
1130 test -f $ac_srcdir/configure.in; then
1131 echo
1132 $ac_configure --help
1133 else
1134 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1135 fi
49c96104 1136 cd $ac_popdir
5464f5a1 1137 done
6be7c12c
AO
1138fi
1139
5464f5a1
NN
1140test -n "$ac_init_help" && exit 0
1141if $ac_init_version; then
1142 cat <<\_ACEOF
6be7c12c 1143
5464f5a1
NN
1144Copyright (C) 2003 Free Software Foundation, Inc.
1145This configure script is free software; the Free Software Foundation
1146gives unlimited permission to copy, distribute and modify it.
1147_ACEOF
1148 exit 0
1149fi
1150exec 5>config.log
1151cat >&5 <<_ACEOF
1152This file contains any messages produced by compilers while
1153running configure, to aid debugging if configure makes a mistake.
6be7c12c 1154
5464f5a1
NN
1155It was created by $as_me, which was
1156generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1157
5464f5a1 1158 $ $0 $@
6be7c12c 1159
5464f5a1
NN
1160_ACEOF
1161{
1162cat <<_ASUNAME
1163## --------- ##
1164## Platform. ##
1165## --------- ##
1166
1167hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172
1173/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1175
1176/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1177/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1178/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1180/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1181/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1182/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1183
1184_ASUNAME
1185
1186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187for as_dir in $PATH
1188do
1189 IFS=$as_save_IFS
1190 test -z "$as_dir" && as_dir=.
1191 echo "PATH: $as_dir"
1192done
6be7c12c 1193
5464f5a1 1194} >&5
66e25bab 1195
5464f5a1 1196cat >&5 <<_ACEOF
b3baf5d0 1197
6be7c12c 1198
5464f5a1
NN
1199## ----------- ##
1200## Core tests. ##
1201## ----------- ##
252b5132 1202
5464f5a1 1203_ACEOF
c5d1701e 1204
6be7c12c 1205
5464f5a1
NN
1206# Keep a trace of the command line.
1207# Strip out --no-create and --no-recursion so they do not pile up.
1208# Strip out --silent because we don't want to record it for future runs.
1209# Also quote any args containing shell meta-characters.
1210# Make two passes to allow for proper duplicate-argument suppression.
1211ac_configure_args=
1212ac_configure_args0=
1213ac_configure_args1=
1214ac_sep=
1215ac_must_keep_next=false
1216for ac_pass in 1 2
1217do
1218 for ac_arg
1219 do
1220 case $ac_arg in
1221 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 continue ;;
1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1227 esac
1228 case $ac_pass in
1229 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230 2)
1231 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232 if test $ac_must_keep_next = true; then
1233 ac_must_keep_next=false # Got value, back to normal.
1234 else
1235 case $ac_arg in
1236 *=* | --config-cache | -C | -disable-* | --disable-* \
1237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239 | -with-* | --with-* | -without-* | --without-* | --x)
1240 case "$ac_configure_args0 " in
1241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1242 esac
1243 ;;
1244 -* ) ac_must_keep_next=true ;;
1245 esac
1246 fi
1247 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248 # Get rid of the leading space.
1249 ac_sep=" "
1250 ;;
1251 esac
1252 done
1253done
1254$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256
1257# When interrupted or exit'd, cleanup temporary files, and complete
1258# config.log. We remove comments because anyway the quotes in there
1259# would cause problems or look ugly.
1260# WARNING: Be sure not to use single quotes in there, as some shells,
1261# such as our DU 5.0 friend, will then `close' the trap.
1262trap 'exit_status=$?
1263 # Save into config.log some information that might help in debugging.
1264 {
1265 echo
1266
1267 cat <<\_ASBOX
1268## ---------------- ##
1269## Cache variables. ##
1270## ---------------- ##
1271_ASBOX
1272 echo
1273 # The following way of writing the cache mishandles newlines in values,
1274{
1275 (set) 2>&1 |
1276 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1277 *ac_space=\ *)
1278 sed -n \
1279 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1281 ;;
1282 *)
1283 sed -n \
1284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285 ;;
1286 esac;
1287}
1288 echo
1289
1290 cat <<\_ASBOX
1291## ----------------- ##
1292## Output variables. ##
1293## ----------------- ##
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_vars
1297 do
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1302
1303 if test -n "$ac_subst_files"; then
1304 cat <<\_ASBOX
1305## ------------- ##
1306## Output files. ##
1307## ------------- ##
1308_ASBOX
1309 echo
1310 for ac_var in $ac_subst_files
1311 do
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1314 done | sort
1315 echo
1316 fi
1317
1318 if test -s confdefs.h; then
1319 cat <<\_ASBOX
1320## ----------- ##
1321## confdefs.h. ##
1322## ----------- ##
1323_ASBOX
1324 echo
1325 sed "/^$/d" confdefs.h | sort
1326 echo
1327 fi
1328 test "$ac_signal" != 0 &&
1329 echo "$as_me: caught signal $ac_signal"
1330 echo "$as_me: exit $exit_status"
1331 } >&5
1332 rm -f core *.core &&
1333 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1334 exit $exit_status
1335 ' 0
1336for ac_signal in 1 2 13 15; do
1337 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338done
1339ac_signal=0
1340
1341# confdefs.h avoids OS command line length limits that DEFS can exceed.
1342rm -rf conftest* confdefs.h
1343# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344echo >confdefs.h
1345
1346# Predefined preprocessor variables.
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_NAME "$PACKAGE_NAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_VERSION "$PACKAGE_VERSION"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_STRING "$PACKAGE_STRING"
1365_ACEOF
1366
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370_ACEOF
1371
1372
1373# Let the site file select an alternate cache file if it wants to.
1374# Prefer explicitly selected file to automatically selected ones.
1375if test -z "$CONFIG_SITE"; then
1376 if test "x$prefix" != xNONE; then
1377 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378 else
1379 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1380 fi
1381fi
1382for ac_site_file in $CONFIG_SITE; do
1383 if test -r "$ac_site_file"; then
1384 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385echo "$as_me: loading site script $ac_site_file" >&6;}
1386 sed 's/^/| /' "$ac_site_file" >&5
1387 . "$ac_site_file"
1388 fi
1389done
1390
1391if test -r "$cache_file"; then
1392 # Some versions of bash will fail to source /dev/null (special
1393 # files actually), so we avoid doing that.
1394 if test -f "$cache_file"; then
1395 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396echo "$as_me: loading cache $cache_file" >&6;}
1397 case $cache_file in
1398 [\\/]* | ?:[\\/]* ) . $cache_file;;
1399 *) . ./$cache_file;;
1400 esac
1401 fi
1402else
1403 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404echo "$as_me: creating cache $cache_file" >&6;}
1405 >$cache_file
1406fi
1407
1408# Check that the precious variables saved in the cache have kept the same
1409# value.
1410ac_cache_corrupted=false
1411for ac_var in `(set) 2>&1 |
1412 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414 eval ac_new_set=\$ac_env_${ac_var}_set
1415 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416 eval ac_new_val="\$ac_env_${ac_var}_value"
1417 case $ac_old_set,$ac_new_set in
1418 set,)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,set)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,);;
1427 *)
1428 if test "x$ac_old_val" != "x$ac_new_val"; then
1429 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1430echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1431 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1432echo "$as_me: former value: $ac_old_val" >&2;}
1433 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1434echo "$as_me: current value: $ac_new_val" >&2;}
1435 ac_cache_corrupted=:
1436 fi;;
1437 esac
1438 # Pass precious variables to config.status.
1439 if test "$ac_new_set" = set; then
1440 case $ac_new_val in
1441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1442 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1443 *) ac_arg=$ac_var=$ac_new_val ;;
1444 esac
1445 case " $ac_configure_args " in
1446 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1447 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1448 esac
1449 fi
1450done
1451if $ac_cache_corrupted; then
1452 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1453echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1454 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1455echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1456 { (exit 1); exit 1; }; }
1457fi
1458
1459ac_ext=c
1460ac_cpp='$CPP $CPPFLAGS'
1461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463ac_compiler_gnu=$ac_cv_c_compiler_gnu
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485ac_aux_dir=
1486for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1487 if test -f $ac_dir/install-sh; then
1488 ac_aux_dir=$ac_dir
1489 ac_install_sh="$ac_aux_dir/install-sh -c"
1490 break
1491 elif test -f $ac_dir/install.sh; then
1492 ac_aux_dir=$ac_dir
1493 ac_install_sh="$ac_aux_dir/install.sh -c"
1494 break
1495 elif test -f $ac_dir/shtool; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/shtool install -c"
1498 break
1499 fi
1500done
1501if test -z "$ac_aux_dir"; then
1502 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1503echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1504 { (exit 1); exit 1; }; }
1505fi
1506ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1507ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1508ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1509
1510# Make sure we can run config.sub.
1511$ac_config_sub sun4 >/dev/null 2>&1 ||
1512 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1513echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1514 { (exit 1); exit 1; }; }
1515
1516echo "$as_me:$LINENO: checking build system type" >&5
1517echo $ECHO_N "checking build system type... $ECHO_C" >&6
1518if test "${ac_cv_build+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520else
1521 ac_cv_build_alias=$build_alias
1522test -z "$ac_cv_build_alias" &&
1523 ac_cv_build_alias=`$ac_config_guess`
1524test -z "$ac_cv_build_alias" &&
1525 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1526echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1527 { (exit 1); exit 1; }; }
1528ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1529 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1530echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1531 { (exit 1); exit 1; }; }
1532
1533fi
1534echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1535echo "${ECHO_T}$ac_cv_build" >&6
1536build=$ac_cv_build
1537build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1538build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1539build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1540
1541
1542echo "$as_me:$LINENO: checking host system type" >&5
1543echo $ECHO_N "checking host system type... $ECHO_C" >&6
1544if test "${ac_cv_host+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546else
1547 ac_cv_host_alias=$host_alias
1548test -z "$ac_cv_host_alias" &&
1549 ac_cv_host_alias=$ac_cv_build_alias
1550ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1551 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1552echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1553 { (exit 1); exit 1; }; }
1554
1555fi
1556echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1557echo "${ECHO_T}$ac_cv_host" >&6
1558host=$ac_cv_host
1559host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1560host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1561host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1562
1563
1564echo "$as_me:$LINENO: checking target system type" >&5
1565echo $ECHO_N "checking target system type... $ECHO_C" >&6
1566if test "${ac_cv_target+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568else
1569 ac_cv_target_alias=$target_alias
1570test "x$ac_cv_target_alias" = "x" &&
1571 ac_cv_target_alias=$ac_cv_host_alias
1572ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1574echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1576
1577fi
1578echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1579echo "${ECHO_T}$ac_cv_target" >&6
1580target=$ac_cv_target
1581target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
1585
1586# The aliases save the names the user supplied, while $host etc.
1587# will get canonicalized.
1588test -n "$target_alias" &&
1589 test "$program_prefix$program_suffix$program_transform_name" = \
1590 NONENONEs,x,x, &&
1591 program_prefix=${target_alias}-
1592ac_ext=c
1593ac_cpp='$CPP $CPPFLAGS'
1594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1596ac_compiler_gnu=$ac_cv_c_compiler_gnu
1597if test -n "$ac_tool_prefix"; then
1598 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1599set dummy ${ac_tool_prefix}gcc; ac_word=$2
1600echo "$as_me:$LINENO: checking for $ac_word" >&5
1601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607else
1608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609for as_dir in $PATH
1610do
1611 IFS=$as_save_IFS
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617 break 2
1618 fi
1619done
1620done
1621
1622fi
1623fi
1624CC=$ac_cv_prog_CC
1625if test -n "$CC"; then
1626 echo "$as_me:$LINENO: result: $CC" >&5
1627echo "${ECHO_T}$CC" >&6
1628else
1629 echo "$as_me:$LINENO: result: no" >&5
1630echo "${ECHO_T}no" >&6
1631fi
1632
1633fi
1634if test -z "$ac_cv_prog_CC"; then
1635 ac_ct_CC=$CC
1636 # Extract the first word of "gcc", so it can be a program name with args.
1637set dummy gcc; ac_word=$2
1638echo "$as_me:$LINENO: checking for $ac_word" >&5
1639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 if test -n "$ac_ct_CC"; then
1644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645else
1646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647for as_dir in $PATH
1648do
1649 IFS=$as_save_IFS
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_ac_ct_CC="gcc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 break 2
1656 fi
1657done
1658done
1659
1660fi
1661fi
1662ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663if test -n "$ac_ct_CC"; then
1664 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665echo "${ECHO_T}$ac_ct_CC" >&6
1666else
1667 echo "$as_me:$LINENO: result: no" >&5
1668echo "${ECHO_T}no" >&6
1669fi
1670
1671 CC=$ac_ct_CC
1672else
1673 CC="$ac_cv_prog_CC"
1674fi
1675
1676if test -z "$CC"; then
1677 if test -n "$ac_tool_prefix"; then
1678 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1679set dummy ${ac_tool_prefix}cc; ac_word=$2
1680echo "$as_me:$LINENO: checking for $ac_word" >&5
1681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682if test "${ac_cv_prog_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684else
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC="$CC" # Let the user override the test.
1687else
1688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_CC="${ac_tool_prefix}cc"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 break 2
1698 fi
1699done
1700done
1701
1702fi
1703fi
1704CC=$ac_cv_prog_CC
1705if test -n "$CC"; then
1706 echo "$as_me:$LINENO: result: $CC" >&5
1707echo "${ECHO_T}$CC" >&6
1708else
1709 echo "$as_me:$LINENO: result: no" >&5
1710echo "${ECHO_T}no" >&6
1711fi
1712
1713fi
1714if test -z "$ac_cv_prog_CC"; then
1715 ac_ct_CC=$CC
1716 # Extract the first word of "cc", so it can be a program name with args.
1717set dummy cc; ac_word=$2
1718echo "$as_me:$LINENO: checking for $ac_word" >&5
1719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1722else
1723 if test -n "$ac_ct_CC"; then
1724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1725else
1726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727for as_dir in $PATH
1728do
1729 IFS=$as_save_IFS
1730 test -z "$as_dir" && as_dir=.
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_ac_ct_CC="cc"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 break 2
1736 fi
1737done
1738done
1739
1740fi
1741fi
1742ac_ct_CC=$ac_cv_prog_ac_ct_CC
1743if test -n "$ac_ct_CC"; then
1744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1745echo "${ECHO_T}$ac_ct_CC" >&6
1746else
1747 echo "$as_me:$LINENO: result: no" >&5
1748echo "${ECHO_T}no" >&6
1749fi
1750
1751 CC=$ac_ct_CC
1752else
1753 CC="$ac_cv_prog_CC"
1754fi
1755
1756fi
1757if test -z "$CC"; then
1758 # Extract the first word of "cc", so it can be a program name with args.
1759set dummy cc; ac_word=$2
1760echo "$as_me:$LINENO: checking for $ac_word" >&5
1761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762if test "${ac_cv_prog_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764else
1765 if test -n "$CC"; then
1766 ac_cv_prog_CC="$CC" # Let the user override the test.
1767else
1768 ac_prog_rejected=no
1769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770for as_dir in $PATH
1771do
1772 IFS=$as_save_IFS
1773 test -z "$as_dir" && as_dir=.
1774 for ac_exec_ext in '' $ac_executable_extensions; do
1775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1777 ac_prog_rejected=yes
1778 continue
1779 fi
1780 ac_cv_prog_CC="cc"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 break 2
1783 fi
1784done
1785done
1786
1787if test $ac_prog_rejected = yes; then
1788 # We found a bogon in the path, so make sure we never use it.
1789 set dummy $ac_cv_prog_CC
1790 shift
1791 if test $# != 0; then
1792 # We chose a different compiler from the bogus one.
1793 # However, it has the same basename, so the bogon will be chosen
1794 # first if we set CC to just the basename; use the full file name.
1795 shift
1796 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1797 fi
1798fi
1799fi
1800fi
1801CC=$ac_cv_prog_CC
1802if test -n "$CC"; then
1803 echo "$as_me:$LINENO: result: $CC" >&5
1804echo "${ECHO_T}$CC" >&6
1805else
1806 echo "$as_me:$LINENO: result: no" >&5
1807echo "${ECHO_T}no" >&6
1808fi
1809
1810fi
1811if test -z "$CC"; then
1812 if test -n "$ac_tool_prefix"; then
1813 for ac_prog in cl
1814 do
1815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1817echo "$as_me:$LINENO: checking for $ac_word" >&5
1818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819if test "${ac_cv_prog_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822 if test -n "$CC"; then
1823 ac_cv_prog_CC="$CC" # Let the user override the test.
1824else
1825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826for as_dir in $PATH
1827do
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1835 fi
1836done
1837done
1838
1839fi
1840fi
1841CC=$ac_cv_prog_CC
1842if test -n "$CC"; then
1843 echo "$as_me:$LINENO: result: $CC" >&5
1844echo "${ECHO_T}$CC" >&6
1845else
1846 echo "$as_me:$LINENO: result: no" >&5
1847echo "${ECHO_T}no" >&6
1848fi
1849
1850 test -n "$CC" && break
1851 done
1852fi
1853if test -z "$CC"; then
1854 ac_ct_CC=$CC
1855 for ac_prog in cl
1856do
1857 # Extract the first word of "$ac_prog", so it can be a program name with args.
1858set dummy $ac_prog; ac_word=$2
1859echo "$as_me:$LINENO: checking for $ac_word" >&5
1860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863else
1864 if test -n "$ac_ct_CC"; then
1865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1866else
1867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868for as_dir in $PATH
1869do
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_ac_ct_CC="$ac_prog"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1877 fi
1878done
1879done
1880
1881fi
1882fi
1883ac_ct_CC=$ac_cv_prog_ac_ct_CC
1884if test -n "$ac_ct_CC"; then
1885 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1886echo "${ECHO_T}$ac_ct_CC" >&6
1887else
1888 echo "$as_me:$LINENO: result: no" >&5
1889echo "${ECHO_T}no" >&6
1890fi
1891
1892 test -n "$ac_ct_CC" && break
1893done
1894
1895 CC=$ac_ct_CC
1896fi
1897
1898fi
1899
1900
1901test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1902See \`config.log' for more details." >&5
1903echo "$as_me: error: no acceptable C compiler found in \$PATH
1904See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1906
1907# Provide some information about the compiler.
1908echo "$as_me:$LINENO:" \
1909 "checking for C compiler version" >&5
1910ac_compiler=`set X $ac_compile; echo $2`
1911{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1912 (eval $ac_compiler --version </dev/null >&5) 2>&5
1913 ac_status=$?
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); }
1916{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1917 (eval $ac_compiler -v </dev/null >&5) 2>&5
1918 ac_status=$?
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920 (exit $ac_status); }
1921{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1922 (eval $ac_compiler -V </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926
1927cat >conftest.$ac_ext <<_ACEOF
1928/* confdefs.h. */
1929_ACEOF
1930cat confdefs.h >>conftest.$ac_ext
1931cat >>conftest.$ac_ext <<_ACEOF
1932/* end confdefs.h. */
1933
1934int
1935main ()
1936{
1937
1938 ;
1939 return 0;
1940}
1941_ACEOF
1942ac_clean_files_save=$ac_clean_files
1943ac_clean_files="$ac_clean_files a.out a.exe b.out"
1944# Try to create an executable without -o first, disregard a.out.
1945# It will help us diagnose broken compilers, and finding out an intuition
1946# of exeext.
1947echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1948echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1949ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1950if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1951 (eval $ac_link_default) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; then
1955 # Find the output, starting from the most likely. This scheme is
1956# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1957# resort.
1958
1959# Be careful to initialize this variable, since it used to be cached.
1960# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1961ac_cv_exeext=
1962# b.out is created by i960 compilers.
1963for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1964do
1965 test -f "$ac_file" || continue
1966 case $ac_file in
1967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1968 ;;
1969 conftest.$ac_ext )
1970 # This is the source file.
1971 ;;
1972 [ab].out )
1973 # We found the default executable, but exeext='' is most
1974 # certainly right.
1975 break;;
1976 *.* )
1977 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1978 # FIXME: I believe we export ac_cv_exeext for Libtool,
1979 # but it would be cool to find out if it's true. Does anybody
1980 # maintain Libtool? --akim.
1981 export ac_cv_exeext
1982 break;;
1983 * )
1984 break;;
1985 esac
1986done
1987else
1988 echo "$as_me: failed program was:" >&5
1989sed 's/^/| /' conftest.$ac_ext >&5
1990
1991{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1992See \`config.log' for more details." >&5
1993echo "$as_me: error: C compiler cannot create executables
1994See \`config.log' for more details." >&2;}
1995 { (exit 77); exit 77; }; }
1996fi
1997
1998ac_exeext=$ac_cv_exeext
1999echo "$as_me:$LINENO: result: $ac_file" >&5
2000echo "${ECHO_T}$ac_file" >&6
2001
2002# Check the compiler produces executables we can run. If not, either
2003# the compiler is broken, or we cross compile.
2004echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2005echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2006# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2007# If not cross compiling, check that we can run a simple program.
2008if test "$cross_compiling" != yes; then
2009 if { ac_try='./$ac_file'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 (eval $ac_try) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2015 cross_compiling=no
2016 else
2017 if test "$cross_compiling" = maybe; then
2018 cross_compiling=yes
2019 else
2020 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2021If you meant to cross compile, use \`--host'.
2022See \`config.log' for more details." >&5
2023echo "$as_me: error: cannot run C compiled programs.
2024If you meant to cross compile, use \`--host'.
2025See \`config.log' for more details." >&2;}
2026 { (exit 1); exit 1; }; }
2027 fi
2028 fi
2029fi
2030echo "$as_me:$LINENO: result: yes" >&5
2031echo "${ECHO_T}yes" >&6
2032
2033rm -f a.out a.exe conftest$ac_cv_exeext b.out
2034ac_clean_files=$ac_clean_files_save
2035# Check the compiler produces executables we can run. If not, either
2036# the compiler is broken, or we cross compile.
2037echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2038echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2039echo "$as_me:$LINENO: result: $cross_compiling" >&5
2040echo "${ECHO_T}$cross_compiling" >&6
2041
2042echo "$as_me:$LINENO: checking for suffix of executables" >&5
2043echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2045 (eval $ac_link) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; then
2049 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2050# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2051# work properly (i.e., refer to `conftest.exe'), while it won't with
2052# `rm'.
2053for ac_file in conftest.exe conftest conftest.*; do
2054 test -f "$ac_file" || continue
2055 case $ac_file in
2056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2057 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058 export ac_cv_exeext
2059 break;;
2060 * ) break;;
2061 esac
2062done
2063else
2064 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2065See \`config.log' for more details." >&5
2066echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2067See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2069fi
2070
2071rm -f conftest$ac_cv_exeext
2072echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2073echo "${ECHO_T}$ac_cv_exeext" >&6
2074
2075rm -f conftest.$ac_ext
2076EXEEXT=$ac_cv_exeext
2077ac_exeext=$EXEEXT
2078echo "$as_me:$LINENO: checking for suffix of object files" >&5
2079echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2080if test "${ac_cv_objext+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083 cat >conftest.$ac_ext <<_ACEOF
2084/* confdefs.h. */
2085_ACEOF
2086cat confdefs.h >>conftest.$ac_ext
2087cat >>conftest.$ac_ext <<_ACEOF
2088/* end confdefs.h. */
2089
2090int
2091main ()
2092{
2093
2094 ;
2095 return 0;
2096}
2097_ACEOF
2098rm -f conftest.o conftest.obj
2099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; then
2104 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2105 case $ac_file in
2106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2107 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2108 break;;
2109 esac
2110done
2111else
2112 echo "$as_me: failed program was:" >&5
2113sed 's/^/| /' conftest.$ac_ext >&5
2114
2115{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2116See \`config.log' for more details." >&5
2117echo "$as_me: error: cannot compute suffix of object files: cannot compile
2118See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2120fi
2121
2122rm -f conftest.$ac_cv_objext conftest.$ac_ext
2123fi
2124echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2125echo "${ECHO_T}$ac_cv_objext" >&6
2126OBJEXT=$ac_cv_objext
2127ac_objext=$OBJEXT
2128echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2129echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2130if test "${ac_cv_c_compiler_gnu+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133 cat >conftest.$ac_ext <<_ACEOF
2134/* confdefs.h. */
2135_ACEOF
2136cat confdefs.h >>conftest.$ac_ext
2137cat >>conftest.$ac_ext <<_ACEOF
2138/* end confdefs.h. */
2139
2140int
2141main ()
2142{
2143#ifndef __GNUC__
2144 choke me
2145#endif
2146
2147 ;
2148 return 0;
2149}
2150_ACEOF
2151rm -f conftest.$ac_objext
2152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>conftest.er1
2154 ac_status=$?
2155 grep -v '^ *+' conftest.er1 >conftest.err
2156 rm -f conftest.er1
2157 cat conftest.err >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); } &&
49c96104
SE
2160 { ac_try='test -z "$ac_c_werror_flag"
2161 || test ! -s conftest.err'
5464f5a1
NN
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 (eval $ac_try) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; } &&
2167 { ac_try='test -s conftest.$ac_objext'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2173 ac_compiler_gnu=yes
2174else
2175 echo "$as_me: failed program was:" >&5
2176sed 's/^/| /' conftest.$ac_ext >&5
2177
2178ac_compiler_gnu=no
2179fi
2180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181ac_cv_c_compiler_gnu=$ac_compiler_gnu
2182
2183fi
2184echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2185echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2186GCC=`test $ac_compiler_gnu = yes && echo yes`
2187ac_test_CFLAGS=${CFLAGS+set}
2188ac_save_CFLAGS=$CFLAGS
2189CFLAGS="-g"
2190echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2191echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2192if test "${ac_cv_prog_cc_g+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195 cat >conftest.$ac_ext <<_ACEOF
2196/* confdefs.h. */
2197_ACEOF
2198cat confdefs.h >>conftest.$ac_ext
2199cat >>conftest.$ac_ext <<_ACEOF
2200/* end confdefs.h. */
2201
2202int
2203main ()
2204{
2205
2206 ;
2207 return 0;
2208}
2209_ACEOF
2210rm -f conftest.$ac_objext
2211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212 (eval $ac_compile) 2>conftest.er1
2213 ac_status=$?
2214 grep -v '^ *+' conftest.er1 >conftest.err
2215 rm -f conftest.er1
2216 cat conftest.err >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); } &&
49c96104
SE
2219 { ac_try='test -z "$ac_c_werror_flag"
2220 || test ! -s conftest.err'
5464f5a1
NN
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; } &&
2226 { ac_try='test -s conftest.$ac_objext'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2232 ac_cv_prog_cc_g=yes
2233else
2234 echo "$as_me: failed program was:" >&5
2235sed 's/^/| /' conftest.$ac_ext >&5
2236
2237ac_cv_prog_cc_g=no
2238fi
2239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2240fi
2241echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2242echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2243if test "$ac_test_CFLAGS" = set; then
2244 CFLAGS=$ac_save_CFLAGS
2245elif test $ac_cv_prog_cc_g = yes; then
2246 if test "$GCC" = yes; then
2247 CFLAGS="-g -O2"
2248 else
2249 CFLAGS="-g"
2250 fi
2251else
2252 if test "$GCC" = yes; then
2253 CFLAGS="-O2"
2254 else
2255 CFLAGS=
2256 fi
2257fi
2258echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2259echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2260if test "${ac_cv_prog_cc_stdc+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262else
2263 ac_cv_prog_cc_stdc=no
2264ac_save_CC=$CC
2265cat >conftest.$ac_ext <<_ACEOF
2266/* confdefs.h. */
2267_ACEOF
2268cat confdefs.h >>conftest.$ac_ext
2269cat >>conftest.$ac_ext <<_ACEOF
2270/* end confdefs.h. */
2271#include <stdarg.h>
2272#include <stdio.h>
2273#include <sys/types.h>
2274#include <sys/stat.h>
2275/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2276struct buf { int x; };
2277FILE * (*rcsopen) (struct buf *, struct stat *, int);
2278static char *e (p, i)
2279 char **p;
2280 int i;
2281{
2282 return p[i];
2283}
2284static char *f (char * (*g) (char **, int), char **p, ...)
2285{
2286 char *s;
2287 va_list v;
2288 va_start (v,p);
2289 s = g (p, va_arg (v,int));
2290 va_end (v);
2291 return s;
2292}
2293
2294/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2295 function prototypes and stuff, but not '\xHH' hex character constants.
2296 These don't provoke an error unfortunately, instead are silently treated
2297 as 'x'. The following induces an error, until -std1 is added to get
2298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2299 array size at least. It's necessary to write '\x00'==0 to get something
2300 that's true only with -std1. */
2301int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2302
2303int test (int i, double x);
2304struct s1 {int (*f) (int a);};
2305struct s2 {int (*f) (double a);};
2306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2307int argc;
2308char **argv;
2309int
2310main ()
2311{
2312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2313 ;
2314 return 0;
2315}
2316_ACEOF
2317# Don't try gcc -ansi; that turns off useful extensions and
2318# breaks some systems' header files.
2319# AIX -qlanglvl=ansi
2320# Ultrix and OSF/1 -std1
2321# HP-UX 10.20 and later -Ae
2322# HP-UX older versions -Aa -D_HPUX_SOURCE
2323# SVR4 -Xc -D__EXTENSIONS__
2324for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2325do
2326 CC="$ac_save_CC $ac_arg"
2327 rm -f conftest.$ac_objext
2328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>conftest.er1
2330 ac_status=$?
2331 grep -v '^ *+' conftest.er1 >conftest.err
2332 rm -f conftest.er1
2333 cat conftest.err >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } &&
49c96104
SE
2336 { ac_try='test -z "$ac_c_werror_flag"
2337 || test ! -s conftest.err'
5464f5a1
NN
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 (eval $ac_try) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; } &&
2343 { ac_try='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 (eval $ac_try) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2349 ac_cv_prog_cc_stdc=$ac_arg
2350break
2351else
2352 echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355fi
2356rm -f conftest.err conftest.$ac_objext
2357done
2358rm -f conftest.$ac_ext conftest.$ac_objext
2359CC=$ac_save_CC
2360
2361fi
2362
2363case "x$ac_cv_prog_cc_stdc" in
2364 x|xno)
2365 echo "$as_me:$LINENO: result: none needed" >&5
2366echo "${ECHO_T}none needed" >&6 ;;
2367 *)
2368 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2369echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2370 CC="$CC $ac_cv_prog_cc_stdc" ;;
2371esac
2372
2373# Some people use a C++ compiler to compile C. Since we use `exit',
2374# in C++ we need to declare it. In case someone uses the same compiler
2375# for both compiling C and C++ we need to have the C++ compiler decide
2376# the declaration of exit, since it's the most demanding environment.
2377cat >conftest.$ac_ext <<_ACEOF
2378#ifndef __cplusplus
2379 choke me
2380#endif
2381_ACEOF
2382rm -f conftest.$ac_objext
2383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
49c96104
SE
2391 { ac_try='test -z "$ac_c_werror_flag"
2392 || test ! -s conftest.err'
5464f5a1
NN
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2404 for ac_declaration in \
2405 '' \
2406 'extern "C" void std::exit (int) throw (); using std::exit;' \
2407 'extern "C" void std::exit (int); using std::exit;' \
2408 'extern "C" void exit (int) throw ();' \
2409 'extern "C" void exit (int);' \
2410 'void exit (int);'
2411do
2412 cat >conftest.$ac_ext <<_ACEOF
2413/* confdefs.h. */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h. */
2418$ac_declaration
2419#include <stdlib.h>
2420int
2421main ()
2422{
2423exit (42);
2424 ;
2425 return 0;
2426}
2427_ACEOF
2428rm -f conftest.$ac_objext
2429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>conftest.er1
2431 ac_status=$?
2432 grep -v '^ *+' conftest.er1 >conftest.err
2433 rm -f conftest.er1
2434 cat conftest.err >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
49c96104
SE
2437 { ac_try='test -z "$ac_c_werror_flag"
2438 || test ! -s conftest.err'
5464f5a1
NN
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 (eval $ac_try) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2450 :
2451else
2452 echo "$as_me: failed program was:" >&5
2453sed 's/^/| /' conftest.$ac_ext >&5
2454
2455continue
2456fi
2457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 cat >conftest.$ac_ext <<_ACEOF
2459/* confdefs.h. */
2460_ACEOF
2461cat confdefs.h >>conftest.$ac_ext
2462cat >>conftest.$ac_ext <<_ACEOF
2463/* end confdefs.h. */
2464$ac_declaration
2465int
2466main ()
2467{
2468exit (42);
2469 ;
2470 return 0;
2471}
2472_ACEOF
2473rm -f conftest.$ac_objext
2474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>conftest.er1
2476 ac_status=$?
2477 grep -v '^ *+' conftest.er1 >conftest.err
2478 rm -f conftest.er1
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
49c96104
SE
2482 { ac_try='test -z "$ac_c_werror_flag"
2483 || test ! -s conftest.err'
5464f5a1
NN
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 (eval $ac_try) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; } &&
2489 { ac_try='test -s conftest.$ac_objext'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 (eval $ac_try) 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2495 break
2496else
2497 echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500fi
2501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2502done
2503rm -f conftest*
2504if test -n "$ac_declaration"; then
2505 echo '#ifdef __cplusplus' >>confdefs.h
2506 echo $ac_declaration >>confdefs.h
2507 echo '#endif' >>confdefs.h
2508fi
2509
2510else
2511 echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
2513
2514fi
2515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516ac_ext=c
2517ac_cpp='$CPP $CPPFLAGS'
2518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521
2522
f5385ebf
AM
2523echo "$as_me:$LINENO: checking for library containing strerror" >&5
2524echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2525if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
f5385ebf
AM
2528 ac_func_search_save_LIBS=$LIBS
2529ac_cv_search_strerror=no
5464f5a1
NN
2530cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h. */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h. */
2536
2537/* Override any gcc2 internal prototype to avoid an error. */
2538#ifdef __cplusplus
2539extern "C"
2540#endif
2541/* We use char because int might match the return type of a gcc2
2542 builtin and then its argument prototype would still apply. */
2543char strerror ();
2544int
2545main ()
2546{
2547strerror ();
2548 ;
2549 return 0;
2550}
2551_ACEOF
2552rm -f conftest.$ac_objext conftest$ac_exeext
2553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2554 (eval $ac_link) 2>conftest.er1
2555 ac_status=$?
2556 grep -v '^ *+' conftest.er1 >conftest.err
2557 rm -f conftest.er1
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
49c96104
SE
2561 { ac_try='test -z "$ac_c_werror_flag"
2562 || test ! -s conftest.err'
5464f5a1
NN
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest$ac_exeext'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 (eval $ac_try) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
f5385ebf 2574 ac_cv_search_strerror="none required"
5464f5a1
NN
2575else
2576 echo "$as_me: failed program was:" >&5
2577sed 's/^/| /' conftest.$ac_ext >&5
2578
5464f5a1
NN
2579fi
2580rm -f conftest.err conftest.$ac_objext \
2581 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2582if test "$ac_cv_search_strerror" = no; then
2583 for ac_lib in cposix; do
2584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2585 cat >conftest.$ac_ext <<_ACEOF
2586/* confdefs.h. */
2587_ACEOF
2588cat confdefs.h >>conftest.$ac_ext
2589cat >>conftest.$ac_ext <<_ACEOF
2590/* end confdefs.h. */
2591
2592/* Override any gcc2 internal prototype to avoid an error. */
2593#ifdef __cplusplus
2594extern "C"
2595#endif
2596/* We use char because int might match the return type of a gcc2
2597 builtin and then its argument prototype would still apply. */
2598char strerror ();
2599int
2600main ()
2601{
2602strerror ();
2603 ;
2604 return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext conftest$ac_exeext
2608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2609 (eval $ac_link) 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
49c96104
SE
2616 { ac_try='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
f5385ebf
AM
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest$ac_exeext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 ac_cv_search_strerror="-l$ac_lib"
2630break
2631else
2632 echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
5464f5a1 2635fi
f5385ebf
AM
2636rm -f conftest.err conftest.$ac_objext \
2637 conftest$ac_exeext conftest.$ac_ext
2638 done
5464f5a1 2639fi
f5385ebf
AM
2640LIBS=$ac_func_search_save_LIBS
2641fi
2642echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2643echo "${ECHO_T}$ac_cv_search_strerror" >&6
2644if test "$ac_cv_search_strerror" != no; then
2645 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2646
f5385ebf 2647fi
5464f5a1
NN
2648
2649
f5385ebf 2650am__api_version="1.9"
5464f5a1
NN
2651# Find a good install program. We prefer a C program (faster),
2652# so one script is as good as another. But avoid the broken or
2653# incompatible versions:
2654# SysV /etc/install, /usr/sbin/install
2655# SunOS /usr/etc/install
2656# IRIX /sbin/install
2657# AIX /bin/install
2658# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2659# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2660# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2661# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2662# OS/2's system install, which has a completely different semantic
252b5132 2663# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2664echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2665echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2666if test -z "$INSTALL"; then
5464f5a1
NN
2667if test "${ac_cv_path_install+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2669else
5464f5a1
NN
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671for as_dir in $PATH
2672do
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 # Account for people who put trailing slashes in PATH elements.
2676case $as_dir/ in
2677 ./ | .// | /cC/* | \
2678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2679 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2680 /usr/ucb/* ) ;;
2681 *)
2682 # OSF1 and SCO ODT 3.0 have their own names for install.
2683 # Don't use installbsd from OSF since it installs stuff as root
2684 # by default.
2685 for ac_prog in ginstall scoinst install; do
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2688 if test $ac_prog = install &&
5464f5a1 2689 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2690 # AIX install. It has an incompatible calling convention.
2691 :
5464f5a1
NN
2692 elif test $ac_prog = install &&
2693 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2694 # program-specific install script used by HP pwplus--don't use.
2695 :
252b5132 2696 else
5464f5a1
NN
2697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2698 break 3
252b5132
RH
2699 fi
2700 fi
2701 done
5464f5a1
NN
2702 done
2703 ;;
2704esac
2705done
2706
252b5132
RH
2707
2708fi
2709 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2710 INSTALL=$ac_cv_path_install
252b5132
RH
2711 else
2712 # As a last resort, use the slow shell script. We don't cache a
2713 # path for INSTALL within a source directory, because that will
2714 # break other packages using the cache if that directory is
2715 # removed, or if the path is relative.
5464f5a1 2716 INSTALL=$ac_install_sh
252b5132
RH
2717 fi
2718fi
5464f5a1
NN
2719echo "$as_me:$LINENO: result: $INSTALL" >&5
2720echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2721
2722# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2723# It thinks the first close brace ends the variable substitution.
2724test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2725
5464f5a1 2726test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2727
2728test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2729
5464f5a1
NN
2730echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2731echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2732# Just in case
2733sleep 1
f5385ebf 2734echo timestamp > conftest.file
252b5132
RH
2735# Do `set' in a subshell so we don't clobber the current shell's
2736# arguments. Must try -L first in case configure is actually a
2737# symlink; some systems play weird games with the mod time of symlinks
2738# (eg FreeBSD returns the mod time of the symlink's containing
2739# directory).
2740if (
f5385ebf 2741 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2742 if test "$*" = "X"; then
2743 # -L didn't work.
f5385ebf 2744 set X `ls -t $srcdir/configure conftest.file`
252b5132 2745 fi
f5385ebf
AM
2746 rm -f conftest.file
2747 if test "$*" != "X $srcdir/configure conftest.file" \
2748 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2749
2750 # If neither matched, then we have a broken ls. This can happen
2751 # if, for instance, CONFIG_SHELL is bash and it inherits a
2752 # broken ls alias from the environment. This has actually
2753 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2754 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2755alias in your environment" >&5
2756echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2757alias in your environment" >&2;}
2758 { (exit 1); exit 1; }; }
252b5132
RH
2759 fi
2760
f5385ebf 2761 test "$2" = conftest.file
252b5132
RH
2762 )
2763then
2764 # Ok.
2765 :
2766else
5464f5a1
NN
2767 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2768Check your system clock" >&5
2769echo "$as_me: error: newly created file is older than distributed files!
2770Check your system clock" >&2;}
2771 { (exit 1); exit 1; }; }
252b5132 2772fi
5464f5a1
NN
2773echo "$as_me:$LINENO: result: yes" >&5
2774echo "${ECHO_T}yes" >&6
252b5132 2775test "$program_prefix" != NONE &&
5464f5a1 2776 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2777# Use a double $ so make ignores it.
2778test "$program_suffix" != NONE &&
5464f5a1
NN
2779 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2780# Double any \ or $. echo might interpret backslashes.
2781# By default was `s,x,x', remove it if useless.
2782cat <<\_ACEOF >conftest.sed
2783s/[\\$]/&&/g;s/;s,x,x,$//
2784_ACEOF
2785program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2786rm conftest.sed
2787
f5385ebf
AM
2788# expand $ac_aux_dir to an absolute path
2789am_aux_dir=`cd $ac_aux_dir && pwd`
2790
2791test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2792# Use eval to expand $SHELL
2793if eval "$MISSING --run true"; then
2794 am_missing_run="$MISSING --run "
2795else
2796 am_missing_run=
2797 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2798echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2799fi
2800
2801if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2802 # We used to keeping the `.' as first argument, in order to
2803 # allow $(mkdir_p) to be used without argument. As in
2804 # $(mkdir_p) $(somedir)
2805 # where $(somedir) is conditionally defined. However this is wrong
2806 # for two reasons:
2807 # 1. if the package is installed by a user who cannot write `.'
2808 # make install will fail,
2809 # 2. the above comment should most certainly read
2810 # $(mkdir_p) $(DESTDIR)$(somedir)
2811 # so it does not work when $(somedir) is undefined and
2812 # $(DESTDIR) is not.
2813 # To support the latter case, we have to write
2814 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2815 # so the `.' trick is pointless.
2816 mkdir_p='mkdir -p --'
2817else
2818 # On NextStep and OpenStep, the `mkdir' command does not
2819 # recognize any option. It will interpret all options as
2820 # directories to create, and then abort because `.' already
2821 # exists.
2822 for d in ./-p ./--version;
2823 do
2824 test -d $d && rmdir $d
2825 done
2826 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2827 if test -f "$ac_aux_dir/mkinstalldirs"; then
2828 mkdir_p='$(mkinstalldirs)'
2829 else
2830 mkdir_p='$(install_sh) -d'
2831 fi
2832fi
2833
2834for ac_prog in gawk mawk nawk awk
2835do
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837set dummy $ac_prog; ac_word=$2
2838echo "$as_me:$LINENO: checking for $ac_word" >&5
2839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840if test "${ac_cv_prog_AWK+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842else
2843 if test -n "$AWK"; then
2844 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_AWK="$ac_prog"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857done
2858done
2859
2860fi
2861fi
2862AWK=$ac_cv_prog_AWK
2863if test -n "$AWK"; then
2864 echo "$as_me:$LINENO: result: $AWK" >&5
2865echo "${ECHO_T}$AWK" >&6
2866else
2867 echo "$as_me:$LINENO: result: no" >&5
2868echo "${ECHO_T}no" >&6
2869fi
2870
2871 test -n "$AWK" && break
2872done
2873
5464f5a1
NN
2874echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2875echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2876set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2877if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879else
2880 cat >conftest.make <<\_ACEOF
252b5132 2881all:
5464f5a1
NN
2882 @echo 'ac_maketemp="$(MAKE)"'
2883_ACEOF
252b5132 2884# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2885eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2886if test -n "$ac_maketemp"; then
2887 eval ac_cv_prog_make_${ac_make}_set=yes
2888else
2889 eval ac_cv_prog_make_${ac_make}_set=no
2890fi
5464f5a1 2891rm -f conftest.make
252b5132
RH
2892fi
2893if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2894 echo "$as_me:$LINENO: result: yes" >&5
2895echo "${ECHO_T}yes" >&6
252b5132
RH
2896 SET_MAKE=
2897else
5464f5a1
NN
2898 echo "$as_me:$LINENO: result: no" >&5
2899echo "${ECHO_T}no" >&6
252b5132
RH
2900 SET_MAKE="MAKE=${MAKE-make}"
2901fi
2902
f5385ebf
AM
2903rm -rf .tst 2>/dev/null
2904mkdir .tst 2>/dev/null
2905if test -d .tst; then
2906 am__leading_dot=.
2907else
2908 am__leading_dot=_
2909fi
2910rmdir .tst 2>/dev/null
2911
2912DEPDIR="${am__leading_dot}deps"
2913
2914 ac_config_commands="$ac_config_commands depfiles"
2915
2916
2917am_make=${MAKE-make}
2918cat > confinc << 'END'
2919am__doit:
2920 @echo done
2921.PHONY: am__doit
2922END
2923# If we don't find an include directive, just comment out the code.
2924echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2925echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2926am__include="#"
2927am__quote=
2928_am_result=none
2929# First try GNU make style include.
2930echo "include confinc" > confmf
2931# We grep out `Entering directory' and `Leaving directory'
2932# messages which can occur if `w' ends up in MAKEFLAGS.
2933# In particular we don't look at `^make:' because GNU make might
2934# be invoked under some other name (usually "gmake"), in which
2935# case it prints its new name instead of `make'.
2936if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2937 am__include=include
2938 am__quote=
2939 _am_result=GNU
2940fi
2941# Now try BSD make style include.
2942if test "$am__include" = "#"; then
2943 echo '.include "confinc"' > confmf
2944 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2945 am__include=.include
2946 am__quote="\""
2947 _am_result=BSD
2948 fi
2949fi
2950
2951
2952echo "$as_me:$LINENO: result: $_am_result" >&5
2953echo "${ECHO_T}$_am_result" >&6
2954rm -f confinc confmf
2955
2956# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2957if test "${enable_dependency_tracking+set}" = set; then
2958 enableval="$enable_dependency_tracking"
2959
2960fi;
2961if test "x$enable_dependency_tracking" != xno; then
2962 am_depcomp="$ac_aux_dir/depcomp"
2963 AMDEPBACKSLASH='\'
2964fi
2965
2966
2967if test "x$enable_dependency_tracking" != xno; then
2968 AMDEP_TRUE=
2969 AMDEP_FALSE='#'
2970else
2971 AMDEP_TRUE='#'
2972 AMDEP_FALSE=
2973fi
6be7c12c 2974
252b5132 2975
252b5132 2976
f5385ebf
AM
2977# test to see if srcdir already configured
2978if test "`cd $srcdir && pwd`" != "`pwd`" &&
2979 test -f $srcdir/config.status; then
5464f5a1
NN
2980 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2981echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2982 { (exit 1); exit 1; }; }
252b5132 2983fi
5464f5a1 2984
f5385ebf
AM
2985# test whether we have cygpath
2986if test -z "$CYGPATH_W"; then
2987 if (cygpath --version) >/dev/null 2>/dev/null; then
2988 CYGPATH_W='cygpath -w'
2989 else
2990 CYGPATH_W=echo
2991 fi
2992fi
2993
2994
2995# Define the identity of the package.
2996 PACKAGE=bfd
be118e79 2997 VERSION=2.18.50
f5385ebf
AM
2998
2999
5464f5a1 3000cat >>confdefs.h <<_ACEOF
252b5132 3001#define PACKAGE "$PACKAGE"
5464f5a1 3002_ACEOF
252b5132 3003
5464f5a1
NN
3004
3005cat >>confdefs.h <<_ACEOF
252b5132 3006#define VERSION "$VERSION"
5464f5a1 3007_ACEOF
252b5132 3008
f5385ebf
AM
3009# Some tools Automake needs.
3010
3011ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3012
3013
3014AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3015
3016
3017AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3018
3019
3020AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3021
3022
3023MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 3024
f5385ebf 3025install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 3026
f5385ebf
AM
3027# Installed binaries are usually stripped using `strip' when the user
3028# run `make install-strip'. However `strip' might not be the right
3029# tool to use in cross-compilation environments, therefore Automake
3030# will honor the `STRIP' environment variable to overrule this program.
3031if test "$cross_compiling" != no; then
3032 if test -n "$ac_tool_prefix"; then
3033 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3034set dummy ${ac_tool_prefix}strip; ac_word=$2
3035echo "$as_me:$LINENO: checking for $ac_word" >&5
3036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037if test "${ac_cv_prog_STRIP+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3039else
3040 if test -n "$STRIP"; then
3041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3042else
f5385ebf
AM
3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044for as_dir in $PATH
3045do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3053 fi
3054done
3055done
3056
3057fi
3058fi
3059STRIP=$ac_cv_prog_STRIP
3060if test -n "$STRIP"; then
3061 echo "$as_me:$LINENO: result: $STRIP" >&5
3062echo "${ECHO_T}$STRIP" >&6
3063else
3064 echo "$as_me:$LINENO: result: no" >&5
3065echo "${ECHO_T}no" >&6
3066fi
3067
252b5132 3068fi
f5385ebf
AM
3069if test -z "$ac_cv_prog_STRIP"; then
3070 ac_ct_STRIP=$STRIP
3071 # Extract the first word of "strip", so it can be a program name with args.
3072set dummy strip; ac_word=$2
3073echo "$as_me:$LINENO: checking for $ac_word" >&5
3074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077else
3078 if test -n "$ac_ct_STRIP"; then
3079 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_ac_ct_STRIP="strip"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092done
3093done
252b5132 3094
f5385ebf
AM
3095 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3096fi
3097fi
3098ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3099if test -n "$ac_ct_STRIP"; then
3100 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3101echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3102else
f5385ebf
AM
3103 echo "$as_me:$LINENO: result: no" >&5
3104echo "${ECHO_T}no" >&6
252b5132
RH
3105fi
3106
f5385ebf 3107 STRIP=$ac_ct_STRIP
252b5132 3108else
f5385ebf
AM
3109 STRIP="$ac_cv_prog_STRIP"
3110fi
3111
252b5132 3112fi
f5385ebf
AM
3113INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3114
3115# We need awk for the "check" target. The system "awk" is bad on
3116# some platforms.
3117# Always define AMTAR for backward compatibility.
3118
3119AMTAR=${AMTAR-"${am_missing_run}tar"}
3120
3121am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3122
252b5132 3123
f5385ebf
AM
3124
3125
3126depcc="$CC" am_compiler_list=
3127
3128echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3129echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3130if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3132else
f5385ebf
AM
3133 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3134 # We make a subdir and do the tests there. Otherwise we can end up
3135 # making bogus files that we don't know about and never remove. For
3136 # instance it was reported that on HP-UX the gcc test will end up
3137 # making a dummy file named `D' -- because `-MD' means `put the output
3138 # in D'.
3139 mkdir conftest.dir
3140 # Copy depcomp to subdir because otherwise we won't find it if we're
3141 # using a relative directory.
3142 cp "$am_depcomp" conftest.dir
3143 cd conftest.dir
3144 # We will build objects and dependencies in a subdirectory because
3145 # it helps to detect inapplicable dependency modes. For instance
3146 # both Tru64's cc and ICC support -MD to output dependencies as a
3147 # side effect of compilation, but ICC will put the dependencies in
3148 # the current directory while Tru64 will put them in the object
3149 # directory.
3150 mkdir sub
3151
3152 am_cv_CC_dependencies_compiler_type=none
3153 if test "$am_compiler_list" = ""; then
3154 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3155 fi
3156 for depmode in $am_compiler_list; do
3157 # Setup a source with many dependencies, because some compilers
3158 # like to wrap large dependency lists on column 80 (with \), and
3159 # we should not choose a depcomp mode which is confused by this.
3160 #
3161 # We need to recreate these files for each test, as the compiler may
3162 # overwrite some of them when testing with obscure command lines.
3163 # This happens at least with the AIX C compiler.
3164 : > sub/conftest.c
3165 for i in 1 2 3 4 5 6; do
3166 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3167 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3168 # Solaris 8's {/usr,}/bin/sh.
3169 touch sub/conftst$i.h
3170 done
3171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3172
3173 case $depmode in
3174 nosideeffect)
3175 # after this tag, mechanisms are not by side-effect, so they'll
3176 # only be used when explicitly requested
3177 if test "x$enable_dependency_tracking" = xyes; then
3178 continue
3179 else
3180 break
3181 fi
3182 ;;
3183 none) break ;;
3184 esac
3185 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3186 # mode. It turns out that the SunPro C++ compiler does not properly
3187 # handle `-M -o', and we need to detect this.
3188 if depmode=$depmode \
3189 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3190 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3191 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3192 >/dev/null 2>conftest.err &&
3193 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3194 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3195 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3196 # icc doesn't choke on unknown options, it will just issue warnings
3197 # or remarks (even with -Werror). So we grep stderr for any message
3198 # that says an option was ignored or not supported.
3199 # When given -MP, icc 7.0 and 7.1 complain thusly:
3200 # icc: Command line warning: ignoring option '-M'; no argument required
3201 # The diagnosis changed in icc 8.0:
3202 # icc: Command line remark: option '-MP' not supported
3203 if (grep 'ignoring option' conftest.err ||
3204 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3205 am_cv_CC_dependencies_compiler_type=$depmode
3206 break
3207 fi
3208 fi
3209 done
3210
3211 cd ..
3212 rm -rf conftest.dir
3213else
3214 am_cv_CC_dependencies_compiler_type=none
3215fi
3216
252b5132 3217fi
f5385ebf
AM
3218echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3219echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3220CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3221
f5385ebf
AM
3222
3223
3224if
3225 test "x$enable_dependency_tracking" != xno \
3226 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3227 am__fastdepCC_TRUE=
3228 am__fastdepCC_FALSE='#'
252b5132 3229else
f5385ebf
AM
3230 am__fastdepCC_TRUE='#'
3231 am__fastdepCC_FALSE=
252b5132
RH
3232fi
3233
6be7c12c 3234
e43d48cc 3235
f5385ebf 3236
5464f5a1
NN
3237if test -n "$ac_tool_prefix"; then
3238 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3239set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3240echo "$as_me:$LINENO: checking for $ac_word" >&5
3241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242if test "${ac_cv_prog_AR+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3244else
3245 if test -n "$AR"; then
3246 ac_cv_prog_AR="$AR" # Let the user override the test.
3247else
5464f5a1
NN
3248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249for as_dir in $PATH
3250do
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_AR="${ac_tool_prefix}ar"
3256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3258 fi
3259done
3260done
3261
252b5132
RH
3262fi
3263fi
5464f5a1 3264AR=$ac_cv_prog_AR
252b5132 3265if test -n "$AR"; then
5464f5a1
NN
3266 echo "$as_me:$LINENO: result: $AR" >&5
3267echo "${ECHO_T}$AR" >&6
252b5132 3268else
5464f5a1
NN
3269 echo "$as_me:$LINENO: result: no" >&5
3270echo "${ECHO_T}no" >&6
3271fi
3272
252b5132 3273fi
5464f5a1
NN
3274if test -z "$ac_cv_prog_AR"; then
3275 ac_ct_AR=$AR
3276 # Extract the first word of "ar", so it can be a program name with args.
3277set dummy ar; ac_word=$2
3278echo "$as_me:$LINENO: checking for $ac_word" >&5
3279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283 if test -n "$ac_ct_AR"; then
3284 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3285else
3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_ac_ct_AR="ar"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297done
3298done
252b5132 3299
5464f5a1
NN
3300fi
3301fi
3302ac_ct_AR=$ac_cv_prog_ac_ct_AR
3303if test -n "$ac_ct_AR"; then
3304 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3305echo "${ECHO_T}$ac_ct_AR" >&6
3306else
3307 echo "$as_me:$LINENO: result: no" >&5
3308echo "${ECHO_T}no" >&6
3309fi
252b5132 3310
5464f5a1
NN
3311 AR=$ac_ct_AR
3312else
3313 AR="$ac_cv_prog_AR"
3314fi
6be7c12c 3315
5464f5a1
NN
3316if test -n "$ac_tool_prefix"; then
3317 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3318set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3319echo "$as_me:$LINENO: checking for $ac_word" >&5
3320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321if test "${ac_cv_prog_RANLIB+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3323else
3324 if test -n "$RANLIB"; then
3325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3326else
5464f5a1
NN
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338done
3339done
3340
252b5132
RH
3341fi
3342fi
5464f5a1 3343RANLIB=$ac_cv_prog_RANLIB
252b5132 3344if test -n "$RANLIB"; then
5464f5a1
NN
3345 echo "$as_me:$LINENO: result: $RANLIB" >&5
3346echo "${ECHO_T}$RANLIB" >&6
252b5132 3347else
5464f5a1
NN
3348 echo "$as_me:$LINENO: result: no" >&5
3349echo "${ECHO_T}no" >&6
252b5132
RH
3350fi
3351
5464f5a1 3352fi
252b5132 3353if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3354 ac_ct_RANLIB=$RANLIB
252b5132
RH
3355 # Extract the first word of "ranlib", so it can be a program name with args.
3356set dummy ranlib; ac_word=$2
5464f5a1
NN
3357echo "$as_me:$LINENO: checking for $ac_word" >&5
3358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3361else
5464f5a1
NN
3362 if test -n "$ac_ct_RANLIB"; then
3363 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3364else
5464f5a1
NN
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_ac_ct_RANLIB="ranlib"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376done
3377done
3378
3379 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3380fi
3381fi
5464f5a1
NN
3382ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3383if test -n "$ac_ct_RANLIB"; then
3384 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3385echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3386else
5464f5a1
NN
3387 echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
252b5132
RH
3389fi
3390
5464f5a1 3391 RANLIB=$ac_ct_RANLIB
252b5132 3392else
5464f5a1 3393 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3394fi
3395
252b5132
RH
3396
3397# Check whether --enable-shared or --disable-shared was given.
3398if test "${enable_shared+set}" = set; then
3399 enableval="$enable_shared"
3400 p=${PACKAGE-default}
d7040cdb
SE
3401 case $enableval in
3402 yes) enable_shared=yes ;;
3403 no) enable_shared=no ;;
3404 *)
3405 enable_shared=no
3406 # Look at the argument we got. We use all the common list separators.
3407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3408 for pkg in $enableval; do
3409 IFS="$lt_save_ifs"
3410 if test "X$pkg" = "X$p"; then
3411 enable_shared=yes
3412 fi
3413 done
3414 IFS="$lt_save_ifs"
3415 ;;
3416 esac
252b5132
RH
3417else
3418 enable_shared=no
5464f5a1 3419fi;
252b5132 3420
d7040cdb
SE
3421
3422
3423
3424
3425
3426
3427
3428
cfbc9945
SE
3429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434if test -n "$ac_tool_prefix"; then
3435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3436set dummy ${ac_tool_prefix}gcc; ac_word=$2
3437echo "$as_me:$LINENO: checking for $ac_word" >&5
3438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3439if test "${ac_cv_prog_CC+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3441else
cfbc9945
SE
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 3444else
cfbc9945
SE
3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH
3447do
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3455 fi
3456done
3457done
c5d1701e 3458
cfbc9945
SE
3459fi
3460fi
3461CC=$ac_cv_prog_CC
3462if test -n "$CC"; then
3463 echo "$as_me:$LINENO: result: $CC" >&5
3464echo "${ECHO_T}$CC" >&6
252b5132 3465else
cfbc9945
SE
3466 echo "$as_me:$LINENO: result: no" >&5
3467echo "${ECHO_T}no" >&6
252b5132 3468fi
cfbc9945
SE
3469
3470fi
3471if test -z "$ac_cv_prog_CC"; then
3472 ac_ct_CC=$CC
3473 # Extract the first word of "gcc", so it can be a program name with args.
3474set dummy gcc; ac_word=$2
3475echo "$as_me:$LINENO: checking for $ac_word" >&5
3476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3478 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3479else
cfbc9945
SE
3480 if test -n "$ac_ct_CC"; then
3481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3482else
cfbc9945
SE
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_ac_ct_CC="gcc"
3491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494done
3495done
3496
252b5132
RH
3497fi
3498fi
cfbc9945
SE
3499ac_ct_CC=$ac_cv_prog_ac_ct_CC
3500if test -n "$ac_ct_CC"; then
3501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3502echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3503else
5464f5a1
NN
3504 echo "$as_me:$LINENO: result: no" >&5
3505echo "${ECHO_T}no" >&6
252b5132 3506fi
cfbc9945
SE
3507
3508 CC=$ac_ct_CC
3509else
3510 CC="$ac_cv_prog_CC"
3511fi
3512
3513if test -z "$CC"; then
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3516set dummy ${ac_tool_prefix}cc; ac_word=$2
3517echo "$as_me:$LINENO: checking for $ac_word" >&5
3518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3520 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3521else
cfbc9945
SE
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3524else
cfbc9945
SE
3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526for as_dir in $PATH
3527do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_CC="${ac_tool_prefix}cc"
3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3535 fi
3536done
3537done
3538
252b5132
RH
3539fi
3540fi
cfbc9945
SE
3541CC=$ac_cv_prog_CC
3542if test -n "$CC"; then
3543 echo "$as_me:$LINENO: result: $CC" >&5
3544echo "${ECHO_T}$CC" >&6
ac48eca1 3545else
cfbc9945
SE
3546 echo "$as_me:$LINENO: result: no" >&5
3547echo "${ECHO_T}no" >&6
ac48eca1 3548fi
ac48eca1 3549
cfbc9945
SE
3550fi
3551if test -z "$ac_cv_prog_CC"; then
3552 ac_ct_CC=$CC
3553 # Extract the first word of "cc", so it can be a program name with args.
3554set dummy cc; ac_word=$2
3555echo "$as_me:$LINENO: checking for $ac_word" >&5
3556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3558 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3559else
cfbc9945
SE
3560 if test -n "$ac_ct_CC"; then
3561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3562else
cfbc9945
SE
3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564for as_dir in $PATH
3565do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_ac_ct_CC="cc"
3571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3573 fi
3574done
3575done
3576
252b5132 3577fi
cfbc9945
SE
3578fi
3579ac_ct_CC=$ac_cv_prog_ac_ct_CC
3580if test -n "$ac_ct_CC"; then
3581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3582echo "${ECHO_T}$ac_ct_CC" >&6
3583else
3584 echo "$as_me:$LINENO: result: no" >&5
3585echo "${ECHO_T}no" >&6
252b5132
RH
3586fi
3587
cfbc9945
SE
3588 CC=$ac_ct_CC
3589else
3590 CC="$ac_cv_prog_CC"
3591fi
252b5132 3592
cfbc9945
SE
3593fi
3594if test -z "$CC"; then
3595 # Extract the first word of "cc", so it can be a program name with args.
3596set dummy cc; ac_word=$2
3597echo "$as_me:$LINENO: checking for $ac_word" >&5
3598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3599if test "${ac_cv_prog_CC+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3601else
cfbc9945
SE
3602 if test -n "$CC"; then
3603 ac_cv_prog_CC="$CC" # Let the user override the test.
3604else
3605 ac_prog_rejected=no
3606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607for as_dir in $PATH
3608do
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3614 ac_prog_rejected=yes
3615 continue
3616 fi
3617 ac_cv_prog_CC="cc"
3618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 break 2
3620 fi
3621done
3622done
3623
3624if test $ac_prog_rejected = yes; then
3625 # We found a bogon in the path, so make sure we never use it.
3626 set dummy $ac_cv_prog_CC
3627 shift
3628 if test $# != 0; then
3629 # We chose a different compiler from the bogus one.
3630 # However, it has the same basename, so the bogon will be chosen
3631 # first if we set CC to just the basename; use the full file name.
3632 shift
3633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3634 fi
3635fi
3636fi
3637fi
3638CC=$ac_cv_prog_CC
3639if test -n "$CC"; then
3640 echo "$as_me:$LINENO: result: $CC" >&5
3641echo "${ECHO_T}$CC" >&6
3642else
3643 echo "$as_me:$LINENO: result: no" >&5
3644echo "${ECHO_T}no" >&6
252b5132
RH
3645fi
3646
cfbc9945
SE
3647fi
3648if test -z "$CC"; then
3649 if test -n "$ac_tool_prefix"; then
3650 for ac_prog in cl
3651 do
3652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3654echo "$as_me:$LINENO: checking for $ac_word" >&5
3655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3656if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3657 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3658else
cfbc9945
SE
3659 if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3661else
3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 break 2
3672 fi
3673done
3674done
ac48eca1 3675
cfbc9945
SE
3676fi
3677fi
3678CC=$ac_cv_prog_CC
3679if test -n "$CC"; then
3680 echo "$as_me:$LINENO: result: $CC" >&5
3681echo "${ECHO_T}$CC" >&6
3682else
3683 echo "$as_me:$LINENO: result: no" >&5
3684echo "${ECHO_T}no" >&6
3685fi
ac48eca1 3686
cfbc9945
SE
3687 test -n "$CC" && break
3688 done
3689fi
3690if test -z "$CC"; then
3691 ac_ct_CC=$CC
3692 for ac_prog in cl
3693do
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695set dummy $ac_prog; ac_word=$2
3696echo "$as_me:$LINENO: checking for $ac_word" >&5
3697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
3701 if test -n "$ac_ct_CC"; then
3702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703else
3704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705for as_dir in $PATH
3706do
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_ac_ct_CC="$ac_prog"
3712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3714 fi
3715done
3716done
ac48eca1 3717
cfbc9945
SE
3718fi
3719fi
3720ac_ct_CC=$ac_cv_prog_ac_ct_CC
3721if test -n "$ac_ct_CC"; then
3722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3723echo "${ECHO_T}$ac_ct_CC" >&6
3724else
3725 echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6
3727fi
ac48eca1 3728
cfbc9945
SE
3729 test -n "$ac_ct_CC" && break
3730done
ac48eca1 3731
cfbc9945
SE
3732 CC=$ac_ct_CC
3733fi
55c80943 3734
cfbc9945 3735fi
ac48eca1 3736
ac48eca1 3737
cfbc9945
SE
3738test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3739See \`config.log' for more details." >&5
3740echo "$as_me: error: no acceptable C compiler found in \$PATH
3741See \`config.log' for more details." >&2;}
3742 { (exit 1); exit 1; }; }
ac48eca1 3743
cfbc9945
SE
3744# Provide some information about the compiler.
3745echo "$as_me:$LINENO:" \
3746 "checking for C compiler version" >&5
3747ac_compiler=`set X $ac_compile; echo $2`
3748{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3749 (eval $ac_compiler --version </dev/null >&5) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }
3753{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3754 (eval $ac_compiler -v </dev/null >&5) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }
3758{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3759 (eval $ac_compiler -V </dev/null >&5) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }
ac48eca1 3763
cfbc9945
SE
3764echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3765echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3766if test "${ac_cv_c_compiler_gnu+set}" = set; then
5464f5a1 3767 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3768else
cfbc9945
SE
3769 cat >conftest.$ac_ext <<_ACEOF
3770/* confdefs.h. */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h. */
ac48eca1 3775
cfbc9945
SE
3776int
3777main ()
3778{
3779#ifndef __GNUC__
3780 choke me
3781#endif
5464f5a1 3782
cfbc9945
SE
3783 ;
3784 return 0;
3785}
3786_ACEOF
3787rm -f conftest.$ac_objext
3788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789 (eval $ac_compile) 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } &&
3796 { ac_try='test -z "$ac_c_werror_flag"
3797 || test ! -s conftest.err'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 (eval $ac_try) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; } &&
3803 { ac_try='test -s conftest.$ac_objext'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 (eval $ac_try) 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; }; then
3809 ac_compiler_gnu=yes
ac48eca1 3810else
cfbc9945
SE
3811 echo "$as_me: failed program was:" >&5
3812sed 's/^/| /' conftest.$ac_ext >&5
3813
3814ac_compiler_gnu=no
ac48eca1 3815fi
cfbc9945
SE
3816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3817ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3818
5464f5a1 3819fi
cfbc9945
SE
3820echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3821echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3822GCC=`test $ac_compiler_gnu = yes && echo yes`
3823ac_test_CFLAGS=${CFLAGS+set}
3824ac_save_CFLAGS=$CFLAGS
3825CFLAGS="-g"
3826echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3827echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3828if test "${ac_cv_prog_cc_g+set}" = set; then
5464f5a1 3829 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3830else
cfbc9945
SE
3831 cat >conftest.$ac_ext <<_ACEOF
3832/* confdefs.h. */
3833_ACEOF
3834cat confdefs.h >>conftest.$ac_ext
3835cat >>conftest.$ac_ext <<_ACEOF
3836/* end confdefs.h. */
3837
3838int
3839main ()
3840{
3841
3842 ;
3843 return 0;
3844}
3845_ACEOF
3846rm -f conftest.$ac_objext
3847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848 (eval $ac_compile) 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } &&
3855 { ac_try='test -z "$ac_c_werror_flag"
3856 || test ! -s conftest.err'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 ac_cv_prog_cc_g=yes
6be7c12c 3869else
cfbc9945
SE
3870 echo "$as_me: failed program was:" >&5
3871sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3872
cfbc9945 3873ac_cv_prog_cc_g=no
ac48eca1 3874fi
cfbc9945 3875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3876fi
cfbc9945
SE
3877echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3878echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3879if test "$ac_test_CFLAGS" = set; then
3880 CFLAGS=$ac_save_CFLAGS
3881elif test $ac_cv_prog_cc_g = yes; then
3882 if test "$GCC" = yes; then
3883 CFLAGS="-g -O2"
3884 else
3885 CFLAGS="-g"
3886 fi
ac48eca1 3887else
cfbc9945
SE
3888 if test "$GCC" = yes; then
3889 CFLAGS="-O2"
3890 else
3891 CFLAGS=
3892 fi
ac48eca1 3893fi
cfbc9945
SE
3894echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3895echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3896if test "${ac_cv_prog_cc_stdc+set}" = set; then
5464f5a1 3897 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3898else
cfbc9945
SE
3899 ac_cv_prog_cc_stdc=no
3900ac_save_CC=$CC
3901cat >conftest.$ac_ext <<_ACEOF
3902/* confdefs.h. */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h. */
3907#include <stdarg.h>
3908#include <stdio.h>
3909#include <sys/types.h>
3910#include <sys/stat.h>
3911/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3912struct buf { int x; };
3913FILE * (*rcsopen) (struct buf *, struct stat *, int);
3914static char *e (p, i)
3915 char **p;
3916 int i;
3917{
3918 return p[i];
3919}
3920static char *f (char * (*g) (char **, int), char **p, ...)
3921{
3922 char *s;
3923 va_list v;
3924 va_start (v,p);
3925 s = g (p, va_arg (v,int));
3926 va_end (v);
3927 return s;
3928}
5464f5a1 3929
cfbc9945
SE
3930/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3931 function prototypes and stuff, but not '\xHH' hex character constants.
3932 These don't provoke an error unfortunately, instead are silently treated
3933 as 'x'. The following induces an error, until -std1 is added to get
3934 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3935 array size at least. It's necessary to write '\x00'==0 to get something
3936 that's true only with -std1. */
3937int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3938
3939int test (int i, double x);
3940struct s1 {int (*f) (int a);};
3941struct s2 {int (*f) (double a);};
3942int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3943int argc;
3944char **argv;
3945int
3946main ()
3947{
3948return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3949 ;
3950 return 0;
3951}
3952_ACEOF
3953# Don't try gcc -ansi; that turns off useful extensions and
3954# breaks some systems' header files.
3955# AIX -qlanglvl=ansi
3956# Ultrix and OSF/1 -std1
3957# HP-UX 10.20 and later -Ae
3958# HP-UX older versions -Aa -D_HPUX_SOURCE
3959# SVR4 -Xc -D__EXTENSIONS__
3960for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3961do
3962 CC="$ac_save_CC $ac_arg"
3963 rm -f conftest.$ac_objext
3964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965 (eval $ac_compile) 2>conftest.er1
3966 ac_status=$?
3967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -z "$ac_c_werror_flag"
3973 || test ! -s conftest.err'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 (eval $ac_try) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; } &&
3979 { ac_try='test -s conftest.$ac_objext'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981 (eval $ac_try) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 ac_cv_prog_cc_stdc=$ac_arg
3986break
ac48eca1 3987else
cfbc9945
SE
3988 echo "$as_me: failed program was:" >&5
3989sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3990
5464f5a1 3991fi
cfbc9945 3992rm -f conftest.err conftest.$ac_objext
5464f5a1 3993done
cfbc9945
SE
3994rm -f conftest.$ac_ext conftest.$ac_objext
3995CC=$ac_save_CC
5464f5a1 3996
ac48eca1 3997fi
252b5132 3998
cfbc9945
SE
3999case "x$ac_cv_prog_cc_stdc" in
4000 x|xno)
4001 echo "$as_me:$LINENO: result: none needed" >&5
4002echo "${ECHO_T}none needed" >&6 ;;
4003 *)
4004 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4005echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4006 CC="$CC $ac_cv_prog_cc_stdc" ;;
4007esac
6be7c12c 4008
cfbc9945
SE
4009# Some people use a C++ compiler to compile C. Since we use `exit',
4010# in C++ we need to declare it. In case someone uses the same compiler
4011# for both compiling C and C++ we need to have the C++ compiler decide
4012# the declaration of exit, since it's the most demanding environment.
4013cat >conftest.$ac_ext <<_ACEOF
4014#ifndef __cplusplus
4015 choke me
4016#endif
4017_ACEOF
4018rm -f conftest.$ac_objext
4019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020 (eval $ac_compile) 2>conftest.er1
5464f5a1 4021 ac_status=$?
cfbc9945
SE
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
5464f5a1 4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4026 (exit $ac_status); } &&
4027 { ac_try='test -z "$ac_c_werror_flag"
4028 || test ! -s conftest.err'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 (eval $ac_try) 2>&5
5464f5a1
NN
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4033 (exit $ac_status); }; } &&
4034 { ac_try='test -s conftest.$ac_objext'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
d70c5fc7
NC
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4039 (exit $ac_status); }; }; then
4040 for ac_declaration in \
4041 '' \
4042 'extern "C" void std::exit (int) throw (); using std::exit;' \
4043 'extern "C" void std::exit (int); using std::exit;' \
4044 'extern "C" void exit (int) throw ();' \
4045 'extern "C" void exit (int);' \
4046 'void exit (int);'
4047do
4048 cat >conftest.$ac_ext <<_ACEOF
4049/* confdefs.h. */
4050_ACEOF
4051cat confdefs.h >>conftest.$ac_ext
4052cat >>conftest.$ac_ext <<_ACEOF
4053/* end confdefs.h. */
4054$ac_declaration
4055#include <stdlib.h>
4056int
4057main ()
4058{
4059exit (42);
4060 ;
4061 return 0;
4062}
4063_ACEOF
4064rm -f conftest.$ac_objext
4065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_c_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 (eval $ac_try) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 :
b2ef150d 4087else
cfbc9945
SE
4088 echo "$as_me: failed program was:" >&5
4089sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 4090
cfbc9945
SE
4091continue
4092fi
4093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4094 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
4095/* confdefs.h. */
4096_ACEOF
4097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
4099/* end confdefs.h. */
cfbc9945 4100$ac_declaration
5464f5a1
NN
4101int
4102main ()
4103{
cfbc9945 4104exit (42);
5464f5a1
NN
4105 ;
4106 return 0;
4107}
4108_ACEOF
cfbc9945
SE
4109rm -f conftest.$ac_objext
4110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
49c96104
SE
4118 { ac_try='test -z "$ac_c_werror_flag"
4119 || test ! -s conftest.err'
5464f5a1
NN
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; } &&
cfbc9945 4125 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
cfbc9945 4131 break
b2ef150d 4132else
5464f5a1
NN
4133 echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
b2ef150d 4136fi
cfbc9945
SE
4137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4138done
4139rm -f conftest*
4140if test -n "$ac_declaration"; then
4141 echo '#ifdef __cplusplus' >>confdefs.h
4142 echo $ac_declaration >>confdefs.h
4143 echo '#endif' >>confdefs.h
6ec7057a 4144fi
cfbc9945 4145
92f01d61 4146else
cfbc9945
SE
4147 echo "$as_me: failed program was:" >&5
4148sed 's/^/| /' conftest.$ac_ext >&5
92f01d61 4149
cfbc9945
SE
4150fi
4151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4152ac_ext=c
4153ac_cpp='$CPP $CPPFLAGS'
4154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61
JM
4157
4158
cfbc9945
SE
4159cat >>confdefs.h <<\_ACEOF
4160#define _GNU_SOURCE 1
4161_ACEOF
a1ac8190 4162
c428fa83 4163
cfbc9945 4164
d7040cdb
SE
4165
4166
4167macro_version='2.1a'
4168macro_revision='1.2435'
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181ltmain="$ac_aux_dir/ltmain.sh"
4182
4183# Set options
4184
4185enable_dlopen=no
4186
4187
4188enable_win32_dll=no
4189
4190
4191
cfbc9945
SE
4192# Check whether --enable-static or --disable-static was given.
4193if test "${enable_static+set}" = set; then
4194 enableval="$enable_static"
4195 p=${PACKAGE-default}
d7040cdb
SE
4196 case $enableval in
4197 yes) enable_static=yes ;;
4198 no) enable_static=no ;;
4199 *)
4200 enable_static=no
4201 # Look at the argument we got. We use all the common list separators.
4202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4203 for pkg in $enableval; do
4204 IFS="$lt_save_ifs"
4205 if test "X$pkg" = "X$p"; then
4206 enable_static=yes
4207 fi
4208 done
4209 IFS="$lt_save_ifs"
4210 ;;
4211 esac
c428fa83 4212else
cfbc9945
SE
4213 enable_static=yes
4214fi;
d7040cdb
SE
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224# Check whether --with-pic or --without-pic was given.
4225if test "${with_pic+set}" = set; then
4226 withval="$with_pic"
4227 pic_mode="$withval"
4228else
4229 pic_mode=default
4230fi;
4231
4232test -z "$pic_mode" && pic_mode=default
4233
4234
4235
4236
4237
4238
4239
cfbc9945
SE
4240# Check whether --enable-fast-install or --disable-fast-install was given.
4241if test "${enable_fast_install+set}" = set; then
4242 enableval="$enable_fast_install"
4243 p=${PACKAGE-default}
d7040cdb
SE
4244 case $enableval in
4245 yes) enable_fast_install=yes ;;
4246 no) enable_fast_install=no ;;
4247 *)
4248 enable_fast_install=no
4249 # Look at the argument we got. We use all the common list separators.
4250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4251 for pkg in $enableval; do
4252 IFS="$lt_save_ifs"
4253 if test "X$pkg" = "X$p"; then
4254 enable_fast_install=yes
4255 fi
4256 done
4257 IFS="$lt_save_ifs"
4258 ;;
4259 esac
cfbc9945
SE
4260else
4261 enable_fast_install=yes
4262fi;
c428fa83 4263
d7040cdb
SE
4264
4265
4266
4267
4268
4269
4270
4271echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4272echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4273if test "${lt_cv_path_SED+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276 # Loop through the user's path and test for sed and gsed.
4277# Then use that list of sed's as ones to test for truncation.
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for lt_ac_prog in sed gsed; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4286 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4287 fi
4288 done
4289 done
4290done
4291IFS=$as_save_IFS
4292lt_ac_max=0
4293lt_ac_count=0
4294# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4295# along with /bin/sed that truncates output.
4296for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4297 test ! -f $lt_ac_sed && continue
4298 cat /dev/null > conftest.in
4299 lt_ac_count=0
4300 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4301 # Check for GNU sed and select it if it is found.
4302 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4303 lt_cv_path_SED=$lt_ac_sed
4304 break
4305 fi
4306 while true; do
4307 cat conftest.in conftest.in >conftest.tmp
4308 mv conftest.tmp conftest.in
4309 cp conftest.in conftest.nl
4310 echo >>conftest.nl
4311 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4312 cmp -s conftest.out conftest.nl || break
4313 # 10000 chars as input seems more than enough
4314 test $lt_ac_count -gt 10 && break
4315 lt_ac_count=`expr $lt_ac_count + 1`
4316 if test $lt_ac_count -gt $lt_ac_max; then
4317 lt_ac_max=$lt_ac_count
4318 lt_cv_path_SED=$lt_ac_sed
4319 fi
4320 done
4321done
4322
4323fi
4324
4325SED=$lt_cv_path_SED
4326
4327echo "$as_me:$LINENO: result: $SED" >&5
4328echo "${ECHO_T}$SED" >&6
4329
4330test -z "$SED" && SED=sed
4331Xsed="$SED -e 1s/^X//"
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343echo "$as_me:$LINENO: checking for egrep" >&5
4344echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4345if test "${ac_cv_prog_egrep+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347else
4348 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4349 then ac_cv_prog_egrep='grep -E'
4350 else ac_cv_prog_egrep='egrep'
4351 fi
4352fi
4353echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4354echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4355 EGREP=$ac_cv_prog_egrep
4356
4357
4358echo "$as_me:$LINENO: checking for fgrep" >&5
4359echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4360if test "${ac_cv_prog_fgrep+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362else
4363 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4364 then ac_cv_prog_fgrep='grep -F'
4365 else ac_cv_prog_fgrep='fgrep'
4366 fi
4367fi
4368echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4369echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4370 FGREP=$ac_cv_prog_fgrep
4371
4372
4373test -z "$GREP" && GREP=grep
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
cfbc9945
SE
4393# Check whether --with-gnu-ld or --without-gnu-ld was given.
4394if test "${with_gnu_ld+set}" = set; then
4395 withval="$with_gnu_ld"
4396 test "$withval" = no || with_gnu_ld=yes
4397else
4398 with_gnu_ld=no
c428fa83 4399fi;
cfbc9945
SE
4400ac_prog=ld
4401if test "$GCC" = yes; then
4402 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
4403 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4404echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
cfbc9945
SE
4405 case $host in
4406 *-*-mingw*)
4407 # gcc leaves a trailing carriage return which upsets mingw
4408 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4409 *)
4410 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4411 esac
4412 case $ac_prog in
4413 # Accept absolute paths.
d7040cdb 4414 [\\/]* | ?:[\\/]*)
cfbc9945 4415 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
4416 # Canonicalize the pathname of ld
4417 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4418 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4419 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
4420 done
4421 test -z "$LD" && LD="$ac_prog"
4422 ;;
5bd8253d 4423 "")
cfbc9945
SE
4424 # If it fails, then pretend we aren't using GCC.
4425 ac_prog=ld
5bd8253d
L
4426 ;;
4427 *)
cfbc9945
SE
4428 # If it is relative, then search for the first ld in PATH.
4429 with_gnu_ld=unknown
5bd8253d 4430 ;;
cfbc9945
SE
4431 esac
4432elif test "$with_gnu_ld" = yes; then
4433 echo "$as_me:$LINENO: checking for GNU ld" >&5
4434echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4435else
4436 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4437echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4438fi
4439if test "${lt_cv_path_LD+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
4442 if test -z "$LD"; then
d7040cdb 4443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 4444 for ac_dir in $PATH; do
d7040cdb 4445 IFS="$lt_save_ifs"
cfbc9945
SE
4446 test -z "$ac_dir" && ac_dir=.
4447 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4448 lt_cv_path_LD="$ac_dir/$ac_prog"
4449 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 4450 # but apparently some variants of GNU ld only accept -v.
cfbc9945 4451 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
4452 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4453 *GNU* | *'with BFD'*)
cfbc9945 4454 test "$with_gnu_ld" != no && break
d7040cdb
SE
4455 ;;
4456 *)
cfbc9945 4457 test "$with_gnu_ld" != yes && break
d7040cdb
SE
4458 ;;
4459 esac
cfbc9945
SE
4460 fi
4461 done
d7040cdb 4462 IFS="$lt_save_ifs"
cfbc9945
SE
4463else
4464 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 4465fi
1ad12f97
NC
4466fi
4467
cfbc9945
SE
4468LD="$lt_cv_path_LD"
4469if test -n "$LD"; then
4470 echo "$as_me:$LINENO: result: $LD" >&5
4471echo "${ECHO_T}$LD" >&6
4472else
4473 echo "$as_me:$LINENO: result: no" >&5
4474echo "${ECHO_T}no" >&6
4475fi
4476test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4477echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4478 { (exit 1); exit 1; }; }
4479echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4480echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4481if test "${lt_cv_prog_gnu_ld+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
d7040cdb
SE
4484 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4485case `$LD -v 2>&1 </dev/null` in
4486*GNU* | *'with BFD'*)
cfbc9945 4487 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
4488 ;;
4489*)
cfbc9945 4490 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4491 ;;
4492esac
49c96104 4493fi
cfbc9945
SE
4494echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4495echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4496with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 4497
9e9b66a9 4498
cfbc9945 4499
d7040cdb
SE
4500
4501
4502
4503
4504
4505
4506
4507echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4508echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
cfbc9945
SE
4509if test "${lt_cv_path_NM+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511else
4512 if test -n "$NM"; then
4513 # Let the user override the test.
4514 lt_cv_path_NM="$NM"
4515else
d7040cdb
SE
4516 lt_nm_to_check="${ac_tool_prefix}nm"
4517 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4518 lt_nm_to_check="$lt_nm_to_check nm"
4519 fi
4520 for lt_tmp_nm in $lt_nm_to_check; do
4521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4522 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4523 IFS="$lt_save_ifs"
4524 test -z "$ac_dir" && ac_dir=.
4525 tmp_nm="$ac_dir/$lt_tmp_nm"
4526 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4527 # Check to see if the nm accepts a BSD-compat flag.
4528 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4529 # nm: unknown option "B" ignored
4530 # Tru64's nm complains that /dev/null is an invalid object file
4531 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4532 */dev/null* | *'Invalid file or object type'*)
4533 lt_cv_path_NM="$tmp_nm -B"
4534 break
4535 ;;
4536 *)
4537 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4538 */dev/null*)
4539 lt_cv_path_NM="$tmp_nm -p"
4540 break
4541 ;;
4542 *)
4543 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4544 continue # so that we can try to find one that supports BSD flags
4545 ;;
4546 esac
4547 ;;
4548 esac
cfbc9945 4549 fi
d7040cdb
SE
4550 done
4551 IFS="$lt_save_ifs"
cfbc9945 4552 done
d7040cdb 4553 : ${lt_cv_path_NM=no}
cfbc9945 4554fi
a2d91340 4555fi
d7040cdb
SE
4556echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4557echo "${ECHO_T}$lt_cv_path_NM" >&6
4558if test "$lt_cv_path_NM" != "no"; then
4559 NM="$lt_cv_path_NM"
cfbc9945 4560else
d7040cdb
SE
4561 # Didn't find any BSD compatible name lister, look for dumpbin.
4562 if test -n "$ac_tool_prefix"; then
4563 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4564 do
4565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4566set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4567echo "$as_me:$LINENO: checking for $ac_word" >&5
4568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569if test "${ac_cv_prog_DUMPBIN+set}" = set; then
cfbc9945 4570 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4571else
d7040cdb
SE
4572 if test -n "$DUMPBIN"; then
4573 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4574else
4575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4585 fi
4586done
4587done
5464f5a1 4588
d7040cdb
SE
4589fi
4590fi
4591DUMPBIN=$ac_cv_prog_DUMPBIN
4592if test -n "$DUMPBIN"; then
4593 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4594echo "${ECHO_T}$DUMPBIN" >&6
4595else
4596 echo "$as_me:$LINENO: result: no" >&5
4597echo "${ECHO_T}no" >&6
4598fi
d5fbea21 4599
d7040cdb
SE
4600 test -n "$DUMPBIN" && break
4601 done
4602fi
4603if test -z "$DUMPBIN"; then
4604 ac_ct_DUMPBIN=$DUMPBIN
4605 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4606do
4607 # Extract the first word of "$ac_prog", so it can be a program name with args.
4608set dummy $ac_prog; ac_word=$2
4609echo "$as_me:$LINENO: checking for $ac_word" >&5
4610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4611if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613else
4614 if test -n "$ac_ct_DUMPBIN"; then
4615 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4616else
4617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
cfbc9945 4627 fi
d7040cdb
SE
4628done
4629done
d5fbea21 4630
d7040cdb
SE
4631fi
4632fi
4633ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4634if test -n "$ac_ct_DUMPBIN"; then
4635 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4636echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4637else
4638 echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6
4640fi
d5fbea21 4641
d7040cdb
SE
4642 test -n "$ac_ct_DUMPBIN" && break
4643done
4644test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
24443139 4645
d7040cdb
SE
4646 DUMPBIN=$ac_ct_DUMPBIN
4647fi
24443139 4648
24443139 4649
d7040cdb
SE
4650 if test "$DUMPBIN" != ":"; then
4651 NM="$DUMPBIN"
cfbc9945 4652 fi
d7040cdb
SE
4653fi
4654test -z "$NM" && NM=nm
a703a6ea 4655
f5385ebf 4656
cfbc9945 4657
24443139
AS
4658
4659
4660
d7040cdb
SE
4661echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4662echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4663if test "${lt_cv_nm_interface+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665else
4666 lt_cv_nm_interface="BSD nm"
4667 echo "int some_variable = 0;" > conftest.$ac_ext
0d4a1476 4668 (eval echo "\"\$as_me:4668: $ac_compile\"" >&5)
d7040cdb
SE
4669 (eval "$ac_compile" 2>conftest.err)
4670 cat conftest.err >&5
0d4a1476 4671 (eval echo "\"\$as_me:4671: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
4672 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4673 cat conftest.err >&5
0d4a1476 4674 (eval echo "\"\$as_me:4674: output\"" >&5)
d7040cdb
SE
4675 cat conftest.out >&5
4676 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4677 lt_cv_nm_interface="MS dumpbin"
4678 fi
4679 rm -f conftest*
cfbc9945 4680fi
d7040cdb
SE
4681echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4682echo "${ECHO_T}$lt_cv_nm_interface" >&6
a703a6ea 4683
d7040cdb
SE
4684echo "$as_me:$LINENO: checking whether ln -s works" >&5
4685echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4686LN_S=$as_ln_s
4687if test "$LN_S" = "ln -s"; then
4688 echo "$as_me:$LINENO: result: yes" >&5
4689echo "${ECHO_T}yes" >&6
4690else
4691 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4692echo "${ECHO_T}no, using $LN_S" >&6
4693fi
252b5132 4694
cfbc9945
SE
4695# find the maximum length of command line arguments
4696echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4697echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4698if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701 i=0
4702 teststring="ABCD"
5464f5a1 4703
cfbc9945
SE
4704 case $build_os in
4705 msdosdjgpp*)
4706 # On DJGPP, this test can blow up pretty badly due to problems in libc
4707 # (any single argument exceeding 2000 bytes causes a buffer overrun
4708 # during glob expansion). Even if it were fixed, the result of this
4709 # check would be larger than it should be.
4710 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4711 ;;
5464f5a1 4712
d7040cdb
SE
4713 gnu*)
4714 # Under GNU Hurd, this test is not required because there is
4715 # no limit to the length of command line arguments.
4716 # Libtool will interpret -1 as no limit whatsoever
4717 lt_cv_sys_max_cmd_len=-1;
4718 ;;
4719
cfbc9945
SE
4720 cygwin* | mingw*)
4721 # On Win9x/ME, this test blows up -- it succeeds, but takes
4722 # about 5 minutes as the teststring grows exponentially.
4723 # Worse, since 9x/ME are not pre-emptively multitasking,
4724 # you end up with a "frozen" computer, even though with patience
4725 # the test eventually succeeds (with a max line length of 256k).
4726 # Instead, let's just punt: use the minimum linelength reported by
4727 # all of the supported platforms: 8192 (on NT/2K/XP).
4728 lt_cv_sys_max_cmd_len=8192;
4729 ;;
5464f5a1 4730
cfbc9945
SE
4731 amigaos*)
4732 # On AmigaOS with pdksh, this test takes hours, literally.
4733 # So we just punt and use a minimum line length of 8192.
4734 lt_cv_sys_max_cmd_len=8192;
4735 ;;
5464f5a1 4736
cfbc9945
SE
4737 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4738 # This has been around since 386BSD, at least. Likely further.
4739 if test -x /sbin/sysctl; then
4740 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4741 elif test -x /usr/sbin/sysctl; then
4742 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4743 else
d7040cdb 4744 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
4745 fi
4746 # And add a safety zone
4747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4749 ;;
d7040cdb
SE
4750
4751 interix*)
4752 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4753 lt_cv_sys_max_cmd_len=196608
4754 ;;
4755
4756 osf*)
4757 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4758 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4759 # nice to cause kernel panics so lets avoid the loop below.
4760 # First set a reasonable default.
4761 lt_cv_sys_max_cmd_len=16384
4762 #
4763 if test -x /sbin/sysconfig; then
4764 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4765 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4766 esac
4767 fi
4768 ;;
4769 sco3.2v5*)
4770 lt_cv_sys_max_cmd_len=102400
4771 ;;
4772 sysv5* | sco5v6* | sysv4.2uw2*)
4773 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4774 if test -n "$kargmax"; then
4775 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4776 else
4777 lt_cv_sys_max_cmd_len=32768
4778 fi
4779 ;;
4780 *)
79887925
L
4781 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4782 if test -n $lt_cv_sys_max_cmd_len; then
4783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4785 else
4786 # Make teststring a little bigger before we do anything with it.
4787 # a 1K string should be a reasonable start.
4788 for i in 1 2 3 4 5 6 7 8 ; do
4789 teststring=$teststring$teststring
4790 done
4791 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4792 # If test is not a shell built-in, we'll probably end up computing a
4793 # maximum length that is only half of the actual maximum length, but
4794 # we can't tell.
4795 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4796 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4797 test $i != 17 # 1/2 MB should be enough
4798 do
4799 i=`expr $i + 1`
4800 teststring=$teststring$teststring
4801 done
4802 # Only check the string length outside the loop.
4803 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4804 teststring=
4805 # Add a significant safety factor because C++ compilers can tack on
4806 # massive amounts of additional arguments before passing them to the
4807 # linker. It appears as though 1/2 is a usable value.
4808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4809 fi
d7040cdb 4810 ;;
cfbc9945 4811 esac
5464f5a1 4812
252b5132 4813fi
cfbc9945 4814
d7040cdb 4815if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
4816 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4817echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 4818else
cfbc9945
SE
4819 echo "$as_me:$LINENO: result: none" >&5
4820echo "${ECHO_T}none" >&6
5464f5a1 4821fi
d7040cdb 4822max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 4823
cfbc9945 4824
252b5132 4825
cfbc9945 4826
cfbc9945 4827
d7040cdb
SE
4828
4829
4830: ${CP="cp -f"}
4831: ${MV="mv -f"}
4832: ${RM="rm -f"}
4833
4834echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4835echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4836# Try some XSI features
4837xsi_shell=no
4838( _lt_dummy="a/b/c"
4839 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4840 = c,a/b,, ) >/dev/null 2>&1 \
4841 && xsi_shell=yes
4842echo "$as_me:$LINENO: result: $xsi_shell" >&5
4843echo "${ECHO_T}$xsi_shell" >&6
4844
4845
4846echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4847echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4848lt_shell_append=no
4849( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4850 >/dev/null 2>&1 \
4851 && lt_shell_append=yes
4852echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4853echo "${ECHO_T}$lt_shell_append" >&6
4854
4855
4856if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4857 lt_unset=unset
5464f5a1 4858else
d7040cdb 4859 lt_unset=false
5464f5a1 4860fi
252b5132 4861
d7040cdb
SE
4862
4863
4864
4865
4866# test EBCDIC or ASCII
4867case `echo X|tr X '\101'` in
4868 A) # ASCII based system
4869 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4870 lt_SP2NL='tr \040 \012'
4871 lt_NL2SP='tr \015\012 \040\040'
4872 ;;
4873 *) # EBCDIC based system
4874 lt_SP2NL='tr \100 \n'
4875 lt_NL2SP='tr \r\n \100\100'
4876 ;;
4877esac
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4888echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4889if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891else
d7040cdb
SE
4892 lt_cv_ld_reload_flag='-r'
4893fi
4894echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4895echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4896reload_flag=$lt_cv_ld_reload_flag
4897case $reload_flag in
4898"" | " "*) ;;
4899*) reload_flag=" $reload_flag" ;;
4900esac
4901reload_cmds='$LD$reload_flag -o $output$reload_objs'
4902case $host_os in
4903 darwin*)
4904 if test "$GCC" = yes; then
4905 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4906 else
4907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4908 fi
4909 ;;
4910esac
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4922echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4923if test "${lt_cv_deplibs_check_method+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926 lt_cv_file_magic_cmd='$MAGIC_CMD'
4927lt_cv_file_magic_test_file=
4928lt_cv_deplibs_check_method='unknown'
4929# Need to set the preceding variable on all platforms that support
4930# interlibrary dependencies.
4931# 'none' -- dependencies not supported.
4932# `unknown' -- same as none, but documents that we really don't know.
4933# 'pass_all' -- all dependencies passed with no checks.
4934# 'test_compile' -- check by making test program.
4935# 'file_magic [[regex]]' -- check by looking for files in library path
4936# which responds to the $file_magic_cmd with a given extended regex.
4937# If you have `file' or equivalent on your system and you're not sure
4938# whether `pass_all' will *always* work, you probably want this one.
4939
4940case $host_os in
4941aix4* | aix5*)
4942 lt_cv_deplibs_check_method=pass_all
4943 ;;
4944
4945beos*)
4946 lt_cv_deplibs_check_method=pass_all
4947 ;;
4948
4949bsdi[45]*)
4950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4951 lt_cv_file_magic_cmd='/usr/bin/file -L'
4952 lt_cv_file_magic_test_file=/shlib/libc.so
4953 ;;
4954
4955cygwin*)
4956 # func_win32_libid is a shell function defined in ltmain.sh
4957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4958 lt_cv_file_magic_cmd='func_win32_libid'
4959 ;;
4960
4961mingw* | pw32*)
4962 # Base MSYS/MinGW do not provide the 'file' command needed by
4963 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4964 # unless we find 'file', for example because we are cross-compiling.
4965 if ( file / ) >/dev/null 2>&1; then
4966 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4967 lt_cv_file_magic_cmd='func_win32_libid'
4968 else
4969 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4970 lt_cv_file_magic_cmd='$OBJDUMP -f'
4971 fi
4972 ;;
4973
4974darwin* | rhapsody*)
4975 lt_cv_deplibs_check_method=pass_all
cfbc9945 4976 ;;
d7040cdb
SE
4977
4978freebsd* | dragonfly*)
4979 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4980 case $host_cpu in
4981 i*86 )
4982 # Not sure whether the presence of OpenBSD here was a mistake.
4983 # Let's accept both of them until this is cleared up.
4984 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4985 lt_cv_file_magic_cmd=/usr/bin/file
4986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4987 ;;
4988 esac
4989 else
4990 lt_cv_deplibs_check_method=pass_all
4991 fi
4992 ;;
4993
4994gnu*)
4995 lt_cv_deplibs_check_method=pass_all
cfbc9945 4996 ;;
d7040cdb
SE
4997
4998hpux10.20* | hpux11*)
4999 lt_cv_file_magic_cmd=/usr/bin/file
5000 case $host_cpu in
5001 ia64*)
5002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5003 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5004 ;;
5005 hppa*64*)
5006 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]'
5007 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5008 ;;
cfbc9945 5009 *)
d7040cdb
SE
5010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5011 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5012 ;;
5013 esac
5014 ;;
6be7c12c 5015
d7040cdb
SE
5016interix[3-9]*)
5017 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5019 ;;
cfbc9945 5020
d7040cdb
SE
5021irix5* | irix6* | nonstopux*)
5022 case $LD in
5023 *-32|*"-32 ") libmagic=32-bit;;
5024 *-n32|*"-n32 ") libmagic=N32;;
5025 *-64|*"-64 ") libmagic=64-bit;;
5026 *) libmagic=never-match;;
5027 esac
5028 lt_cv_deplibs_check_method=pass_all
cfbc9945 5029 ;;
cfbc9945 5030
d7040cdb
SE
5031# This must be Linux ELF.
5032linux* | k*bsd*-gnu)
5033 lt_cv_deplibs_check_method=pass_all
5034 ;;
5464f5a1 5035
d7040cdb
SE
5036netbsd*)
5037 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 5039 else
d7040cdb 5040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 5041 fi
d7040cdb
SE
5042 ;;
5043
5044newos6*)
5045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5046 lt_cv_file_magic_cmd=/usr/bin/file
5047 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5048 ;;
5049
5050*nto* | *qnx*)
5051 lt_cv_deplibs_check_method=pass_all
5052 ;;
cfbc9945 5053
d7040cdb
SE
5054openbsd*)
5055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5057 else
5058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
5059 fi
5060 ;;
d7040cdb
SE
5061
5062osf3* | osf4* | osf5*)
5063 lt_cv_deplibs_check_method=pass_all
5064 ;;
5065
5066rdos*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
5069
5070solaris*)
5071 lt_cv_deplibs_check_method=pass_all
5072 ;;
5073
5074sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5075 lt_cv_deplibs_check_method=pass_all
5076 ;;
5077
5078sysv4 | sysv4.3*)
5079 case $host_vendor in
5080 motorola)
5081 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]'
5082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5083 ;;
5084 ncr)
5085 lt_cv_deplibs_check_method=pass_all
5086 ;;
5087 sequent)
5088 lt_cv_file_magic_cmd='/bin/file'
5089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5090 ;;
5091 sni)
5092 lt_cv_file_magic_cmd='/bin/file'
5093 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5094 lt_cv_file_magic_test_file=/lib/libc.so
5095 ;;
5096 siemens)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099 pc)
5100 lt_cv_deplibs_check_method=pass_all
5101 ;;
5102 esac
5103 ;;
5104
5105tpf*)
5106 lt_cv_deplibs_check_method=pass_all
5107 ;;
cfbc9945
SE
5108esac
5109
d7040cdb
SE
5110fi
5111echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5112echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5113file_magic_cmd=$lt_cv_file_magic_cmd
5114deplibs_check_method=$lt_cv_deplibs_check_method
5115test -z "$deplibs_check_method" && deplibs_check_method=unknown
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
cfbc9945 5128if test -n "$ac_tool_prefix"; then
d7040cdb
SE
5129 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5130set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
5131echo "$as_me:$LINENO: checking for $ac_word" >&5
5132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5133if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
d7040cdb
SE
5136 if test -n "$AR"; then
5137 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
5138else
5139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5146 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
5147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150done
5151done
5152
5153fi
5154fi
d7040cdb
SE
5155AR=$ac_cv_prog_AR
5156if test -n "$AR"; then
5157 echo "$as_me:$LINENO: result: $AR" >&5
5158echo "${ECHO_T}$AR" >&6
5464f5a1
NN
5159else
5160 echo "$as_me:$LINENO: result: no" >&5
5161echo "${ECHO_T}no" >&6
5162fi
5163
5464f5a1 5164fi
d7040cdb
SE
5165if test -z "$ac_cv_prog_AR"; then
5166 ac_ct_AR=$AR
5167 # Extract the first word of "ar", so it can be a program name with args.
5168set dummy ar; ac_word=$2
5464f5a1
NN
5169echo "$as_me:$LINENO: checking for $ac_word" >&5
5170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5171if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 5172 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5173else
d7040cdb
SE
5174 if test -n "$ac_ct_AR"; then
5175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 5176else
5464f5a1
NN
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5184 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188done
5189done
5190
d7040cdb 5191 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
5192fi
5193fi
d7040cdb
SE
5194ac_ct_AR=$ac_cv_prog_ac_ct_AR
5195if test -n "$ac_ct_AR"; then
5196 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5197echo "${ECHO_T}$ac_ct_AR" >&6
5198else
5199 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
5200echo "${ECHO_T}no" >&6
5201fi
5202
d7040cdb 5203 AR=$ac_ct_AR
cfbc9945 5204else
d7040cdb 5205 AR="$ac_cv_prog_AR"
5464f5a1 5206fi
cfbc9945 5207
d7040cdb
SE
5208test -z "$AR" && AR=ar
5209test -z "$AR_FLAGS" && AR_FLAGS=cru
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
cfbc9945
SE
5221if test -n "$ac_tool_prefix"; then
5222 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5223set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
5224echo "$as_me:$LINENO: checking for $ac_word" >&5
5225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5226if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228else
cfbc9945
SE
5229 if test -n "$STRIP"; then
5230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
5231else
5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233for as_dir in $PATH
5234do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 5239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5242 fi
5243done
5244done
5245
5246fi
5247fi
cfbc9945
SE
5248STRIP=$ac_cv_prog_STRIP
5249if test -n "$STRIP"; then
5250 echo "$as_me:$LINENO: result: $STRIP" >&5
5251echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
5252else
5253 echo "$as_me:$LINENO: result: no" >&5
5254echo "${ECHO_T}no" >&6
5255fi
5256
252b5132 5257fi
cfbc9945
SE
5258if test -z "$ac_cv_prog_STRIP"; then
5259 ac_ct_STRIP=$STRIP
5260 # Extract the first word of "strip", so it can be a program name with args.
5261set dummy strip; ac_word=$2
5464f5a1
NN
5262echo "$as_me:$LINENO: checking for $ac_word" >&5
5263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5264if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266else
cfbc9945
SE
5267 if test -n "$ac_ct_STRIP"; then
5268 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
5269else
5270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 5277 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281done
5282done
5283
cfbc9945 5284 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
5285fi
5286fi
cfbc9945
SE
5287ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5288if test -n "$ac_ct_STRIP"; then
5289 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5290echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
5291else
5292 echo "$as_me:$LINENO: result: no" >&5
5293echo "${ECHO_T}no" >&6
5294fi
5295
cfbc9945
SE
5296 STRIP=$ac_ct_STRIP
5297else
5298 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
5299fi
5300
d7040cdb 5301test -z "$STRIP" && STRIP=:
5464f5a1 5302
cfbc9945
SE
5303
5304
cfbc9945 5305
cfbc9945
SE
5306
5307
d7040cdb
SE
5308if test -n "$ac_tool_prefix"; then
5309 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5310set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5311echo "$as_me:$LINENO: checking for $ac_word" >&5
5312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5313if test "${ac_cv_prog_RANLIB+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 5315else
d7040cdb
SE
5316 if test -n "$RANLIB"; then
5317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5318else
5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH
5321do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
cfbc9945 5329 fi
d7040cdb
SE
5330done
5331done
cfbc9945 5332
d7040cdb
SE
5333fi
5334fi
5335RANLIB=$ac_cv_prog_RANLIB
5336if test -n "$RANLIB"; then
5337 echo "$as_me:$LINENO: result: $RANLIB" >&5
5338echo "${ECHO_T}$RANLIB" >&6
5339else
5340 echo "$as_me:$LINENO: result: no" >&5
5341echo "${ECHO_T}no" >&6
5342fi
cfbc9945 5343
d7040cdb
SE
5344fi
5345if test -z "$ac_cv_prog_RANLIB"; then
5346 ac_ct_RANLIB=$RANLIB
5347 # Extract the first word of "ranlib", so it can be a program name with args.
5348set dummy ranlib; ac_word=$2
5349echo "$as_me:$LINENO: checking for $ac_word" >&5
5350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5351if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353else
5354 if test -n "$ac_ct_RANLIB"; then
5355 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5356else
5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364 ac_cv_prog_ac_ct_RANLIB="ranlib"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
cfbc9945 5367 fi
d7040cdb
SE
5368done
5369done
cfbc9945 5370
d7040cdb
SE
5371 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5372fi
5373fi
5374ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5375if test -n "$ac_ct_RANLIB"; then
5376 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5377echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 5378else
d7040cdb
SE
5379 echo "$as_me:$LINENO: result: no" >&5
5380echo "${ECHO_T}no" >&6
5381fi
5464f5a1 5382
d7040cdb
SE
5383 RANLIB=$ac_ct_RANLIB
5384else
5385 RANLIB="$ac_cv_prog_RANLIB"
5386fi
5464f5a1 5387
d7040cdb 5388test -z "$RANLIB" && RANLIB=:
5464f5a1 5389
5464f5a1 5390
5464f5a1 5391
cfbc9945 5392
cfbc9945 5393
d7040cdb
SE
5394
5395# Determine commands to create old-style static archives.
5396old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5397old_postinstall_cmds='chmod 644 $oldlib'
5398old_postuninstall_cmds=
5399
5400if test -n "$RANLIB"; then
5401 case $host_os in
5402 openbsd*)
5403 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5404 ;;
5405 *)
5406 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5407 ;;
5408 esac
5409 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 5410fi
cfbc9945
SE
5411
5412
cfbc9945
SE
5413
5414
cfbc9945 5415
cfbc9945 5416
cfbc9945 5417
cfbc9945 5418
cfbc9945
SE
5419
5420
cfbc9945 5421
cfbc9945 5422
cfbc9945
SE
5423
5424
5425
5426
5427
5428
5429
5464f5a1 5430
5464f5a1 5431
cfbc9945
SE
5432
5433
5434
5464f5a1 5435
5464f5a1 5436
cfbc9945
SE
5437
5438
5439
5464f5a1 5440
cfbc9945
SE
5441
5442
5443
5444
d7040cdb
SE
5445# If no C compiler was specified, use CC.
5446LTCC=${LTCC-"$CC"}
cfbc9945 5447
d7040cdb
SE
5448# If no C compiler flags were specified, use CFLAGS.
5449LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 5450
d7040cdb
SE
5451# Allow CC to be a program name with arguments.
5452compiler=$CC
cfbc9945 5453
cfbc9945 5454
d7040cdb
SE
5455# Check for command to grab the raw symbol name followed by C symbol from nm.
5456echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5457echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5458if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460else
5464f5a1 5461
d7040cdb
SE
5462# These are sane defaults that work on at least a few old systems.
5463# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 5464
d7040cdb
SE
5465# Character class describing NM global symbol codes.
5466symcode='[BCDEGRST]'
5467
5468# Regexp to match symbols that can be accessed directly from C.
5469sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5470
5471# Define system-specific variables.
5472case $host_os in
5473aix*)
5474 symcode='[BCDT]'
5475 ;;
5476cygwin* | mingw* | pw32*)
5477 symcode='[ABCDGISTW]'
5478 ;;
5479hpux*)
5480 if test "$host_cpu" = ia64; then
5481 symcode='[ABCDEGRST]'
5482 fi
5483 ;;
5484irix* | nonstopux*)
5485 symcode='[BCDEGRST]'
5486 ;;
5487osf*)
5488 symcode='[BCDEGQRST]'
5489 ;;
5490solaris*)
5491 symcode='[BDRT]'
5492 ;;
5493sco3.2v5*)
5494 symcode='[DT]'
5495 ;;
5496sysv4.2uw2*)
5497 symcode='[DT]'
5498 ;;
5499sysv5* | sco5v6* | unixware* | OpenUNIX*)
5500 symcode='[ABDT]'
5501 ;;
5502sysv4)
5503 symcode='[DFNSTU]'
5504 ;;
cfbc9945 5505esac
5464f5a1 5506
d7040cdb
SE
5507# If we're using GNU nm, then use its standard symbol codes.
5508case `$NM -V 2>&1` in
5509*GNU* | *'with BFD'*)
5510 symcode='[ABCDGIRSTW]' ;;
5511esac
5464f5a1 5512
d7040cdb
SE
5513# Transform an extracted symbol line into a proper C declaration.
5514# Some systems (esp. on ia64) link data and code symbols differently,
5515# so use this general approach.
5516lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 5517
d7040cdb
SE
5518# Transform an extracted symbol line into symbol name and symbol address
5519lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5464f5a1 5520
d7040cdb
SE
5521# Handle CRLF in mingw tool chain
5522opt_cr=
5523case $build_os in
5524mingw*)
5525 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5526 ;;
5527esac
5464f5a1 5528
d7040cdb
SE
5529# Try without a prefix underscore, then with it.
5530for ac_symprfx in "" "_"; do
5531
5532 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5533 symxfrm="\\1 $ac_symprfx\\2 \\2"
5534
5535 # Write the raw and C identifiers.
5536 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5537 # Fake it for dumpbin and say T for any non-static function
5538 # and D for any global variable.
5539 # Also find C++ and __fastcall symbols from MSVC++,
5540 # which start with @ or ?.
5541 lt_cv_sys_global_symbol_pipe="$AWK '"\
5542" {last_section=section; section=\$ 3};"\
5543" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5544" \$ 0!~/External *\|/{next};"\
5545" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5546" {if(hide[section]) next};"\
5547" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5548" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5549" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5550" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5551" ' prfx=^$ac_symprfx"
5552 else
5553 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5554 fi
cfbc9945 5555
d7040cdb
SE
5556 # Check to see that the pipe works correctly.
5557 pipe_works=no
cfbc9945 5558
d7040cdb
SE
5559 rm -f conftest*
5560 cat > conftest.$ac_ext <<_LT_EOF
5561#ifdef __cplusplus
5562extern "C" {
5563#endif
5564char nm_test_var;
5565void nm_test_func(void);
5566void nm_test_func(void){}
5567#ifdef __cplusplus
5568}
5569#endif
5570int main(){nm_test_var='a';nm_test_func();return(0);}
5571_LT_EOF
cfbc9945 5572
d7040cdb
SE
5573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574 (eval $ac_compile) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; then
5578 # Now try to grab the symbols.
5579 nlist=conftest.nm
5580 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5581 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } && test -s "$nlist"; then
5585 # Try sorting and uniquifying the output.
5586 if sort "$nlist" | uniq > "$nlist"T; then
5587 mv -f "$nlist"T "$nlist"
5588 else
5589 rm -f "$nlist"T
5590 fi
cfbc9945 5591
d7040cdb
SE
5592 # Make sure that we snagged all the symbols we need.
5593 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5594 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5595 cat <<_LT_EOF > conftest.$ac_ext
5596#ifdef __cplusplus
5597extern "C" {
5598#endif
cfbc9945 5599
d7040cdb
SE
5600_LT_EOF
5601 # Now generate the symbol file.
5602 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 5603
d7040cdb 5604 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 5605
d7040cdb
SE
5606/* The mapping between symbol names and symbols. */
5607const struct {
5608 const char *name;
5609 void *address;
5610}
5611lt__PROGRAM__LTX_preloaded_symbols[] =
5612{
5613 { "@PROGRAM@", (void *) 0 },
5614_LT_EOF
5615 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5616 cat <<\_LT_EOF >> conftest.$ac_ext
5617 {0, (void *) 0}
5618};
5619
5620/* This works around a problem in FreeBSD linker */
5621#ifdef FREEBSD_WORKAROUND
5622static const void *lt_preloaded_setup() {
5623 return lt__PROGRAM__LTX_preloaded_symbols;
5624}
5625#endif
cfbc9945 5626
d7040cdb
SE
5627#ifdef __cplusplus
5628}
5629#endif
5630_LT_EOF
5631 # Now try linking the two files.
5632 mv conftest.$ac_objext conftstm.$ac_objext
5633 lt_save_LIBS="$LIBS"
5634 lt_save_CFLAGS="$CFLAGS"
5635 LIBS="conftstm.$ac_objext"
5636 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638 (eval $ac_link) 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5642 pipe_works=yes
5643 fi
5644 LIBS="$lt_save_LIBS"
5645 CFLAGS="$lt_save_CFLAGS"
5646 else
5647 echo "cannot find nm_test_func in $nlist" >&5
5648 fi
5649 else
5650 echo "cannot find nm_test_var in $nlist" >&5
5651 fi
5652 else
5653 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5654 fi
5655 else
5656 echo "$progname: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5658 fi
5659 rm -f conftest* conftst*
cfbc9945 5660
d7040cdb
SE
5661 # Do not use the global_symbol_pipe unless it works.
5662 if test "$pipe_works" = yes; then
5663 break
5664 else
5665 lt_cv_sys_global_symbol_pipe=
5666 fi
5667done
cfbc9945 5668
252b5132 5669fi
5464f5a1 5670
d7040cdb
SE
5671if test -z "$lt_cv_sys_global_symbol_pipe"; then
5672 lt_cv_sys_global_symbol_to_cdecl=
5673fi
5674if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5675 echo "$as_me:$LINENO: result: failed" >&5
5676echo "${ECHO_T}failed" >&6
b3baf5d0 5677else
d7040cdb
SE
5678 echo "$as_me:$LINENO: result: ok" >&5
5679echo "${ECHO_T}ok" >&6
5680fi
5464f5a1 5681
cfbc9945 5682
b3baf5d0 5683
cfbc9945
SE
5684
5685
5686
5687
5464f5a1 5688
4a2a2686
HPN
5689
5690
5691
cfbc9945
SE
5692
5693
cfbc9945 5694
cfbc9945 5695
9d7cbccd 5696
20e95c23 5697
d7040cdb
SE
5698# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5699if test "${enable_libtool_lock+set}" = set; then
5700 enableval="$enable_libtool_lock"
20e95c23 5701
d7040cdb
SE
5702fi;
5703test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 5704
d7040cdb
SE
5705# Some flags need to be propagated to the compiler or linker for good
5706# libtool support.
5707case $host in
5708ia64-*-hpux*)
5709 # Find out which ABI we are using.
5710 echo 'int i;' > conftest.$ac_ext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>&5
5713 ac_status=$?
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; then
5716 case `/usr/bin/file conftest.$ac_objext` in
5717 *ELF-32*)
5718 HPUX_IA64_MODE="32"
5719 ;;
5720 *ELF-64*)
5721 HPUX_IA64_MODE="64"
5722 ;;
20e95c23 5723 esac
d7040cdb
SE
5724 fi
5725 rm -rf conftest*
5726 ;;
5727*-*-irix6*)
5728 # Find out which ABI we are using.
0d4a1476 5729 echo '#line 5729 "configure"' > conftest.$ac_ext
d7040cdb
SE
5730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731 (eval $ac_compile) 2>&5
5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; then
5735 if test "$lt_cv_prog_gnu_ld" = yes; then
5736 case `/usr/bin/file conftest.$ac_objext` in
5737 *32-bit*)
5738 LD="${LD-ld} -melf32bsmip"
5739 ;;
5740 *N32*)
5741 LD="${LD-ld} -melf32bmipn32"
5742 ;;
5743 *64-bit*)
5744 LD="${LD-ld} -melf64bmip"
5745 ;;
5746 esac
20e95c23 5747 else
d7040cdb
SE
5748 case `/usr/bin/file conftest.$ac_objext` in
5749 *32-bit*)
5750 LD="${LD-ld} -32"
5751 ;;
5752 *N32*)
5753 LD="${LD-ld} -n32"
5754 ;;
5755 *64-bit*)
5756 LD="${LD-ld} -64"
5757 ;;
20e95c23
DJ
5758 esac
5759 fi
d7040cdb
SE
5760 fi
5761 rm -rf conftest*
5762 ;;
20e95c23 5763
d7040cdb
SE
5764x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5765s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5766 # Find out which ABI we are using.
5767 echo 'int i;' > conftest.$ac_ext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; then
5773 case `/usr/bin/file conftest.o` in
5774 *32-bit*)
5775 case $host in
5776 x86_64-*kfreebsd*-gnu)
5777 LD="${LD-ld} -m elf_i386_fbsd"
5778 ;;
5779 x86_64-*linux*)
5780 LD="${LD-ld} -m elf_i386"
5781 ;;
5782 ppc64-*linux*|powerpc64-*linux*)
5783 LD="${LD-ld} -m elf32ppclinux"
5784 ;;
5785 s390x-*linux*)
5786 LD="${LD-ld} -m elf_s390"
5787 ;;
5788 sparc64-*linux*)
5789 LD="${LD-ld} -m elf32_sparc"
5790 ;;
5791 esac
5792 ;;
5793 *64-bit*)
5794 case $host in
5795 x86_64-*kfreebsd*-gnu)
5796 LD="${LD-ld} -m elf_x86_64_fbsd"
5797 ;;
5798 x86_64-*linux*)
5799 LD="${LD-ld} -m elf_x86_64"
5800 ;;
5801 ppc*-*linux*|powerpc*-*linux*)
5802 LD="${LD-ld} -m elf64ppc"
5803 ;;
5804 s390*-*linux*|s390*-*tpf*)
5805 LD="${LD-ld} -m elf64_s390"
5806 ;;
5807 sparc*-*linux*)
5808 LD="${LD-ld} -m elf64_sparc"
5809 ;;
5810 esac
5811 ;;
20e95c23
DJ
5812 esac
5813 fi
d7040cdb
SE
5814 rm -rf conftest*
5815 ;;
20e95c23 5816
d7040cdb
SE
5817*-*-sco3.2v5*)
5818 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5819 SAVE_CFLAGS="$CFLAGS"
5820 CFLAGS="$CFLAGS -belf"
5821 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5822echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5823if test "${lt_cv_cc_needs_belf+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5825else
d7040cdb
SE
5826 ac_ext=c
5827ac_cpp='$CPP $CPPFLAGS'
5828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 5831
d7040cdb
SE
5832 cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h. */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h. */
20e95c23 5838
d7040cdb
SE
5839int
5840main ()
5841{
20e95c23 5842
d7040cdb
SE
5843 ;
5844 return 0;
5845}
5846_ACEOF
5847rm -f conftest.$ac_objext conftest$ac_exeext
5848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5849 (eval $ac_link) 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -z "$ac_c_werror_flag"
5857 || test ! -s conftest.err'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; } &&
5863 { ac_try='test -s conftest$ac_exeext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 lt_cv_cc_needs_belf=yes
5870else
5871 echo "$as_me: failed program was:" >&5
5872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874lt_cv_cc_needs_belf=no
5875fi
5876rm -f conftest.err conftest.$ac_objext \
5877 conftest$ac_exeext conftest.$ac_ext
5878 ac_ext=c
5879ac_cpp='$CPP $CPPFLAGS'
5880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882ac_compiler_gnu=$ac_cv_c_compiler_gnu
5883
5884fi
5885echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5886echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5887 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5888 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5889 CFLAGS="$SAVE_CFLAGS"
5890 fi
5891 ;;
5892sparc*-*solaris*)
5893 # Find out which ABI we are using.
5894 echo 'int i;' > conftest.$ac_ext
5895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896 (eval $ac_compile) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; then
5900 case `/usr/bin/file conftest.o` in
5901 *64-bit*)
5902 case $lt_cv_prog_gnu_ld in
5903 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5904 *) LD="${LD-ld} -64" ;;
5905 esac
5906 ;;
5907 esac
5908 fi
5909 rm -rf conftest*
5910 ;;
5911esac
5912
5913need_locks="$enable_libtool_lock"
5914
5915ac_ext=c
5916ac_cpp='$CPP $CPPFLAGS'
5917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919ac_compiler_gnu=$ac_cv_c_compiler_gnu
5920echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5921echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5922# On Suns, sometimes $CPP names a directory.
5923if test -n "$CPP" && test -d "$CPP"; then
5924 CPP=
5925fi
5926if test -z "$CPP"; then
5927 if test "${ac_cv_prog_CPP+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930 # Double quotes because CPP needs to be expanded
5931 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5932 do
5933 ac_preproc_ok=false
5934for ac_c_preproc_warn_flag in '' yes
5935do
5936 # Use a header file that comes with gcc, so configuring glibc
5937 # with a fresh cross-compiler works.
5938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5939 # <limits.h> exists even on freestanding compilers.
5940 # On the NeXT, cc -E runs the code through the compiler's parser,
5941 # not just through cpp. "Syntax error" is here to catch this case.
5942 cat >conftest.$ac_ext <<_ACEOF
5943/* confdefs.h. */
5944_ACEOF
5945cat confdefs.h >>conftest.$ac_ext
5946cat >>conftest.$ac_ext <<_ACEOF
5947/* end confdefs.h. */
5948#ifdef __STDC__
5949# include <limits.h>
5950#else
5951# include <assert.h>
5952#endif
5953 Syntax error
5954_ACEOF
5955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5957 ac_status=$?
5958 grep -v '^ *+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } >/dev/null; then
5963 if test -s conftest.err; then
5964 ac_cpp_err=$ac_c_preproc_warn_flag
5965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5966 else
5967 ac_cpp_err=
5968 fi
5969else
5970 ac_cpp_err=yes
5971fi
5972if test -z "$ac_cpp_err"; then
5973 :
5974else
5975 echo "$as_me: failed program was:" >&5
5976sed 's/^/| /' conftest.$ac_ext >&5
5977
5978 # Broken: fails on valid input.
5979continue
5980fi
5981rm -f conftest.err conftest.$ac_ext
5982
5983 # OK, works on sane cases. Now check whether non-existent headers
5984 # can be detected and how.
5985 cat >conftest.$ac_ext <<_ACEOF
5986/* confdefs.h. */
5987_ACEOF
5988cat confdefs.h >>conftest.$ac_ext
5989cat >>conftest.$ac_ext <<_ACEOF
5990/* end confdefs.h. */
5991#include <ac_nonexistent.h>
5992_ACEOF
5993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } >/dev/null; then
6001 if test -s conftest.err; then
6002 ac_cpp_err=$ac_c_preproc_warn_flag
6003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6004 else
6005 ac_cpp_err=
6006 fi
6007else
6008 ac_cpp_err=yes
6009fi
6010if test -z "$ac_cpp_err"; then
6011 # Broken: success on invalid input.
6012continue
6013else
6014 echo "$as_me: failed program was:" >&5
6015sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 # Passes both tests.
6018ac_preproc_ok=:
6019break
6020fi
6021rm -f conftest.err conftest.$ac_ext
6022
6023done
6024# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6025rm -f conftest.err conftest.$ac_ext
6026if $ac_preproc_ok; then
6027 break
6028fi
6029
6030 done
6031 ac_cv_prog_CPP=$CPP
6032
6033fi
6034 CPP=$ac_cv_prog_CPP
6035else
6036 ac_cv_prog_CPP=$CPP
6037fi
6038echo "$as_me:$LINENO: result: $CPP" >&5
6039echo "${ECHO_T}$CPP" >&6
6040ac_preproc_ok=false
6041for ac_c_preproc_warn_flag in '' yes
6042do
6043 # Use a header file that comes with gcc, so configuring glibc
6044 # with a fresh cross-compiler works.
6045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6046 # <limits.h> exists even on freestanding compilers.
6047 # On the NeXT, cc -E runs the code through the compiler's parser,
6048 # not just through cpp. "Syntax error" is here to catch this case.
6049 cat >conftest.$ac_ext <<_ACEOF
6050/* confdefs.h. */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
6054/* end confdefs.h. */
6055#ifdef __STDC__
6056# include <limits.h>
6057#else
6058# include <assert.h>
6059#endif
6060 Syntax error
6061_ACEOF
6062if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } >/dev/null; then
6070 if test -s conftest.err; then
6071 ac_cpp_err=$ac_c_preproc_warn_flag
6072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6073 else
6074 ac_cpp_err=
6075 fi
6076else
6077 ac_cpp_err=yes
6078fi
6079if test -z "$ac_cpp_err"; then
6080 :
6081else
6082 echo "$as_me: failed program was:" >&5
6083sed 's/^/| /' conftest.$ac_ext >&5
6084
6085 # Broken: fails on valid input.
6086continue
6087fi
6088rm -f conftest.err conftest.$ac_ext
6089
6090 # OK, works on sane cases. Now check whether non-existent headers
6091 # can be detected and how.
6092 cat >conftest.$ac_ext <<_ACEOF
6093/* confdefs.h. */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h. */
6098#include <ac_nonexistent.h>
6099_ACEOF
6100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6102 ac_status=$?
6103 grep -v '^ *+' conftest.er1 >conftest.err
6104 rm -f conftest.er1
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } >/dev/null; then
6108 if test -s conftest.err; then
6109 ac_cpp_err=$ac_c_preproc_warn_flag
6110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6111 else
6112 ac_cpp_err=
6113 fi
6114else
6115 ac_cpp_err=yes
6116fi
6117if test -z "$ac_cpp_err"; then
6118 # Broken: success on invalid input.
6119continue
6120else
6121 echo "$as_me: failed program was:" >&5
6122sed 's/^/| /' conftest.$ac_ext >&5
6123
6124 # Passes both tests.
6125ac_preproc_ok=:
6126break
6127fi
6128rm -f conftest.err conftest.$ac_ext
6129
6130done
6131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6132rm -f conftest.err conftest.$ac_ext
6133if $ac_preproc_ok; then
6134 :
6135else
6136 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6137See \`config.log' for more details." >&5
6138echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6139See \`config.log' for more details." >&2;}
6140 { (exit 1); exit 1; }; }
6141fi
6142
6143ac_ext=c
6144ac_cpp='$CPP $CPPFLAGS'
6145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147ac_compiler_gnu=$ac_cv_c_compiler_gnu
6148
6149
6150echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6151echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6152if test "${ac_cv_header_stdc+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154else
6155 cat >conftest.$ac_ext <<_ACEOF
6156/* confdefs.h. */
6157_ACEOF
6158cat confdefs.h >>conftest.$ac_ext
6159cat >>conftest.$ac_ext <<_ACEOF
6160/* end confdefs.h. */
6161#include <stdlib.h>
6162#include <stdarg.h>
6163#include <string.h>
6164#include <float.h>
6165
6166int
6167main ()
6168{
6169
6170 ;
6171 return 0;
6172}
6173_ACEOF
6174rm -f conftest.$ac_objext
6175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>conftest.er1
6177 ac_status=$?
6178 grep -v '^ *+' conftest.er1 >conftest.err
6179 rm -f conftest.er1
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -z "$ac_c_werror_flag"
6184 || test ! -s conftest.err'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_cv_header_stdc=yes
6197else
6198 echo "$as_me: failed program was:" >&5
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
6201ac_cv_header_stdc=no
6202fi
6203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6204
6205if test $ac_cv_header_stdc = yes; then
6206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6207 cat >conftest.$ac_ext <<_ACEOF
6208/* confdefs.h. */
6209_ACEOF
6210cat confdefs.h >>conftest.$ac_ext
6211cat >>conftest.$ac_ext <<_ACEOF
6212/* end confdefs.h. */
6213#include <string.h>
6214
6215_ACEOF
6216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6217 $EGREP "memchr" >/dev/null 2>&1; then
6218 :
6219else
6220 ac_cv_header_stdc=no
6221fi
6222rm -f conftest*
6223
6224fi
6225
6226if test $ac_cv_header_stdc = yes; then
6227 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6228 cat >conftest.$ac_ext <<_ACEOF
6229/* confdefs.h. */
6230_ACEOF
6231cat confdefs.h >>conftest.$ac_ext
6232cat >>conftest.$ac_ext <<_ACEOF
6233/* end confdefs.h. */
6234#include <stdlib.h>
6235
6236_ACEOF
6237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6238 $EGREP "free" >/dev/null 2>&1; then
6239 :
6240else
6241 ac_cv_header_stdc=no
6242fi
6243rm -f conftest*
6244
6245fi
6246
6247if test $ac_cv_header_stdc = yes; then
6248 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6249 if test "$cross_compiling" = yes; then
6250 :
6251else
6252 cat >conftest.$ac_ext <<_ACEOF
6253/* confdefs.h. */
6254_ACEOF
6255cat confdefs.h >>conftest.$ac_ext
6256cat >>conftest.$ac_ext <<_ACEOF
6257/* end confdefs.h. */
6258#include <ctype.h>
6259#if ((' ' & 0x0FF) == 0x020)
6260# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6261# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6262#else
6263# define ISLOWER(c) \
6264 (('a' <= (c) && (c) <= 'i') \
6265 || ('j' <= (c) && (c) <= 'r') \
6266 || ('s' <= (c) && (c) <= 'z'))
6267# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6268#endif
6269
6270#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6271int
6272main ()
6273{
6274 int i;
6275 for (i = 0; i < 256; i++)
6276 if (XOR (islower (i), ISLOWER (i))
6277 || toupper (i) != TOUPPER (i))
6278 exit(2);
6279 exit (0);
6280}
6281_ACEOF
6282rm -f conftest$ac_exeext
6283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6284 (eval $ac_link) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 :
6294else
6295 echo "$as_me: program exited with status $ac_status" >&5
6296echo "$as_me: failed program was:" >&5
6297sed 's/^/| /' conftest.$ac_ext >&5
6298
6299( exit $ac_status )
6300ac_cv_header_stdc=no
6301fi
6302rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6303fi
6304fi
6305fi
6306echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6307echo "${ECHO_T}$ac_cv_header_stdc" >&6
6308if test $ac_cv_header_stdc = yes; then
6309
6310cat >>confdefs.h <<\_ACEOF
6311#define STDC_HEADERS 1
6312_ACEOF
6313
6314fi
6315
6316# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6327 inttypes.h stdint.h unistd.h
6328do
6329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330echo "$as_me:$LINENO: checking for $ac_header" >&5
6331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6332if eval "test \"\${$as_ac_Header+set}\" = set"; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335 cat >conftest.$ac_ext <<_ACEOF
6336/* confdefs.h. */
6337_ACEOF
6338cat confdefs.h >>conftest.$ac_ext
6339cat >>conftest.$ac_ext <<_ACEOF
6340/* end confdefs.h. */
6341$ac_includes_default
6342
6343#include <$ac_header>
6344_ACEOF
6345rm -f conftest.$ac_objext
6346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347 (eval $ac_compile) 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -z "$ac_c_werror_flag"
6355 || test ! -s conftest.err'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try='test -s conftest.$ac_objext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 eval "$as_ac_Header=yes"
6368else
6369 echo "$as_me: failed program was:" >&5
6370sed 's/^/| /' conftest.$ac_ext >&5
6371
6372eval "$as_ac_Header=no"
6373fi
6374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6375fi
6376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6378if test `eval echo '${'$as_ac_Header'}'` = yes; then
6379 cat >>confdefs.h <<_ACEOF
6380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6381_ACEOF
6382
6383fi
6384
6385done
6386
6387
6388
6389for ac_header in dlfcn.h
6390do
6391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6392echo "$as_me:$LINENO: checking for $ac_header" >&5
6393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6394if eval "test \"\${$as_ac_Header+set}\" = set"; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6396else
6397 cat >conftest.$ac_ext <<_ACEOF
6398/* confdefs.h. */
6399_ACEOF
6400cat confdefs.h >>conftest.$ac_ext
6401cat >>conftest.$ac_ext <<_ACEOF
6402/* end confdefs.h. */
6403$ac_includes_default
6404
6405#include <$ac_header>
6406_ACEOF
6407rm -f conftest.$ac_objext
6408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409 (eval $ac_compile) 2>conftest.er1
6410 ac_status=$?
6411 grep -v '^ *+' conftest.er1 >conftest.err
6412 rm -f conftest.er1
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try='test -z "$ac_c_werror_flag"
6417 || test ! -s conftest.err'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 eval "$as_ac_Header=yes"
6430else
6431 echo "$as_me: failed program was:" >&5
6432sed 's/^/| /' conftest.$ac_ext >&5
6433
6434eval "$as_ac_Header=no"
6435fi
6436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6437fi
6438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6440if test `eval echo '${'$as_ac_Header'}'` = yes; then
6441 cat >>confdefs.h <<_ACEOF
6442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6443_ACEOF
6444
6445fi
6446
6447done
6448
6449
6450
6451# This can be used to rebuild libtool when needed
6452LIBTOOL_DEPS="$ltmain"
6453
6454# Always use our own libtool.
6455LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481test -z "$LN_S" && LN_S="ln -s"
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496if test -n "${ZSH_VERSION+set}" ; then
6497 setopt NO_GLOB_SUBST
6498fi
6499
6500echo "$as_me:$LINENO: checking for objdir" >&5
6501echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6502if test "${lt_cv_objdir+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504else
6505 rm -f .libs 2>/dev/null
6506mkdir .libs 2>/dev/null
6507if test -d .libs; then
6508 lt_cv_objdir=.libs
6509else
6510 # MS-DOS does not allow filenames that begin with a dot.
6511 lt_cv_objdir=_libs
6512fi
6513rmdir .libs 2>/dev/null
6514fi
6515echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6516echo "${ECHO_T}$lt_cv_objdir" >&6
6517objdir=$lt_cv_objdir
6518
6519
6520
6521
6522
6523cat >>confdefs.h <<_ACEOF
6524#define LT_OBJDIR "$lt_cv_objdir/"
6525_ACEOF
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543case $host_os in
6544aix3*)
6545 # AIX sometimes has problems with the GCC collect2 program. For some
6546 # reason, if we set the COLLECT_NAMES environment variable, the problems
6547 # vanish in a puff of smoke.
6548 if test "X${COLLECT_NAMES+set}" != Xset; then
6549 COLLECT_NAMES=
6550 export COLLECT_NAMES
6551 fi
6552 ;;
6553esac
6554
6555# Sed substitution that helps us do robust quoting. It backslashifies
6556# metacharacters that are still active within double-quoted strings.
6557sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6558
6559# Same as above, but do not quote variable references.
6560double_quote_subst='s/\(["`\\]\)/\\\1/g'
6561
6562# Sed substitution to delay expansion of an escaped shell variable in a
6563# double_quote_subst'ed string.
6564delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6565
6566# Sed substitution to delay expansion of an escaped single quote.
6567delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6568
6569# Sed substitution to avoid accidental globbing in evaled expressions
6570no_glob_subst='s/\*/\\\*/g'
6571
6572# Global variables:
6573ofile=libtool
6574can_build_shared=yes
6575
6576# All known linkers require a `.a' archive for static linking (except MSVC,
6577# which needs '.lib').
6578libext=a
6579
6580with_gnu_ld="$lt_cv_prog_gnu_ld"
6581
6582old_CC="$CC"
6583old_CFLAGS="$CFLAGS"
6584
6585# Set sane defaults for various variables
6586test -z "$CC" && CC=cc
6587test -z "$LTCC" && LTCC=$CC
6588test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6589test -z "$LD" && LD=ld
6590test -z "$ac_objext" && ac_objext=o
6591
6592for cc_temp in $compiler""; do
6593 case $cc_temp in
6594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6596 \-*) ;;
6597 *) break;;
6598 esac
6599done
6600cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6601
6602
6603# Only perform the check for file, if the check method requires it
6604test -z "$MAGIC_CMD" && MAGIC_CMD=file
6605case $deplibs_check_method in
6606file_magic*)
6607 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6608 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6609echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6610if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6612else
6613 case $MAGIC_CMD in
6614[\\/*] | ?:[\\/]*)
6615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6616 ;;
6617*)
6618 lt_save_MAGIC_CMD="$MAGIC_CMD"
6619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6621 for ac_dir in $ac_dummy; do
6622 IFS="$lt_save_ifs"
6623 test -z "$ac_dir" && ac_dir=.
6624 if test -f $ac_dir/${ac_tool_prefix}file; then
6625 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6626 if test -n "$file_magic_test_file"; then
6627 case $deplibs_check_method in
6628 "file_magic "*)
6629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6632 $EGREP "$file_magic_regex" > /dev/null; then
6633 :
6634 else
6635 cat <<_LT_EOF 1>&2
6636
6637*** Warning: the command libtool uses to detect shared libraries,
6638*** $file_magic_cmd, produces output that libtool cannot recognize.
6639*** The result is that libtool may fail to recognize shared libraries
6640*** as such. This will affect the creation of libtool libraries that
6641*** depend on shared libraries, but programs linked with such libtool
6642*** libraries will work regardless of this problem. Nevertheless, you
6643*** may want to report the problem to your system manager and/or to
6644*** bug-libtool@gnu.org
6645
6646_LT_EOF
6647 fi ;;
6648 esac
6649 fi
6650 break
6651 fi
6652 done
6653 IFS="$lt_save_ifs"
6654 MAGIC_CMD="$lt_save_MAGIC_CMD"
6655 ;;
6656esac
6657fi
6658
6659MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6660if test -n "$MAGIC_CMD"; then
6661 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6662echo "${ECHO_T}$MAGIC_CMD" >&6
6663else
6664 echo "$as_me:$LINENO: result: no" >&5
6665echo "${ECHO_T}no" >&6
6666fi
6667
6668
6669
6670
6671
6672if test -z "$lt_cv_path_MAGIC_CMD"; then
6673 if test -n "$ac_tool_prefix"; then
6674 echo "$as_me:$LINENO: checking for file" >&5
6675echo $ECHO_N "checking for file... $ECHO_C" >&6
6676if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678else
6679 case $MAGIC_CMD in
6680[\\/*] | ?:[\\/]*)
6681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6682 ;;
6683*)
6684 lt_save_MAGIC_CMD="$MAGIC_CMD"
6685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6687 for ac_dir in $ac_dummy; do
6688 IFS="$lt_save_ifs"
6689 test -z "$ac_dir" && ac_dir=.
6690 if test -f $ac_dir/file; then
6691 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6692 if test -n "$file_magic_test_file"; then
6693 case $deplibs_check_method in
6694 "file_magic "*)
6695 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6698 $EGREP "$file_magic_regex" > /dev/null; then
6699 :
6700 else
6701 cat <<_LT_EOF 1>&2
6702
6703*** Warning: the command libtool uses to detect shared libraries,
6704*** $file_magic_cmd, produces output that libtool cannot recognize.
6705*** The result is that libtool may fail to recognize shared libraries
6706*** as such. This will affect the creation of libtool libraries that
6707*** depend on shared libraries, but programs linked with such libtool
6708*** libraries will work regardless of this problem. Nevertheless, you
6709*** may want to report the problem to your system manager and/or to
6710*** bug-libtool@gnu.org
6711
6712_LT_EOF
6713 fi ;;
6714 esac
6715 fi
6716 break
6717 fi
6718 done
6719 IFS="$lt_save_ifs"
6720 MAGIC_CMD="$lt_save_MAGIC_CMD"
6721 ;;
6722esac
6723fi
6724
6725MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6726if test -n "$MAGIC_CMD"; then
6727 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6728echo "${ECHO_T}$MAGIC_CMD" >&6
6729else
6730 echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6
6732fi
6733
6734
6735 else
6736 MAGIC_CMD=:
6737 fi
6738fi
6739
6740 fi
6741 ;;
6742esac
6743
6744# Use C for the default configuration in the libtool script
6745
6746lt_save_CC="$CC"
6747ac_ext=c
6748ac_cpp='$CPP $CPPFLAGS'
6749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6751ac_compiler_gnu=$ac_cv_c_compiler_gnu
6752
6753
6754# Source file extension for C test sources.
6755ac_ext=c
6756
6757# Object file extension for compiled C test sources.
6758objext=o
6759objext=$objext
6760
6761# Code to be used in simple compile tests
6762lt_simple_compile_test_code="int some_variable = 0;"
6763
6764# Code to be used in simple link tests
6765lt_simple_link_test_code='int main(){return(0);}'
6766
6767
6768
6769
6770
6771
6772
6773# If no C compiler was specified, use CC.
6774LTCC=${LTCC-"$CC"}
6775
6776# If no C compiler flags were specified, use CFLAGS.
6777LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6778
6779# Allow CC to be a program name with arguments.
6780compiler=$CC
6781
6782# Save the default compiler, since it gets overwritten when the other
6783# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6784compiler_DEFAULT=$CC
6785
6786# save warnings/boilerplate of simple test code
6787ac_outfile=conftest.$ac_objext
6788echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6789eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6790_lt_compiler_boilerplate=`cat conftest.err`
6791$RM conftest*
6792
6793ac_outfile=conftest.$ac_objext
6794echo "$lt_simple_link_test_code" >conftest.$ac_ext
6795eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6796_lt_linker_boilerplate=`cat conftest.err`
6797$RM conftest*
6798
6799
6800## CAVEAT EMPTOR:
6801## There is no encapsulation within the following macros, do not change
6802## the running order or otherwise move them around unless you know exactly
6803## what you are doing...
6804if test -n "$compiler"; then
6805
6806lt_prog_compiler_no_builtin_flag=
6807
6808if test "$GCC" = yes; then
6809 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6810
6811 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6812echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6813if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816 lt_cv_prog_compiler_rtti_exceptions=no
6817 ac_outfile=conftest.$ac_objext
6818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6819 lt_compiler_flag="-fno-rtti -fno-exceptions"
6820 # Insert the option either (1) after the last *FLAGS variable, or
6821 # (2) before a word containing "conftest.", or (3) at the end.
6822 # Note that $ac_compile itself does not contain backslashes and begins
6823 # with a dollar sign (not a hyphen), so the echo should work correctly.
6824 # The option is referenced via a variable to avoid confusing sed.
6825 lt_compile=`echo "$ac_compile" | $SED \
6826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6828 -e 's:$: $lt_compiler_flag:'`
0d4a1476 6829 (eval echo "\"\$as_me:6829: $lt_compile\"" >&5)
d7040cdb
SE
6830 (eval "$lt_compile" 2>conftest.err)
6831 ac_status=$?
6832 cat conftest.err >&5
0d4a1476 6833 echo "$as_me:6833: \$? = $ac_status" >&5
d7040cdb
SE
6834 if (exit $ac_status) && test -s "$ac_outfile"; then
6835 # The compiler can only warn and ignore the option if not recognized
6836 # So say no if there are warnings other than the usual output.
6837 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6839 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6840 lt_cv_prog_compiler_rtti_exceptions=yes
6841 fi
6842 fi
6843 $RM conftest*
6844
6845fi
6846echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6847echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6848
6849if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6850 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6851else
6852 :
6853fi
6854
6855fi
6856
6857
6858
6859
6860
6861
6862 lt_prog_compiler_wl=
6863lt_prog_compiler_pic=
6864lt_prog_compiler_static=
6865
6866echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6867echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6868
6869 if test "$GCC" = yes; then
6870 lt_prog_compiler_wl='-Wl,'
6871 lt_prog_compiler_static='-static'
6872
6873 case $host_os in
6874 aix*)
6875 # All AIX code is PIC.
6876 if test "$host_cpu" = ia64; then
6877 # AIX 5 now supports IA64 processor
6878 lt_prog_compiler_static='-Bstatic'
6879 fi
6880 ;;
6881
6882 amigaos*)
6883 if test "$host_cpu" = m68k; then
6884 # FIXME: we need at least 68020 code to build shared libraries, but
6885 # adding the `-m68020' flag to GCC prevents building anything better,
6886 # like `-m68040'.
6887 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6888 fi
6889 ;;
6890
6891 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6892 # PIC is the default for these OSes.
6893 ;;
6894
6895 mingw* | cygwin* | pw32* | os2*)
6896 # This hack is so that the source file can tell whether it is being
6897 # built for inclusion in a dll (and should export symbols for example).
6898 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6899 # (--disable-auto-import) libraries
6900 lt_prog_compiler_pic='-DDLL_EXPORT'
6901 ;;
6902
6903 darwin* | rhapsody*)
6904 # PIC is the default on this platform
6905 # Common symbols not allowed in MH_DYLIB files
6906 lt_prog_compiler_pic='-fno-common'
6907 ;;
6908
6909 hpux*)
6910 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6911 # not for PA HP-UX.
6912 case $host_cpu in
6913 hppa*64*|ia64*)
6914 # +Z the default
6915 ;;
6916 *)
6917 lt_prog_compiler_pic='-fPIC'
6918 ;;
6919 esac
6920 ;;
6921
6922 interix[3-9]*)
6923 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6924 # Instead, we relocate shared libraries at runtime.
6925 ;;
6926
6927 msdosdjgpp*)
6928 # Just because we use GCC doesn't mean we suddenly get shared libraries
6929 # on systems that don't support them.
6930 lt_prog_compiler_can_build_shared=no
6931 enable_shared=no
6932 ;;
6933
6934 *nto* | *qnx*)
6935 # QNX uses GNU C++, but need to define -shared option too, otherwise
6936 # it will coredump.
6937 lt_prog_compiler_pic='-fPIC -shared'
6938 ;;
6939
6940 sysv4*MP*)
6941 if test -d /usr/nec; then
6942 lt_prog_compiler_pic=-Kconform_pic
6943 fi
6944 ;;
6945
6946 *)
6947 lt_prog_compiler_pic='-fPIC'
6948 ;;
6949 esac
6950 else
6951 # PORTME Check for flag to pass linker flags through the system compiler.
6952 case $host_os in
6953 aix*)
6954 lt_prog_compiler_wl='-Wl,'
6955 if test "$host_cpu" = ia64; then
6956 # AIX 5 now supports IA64 processor
6957 lt_prog_compiler_static='-Bstatic'
6958 else
6959 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6960 fi
6961 ;;
6962 darwin*)
6963 # PIC is the default on this platform
6964 # Common symbols not allowed in MH_DYLIB files
6965 case $cc_basename in
6966 xlc*)
6967 lt_prog_compiler_pic='-qnocommon'
6968 lt_prog_compiler_wl='-Wl,'
6969 ;;
6970 esac
6971 ;;
6972
6973 mingw* | cygwin* | pw32* | os2*)
6974 # This hack is so that the source file can tell whether it is being
6975 # built for inclusion in a dll (and should export symbols for example).
6976 lt_prog_compiler_pic='-DDLL_EXPORT'
6977 ;;
6978
6979 hpux9* | hpux10* | hpux11*)
6980 lt_prog_compiler_wl='-Wl,'
6981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6982 # not for PA HP-UX.
6983 case $host_cpu in
6984 hppa*64*|ia64*)
6985 # +Z the default
6986 ;;
6987 *)
6988 lt_prog_compiler_pic='+Z'
6989 ;;
6990 esac
6991 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6992 lt_prog_compiler_static='${wl}-a ${wl}archive'
6993 ;;
6994
6995 irix5* | irix6* | nonstopux*)
6996 lt_prog_compiler_wl='-Wl,'
6997 # PIC (with -KPIC) is the default.
6998 lt_prog_compiler_static='-non_shared'
6999 ;;
7000
7001 linux* | k*bsd*-gnu)
7002 case $cc_basename in
7003 icc* | ecc*)
7004 lt_prog_compiler_wl='-Wl,'
7005 lt_prog_compiler_pic='-KPIC'
7006 lt_prog_compiler_static='-static'
7007 ;;
7008 pgcc* | pgf77* | pgf90* | pgf95*)
7009 # Portland Group compilers (*not* the Pentium gcc compiler,
7010 # which looks to be a dead project)
7011 lt_prog_compiler_wl='-Wl,'
7012 lt_prog_compiler_pic='-fpic'
7013 lt_prog_compiler_static='-Bstatic'
7014 ;;
7015 ccc*)
7016 lt_prog_compiler_wl='-Wl,'
7017 # All Alpha code is PIC.
7018 lt_prog_compiler_static='-non_shared'
7019 ;;
7020 *)
7021 case `$CC -V 2>&1 | sed 5q` in
7022 *Sun\ C*)
7023 # Sun C 5.9
7024 lt_prog_compiler_pic='-KPIC'
7025 lt_prog_compiler_static='-Bstatic'
7026 lt_prog_compiler_wl='-Wl,'
7027 ;;
7028 *Sun\ F*)
7029 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7030 lt_prog_compiler_pic='-KPIC'
7031 lt_prog_compiler_static='-Bstatic'
7032 lt_prog_compiler_wl=''
7033 ;;
7034 esac
7035 ;;
7036 esac
7037 ;;
7038
7039 newsos6)
7040 lt_prog_compiler_pic='-KPIC'
7041 lt_prog_compiler_static='-Bstatic'
7042 ;;
7043
7044 *nto* | *qnx*)
7045 # QNX uses GNU C++, but need to define -shared option too, otherwise
7046 # it will coredump.
7047 lt_prog_compiler_pic='-fPIC -shared'
7048 ;;
7049
7050 osf3* | osf4* | osf5*)
7051 lt_prog_compiler_wl='-Wl,'
7052 # All OSF/1 code is PIC.
7053 lt_prog_compiler_static='-non_shared'
7054 ;;
7055
7056 rdos*)
7057 lt_prog_compiler_static='-non_shared'
7058 ;;
7059
7060 solaris*)
7061 lt_prog_compiler_pic='-KPIC'
7062 lt_prog_compiler_static='-Bstatic'
7063 case $cc_basename in
7064 f77* | f90* | f95*)
7065 lt_prog_compiler_wl='-Qoption ld ';;
7066 *)
7067 lt_prog_compiler_wl='-Wl,';;
7068 esac
7069 ;;
7070
7071 sunos4*)
7072 lt_prog_compiler_wl='-Qoption ld '
7073 lt_prog_compiler_pic='-PIC'
7074 lt_prog_compiler_static='-Bstatic'
7075 ;;
7076
7077 sysv4 | sysv4.2uw2* | sysv4.3*)
7078 lt_prog_compiler_wl='-Wl,'
7079 lt_prog_compiler_pic='-KPIC'
7080 lt_prog_compiler_static='-Bstatic'
7081 ;;
7082
7083 sysv4*MP*)
7084 if test -d /usr/nec ;then
7085 lt_prog_compiler_pic='-Kconform_pic'
7086 lt_prog_compiler_static='-Bstatic'
7087 fi
7088 ;;
7089
7090 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7091 lt_prog_compiler_wl='-Wl,'
7092 lt_prog_compiler_pic='-KPIC'
7093 lt_prog_compiler_static='-Bstatic'
7094 ;;
7095
7096 unicos*)
7097 lt_prog_compiler_wl='-Wl,'
7098 lt_prog_compiler_can_build_shared=no
7099 ;;
7100
7101 uts4*)
7102 lt_prog_compiler_pic='-pic'
7103 lt_prog_compiler_static='-Bstatic'
7104 ;;
7105
7106 *)
7107 lt_prog_compiler_can_build_shared=no
7108 ;;
7109 esac
7110 fi
7111
7112case $host_os in
7113 # For platforms which do not support PIC, -DPIC is meaningless:
7114 *djgpp*)
7115 lt_prog_compiler_pic=
7116 ;;
7117 *)
7118 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7119 ;;
7120esac
7121echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7122echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7123
7124
7125
7126
7127
7128
7129#
7130# Check to make sure the PIC flag actually works.
7131#
7132if test -n "$lt_prog_compiler_pic"; then
7133 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7134echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7135if test "${lt_prog_compiler_pic_works+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137else
7138 lt_prog_compiler_pic_works=no
7139 ac_outfile=conftest.$ac_objext
7140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7141 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7142 # Insert the option either (1) after the last *FLAGS variable, or
7143 # (2) before a word containing "conftest.", or (3) at the end.
7144 # Note that $ac_compile itself does not contain backslashes and begins
7145 # with a dollar sign (not a hyphen), so the echo should work correctly.
7146 # The option is referenced via a variable to avoid confusing sed.
7147 lt_compile=`echo "$ac_compile" | $SED \
7148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7150 -e 's:$: $lt_compiler_flag:'`
0d4a1476 7151 (eval echo "\"\$as_me:7151: $lt_compile\"" >&5)
d7040cdb
SE
7152 (eval "$lt_compile" 2>conftest.err)
7153 ac_status=$?
7154 cat conftest.err >&5
0d4a1476 7155 echo "$as_me:7155: \$? = $ac_status" >&5
d7040cdb
SE
7156 if (exit $ac_status) && test -s "$ac_outfile"; then
7157 # The compiler can only warn and ignore the option if not recognized
7158 # So say no if there are warnings other than the usual output.
7159 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7162 lt_prog_compiler_pic_works=yes
7163 fi
7164 fi
7165 $RM conftest*
7166
7167fi
7168echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7169echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7170
7171if test x"$lt_prog_compiler_pic_works" = xyes; then
7172 case $lt_prog_compiler_pic in
7173 "" | " "*) ;;
7174 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7175 esac
7176else
7177 lt_prog_compiler_pic=
7178 lt_prog_compiler_can_build_shared=no
7179fi
7180
7181fi
7182
7183
7184
7185
7186
7187
7188#
7189# Check to make sure the static flag actually works.
7190#
7191wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7192echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7193echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7194if test "${lt_prog_compiler_static_works+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197 lt_prog_compiler_static_works=no
7198 save_LDFLAGS="$LDFLAGS"
7199 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7200 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7202 # The linker can only warn and ignore the option if not recognized
7203 # So say no if there are warnings
7204 if test -s conftest.err; then
7205 # Append any errors to the config.log.
7206 cat conftest.err 1>&5
7207 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7209 if diff conftest.exp conftest.er2 >/dev/null; then
7210 lt_prog_compiler_static_works=yes
7211 fi
7212 else
7213 lt_prog_compiler_static_works=yes
7214 fi
7215 fi
7216 $RM conftest*
7217 LDFLAGS="$save_LDFLAGS"
7218
7219fi
7220echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7221echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7222
7223if test x"$lt_prog_compiler_static_works" = xyes; then
7224 :
7225else
7226 lt_prog_compiler_static=
7227fi
7228
7229
7230
7231
7232
7233
7234
7235 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7236echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7237if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239else
7240 lt_cv_prog_compiler_c_o=no
7241 $RM -r conftest 2>/dev/null
7242 mkdir conftest
7243 cd conftest
7244 mkdir out
7245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7246
7247 lt_compiler_flag="-o out/conftest2.$ac_objext"
7248 # Insert the option either (1) after the last *FLAGS variable, or
7249 # (2) before a word containing "conftest.", or (3) at the end.
7250 # Note that $ac_compile itself does not contain backslashes and begins
7251 # with a dollar sign (not a hyphen), so the echo should work correctly.
7252 lt_compile=`echo "$ac_compile" | $SED \
7253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7255 -e 's:$: $lt_compiler_flag:'`
0d4a1476 7256 (eval echo "\"\$as_me:7256: $lt_compile\"" >&5)
d7040cdb
SE
7257 (eval "$lt_compile" 2>out/conftest.err)
7258 ac_status=$?
7259 cat out/conftest.err >&5
0d4a1476 7260 echo "$as_me:7260: \$? = $ac_status" >&5
d7040cdb
SE
7261 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7262 then
7263 # The compiler can only warn and ignore the option if not recognized
7264 # So say no if there are warnings
7265 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7266 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7267 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7268 lt_cv_prog_compiler_c_o=yes
7269 fi
7270 fi
7271 chmod u+w . 2>&5
7272 $RM conftest*
7273 # SGI C++ compiler will create directory out/ii_files/ for
7274 # template instantiation
7275 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7276 $RM out/* && rmdir out
7277 cd ..
7278 $RM -r conftest
7279 $RM conftest*
7280
7281fi
7282echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7283echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7284
7285
7286
7287
7288
7289
7290 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7291echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7292if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295 lt_cv_prog_compiler_c_o=no
7296 $RM -r conftest 2>/dev/null
7297 mkdir conftest
7298 cd conftest
7299 mkdir out
7300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7301
7302 lt_compiler_flag="-o out/conftest2.$ac_objext"
7303 # Insert the option either (1) after the last *FLAGS variable, or
7304 # (2) before a word containing "conftest.", or (3) at the end.
7305 # Note that $ac_compile itself does not contain backslashes and begins
7306 # with a dollar sign (not a hyphen), so the echo should work correctly.
7307 lt_compile=`echo "$ac_compile" | $SED \
7308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7310 -e 's:$: $lt_compiler_flag:'`
0d4a1476 7311 (eval echo "\"\$as_me:7311: $lt_compile\"" >&5)
d7040cdb
SE
7312 (eval "$lt_compile" 2>out/conftest.err)
7313 ac_status=$?
7314 cat out/conftest.err >&5
0d4a1476 7315 echo "$as_me:7315: \$? = $ac_status" >&5
d7040cdb
SE
7316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7317 then
7318 # The compiler can only warn and ignore the option if not recognized
7319 # So say no if there are warnings
7320 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7323 lt_cv_prog_compiler_c_o=yes
7324 fi
7325 fi
7326 chmod u+w . 2>&5
7327 $RM conftest*
7328 # SGI C++ compiler will create directory out/ii_files/ for
7329 # template instantiation
7330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7331 $RM out/* && rmdir out
7332 cd ..
7333 $RM -r conftest
7334 $RM conftest*
7335
7336fi
7337echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7338echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7339
7340
7341
7342
7343hard_links="nottested"
7344if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7345 # do not overwrite the value of need_locks provided by the user
7346 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7347echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7348 hard_links=yes
7349 $RM conftest*
7350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7351 touch conftest.a
7352 ln conftest.a conftest.b 2>&5 || hard_links=no
7353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7354 echo "$as_me:$LINENO: result: $hard_links" >&5
7355echo "${ECHO_T}$hard_links" >&6
7356 if test "$hard_links" = no; then
7357 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7358echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7359 need_locks=warn
7360 fi
7361else
7362 need_locks=no
7363fi
7364
7365
7366
7367
7368
7369
7370 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7371echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7372
7373 runpath_var=
7374 allow_undefined_flag=
7375 always_export_symbols=no
7376 archive_cmds=
7377 archive_expsym_cmds=
7378 compiler_needs_object=no
7379 enable_shared_with_static_runtimes=no
7380 export_dynamic_flag_spec=
7381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7382 hardcode_automatic=no
7383 hardcode_direct=no
7384 hardcode_direct_absolute=no
7385 hardcode_libdir_flag_spec=
7386 hardcode_libdir_flag_spec_ld=
7387 hardcode_libdir_separator=
7388 hardcode_minus_L=no
7389 hardcode_shlibpath_var=unsupported
7390 inherit_rpath=no
7391 link_all_deplibs=unknown
7392 module_cmds=
7393 module_expsym_cmds=
7394 old_archive_from_new_cmds=
7395 old_archive_from_expsyms_cmds=
7396 thread_safe_flag_spec=
7397 whole_archive_flag_spec=
7398 # include_expsyms should be a list of space-separated symbols to be *always*
7399 # included in the symbol list
7400 include_expsyms=
7401 # exclude_expsyms can be an extended regexp of symbols to exclude
7402 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7403 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7404 # as well as any symbol that contains `d'.
7405 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7406 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7407 # platforms (ab)use it in PIC code, but their linkers get confused if
7408 # the symbol is explicitly referenced. Since portable code cannot
7409 # rely on this symbol name, it's probably fine to never include it in
7410 # preloaded symbol tables.
7411 extract_expsyms_cmds=
7412
7413 case $host_os in
7414 cygwin* | mingw* | pw32*)
7415 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7416 # When not using gcc, we currently assume that we are using
7417 # Microsoft Visual C++.
7418 if test "$GCC" != yes; then
7419 with_gnu_ld=no
7420 fi
7421 ;;
7422 interix*)
7423 # we just hope/assume this is gcc and not c89 (= MSVC++)
7424 with_gnu_ld=yes
7425 ;;
7426 openbsd*)
7427 with_gnu_ld=no
7428 ;;
7429 esac
7430
7431 ld_shlibs=yes
7432 if test "$with_gnu_ld" = yes; then
7433 # If archive_cmds runs LD, not CC, wlarc should be empty
7434 wlarc='${wl}'
7435
7436 # Set some defaults for GNU ld with shared library support. These
7437 # are reset later if shared libraries are not supported. Putting them
7438 # here allows them to be overridden if necessary.
7439 runpath_var=LD_RUN_PATH
7440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7441 export_dynamic_flag_spec='${wl}--export-dynamic'
7442 # ancient GNU ld didn't support --whole-archive et. al.
7443 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7444 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7445 else
7446 whole_archive_flag_spec=
7447 fi
7448 supports_anon_versioning=no
7449 case `$LD -v 2>&1` in
7450 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7451 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7452 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7453 *\ 2.11.*) ;; # other 2.11 versions
7454 *) supports_anon_versioning=yes ;;
7455 esac
7456
7457 # See if GNU ld supports shared libraries.
7458 case $host_os in
7459 aix3* | aix4* | aix5*)
7460 # On AIX/PPC, the GNU linker is very broken
7461 if test "$host_cpu" != ia64; then
7462 ld_shlibs=no
7463 cat <<_LT_EOF 1>&2
7464
7465*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7466*** to be unable to reliably create shared libraries on AIX.
7467*** Therefore, libtool is disabling shared libraries support. If you
7468*** really care for shared libraries, you may want to modify your PATH
7469*** so that a non-GNU linker is found, and then restart.
7470
7471_LT_EOF
7472 fi
7473 ;;
7474
7475 amigaos*)
7476 if test "$host_cpu" = m68k; then
7477 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)'
7478 hardcode_libdir_flag_spec='-L$libdir'
7479 hardcode_minus_L=yes
7480 fi
7481
7482 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7483 # that the semantics of dynamic libraries on AmigaOS, at least up
7484 # to version 4, is to share data among multiple programs linked
7485 # with the same dynamic library. Since this doesn't match the
7486 # behavior of shared libraries on other platforms, we can't use
7487 # them.
7488 ld_shlibs=no
7489 ;;
7490
7491 beos*)
7492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7493 allow_undefined_flag=unsupported
7494 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7495 # support --undefined. This deserves some investigation. FIXME
7496 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7497 else
7498 ld_shlibs=no
7499 fi
7500 ;;
7501
7502 cygwin* | mingw* | pw32*)
7503 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7504 # as there is no search path for DLLs.
7505 hardcode_libdir_flag_spec='-L$libdir'
7506 allow_undefined_flag=unsupported
7507 always_export_symbols=no
7508 enable_shared_with_static_runtimes=yes
7509 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7510
7511 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7513 # If the export-symbols file already is a .def file (1st line
7514 # is EXPORTS), use it as is; otherwise, prepend...
7515 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7516 cp $export_symbols $output_objdir/$soname.def;
7517 else
7518 echo EXPORTS > $output_objdir/$soname.def;
7519 cat $export_symbols >> $output_objdir/$soname.def;
7520 fi~
7521 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7522 else
7523 ld_shlibs=no
7524 fi
7525 ;;
7526
7527 interix[3-9]*)
7528 hardcode_direct=no
7529 hardcode_shlibpath_var=no
7530 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7531 export_dynamic_flag_spec='${wl}-E'
7532 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7533 # Instead, shared libraries are loaded at an image base (0x10000000 by
7534 # default) and relocated if they conflict, which is a slow very memory
7535 # consuming and fragmenting process. To avoid this, we pick a random,
7536 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7537 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7538 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7539 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'
7540 ;;
7541
7542 gnu* | linux* | tpf* | k*bsd*-gnu)
7543 tmp_diet=no
7544 if test "$host_os" = linux-dietlibc; then
7545 case $cc_basename in
7546 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7547 esac
7548 fi
7549 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7550 && test "$tmp_diet" = no
7551 then
7552 tmp_addflag=
7553 case $cc_basename,$host_cpu in
7554 pgcc*) # Portland Group C compiler
7555 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'
7556 tmp_addflag=' $pic_flag'
7557 ;;
7558 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7559 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'
7560 tmp_addflag=' $pic_flag -Mnomain' ;;
7561 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7562 tmp_addflag=' -i_dynamic' ;;
7563 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7564 tmp_addflag=' -i_dynamic -nofor_main' ;;
7565 ifc* | ifort*) # Intel Fortran compiler
7566 tmp_addflag=' -nofor_main' ;;
7567 esac
7568 case `$CC -V 2>&1 | sed 5q` in
7569 *Sun\ C*) # Sun C 5.9
7570 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'
7571 compiler_needs_object=yes
7572 tmp_sharedflag='-G' ;;
7573 *Sun\ F*) # Sun Fortran 8.3
7574 tmp_sharedflag='-G' ;;
7575 *)
7576 tmp_sharedflag='-shared' ;;
7577 esac
7578 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7579
7580 if test "x$supports_anon_versioning" = xyes; then
7581 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7582 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7583 echo "local: *; };" >> $output_objdir/$libname.ver~
7584 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7585 fi
7586 else
7587 ld_shlibs=no
7588 fi
7589 ;;
7590
7591 netbsd*)
7592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7593 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7594 wlarc=
7595 else
7596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7598 fi
7599 ;;
7600
7601 solaris*)
7602 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7603 ld_shlibs=no
7604 cat <<_LT_EOF 1>&2
7605
7606*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7607*** create shared libraries on Solaris systems. Therefore, libtool
7608*** is disabling shared libraries support. We urge you to upgrade GNU
7609*** binutils to release 2.9.1 or newer. Another option is to modify
7610*** your PATH or compiler configuration so that the native linker is
7611*** used, and then restart.
7612
7613_LT_EOF
7614 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7616 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7617 else
7618 ld_shlibs=no
7619 fi
7620 ;;
7621
7622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7623 case `$LD -v 2>&1` in
7624 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7625 ld_shlibs=no
7626 cat <<_LT_EOF 1>&2
7627
7628*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7629*** reliably create shared libraries on SCO systems. Therefore, libtool
7630*** is disabling shared libraries support. We urge you to upgrade GNU
7631*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7632*** your PATH or compiler configuration so that the native linker is
7633*** used, and then restart.
7634
7635_LT_EOF
7636 ;;
7637 *)
7638 # For security reasons, it is highly recommended that you always
7639 # use absolute paths for naming shared libraries, and exclude the
7640 # DT_RUNPATH tag from executables and libraries. But doing so
7641 # requires that you compile everything twice, which is a pain.
7642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7646 else
7647 ld_shlibs=no
7648 fi
7649 ;;
7650 esac
7651 ;;
7652
7653 sunos4*)
7654 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7655 wlarc=
7656 hardcode_direct=yes
7657 hardcode_shlibpath_var=no
7658 ;;
7659
7660 *)
7661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664 else
7665 ld_shlibs=no
7666 fi
7667 ;;
7668 esac
7669
7670 if test "$ld_shlibs" = no; then
7671 runpath_var=
7672 hardcode_libdir_flag_spec=
7673 export_dynamic_flag_spec=
7674 whole_archive_flag_spec=
7675 fi
7676 else
7677 # PORTME fill in a description of your system's linker (not GNU ld)
7678 case $host_os in
7679 aix3*)
7680 allow_undefined_flag=unsupported
7681 always_export_symbols=yes
7682 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'
7683 # Note: this linker hardcodes the directories in LIBPATH if there
7684 # are no directories specified by -L.
7685 hardcode_minus_L=yes
7686 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7687 # Neither direct hardcoding nor static linking is supported with a
7688 # broken collect2.
7689 hardcode_direct=unsupported
7690 fi
7691 ;;
7692
7693 aix4* | aix5*)
7694 if test "$host_cpu" = ia64; then
7695 # On IA64, the linker does run time linking by default, so we don't
7696 # have to do anything special.
7697 aix_use_runtimelinking=no
7698 exp_sym_flag='-Bexport'
7699 no_entry_flag=""
7700 else
7701 # If we're using GNU nm, then we don't want the "-C" option.
7702 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7703 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7704 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'
7705 else
7706 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'
7707 fi
7708 aix_use_runtimelinking=no
7709
7710 # Test if we are trying to use run time linking or normal
7711 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7712 # need to do runtime linking.
7713 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7714 for ld_flag in $LDFLAGS; do
7715 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7716 aix_use_runtimelinking=yes
7717 break
7718 fi
7719 done
7720 ;;
7721 esac
7722
7723 exp_sym_flag='-bexport'
7724 no_entry_flag='-bnoentry'
7725 fi
7726
7727 # When large executables or shared objects are built, AIX ld can
7728 # have problems creating the table of contents. If linking a library
7729 # or program results in "error TOC overflow" add -mminimal-toc to
7730 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7731 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7732
7733 archive_cmds=''
7734 hardcode_direct=yes
7735 hardcode_direct_absolute=yes
7736 hardcode_libdir_separator=':'
7737 link_all_deplibs=yes
7738 file_list_spec='${wl}-f,'
7739
7740 if test "$GCC" = yes; then
7741 case $host_os in aix4.[012]|aix4.[012].*)
7742 # We only want to do this on AIX 4.2 and lower, the check
7743 # below for broken collect2 doesn't work under 4.3+
7744 collect2name=`${CC} -print-prog-name=collect2`
7745 if test -f "$collect2name" &&
7746 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7747 then
7748 # We have reworked collect2
7749 :
7750 else
7751 # We have old collect2
7752 hardcode_direct=unsupported
7753 # It fails to find uninstalled libraries when the uninstalled
7754 # path is not listed in the libpath. Setting hardcode_minus_L
7755 # to unsupported forces relinking
7756 hardcode_minus_L=yes
7757 hardcode_libdir_flag_spec='-L$libdir'
7758 hardcode_libdir_separator=
7759 fi
7760 ;;
7761 esac
7762 shared_flag='-shared'
7763 if test "$aix_use_runtimelinking" = yes; then
7764 shared_flag="$shared_flag "'${wl}-G'
7765 fi
7766 else
7767 # not using gcc
7768 if test "$host_cpu" = ia64; then
7769 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7770 # chokes on -Wl,-G. The following line is correct:
7771 shared_flag='-G'
7772 else
7773 if test "$aix_use_runtimelinking" = yes; then
7774 shared_flag='${wl}-G'
7775 else
7776 shared_flag='${wl}-bM:SRE'
7777 fi
7778 fi
7779 fi
7780
7781 # It seems that -bexpall does not export symbols beginning with
7782 # underscore (_), so it is better to generate a list of symbols to export.
7783 always_export_symbols=yes
7784 if test "$aix_use_runtimelinking" = yes; then
7785 # Warning - without using the other runtime loading flags (-brtl),
7786 # -berok will link without error, but may produce a broken library.
7787 allow_undefined_flag='-berok'
7788 # Determine the default libpath from the value encoded in an
7789 # empty executable.
7790 cat >conftest.$ac_ext <<_ACEOF
7791/* confdefs.h. */
7792_ACEOF
7793cat confdefs.h >>conftest.$ac_ext
7794cat >>conftest.$ac_ext <<_ACEOF
7795/* end confdefs.h. */
7796
7797int
7798main ()
7799{
7800
7801 ;
7802 return 0;
7803}
7804_ACEOF
7805rm -f conftest.$ac_objext conftest$ac_exeext
7806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7807 (eval $ac_link) 2>conftest.er1
7808 ac_status=$?
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try='test -z "$ac_c_werror_flag"
7815 || test ! -s conftest.err'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 (eval $ac_try) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; } &&
7821 { ac_try='test -s conftest$ac_exeext'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7827
7828lt_aix_libpath_sed='
7829 /Import File Strings/,/^$/ {
7830 /^0/ {
7831 s/^0 *\(.*\)$/\1/
7832 p
7833 }
7834 }'
7835aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7836# Check for a 64-bit object if we didn't find anything.
7837if test -z "$aix_libpath"; then
7838 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7839fi
7840else
7841 echo "$as_me: failed program was:" >&5
7842sed 's/^/| /' conftest.$ac_ext >&5
7843
7844fi
7845rm -f conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7847if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7848
7849 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7850 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"
7851 else
7852 if test "$host_cpu" = ia64; then
7853 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7854 allow_undefined_flag="-z nodefs"
7855 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"
7856 else
7857 # Determine the default libpath from the value encoded in an
7858 # empty executable.
7859 cat >conftest.$ac_ext <<_ACEOF
7860/* confdefs.h. */
7861_ACEOF
7862cat confdefs.h >>conftest.$ac_ext
7863cat >>conftest.$ac_ext <<_ACEOF
7864/* end confdefs.h. */
7865
7866int
7867main ()
7868{
7869
7870 ;
7871 return 0;
7872}
7873_ACEOF
7874rm -f conftest.$ac_objext conftest$ac_exeext
7875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7876 (eval $ac_link) 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag"
7884 || test ! -s conftest.err'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 (eval $ac_try) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896
7897lt_aix_libpath_sed='
7898 /Import File Strings/,/^$/ {
7899 /^0/ {
7900 s/^0 *\(.*\)$/\1/
7901 p
7902 }
7903 }'
7904aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7905# Check for a 64-bit object if we didn't find anything.
7906if test -z "$aix_libpath"; then
7907 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7908fi
7909else
7910 echo "$as_me: failed program was:" >&5
7911sed 's/^/| /' conftest.$ac_ext >&5
7912
7913fi
7914rm -f conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7917
7918 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7919 # Warning - without using the other run time loading flags,
7920 # -berok will link without error, but may produce a broken library.
7921 no_undefined_flag=' ${wl}-bernotok'
7922 allow_undefined_flag=' ${wl}-berok'
7923 # Exported symbols can be pulled into shared objects from archives
7924 whole_archive_flag_spec='$convenience'
7925 archive_cmds_need_lc=yes
7926 # This is similar to how AIX traditionally builds its shared libraries.
7927 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'
7928 fi
7929 fi
7930 ;;
7931
7932 amigaos*)
7933 if test "$host_cpu" = m68k; then
7934 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)'
7935 hardcode_libdir_flag_spec='-L$libdir'
7936 hardcode_minus_L=yes
7937 fi
7938 # see comment about different semantics on the GNU ld section
7939 ld_shlibs=no
7940 ;;
7941
7942 bsdi[45]*)
7943 export_dynamic_flag_spec=-rdynamic
7944 ;;
7945
7946 cygwin* | mingw* | pw32*)
7947 # When not using gcc, we currently assume that we are using
7948 # Microsoft Visual C++.
7949 # hardcode_libdir_flag_spec is actually meaningless, as there is
7950 # no search path for DLLs.
7951 hardcode_libdir_flag_spec=' '
7952 allow_undefined_flag=unsupported
7953 # Tell ltmain to make .lib files, not .a files.
7954 libext=lib
7955 # Tell ltmain to make .dll files, not .so files.
7956 shrext_cmds=".dll"
7957 # FIXME: Setting linknames here is a bad hack.
7958 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7959 # The linker will automatically build a .lib file if we build a DLL.
7960 old_archive_from_new_cmds='true'
7961 # FIXME: Should let the user specify the lib program.
7962 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7963 fix_srcfile_path='`cygpath -w "$srcfile"`'
7964 enable_shared_with_static_runtimes=yes
7965 ;;
7966
7967 darwin* | rhapsody*)
7968 case $host_os in
7969 rhapsody* | darwin1.[012])
7970 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7971 ;;
7972 *) # Darwin 1.3 on
7973 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7974 10.[012])
7975 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7976 ;;
7977 10.*)
7978 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7979 ;;
7980 esac
7981 ;;
7982 esac
7983 archive_cmds_need_lc=no
7984 hardcode_direct=no
7985 hardcode_automatic=yes
7986 hardcode_shlibpath_var=unsupported
7987 whole_archive_flag_spec=''
7988 link_all_deplibs=yes
7989 if test "$GCC" = yes ; then
7990 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993 lt_cv_apple_cc_single_mod=no
7994 if test -z "${LT_MULTI_MODULE}"; then
7995 # By default we will add the -single_module flag. You can override
7996 # by either setting the environment variable LT_MULTI_MODULE
7997 # non-empty at configure time, or by adding -multi-module to the
7998 # link flags.
7999 echo "int foo(void){return 1;}" > conftest.c
8000 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8001 -dynamiclib ${wl}-single_module conftest.c
8002 if test -f libconftest.dylib; then
8003 lt_cv_apple_cc_single_mod=yes
8004 rm libconftest.dylib
8005 fi
8006 rm conftest.$ac_ext
8007 fi
8008fi
8009
8010 output_verbose_link_cmd=echo
8011 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8012 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8013 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}'
8014 else
8015 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8016 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}'
8017 fi
8018 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8019 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}'
8020 else
8021 case $cc_basename in
8022 xlc*)
8023 output_verbose_link_cmd=echo
8024 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8025 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8026 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8027 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}'
8028 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}'
8029 ;;
8030 *)
8031 ld_shlibs=no
8032 ;;
8033 esac
8034 fi
8035 ;;
8036
8037 dgux*)
8038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8039 hardcode_libdir_flag_spec='-L$libdir'
8040 hardcode_shlibpath_var=no
8041 ;;
8042
8043 freebsd1*)
8044 ld_shlibs=no
8045 ;;
8046
8047 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8048 # support. Future versions do this automatically, but an explicit c++rt0.o
8049 # does not break anything, and helps significantly (at the cost of a little
8050 # extra space).
8051 freebsd2.2*)
8052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8053 hardcode_libdir_flag_spec='-R$libdir'
8054 hardcode_direct=yes
8055 hardcode_shlibpath_var=no
8056 ;;
8057
8058 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8059 freebsd2*)
8060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8061 hardcode_direct=yes
8062 hardcode_minus_L=yes
8063 hardcode_shlibpath_var=no
8064 ;;
8065
8066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8067 freebsd* | dragonfly*)
8068 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8069 hardcode_libdir_flag_spec='-R$libdir'
8070 hardcode_direct=yes
8071 hardcode_shlibpath_var=no
8072 ;;
8073
8074 hpux9*)
8075 if test "$GCC" = yes; then
8076 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'
8077 else
8078 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'
8079 fi
8080 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8081 hardcode_libdir_separator=:
8082 hardcode_direct=yes
8083
8084 # hardcode_minus_L: Not really in the search PATH,
8085 # but as the default location of the library.
8086 hardcode_minus_L=yes
8087 export_dynamic_flag_spec='${wl}-E'
8088 ;;
8089
8090 hpux10*)
8091 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8092 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8093 else
8094 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8095 fi
8096 if test "$with_gnu_ld" = no; then
8097 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8098 hardcode_libdir_flag_spec_ld='+b $libdir'
8099 hardcode_libdir_separator=:
8100 hardcode_direct=yes
8101 hardcode_direct_absolute=yes
8102 export_dynamic_flag_spec='${wl}-E'
8103 # hardcode_minus_L: Not really in the search PATH,
8104 # but as the default location of the library.
8105 hardcode_minus_L=yes
8106 fi
8107 ;;
8108
8109 hpux11*)
8110 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8111 case $host_cpu in
8112 hppa*64*)
8113 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8114 ;;
8115 ia64*)
8116 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8117 ;;
8118 *)
8119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8120 ;;
8121 esac
8122 else
8123 case $host_cpu in
8124 hppa*64*)
8125 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8126 ;;
8127 ia64*)
8128 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8129 ;;
8130 *)
8131 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8132 ;;
8133 esac
8134 fi
8135 if test "$with_gnu_ld" = no; then
8136 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8137 hardcode_libdir_separator=:
8138
8139 case $host_cpu in
8140 hppa*64*|ia64*)
8141 hardcode_direct=no
8142 hardcode_shlibpath_var=no
8143 ;;
8144 *)
8145 hardcode_direct=yes
8146 hardcode_direct_absolute=yes
8147 export_dynamic_flag_spec='${wl}-E'
8148
8149 # hardcode_minus_L: Not really in the search PATH,
8150 # but as the default location of the library.
8151 hardcode_minus_L=yes
8152 ;;
8153 esac
8154 fi
8155 ;;
8156
8157 irix5* | irix6* | nonstopux*)
8158 if test "$GCC" = yes; then
8159 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'
8160 # Try to use the -exported_symbol ld option, if it does not
8161 # work, assume that -exports_file does not work either and
8162 # implicitly export all symbols.
8163 save_LDFLAGS="$LDFLAGS"
8164 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8165 cat >conftest.$ac_ext <<_ACEOF
8166int foo(void) {}
8167_ACEOF
8168rm -f conftest.$ac_objext conftest$ac_exeext
8169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8170 (eval $ac_link) 2>conftest.er1
8171 ac_status=$?
8172 grep -v '^ *+' conftest.er1 >conftest.err
8173 rm -f conftest.er1
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -z "$ac_c_werror_flag"
8178 || test ! -s conftest.err'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 (eval $ac_try) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest$ac_exeext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 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'
8191
8192else
8193 echo "$as_me: failed program was:" >&5
8194sed 's/^/| /' conftest.$ac_ext >&5
8195
8196fi
8197rm -f conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8199 LDFLAGS="$save_LDFLAGS"
8200 else
8201 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'
8202 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'
8203 fi
8204 archive_cmds_need_lc='no'
8205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8206 hardcode_libdir_separator=:
8207 inherit_rpath=yes
8208 link_all_deplibs=yes
8209 ;;
8210
8211 netbsd*)
8212 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8214 else
8215 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8216 fi
8217 hardcode_libdir_flag_spec='-R$libdir'
8218 hardcode_direct=yes
8219 hardcode_shlibpath_var=no
8220 ;;
8221
8222 newsos6)
8223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8224 hardcode_direct=yes
8225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8226 hardcode_libdir_separator=:
8227 hardcode_shlibpath_var=no
8228 ;;
8229
8230 *nto* | *qnx*)
8231 ;;
8232
8233 openbsd*)
8234 hardcode_direct=yes
8235 hardcode_shlibpath_var=no
8236 hardcode_direct_absolute=yes
8237 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8238 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8239 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8241 export_dynamic_flag_spec='${wl}-E'
8242 else
8243 case $host_os in
8244 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8246 hardcode_libdir_flag_spec='-R$libdir'
8247 ;;
8248 *)
8249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8250 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8251 ;;
8252 esac
8253 fi
8254 ;;
8255
8256 os2*)
8257 hardcode_libdir_flag_spec='-L$libdir'
8258 hardcode_minus_L=yes
8259 allow_undefined_flag=unsupported
8260 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'
8261 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8262 ;;
8263
8264 osf3*)
8265 if test "$GCC" = yes; then
8266 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8267 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'
8268 else
8269 allow_undefined_flag=' -expect_unresolved \*'
8270 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'
8271 fi
8272 archive_cmds_need_lc='no'
8273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8274 hardcode_libdir_separator=:
8275 ;;
8276
8277 osf4* | osf5*) # as osf3* with the addition of -msym flag
8278 if test "$GCC" = yes; then
8279 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8280 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'
8281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8282 else
8283 allow_undefined_flag=' -expect_unresolved \*'
8284 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'
8285 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~
8286 $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'
8287
8288 # Both c and cxx compiler support -rpath directly
8289 hardcode_libdir_flag_spec='-rpath $libdir'
8290 fi
8291 archive_cmds_need_lc='no'
8292 hardcode_libdir_separator=:
8293 ;;
8294
8295 solaris*)
8296 no_undefined_flag=' -z defs'
8297 if test "$GCC" = yes; then
8298 wlarc='${wl}'
8299 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8300 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8301 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8302 else
8303 case `$CC -V 2>&1` in
8304 *"Compilers 5.0"*)
8305 wlarc=''
8306 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8309 ;;
8310 *)
8311 wlarc='${wl}'
8312 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8313 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8314 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8315 ;;
8316 esac
8317 fi
8318 hardcode_libdir_flag_spec='-R$libdir'
8319 hardcode_shlibpath_var=no
8320 case $host_os in
8321 solaris2.[0-5] | solaris2.[0-5].*) ;;
8322 *)
8323 # The compiler driver will combine and reorder linker options,
8324 # but understands `-z linker_flag'. GCC discards it without `$wl',
8325 # but is careful enough not to reorder.
8326 # Supported since Solaris 2.6 (maybe 2.5.1?)
8327 if test "$GCC" = yes; then
8328 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8329 else
8330 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8331 fi
8332 ;;
8333 esac
8334 link_all_deplibs=yes
8335 ;;
8336
8337 sunos4*)
8338 if test "x$host_vendor" = xsequent; then
8339 # Use $CC to link under sequent, because it throws in some extra .o
8340 # files that make .init and .fini sections work.
8341 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8342 else
8343 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8344 fi
8345 hardcode_libdir_flag_spec='-L$libdir'
8346 hardcode_direct=yes
8347 hardcode_minus_L=yes
8348 hardcode_shlibpath_var=no
8349 ;;
8350
8351 sysv4)
8352 case $host_vendor in
8353 sni)
8354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8355 hardcode_direct=yes # is this really true???
8356 ;;
8357 siemens)
8358 ## LD is ld it makes a PLAMLIB
8359 ## CC just makes a GrossModule.
8360 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8361 reload_cmds='$CC -r -o $output$reload_objs'
8362 hardcode_direct=no
8363 ;;
8364 motorola)
8365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8366 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8367 ;;
8368 esac
8369 runpath_var='LD_RUN_PATH'
8370 hardcode_shlibpath_var=no
8371 ;;
8372
8373 sysv4.3*)
8374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8375 hardcode_shlibpath_var=no
8376 export_dynamic_flag_spec='-Bexport'
8377 ;;
8378
8379 sysv4*MP*)
8380 if test -d /usr/nec; then
8381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8382 hardcode_shlibpath_var=no
8383 runpath_var=LD_RUN_PATH
8384 hardcode_runpath_var=yes
8385 ld_shlibs=yes
8386 fi
8387 ;;
8388
8389 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8390 no_undefined_flag='${wl}-z,text'
8391 archive_cmds_need_lc=no
8392 hardcode_shlibpath_var=no
8393 runpath_var='LD_RUN_PATH'
8394
8395 if test "$GCC" = yes; then
8396 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8397 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8398 else
8399 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8400 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8401 fi
8402 ;;
8403
8404 sysv5* | sco3.2v5* | sco5v6*)
8405 # Note: We can NOT use -z defs as we might desire, because we do not
8406 # link with -lc, and that would cause any symbols used from libc to
8407 # always be unresolved, which means just about no library would
8408 # ever link correctly. If we're not using GNU ld we use -z text
8409 # though, which does catch some bad symbols but isn't as heavy-handed
8410 # as -z defs.
8411 no_undefined_flag='${wl}-z,text'
8412 allow_undefined_flag='${wl}-z,nodefs'
8413 archive_cmds_need_lc=no
8414 hardcode_shlibpath_var=no
8415 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8416 hardcode_libdir_separator=':'
8417 link_all_deplibs=yes
8418 export_dynamic_flag_spec='${wl}-Bexport'
8419 runpath_var='LD_RUN_PATH'
8420
8421 if test "$GCC" = yes; then
8422 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424 else
8425 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8426 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8427 fi
8428 ;;
8429
8430 uts4*)
8431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8432 hardcode_libdir_flag_spec='-L$libdir'
8433 hardcode_shlibpath_var=no
8434 ;;
8435
8436 *)
8437 ld_shlibs=no
8438 ;;
8439 esac
8440
8441 if test x$host_vendor = xsni; then
8442 case $host in
8443 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8444 export_dynamic_flag_spec='${wl}-Blargedynsym'
8445 ;;
8446 esac
8447 fi
8448 fi
8449
8450echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8451echo "${ECHO_T}$ld_shlibs" >&6
8452test "$ld_shlibs" = no && can_build_shared=no
8453
8454with_gnu_ld=$with_gnu_ld
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470#
8471# Do we need to explicitly link libc?
8472#
8473case "x$archive_cmds_need_lc" in
8474x|xyes)
8475 # Assume -lc should be added
8476 archive_cmds_need_lc=yes
8477
8478 if test "$enable_shared" = yes && test "$GCC" = yes; then
8479 case $archive_cmds in
8480 *'~'*)
8481 # FIXME: we may have to deal with multi-command sequences.
8482 ;;
8483 '$CC '*)
8484 # Test whether the compiler implicitly links with -lc since on some
8485 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8486 # to ld, don't add -lc before -lgcc.
8487 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8488echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8489 $RM conftest*
8490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8491
8492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493 (eval $ac_compile) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } 2>conftest.err; then
8497 soname=conftest
8498 lib=conftest
8499 libobjs=conftest.$ac_objext
8500 deplibs=
8501 wl=$lt_prog_compiler_wl
8502 pic_flag=$lt_prog_compiler_pic
8503 compiler_flags=-v
8504 linker_flags=-v
8505 verstring=
8506 output_objdir=.
8507 libname=conftest
8508 lt_save_allow_undefined_flag=$allow_undefined_flag
8509 allow_undefined_flag=
8510 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8511 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }
8515 then
8516 archive_cmds_need_lc=no
8517 else
8518 archive_cmds_need_lc=yes
8519 fi
8520 allow_undefined_flag=$lt_save_allow_undefined_flag
8521 else
8522 cat conftest.err 1>&5
8523 fi
8524 $RM conftest*
8525 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8526echo "${ECHO_T}$archive_cmds_need_lc" >&6
8527 ;;
8528 esac
8529 fi
8530 ;;
8531esac
8532
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 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8690echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8691withGCC=$GCC
8692if test "$withGCC" = yes; then
8693 case $host_os in
8694 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8695 *) lt_awk_arg="/^libraries:/" ;;
8696 esac
8697 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8698 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8699 # if the path contains ";" then we assume it to be the separator
8700 # otherwise default to the standard path separator (i.e. ":") - it is
8701 # assumed that no part of a normal pathname contains ";" but that should
8702 # okay in the real world where ";" in dirpaths is itself problematic.
8703 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8704 else
8705 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8706 fi
8707 # Ok, now we have the path, separated by spaces, we can step through it
8708 # and add multilib dir if necessary.
8709 lt_tmp_lt_search_path_spec=
8710 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8711 for lt_sys_path in $lt_search_path_spec; do
8712 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8714 else
8715 test -d "$lt_sys_path" && \
8716 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8717 fi
8718 done
8719 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8720BEGIN {RS=" "; FS="/|\n";} {
8721 lt_foo="";
8722 lt_count=0;
8723 for (lt_i = NF; lt_i > 0; lt_i--) {
8724 if ($lt_i != "" && $lt_i != ".") {
8725 if ($lt_i == "..") {
8726 lt_count++;
8727 } else {
8728 if (lt_count == 0) {
8729 lt_foo="/" $lt_i lt_foo;
8730 } else {
8731 lt_count--;
8732 }
8733 }
8734 }
8735 }
8736 if (lt_foo != "") { lt_freq[lt_foo]++; }
8737 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8738}'`
8739 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8740else
8741 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8742fi
8743library_names_spec=
8744libname_spec='lib$name'
8745soname_spec=
8746shrext_cmds=".so"
8747postinstall_cmds=
8748postuninstall_cmds=
8749finish_cmds=
8750finish_eval=
8751shlibpath_var=
8752shlibpath_overrides_runpath=unknown
8753version_type=none
8754dynamic_linker="$host_os ld.so"
8755sys_lib_dlsearch_path_spec="/lib /usr/lib"
8756need_lib_prefix=unknown
8757hardcode_into_libs=no
8758
8759# when you set need_version to no, make sure it does not cause -set_version
8760# flags to be left without arguments
8761need_version=unknown
8762
8763case $host_os in
8764aix3*)
8765 version_type=linux
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8767 shlibpath_var=LIBPATH
8768
8769 # AIX 3 has no versioning support, so we append a major version to the name.
8770 soname_spec='${libname}${release}${shared_ext}$major'
8771 ;;
8772
8773aix4* | aix5*)
8774 version_type=linux
8775 need_lib_prefix=no
8776 need_version=no
8777 hardcode_into_libs=yes
8778 if test "$host_cpu" = ia64; then
8779 # AIX 5 supports IA64
8780 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 else
8783 # With GCC up to 2.95.x, collect2 would create an import file
8784 # for dependence libraries. The import file would start with
8785 # the line `#! .'. This would cause the generated library to
8786 # depend on `.', always an invalid library. This was fixed in
8787 # development snapshots of GCC prior to 3.0.
8788 case $host_os in
8789 aix4 | aix4.[01] | aix4.[01].*)
8790 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8791 echo ' yes '
8792 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8793 :
8794 else
8795 can_build_shared=no
8796 fi
8797 ;;
8798 esac
8799 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8800 # soname into executable. Probably we can add versioning support to
8801 # collect2, so additional links can be useful in future.
8802 if test "$aix_use_runtimelinking" = yes; then
8803 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8804 # instead of lib<name>.a to let people know that these are not
8805 # typical AIX shared libraries.
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8807 else
8808 # We preserve .a as extension for shared libraries through AIX4.2
8809 # and later when we are not doing run time linking.
8810 library_names_spec='${libname}${release}.a $libname.a'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 fi
8813 shlibpath_var=LIBPATH
8814 fi
8815 ;;
8816
8817amigaos*)
8818 if test "$host_cpu" = m68k; then
8819 library_names_spec='$libname.ixlibrary $libname.a'
8820 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8821 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'
8822 else
8823 dynamic_linker=no
8824 fi
8825 ;;
8826
8827beos*)
8828 library_names_spec='${libname}${shared_ext}'
8829 dynamic_linker="$host_os ld.so"
8830 shlibpath_var=LIBRARY_PATH
8831 ;;
8832
8833bsdi[45]*)
8834 version_type=linux
8835 need_version=no
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8841 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8842 # the default ld.so.conf also contains /usr/contrib/lib and
8843 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8844 # libtool to hard-code these into programs
8845 ;;
8846
8847cygwin* | mingw* | pw32*)
8848 version_type=windows
8849 shrext_cmds=".dll"
8850 need_version=no
8851 need_lib_prefix=no
8852
8853 case $withGCC,$host_os in
8854 yes,cygwin* | yes,mingw* | yes,pw32*)
8855 library_names_spec='$libname.dll.a'
8856 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8857 postinstall_cmds='base_file=`basename \${file}`~
8858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8859 dldir=$destdir/`dirname \$dlpath`~
8860 test -d \$dldir || mkdir -p \$dldir~
8861 $install_prog $dir/$dlname \$dldir/$dlname~
8862 chmod a+x \$dldir/$dlname~
8863 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8864 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8865 fi'
8866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8867 dlpath=$dir/\$dldll~
8868 $RM \$dlpath'
8869 shlibpath_overrides_runpath=yes
8870
8871 case $host_os in
8872 cygwin*)
8873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8874 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8875 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8876 ;;
8877 mingw*)
8878 # MinGW DLLs use traditional 'lib' prefix
8879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8880 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8882 # It is most probably a Windows format PATH printed by
8883 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8884 # path with ; separators, and with drive letters. We can handle the
8885 # drive letters (cygwin fileutils understands them), so leave them,
8886 # especially as we might pass files found there to a mingw objdump,
8887 # which wouldn't understand a cygwinified path. Ahh.
8888 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8889 else
8890 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8891 fi
8892 ;;
8893 pw32*)
8894 # pw32 DLLs use 'pw' prefix rather than 'lib'
8895 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8896 ;;
8897 esac
8898 ;;
8899
8900 *)
8901 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8902 ;;
8903 esac
8904 dynamic_linker='Win32 ld.exe'
8905 # FIXME: first we should search . and the directory the executable is in
8906 shlibpath_var=PATH
8907 ;;
8908
8909darwin* | rhapsody*)
8910 dynamic_linker="$host_os dyld"
8911 version_type=darwin
8912 need_lib_prefix=no
8913 need_version=no
8914 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8915 soname_spec='${libname}${release}${major}$shared_ext'
8916 shlibpath_overrides_runpath=yes
8917 shlibpath_var=DYLD_LIBRARY_PATH
8918 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8919
8920 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8922 ;;
8923
8924dgux*)
8925 version_type=linux
8926 need_lib_prefix=no
8927 need_version=no
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 shlibpath_var=LD_LIBRARY_PATH
8931 ;;
8932
8933freebsd1*)
8934 dynamic_linker=no
8935 ;;
8936
8937freebsd* | dragonfly*)
8938 # DragonFly does not have aout. When/if they implement a new
8939 # versioning mechanism, adjust this.
8940 if test -x /usr/bin/objformat; then
8941 objformat=`/usr/bin/objformat`
8942 else
8943 case $host_os in
8944 freebsd[123]*) objformat=aout ;;
8945 *) objformat=elf ;;
8946 esac
8947 fi
8948 version_type=freebsd-$objformat
8949 case $version_type in
8950 freebsd-elf*)
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8952 need_version=no
8953 need_lib_prefix=no
8954 ;;
8955 freebsd-*)
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8957 need_version=yes
8958 ;;
8959 esac
8960 shlibpath_var=LD_LIBRARY_PATH
8961 case $host_os in
8962 freebsd2*)
8963 shlibpath_overrides_runpath=yes
8964 ;;
8965 freebsd3.[01]* | freebsdelf3.[01]*)
8966 shlibpath_overrides_runpath=yes
8967 hardcode_into_libs=yes
8968 ;;
8969 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8970 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8971 shlibpath_overrides_runpath=no
8972 hardcode_into_libs=yes
8973 ;;
8974 *) # from 4.6 on, and DragonFly
8975 shlibpath_overrides_runpath=yes
8976 hardcode_into_libs=yes
8977 ;;
8978 esac
8979 ;;
8980
8981gnu*)
8982 version_type=linux
8983 need_lib_prefix=no
8984 need_version=no
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 hardcode_into_libs=yes
8989 ;;
8990
8991hpux9* | hpux10* | hpux11*)
8992 # Give a soname corresponding to the major version so that dld.sl refuses to
8993 # link against other versions.
8994 version_type=sunos
8995 need_lib_prefix=no
8996 need_version=no
8997 case $host_cpu in
8998 ia64*)
8999 shrext_cmds='.so'
9000 hardcode_into_libs=yes
9001 dynamic_linker="$host_os dld.so"
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 soname_spec='${libname}${release}${shared_ext}$major'
9006 if test "X$HPUX_IA64_MODE" = X32; then
9007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9008 else
9009 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9010 fi
9011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9012 ;;
9013 hppa*64*)
9014 shrext_cmds='.sl'
9015 hardcode_into_libs=yes
9016 dynamic_linker="$host_os dld.sl"
9017 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020 soname_spec='${libname}${release}${shared_ext}$major'
9021 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9023 ;;
9024 *)
9025 shrext_cmds='.sl'
9026 dynamic_linker="$host_os dld.sl"
9027 shlibpath_var=SHLIB_PATH
9028 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 ;;
9032 esac
9033 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9034 postinstall_cmds='chmod 555 $lib'
9035 ;;
9036
9037interix[3-9]*)
9038 version_type=linux
9039 need_lib_prefix=no
9040 need_version=no
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=no
9046 hardcode_into_libs=yes
9047 ;;
9048
9049irix5* | irix6* | nonstopux*)
9050 case $host_os in
9051 nonstopux*) version_type=nonstopux ;;
9052 *)
9053 if test "$lt_cv_prog_gnu_ld" = yes; then
9054 version_type=linux
9055 else
9056 version_type=irix
9057 fi ;;
9058 esac
9059 need_lib_prefix=no
9060 need_version=no
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9063 case $host_os in
9064 irix5* | nonstopux*)
9065 libsuff= shlibsuff=
9066 ;;
9067 *)
9068 case $LD in # libtool.m4 will add one of these switches to LD
9069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9070 libsuff= shlibsuff= libmagic=32-bit;;
9071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9072 libsuff=32 shlibsuff=N32 libmagic=N32;;
9073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9074 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9075 *) libsuff= shlibsuff= libmagic=never-match;;
9076 esac
9077 ;;
9078 esac
9079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9080 shlibpath_overrides_runpath=no
9081 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9082 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9083 hardcode_into_libs=yes
9084 ;;
9085
9086# No shared lib support for Linux oldld, aout, or coff.
9087linux*oldld* | linux*aout* | linux*coff*)
9088 dynamic_linker=no
9089 ;;
9090
9091# This must be Linux ELF.
9092linux* | k*bsd*-gnu)
9093 version_type=linux
9094 need_lib_prefix=no
9095 need_version=no
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097 soname_spec='${libname}${release}${shared_ext}$major'
9098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=no
9101 # Some binutils ld are patched to set DT_RUNPATH
9102 save_LDFLAGS=$LDFLAGS
9103 save_libdir=$libdir
9104 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9105 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9106 cat >conftest.$ac_ext <<_ACEOF
9107/* confdefs.h. */
9108_ACEOF
9109cat confdefs.h >>conftest.$ac_ext
9110cat >>conftest.$ac_ext <<_ACEOF
9111/* end confdefs.h. */
9112
9113int
9114main ()
9115{
9116
9117 ;
9118 return 0;
9119}
9120_ACEOF
9121rm -f conftest.$ac_objext conftest$ac_exeext
9122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123 (eval $ac_link) 2>conftest.er1
9124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try='test -z "$ac_c_werror_flag"
9131 || test ! -s conftest.err'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; } &&
9137 { ac_try='test -s conftest$ac_exeext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9144 shlibpath_overrides_runpath=yes
9145fi
9146
9147else
9148 echo "$as_me: failed program was:" >&5
9149sed 's/^/| /' conftest.$ac_ext >&5
9150
9151fi
9152rm -f conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 LDFLAGS=$save_LDFLAGS
9155 libdir=$save_libdir
9156
9157 # This implies no fast_install, which is unacceptable.
9158 # Some rework will be needed to allow for fast_install
9159 # before this can be enabled.
9160 hardcode_into_libs=yes
9161
9162 # Append ld.so.conf contents to the search path
9163 if test -f /etc/ld.so.conf; then
9164 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' ' '`
9165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9166 fi
9167
9168 # We used to test for /lib/ld.so.1 and disable shared libraries on
9169 # powerpc, because MkLinux only supported shared libraries with the
9170 # GNU dynamic linker. Since this was broken with cross compilers,
9171 # most powerpc-linux boxes support dynamic linking these days and
9172 # people can always --disable-shared, the test was removed, and we
9173 # assume the GNU/Linux dynamic linker is in use.
9174 dynamic_linker='GNU/Linux ld.so'
9175 ;;
9176
9177netbsd*)
9178 version_type=sunos
9179 need_lib_prefix=no
9180 need_version=no
9181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9184 dynamic_linker='NetBSD (a.out) ld.so'
9185 else
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 dynamic_linker='NetBSD ld.elf_so'
9189 fi
9190 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=yes
9192 hardcode_into_libs=yes
9193 ;;
9194
9195newsos6)
9196 version_type=linux
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=yes
9200 ;;
9201
9202*nto* | *qnx*)
9203 version_type=qnx
9204 need_lib_prefix=no
9205 need_version=no
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=no
9210 hardcode_into_libs=yes
9211 dynamic_linker='ldqnx.so'
9212 ;;
9213
9214openbsd*)
9215 version_type=sunos
9216 sys_lib_dlsearch_path_spec="/usr/lib"
9217 need_lib_prefix=no
9218 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9219 case $host_os in
9220 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9221 *) need_version=no ;;
9222 esac
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9227 case $host_os in
9228 openbsd2.[89] | openbsd2.[89].*)
9229 shlibpath_overrides_runpath=no
9230 ;;
9231 *)
9232 shlibpath_overrides_runpath=yes
9233 ;;
9234 esac
9235 else
9236 shlibpath_overrides_runpath=yes
9237 fi
9238 ;;
9239
9240os2*)
9241 libname_spec='$name'
9242 shrext_cmds=".dll"
9243 need_lib_prefix=no
9244 library_names_spec='$libname${shared_ext} $libname.a'
9245 dynamic_linker='OS/2 ld.exe'
9246 shlibpath_var=LIBPATH
9247 ;;
9248
9249osf3* | osf4* | osf5*)
9250 version_type=osf
9251 need_lib_prefix=no
9252 need_version=no
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9257 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9258 ;;
9259
9260rdos*)
9261 dynamic_linker=no
9262 ;;
9263
9264solaris*)
9265 version_type=linux
9266 need_lib_prefix=no
9267 need_version=no
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 shlibpath_overrides_runpath=yes
9272 hardcode_into_libs=yes
9273 # ldd complains unless libraries are executable
9274 postinstall_cmds='chmod +x $lib'
9275 ;;
9276
9277sunos4*)
9278 version_type=sunos
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9280 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 shlibpath_overrides_runpath=yes
9283 if test "$with_gnu_ld" = yes; then
9284 need_lib_prefix=no
9285 fi
9286 need_version=yes
9287 ;;
9288
9289sysv4 | sysv4.3*)
9290 version_type=linux
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9292 soname_spec='${libname}${release}${shared_ext}$major'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 case $host_vendor in
9295 sni)
9296 shlibpath_overrides_runpath=no
9297 need_lib_prefix=no
9298 runpath_var=LD_RUN_PATH
9299 ;;
9300 siemens)
9301 need_lib_prefix=no
9302 ;;
9303 motorola)
9304 need_lib_prefix=no
9305 need_version=no
9306 shlibpath_overrides_runpath=no
9307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9308 ;;
9309 esac
9310 ;;
9311
9312sysv4*MP*)
9313 if test -d /usr/nec ;then
9314 version_type=linux
9315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9316 soname_spec='$libname${shared_ext}.$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 fi
9319 ;;
9320
9321sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9322 version_type=freebsd-elf
9323 need_lib_prefix=no
9324 need_version=no
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath=yes
9329 hardcode_into_libs=yes
9330 if test "$with_gnu_ld" = yes; then
9331 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9332 else
9333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9334 case $host_os in
9335 sco3.2v5*)
9336 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9337 ;;
9338 esac
9339 fi
9340 sys_lib_dlsearch_path_spec='/usr/lib'
9341 ;;
9342
9343tpf*)
9344 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9345 version_type=linux
9346 need_lib_prefix=no
9347 need_version=no
9348 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 shlibpath_overrides_runpath=no
9351 hardcode_into_libs=yes
9352 ;;
9353
9354uts4*)
9355 version_type=linux
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357 soname_spec='${libname}${release}${shared_ext}$major'
9358 shlibpath_var=LD_LIBRARY_PATH
9359 ;;
9360
9361*)
9362 dynamic_linker=no
9363 ;;
9364esac
9365echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9366echo "${ECHO_T}$dynamic_linker" >&6
9367test "$dynamic_linker" = no && can_build_shared=no
9368
9369variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9370if test "$GCC" = yes; then
9371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9372fi
9373
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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9461echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9462hardcode_action=
9463if test -n "$hardcode_libdir_flag_spec" ||
9464 test -n "$runpath_var" ||
9465 test "X$hardcode_automatic" = "Xyes" ; then
9466
9467 # We can hardcode non-existent directories.
9468 if test "$hardcode_direct" != no &&
9469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9470 # have to relink, otherwise we might link with an installed library
9471 # when we should be linking with a yet-to-be-installed one
9472 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9473 test "$hardcode_minus_L" != no; then
9474 # Linking always hardcodes the temporary library directory.
9475 hardcode_action=relink
9476 else
9477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9478 hardcode_action=immediate
9479 fi
9480else
9481 # We cannot hardcode anything, or else we can only hardcode existing
9482 # directories.
9483 hardcode_action=unsupported
9484fi
9485echo "$as_me:$LINENO: result: $hardcode_action" >&5
9486echo "${ECHO_T}$hardcode_action" >&6
9487
9488if test "$hardcode_action" = relink ||
9489 test "$inherit_rpath" = yes; then
9490 # Fast installation is not supported
9491 enable_fast_install=no
9492elif test "$shlibpath_overrides_runpath" = yes ||
9493 test "$enable_shared" = no; then
9494 # Fast installation is not necessary
9495 enable_fast_install=needless
9496fi
9497
9498
9499
9500
9501
9502
9503 if test "x$enable_dlopen" != xyes; then
9504 enable_dlopen=unknown
9505 enable_dlopen_self=unknown
9506 enable_dlopen_self_static=unknown
9507else
9508 lt_cv_dlopen=no
9509 lt_cv_dlopen_libs=
9510
9511 case $host_os in
9512 beos*)
9513 lt_cv_dlopen="load_add_on"
9514 lt_cv_dlopen_libs=
9515 lt_cv_dlopen_self=yes
9516 ;;
9517
9518 mingw* | pw32*)
9519 lt_cv_dlopen="LoadLibrary"
9520 lt_cv_dlopen_libs=
9521 ;;
9522
9523 cygwin*)
9524 lt_cv_dlopen="dlopen"
9525 lt_cv_dlopen_libs=
9526 ;;
9527
9528 darwin*)
9529 # if libdl is installed we need to link against it
9530 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9531echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9532if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534else
9535 ac_check_lib_save_LIBS=$LIBS
9536LIBS="-ldl $LIBS"
9537cat >conftest.$ac_ext <<_ACEOF
9538/* confdefs.h. */
9539_ACEOF
9540cat confdefs.h >>conftest.$ac_ext
9541cat >>conftest.$ac_ext <<_ACEOF
9542/* end confdefs.h. */
9543
9544/* Override any gcc2 internal prototype to avoid an error. */
9545#ifdef __cplusplus
9546extern "C"
9547#endif
9548/* We use char because int might match the return type of a gcc2
9549 builtin and then its argument prototype would still apply. */
9550char dlopen ();
9551int
9552main ()
9553{
9554dlopen ();
9555 ;
9556 return 0;
9557}
9558_ACEOF
9559rm -f conftest.$ac_objext conftest$ac_exeext
9560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_c_werror_flag"
9569 || test ! -s conftest.err'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; } &&
9575 { ac_try='test -s conftest$ac_exeext'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 (eval $ac_try) 2>&5
9578 ac_status=$?
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_cv_lib_dl_dlopen=yes
9582else
9583 echo "$as_me: failed program was:" >&5
9584sed 's/^/| /' conftest.$ac_ext >&5
9585
9586ac_cv_lib_dl_dlopen=no
9587fi
9588rm -f conftest.err conftest.$ac_objext \
9589 conftest$ac_exeext conftest.$ac_ext
9590LIBS=$ac_check_lib_save_LIBS
9591fi
9592echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9593echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9594if test $ac_cv_lib_dl_dlopen = yes; then
9595 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9596else
9597
9598 lt_cv_dlopen="dyld"
9599 lt_cv_dlopen_libs=
9600 lt_cv_dlopen_self=yes
9601
9602fi
9603
9604 ;;
9605
9606 *)
9607 echo "$as_me:$LINENO: checking for shl_load" >&5
9608echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9609if test "${ac_cv_func_shl_load+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9611else
9612 cat >conftest.$ac_ext <<_ACEOF
9613/* confdefs.h. */
9614_ACEOF
9615cat confdefs.h >>conftest.$ac_ext
9616cat >>conftest.$ac_ext <<_ACEOF
9617/* end confdefs.h. */
9618/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9620#define shl_load innocuous_shl_load
9621
9622/* System header to define __stub macros and hopefully few prototypes,
9623 which can conflict with char shl_load (); below.
9624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9625 <limits.h> exists even on freestanding compilers. */
9626
9627#ifdef __STDC__
9628# include <limits.h>
9629#else
9630# include <assert.h>
9631#endif
9632
9633#undef shl_load
9634
9635/* Override any gcc2 internal prototype to avoid an error. */
9636#ifdef __cplusplus
9637extern "C"
9638{
9639#endif
9640/* We use char because int might match the return type of a gcc2
9641 builtin and then its argument prototype would still apply. */
9642char shl_load ();
9643/* The GNU C library defines this for functions which it implements
9644 to always fail with ENOSYS. Some functions are actually named
9645 something starting with __ and the normal name is an alias. */
9646#if defined (__stub_shl_load) || defined (__stub___shl_load)
9647choke me
9648#else
9649char (*f) () = shl_load;
9650#endif
9651#ifdef __cplusplus
9652}
9653#endif
9654
9655int
9656main ()
9657{
9658return f != shl_load;
9659 ;
9660 return 0;
9661}
9662_ACEOF
9663rm -f conftest.$ac_objext conftest$ac_exeext
9664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665 (eval $ac_link) 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } &&
9672 { ac_try='test -z "$ac_c_werror_flag"
9673 || test ! -s conftest.err'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; } &&
9679 { ac_try='test -s conftest$ac_exeext'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 (eval $ac_try) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; }; then
9685 ac_cv_func_shl_load=yes
9686else
9687 echo "$as_me: failed program was:" >&5
9688sed 's/^/| /' conftest.$ac_ext >&5
9689
9690ac_cv_func_shl_load=no
9691fi
9692rm -f conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9694fi
9695echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9696echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9697if test $ac_cv_func_shl_load = yes; then
9698 lt_cv_dlopen="shl_load"
9699else
9700 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9701echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9702if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704else
9705 ac_check_lib_save_LIBS=$LIBS
9706LIBS="-ldld $LIBS"
9707cat >conftest.$ac_ext <<_ACEOF
9708/* confdefs.h. */
9709_ACEOF
9710cat confdefs.h >>conftest.$ac_ext
9711cat >>conftest.$ac_ext <<_ACEOF
9712/* end confdefs.h. */
9713
9714/* Override any gcc2 internal prototype to avoid an error. */
9715#ifdef __cplusplus
9716extern "C"
9717#endif
9718/* We use char because int might match the return type of a gcc2
9719 builtin and then its argument prototype would still apply. */
9720char shl_load ();
9721int
9722main ()
9723{
9724shl_load ();
9725 ;
9726 return 0;
9727}
9728_ACEOF
9729rm -f conftest.$ac_objext conftest$ac_exeext
9730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731 (eval $ac_link) 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag"
9739 || test ! -s conftest.err'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; } &&
9745 { ac_try='test -s conftest$ac_exeext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 ac_cv_lib_dld_shl_load=yes
9752else
9753 echo "$as_me: failed program was:" >&5
9754sed 's/^/| /' conftest.$ac_ext >&5
9755
9756ac_cv_lib_dld_shl_load=no
9757fi
9758rm -f conftest.err conftest.$ac_objext \
9759 conftest$ac_exeext conftest.$ac_ext
9760LIBS=$ac_check_lib_save_LIBS
9761fi
9762echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9763echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9764if test $ac_cv_lib_dld_shl_load = yes; then
9765 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9766else
9767 echo "$as_me:$LINENO: checking for dlopen" >&5
9768echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9769if test "${ac_cv_func_dlopen+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771else
9772 cat >conftest.$ac_ext <<_ACEOF
9773/* confdefs.h. */
9774_ACEOF
9775cat confdefs.h >>conftest.$ac_ext
9776cat >>conftest.$ac_ext <<_ACEOF
9777/* end confdefs.h. */
9778/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9780#define dlopen innocuous_dlopen
9781
9782/* System header to define __stub macros and hopefully few prototypes,
9783 which can conflict with char dlopen (); below.
9784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9785 <limits.h> exists even on freestanding compilers. */
9786
9787#ifdef __STDC__
9788# include <limits.h>
9789#else
9790# include <assert.h>
9791#endif
9792
9793#undef dlopen
9794
9795/* Override any gcc2 internal prototype to avoid an error. */
9796#ifdef __cplusplus
9797extern "C"
9798{
9799#endif
9800/* We use char because int might match the return type of a gcc2
9801 builtin and then its argument prototype would still apply. */
9802char dlopen ();
9803/* The GNU C library defines this for functions which it implements
9804 to always fail with ENOSYS. Some functions are actually named
9805 something starting with __ and the normal name is an alias. */
9806#if defined (__stub_dlopen) || defined (__stub___dlopen)
9807choke me
9808#else
9809char (*f) () = dlopen;
9810#endif
9811#ifdef __cplusplus
9812}
9813#endif
9814
9815int
9816main ()
9817{
9818return f != dlopen;
9819 ;
9820 return 0;
9821}
9822_ACEOF
9823rm -f conftest.$ac_objext conftest$ac_exeext
9824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825 (eval $ac_link) 2>conftest.er1
9826 ac_status=$?
9827 grep -v '^ *+' conftest.er1 >conftest.err
9828 rm -f conftest.er1
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag"
9833 || test ! -s conftest.err'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; } &&
9839 { ac_try='test -s conftest$ac_exeext'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 (eval $ac_try) 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 ac_cv_func_dlopen=yes
9846else
9847 echo "$as_me: failed program was:" >&5
9848sed 's/^/| /' conftest.$ac_ext >&5
9849
9850ac_cv_func_dlopen=no
9851fi
9852rm -f conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9854fi
9855echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9856echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9857if test $ac_cv_func_dlopen = yes; then
9858 lt_cv_dlopen="dlopen"
9859else
9860 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9861echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9862if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864else
9865 ac_check_lib_save_LIBS=$LIBS
9866LIBS="-ldl $LIBS"
9867cat >conftest.$ac_ext <<_ACEOF
9868/* confdefs.h. */
9869_ACEOF
9870cat confdefs.h >>conftest.$ac_ext
9871cat >>conftest.$ac_ext <<_ACEOF
9872/* end confdefs.h. */
9873
9874/* Override any gcc2 internal prototype to avoid an error. */
9875#ifdef __cplusplus
9876extern "C"
9877#endif
9878/* We use char because int might match the return type of a gcc2
9879 builtin and then its argument prototype would still apply. */
9880char dlopen ();
9881int
9882main ()
9883{
9884dlopen ();
9885 ;
9886 return 0;
9887}
9888_ACEOF
9889rm -f conftest.$ac_objext conftest$ac_exeext
9890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>conftest.er1
9892 ac_status=$?
9893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -z "$ac_c_werror_flag"
9899 || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 (eval $ac_try) 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_cv_lib_dl_dlopen=yes
9912else
9913 echo "$as_me: failed program was:" >&5
9914sed 's/^/| /' conftest.$ac_ext >&5
9915
9916ac_cv_lib_dl_dlopen=no
9917fi
9918rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920LIBS=$ac_check_lib_save_LIBS
9921fi
9922echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9923echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9924if test $ac_cv_lib_dl_dlopen = yes; then
9925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9926else
9927 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9928echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9929if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9931else
9932 ac_check_lib_save_LIBS=$LIBS
9933LIBS="-lsvld $LIBS"
9934cat >conftest.$ac_ext <<_ACEOF
9935/* confdefs.h. */
9936_ACEOF
9937cat confdefs.h >>conftest.$ac_ext
9938cat >>conftest.$ac_ext <<_ACEOF
9939/* end confdefs.h. */
9940
9941/* Override any gcc2 internal prototype to avoid an error. */
9942#ifdef __cplusplus
9943extern "C"
9944#endif
9945/* We use char because int might match the return type of a gcc2
9946 builtin and then its argument prototype would still apply. */
9947char dlopen ();
9948int
9949main ()
9950{
9951dlopen ();
9952 ;
9953 return 0;
9954}
9955_ACEOF
9956rm -f conftest.$ac_objext conftest$ac_exeext
9957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958 (eval $ac_link) 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_cv_lib_svld_dlopen=yes
9979else
9980 echo "$as_me: failed program was:" >&5
9981sed 's/^/| /' conftest.$ac_ext >&5
9982
9983ac_cv_lib_svld_dlopen=no
9984fi
9985rm -f conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987LIBS=$ac_check_lib_save_LIBS
9988fi
9989echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9990echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9991if test $ac_cv_lib_svld_dlopen = yes; then
9992 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9993else
9994 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9995echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9996if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998else
9999 ac_check_lib_save_LIBS=$LIBS
10000LIBS="-ldld $LIBS"
10001cat >conftest.$ac_ext <<_ACEOF
10002/* confdefs.h. */
10003_ACEOF
10004cat confdefs.h >>conftest.$ac_ext
10005cat >>conftest.$ac_ext <<_ACEOF
10006/* end confdefs.h. */
10007
10008/* Override any gcc2 internal prototype to avoid an error. */
10009#ifdef __cplusplus
10010extern "C"
10011#endif
10012/* We use char because int might match the return type of a gcc2
10013 builtin and then its argument prototype would still apply. */
10014char dld_link ();
10015int
10016main ()
10017{
10018dld_link ();
10019 ;
10020 return 0;
10021}
10022_ACEOF
10023rm -f conftest.$ac_objext conftest$ac_exeext
10024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025 (eval $ac_link) 2>conftest.er1
10026 ac_status=$?
10027 grep -v '^ *+' conftest.er1 >conftest.err
10028 rm -f conftest.er1
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 ac_cv_lib_dld_dld_link=yes
10046else
10047 echo "$as_me: failed program was:" >&5
10048sed 's/^/| /' conftest.$ac_ext >&5
10049
10050ac_cv_lib_dld_dld_link=no
10051fi
10052rm -f conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054LIBS=$ac_check_lib_save_LIBS
10055fi
10056echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10057echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10058if test $ac_cv_lib_dld_dld_link = yes; then
10059 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10060fi
10061
10062
10063fi
10064
10065
10066fi
10067
10068
10069fi
10070
10071
10072fi
10073
10074
10075fi
10076
10077 ;;
10078 esac
10079
10080 if test "x$lt_cv_dlopen" != xno; then
10081 enable_dlopen=yes
20e95c23 10082 else
d7040cdb 10083 enable_dlopen=no
252b5132 10084 fi
5464f5a1 10085
d7040cdb
SE
10086 case $lt_cv_dlopen in
10087 dlopen)
10088 save_CPPFLAGS="$CPPFLAGS"
10089 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10090
10091 save_LDFLAGS="$LDFLAGS"
10092 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10093
10094 save_LIBS="$LIBS"
10095 LIBS="$lt_cv_dlopen_libs $LIBS"
10096
10097 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10098echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10099if test "${lt_cv_dlopen_self+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10101else
d7040cdb
SE
10102 if test "$cross_compiling" = yes; then :
10103 lt_cv_dlopen_self=cross
10104else
10105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10106 lt_status=$lt_dlunknown
10107 cat > conftest.$ac_ext <<_LT_EOF
0d4a1476 10108#line 10108 "configure"
d7040cdb
SE
10109#include "confdefs.h"
10110
10111#if HAVE_DLFCN_H
10112#include <dlfcn.h>
10113#endif
10114
10115#include <stdio.h>
10116
10117#ifdef RTLD_GLOBAL
10118# define LT_DLGLOBAL RTLD_GLOBAL
10119#else
10120# ifdef DL_GLOBAL
10121# define LT_DLGLOBAL DL_GLOBAL
10122# else
10123# define LT_DLGLOBAL 0
10124# endif
10125#endif
10126
10127/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10128 find out it does not work in some platform. */
10129#ifndef LT_DLLAZY_OR_NOW
10130# ifdef RTLD_LAZY
10131# define LT_DLLAZY_OR_NOW RTLD_LAZY
10132# else
10133# ifdef DL_LAZY
10134# define LT_DLLAZY_OR_NOW DL_LAZY
10135# else
10136# ifdef RTLD_NOW
10137# define LT_DLLAZY_OR_NOW RTLD_NOW
10138# else
10139# ifdef DL_NOW
10140# define LT_DLLAZY_OR_NOW DL_NOW
10141# else
10142# define LT_DLLAZY_OR_NOW 0
10143# endif
10144# endif
10145# endif
10146# endif
10147#endif
10148
10149#ifdef __cplusplus
10150extern "C" void exit (int);
10151#endif
10152
10153void fnord() { int i=42;}
10154int main ()
10155{
10156 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10157 int status = $lt_dlunknown;
10158
10159 if (self)
10160 {
10161 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10162 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10163 /* dlclose (self); */
10164 }
10165 else
10166 puts (dlerror ());
10167
10168 exit (status);
10169}
10170_LT_EOF
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172 (eval $ac_link) 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10176 (./conftest; exit; ) >&5 2>/dev/null
10177 lt_status=$?
10178 case x$lt_status in
10179 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10180 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10181 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10182 esac
10183 else :
10184 # compilation failed
10185 lt_cv_dlopen_self=no
10186 fi
252b5132 10187fi
d7040cdb 10188rm -fr conftest*
20e95c23 10189
d7040cdb
SE
10190
10191fi
10192echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10193echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10194
10195 if test "x$lt_cv_dlopen_self" = xyes; then
10196 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10197 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10198echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10199if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201else
d7040cdb
SE
10202 if test "$cross_compiling" = yes; then :
10203 lt_cv_dlopen_self_static=cross
10204else
10205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10206 lt_status=$lt_dlunknown
10207 cat > conftest.$ac_ext <<_LT_EOF
0d4a1476 10208#line 10208 "configure"
d7040cdb
SE
10209#include "confdefs.h"
10210
10211#if HAVE_DLFCN_H
10212#include <dlfcn.h>
10213#endif
10214
10215#include <stdio.h>
10216
10217#ifdef RTLD_GLOBAL
10218# define LT_DLGLOBAL RTLD_GLOBAL
10219#else
10220# ifdef DL_GLOBAL
10221# define LT_DLGLOBAL DL_GLOBAL
10222# else
10223# define LT_DLGLOBAL 0
10224# endif
10225#endif
10226
10227/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10228 find out it does not work in some platform. */
10229#ifndef LT_DLLAZY_OR_NOW
10230# ifdef RTLD_LAZY
10231# define LT_DLLAZY_OR_NOW RTLD_LAZY
10232# else
10233# ifdef DL_LAZY
10234# define LT_DLLAZY_OR_NOW DL_LAZY
10235# else
10236# ifdef RTLD_NOW
10237# define LT_DLLAZY_OR_NOW RTLD_NOW
10238# else
10239# ifdef DL_NOW
10240# define LT_DLLAZY_OR_NOW DL_NOW
10241# else
10242# define LT_DLLAZY_OR_NOW 0
10243# endif
10244# endif
10245# endif
10246# endif
10247#endif
10248
10249#ifdef __cplusplus
10250extern "C" void exit (int);
10251#endif
10252
10253void fnord() { int i=42;}
10254int main ()
10255{
10256 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10257 int status = $lt_dlunknown;
10258
10259 if (self)
10260 {
10261 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10262 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10263 /* dlclose (self); */
10264 }
10265 else
10266 puts (dlerror ());
10267
10268 exit (status);
10269}
10270_LT_EOF
10271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10276 (./conftest; exit; ) >&5 2>/dev/null
10277 lt_status=$?
10278 case x$lt_status in
10279 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10280 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10281 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10282 esac
10283 else :
10284 # compilation failed
10285 lt_cv_dlopen_self_static=no
10286 fi
10287fi
10288rm -fr conftest*
10289
10290
10291fi
10292echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10293echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10294 fi
10295
10296 CPPFLAGS="$save_CPPFLAGS"
10297 LDFLAGS="$save_LDFLAGS"
10298 LIBS="$save_LIBS"
10299 ;;
10300 esac
10301
10302 case $lt_cv_dlopen_self in
10303 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10304 *) enable_dlopen_self=unknown ;;
10305 esac
10306
10307 case $lt_cv_dlopen_self_static in
10308 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10309 *) enable_dlopen_self_static=unknown ;;
10310 esac
10311fi
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329striplib=
10330old_striplib=
10331echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10332echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10333if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10334 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10335 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10336 echo "$as_me:$LINENO: result: yes" >&5
10337echo "${ECHO_T}yes" >&6
10338else
10339# FIXME - insert some real tests, host_os isn't really good enough
10340 case $host_os in
10341 darwin*)
10342 if test -n "$STRIP" ; then
10343 striplib="$STRIP -x"
10344 old_striplib="$STRIP -S"
10345 echo "$as_me:$LINENO: result: yes" >&5
10346echo "${ECHO_T}yes" >&6
10347 else
10348 echo "$as_me:$LINENO: result: no" >&5
10349echo "${ECHO_T}no" >&6
10350 fi
20e95c23
DJ
10351 ;;
10352 *)
d7040cdb
SE
10353 echo "$as_me:$LINENO: result: no" >&5
10354echo "${ECHO_T}no" >&6
10355 ;;
10356 esac
10357fi
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370 # Report which library types will actually be built
10371 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10372echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10373 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10374echo "${ECHO_T}$can_build_shared" >&6
10375
10376 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10377echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10378 test "$can_build_shared" = "no" && enable_shared=no
10379
10380 # On AIX, shared libraries and static libraries use the same namespace, and
10381 # are all built from PIC.
10382 case $host_os in
10383 aix3*)
10384 test "$enable_shared" = yes && enable_static=no
10385 if test -n "$RANLIB"; then
10386 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10387 postinstall_cmds='$RANLIB $lib'
10388 fi
10389 ;;
10390
10391 aix4* | aix5*)
10392 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10393 test "$enable_shared" = yes && enable_static=no
10394 fi
20e95c23 10395 ;;
d7040cdb
SE
10396 esac
10397 echo "$as_me:$LINENO: result: $enable_shared" >&5
10398echo "${ECHO_T}$enable_shared" >&6
10399
10400 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10401echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10402 # Make sure either enable_shared or enable_static is yes.
10403 test "$enable_shared" = yes || enable_static=yes
10404 echo "$as_me:$LINENO: result: $enable_static" >&5
10405echo "${ECHO_T}$enable_static" >&6
10406
10407
10408
10409
10410fi
10411ac_ext=c
10412ac_cpp='$CPP $CPPFLAGS'
10413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10415ac_compiler_gnu=$ac_cv_c_compiler_gnu
10416
10417CC="$lt_save_CC"
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431 ac_config_commands="$ac_config_commands libtool"
10432
10433
10434
10435
10436# Only expand once:
10437
10438
10439
10440# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10441if test "${enable_64_bit_bfd+set}" = set; then
10442 enableval="$enable_64_bit_bfd"
10443 case "${enableval}" in
10444 yes) want64=true ;;
10445 no) want64=false ;;
10446 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10447echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10448 { (exit 1); exit 1; }; } ;;
10449esac
10450else
10451 want64=false
10452fi; # Check whether --enable-targets or --disable-targets was given.
10453if test "${enable_targets+set}" = set; then
10454 enableval="$enable_targets"
10455 case "${enableval}" in
10456 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10457echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10458 { (exit 1); exit 1; }; }
10459 ;;
10460 no) enable_targets= ;;
10461 *) enable_targets=$enableval ;;
10462esac
10463fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10464if test "${enable_commonbfdlib+set}" = set; then
10465 enableval="$enable_commonbfdlib"
10466 case "${enableval}" in
10467 yes) commonbfdlib=true ;;
10468 no) commonbfdlib=false ;;
10469 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10470echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10471 { (exit 1); exit 1; }; } ;;
10472esac
10473fi;
10474# Check whether --with-mmap or --without-mmap was given.
10475if test "${with_mmap+set}" = set; then
10476 withval="$with_mmap"
10477 case "${withval}" in
10478 yes) want_mmap=true ;;
10479 no) want_mmap=false ;;
10480 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10481echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10482 { (exit 1); exit 1; }; } ;;
20e95c23 10483esac
252b5132 10484else
d7040cdb
SE
10485 want_mmap=false
10486fi;
10487# Check whether --enable-secureplt or --disable-secureplt was given.
10488if test "${enable_secureplt+set}" = set; then
10489 enableval="$enable_secureplt"
10490 case "${enableval}" in
10491 yes) use_secureplt=true ;;
10492 no) use_secureplt=false ;;
10493 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10494echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10495 { (exit 1); exit 1; }; } ;;
10496esac
252b5132 10497else
d7040cdb
SE
10498 use_secureplt=false
10499fi; if test $use_secureplt = true; then
10500
10501cat >>confdefs.h <<\_ACEOF
10502#define USE_SECUREPLT 1
10503_ACEOF
5464f5a1 10504
252b5132 10505fi
20e95c23 10506
0d4a1476
AS
10507DEBUGDIR=${libdir}/debug
10508
10509
10510# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10511if test "${with_separate_debug_dir+set}" = set; then
10512 withval="$with_separate_debug_dir"
10513 DEBUGDIR="${withval}"
10514fi;
10515
10516
d7040cdb
SE
10517
10518
10519# Check whether --with-pkgversion or --without-pkgversion was given.
10520if test "${with_pkgversion+set}" = set; then
10521 withval="$with_pkgversion"
10522 case "$withval" in
10523 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10524echo "$as_me: error: package version not specified" >&2;}
10525 { (exit 1); exit 1; }; } ;;
10526 no) PKGVERSION= ;;
10527 *) PKGVERSION="($withval) " ;;
10528 esac
252b5132 10529else
d7040cdb 10530 PKGVERSION="(GNU Binutils) "
252b5132 10531
d7040cdb 10532fi;
20e95c23
DJ
10533
10534
5464f5a1 10535
20e95c23 10536
d7040cdb
SE
10537# Check whether --with-bugurl or --without-bugurl was given.
10538if test "${with_bugurl+set}" = set; then
10539 withval="$with_bugurl"
10540 case "$withval" in
10541 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10542echo "$as_me: error: bug URL not specified" >&2;}
10543 { (exit 1); exit 1; }; } ;;
10544 no) BUGURL=
10545 ;;
10546 *) BUGURL="$withval"
10547 ;;
10548 esac
252b5132 10549else
d7040cdb
SE
10550 BUGURL="http://www.sourceware.org/bugzilla/"
10551
10552fi;
10553 case ${BUGURL} in
10554 "")
10555 REPORT_BUGS_TO=
10556 REPORT_BUGS_TEXI=
20e95c23
DJ
10557 ;;
10558 *)
d7040cdb
SE
10559 REPORT_BUGS_TO="<$BUGURL>"
10560 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 10561 ;;
d7040cdb
SE
10562 esac;
10563
10564
10565
10566
10567
10568GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10569
10570# Check whether --enable-werror or --disable-werror was given.
10571if test "${enable_werror+set}" = set; then
10572 enableval="$enable_werror"
10573 case "${enableval}" in
10574 yes | y) ERROR_ON_WARNING="yes" ;;
10575 no | n) ERROR_ON_WARNING="no" ;;
10576 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10577echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10578 { (exit 1); exit 1; }; } ;;
10579 esac
10580fi;
10581
10582# Enable -Werror by default when using gcc
10583if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10584 ERROR_ON_WARNING=yes
10585fi
10586
10587NO_WERROR=
10588if test "${ERROR_ON_WARNING}" = yes ; then
10589 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10590 NO_WERROR="-Wno-error"
10591fi
10592
10593if test "${GCC}" = yes ; then
10594 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10595fi
10596
10597# Check whether --enable-build-warnings or --disable-build-warnings was given.
10598if test "${enable_build_warnings+set}" = set; then
10599 enableval="$enable_build_warnings"
10600 case "${enableval}" in
10601 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10602 no) if test "${GCC}" = yes ; then
10603 WARN_CFLAGS="-w"
10604 fi;;
10605 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10606 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10607 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10608 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10609 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 10610esac
d7040cdb
SE
10611fi;
10612
10613if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10614 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 10615fi
d7040cdb
SE
10616
10617
10618
10619
10620
10621 ac_config_headers="$ac_config_headers config.h:config.in"
10622
10623
10624if test -z "$target" ; then
10625 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10626echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10627 { (exit 1); exit 1; }; }
20e95c23
DJ
10628fi
10629
d7040cdb
SE
10630echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10631echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10632 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10633if test "${enable_maintainer_mode+set}" = set; then
10634 enableval="$enable_maintainer_mode"
10635 USE_MAINTAINER_MODE=$enableval
10636else
10637 USE_MAINTAINER_MODE=no
10638fi;
10639 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10640echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
10641
10642
d7040cdb
SE
10643if test $USE_MAINTAINER_MODE = yes; then
10644 MAINTAINER_MODE_TRUE=
10645 MAINTAINER_MODE_FALSE='#'
10646else
10647 MAINTAINER_MODE_TRUE='#'
10648 MAINTAINER_MODE_FALSE=
6be7c12c 10649fi
5464f5a1 10650
d7040cdb
SE
10651 MAINT=$MAINTAINER_MODE_TRUE
10652
10653
10654
10655
10656if false; then
10657 GENINSRC_NEVER_TRUE=
10658 GENINSRC_NEVER_FALSE='#'
20e95c23 10659else
d7040cdb
SE
10660 GENINSRC_NEVER_TRUE='#'
10661 GENINSRC_NEVER_FALSE=
5464f5a1 10662fi
5464f5a1 10663
d7040cdb
SE
10664 case ${build_alias} in
10665 "") build_noncanonical=${build} ;;
10666 *) build_noncanonical=${build_alias} ;;
20e95c23 10667esac
d7040cdb
SE
10668
10669 case ${host_alias} in
10670 "") host_noncanonical=${build_noncanonical} ;;
10671 *) host_noncanonical=${host_alias} ;;
10672esac
10673
10674 case ${target_alias} in
10675 "") target_noncanonical=${host_noncanonical} ;;
10676 *) target_noncanonical=${target_alias} ;;
10677esac
10678
10679echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10680echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10681 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10682if test "${enable_install_libbfd+set}" = set; then
10683 enableval="$enable_install_libbfd"
10684 install_libbfd_p=$enableval
252b5132 10685else
d7040cdb
SE
10686 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10687 install_libbfd_p=yes
10688 else
10689 install_libbfd_p=no
10690 fi
10691fi;
10692 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10693echo "${ECHO_T}$install_libbfd_p" >&6
10694
10695
10696if test $install_libbfd_p = yes; then
10697 INSTALL_LIBBFD_TRUE=
10698 INSTALL_LIBBFD_FALSE='#'
10699else
10700 INSTALL_LIBBFD_TRUE='#'
10701 INSTALL_LIBBFD_FALSE=
5464f5a1 10702fi
5464f5a1 10703
d7040cdb 10704 # Need _noncanonical variables for this.
5464f5a1 10705
5464f5a1 10706
d7040cdb
SE
10707
10708
10709 # libbfd.a is a host library containing target dependent code
10710 bfdlibdir='$(libdir)'
10711 bfdincludedir='$(includedir)'
10712 if test "${host}" != "${target}"; then
10713 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10714 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 10715 fi
6be7c12c 10716
5464f5a1 10717
5464f5a1
NN
10718
10719
5464f5a1 10720
ac48eca1 10721
d7040cdb
SE
10722host64=false
10723target64=false
10724bfd_default_target_size=32
252b5132 10725
d7040cdb 10726# host stuff:
20e95c23 10727
041a1845 10728ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
d7040cdb
SE
10729# If we haven't got the data from the intl directory,
10730# assume NLS is disabled.
10731USE_NLS=no
10732LIBINTL=
10733LIBINTL_DEP=
10734INCINTL=
10735XGETTEXT=
10736GMSGFMT=
10737POSUB=
10738
10739if test -f ../intl/config.intl; then
10740 . ../intl/config.intl
252b5132 10741fi
d7040cdb
SE
10742echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10743echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10744if test x"$USE_NLS" != xyes; then
10745 echo "$as_me:$LINENO: result: no" >&5
10746echo "${ECHO_T}no" >&6
10747else
10748 echo "$as_me:$LINENO: result: yes" >&5
10749echo "${ECHO_T}yes" >&6
5464f5a1 10750
d7040cdb
SE
10751cat >>confdefs.h <<\_ACEOF
10752#define ENABLE_NLS 1
10753_ACEOF
252b5132 10754
6be7c12c 10755
d7040cdb
SE
10756 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10757echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10758 # Look for .po and .gmo files in the source directory.
10759 CATALOGS=
10760 XLINGUAS=
10761 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10762 # If there aren't any .gmo files the shell will give us the
10763 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10764 # weeded out.
10765 case "$cat" in *\**)
10766 continue;;
10767 esac
10768 # The quadruple backslash is collapsed to a double backslash
10769 # by the backticks, then collapsed again by the double quotes,
10770 # leaving us with one backslash in the sed expression (right
10771 # before the dot that mustn't act as a wildcard).
10772 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10773 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10774 # The user is allowed to set LINGUAS to a list of languages to
10775 # install catalogs for. If it's empty that means "all of them."
10776 if test "x$LINGUAS" = x; then
10777 CATALOGS="$CATALOGS $cat"
10778 XLINGUAS="$XLINGUAS $lang"
10779 else
10780 case "$LINGUAS" in *$lang*)
10781 CATALOGS="$CATALOGS $cat"
10782 XLINGUAS="$XLINGUAS $lang"
10783 ;;
10784 esac
10785 fi
10786 done
10787 LINGUAS="$XLINGUAS"
10788 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10789echo "${ECHO_T}$LINGUAS" >&6
10790
252b5132 10791
d7040cdb 10792 DATADIRNAME=share
252b5132 10793
d7040cdb 10794 INSTOBJEXT=.mo
5464f5a1 10795
d7040cdb 10796 GENCAT=gencat
20e95c23 10797
d7040cdb 10798 CATOBJEXT=.gmo
5464f5a1 10799
20e95c23 10800fi
5464f5a1 10801
d7040cdb
SE
10802 MKINSTALLDIRS=
10803 if test -n "$ac_aux_dir"; then
10804 case "$ac_aux_dir" in
10805 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10806 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10807 esac
10808 fi
10809 if test -z "$MKINSTALLDIRS"; then
10810 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 10811 fi
5464f5a1 10812
5464f5a1 10813
d7040cdb
SE
10814
10815 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10816echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10817 # Check whether --enable-nls or --disable-nls was given.
10818if test "${enable_nls+set}" = set; then
10819 enableval="$enable_nls"
10820 USE_NLS=$enableval
252b5132 10821else
d7040cdb
SE
10822 USE_NLS=yes
10823fi;
10824 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10825echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 10826
252b5132 10827
5464f5a1 10828
252b5132 10829
d7040cdb
SE
10830
10831
10832# Prepare PATH_SEPARATOR.
10833# The user is always right.
10834if test "${PATH_SEPARATOR+set}" != set; then
10835 echo "#! /bin/sh" >conf$$.sh
10836 echo "exit 0" >>conf$$.sh
10837 chmod +x conf$$.sh
10838 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10839 PATH_SEPARATOR=';'
20e95c23 10840 else
d7040cdb 10841 PATH_SEPARATOR=:
20e95c23 10842 fi
d7040cdb
SE
10843 rm -f conf$$.sh
10844fi
10845
10846# Find out how to test for executable files. Don't use a zero-byte file,
10847# as systems may use methods other than mode bits to determine executability.
10848cat >conf$$.file <<_ASEOF
10849#! /bin/sh
10850exit 0
10851_ASEOF
10852chmod +x conf$$.file
10853if test -x conf$$.file >/dev/null 2>&1; then
10854 ac_executable_p="test -x"
20e95c23 10855else
d7040cdb 10856 ac_executable_p="test -f"
20e95c23 10857fi
d7040cdb 10858rm -f conf$$.file
5464f5a1 10859
d7040cdb
SE
10860# Extract the first word of "msgfmt", so it can be a program name with args.
10861set dummy msgfmt; ac_word=$2
10862echo "$as_me:$LINENO: checking for $ac_word" >&5
10863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10864if test "${ac_cv_path_MSGFMT+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866else
10867 case "$MSGFMT" in
10868 [\\/]* | ?:[\\/]*)
10869 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10870 ;;
10871 *)
10872 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10873 for ac_dir in $PATH; do
10874 IFS="$ac_save_IFS"
10875 test -z "$ac_dir" && ac_dir=.
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10878 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10879 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10880 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10881 break 2
10882 fi
10883 fi
10884 done
10885 done
10886 IFS="$ac_save_IFS"
10887 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10888 ;;
10889esac
5464f5a1 10890fi
d7040cdb
SE
10891MSGFMT="$ac_cv_path_MSGFMT"
10892if test "$MSGFMT" != ":"; then
10893 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10894echo "${ECHO_T}$MSGFMT" >&6
20e95c23 10895else
d7040cdb
SE
10896 echo "$as_me:$LINENO: result: no" >&5
10897echo "${ECHO_T}no" >&6
252b5132 10898fi
d7040cdb
SE
10899
10900 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10901set dummy gmsgfmt; ac_word=$2
10902echo "$as_me:$LINENO: checking for $ac_word" >&5
10903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10904if test "${ac_cv_path_GMSGFMT+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10906else
d7040cdb
SE
10907 case $GMSGFMT in
10908 [\\/]* | ?:[\\/]*)
10909 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10910 ;;
10911 *)
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913for as_dir in $PATH
10914do
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10919 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 break 2
10922 fi
10923done
10924done
5464f5a1 10925
d7040cdb
SE
10926 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10927 ;;
10928esac
252b5132 10929fi
d7040cdb 10930GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 10931
d7040cdb
SE
10932if test -n "$GMSGFMT"; then
10933 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10934echo "${ECHO_T}$GMSGFMT" >&6
252b5132 10935else
d7040cdb
SE
10936 echo "$as_me:$LINENO: result: no" >&5
10937echo "${ECHO_T}no" >&6
252b5132
RH
10938fi
10939
20e95c23
DJ
10940
10941
d7040cdb
SE
10942# Prepare PATH_SEPARATOR.
10943# The user is always right.
10944if test "${PATH_SEPARATOR+set}" != set; then
10945 echo "#! /bin/sh" >conf$$.sh
10946 echo "exit 0" >>conf$$.sh
10947 chmod +x conf$$.sh
10948 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10949 PATH_SEPARATOR=';'
10950 else
10951 PATH_SEPARATOR=:
10952 fi
10953 rm -f conf$$.sh
252b5132 10954fi
20e95c23 10955
d7040cdb
SE
10956# Find out how to test for executable files. Don't use a zero-byte file,
10957# as systems may use methods other than mode bits to determine executability.
10958cat >conf$$.file <<_ASEOF
10959#! /bin/sh
10960exit 0
10961_ASEOF
10962chmod +x conf$$.file
10963if test -x conf$$.file >/dev/null 2>&1; then
10964 ac_executable_p="test -x"
10965else
10966 ac_executable_p="test -f"
10967fi
10968rm -f conf$$.file
252b5132 10969
d7040cdb
SE
10970# Extract the first word of "xgettext", so it can be a program name with args.
10971set dummy xgettext; ac_word=$2
10972echo "$as_me:$LINENO: checking for $ac_word" >&5
10973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10974if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976else
d7040cdb
SE
10977 case "$XGETTEXT" in
10978 [\\/]* | ?:[\\/]*)
10979 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10980 ;;
10981 *)
10982 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10983 for ac_dir in $PATH; do
10984 IFS="$ac_save_IFS"
10985 test -z "$ac_dir" && ac_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10988 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10989 (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
10990 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10991 break 2
10992 fi
10993 fi
10994 done
10995 done
10996 IFS="$ac_save_IFS"
10997 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10998 ;;
10999esac
11000fi
11001XGETTEXT="$ac_cv_path_XGETTEXT"
11002if test "$XGETTEXT" != ":"; then
11003 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11004echo "${ECHO_T}$XGETTEXT" >&6
252b5132 11005else
d7040cdb
SE
11006 echo "$as_me:$LINENO: result: no" >&5
11007echo "${ECHO_T}no" >&6
252b5132
RH
11008fi
11009
d7040cdb 11010 rm -f messages.po
5464f5a1 11011
252b5132 11012
d7040cdb
SE
11013# Prepare PATH_SEPARATOR.
11014# The user is always right.
11015if test "${PATH_SEPARATOR+set}" != set; then
11016 echo "#! /bin/sh" >conf$$.sh
11017 echo "exit 0" >>conf$$.sh
11018 chmod +x conf$$.sh
11019 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11020 PATH_SEPARATOR=';'
11021 else
11022 PATH_SEPARATOR=:
11023 fi
11024 rm -f conf$$.sh
252b5132
RH
11025fi
11026
d7040cdb
SE
11027# Find out how to test for executable files. Don't use a zero-byte file,
11028# as systems may use methods other than mode bits to determine executability.
11029cat >conf$$.file <<_ASEOF
11030#! /bin/sh
11031exit 0
11032_ASEOF
11033chmod +x conf$$.file
11034if test -x conf$$.file >/dev/null 2>&1; then
11035 ac_executable_p="test -x"
5464f5a1 11036else
d7040cdb 11037 ac_executable_p="test -f"
20e95c23 11038fi
d7040cdb 11039rm -f conf$$.file
5464f5a1 11040
d7040cdb
SE
11041# Extract the first word of "msgmerge", so it can be a program name with args.
11042set dummy msgmerge; ac_word=$2
11043echo "$as_me:$LINENO: checking for $ac_word" >&5
11044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11045if test "${ac_cv_path_MSGMERGE+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047else
11048 case "$MSGMERGE" in
11049 [\\/]* | ?:[\\/]*)
11050 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11051 ;;
11052 *)
11053 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11054 for ac_dir in $PATH; do
11055 IFS="$ac_save_IFS"
11056 test -z "$ac_dir" && ac_dir=.
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11059 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11060 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11061 break 2
11062 fi
11063 fi
11064 done
11065 done
11066 IFS="$ac_save_IFS"
11067 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11068 ;;
11069esac
5464f5a1 11070fi
d7040cdb
SE
11071MSGMERGE="$ac_cv_path_MSGMERGE"
11072if test "$MSGMERGE" != ":"; then
11073 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11074echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 11075else
d7040cdb
SE
11076 echo "$as_me:$LINENO: result: no" >&5
11077echo "${ECHO_T}no" >&6
11078fi
20e95c23 11079
5464f5a1 11080
d7040cdb
SE
11081 if test "$GMSGFMT" != ":"; then
11082 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11083 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11084 : ;
11085 else
11086 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11087 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11088echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11089 GMSGFMT=":"
11090 fi
11091 fi
252b5132 11092
d7040cdb
SE
11093 if test "$XGETTEXT" != ":"; then
11094 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11095 (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
11096 : ;
11097 else
11098 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11099echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11100 XGETTEXT=":"
11101 fi
11102 rm -f messages.po
11103 fi
6be7c12c 11104
d7040cdb 11105 ac_config_commands="$ac_config_commands default-1"
5464f5a1 11106
252b5132 11107
5464f5a1 11108
d7040cdb
SE
11109# Permit host specific settings.
11110. ${srcdir}/configure.host
11111
11112
11113# Find a good install program. We prefer a C program (faster),
11114# so one script is as good as another. But avoid the broken or
11115# incompatible versions:
11116# SysV /etc/install, /usr/sbin/install
11117# SunOS /usr/etc/install
11118# IRIX /sbin/install
11119# AIX /bin/install
11120# AmigaOS /C/install, which installs bootblocks on floppy discs
11121# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11122# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11123# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11124# OS/2's system install, which has a completely different semantic
11125# ./install, which can be erroneously created by make from ./install.sh.
11126echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11127echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11128if test -z "$INSTALL"; then
11129if test "${ac_cv_path_install+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131else
11132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11133for as_dir in $PATH
11134do
11135 IFS=$as_save_IFS
11136 test -z "$as_dir" && as_dir=.
11137 # Account for people who put trailing slashes in PATH elements.
11138case $as_dir/ in
11139 ./ | .// | /cC/* | \
11140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11141 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11142 /usr/ucb/* ) ;;
11143 *)
11144 # OSF1 and SCO ODT 3.0 have their own names for install.
11145 # Don't use installbsd from OSF since it installs stuff as root
11146 # by default.
11147 for ac_prog in ginstall scoinst install; do
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11150 if test $ac_prog = install &&
11151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11152 # AIX install. It has an incompatible calling convention.
11153 :
11154 elif test $ac_prog = install &&
11155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11156 # program-specific install script used by HP pwplus--don't use.
11157 :
11158 else
11159 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11160 break 3
11161 fi
11162 fi
11163 done
11164 done
11165 ;;
11166esac
11167done
11168
252b5132 11169
d7040cdb
SE
11170fi
11171 if test "${ac_cv_path_install+set}" = set; then
11172 INSTALL=$ac_cv_path_install
11173 else
11174 # As a last resort, use the slow shell script. We don't cache a
11175 # path for INSTALL within a source directory, because that will
11176 # break other packages using the cache if that directory is
11177 # removed, or if the path is relative.
11178 INSTALL=$ac_install_sh
11179 fi
11180fi
11181echo "$as_me:$LINENO: result: $INSTALL" >&5
11182echo "${ECHO_T}$INSTALL" >&6
5464f5a1 11183
d7040cdb
SE
11184# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11185# It thinks the first close brace ends the variable substitution.
11186test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 11187
d7040cdb 11188test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 11189
d7040cdb 11190test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 11191
252b5132 11192
d7040cdb 11193BFD_HOST_64BIT_LONG=0
d2df793a 11194BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
11195BFD_HOST_64_BIT_DEFINED=0
11196BFD_HOST_64_BIT=
11197BFD_HOST_U_64_BIT=
d2df793a 11198BFD_HOSTPTR_T="unsigned long"
6be7c12c 11199
d7040cdb
SE
11200echo "$as_me:$LINENO: checking for long long" >&5
11201echo $ECHO_N "checking for long long... $ECHO_C" >&6
2ba49b59 11202if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 11203 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11204else
5464f5a1
NN
11205 cat >conftest.$ac_ext <<_ACEOF
11206/* confdefs.h. */
11207_ACEOF
11208cat confdefs.h >>conftest.$ac_ext
11209cat >>conftest.$ac_ext <<_ACEOF
11210/* end confdefs.h. */
2ba49b59 11211$ac_includes_default
5464f5a1
NN
11212int
11213main ()
11214{
2ba49b59
KC
11215if ((long long *) 0)
11216 return 0;
11217if (sizeof (long long))
11218 return 0;
5464f5a1
NN
11219 ;
11220 return 0;
11221}
11222_ACEOF
11223rm -f conftest.$ac_objext
11224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225 (eval $ac_compile) 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
49c96104
SE
11232 { ac_try='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
5464f5a1
NN
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest.$ac_objext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
2ba49b59 11245 ac_cv_type_long_long=yes
6726e1ea 11246else
5464f5a1
NN
11247 echo "$as_me: failed program was:" >&5
11248sed 's/^/| /' conftest.$ac_ext >&5
11249
2ba49b59 11250ac_cv_type_long_long=no
6726e1ea 11251fi
5464f5a1 11252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 11253fi
2ba49b59
KC
11254echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11255echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 11256
2ba49b59
KC
11257echo "$as_me:$LINENO: checking size of long long" >&5
11258echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11259if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 11260 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11261else
2ba49b59
KC
11262 if test "$ac_cv_type_long_long" = yes; then
11263 # The cast to unsigned long works around a bug in the HP C Compiler
11264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11266 # This bug is HP SR number 8606223364.
11267 if test "$cross_compiling" = yes; then
11268 # Depending upon the size, compute the lo and hi bounds.
11269cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11270/* confdefs.h. */
11271_ACEOF
11272cat confdefs.h >>conftest.$ac_ext
11273cat >>conftest.$ac_ext <<_ACEOF
11274/* end confdefs.h. */
2ba49b59
KC
11275$ac_includes_default
11276int
11277main ()
11278{
11279static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11280test_array [0] = 0
6726e1ea 11281
2ba49b59
KC
11282 ;
11283 return 0;
11284}
11285_ACEOF
11286rm -f conftest.$ac_objext
11287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11288 (eval $ac_compile) 2>conftest.er1
11289 ac_status=$?
11290 grep -v '^ *+' conftest.er1 >conftest.err
11291 rm -f conftest.er1
11292 cat conftest.err >&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } &&
49c96104
SE
11295 { ac_try='test -z "$ac_c_werror_flag"
11296 || test ! -s conftest.err'
2ba49b59
KC
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; } &&
11302 { ac_try='test -s conftest.$ac_objext'
11303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304 (eval $ac_try) 2>&5
11305 ac_status=$?
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }; then
11308 ac_lo=0 ac_mid=0
11309 while :; do
11310 cat >conftest.$ac_ext <<_ACEOF
11311/* confdefs.h. */
11312_ACEOF
11313cat confdefs.h >>conftest.$ac_ext
11314cat >>conftest.$ac_ext <<_ACEOF
11315/* end confdefs.h. */
11316$ac_includes_default
5464f5a1
NN
11317int
11318main ()
11319{
2ba49b59
KC
11320static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11321test_array [0] = 0
11322
5464f5a1
NN
11323 ;
11324 return 0;
11325}
11326_ACEOF
11327rm -f conftest.$ac_objext
11328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329 (eval $ac_compile) 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } &&
49c96104
SE
11336 { ac_try='test -z "$ac_c_werror_flag"
11337 || test ! -s conftest.err'
5464f5a1
NN
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; } &&
11343 { ac_try='test -s conftest.$ac_objext'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
2ba49b59 11349 ac_hi=$ac_mid; break
6726e1ea 11350else
5464f5a1
NN
11351 echo "$as_me: failed program was:" >&5
11352sed 's/^/| /' conftest.$ac_ext >&5
11353
2ba49b59
KC
11354ac_lo=`expr $ac_mid + 1`
11355 if test $ac_lo -le $ac_mid; then
11356 ac_lo= ac_hi=
11357 break
11358 fi
11359 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 11360fi
5464f5a1 11361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 11362 done
252b5132 11363else
2ba49b59
KC
11364 echo "$as_me: failed program was:" >&5
11365sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 11366
5464f5a1
NN
11367cat >conftest.$ac_ext <<_ACEOF
11368/* confdefs.h. */
11369_ACEOF
11370cat confdefs.h >>conftest.$ac_ext
11371cat >>conftest.$ac_ext <<_ACEOF
11372/* end confdefs.h. */
11373$ac_includes_default
2ba49b59
KC
11374int
11375main ()
11376{
11377static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11378test_array [0] = 0
11379
11380 ;
11381 return 0;
11382}
5464f5a1
NN
11383_ACEOF
11384rm -f conftest.$ac_objext
11385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386 (eval $ac_compile) 2>conftest.er1
11387 ac_status=$?
11388 grep -v '^ *+' conftest.er1 >conftest.err
11389 rm -f conftest.er1
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } &&
49c96104
SE
11393 { ac_try='test -z "$ac_c_werror_flag"
11394 || test ! -s conftest.err'
5464f5a1
NN
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; } &&
11400 { ac_try='test -s conftest.$ac_objext'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
2ba49b59
KC
11406 ac_hi=-1 ac_mid=-1
11407 while :; do
11408 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11409/* confdefs.h. */
11410_ACEOF
11411cat confdefs.h >>conftest.$ac_ext
11412cat >>conftest.$ac_ext <<_ACEOF
11413/* end confdefs.h. */
2ba49b59
KC
11414$ac_includes_default
11415int
11416main ()
11417{
11418static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11419test_array [0] = 0
11420
11421 ;
11422 return 0;
11423}
5464f5a1 11424_ACEOF
2ba49b59
KC
11425rm -f conftest.$ac_objext
11426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11427 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 11433 (exit $ac_status); } &&
49c96104
SE
11434 { ac_try='test -z "$ac_c_werror_flag"
11435 || test ! -s conftest.err'
2ba49b59
KC
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11438 ac_status=$?
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; } &&
11441 { ac_try='test -s conftest.$ac_objext'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }; then
11447 ac_lo=$ac_mid; break
252b5132 11448else
2ba49b59
KC
11449 echo "$as_me: failed program was:" >&5
11450sed 's/^/| /' conftest.$ac_ext >&5
11451
11452ac_hi=`expr '(' $ac_mid ')' - 1`
11453 if test $ac_mid -le $ac_hi; then
11454 ac_lo= ac_hi=
11455 break
11456 fi
11457 ac_mid=`expr 2 '*' $ac_mid`
252b5132 11458fi
2ba49b59
KC
11459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11460 done
5464f5a1
NN
11461else
11462 echo "$as_me: failed program was:" >&5
11463sed 's/^/| /' conftest.$ac_ext >&5
11464
2ba49b59 11465ac_lo= ac_hi=
252b5132 11466fi
2ba49b59
KC
11467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11468fi
11469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11470# Binary search between lo and hi bounds.
11471while test "x$ac_lo" != "x$ac_hi"; do
11472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11473 cat >conftest.$ac_ext <<_ACEOF
11474/* confdefs.h. */
11475_ACEOF
11476cat confdefs.h >>conftest.$ac_ext
11477cat >>conftest.$ac_ext <<_ACEOF
11478/* end confdefs.h. */
11479$ac_includes_default
11480int
11481main ()
11482{
11483static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11484test_array [0] = 0
5464f5a1 11485
2ba49b59
KC
11486 ;
11487 return 0;
11488}
5464f5a1
NN
11489_ACEOF
11490rm -f conftest.$ac_objext
11491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11492 (eval $ac_compile) 2>conftest.er1
11493 ac_status=$?
11494 grep -v '^ *+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
49c96104
SE
11499 { ac_try='test -z "$ac_c_werror_flag"
11500 || test ! -s conftest.err'
5464f5a1
NN
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try='test -s conftest.$ac_objext'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
2ba49b59 11512 ac_hi=$ac_mid
5464f5a1
NN
11513else
11514 echo "$as_me: failed program was:" >&5
11515sed 's/^/| /' conftest.$ac_ext >&5
11516
2ba49b59 11517ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
11518fi
11519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
11520done
11521case $ac_lo in
11522?*) ac_cv_sizeof_long_long=$ac_lo;;
11523'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11524See \`config.log' for more details." >&5
11525echo "$as_me: error: cannot compute sizeof (long long), 77
11526See \`config.log' for more details." >&2;}
11527 { (exit 1); exit 1; }; } ;;
11528esac
11529else
11530 if test "$cross_compiling" = yes; then
49c96104
SE
11531 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11532See \`config.log' for more details." >&5
11533echo "$as_me: error: cannot run test program while cross compiling
11534See \`config.log' for more details." >&2;}
2ba49b59
KC
11535 { (exit 1); exit 1; }; }
11536else
11537 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11538/* confdefs.h. */
11539_ACEOF
11540cat confdefs.h >>conftest.$ac_ext
11541cat >>conftest.$ac_ext <<_ACEOF
11542/* end confdefs.h. */
2ba49b59
KC
11543$ac_includes_default
11544long longval () { return (long) (sizeof (long long)); }
11545unsigned long ulongval () { return (long) (sizeof (long long)); }
11546#include <stdio.h>
11547#include <stdlib.h>
11548int
11549main ()
11550{
11551
11552 FILE *f = fopen ("conftest.val", "w");
11553 if (! f)
11554 exit (1);
11555 if (((long) (sizeof (long long))) < 0)
11556 {
11557 long i = longval ();
11558 if (i != ((long) (sizeof (long long))))
11559 exit (1);
11560 fprintf (f, "%ld\n", i);
11561 }
11562 else
11563 {
11564 unsigned long i = ulongval ();
11565 if (i != ((long) (sizeof (long long))))
11566 exit (1);
11567 fprintf (f, "%lu\n", i);
11568 }
11569 exit (ferror (f) || fclose (f) != 0);
11570
11571 ;
11572 return 0;
11573}
5464f5a1 11574_ACEOF
2ba49b59
KC
11575rm -f conftest$ac_exeext
11576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11577 (eval $ac_link) 2>&5
5464f5a1 11578 ac_status=$?
5464f5a1 11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
11580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 11587else
2ba49b59
KC
11588 echo "$as_me: program exited with status $ac_status" >&5
11589echo "$as_me: failed program was:" >&5
5464f5a1
NN
11590sed 's/^/| /' conftest.$ac_ext >&5
11591
2ba49b59
KC
11592( exit $ac_status )
11593{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11594See \`config.log' for more details." >&5
11595echo "$as_me: error: cannot compute sizeof (long long), 77
11596See \`config.log' for more details." >&2;}
11597 { (exit 1); exit 1; }; }
252b5132 11598fi
2ba49b59
KC
11599rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11600fi
11601fi
11602rm -f conftest.val
6be7c12c 11603else
2ba49b59 11604 ac_cv_sizeof_long_long=0
5464f5a1 11605fi
5464f5a1 11606fi
2ba49b59
KC
11607echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11608echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11609cat >>confdefs.h <<_ACEOF
11610#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
11611_ACEOF
11612
5464f5a1 11613
d2df793a
NC
11614echo "$as_me:$LINENO: checking for void *" >&5
11615echo $ECHO_N "checking for void *... $ECHO_C" >&6
11616if test "${ac_cv_type_void_p+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618else
11619 cat >conftest.$ac_ext <<_ACEOF
11620/* confdefs.h. */
11621_ACEOF
11622cat confdefs.h >>conftest.$ac_ext
11623cat >>conftest.$ac_ext <<_ACEOF
11624/* end confdefs.h. */
11625$ac_includes_default
11626int
11627main ()
11628{
11629if ((void * *) 0)
11630 return 0;
11631if (sizeof (void *))
11632 return 0;
11633 ;
11634 return 0;
11635}
11636_ACEOF
11637rm -f conftest.$ac_objext
11638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11639 (eval $ac_compile) 2>conftest.er1
11640 ac_status=$?
11641 grep -v '^ *+' conftest.er1 >conftest.err
11642 rm -f conftest.er1
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
11646 { ac_try='test -z "$ac_c_werror_flag"
11647 || test ! -s conftest.err'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest.$ac_objext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 ac_cv_type_void_p=yes
11660else
11661 echo "$as_me: failed program was:" >&5
11662sed 's/^/| /' conftest.$ac_ext >&5
11663
11664ac_cv_type_void_p=no
11665fi
11666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11667fi
11668echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11669echo "${ECHO_T}$ac_cv_type_void_p" >&6
11670
11671echo "$as_me:$LINENO: checking size of void *" >&5
11672echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11673if test "${ac_cv_sizeof_void_p+set}" = set; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11675else
11676 if test "$ac_cv_type_void_p" = yes; then
11677 # The cast to unsigned long works around a bug in the HP C Compiler
11678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11680 # This bug is HP SR number 8606223364.
11681 if test "$cross_compiling" = yes; then
11682 # Depending upon the size, compute the lo and hi bounds.
11683cat >conftest.$ac_ext <<_ACEOF
11684/* confdefs.h. */
11685_ACEOF
11686cat confdefs.h >>conftest.$ac_ext
11687cat >>conftest.$ac_ext <<_ACEOF
11688/* end confdefs.h. */
11689$ac_includes_default
11690int
11691main ()
11692{
11693static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11694test_array [0] = 0
11695
11696 ;
11697 return 0;
11698}
11699_ACEOF
11700rm -f conftest.$ac_objext
11701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11702 (eval $ac_compile) 2>conftest.er1
11703 ac_status=$?
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
11709 { ac_try='test -z "$ac_c_werror_flag"
11710 || test ! -s conftest.err'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try='test -s conftest.$ac_objext'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 ac_lo=0 ac_mid=0
11723 while :; do
11724 cat >conftest.$ac_ext <<_ACEOF
11725/* confdefs.h. */
11726_ACEOF
11727cat confdefs.h >>conftest.$ac_ext
11728cat >>conftest.$ac_ext <<_ACEOF
11729/* end confdefs.h. */
11730$ac_includes_default
11731int
11732main ()
11733{
11734static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11735test_array [0] = 0
11736
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext
11742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
11750 { ac_try='test -z "$ac_c_werror_flag"
11751 || test ! -s conftest.err'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; } &&
11757 { ac_try='test -s conftest.$ac_objext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11763 ac_hi=$ac_mid; break
11764else
11765 echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
11767
11768ac_lo=`expr $ac_mid + 1`
11769 if test $ac_lo -le $ac_mid; then
11770 ac_lo= ac_hi=
11771 break
11772 fi
11773 ac_mid=`expr 2 '*' $ac_mid + 1`
11774fi
11775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11776 done
11777else
11778 echo "$as_me: failed program was:" >&5
11779sed 's/^/| /' conftest.$ac_ext >&5
11780
11781cat >conftest.$ac_ext <<_ACEOF
11782/* confdefs.h. */
11783_ACEOF
11784cat confdefs.h >>conftest.$ac_ext
11785cat >>conftest.$ac_ext <<_ACEOF
11786/* end confdefs.h. */
11787$ac_includes_default
11788int
11789main ()
11790{
11791static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11792test_array [0] = 0
11793
11794 ;
11795 return 0;
11796}
11797_ACEOF
11798rm -f conftest.$ac_objext
11799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11800 (eval $ac_compile) 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag"
11808 || test ! -s conftest.err'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try='test -s conftest.$ac_objext'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_hi=-1 ac_mid=-1
11821 while :; do
11822 cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828$ac_includes_default
11829int
11830main ()
11831{
11832static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11833test_array [0] = 0
11834
11835 ;
11836 return 0;
11837}
11838_ACEOF
11839rm -f conftest.$ac_objext
11840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11841 (eval $ac_compile) 2>conftest.er1
11842 ac_status=$?
11843 grep -v '^ *+' conftest.er1 >conftest.err
11844 rm -f conftest.er1
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -z "$ac_c_werror_flag"
11849 || test ! -s conftest.err'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; } &&
11855 { ac_try='test -s conftest.$ac_objext'
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
11861 ac_lo=$ac_mid; break
11862else
11863 echo "$as_me: failed program was:" >&5
11864sed 's/^/| /' conftest.$ac_ext >&5
11865
11866ac_hi=`expr '(' $ac_mid ')' - 1`
11867 if test $ac_mid -le $ac_hi; then
11868 ac_lo= ac_hi=
11869 break
11870 fi
11871 ac_mid=`expr 2 '*' $ac_mid`
11872fi
11873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11874 done
11875else
11876 echo "$as_me: failed program was:" >&5
11877sed 's/^/| /' conftest.$ac_ext >&5
11878
11879ac_lo= ac_hi=
11880fi
11881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11882fi
11883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11884# Binary search between lo and hi bounds.
11885while test "x$ac_lo" != "x$ac_hi"; do
11886 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11887 cat >conftest.$ac_ext <<_ACEOF
11888/* confdefs.h. */
11889_ACEOF
11890cat confdefs.h >>conftest.$ac_ext
11891cat >>conftest.$ac_ext <<_ACEOF
11892/* end confdefs.h. */
11893$ac_includes_default
11894int
11895main ()
11896{
11897static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11898test_array [0] = 0
11899
11900 ;
11901 return 0;
11902}
11903_ACEOF
11904rm -f conftest.$ac_objext
11905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11906 (eval $ac_compile) 2>conftest.er1
11907 ac_status=$?
11908 grep -v '^ *+' conftest.er1 >conftest.err
11909 rm -f conftest.er1
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag"
11914 || test ! -s conftest.err'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try='test -s conftest.$ac_objext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 ac_hi=$ac_mid
11927else
11928 echo "$as_me: failed program was:" >&5
11929sed 's/^/| /' conftest.$ac_ext >&5
11930
11931ac_lo=`expr '(' $ac_mid ')' + 1`
11932fi
11933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11934done
11935case $ac_lo in
11936?*) ac_cv_sizeof_void_p=$ac_lo;;
11937'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
11938See \`config.log' for more details." >&5
11939echo "$as_me: error: cannot compute sizeof (void *), 77
11940See \`config.log' for more details." >&2;}
11941 { (exit 1); exit 1; }; } ;;
11942esac
11943else
11944 if test "$cross_compiling" = yes; then
11945 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11946See \`config.log' for more details." >&5
11947echo "$as_me: error: cannot run test program while cross compiling
11948See \`config.log' for more details." >&2;}
11949 { (exit 1); exit 1; }; }
11950else
11951 cat >conftest.$ac_ext <<_ACEOF
11952/* confdefs.h. */
11953_ACEOF
11954cat confdefs.h >>conftest.$ac_ext
11955cat >>conftest.$ac_ext <<_ACEOF
11956/* end confdefs.h. */
11957$ac_includes_default
11958long longval () { return (long) (sizeof (void *)); }
11959unsigned long ulongval () { return (long) (sizeof (void *)); }
11960#include <stdio.h>
11961#include <stdlib.h>
11962int
11963main ()
11964{
11965
11966 FILE *f = fopen ("conftest.val", "w");
11967 if (! f)
11968 exit (1);
11969 if (((long) (sizeof (void *))) < 0)
11970 {
11971 long i = longval ();
11972 if (i != ((long) (sizeof (void *))))
11973 exit (1);
11974 fprintf (f, "%ld\n", i);
11975 }
11976 else
11977 {
11978 unsigned long i = ulongval ();
11979 if (i != ((long) (sizeof (void *))))
11980 exit (1);
11981 fprintf (f, "%lu\n", i);
11982 }
11983 exit (ferror (f) || fclose (f) != 0);
11984
11985 ;
11986 return 0;
11987}
11988_ACEOF
11989rm -f conftest$ac_exeext
11990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11991 (eval $ac_link) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_cv_sizeof_void_p=`cat conftest.val`
12001else
12002 echo "$as_me: program exited with status $ac_status" >&5
12003echo "$as_me: failed program was:" >&5
12004sed 's/^/| /' conftest.$ac_ext >&5
12005
12006( exit $ac_status )
12007{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12008See \`config.log' for more details." >&5
12009echo "$as_me: error: cannot compute sizeof (void *), 77
12010See \`config.log' for more details." >&2;}
12011 { (exit 1); exit 1; }; }
12012fi
12013rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12014fi
12015fi
12016rm -f conftest.val
12017else
12018 ac_cv_sizeof_void_p=0
12019fi
12020fi
12021echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12022echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12023cat >>confdefs.h <<_ACEOF
12024#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12025_ACEOF
12026
12027
2ba49b59
KC
12028echo "$as_me:$LINENO: checking for long" >&5
12029echo $ECHO_N "checking for long... $ECHO_C" >&6
12030if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032else
12033 cat >conftest.$ac_ext <<_ACEOF
12034/* confdefs.h. */
12035_ACEOF
12036cat confdefs.h >>conftest.$ac_ext
12037cat >>conftest.$ac_ext <<_ACEOF
12038/* end confdefs.h. */
2ba49b59 12039$ac_includes_default
5464f5a1
NN
12040int
12041main ()
12042{
2ba49b59
KC
12043if ((long *) 0)
12044 return 0;
12045if (sizeof (long))
12046 return 0;
5464f5a1
NN
12047 ;
12048 return 0;
12049}
12050_ACEOF
12051rm -f conftest.$ac_objext
12052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
49c96104
SE
12060 { ac_try='test -z "$ac_c_werror_flag"
12061 || test ! -s conftest.err'
5464f5a1
NN
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest.$ac_objext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
2ba49b59 12073 ac_cv_type_long=yes
252b5132 12074else
5464f5a1
NN
12075 echo "$as_me: failed program was:" >&5
12076sed 's/^/| /' conftest.$ac_ext >&5
12077
2ba49b59 12078ac_cv_type_long=no
252b5132 12079fi
5464f5a1 12080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12081fi
2ba49b59
KC
12082echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12083echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 12084
2ba49b59
KC
12085echo "$as_me:$LINENO: checking size of long" >&5
12086echo $ECHO_N "checking size of long... $ECHO_C" >&6
12087if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12089else
2ba49b59
KC
12090 if test "$ac_cv_type_long" = yes; then
12091 # The cast to unsigned long works around a bug in the HP C Compiler
12092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12094 # This bug is HP SR number 8606223364.
12095 if test "$cross_compiling" = yes; then
12096 # Depending upon the size, compute the lo and hi bounds.
12097cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12098/* confdefs.h. */
12099_ACEOF
12100cat confdefs.h >>conftest.$ac_ext
12101cat >>conftest.$ac_ext <<_ACEOF
12102/* end confdefs.h. */
2ba49b59 12103$ac_includes_default
5464f5a1
NN
12104int
12105main ()
12106{
2ba49b59
KC
12107static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12108test_array [0] = 0
12109
5464f5a1
NN
12110 ;
12111 return 0;
12112}
12113_ACEOF
12114rm -f conftest.$ac_objext
12115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12116 (eval $ac_compile) 2>conftest.er1
12117 ac_status=$?
12118 grep -v '^ *+' conftest.er1 >conftest.err
12119 rm -f conftest.er1
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
49c96104
SE
12123 { ac_try='test -z "$ac_c_werror_flag"
12124 || test ! -s conftest.err'
5464f5a1
NN
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try='test -s conftest.$ac_objext'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
2ba49b59
KC
12136 ac_lo=0 ac_mid=0
12137 while :; do
12138 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12139/* confdefs.h. */
12140_ACEOF
12141cat confdefs.h >>conftest.$ac_ext
12142cat >>conftest.$ac_ext <<_ACEOF
12143/* end confdefs.h. */
2ba49b59 12144$ac_includes_default
5464f5a1
NN
12145int
12146main ()
12147{
2ba49b59
KC
12148static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12149test_array [0] = 0
12150
5464f5a1
NN
12151 ;
12152 return 0;
12153}
12154_ACEOF
2ba49b59
KC
12155rm -f conftest.$ac_objext
12156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12157 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
49c96104
SE
12164 { ac_try='test -z "$ac_c_werror_flag"
12165 || test ! -s conftest.err'
5464f5a1
NN
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; } &&
2ba49b59 12171 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
2ba49b59 12177 ac_hi=$ac_mid; break
5464f5a1
NN
12178else
12179 echo "$as_me: failed program was:" >&5
12180sed 's/^/| /' conftest.$ac_ext >&5
12181
2ba49b59
KC
12182ac_lo=`expr $ac_mid + 1`
12183 if test $ac_lo -le $ac_mid; then
12184 ac_lo= ac_hi=
12185 break
12186 fi
12187 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 12188fi
2ba49b59
KC
12189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12190 done
12191else
12192 echo "$as_me: failed program was:" >&5
12193sed 's/^/| /' conftest.$ac_ext >&5
12194
12195cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12196/* confdefs.h. */
12197_ACEOF
12198cat confdefs.h >>conftest.$ac_ext
12199cat >>conftest.$ac_ext <<_ACEOF
12200/* end confdefs.h. */
2ba49b59 12201$ac_includes_default
5464f5a1
NN
12202int
12203main ()
12204{
2ba49b59
KC
12205static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12206test_array [0] = 0
12207
5464f5a1
NN
12208 ;
12209 return 0;
12210}
12211_ACEOF
2ba49b59
KC
12212rm -f conftest.$ac_objext
12213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12214 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
49c96104
SE
12221 { ac_try='test -z "$ac_c_werror_flag"
12222 || test ! -s conftest.err'
5464f5a1
NN
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
2ba49b59 12228 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
2ba49b59
KC
12234 ac_hi=-1 ac_mid=-1
12235 while :; do
12236 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
2ba49b59 12242$ac_includes_default
5464f5a1
NN
12243int
12244main ()
12245{
2ba49b59
KC
12246static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12247test_array [0] = 0
12248
5464f5a1
NN
12249 ;
12250 return 0;
12251}
12252_ACEOF
2ba49b59
KC
12253rm -f conftest.$ac_objext
12254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12255 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } &&
49c96104
SE
12262 { ac_try='test -z "$ac_c_werror_flag"
12263 || test ! -s conftest.err'
5464f5a1
NN
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; } &&
2ba49b59 12269 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
2ba49b59 12275 ac_lo=$ac_mid; break
5464f5a1
NN
12276else
12277 echo "$as_me: failed program was:" >&5
12278sed 's/^/| /' conftest.$ac_ext >&5
12279
2ba49b59
KC
12280ac_hi=`expr '(' $ac_mid ')' - 1`
12281 if test $ac_mid -le $ac_hi; then
12282 ac_lo= ac_hi=
12283 break
12284 fi
12285 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 12286fi
2ba49b59
KC
12287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12288 done
12289else
12290 echo "$as_me: failed program was:" >&5
12291sed 's/^/| /' conftest.$ac_ext >&5
12292
12293ac_lo= ac_hi=
12294fi
12295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12296fi
12297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12298# Binary search between lo and hi bounds.
12299while test "x$ac_lo" != "x$ac_hi"; do
12300 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12301 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12302/* confdefs.h. */
12303_ACEOF
12304cat confdefs.h >>conftest.$ac_ext
12305cat >>conftest.$ac_ext <<_ACEOF
12306/* end confdefs.h. */
2ba49b59 12307$ac_includes_default
5464f5a1
NN
12308int
12309main ()
12310{
2ba49b59
KC
12311static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12312test_array [0] = 0
12313
5464f5a1
NN
12314 ;
12315 return 0;
12316}
12317_ACEOF
2ba49b59
KC
12318rm -f conftest.$ac_objext
12319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12320 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12321 ac_status=$?
12322 grep -v '^ *+' conftest.er1 >conftest.err
12323 rm -f conftest.er1
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
49c96104
SE
12327 { ac_try='test -z "$ac_c_werror_flag"
12328 || test ! -s conftest.err'
5464f5a1
NN
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
2ba49b59 12334 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
2ba49b59 12340 ac_hi=$ac_mid
5464f5a1
NN
12341else
12342 echo "$as_me: failed program was:" >&5
12343sed 's/^/| /' conftest.$ac_ext >&5
12344
2ba49b59 12345ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 12346fi
2ba49b59
KC
12347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12348done
12349case $ac_lo in
12350?*) ac_cv_sizeof_long=$ac_lo;;
12351'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12352See \`config.log' for more details." >&5
12353echo "$as_me: error: cannot compute sizeof (long), 77
12354See \`config.log' for more details." >&2;}
12355 { (exit 1); exit 1; }; } ;;
12356esac
12357else
12358 if test "$cross_compiling" = yes; then
49c96104
SE
12359 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12360See \`config.log' for more details." >&5
12361echo "$as_me: error: cannot run test program while cross compiling
12362See \`config.log' for more details." >&2;}
2ba49b59 12363 { (exit 1); exit 1; }; }
2e0fbf77
JW
12364else
12365 cat >conftest.$ac_ext <<_ACEOF
12366/* confdefs.h. */
12367_ACEOF
12368cat confdefs.h >>conftest.$ac_ext
12369cat >>conftest.$ac_ext <<_ACEOF
12370/* end confdefs.h. */
2ba49b59
KC
12371$ac_includes_default
12372long longval () { return (long) (sizeof (long)); }
12373unsigned long ulongval () { return (long) (sizeof (long)); }
12374#include <stdio.h>
12375#include <stdlib.h>
2e0fbf77
JW
12376int
12377main ()
12378{
12379
2ba49b59
KC
12380 FILE *f = fopen ("conftest.val", "w");
12381 if (! f)
12382 exit (1);
12383 if (((long) (sizeof (long))) < 0)
12384 {
12385 long i = longval ();
12386 if (i != ((long) (sizeof (long))))
12387 exit (1);
12388 fprintf (f, "%ld\n", i);
12389 }
12390 else
12391 {
12392 unsigned long i = ulongval ();
12393 if (i != ((long) (sizeof (long))))
12394 exit (1);
12395 fprintf (f, "%lu\n", i);
12396 }
12397 exit (ferror (f) || fclose (f) != 0);
12398
2e0fbf77
JW
12399 ;
12400 return 0;
12401}
12402_ACEOF
2ba49b59
KC
12403rm -f conftest$ac_exeext
12404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>&5
2e0fbf77
JW
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
2ba49b59 12414 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 12415else
2ba49b59
KC
12416 echo "$as_me: program exited with status $ac_status" >&5
12417echo "$as_me: failed program was:" >&5
2e0fbf77
JW
12418sed 's/^/| /' conftest.$ac_ext >&5
12419
2ba49b59
KC
12420( exit $ac_status )
12421{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12422See \`config.log' for more details." >&5
12423echo "$as_me: error: cannot compute sizeof (long), 77
12424See \`config.log' for more details." >&2;}
12425 { (exit 1); exit 1; }; }
2e0fbf77 12426fi
2ba49b59 12427rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 12428fi
2ba49b59
KC
12429fi
12430rm -f conftest.val
12431else
12432 ac_cv_sizeof_long=0
12433fi
12434fi
12435echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12436echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12437cat >>confdefs.h <<_ACEOF
12438#define SIZEOF_LONG $ac_cv_sizeof_long
12439_ACEOF
12440
12441
d2df793a
NC
12442
12443if test "x${ac_cv_sizeof_void_p}" = "x8"; then
2ba49b59 12444 host64=true
bce5e5c9
AM
12445fi
12446
12447if test "x${ac_cv_sizeof_long}" = "x8"; then
2ba49b59
KC
12448 BFD_HOST_64BIT_LONG=1
12449 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12450 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12451elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
bce5e5c9 12452 BFD_HOST_64BIT_LONG_LONG=1
2ba49b59
KC
12453 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12454 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
bce5e5c9
AM
12455 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12456 BFD_HOSTPTR_T="unsigned long long"
12457 fi
2ba49b59
KC
12458fi
12459
12460if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12461 BFD_HOST_64_BIT_DEFINED=1
12462 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12463 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12464fi
12465
12466
12467
12468
12469
12470
12471
d2df793a 12472
2ba49b59
KC
12473# Put a plausible default for CC_FOR_BUILD in Makefile.
12474if test -z "$CC_FOR_BUILD"; then
12475 if test "x$cross_compiling" = "xno"; then
12476 CC_FOR_BUILD='$(CC)'
12477 else
12478 CC_FOR_BUILD=gcc
12479 fi
12480fi
12481
12482# Also set EXEEXT_FOR_BUILD.
12483if test "x$cross_compiling" = "xno"; then
12484 EXEEXT_FOR_BUILD='$(EXEEXT)'
12485else
12486 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12487echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12488if test "${bfd_cv_build_exeext+set}" = set; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12490else
12491 rm -f conftest*
12492 echo 'int main () { return 0; }' > conftest.c
12493 bfd_cv_build_exeext=
12494 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12495 for file in conftest.*; do
12496 case $file in
12497 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12498 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12499 esac
12500 done
12501 rm -f conftest*
12502 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12503fi
12504echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12505echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12506 EXEEXT_FOR_BUILD=""
12507 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12508fi
12509
12510
12511
12512
12513
12514
12515
12516
12517for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
12518do
12519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12520if eval "test \"\${$as_ac_Header+set}\" = set"; then
12521 echo "$as_me:$LINENO: checking for $ac_header" >&5
12522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12523if eval "test \"\${$as_ac_Header+set}\" = set"; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525fi
12526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12528else
12529 # Is the header compilable?
12530echo "$as_me:$LINENO: checking $ac_header usability" >&5
12531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12532cat >conftest.$ac_ext <<_ACEOF
12533/* confdefs.h. */
12534_ACEOF
12535cat confdefs.h >>conftest.$ac_ext
12536cat >>conftest.$ac_ext <<_ACEOF
12537/* end confdefs.h. */
12538$ac_includes_default
12539#include <$ac_header>
12540_ACEOF
12541rm -f conftest.$ac_objext
12542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
49c96104
SE
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
2ba49b59
KC
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest.$ac_objext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_header_compiler=yes
12564else
12565 echo "$as_me: failed program was:" >&5
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
12568ac_header_compiler=no
12569fi
12570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12572echo "${ECHO_T}$ac_header_compiler" >&6
12573
12574# Is the header present?
12575echo "$as_me:$LINENO: checking $ac_header presence" >&5
12576echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12577cat >conftest.$ac_ext <<_ACEOF
12578/* confdefs.h. */
12579_ACEOF
12580cat confdefs.h >>conftest.$ac_ext
12581cat >>conftest.$ac_ext <<_ACEOF
12582/* end confdefs.h. */
12583#include <$ac_header>
12584_ACEOF
12585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } >/dev/null; then
12593 if test -s conftest.err; then
12594 ac_cpp_err=$ac_c_preproc_warn_flag
12595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12596 else
12597 ac_cpp_err=
12598 fi
12599else
12600 ac_cpp_err=yes
12601fi
12602if test -z "$ac_cpp_err"; then
12603 ac_header_preproc=yes
12604else
12605 echo "$as_me: failed program was:" >&5
12606sed 's/^/| /' conftest.$ac_ext >&5
12607
12608 ac_header_preproc=no
12609fi
12610rm -f conftest.err conftest.$ac_ext
12611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12612echo "${ECHO_T}$ac_header_preproc" >&6
12613
12614# So? What about this header?
12615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12616 yes:no: )
12617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12621 ac_header_preproc=yes
12622 ;;
12623 no:yes:* )
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12627echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12631echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12636 (
12637 cat <<\_ASBOX
12638## ------------------------------------------ ##
12639## Report this to the AC_PACKAGE_NAME lists. ##
12640## ------------------------------------------ ##
12641_ASBOX
12642 ) |
12643 sed "s/^/$as_me: WARNING: /" >&2
12644 ;;
12645esac
12646echo "$as_me:$LINENO: checking for $ac_header" >&5
12647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12648if eval "test \"\${$as_ac_Header+set}\" = set"; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650else
12651 eval "$as_ac_Header=\$ac_header_preproc"
12652fi
12653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12655
12656fi
12657if test `eval echo '${'$as_ac_Header'}'` = yes; then
12658 cat >>confdefs.h <<_ACEOF
12659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12660_ACEOF
12661
12662fi
12663
12664done
12665
12666
12667
12668
12669for ac_header in fcntl.h sys/file.h sys/time.h
12670do
12671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12672if eval "test \"\${$as_ac_Header+set}\" = set"; then
12673 echo "$as_me:$LINENO: checking for $ac_header" >&5
12674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12675if eval "test \"\${$as_ac_Header+set}\" = set"; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12677fi
12678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12680else
12681 # Is the header compilable?
12682echo "$as_me:$LINENO: checking $ac_header usability" >&5
12683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12684cat >conftest.$ac_ext <<_ACEOF
12685/* confdefs.h. */
12686_ACEOF
12687cat confdefs.h >>conftest.$ac_ext
12688cat >>conftest.$ac_ext <<_ACEOF
12689/* end confdefs.h. */
12690$ac_includes_default
12691#include <$ac_header>
12692_ACEOF
12693rm -f conftest.$ac_objext
12694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12695 (eval $ac_compile) 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
49c96104
SE
12702 { ac_try='test -z "$ac_c_werror_flag"
12703 || test ! -s conftest.err'
2ba49b59
KC
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; } &&
12709 { ac_try='test -s conftest.$ac_objext'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12715 ac_header_compiler=yes
12716else
12717 echo "$as_me: failed program was:" >&5
12718sed 's/^/| /' conftest.$ac_ext >&5
12719
12720ac_header_compiler=no
12721fi
12722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12723echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12724echo "${ECHO_T}$ac_header_compiler" >&6
12725
12726# Is the header present?
12727echo "$as_me:$LINENO: checking $ac_header presence" >&5
12728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12729cat >conftest.$ac_ext <<_ACEOF
12730/* confdefs.h. */
12731_ACEOF
12732cat confdefs.h >>conftest.$ac_ext
12733cat >>conftest.$ac_ext <<_ACEOF
12734/* end confdefs.h. */
12735#include <$ac_header>
12736_ACEOF
12737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12739 ac_status=$?
12740 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } >/dev/null; then
12745 if test -s conftest.err; then
12746 ac_cpp_err=$ac_c_preproc_warn_flag
12747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12748 else
12749 ac_cpp_err=
12750 fi
12751else
12752 ac_cpp_err=yes
12753fi
12754if test -z "$ac_cpp_err"; then
12755 ac_header_preproc=yes
12756else
12757 echo "$as_me: failed program was:" >&5
12758sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 ac_header_preproc=no
12761fi
12762rm -f conftest.err conftest.$ac_ext
12763echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12764echo "${ECHO_T}$ac_header_preproc" >&6
12765
12766# So? What about this header?
12767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12768 yes:no: )
12769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12773 ac_header_preproc=yes
12774 ;;
12775 no:yes:* )
12776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12779echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12783echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12788 (
12789 cat <<\_ASBOX
12790## ------------------------------------------ ##
12791## Report this to the AC_PACKAGE_NAME lists. ##
12792## ------------------------------------------ ##
12793_ASBOX
12794 ) |
12795 sed "s/^/$as_me: WARNING: /" >&2
12796 ;;
12797esac
12798echo "$as_me:$LINENO: checking for $ac_header" >&5
12799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12800if eval "test \"\${$as_ac_Header+set}\" = set"; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802else
12803 eval "$as_ac_Header=\$ac_header_preproc"
12804fi
12805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12807
12808fi
12809if test `eval echo '${'$as_ac_Header'}'` = yes; then
12810 cat >>confdefs.h <<_ACEOF
12811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12812_ACEOF
12813
12814fi
12815
12816done
12817
d5efd9fc
AM
12818
12819
12820inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12821
12822acx_cv_header_stdint=stddef.h
12823acx_cv_header_stdint_kind="(already complete)"
12824for i in stdint.h $inttype_headers; do
12825 unset ac_cv_type_uintptr_t
12826 unset ac_cv_type_uintmax_t
12827 unset ac_cv_type_int_least32_t
12828 unset ac_cv_type_int_fast32_t
12829 unset ac_cv_type_uint64_t
12830 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12831 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12832echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12833if test "${ac_cv_type_uintmax_t+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12835else
12836 cat >conftest.$ac_ext <<_ACEOF
12837/* confdefs.h. */
12838_ACEOF
12839cat confdefs.h >>conftest.$ac_ext
12840cat >>conftest.$ac_ext <<_ACEOF
12841/* end confdefs.h. */
12842#include <sys/types.h>
12843#include <$i>
12844
12845int
12846main ()
12847{
12848if ((uintmax_t *) 0)
12849 return 0;
12850if (sizeof (uintmax_t))
12851 return 0;
12852 ;
12853 return 0;
12854}
12855_ACEOF
12856rm -f conftest.$ac_objext
12857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12858 (eval $ac_compile) 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -z "$ac_c_werror_flag"
12866 || test ! -s conftest.err'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try='test -s conftest.$ac_objext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 ac_cv_type_uintmax_t=yes
12879else
12880 echo "$as_me: failed program was:" >&5
12881sed 's/^/| /' conftest.$ac_ext >&5
12882
12883ac_cv_type_uintmax_t=no
12884fi
12885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12886fi
12887echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12888echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12889if test $ac_cv_type_uintmax_t = yes; then
12890 acx_cv_header_stdint=$i
12891else
12892 continue
12893fi
12894
12895 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12896echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12897if test "${ac_cv_type_uintptr_t+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12899else
12900 cat >conftest.$ac_ext <<_ACEOF
12901/* confdefs.h. */
12902_ACEOF
12903cat confdefs.h >>conftest.$ac_ext
12904cat >>conftest.$ac_ext <<_ACEOF
12905/* end confdefs.h. */
12906#include <sys/types.h>
12907#include <$i>
12908
12909int
12910main ()
12911{
12912if ((uintptr_t *) 0)
12913 return 0;
12914if (sizeof (uintptr_t))
12915 return 0;
12916 ;
12917 return 0;
12918}
12919_ACEOF
12920rm -f conftest.$ac_objext
12921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12922 (eval $ac_compile) 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try='test -z "$ac_c_werror_flag"
12930 || test ! -s conftest.err'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12933 ac_status=$?
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; } &&
12936 { ac_try='test -s conftest.$ac_objext'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12939 ac_status=$?
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; }; then
12942 ac_cv_type_uintptr_t=yes
12943else
12944 echo "$as_me: failed program was:" >&5
12945sed 's/^/| /' conftest.$ac_ext >&5
12946
12947ac_cv_type_uintptr_t=no
12948fi
12949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12950fi
12951echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12952echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12953if test $ac_cv_type_uintptr_t = yes; then
12954 :
12955else
12956 acx_cv_header_stdint_kind="(mostly complete)"
12957fi
12958
12959 echo "$as_me:$LINENO: checking for int_least32_t" >&5
12960echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
12961if test "${ac_cv_type_int_least32_t+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12963else
12964 cat >conftest.$ac_ext <<_ACEOF
12965/* confdefs.h. */
12966_ACEOF
12967cat confdefs.h >>conftest.$ac_ext
12968cat >>conftest.$ac_ext <<_ACEOF
12969/* end confdefs.h. */
12970#include <sys/types.h>
12971#include <$i>
12972
12973int
12974main ()
12975{
12976if ((int_least32_t *) 0)
12977 return 0;
12978if (sizeof (int_least32_t))
12979 return 0;
12980 ;
12981 return 0;
12982}
12983_ACEOF
12984rm -f conftest.$ac_objext
12985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12986 (eval $ac_compile) 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -z "$ac_c_werror_flag"
12994 || test ! -s conftest.err'
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; } &&
13000 { ac_try='test -s conftest.$ac_objext'
13001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002 (eval $ac_try) 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 ac_cv_type_int_least32_t=yes
13007else
13008 echo "$as_me: failed program was:" >&5
13009sed 's/^/| /' conftest.$ac_ext >&5
13010
13011ac_cv_type_int_least32_t=no
13012fi
13013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13014fi
13015echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13016echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13017if test $ac_cv_type_int_least32_t = yes; then
13018 :
13019else
13020 acx_cv_header_stdint_kind="(mostly complete)"
13021fi
13022
13023 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13024echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13025if test "${ac_cv_type_int_fast32_t+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027else
13028 cat >conftest.$ac_ext <<_ACEOF
13029/* confdefs.h. */
13030_ACEOF
13031cat confdefs.h >>conftest.$ac_ext
13032cat >>conftest.$ac_ext <<_ACEOF
13033/* end confdefs.h. */
13034#include <sys/types.h>
13035#include <$i>
13036
13037int
13038main ()
13039{
13040if ((int_fast32_t *) 0)
13041 return 0;
13042if (sizeof (int_fast32_t))
13043 return 0;
13044 ;
13045 return 0;
13046}
13047_ACEOF
13048rm -f conftest.$ac_objext
13049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13050 (eval $ac_compile) 2>conftest.er1
13051 ac_status=$?
13052 grep -v '^ *+' conftest.er1 >conftest.err
13053 rm -f conftest.er1
13054 cat conftest.err >&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try='test -z "$ac_c_werror_flag"
13058 || test ! -s conftest.err'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; } &&
13064 { ac_try='test -s conftest.$ac_objext'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 ac_cv_type_int_fast32_t=yes
13071else
13072 echo "$as_me: failed program was:" >&5
13073sed 's/^/| /' conftest.$ac_ext >&5
13074
13075ac_cv_type_int_fast32_t=no
13076fi
13077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13078fi
13079echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13080echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13081if test $ac_cv_type_int_fast32_t = yes; then
13082 :
13083else
13084 acx_cv_header_stdint_kind="(mostly complete)"
13085fi
13086
13087 echo "$as_me:$LINENO: checking for uint64_t" >&5
13088echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13089if test "${ac_cv_type_uint64_t+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13091else
13092 cat >conftest.$ac_ext <<_ACEOF
13093/* confdefs.h. */
13094_ACEOF
13095cat confdefs.h >>conftest.$ac_ext
13096cat >>conftest.$ac_ext <<_ACEOF
13097/* end confdefs.h. */
13098#include <sys/types.h>
13099#include <$i>
13100
13101int
13102main ()
13103{
13104if ((uint64_t *) 0)
13105 return 0;
13106if (sizeof (uint64_t))
13107 return 0;
13108 ;
13109 return 0;
13110}
13111_ACEOF
13112rm -f conftest.$ac_objext
13113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13114 (eval $ac_compile) 2>conftest.er1
13115 ac_status=$?
13116 grep -v '^ *+' conftest.er1 >conftest.err
13117 rm -f conftest.er1
13118 cat conftest.err >&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -z "$ac_c_werror_flag"
13122 || test ! -s conftest.err'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest.$ac_objext'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
13134 ac_cv_type_uint64_t=yes
13135else
13136 echo "$as_me: failed program was:" >&5
13137sed 's/^/| /' conftest.$ac_ext >&5
13138
13139ac_cv_type_uint64_t=no
13140fi
13141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13142fi
13143echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13144echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13145if test $ac_cv_type_uint64_t = yes; then
13146 :
13147else
13148 acx_cv_header_stdint_kind="(lacks uint64_t)"
13149fi
13150
13151 break
13152done
13153if test "$acx_cv_header_stdint" = stddef.h; then
13154 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13155 for i in stdint.h $inttype_headers; do
13156 unset ac_cv_type_uintptr_t
13157 unset ac_cv_type_uint32_t
13158 unset ac_cv_type_uint64_t
13159 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13160 echo "$as_me:$LINENO: checking for uint32_t" >&5
13161echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13162if test "${ac_cv_type_uint32_t+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13164else
13165 cat >conftest.$ac_ext <<_ACEOF
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
13170/* end confdefs.h. */
13171#include <sys/types.h>
13172#include <$i>
13173
13174int
13175main ()
13176{
13177if ((uint32_t *) 0)
13178 return 0;
13179if (sizeof (uint32_t))
13180 return 0;
13181 ;
13182 return 0;
13183}
13184_ACEOF
13185rm -f conftest.$ac_objext
13186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13187 (eval $ac_compile) 2>conftest.er1
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } &&
13194 { ac_try='test -z "$ac_c_werror_flag"
13195 || test ! -s conftest.err'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13198 ac_status=$?
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; } &&
13201 { ac_try='test -s conftest.$ac_objext'
13202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203 (eval $ac_try) 2>&5
13204 ac_status=$?
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 ac_cv_type_uint32_t=yes
13208else
13209 echo "$as_me: failed program was:" >&5
13210sed 's/^/| /' conftest.$ac_ext >&5
13211
13212ac_cv_type_uint32_t=no
13213fi
13214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13215fi
13216echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13217echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13218if test $ac_cv_type_uint32_t = yes; then
13219 acx_cv_header_stdint=$i
13220else
13221 continue
13222fi
13223
13224 echo "$as_me:$LINENO: checking for uint64_t" >&5
13225echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13226if test "${ac_cv_type_uint64_t+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13228else
13229 cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235#include <sys/types.h>
13236#include <$i>
13237
13238int
13239main ()
13240{
13241if ((uint64_t *) 0)
13242 return 0;
13243if (sizeof (uint64_t))
13244 return 0;
13245 ;
13246 return 0;
13247}
13248_ACEOF
13249rm -f conftest.$ac_objext
13250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13251 (eval $ac_compile) 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try='test -z "$ac_c_werror_flag"
13259 || test ! -s conftest.err'
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; } &&
13265 { ac_try='test -s conftest.$ac_objext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 ac_cv_type_uint64_t=yes
13272else
13273 echo "$as_me: failed program was:" >&5
13274sed 's/^/| /' conftest.$ac_ext >&5
13275
13276ac_cv_type_uint64_t=no
13277fi
13278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13279fi
13280echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13281echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13282
13283 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13284echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13285if test "${ac_cv_type_uintptr_t+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13287else
13288 cat >conftest.$ac_ext <<_ACEOF
13289/* confdefs.h. */
13290_ACEOF
13291cat confdefs.h >>conftest.$ac_ext
13292cat >>conftest.$ac_ext <<_ACEOF
13293/* end confdefs.h. */
13294#include <sys/types.h>
13295#include <$i>
13296
13297int
13298main ()
13299{
13300if ((uintptr_t *) 0)
13301 return 0;
13302if (sizeof (uintptr_t))
13303 return 0;
13304 ;
13305 return 0;
13306}
13307_ACEOF
13308rm -f conftest.$ac_objext
13309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13310 (eval $ac_compile) 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -z "$ac_c_werror_flag"
13318 || test ! -s conftest.err'
13319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320 (eval $ac_try) 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; } &&
13324 { ac_try='test -s conftest.$ac_objext'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; }; then
13330 ac_cv_type_uintptr_t=yes
13331else
13332 echo "$as_me: failed program was:" >&5
13333sed 's/^/| /' conftest.$ac_ext >&5
13334
13335ac_cv_type_uintptr_t=no
13336fi
13337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13338fi
13339echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13340echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13341
13342 break
13343 done
13344fi
13345if test "$acx_cv_header_stdint" = stddef.h; then
13346 acx_cv_header_stdint_kind="(u_intXX_t style)"
13347 for i in sys/types.h $inttype_headers; do
13348 unset ac_cv_type_u_int32_t
13349 unset ac_cv_type_u_int64_t
13350 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13351 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13352echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13353if test "${ac_cv_type_u_int32_t+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13355else
13356 cat >conftest.$ac_ext <<_ACEOF
13357/* confdefs.h. */
13358_ACEOF
13359cat confdefs.h >>conftest.$ac_ext
13360cat >>conftest.$ac_ext <<_ACEOF
13361/* end confdefs.h. */
13362#include <sys/types.h>
13363#include <$i>
13364
13365int
13366main ()
13367{
13368if ((u_int32_t *) 0)
13369 return 0;
13370if (sizeof (u_int32_t))
13371 return 0;
13372 ;
13373 return 0;
13374}
13375_ACEOF
13376rm -f conftest.$ac_objext
13377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13378 (eval $ac_compile) 2>conftest.er1
13379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } &&
13385 { ac_try='test -z "$ac_c_werror_flag"
13386 || test ! -s conftest.err'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; } &&
13392 { ac_try='test -s conftest.$ac_objext'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
13398 ac_cv_type_u_int32_t=yes
13399else
13400 echo "$as_me: failed program was:" >&5
13401sed 's/^/| /' conftest.$ac_ext >&5
13402
13403ac_cv_type_u_int32_t=no
13404fi
13405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13406fi
13407echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13408echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13409if test $ac_cv_type_u_int32_t = yes; then
13410 acx_cv_header_stdint=$i
13411else
13412 continue
13413fi
13414
13415 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13416echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13417if test "${ac_cv_type_u_int64_t+set}" = set; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13419else
13420 cat >conftest.$ac_ext <<_ACEOF
13421/* confdefs.h. */
13422_ACEOF
13423cat confdefs.h >>conftest.$ac_ext
13424cat >>conftest.$ac_ext <<_ACEOF
13425/* end confdefs.h. */
13426#include <sys/types.h>
13427#include <$i>
13428
13429int
13430main ()
13431{
13432if ((u_int64_t *) 0)
13433 return 0;
13434if (sizeof (u_int64_t))
13435 return 0;
13436 ;
13437 return 0;
13438}
13439_ACEOF
13440rm -f conftest.$ac_objext
13441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13442 (eval $ac_compile) 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try='test -z "$ac_c_werror_flag"
13450 || test ! -s conftest.err'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try='test -s conftest.$ac_objext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_cv_type_u_int64_t=yes
13463else
13464 echo "$as_me: failed program was:" >&5
13465sed 's/^/| /' conftest.$ac_ext >&5
13466
13467ac_cv_type_u_int64_t=no
13468fi
13469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13470fi
13471echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13472echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13473
13474 break
13475 done
13476fi
13477if test "$acx_cv_header_stdint" = stddef.h; then
13478 acx_cv_header_stdint_kind="(using manual detection)"
13479fi
13480
13481test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13482test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13483test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13484test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13485test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13486
13487# ----------------- Summarize what we found so far
13488
13489echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13490echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13491
13492case `$as_basename bfd_stdint.h ||
13493$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13494 Xbfd_stdint.h : 'X\(//\)$' \| \
13495 Xbfd_stdint.h : 'X\(/\)$' \| \
13496 . : '\(.\)' 2>/dev/null ||
13497echo X/bfd_stdint.h |
13498 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13499 /^X\/\(\/\/\)$/{ s//\1/; q; }
13500 /^X\/\(\/\).*/{ s//\1/; q; }
13501 s/.*/./; q'` in
13502 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13503echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13504 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13505echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13506 *) ;;
13507esac
13508
13509echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13510echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13511
13512# ----------------- done included file, check C basic types --------
13513
13514# Lacking an uintptr_t? Test size of void *
13515case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13516 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13517echo $ECHO_N "checking for void *... $ECHO_C" >&6
13518if test "${ac_cv_type_void_p+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13520else
13521 cat >conftest.$ac_ext <<_ACEOF
13522/* confdefs.h. */
13523_ACEOF
13524cat confdefs.h >>conftest.$ac_ext
13525cat >>conftest.$ac_ext <<_ACEOF
13526/* end confdefs.h. */
13527$ac_includes_default
13528int
13529main ()
13530{
13531if ((void * *) 0)
13532 return 0;
13533if (sizeof (void *))
13534 return 0;
13535 ;
13536 return 0;
13537}
13538_ACEOF
13539rm -f conftest.$ac_objext
13540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541 (eval $ac_compile) 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
13548 { ac_try='test -z "$ac_c_werror_flag"
13549 || test ! -s conftest.err'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; } &&
13555 { ac_try='test -s conftest.$ac_objext'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_cv_type_void_p=yes
13562else
13563 echo "$as_me: failed program was:" >&5
13564sed 's/^/| /' conftest.$ac_ext >&5
13565
13566ac_cv_type_void_p=no
13567fi
13568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569fi
13570echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13571echo "${ECHO_T}$ac_cv_type_void_p" >&6
13572
13573echo "$as_me:$LINENO: checking size of void *" >&5
13574echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13575if test "${ac_cv_sizeof_void_p+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13577else
13578 if test "$ac_cv_type_void_p" = yes; then
13579 # The cast to unsigned long works around a bug in the HP C Compiler
13580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13582 # This bug is HP SR number 8606223364.
13583 if test "$cross_compiling" = yes; then
13584 # Depending upon the size, compute the lo and hi bounds.
13585cat >conftest.$ac_ext <<_ACEOF
13586/* confdefs.h. */
13587_ACEOF
13588cat confdefs.h >>conftest.$ac_ext
13589cat >>conftest.$ac_ext <<_ACEOF
13590/* end confdefs.h. */
13591$ac_includes_default
13592int
13593main ()
13594{
13595static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13596test_array [0] = 0
13597
13598 ;
13599 return 0;
13600}
13601_ACEOF
13602rm -f conftest.$ac_objext
13603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>conftest.er1
13605 ac_status=$?
13606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_c_werror_flag"
13612 || test ! -s conftest.err'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest.$ac_objext'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 ac_lo=0 ac_mid=0
13625 while :; do
13626 cat >conftest.$ac_ext <<_ACEOF
13627/* confdefs.h. */
13628_ACEOF
13629cat confdefs.h >>conftest.$ac_ext
13630cat >>conftest.$ac_ext <<_ACEOF
13631/* end confdefs.h. */
13632$ac_includes_default
13633int
13634main ()
13635{
13636static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13637test_array [0] = 0
13638
13639 ;
13640 return 0;
13641}
13642_ACEOF
13643rm -f conftest.$ac_objext
13644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645 (eval $ac_compile) 2>conftest.er1
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -z "$ac_c_werror_flag"
13653 || test ! -s conftest.err'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_hi=$ac_mid; break
13666else
13667 echo "$as_me: failed program was:" >&5
13668sed 's/^/| /' conftest.$ac_ext >&5
13669
13670ac_lo=`expr $ac_mid + 1`
13671 if test $ac_lo -le $ac_mid; then
13672 ac_lo= ac_hi=
13673 break
13674 fi
13675 ac_mid=`expr 2 '*' $ac_mid + 1`
13676fi
13677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13678 done
13679else
13680 echo "$as_me: failed program was:" >&5
13681sed 's/^/| /' conftest.$ac_ext >&5
13682
13683cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
13689$ac_includes_default
13690int
13691main ()
13692{
13693static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13694test_array [0] = 0
13695
13696 ;
13697 return 0;
13698}
13699_ACEOF
13700rm -f conftest.$ac_objext
13701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13702 (eval $ac_compile) 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag"
13710 || test ! -s conftest.err'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest.$ac_objext'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13722 ac_hi=-1 ac_mid=-1
13723 while :; do
13724 cat >conftest.$ac_ext <<_ACEOF
13725/* confdefs.h. */
13726_ACEOF
13727cat confdefs.h >>conftest.$ac_ext
13728cat >>conftest.$ac_ext <<_ACEOF
13729/* end confdefs.h. */
13730$ac_includes_default
13731int
13732main ()
13733{
13734static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13735test_array [0] = 0
13736
13737 ;
13738 return 0;
13739}
13740_ACEOF
13741rm -f conftest.$ac_objext
13742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13743 (eval $ac_compile) 2>conftest.er1
13744 ac_status=$?
13745 grep -v '^ *+' conftest.er1 >conftest.err
13746 rm -f conftest.er1
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } &&
13750 { ac_try='test -z "$ac_c_werror_flag"
13751 || test ! -s conftest.err'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; } &&
13757 { ac_try='test -s conftest.$ac_objext'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13763 ac_lo=$ac_mid; break
13764else
13765 echo "$as_me: failed program was:" >&5
13766sed 's/^/| /' conftest.$ac_ext >&5
13767
13768ac_hi=`expr '(' $ac_mid ')' - 1`
13769 if test $ac_mid -le $ac_hi; then
13770 ac_lo= ac_hi=
13771 break
13772 fi
13773 ac_mid=`expr 2 '*' $ac_mid`
13774fi
13775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13776 done
13777else
13778 echo "$as_me: failed program was:" >&5
13779sed 's/^/| /' conftest.$ac_ext >&5
13780
13781ac_lo= ac_hi=
13782fi
13783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13784fi
13785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13786# Binary search between lo and hi bounds.
13787while test "x$ac_lo" != "x$ac_hi"; do
13788 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13789 cat >conftest.$ac_ext <<_ACEOF
13790/* confdefs.h. */
13791_ACEOF
13792cat confdefs.h >>conftest.$ac_ext
13793cat >>conftest.$ac_ext <<_ACEOF
13794/* end confdefs.h. */
13795$ac_includes_default
13796int
13797main ()
13798{
13799static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13800test_array [0] = 0
13801
13802 ;
13803 return 0;
13804}
13805_ACEOF
13806rm -f conftest.$ac_objext
13807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13808 (eval $ac_compile) 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try='test -z "$ac_c_werror_flag"
13816 || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try='test -s conftest.$ac_objext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_hi=$ac_mid
13829else
13830 echo "$as_me: failed program was:" >&5
13831sed 's/^/| /' conftest.$ac_ext >&5
13832
13833ac_lo=`expr '(' $ac_mid ')' + 1`
13834fi
13835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13836done
13837case $ac_lo in
13838?*) ac_cv_sizeof_void_p=$ac_lo;;
13839'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13840See \`config.log' for more details." >&5
13841echo "$as_me: error: cannot compute sizeof (void *), 77
13842See \`config.log' for more details." >&2;}
13843 { (exit 1); exit 1; }; } ;;
13844esac
13845else
13846 if test "$cross_compiling" = yes; then
13847 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13848See \`config.log' for more details." >&5
13849echo "$as_me: error: cannot run test program while cross compiling
13850See \`config.log' for more details." >&2;}
13851 { (exit 1); exit 1; }; }
13852else
13853 cat >conftest.$ac_ext <<_ACEOF
13854/* confdefs.h. */
13855_ACEOF
13856cat confdefs.h >>conftest.$ac_ext
13857cat >>conftest.$ac_ext <<_ACEOF
13858/* end confdefs.h. */
13859$ac_includes_default
13860long longval () { return (long) (sizeof (void *)); }
13861unsigned long ulongval () { return (long) (sizeof (void *)); }
13862#include <stdio.h>
13863#include <stdlib.h>
13864int
13865main ()
13866{
13867
13868 FILE *f = fopen ("conftest.val", "w");
13869 if (! f)
13870 exit (1);
13871 if (((long) (sizeof (void *))) < 0)
13872 {
13873 long i = longval ();
13874 if (i != ((long) (sizeof (void *))))
13875 exit (1);
13876 fprintf (f, "%ld\n", i);
13877 }
13878 else
13879 {
13880 unsigned long i = ulongval ();
13881 if (i != ((long) (sizeof (void *))))
13882 exit (1);
13883 fprintf (f, "%lu\n", i);
13884 }
13885 exit (ferror (f) || fclose (f) != 0);
13886
13887 ;
13888 return 0;
13889}
13890_ACEOF
13891rm -f conftest$ac_exeext
13892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13893 (eval $ac_link) 2>&5
13894 ac_status=$?
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_sizeof_void_p=`cat conftest.val`
13903else
13904 echo "$as_me: program exited with status $ac_status" >&5
13905echo "$as_me: failed program was:" >&5
13906sed 's/^/| /' conftest.$ac_ext >&5
13907
13908( exit $ac_status )
13909{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13910See \`config.log' for more details." >&5
13911echo "$as_me: error: cannot compute sizeof (void *), 77
13912See \`config.log' for more details." >&2;}
13913 { (exit 1); exit 1; }; }
13914fi
13915rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13916fi
13917fi
13918rm -f conftest.val
13919else
13920 ac_cv_sizeof_void_p=0
13921fi
13922fi
13923echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13924echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13925cat >>confdefs.h <<_ACEOF
13926#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13927_ACEOF
13928
13929 ;;
13930esac
13931
13932# Lacking an uint64_t? Test size of long
13933case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13934 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13935echo $ECHO_N "checking for long... $ECHO_C" >&6
13936if test "${ac_cv_type_long+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13938else
13939 cat >conftest.$ac_ext <<_ACEOF
13940/* confdefs.h. */
13941_ACEOF
13942cat confdefs.h >>conftest.$ac_ext
13943cat >>conftest.$ac_ext <<_ACEOF
13944/* end confdefs.h. */
13945$ac_includes_default
13946int
13947main ()
13948{
13949if ((long *) 0)
13950 return 0;
13951if (sizeof (long))
13952 return 0;
13953 ;
13954 return 0;
13955}
13956_ACEOF
13957rm -f conftest.$ac_objext
13958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13959 (eval $ac_compile) 2>conftest.er1
13960 ac_status=$?
13961 grep -v '^ *+' conftest.er1 >conftest.err
13962 rm -f conftest.er1
13963 cat conftest.err >&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } &&
13966 { ac_try='test -z "$ac_c_werror_flag"
13967 || test ! -s conftest.err'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; } &&
13973 { ac_try='test -s conftest.$ac_objext'
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13976 ac_status=$?
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13979 ac_cv_type_long=yes
13980else
13981 echo "$as_me: failed program was:" >&5
13982sed 's/^/| /' conftest.$ac_ext >&5
13983
13984ac_cv_type_long=no
13985fi
13986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13987fi
13988echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13989echo "${ECHO_T}$ac_cv_type_long" >&6
13990
13991echo "$as_me:$LINENO: checking size of long" >&5
13992echo $ECHO_N "checking size of long... $ECHO_C" >&6
13993if test "${ac_cv_sizeof_long+set}" = set; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13995else
13996 if test "$ac_cv_type_long" = yes; then
13997 # The cast to unsigned long works around a bug in the HP C Compiler
13998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14000 # This bug is HP SR number 8606223364.
14001 if test "$cross_compiling" = yes; then
14002 # Depending upon the size, compute the lo and hi bounds.
14003cat >conftest.$ac_ext <<_ACEOF
14004/* confdefs.h. */
14005_ACEOF
14006cat confdefs.h >>conftest.$ac_ext
14007cat >>conftest.$ac_ext <<_ACEOF
14008/* end confdefs.h. */
14009$ac_includes_default
14010int
14011main ()
14012{
14013static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14014test_array [0] = 0
14015
14016 ;
14017 return 0;
14018}
14019_ACEOF
14020rm -f conftest.$ac_objext
14021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14022 (eval $ac_compile) 2>conftest.er1
14023 ac_status=$?
14024 grep -v '^ *+' conftest.er1 >conftest.err
14025 rm -f conftest.er1
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } &&
14029 { ac_try='test -z "$ac_c_werror_flag"
14030 || test ! -s conftest.err'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14033 ac_status=$?
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; } &&
14036 { ac_try='test -s conftest.$ac_objext'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 ac_lo=0 ac_mid=0
14043 while :; do
14044 cat >conftest.$ac_ext <<_ACEOF
14045/* confdefs.h. */
14046_ACEOF
14047cat confdefs.h >>conftest.$ac_ext
14048cat >>conftest.$ac_ext <<_ACEOF
14049/* end confdefs.h. */
14050$ac_includes_default
14051int
14052main ()
14053{
14054static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14055test_array [0] = 0
14056
14057 ;
14058 return 0;
14059}
14060_ACEOF
14061rm -f conftest.$ac_objext
14062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14063 (eval $ac_compile) 2>conftest.er1
14064 ac_status=$?
14065 grep -v '^ *+' conftest.er1 >conftest.err
14066 rm -f conftest.er1
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
14070 { ac_try='test -z "$ac_c_werror_flag"
14071 || test ! -s conftest.err'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; } &&
14077 { ac_try='test -s conftest.$ac_objext'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_hi=$ac_mid; break
14084else
14085 echo "$as_me: failed program was:" >&5
14086sed 's/^/| /' conftest.$ac_ext >&5
14087
14088ac_lo=`expr $ac_mid + 1`
14089 if test $ac_lo -le $ac_mid; then
14090 ac_lo= ac_hi=
14091 break
14092 fi
14093 ac_mid=`expr 2 '*' $ac_mid + 1`
14094fi
14095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14096 done
14097else
14098 echo "$as_me: failed program was:" >&5
14099sed 's/^/| /' conftest.$ac_ext >&5
14100
14101cat >conftest.$ac_ext <<_ACEOF
14102/* confdefs.h. */
14103_ACEOF
14104cat confdefs.h >>conftest.$ac_ext
14105cat >>conftest.$ac_ext <<_ACEOF
14106/* end confdefs.h. */
14107$ac_includes_default
14108int
14109main ()
14110{
14111static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14112test_array [0] = 0
14113
14114 ;
14115 return 0;
14116}
14117_ACEOF
14118rm -f conftest.$ac_objext
14119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14120 (eval $ac_compile) 2>conftest.er1
14121 ac_status=$?
14122 grep -v '^ *+' conftest.er1 >conftest.err
14123 rm -f conftest.er1
14124 cat conftest.err >&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } &&
14127 { ac_try='test -z "$ac_c_werror_flag"
14128 || test ! -s conftest.err'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try='test -s conftest.$ac_objext'
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14140 ac_hi=-1 ac_mid=-1
14141 while :; do
14142 cat >conftest.$ac_ext <<_ACEOF
14143/* confdefs.h. */
14144_ACEOF
14145cat confdefs.h >>conftest.$ac_ext
14146cat >>conftest.$ac_ext <<_ACEOF
14147/* end confdefs.h. */
14148$ac_includes_default
14149int
14150main ()
14151{
14152static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14153test_array [0] = 0
14154
14155 ;
14156 return 0;
14157}
14158_ACEOF
14159rm -f conftest.$ac_objext
14160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161 (eval $ac_compile) 2>conftest.er1
14162 ac_status=$?
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
14168 { ac_try='test -z "$ac_c_werror_flag"
14169 || test ! -s conftest.err'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; } &&
14175 { ac_try='test -s conftest.$ac_objext'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14181 ac_lo=$ac_mid; break
14182else
14183 echo "$as_me: failed program was:" >&5
14184sed 's/^/| /' conftest.$ac_ext >&5
14185
14186ac_hi=`expr '(' $ac_mid ')' - 1`
14187 if test $ac_mid -le $ac_hi; then
14188 ac_lo= ac_hi=
14189 break
14190 fi
14191 ac_mid=`expr 2 '*' $ac_mid`
14192fi
14193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14194 done
14195else
14196 echo "$as_me: failed program was:" >&5
14197sed 's/^/| /' conftest.$ac_ext >&5
14198
14199ac_lo= ac_hi=
14200fi
14201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14202fi
14203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14204# Binary search between lo and hi bounds.
14205while test "x$ac_lo" != "x$ac_hi"; do
14206 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14207 cat >conftest.$ac_ext <<_ACEOF
14208/* confdefs.h. */
14209_ACEOF
14210cat confdefs.h >>conftest.$ac_ext
14211cat >>conftest.$ac_ext <<_ACEOF
14212/* end confdefs.h. */
14213$ac_includes_default
14214int
14215main ()
14216{
14217static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14218test_array [0] = 0
14219
14220 ;
14221 return 0;
14222}
14223_ACEOF
14224rm -f conftest.$ac_objext
14225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226 (eval $ac_compile) 2>conftest.er1
14227 ac_status=$?
14228 grep -v '^ *+' conftest.er1 >conftest.err
14229 rm -f conftest.er1
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
14233 { ac_try='test -z "$ac_c_werror_flag"
14234 || test ! -s conftest.err'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest.$ac_objext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_hi=$ac_mid
14247else
14248 echo "$as_me: failed program was:" >&5
14249sed 's/^/| /' conftest.$ac_ext >&5
14250
14251ac_lo=`expr '(' $ac_mid ')' + 1`
14252fi
14253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14254done
14255case $ac_lo in
14256?*) ac_cv_sizeof_long=$ac_lo;;
14257'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14258See \`config.log' for more details." >&5
14259echo "$as_me: error: cannot compute sizeof (long), 77
14260See \`config.log' for more details." >&2;}
14261 { (exit 1); exit 1; }; } ;;
14262esac
14263else
14264 if test "$cross_compiling" = yes; then
14265 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14266See \`config.log' for more details." >&5
14267echo "$as_me: error: cannot run test program while cross compiling
14268See \`config.log' for more details." >&2;}
14269 { (exit 1); exit 1; }; }
14270else
14271 cat >conftest.$ac_ext <<_ACEOF
14272/* confdefs.h. */
14273_ACEOF
14274cat confdefs.h >>conftest.$ac_ext
14275cat >>conftest.$ac_ext <<_ACEOF
14276/* end confdefs.h. */
14277$ac_includes_default
14278long longval () { return (long) (sizeof (long)); }
14279unsigned long ulongval () { return (long) (sizeof (long)); }
14280#include <stdio.h>
14281#include <stdlib.h>
14282int
14283main ()
14284{
14285
14286 FILE *f = fopen ("conftest.val", "w");
14287 if (! f)
14288 exit (1);
14289 if (((long) (sizeof (long))) < 0)
14290 {
14291 long i = longval ();
14292 if (i != ((long) (sizeof (long))))
14293 exit (1);
14294 fprintf (f, "%ld\n", i);
14295 }
14296 else
14297 {
14298 unsigned long i = ulongval ();
14299 if (i != ((long) (sizeof (long))))
14300 exit (1);
14301 fprintf (f, "%lu\n", i);
14302 }
14303 exit (ferror (f) || fclose (f) != 0);
14304
14305 ;
14306 return 0;
14307}
14308_ACEOF
14309rm -f conftest$ac_exeext
14310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14320 ac_cv_sizeof_long=`cat conftest.val`
14321else
14322 echo "$as_me: program exited with status $ac_status" >&5
14323echo "$as_me: failed program was:" >&5
14324sed 's/^/| /' conftest.$ac_ext >&5
14325
14326( exit $ac_status )
14327{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14328See \`config.log' for more details." >&5
14329echo "$as_me: error: cannot compute sizeof (long), 77
14330See \`config.log' for more details." >&2;}
14331 { (exit 1); exit 1; }; }
14332fi
14333rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14334fi
14335fi
14336rm -f conftest.val
14337else
14338 ac_cv_sizeof_long=0
14339fi
14340fi
14341echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14342echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14343cat >>confdefs.h <<_ACEOF
14344#define SIZEOF_LONG $ac_cv_sizeof_long
14345_ACEOF
14346
14347 ;;
14348esac
14349
14350if test $acx_cv_header_stdint = stddef.h; then
14351 # Lacking a good header? Test size of everything and deduce all types.
14352 echo "$as_me:$LINENO: checking for int" >&5
14353echo $ECHO_N "checking for int... $ECHO_C" >&6
14354if test "${ac_cv_type_int+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356else
14357 cat >conftest.$ac_ext <<_ACEOF
14358/* confdefs.h. */
14359_ACEOF
14360cat confdefs.h >>conftest.$ac_ext
14361cat >>conftest.$ac_ext <<_ACEOF
14362/* end confdefs.h. */
14363$ac_includes_default
14364int
14365main ()
14366{
14367if ((int *) 0)
14368 return 0;
14369if (sizeof (int))
14370 return 0;
14371 ;
14372 return 0;
14373}
14374_ACEOF
14375rm -f conftest.$ac_objext
14376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag"
14385 || test ! -s conftest.err'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } &&
14391 { ac_try='test -s conftest.$ac_objext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_cv_type_int=yes
14398else
14399 echo "$as_me: failed program was:" >&5
14400sed 's/^/| /' conftest.$ac_ext >&5
14401
14402ac_cv_type_int=no
14403fi
14404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14405fi
14406echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14407echo "${ECHO_T}$ac_cv_type_int" >&6
14408
14409echo "$as_me:$LINENO: checking size of int" >&5
14410echo $ECHO_N "checking size of int... $ECHO_C" >&6
14411if test "${ac_cv_sizeof_int+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14413else
14414 if test "$ac_cv_type_int" = yes; then
14415 # The cast to unsigned long works around a bug in the HP C Compiler
14416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14418 # This bug is HP SR number 8606223364.
14419 if test "$cross_compiling" = yes; then
14420 # Depending upon the size, compute the lo and hi bounds.
14421cat >conftest.$ac_ext <<_ACEOF
14422/* confdefs.h. */
14423_ACEOF
14424cat confdefs.h >>conftest.$ac_ext
14425cat >>conftest.$ac_ext <<_ACEOF
14426/* end confdefs.h. */
14427$ac_includes_default
14428int
14429main ()
14430{
14431static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14432test_array [0] = 0
14433
14434 ;
14435 return 0;
14436}
14437_ACEOF
14438rm -f conftest.$ac_objext
14439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14440 (eval $ac_compile) 2>conftest.er1
14441 ac_status=$?
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -z "$ac_c_werror_flag"
14448 || test ! -s conftest.err'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest.$ac_objext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_lo=0 ac_mid=0
14461 while :; do
14462 cat >conftest.$ac_ext <<_ACEOF
14463/* confdefs.h. */
14464_ACEOF
14465cat confdefs.h >>conftest.$ac_ext
14466cat >>conftest.$ac_ext <<_ACEOF
14467/* end confdefs.h. */
14468$ac_includes_default
14469int
14470main ()
14471{
14472static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14473test_array [0] = 0
14474
14475 ;
14476 return 0;
14477}
14478_ACEOF
14479rm -f conftest.$ac_objext
14480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14481 (eval $ac_compile) 2>conftest.er1
14482 ac_status=$?
14483 grep -v '^ *+' conftest.er1 >conftest.err
14484 rm -f conftest.er1
14485 cat conftest.err >&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } &&
14488 { ac_try='test -z "$ac_c_werror_flag"
14489 || test ! -s conftest.err'
14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491 (eval $ac_try) 2>&5
14492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; } &&
14495 { ac_try='test -s conftest.$ac_objext'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
14501 ac_hi=$ac_mid; break
14502else
14503 echo "$as_me: failed program was:" >&5
14504sed 's/^/| /' conftest.$ac_ext >&5
14505
14506ac_lo=`expr $ac_mid + 1`
14507 if test $ac_lo -le $ac_mid; then
14508 ac_lo= ac_hi=
14509 break
14510 fi
14511 ac_mid=`expr 2 '*' $ac_mid + 1`
14512fi
14513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14514 done
14515else
14516 echo "$as_me: failed program was:" >&5
14517sed 's/^/| /' conftest.$ac_ext >&5
14518
14519cat >conftest.$ac_ext <<_ACEOF
14520/* confdefs.h. */
14521_ACEOF
14522cat confdefs.h >>conftest.$ac_ext
14523cat >>conftest.$ac_ext <<_ACEOF
14524/* end confdefs.h. */
14525$ac_includes_default
14526int
14527main ()
14528{
14529static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14530test_array [0] = 0
14531
14532 ;
14533 return 0;
14534}
14535_ACEOF
14536rm -f conftest.$ac_objext
14537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14538 (eval $ac_compile) 2>conftest.er1
14539 ac_status=$?
14540 grep -v '^ *+' conftest.er1 >conftest.err
14541 rm -f conftest.er1
14542 cat conftest.err >&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } &&
14545 { ac_try='test -z "$ac_c_werror_flag"
14546 || test ! -s conftest.err'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; } &&
14552 { ac_try='test -s conftest.$ac_objext'
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14555 ac_status=$?
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; }; then
14558 ac_hi=-1 ac_mid=-1
14559 while :; do
14560 cat >conftest.$ac_ext <<_ACEOF
14561/* confdefs.h. */
14562_ACEOF
14563cat confdefs.h >>conftest.$ac_ext
14564cat >>conftest.$ac_ext <<_ACEOF
14565/* end confdefs.h. */
14566$ac_includes_default
14567int
14568main ()
14569{
14570static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14571test_array [0] = 0
14572
14573 ;
14574 return 0;
14575}
14576_ACEOF
14577rm -f conftest.$ac_objext
14578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579 (eval $ac_compile) 2>conftest.er1
14580 ac_status=$?
14581 grep -v '^ *+' conftest.er1 >conftest.err
14582 rm -f conftest.er1
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
14586 { ac_try='test -z "$ac_c_werror_flag"
14587 || test ! -s conftest.err'
14588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589 (eval $ac_try) 2>&5
14590 ac_status=$?
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; } &&
14593 { ac_try='test -s conftest.$ac_objext'
14594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595 (eval $ac_try) 2>&5
14596 ac_status=$?
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); }; }; then
14599 ac_lo=$ac_mid; break
14600else
14601 echo "$as_me: failed program was:" >&5
14602sed 's/^/| /' conftest.$ac_ext >&5
14603
14604ac_hi=`expr '(' $ac_mid ')' - 1`
14605 if test $ac_mid -le $ac_hi; then
14606 ac_lo= ac_hi=
14607 break
14608 fi
14609 ac_mid=`expr 2 '*' $ac_mid`
14610fi
14611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14612 done
14613else
14614 echo "$as_me: failed program was:" >&5
14615sed 's/^/| /' conftest.$ac_ext >&5
14616
14617ac_lo= ac_hi=
14618fi
14619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14620fi
14621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14622# Binary search between lo and hi bounds.
14623while test "x$ac_lo" != "x$ac_hi"; do
14624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14625 cat >conftest.$ac_ext <<_ACEOF
14626/* confdefs.h. */
14627_ACEOF
14628cat confdefs.h >>conftest.$ac_ext
14629cat >>conftest.$ac_ext <<_ACEOF
14630/* end confdefs.h. */
14631$ac_includes_default
14632int
14633main ()
14634{
14635static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14636test_array [0] = 0
14637
14638 ;
14639 return 0;
14640}
14641_ACEOF
14642rm -f conftest.$ac_objext
14643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644 (eval $ac_compile) 2>conftest.er1
14645 ac_status=$?
14646 grep -v '^ *+' conftest.er1 >conftest.err
14647 rm -f conftest.er1
14648 cat conftest.err >&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try='test -z "$ac_c_werror_flag"
14652 || test ! -s conftest.err'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; } &&
14658 { ac_try='test -s conftest.$ac_objext'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14664 ac_hi=$ac_mid
14665else
14666 echo "$as_me: failed program was:" >&5
14667sed 's/^/| /' conftest.$ac_ext >&5
14668
14669ac_lo=`expr '(' $ac_mid ')' + 1`
14670fi
14671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14672done
14673case $ac_lo in
14674?*) ac_cv_sizeof_int=$ac_lo;;
14675'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14676See \`config.log' for more details." >&5
14677echo "$as_me: error: cannot compute sizeof (int), 77
14678See \`config.log' for more details." >&2;}
14679 { (exit 1); exit 1; }; } ;;
14680esac
14681else
14682 if test "$cross_compiling" = yes; then
14683 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14684See \`config.log' for more details." >&5
14685echo "$as_me: error: cannot run test program while cross compiling
14686See \`config.log' for more details." >&2;}
14687 { (exit 1); exit 1; }; }
14688else
14689 cat >conftest.$ac_ext <<_ACEOF
14690/* confdefs.h. */
14691_ACEOF
14692cat confdefs.h >>conftest.$ac_ext
14693cat >>conftest.$ac_ext <<_ACEOF
14694/* end confdefs.h. */
14695$ac_includes_default
14696long longval () { return (long) (sizeof (int)); }
14697unsigned long ulongval () { return (long) (sizeof (int)); }
14698#include <stdio.h>
14699#include <stdlib.h>
14700int
14701main ()
14702{
14703
14704 FILE *f = fopen ("conftest.val", "w");
14705 if (! f)
14706 exit (1);
14707 if (((long) (sizeof (int))) < 0)
14708 {
14709 long i = longval ();
14710 if (i != ((long) (sizeof (int))))
14711 exit (1);
14712 fprintf (f, "%ld\n", i);
14713 }
14714 else
14715 {
14716 unsigned long i = ulongval ();
14717 if (i != ((long) (sizeof (int))))
14718 exit (1);
14719 fprintf (f, "%lu\n", i);
14720 }
14721 exit (ferror (f) || fclose (f) != 0);
14722
14723 ;
14724 return 0;
14725}
14726_ACEOF
14727rm -f conftest$ac_exeext
14728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14729 (eval $ac_link) 2>&5
14730 ac_status=$?
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_cv_sizeof_int=`cat conftest.val`
14739else
14740 echo "$as_me: program exited with status $ac_status" >&5
14741echo "$as_me: failed program was:" >&5
14742sed 's/^/| /' conftest.$ac_ext >&5
14743
14744( exit $ac_status )
14745{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14746See \`config.log' for more details." >&5
14747echo "$as_me: error: cannot compute sizeof (int), 77
14748See \`config.log' for more details." >&2;}
14749 { (exit 1); exit 1; }; }
14750fi
14751rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14752fi
14753fi
14754rm -f conftest.val
14755else
14756 ac_cv_sizeof_int=0
14757fi
14758fi
14759echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14760echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14761cat >>confdefs.h <<_ACEOF
14762#define SIZEOF_INT $ac_cv_sizeof_int
14763_ACEOF
14764
14765
14766 echo "$as_me:$LINENO: checking for short" >&5
14767echo $ECHO_N "checking for short... $ECHO_C" >&6
14768if test "${ac_cv_type_short+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14770else
14771 cat >conftest.$ac_ext <<_ACEOF
14772/* confdefs.h. */
14773_ACEOF
14774cat confdefs.h >>conftest.$ac_ext
14775cat >>conftest.$ac_ext <<_ACEOF
14776/* end confdefs.h. */
14777$ac_includes_default
14778int
14779main ()
14780{
14781if ((short *) 0)
14782 return 0;
14783if (sizeof (short))
14784 return 0;
14785 ;
14786 return 0;
14787}
14788_ACEOF
14789rm -f conftest.$ac_objext
14790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791 (eval $ac_compile) 2>conftest.er1
14792 ac_status=$?
14793 grep -v '^ *+' conftest.er1 >conftest.err
14794 rm -f conftest.er1
14795 cat conftest.err >&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } &&
14798 { ac_try='test -z "$ac_c_werror_flag"
14799 || test ! -s conftest.err'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; } &&
14805 { ac_try='test -s conftest.$ac_objext'
14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807 (eval $ac_try) 2>&5
14808 ac_status=$?
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; }; then
14811 ac_cv_type_short=yes
14812else
14813 echo "$as_me: failed program was:" >&5
14814sed 's/^/| /' conftest.$ac_ext >&5
14815
14816ac_cv_type_short=no
14817fi
14818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14819fi
14820echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14821echo "${ECHO_T}$ac_cv_type_short" >&6
14822
14823echo "$as_me:$LINENO: checking size of short" >&5
14824echo $ECHO_N "checking size of short... $ECHO_C" >&6
14825if test "${ac_cv_sizeof_short+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14827else
14828 if test "$ac_cv_type_short" = yes; then
14829 # The cast to unsigned long works around a bug in the HP C Compiler
14830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14832 # This bug is HP SR number 8606223364.
14833 if test "$cross_compiling" = yes; then
14834 # Depending upon the size, compute the lo and hi bounds.
14835cat >conftest.$ac_ext <<_ACEOF
14836/* confdefs.h. */
14837_ACEOF
14838cat confdefs.h >>conftest.$ac_ext
14839cat >>conftest.$ac_ext <<_ACEOF
14840/* end confdefs.h. */
14841$ac_includes_default
14842int
14843main ()
14844{
14845static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14846test_array [0] = 0
14847
14848 ;
14849 return 0;
14850}
14851_ACEOF
14852rm -f conftest.$ac_objext
14853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>conftest.er1
14855 ac_status=$?
14856 grep -v '^ *+' conftest.er1 >conftest.err
14857 rm -f conftest.er1
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } &&
14861 { ac_try='test -z "$ac_c_werror_flag"
14862 || test ! -s conftest.err'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 ac_lo=0 ac_mid=0
14875 while :; do
14876 cat >conftest.$ac_ext <<_ACEOF
14877/* confdefs.h. */
14878_ACEOF
14879cat confdefs.h >>conftest.$ac_ext
14880cat >>conftest.$ac_ext <<_ACEOF
14881/* end confdefs.h. */
14882$ac_includes_default
14883int
14884main ()
14885{
14886static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14887test_array [0] = 0
14888
14889 ;
14890 return 0;
14891}
14892_ACEOF
14893rm -f conftest.$ac_objext
14894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14895 (eval $ac_compile) 2>conftest.er1
14896 ac_status=$?
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } &&
14902 { ac_try='test -z "$ac_c_werror_flag"
14903 || test ! -s conftest.err'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; } &&
14909 { ac_try='test -s conftest.$ac_objext'
14910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14912 ac_status=$?
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 ac_hi=$ac_mid; break
14916else
14917 echo "$as_me: failed program was:" >&5
14918sed 's/^/| /' conftest.$ac_ext >&5
14919
14920ac_lo=`expr $ac_mid + 1`
14921 if test $ac_lo -le $ac_mid; then
14922 ac_lo= ac_hi=
14923 break
14924 fi
14925 ac_mid=`expr 2 '*' $ac_mid + 1`
14926fi
14927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14928 done
14929else
14930 echo "$as_me: failed program was:" >&5
14931sed 's/^/| /' conftest.$ac_ext >&5
14932
14933cat >conftest.$ac_ext <<_ACEOF
14934/* confdefs.h. */
14935_ACEOF
14936cat confdefs.h >>conftest.$ac_ext
14937cat >>conftest.$ac_ext <<_ACEOF
14938/* end confdefs.h. */
14939$ac_includes_default
14940int
14941main ()
14942{
14943static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14944test_array [0] = 0
14945
14946 ;
14947 return 0;
14948}
14949_ACEOF
14950rm -f conftest.$ac_objext
14951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14952 (eval $ac_compile) 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_c_werror_flag"
14960 || test ! -s conftest.err'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; } &&
14966 { ac_try='test -s conftest.$ac_objext'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972 ac_hi=-1 ac_mid=-1
14973 while :; do
14974 cat >conftest.$ac_ext <<_ACEOF
14975/* confdefs.h. */
14976_ACEOF
14977cat confdefs.h >>conftest.$ac_ext
14978cat >>conftest.$ac_ext <<_ACEOF
14979/* end confdefs.h. */
14980$ac_includes_default
14981int
14982main ()
14983{
14984static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14985test_array [0] = 0
14986
14987 ;
14988 return 0;
14989}
14990_ACEOF
14991rm -f conftest.$ac_objext
14992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14993 (eval $ac_compile) 2>conftest.er1
14994 ac_status=$?
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } &&
15000 { ac_try='test -z "$ac_c_werror_flag"
15001 || test ! -s conftest.err'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try='test -s conftest.$ac_objext'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; }; then
15013 ac_lo=$ac_mid; break
15014else
15015 echo "$as_me: failed program was:" >&5
15016sed 's/^/| /' conftest.$ac_ext >&5
15017
15018ac_hi=`expr '(' $ac_mid ')' - 1`
15019 if test $ac_mid -le $ac_hi; then
15020 ac_lo= ac_hi=
15021 break
15022 fi
15023 ac_mid=`expr 2 '*' $ac_mid`
15024fi
15025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15026 done
15027else
15028 echo "$as_me: failed program was:" >&5
15029sed 's/^/| /' conftest.$ac_ext >&5
15030
15031ac_lo= ac_hi=
15032fi
15033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15034fi
15035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15036# Binary search between lo and hi bounds.
15037while test "x$ac_lo" != "x$ac_hi"; do
15038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15039 cat >conftest.$ac_ext <<_ACEOF
15040/* confdefs.h. */
15041_ACEOF
15042cat confdefs.h >>conftest.$ac_ext
15043cat >>conftest.$ac_ext <<_ACEOF
15044/* end confdefs.h. */
15045$ac_includes_default
15046int
15047main ()
15048{
15049static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15050test_array [0] = 0
15051
15052 ;
15053 return 0;
15054}
15055_ACEOF
15056rm -f conftest.$ac_objext
15057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058 (eval $ac_compile) 2>conftest.er1
15059 ac_status=$?
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
15065 { ac_try='test -z "$ac_c_werror_flag"
15066 || test ! -s conftest.err'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest.$ac_objext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_hi=$ac_mid
15079else
15080 echo "$as_me: failed program was:" >&5
15081sed 's/^/| /' conftest.$ac_ext >&5
15082
15083ac_lo=`expr '(' $ac_mid ')' + 1`
15084fi
15085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15086done
15087case $ac_lo in
15088?*) ac_cv_sizeof_short=$ac_lo;;
15089'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15090See \`config.log' for more details." >&5
15091echo "$as_me: error: cannot compute sizeof (short), 77
15092See \`config.log' for more details." >&2;}
15093 { (exit 1); exit 1; }; } ;;
15094esac
15095else
15096 if test "$cross_compiling" = yes; then
15097 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15098See \`config.log' for more details." >&5
15099echo "$as_me: error: cannot run test program while cross compiling
15100See \`config.log' for more details." >&2;}
15101 { (exit 1); exit 1; }; }
15102else
15103 cat >conftest.$ac_ext <<_ACEOF
15104/* confdefs.h. */
15105_ACEOF
15106cat confdefs.h >>conftest.$ac_ext
15107cat >>conftest.$ac_ext <<_ACEOF
15108/* end confdefs.h. */
15109$ac_includes_default
15110long longval () { return (long) (sizeof (short)); }
15111unsigned long ulongval () { return (long) (sizeof (short)); }
15112#include <stdio.h>
15113#include <stdlib.h>
15114int
15115main ()
15116{
15117
15118 FILE *f = fopen ("conftest.val", "w");
15119 if (! f)
15120 exit (1);
15121 if (((long) (sizeof (short))) < 0)
15122 {
15123 long i = longval ();
15124 if (i != ((long) (sizeof (short))))
15125 exit (1);
15126 fprintf (f, "%ld\n", i);
15127 }
15128 else
15129 {
15130 unsigned long i = ulongval ();
15131 if (i != ((long) (sizeof (short))))
15132 exit (1);
15133 fprintf (f, "%lu\n", i);
15134 }
15135 exit (ferror (f) || fclose (f) != 0);
15136
15137 ;
15138 return 0;
15139}
15140_ACEOF
15141rm -f conftest$ac_exeext
15142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15143 (eval $ac_link) 2>&5
15144 ac_status=$?
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 ac_cv_sizeof_short=`cat conftest.val`
15153else
15154 echo "$as_me: program exited with status $ac_status" >&5
15155echo "$as_me: failed program was:" >&5
15156sed 's/^/| /' conftest.$ac_ext >&5
15157
15158( exit $ac_status )
15159{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15160See \`config.log' for more details." >&5
15161echo "$as_me: error: cannot compute sizeof (short), 77
15162See \`config.log' for more details." >&2;}
15163 { (exit 1); exit 1; }; }
15164fi
15165rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15166fi
15167fi
15168rm -f conftest.val
15169else
15170 ac_cv_sizeof_short=0
15171fi
15172fi
15173echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15174echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15175cat >>confdefs.h <<_ACEOF
15176#define SIZEOF_SHORT $ac_cv_sizeof_short
15177_ACEOF
15178
15179
15180 echo "$as_me:$LINENO: checking for char" >&5
15181echo $ECHO_N "checking for char... $ECHO_C" >&6
15182if test "${ac_cv_type_char+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184else
15185 cat >conftest.$ac_ext <<_ACEOF
15186/* confdefs.h. */
15187_ACEOF
15188cat confdefs.h >>conftest.$ac_ext
15189cat >>conftest.$ac_ext <<_ACEOF
15190/* end confdefs.h. */
15191$ac_includes_default
15192int
15193main ()
15194{
15195if ((char *) 0)
15196 return 0;
15197if (sizeof (char))
15198 return 0;
15199 ;
15200 return 0;
15201}
15202_ACEOF
15203rm -f conftest.$ac_objext
15204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15205 (eval $ac_compile) 2>conftest.er1
15206 ac_status=$?
15207 grep -v '^ *+' conftest.er1 >conftest.err
15208 rm -f conftest.er1
15209 cat conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } &&
15212 { ac_try='test -z "$ac_c_werror_flag"
15213 || test ! -s conftest.err'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; } &&
15219 { ac_try='test -s conftest.$ac_objext'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }; then
15225 ac_cv_type_char=yes
15226else
15227 echo "$as_me: failed program was:" >&5
15228sed 's/^/| /' conftest.$ac_ext >&5
15229
15230ac_cv_type_char=no
15231fi
15232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15233fi
15234echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15235echo "${ECHO_T}$ac_cv_type_char" >&6
15236
15237echo "$as_me:$LINENO: checking size of char" >&5
15238echo $ECHO_N "checking size of char... $ECHO_C" >&6
15239if test "${ac_cv_sizeof_char+set}" = set; then
15240 echo $ECHO_N "(cached) $ECHO_C" >&6
15241else
15242 if test "$ac_cv_type_char" = yes; then
15243 # The cast to unsigned long works around a bug in the HP C Compiler
15244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15246 # This bug is HP SR number 8606223364.
15247 if test "$cross_compiling" = yes; then
15248 # Depending upon the size, compute the lo and hi bounds.
15249cat >conftest.$ac_ext <<_ACEOF
15250/* confdefs.h. */
15251_ACEOF
15252cat confdefs.h >>conftest.$ac_ext
15253cat >>conftest.$ac_ext <<_ACEOF
15254/* end confdefs.h. */
15255$ac_includes_default
15256int
15257main ()
15258{
15259static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15260test_array [0] = 0
15261
15262 ;
15263 return 0;
15264}
15265_ACEOF
15266rm -f conftest.$ac_objext
15267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15268 (eval $ac_compile) 2>conftest.er1
15269 ac_status=$?
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } &&
15275 { ac_try='test -z "$ac_c_werror_flag"
15276 || test ! -s conftest.err'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; } &&
15282 { ac_try='test -s conftest.$ac_objext'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15288 ac_lo=0 ac_mid=0
15289 while :; do
15290 cat >conftest.$ac_ext <<_ACEOF
15291/* confdefs.h. */
15292_ACEOF
15293cat confdefs.h >>conftest.$ac_ext
15294cat >>conftest.$ac_ext <<_ACEOF
15295/* end confdefs.h. */
15296$ac_includes_default
15297int
15298main ()
15299{
15300static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15301test_array [0] = 0
15302
15303 ;
15304 return 0;
15305}
15306_ACEOF
15307rm -f conftest.$ac_objext
15308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15309 (eval $ac_compile) 2>conftest.er1
15310 ac_status=$?
15311 grep -v '^ *+' conftest.er1 >conftest.err
15312 rm -f conftest.er1
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } &&
15316 { ac_try='test -z "$ac_c_werror_flag"
15317 || test ! -s conftest.err'
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; } &&
15323 { ac_try='test -s conftest.$ac_objext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 ac_hi=$ac_mid; break
15330else
15331 echo "$as_me: failed program was:" >&5
15332sed 's/^/| /' conftest.$ac_ext >&5
15333
15334ac_lo=`expr $ac_mid + 1`
15335 if test $ac_lo -le $ac_mid; then
15336 ac_lo= ac_hi=
15337 break
15338 fi
15339 ac_mid=`expr 2 '*' $ac_mid + 1`
15340fi
15341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15342 done
15343else
15344 echo "$as_me: failed program was:" >&5
15345sed 's/^/| /' conftest.$ac_ext >&5
15346
15347cat >conftest.$ac_ext <<_ACEOF
15348/* confdefs.h. */
15349_ACEOF
15350cat confdefs.h >>conftest.$ac_ext
15351cat >>conftest.$ac_ext <<_ACEOF
15352/* end confdefs.h. */
15353$ac_includes_default
15354int
15355main ()
15356{
15357static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15358test_array [0] = 0
15359
15360 ;
15361 return 0;
15362}
15363_ACEOF
15364rm -f conftest.$ac_objext
15365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15366 (eval $ac_compile) 2>conftest.er1
15367 ac_status=$?
15368 grep -v '^ *+' conftest.er1 >conftest.err
15369 rm -f conftest.er1
15370 cat conftest.err >&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); } &&
15373 { ac_try='test -z "$ac_c_werror_flag"
15374 || test ! -s conftest.err'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; } &&
15380 { ac_try='test -s conftest.$ac_objext'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15386 ac_hi=-1 ac_mid=-1
15387 while :; do
15388 cat >conftest.$ac_ext <<_ACEOF
15389/* confdefs.h. */
15390_ACEOF
15391cat confdefs.h >>conftest.$ac_ext
15392cat >>conftest.$ac_ext <<_ACEOF
15393/* end confdefs.h. */
15394$ac_includes_default
15395int
15396main ()
15397{
15398static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15399test_array [0] = 0
15400
15401 ;
15402 return 0;
15403}
15404_ACEOF
15405rm -f conftest.$ac_objext
15406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15407 (eval $ac_compile) 2>conftest.er1
15408 ac_status=$?
15409 grep -v '^ *+' conftest.er1 >conftest.err
15410 rm -f conftest.er1
15411 cat conftest.err >&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
15414 { ac_try='test -z "$ac_c_werror_flag"
15415 || test ! -s conftest.err'
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15418 ac_status=$?
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; } &&
15421 { ac_try='test -s conftest.$ac_objext'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15424 ac_status=$?
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; }; then
15427 ac_lo=$ac_mid; break
15428else
15429 echo "$as_me: failed program was:" >&5
15430sed 's/^/| /' conftest.$ac_ext >&5
15431
15432ac_hi=`expr '(' $ac_mid ')' - 1`
15433 if test $ac_mid -le $ac_hi; then
15434 ac_lo= ac_hi=
15435 break
15436 fi
15437 ac_mid=`expr 2 '*' $ac_mid`
15438fi
15439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15440 done
15441else
15442 echo "$as_me: failed program was:" >&5
15443sed 's/^/| /' conftest.$ac_ext >&5
15444
15445ac_lo= ac_hi=
15446fi
15447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15448fi
15449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15450# Binary search between lo and hi bounds.
15451while test "x$ac_lo" != "x$ac_hi"; do
15452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15453 cat >conftest.$ac_ext <<_ACEOF
15454/* confdefs.h. */
15455_ACEOF
15456cat confdefs.h >>conftest.$ac_ext
15457cat >>conftest.$ac_ext <<_ACEOF
15458/* end confdefs.h. */
15459$ac_includes_default
15460int
15461main ()
15462{
15463static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15464test_array [0] = 0
15465
15466 ;
15467 return 0;
15468}
15469_ACEOF
15470rm -f conftest.$ac_objext
15471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15472 (eval $ac_compile) 2>conftest.er1
15473 ac_status=$?
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
15479 { ac_try='test -z "$ac_c_werror_flag"
15480 || test ! -s conftest.err'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; } &&
15486 { ac_try='test -s conftest.$ac_objext'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15492 ac_hi=$ac_mid
15493else
15494 echo "$as_me: failed program was:" >&5
15495sed 's/^/| /' conftest.$ac_ext >&5
15496
15497ac_lo=`expr '(' $ac_mid ')' + 1`
15498fi
15499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15500done
15501case $ac_lo in
15502?*) ac_cv_sizeof_char=$ac_lo;;
15503'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15504See \`config.log' for more details." >&5
15505echo "$as_me: error: cannot compute sizeof (char), 77
15506See \`config.log' for more details." >&2;}
15507 { (exit 1); exit 1; }; } ;;
15508esac
15509else
15510 if test "$cross_compiling" = yes; then
15511 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15512See \`config.log' for more details." >&5
15513echo "$as_me: error: cannot run test program while cross compiling
15514See \`config.log' for more details." >&2;}
15515 { (exit 1); exit 1; }; }
15516else
15517 cat >conftest.$ac_ext <<_ACEOF
15518/* confdefs.h. */
15519_ACEOF
15520cat confdefs.h >>conftest.$ac_ext
15521cat >>conftest.$ac_ext <<_ACEOF
15522/* end confdefs.h. */
15523$ac_includes_default
15524long longval () { return (long) (sizeof (char)); }
15525unsigned long ulongval () { return (long) (sizeof (char)); }
15526#include <stdio.h>
15527#include <stdlib.h>
15528int
15529main ()
15530{
15531
15532 FILE *f = fopen ("conftest.val", "w");
15533 if (! f)
15534 exit (1);
15535 if (((long) (sizeof (char))) < 0)
15536 {
15537 long i = longval ();
15538 if (i != ((long) (sizeof (char))))
15539 exit (1);
15540 fprintf (f, "%ld\n", i);
15541 }
15542 else
15543 {
15544 unsigned long i = ulongval ();
15545 if (i != ((long) (sizeof (char))))
15546 exit (1);
15547 fprintf (f, "%lu\n", i);
15548 }
15549 exit (ferror (f) || fclose (f) != 0);
15550
15551 ;
15552 return 0;
15553}
15554_ACEOF
15555rm -f conftest$ac_exeext
15556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15557 (eval $ac_link) 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15566 ac_cv_sizeof_char=`cat conftest.val`
15567else
15568 echo "$as_me: program exited with status $ac_status" >&5
15569echo "$as_me: failed program was:" >&5
15570sed 's/^/| /' conftest.$ac_ext >&5
15571
15572( exit $ac_status )
15573{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15574See \`config.log' for more details." >&5
15575echo "$as_me: error: cannot compute sizeof (char), 77
15576See \`config.log' for more details." >&2;}
15577 { (exit 1); exit 1; }; }
15578fi
15579rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15580fi
15581fi
15582rm -f conftest.val
15583else
15584 ac_cv_sizeof_char=0
15585fi
15586fi
15587echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15588echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15589cat >>confdefs.h <<_ACEOF
15590#define SIZEOF_CHAR $ac_cv_sizeof_char
15591_ACEOF
15592
15593
15594
15595 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15596echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15597 case "$ac_cv_sizeof_char" in
15598 1) acx_cv_type_int8_t=char ;;
15599 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15600echo "$as_me: error: no 8-bit type" >&2;}
15601 { (exit please report a bug); exit please report a bug; }; }
15602 esac
15603 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15604echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15605
15606 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15607echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15608 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15609 2:*) acx_cv_type_int16_t=int ;;
15610 *:2) acx_cv_type_int16_t=short ;;
15611 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15612echo "$as_me: error: no 16-bit type" >&2;}
15613 { (exit please report a bug); exit please report a bug; }; }
15614 esac
15615 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15616echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15617
15618 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15619echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15620 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15621 4:*) acx_cv_type_int32_t=int ;;
15622 *:4) acx_cv_type_int32_t=long ;;
15623 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15624echo "$as_me: error: no 32-bit type" >&2;}
15625 { (exit please report a bug); exit please report a bug; }; }
15626 esac
15627 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15628echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15629fi
15630
15631# These tests are here to make the output prettier
15632
15633if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15634 case "$ac_cv_sizeof_long" in
15635 8) acx_cv_type_int64_t=long ;;
15636 esac
15637 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15638echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15639 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15640echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15641fi
15642
15643# Now we can use the above types
15644
15645if test "$ac_cv_type_uintptr_t" != yes; then
15646 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15647echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15648 case $ac_cv_sizeof_void_p in
15649 2) acx_cv_type_intptr_t=int16_t ;;
15650 4) acx_cv_type_intptr_t=int32_t ;;
15651 8) acx_cv_type_intptr_t=int64_t ;;
15652 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15653echo "$as_me: error: no equivalent for intptr_t" >&2;}
15654 { (exit please report a bug); exit please report a bug; }; }
15655 esac
15656 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15657echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15658fi
15659
15660# ----------------- done all checks, emit header -------------
15661 ac_config_commands="$ac_config_commands bfd_stdint.h"
15662
15663
15664
2ba49b59
KC
15665echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15666echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15667if test "${ac_cv_header_time+set}" = set; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15669else
15670 cat >conftest.$ac_ext <<_ACEOF
15671/* confdefs.h. */
15672_ACEOF
15673cat confdefs.h >>conftest.$ac_ext
15674cat >>conftest.$ac_ext <<_ACEOF
15675/* end confdefs.h. */
15676#include <sys/types.h>
15677#include <sys/time.h>
15678#include <time.h>
15679
15680int
15681main ()
15682{
15683if ((struct tm *) 0)
15684return 0;
15685 ;
15686 return 0;
15687}
15688_ACEOF
15689rm -f conftest.$ac_objext
15690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15691 (eval $ac_compile) 2>conftest.er1
15692 ac_status=$?
15693 grep -v '^ *+' conftest.er1 >conftest.err
15694 rm -f conftest.er1
15695 cat conftest.err >&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } &&
49c96104
SE
15698 { ac_try='test -z "$ac_c_werror_flag"
15699 || test ! -s conftest.err'
2ba49b59
KC
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15702 ac_status=$?
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; } &&
15705 { ac_try='test -s conftest.$ac_objext'
15706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707 (eval $ac_try) 2>&5
15708 ac_status=$?
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; }; then
15711 ac_cv_header_time=yes
15712else
15713 echo "$as_me: failed program was:" >&5
15714sed 's/^/| /' conftest.$ac_ext >&5
15715
15716ac_cv_header_time=no
15717fi
15718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15719fi
15720echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15721echo "${ECHO_T}$ac_cv_header_time" >&6
15722if test $ac_cv_header_time = yes; then
15723
15724cat >>confdefs.h <<\_ACEOF
15725#define TIME_WITH_SYS_TIME 1
15726_ACEOF
15727
15728fi
15729
15730
15731
15732
15733
15734
15735ac_header_dirent=no
15736for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15737 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15738echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15739echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15740if eval "test \"\${$as_ac_Header+set}\" = set"; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742else
15743 cat >conftest.$ac_ext <<_ACEOF
15744/* confdefs.h. */
15745_ACEOF
15746cat confdefs.h >>conftest.$ac_ext
15747cat >>conftest.$ac_ext <<_ACEOF
15748/* end confdefs.h. */
15749#include <sys/types.h>
15750#include <$ac_hdr>
15751
15752int
15753main ()
15754{
15755if ((DIR *) 0)
15756return 0;
15757 ;
15758 return 0;
15759}
15760_ACEOF
15761rm -f conftest.$ac_objext
15762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15763 (eval $ac_compile) 2>conftest.er1
15764 ac_status=$?
15765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
49c96104
SE
15770 { ac_try='test -z "$ac_c_werror_flag"
15771 || test ! -s conftest.err'
2ba49b59
KC
15772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15773 (eval $ac_try) 2>&5
15774 ac_status=$?
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); }; } &&
15777 { ac_try='test -s conftest.$ac_objext'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15780 ac_status=$?
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; }; then
15783 eval "$as_ac_Header=yes"
15784else
15785 echo "$as_me: failed program was:" >&5
15786sed 's/^/| /' conftest.$ac_ext >&5
15787
15788eval "$as_ac_Header=no"
15789fi
15790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15791fi
15792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15794if test `eval echo '${'$as_ac_Header'}'` = yes; then
15795 cat >>confdefs.h <<_ACEOF
15796#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15797_ACEOF
15798
15799ac_header_dirent=$ac_hdr; break
15800fi
15801
15802done
15803# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15804if test $ac_header_dirent = dirent.h; then
15805 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15806echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15807if test "${ac_cv_search_opendir+set}" = set; then
15808 echo $ECHO_N "(cached) $ECHO_C" >&6
15809else
15810 ac_func_search_save_LIBS=$LIBS
15811ac_cv_search_opendir=no
15812cat >conftest.$ac_ext <<_ACEOF
15813/* confdefs.h. */
15814_ACEOF
15815cat confdefs.h >>conftest.$ac_ext
15816cat >>conftest.$ac_ext <<_ACEOF
15817/* end confdefs.h. */
15818
15819/* Override any gcc2 internal prototype to avoid an error. */
15820#ifdef __cplusplus
15821extern "C"
15822#endif
15823/* We use char because int might match the return type of a gcc2
15824 builtin and then its argument prototype would still apply. */
15825char opendir ();
15826int
15827main ()
15828{
15829opendir ();
15830 ;
15831 return 0;
15832}
15833_ACEOF
15834rm -f conftest.$ac_objext conftest$ac_exeext
15835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15836 (eval $ac_link) 2>conftest.er1
15837 ac_status=$?
15838 grep -v '^ *+' conftest.er1 >conftest.err
15839 rm -f conftest.er1
15840 cat conftest.err >&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
49c96104
SE
15843 { ac_try='test -z "$ac_c_werror_flag"
15844 || test ! -s conftest.err'
2ba49b59
KC
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; } &&
15850 { ac_try='test -s conftest$ac_exeext'
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 ac_cv_search_opendir="none required"
15857else
15858 echo "$as_me: failed program was:" >&5
15859sed 's/^/| /' conftest.$ac_ext >&5
15860
15861fi
15862rm -f conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15864if test "$ac_cv_search_opendir" = no; then
15865 for ac_lib in dir; do
15866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15867 cat >conftest.$ac_ext <<_ACEOF
15868/* confdefs.h. */
15869_ACEOF
15870cat confdefs.h >>conftest.$ac_ext
15871cat >>conftest.$ac_ext <<_ACEOF
15872/* end confdefs.h. */
15873
15874/* Override any gcc2 internal prototype to avoid an error. */
15875#ifdef __cplusplus
15876extern "C"
15877#endif
15878/* We use char because int might match the return type of a gcc2
15879 builtin and then its argument prototype would still apply. */
15880char opendir ();
15881int
15882main ()
15883{
15884opendir ();
15885 ;
15886 return 0;
15887}
15888_ACEOF
15889rm -f conftest.$ac_objext conftest$ac_exeext
15890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15891 (eval $ac_link) 2>conftest.er1
15892 ac_status=$?
15893 grep -v '^ *+' conftest.er1 >conftest.err
15894 rm -f conftest.er1
15895 cat conftest.err >&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } &&
49c96104
SE
15898 { ac_try='test -z "$ac_c_werror_flag"
15899 || test ! -s conftest.err'
2ba49b59
KC
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; } &&
15905 { ac_try='test -s conftest$ac_exeext'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; }; then
15911 ac_cv_search_opendir="-l$ac_lib"
15912break
15913else
15914 echo "$as_me: failed program was:" >&5
15915sed 's/^/| /' conftest.$ac_ext >&5
15916
15917fi
15918rm -f conftest.err conftest.$ac_objext \
15919 conftest$ac_exeext conftest.$ac_ext
15920 done
15921fi
15922LIBS=$ac_func_search_save_LIBS
15923fi
15924echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15925echo "${ECHO_T}$ac_cv_search_opendir" >&6
15926if test "$ac_cv_search_opendir" != no; then
15927 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15928
15929fi
15930
15931else
15932 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15933echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15934if test "${ac_cv_search_opendir+set}" = set; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15936else
15937 ac_func_search_save_LIBS=$LIBS
15938ac_cv_search_opendir=no
15939cat >conftest.$ac_ext <<_ACEOF
15940/* confdefs.h. */
15941_ACEOF
15942cat confdefs.h >>conftest.$ac_ext
15943cat >>conftest.$ac_ext <<_ACEOF
15944/* end confdefs.h. */
15945
15946/* Override any gcc2 internal prototype to avoid an error. */
15947#ifdef __cplusplus
15948extern "C"
15949#endif
15950/* We use char because int might match the return type of a gcc2
15951 builtin and then its argument prototype would still apply. */
15952char opendir ();
15953int
15954main ()
15955{
15956opendir ();
15957 ;
15958 return 0;
15959}
15960_ACEOF
15961rm -f conftest.$ac_objext conftest$ac_exeext
15962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15963 (eval $ac_link) 2>conftest.er1
15964 ac_status=$?
15965 grep -v '^ *+' conftest.er1 >conftest.err
15966 rm -f conftest.er1
15967 cat conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } &&
49c96104
SE
15970 { ac_try='test -z "$ac_c_werror_flag"
15971 || test ! -s conftest.err'
2ba49b59
KC
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; } &&
15977 { ac_try='test -s conftest$ac_exeext'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15980 ac_status=$?
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
15983 ac_cv_search_opendir="none required"
15984else
15985 echo "$as_me: failed program was:" >&5
15986sed 's/^/| /' conftest.$ac_ext >&5
15987
15988fi
15989rm -f conftest.err conftest.$ac_objext \
15990 conftest$ac_exeext conftest.$ac_ext
15991if test "$ac_cv_search_opendir" = no; then
15992 for ac_lib in x; do
15993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15994 cat >conftest.$ac_ext <<_ACEOF
15995/* confdefs.h. */
15996_ACEOF
15997cat confdefs.h >>conftest.$ac_ext
15998cat >>conftest.$ac_ext <<_ACEOF
15999/* end confdefs.h. */
16000
16001/* Override any gcc2 internal prototype to avoid an error. */
16002#ifdef __cplusplus
16003extern "C"
16004#endif
16005/* We use char because int might match the return type of a gcc2
16006 builtin and then its argument prototype would still apply. */
16007char opendir ();
16008int
16009main ()
16010{
16011opendir ();
16012 ;
16013 return 0;
16014}
16015_ACEOF
16016rm -f conftest.$ac_objext conftest$ac_exeext
16017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16018 (eval $ac_link) 2>conftest.er1
16019 ac_status=$?
16020 grep -v '^ *+' conftest.er1 >conftest.err
16021 rm -f conftest.er1
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
49c96104
SE
16025 { ac_try='test -z "$ac_c_werror_flag"
16026 || test ! -s conftest.err'
2ba49b59
KC
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; } &&
16032 { ac_try='test -s conftest$ac_exeext'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_cv_search_opendir="-l$ac_lib"
16039break
16040else
16041 echo "$as_me: failed program was:" >&5
16042sed 's/^/| /' conftest.$ac_ext >&5
16043
16044fi
16045rm -f conftest.err conftest.$ac_objext \
16046 conftest$ac_exeext conftest.$ac_ext
16047 done
16048fi
16049LIBS=$ac_func_search_save_LIBS
16050fi
16051echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16052echo "${ECHO_T}$ac_cv_search_opendir" >&6
16053if test "$ac_cv_search_opendir" != no; then
16054 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16055
16056fi
16057
16058fi
16059
16060echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16061echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16062if test "${gcc_cv_header_string+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16064else
16065 cat >conftest.$ac_ext <<_ACEOF
16066/* confdefs.h. */
16067_ACEOF
16068cat confdefs.h >>conftest.$ac_ext
16069cat >>conftest.$ac_ext <<_ACEOF
16070/* end confdefs.h. */
16071#include <string.h>
16072#include <strings.h>
16073int
16074main ()
16075{
16076
16077 ;
16078 return 0;
16079}
16080_ACEOF
16081rm -f conftest.$ac_objext
16082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083 (eval $ac_compile) 2>conftest.er1
16084 ac_status=$?
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
49c96104
SE
16090 { ac_try='test -z "$ac_c_werror_flag"
16091 || test ! -s conftest.err'
2ba49b59
KC
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; } &&
16097 { ac_try='test -s conftest.$ac_objext'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103 gcc_cv_header_string=yes
16104else
16105 echo "$as_me: failed program was:" >&5
16106sed 's/^/| /' conftest.$ac_ext >&5
16107
16108gcc_cv_header_string=no
16109fi
16110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16111fi
16112echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16113echo "${ECHO_T}$gcc_cv_header_string" >&6
16114if test $gcc_cv_header_string = yes; then
16115
16116cat >>confdefs.h <<\_ACEOF
16117#define STRING_WITH_STRINGS 1
16118_ACEOF
16119
2e0fbf77
JW
16120fi
16121
5464f5a1
NN
16122
16123
16124
16125
16126
16127
16128
633fd09f 16129for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 16130do
5464f5a1
NN
16131as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16132echo "$as_me:$LINENO: checking for $ac_func" >&5
16133echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16134if eval "test \"\${$as_ac_var+set}\" = set"; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136else
16137 cat >conftest.$ac_ext <<_ACEOF
16138/* confdefs.h. */
16139_ACEOF
16140cat confdefs.h >>conftest.$ac_ext
16141cat >>conftest.$ac_ext <<_ACEOF
16142/* end confdefs.h. */
16143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16145#define $ac_func innocuous_$ac_func
16146
252b5132 16147/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
16148 which can conflict with char $ac_func (); below.
16149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16150 <limits.h> exists even on freestanding compilers. */
16151
16152#ifdef __STDC__
16153# include <limits.h>
16154#else
16155# include <assert.h>
16156#endif
6be7c12c 16157
5464f5a1 16158#undef $ac_func
252b5132 16159
5464f5a1
NN
16160/* Override any gcc2 internal prototype to avoid an error. */
16161#ifdef __cplusplus
16162extern "C"
16163{
16164#endif
16165/* We use char because int might match the return type of a gcc2
16166 builtin and then its argument prototype would still apply. */
16167char $ac_func ();
252b5132
RH
16168/* The GNU C library defines this for functions which it implements
16169 to always fail with ENOSYS. Some functions are actually named
16170 something starting with __ and the normal name is an alias. */
16171#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16172choke me
16173#else
5464f5a1
NN
16174char (*f) () = $ac_func;
16175#endif
16176#ifdef __cplusplus
16177}
252b5132
RH
16178#endif
16179
5464f5a1
NN
16180int
16181main ()
16182{
16183return f != $ac_func;
16184 ;
16185 return 0;
16186}
16187_ACEOF
16188rm -f conftest.$ac_objext conftest$ac_exeext
16189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16190 (eval $ac_link) 2>conftest.er1
16191 ac_status=$?
16192 grep -v '^ *+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
49c96104
SE
16197 { ac_try='test -z "$ac_c_werror_flag"
16198 || test ! -s conftest.err'
5464f5a1
NN
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest$ac_exeext'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 eval "$as_ac_var=yes"
16211else
16212 echo "$as_me: failed program was:" >&5
16213sed 's/^/| /' conftest.$ac_ext >&5
16214
16215eval "$as_ac_var=no"
16216fi
16217rm -f conftest.err conftest.$ac_objext \
16218 conftest$ac_exeext conftest.$ac_ext
16219fi
16220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16221echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16222if test `eval echo '${'$as_ac_var'}'` = yes; then
16223 cat >>confdefs.h <<_ACEOF
16224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16225_ACEOF
252b5132 16226
252b5132
RH
16227fi
16228done
16229
5464f5a1 16230
49c97a80
ILT
16231for ac_func in strtoull
16232do
5464f5a1
NN
16233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16234echo "$as_me:$LINENO: checking for $ac_func" >&5
16235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16236if eval "test \"\${$as_ac_var+set}\" = set"; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16238else
16239 cat >conftest.$ac_ext <<_ACEOF
16240/* confdefs.h. */
16241_ACEOF
16242cat confdefs.h >>conftest.$ac_ext
16243cat >>conftest.$ac_ext <<_ACEOF
16244/* end confdefs.h. */
16245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16247#define $ac_func innocuous_$ac_func
16248
49c97a80 16249/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
16250 which can conflict with char $ac_func (); below.
16251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16252 <limits.h> exists even on freestanding compilers. */
16253
16254#ifdef __STDC__
16255# include <limits.h>
16256#else
16257# include <assert.h>
16258#endif
49c97a80 16259
5464f5a1 16260#undef $ac_func
49c97a80 16261
5464f5a1
NN
16262/* Override any gcc2 internal prototype to avoid an error. */
16263#ifdef __cplusplus
16264extern "C"
16265{
16266#endif
16267/* We use char because int might match the return type of a gcc2
16268 builtin and then its argument prototype would still apply. */
16269char $ac_func ();
49c97a80
ILT
16270/* The GNU C library defines this for functions which it implements
16271 to always fail with ENOSYS. Some functions are actually named
16272 something starting with __ and the normal name is an alias. */
16273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16274choke me
16275#else
5464f5a1
NN
16276char (*f) () = $ac_func;
16277#endif
16278#ifdef __cplusplus
16279}
49c97a80
ILT
16280#endif
16281
5464f5a1
NN
16282int
16283main ()
16284{
16285return f != $ac_func;
16286 ;
16287 return 0;
16288}
16289_ACEOF
16290rm -f conftest.$ac_objext conftest$ac_exeext
16291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16292 (eval $ac_link) 2>conftest.er1
16293 ac_status=$?
16294 grep -v '^ *+' conftest.er1 >conftest.err
16295 rm -f conftest.er1
16296 cat conftest.err >&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } &&
49c96104
SE
16299 { ac_try='test -z "$ac_c_werror_flag"
16300 || test ! -s conftest.err'
5464f5a1
NN
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16303 ac_status=$?
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; } &&
16306 { ac_try='test -s conftest$ac_exeext'
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
16312 eval "$as_ac_var=yes"
16313else
16314 echo "$as_me: failed program was:" >&5
16315sed 's/^/| /' conftest.$ac_ext >&5
16316
16317eval "$as_ac_var=no"
16318fi
16319rm -f conftest.err conftest.$ac_objext \
16320 conftest$ac_exeext conftest.$ac_ext
16321fi
16322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16324if test `eval echo '${'$as_ac_var'}'` = yes; then
16325 cat >>confdefs.h <<_ACEOF
16326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16327_ACEOF
49c97a80 16328
49c97a80
ILT
16329fi
16330done
16331
6be7c12c 16332
2e9ebff5
JG
16333echo "$as_me:$LINENO: checking whether basename is declared" >&5
16334echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16335if test "${ac_cv_have_decl_basename+set}" = set; then
16336 echo $ECHO_N "(cached) $ECHO_C" >&6
16337else
16338 cat >conftest.$ac_ext <<_ACEOF
16339/* confdefs.h. */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h. */
ec7b76fe 16344$ac_includes_default
2e9ebff5
JG
16345int
16346main ()
16347{
16348#ifndef basename
16349 char *p = (char *) basename;
16350#endif
16351
16352 ;
16353 return 0;
16354}
16355_ACEOF
16356rm -f conftest.$ac_objext
16357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16358 (eval $ac_compile) 2>conftest.er1
16359 ac_status=$?
16360 grep -v '^ *+' conftest.er1 >conftest.err
16361 rm -f conftest.er1
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } &&
49c96104
SE
16365 { ac_try='test -z "$ac_c_werror_flag"
16366 || test ! -s conftest.err'
2e9ebff5
JG
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; } &&
16372 { ac_try='test -s conftest.$ac_objext'
16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 ac_cv_have_decl_basename=yes
16379else
16380 echo "$as_me: failed program was:" >&5
16381sed 's/^/| /' conftest.$ac_ext >&5
16382
16383ac_cv_have_decl_basename=no
16384fi
16385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16386fi
16387echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16388echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16389if test $ac_cv_have_decl_basename = yes; then
16390
16391cat >>confdefs.h <<_ACEOF
16392#define HAVE_DECL_BASENAME 1
16393_ACEOF
16394
16395
16396else
16397 cat >>confdefs.h <<_ACEOF
16398#define HAVE_DECL_BASENAME 0
16399_ACEOF
16400
16401
16402fi
16403
16404
ec7b76fe
JG
16405echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16406echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16407if test "${ac_cv_have_decl_ftello+set}" = set; then
16408 echo $ECHO_N "(cached) $ECHO_C" >&6
16409else
16410 cat >conftest.$ac_ext <<_ACEOF
16411/* confdefs.h. */
16412_ACEOF
16413cat confdefs.h >>conftest.$ac_ext
16414cat >>conftest.$ac_ext <<_ACEOF
16415/* end confdefs.h. */
16416$ac_includes_default
16417int
16418main ()
16419{
16420#ifndef ftello
16421 char *p = (char *) ftello;
16422#endif
16423
16424 ;
16425 return 0;
16426}
16427_ACEOF
16428rm -f conftest.$ac_objext
16429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16430 (eval $ac_compile) 2>conftest.er1
16431 ac_status=$?
16432 grep -v '^ *+' conftest.er1 >conftest.err
16433 rm -f conftest.er1
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
49c96104
SE
16437 { ac_try='test -z "$ac_c_werror_flag"
16438 || test ! -s conftest.err'
ec7b76fe
JG
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try='test -s conftest.$ac_objext'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450 ac_cv_have_decl_ftello=yes
16451else
16452 echo "$as_me: failed program was:" >&5
16453sed 's/^/| /' conftest.$ac_ext >&5
16454
16455ac_cv_have_decl_ftello=no
16456fi
16457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16458fi
16459echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16460echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16461if test $ac_cv_have_decl_ftello = yes; then
16462
16463cat >>confdefs.h <<_ACEOF
16464#define HAVE_DECL_FTELLO 1
16465_ACEOF
16466
16467
16468else
16469 cat >>confdefs.h <<_ACEOF
16470#define HAVE_DECL_FTELLO 0
16471_ACEOF
16472
16473
16474fi
16475
16476
16477echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16478echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16479if test "${ac_cv_have_decl_ftello64+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16481else
16482 cat >conftest.$ac_ext <<_ACEOF
16483/* confdefs.h. */
16484_ACEOF
16485cat confdefs.h >>conftest.$ac_ext
16486cat >>conftest.$ac_ext <<_ACEOF
16487/* end confdefs.h. */
16488$ac_includes_default
16489int
16490main ()
16491{
16492#ifndef ftello64
16493 char *p = (char *) ftello64;
16494#endif
16495
16496 ;
16497 return 0;
16498}
16499_ACEOF
16500rm -f conftest.$ac_objext
16501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16502 (eval $ac_compile) 2>conftest.er1
16503 ac_status=$?
16504 grep -v '^ *+' conftest.er1 >conftest.err
16505 rm -f conftest.er1
16506 cat conftest.err >&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
49c96104
SE
16509 { ac_try='test -z "$ac_c_werror_flag"
16510 || test ! -s conftest.err'
ec7b76fe
JG
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; } &&
16516 { ac_try='test -s conftest.$ac_objext'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; }; then
16522 ac_cv_have_decl_ftello64=yes
16523else
16524 echo "$as_me: failed program was:" >&5
16525sed 's/^/| /' conftest.$ac_ext >&5
16526
16527ac_cv_have_decl_ftello64=no
16528fi
16529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16530fi
16531echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16532echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16533if test $ac_cv_have_decl_ftello64 = yes; then
16534
16535cat >>confdefs.h <<_ACEOF
16536#define HAVE_DECL_FTELLO64 1
16537_ACEOF
16538
16539
16540else
16541 cat >>confdefs.h <<_ACEOF
16542#define HAVE_DECL_FTELLO64 0
16543_ACEOF
16544
16545
16546fi
16547
16548
16549echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16550echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16551if test "${ac_cv_have_decl_fseeko+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16553else
16554 cat >conftest.$ac_ext <<_ACEOF
16555/* confdefs.h. */
16556_ACEOF
16557cat confdefs.h >>conftest.$ac_ext
16558cat >>conftest.$ac_ext <<_ACEOF
16559/* end confdefs.h. */
16560$ac_includes_default
16561int
16562main ()
16563{
16564#ifndef fseeko
16565 char *p = (char *) fseeko;
16566#endif
16567
16568 ;
16569 return 0;
16570}
16571_ACEOF
16572rm -f conftest.$ac_objext
16573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16574 (eval $ac_compile) 2>conftest.er1
16575 ac_status=$?
16576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -f conftest.er1
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
49c96104
SE
16581 { ac_try='test -z "$ac_c_werror_flag"
16582 || test ! -s conftest.err'
ec7b76fe
JG
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } &&
16588 { ac_try='test -s conftest.$ac_objext'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 ac_cv_have_decl_fseeko=yes
16595else
16596 echo "$as_me: failed program was:" >&5
16597sed 's/^/| /' conftest.$ac_ext >&5
16598
16599ac_cv_have_decl_fseeko=no
16600fi
16601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16602fi
16603echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16604echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16605if test $ac_cv_have_decl_fseeko = yes; then
16606
16607cat >>confdefs.h <<_ACEOF
16608#define HAVE_DECL_FSEEKO 1
16609_ACEOF
16610
16611
16612else
16613 cat >>confdefs.h <<_ACEOF
16614#define HAVE_DECL_FSEEKO 0
16615_ACEOF
16616
16617
16618fi
16619
16620
16621echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16622echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16623if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16625else
16626 cat >conftest.$ac_ext <<_ACEOF
16627/* confdefs.h. */
16628_ACEOF
16629cat confdefs.h >>conftest.$ac_ext
16630cat >>conftest.$ac_ext <<_ACEOF
16631/* end confdefs.h. */
16632$ac_includes_default
16633int
16634main ()
16635{
16636#ifndef fseeko64
16637 char *p = (char *) fseeko64;
16638#endif
16639
16640 ;
16641 return 0;
16642}
16643_ACEOF
16644rm -f conftest.$ac_objext
16645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16646 (eval $ac_compile) 2>conftest.er1
16647 ac_status=$?
16648 grep -v '^ *+' conftest.er1 >conftest.err
16649 rm -f conftest.er1
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } &&
49c96104
SE
16653 { ac_try='test -z "$ac_c_werror_flag"
16654 || test ! -s conftest.err'
ec7b76fe
JG
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; } &&
16660 { ac_try='test -s conftest.$ac_objext'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 ac_cv_have_decl_fseeko64=yes
16667else
16668 echo "$as_me: failed program was:" >&5
16669sed 's/^/| /' conftest.$ac_ext >&5
16670
16671ac_cv_have_decl_fseeko64=no
16672fi
16673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16674fi
16675echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16676echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16677if test $ac_cv_have_decl_fseeko64 = yes; then
16678
16679cat >>confdefs.h <<_ACEOF
16680#define HAVE_DECL_FSEEKO64 1
16681_ACEOF
16682
16683
16684else
16685 cat >>confdefs.h <<_ACEOF
16686#define HAVE_DECL_FSEEKO64 0
16687_ACEOF
16688
16689
16690fi
16691
16692
2e9ebff5 16693
6be7c12c 16694
252b5132 16695case "${host}" in
855b0be7 16696*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
16697
16698cat >>confdefs.h <<\_ACEOF
252b5132 16699#define USE_BINARY_FOPEN 1
5464f5a1 16700_ACEOF
252b5132
RH
16701 ;;
16702esac
16703
d34a2b1d
JG
16704echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16705echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16706if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 16707 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16708else
5464f5a1
NN
16709 cat >conftest.$ac_ext <<_ACEOF
16710/* confdefs.h. */
16711_ACEOF
16712cat confdefs.h >>conftest.$ac_ext
16713cat >>conftest.$ac_ext <<_ACEOF
16714/* end confdefs.h. */
d34a2b1d 16715$ac_includes_default
5464f5a1
NN
16716int
16717main ()
16718{
d34a2b1d
JG
16719#ifndef ffs
16720 char *p = (char *) ffs;
16721#endif
16722
5464f5a1
NN
16723 ;
16724 return 0;
16725}
16726_ACEOF
16727rm -f conftest.$ac_objext
16728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16729 (eval $ac_compile) 2>conftest.er1
16730 ac_status=$?
16731 grep -v '^ *+' conftest.er1 >conftest.err
16732 rm -f conftest.er1
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
49c96104
SE
16736 { ac_try='test -z "$ac_c_werror_flag"
16737 || test ! -s conftest.err'
5464f5a1
NN
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; } &&
16743 { ac_try='test -s conftest.$ac_objext'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; }; then
d34a2b1d 16749 ac_cv_have_decl_ffs=yes
252b5132 16750else
5464f5a1
NN
16751 echo "$as_me: failed program was:" >&5
16752sed 's/^/| /' conftest.$ac_ext >&5
16753
d34a2b1d 16754ac_cv_have_decl_ffs=no
252b5132 16755fi
5464f5a1 16756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16757fi
d34a2b1d
JG
16758echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16759echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16760if test $ac_cv_have_decl_ffs = yes; then
252b5132 16761
d34a2b1d
JG
16762cat >>confdefs.h <<_ACEOF
16763#define HAVE_DECL_FFS 1
16764_ACEOF
5464f5a1 16765
d34a2b1d
JG
16766
16767else
16768 cat >>confdefs.h <<_ACEOF
16769#define HAVE_DECL_FFS 0
5464f5a1 16770_ACEOF
252b5132 16771
d34a2b1d 16772
252b5132
RH
16773fi
16774
d34a2b1d
JG
16775
16776echo "$as_me:$LINENO: checking whether free is declared" >&5
16777echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16778if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 16779 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16780else
5464f5a1
NN
16781 cat >conftest.$ac_ext <<_ACEOF
16782/* confdefs.h. */
16783_ACEOF
16784cat confdefs.h >>conftest.$ac_ext
16785cat >>conftest.$ac_ext <<_ACEOF
16786/* end confdefs.h. */
d34a2b1d 16787$ac_includes_default
5464f5a1
NN
16788int
16789main ()
16790{
d34a2b1d
JG
16791#ifndef free
16792 char *p = (char *) free;
16793#endif
16794
5464f5a1
NN
16795 ;
16796 return 0;
16797}
16798_ACEOF
16799rm -f conftest.$ac_objext
16800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16801 (eval $ac_compile) 2>conftest.er1
16802 ac_status=$?
16803 grep -v '^ *+' conftest.er1 >conftest.err
16804 rm -f conftest.er1
16805 cat conftest.err >&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
49c96104
SE
16808 { ac_try='test -z "$ac_c_werror_flag"
16809 || test ! -s conftest.err'
5464f5a1
NN
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; } &&
16815 { ac_try='test -s conftest.$ac_objext'
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
d34a2b1d 16821 ac_cv_have_decl_free=yes
252b5132 16822else
5464f5a1
NN
16823 echo "$as_me: failed program was:" >&5
16824sed 's/^/| /' conftest.$ac_ext >&5
16825
d34a2b1d 16826ac_cv_have_decl_free=no
252b5132 16827fi
5464f5a1 16828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16829fi
d34a2b1d
JG
16830echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16831echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16832if test $ac_cv_have_decl_free = yes; then
16833
16834cat >>confdefs.h <<_ACEOF
16835#define HAVE_DECL_FREE 1
16836_ACEOF
252b5132 16837
5464f5a1 16838
d34a2b1d
JG
16839else
16840 cat >>confdefs.h <<_ACEOF
16841#define HAVE_DECL_FREE 0
5464f5a1 16842_ACEOF
252b5132 16843
d34a2b1d 16844
252b5132
RH
16845fi
16846
d34a2b1d
JG
16847
16848echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16849echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16850if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 16851 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16852else
5464f5a1
NN
16853 cat >conftest.$ac_ext <<_ACEOF
16854/* confdefs.h. */
16855_ACEOF
16856cat confdefs.h >>conftest.$ac_ext
16857cat >>conftest.$ac_ext <<_ACEOF
16858/* end confdefs.h. */
d34a2b1d 16859$ac_includes_default
5464f5a1
NN
16860int
16861main ()
16862{
d34a2b1d
JG
16863#ifndef getenv
16864 char *p = (char *) getenv;
16865#endif
16866
5464f5a1
NN
16867 ;
16868 return 0;
16869}
16870_ACEOF
16871rm -f conftest.$ac_objext
16872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16873 (eval $ac_compile) 2>conftest.er1
16874 ac_status=$?
16875 grep -v '^ *+' conftest.er1 >conftest.err
16876 rm -f conftest.er1
16877 cat conftest.err >&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } &&
49c96104
SE
16880 { ac_try='test -z "$ac_c_werror_flag"
16881 || test ! -s conftest.err'
5464f5a1
NN
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; } &&
16887 { ac_try='test -s conftest.$ac_objext'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
d34a2b1d 16893 ac_cv_have_decl_getenv=yes
252b5132 16894else
5464f5a1
NN
16895 echo "$as_me: failed program was:" >&5
16896sed 's/^/| /' conftest.$ac_ext >&5
16897
d34a2b1d 16898ac_cv_have_decl_getenv=no
252b5132 16899fi
5464f5a1 16900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16901fi
d34a2b1d
JG
16902echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16903echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16904if test $ac_cv_have_decl_getenv = yes; then
252b5132 16905
d34a2b1d
JG
16906cat >>confdefs.h <<_ACEOF
16907#define HAVE_DECL_GETENV 1
16908_ACEOF
5464f5a1 16909
d34a2b1d
JG
16910
16911else
16912 cat >>confdefs.h <<_ACEOF
16913#define HAVE_DECL_GETENV 0
5464f5a1 16914_ACEOF
252b5132 16915
d34a2b1d 16916
252b5132
RH
16917fi
16918
d34a2b1d
JG
16919
16920echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16921echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16922if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 16923 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16924else
5464f5a1
NN
16925 cat >conftest.$ac_ext <<_ACEOF
16926/* confdefs.h. */
16927_ACEOF
16928cat confdefs.h >>conftest.$ac_ext
16929cat >>conftest.$ac_ext <<_ACEOF
16930/* end confdefs.h. */
d34a2b1d 16931$ac_includes_default
5464f5a1
NN
16932int
16933main ()
16934{
d34a2b1d
JG
16935#ifndef malloc
16936 char *p = (char *) malloc;
16937#endif
16938
5464f5a1
NN
16939 ;
16940 return 0;
16941}
16942_ACEOF
16943rm -f conftest.$ac_objext
16944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16945 (eval $ac_compile) 2>conftest.er1
16946 ac_status=$?
16947 grep -v '^ *+' conftest.er1 >conftest.err
16948 rm -f conftest.er1
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } &&
49c96104
SE
16952 { ac_try='test -z "$ac_c_werror_flag"
16953 || test ! -s conftest.err'
5464f5a1
NN
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; } &&
16959 { ac_try='test -s conftest.$ac_objext'
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
d34a2b1d 16965 ac_cv_have_decl_malloc=yes
252b5132 16966else
5464f5a1
NN
16967 echo "$as_me: failed program was:" >&5
16968sed 's/^/| /' conftest.$ac_ext >&5
16969
d34a2b1d 16970ac_cv_have_decl_malloc=no
252b5132 16971fi
5464f5a1 16972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16973fi
d34a2b1d
JG
16974echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16975echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16976if test $ac_cv_have_decl_malloc = yes; then
252b5132 16977
d34a2b1d
JG
16978cat >>confdefs.h <<_ACEOF
16979#define HAVE_DECL_MALLOC 1
16980_ACEOF
5464f5a1 16981
d34a2b1d
JG
16982
16983else
16984 cat >>confdefs.h <<_ACEOF
16985#define HAVE_DECL_MALLOC 0
5464f5a1 16986_ACEOF
252b5132 16987
d34a2b1d 16988
252b5132
RH
16989fi
16990
d34a2b1d
JG
16991
16992echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16993echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16994if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 16995 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16996else
5464f5a1
NN
16997 cat >conftest.$ac_ext <<_ACEOF
16998/* confdefs.h. */
16999_ACEOF
17000cat confdefs.h >>conftest.$ac_ext
17001cat >>conftest.$ac_ext <<_ACEOF
17002/* end confdefs.h. */
d34a2b1d 17003$ac_includes_default
5464f5a1
NN
17004int
17005main ()
17006{
d34a2b1d
JG
17007#ifndef realloc
17008 char *p = (char *) realloc;
17009#endif
17010
5464f5a1
NN
17011 ;
17012 return 0;
17013}
17014_ACEOF
17015rm -f conftest.$ac_objext
17016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17017 (eval $ac_compile) 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
49c96104
SE
17024 { ac_try='test -z "$ac_c_werror_flag"
17025 || test ! -s conftest.err'
5464f5a1
NN
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest.$ac_objext'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
d34a2b1d 17037 ac_cv_have_decl_realloc=yes
252b5132 17038else
5464f5a1
NN
17039 echo "$as_me: failed program was:" >&5
17040sed 's/^/| /' conftest.$ac_ext >&5
17041
d34a2b1d 17042ac_cv_have_decl_realloc=no
252b5132 17043fi
5464f5a1 17044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17045fi
d34a2b1d
JG
17046echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17047echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17048if test $ac_cv_have_decl_realloc = yes; then
17049
17050cat >>confdefs.h <<_ACEOF
17051#define HAVE_DECL_REALLOC 1
17052_ACEOF
252b5132 17053
5464f5a1 17054
d34a2b1d
JG
17055else
17056 cat >>confdefs.h <<_ACEOF
17057#define HAVE_DECL_REALLOC 0
efa9bda4
AL
17058_ACEOF
17059
d34a2b1d 17060
efa9bda4
AL
17061fi
17062
d34a2b1d 17063
be5cacdb
L
17064echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17065echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17066if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17068else
17069 cat >conftest.$ac_ext <<_ACEOF
17070/* confdefs.h. */
17071_ACEOF
17072cat confdefs.h >>conftest.$ac_ext
17073cat >>conftest.$ac_ext <<_ACEOF
17074/* end confdefs.h. */
17075$ac_includes_default
17076int
17077main ()
17078{
17079#ifndef stpcpy
17080 char *p = (char *) stpcpy;
17081#endif
17082
17083 ;
17084 return 0;
17085}
17086_ACEOF
17087rm -f conftest.$ac_objext
17088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17089 (eval $ac_compile) 2>conftest.er1
17090 ac_status=$?
17091 grep -v '^ *+' conftest.er1 >conftest.err
17092 rm -f conftest.er1
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } &&
49c96104
SE
17096 { ac_try='test -z "$ac_c_werror_flag"
17097 || test ! -s conftest.err'
be5cacdb
L
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try='test -s conftest.$ac_objext'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 ac_cv_have_decl_stpcpy=yes
17110else
17111 echo "$as_me: failed program was:" >&5
17112sed 's/^/| /' conftest.$ac_ext >&5
17113
17114ac_cv_have_decl_stpcpy=no
17115fi
17116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17117fi
17118echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17119echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17120if test $ac_cv_have_decl_stpcpy = yes; then
17121
17122cat >>confdefs.h <<_ACEOF
17123#define HAVE_DECL_STPCPY 1
17124_ACEOF
17125
17126
17127else
17128 cat >>confdefs.h <<_ACEOF
17129#define HAVE_DECL_STPCPY 0
17130_ACEOF
17131
17132
17133fi
17134
17135
d34a2b1d
JG
17136echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17137echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17138if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17140else
17141 cat >conftest.$ac_ext <<_ACEOF
17142/* confdefs.h. */
17143_ACEOF
17144cat confdefs.h >>conftest.$ac_ext
17145cat >>conftest.$ac_ext <<_ACEOF
17146/* end confdefs.h. */
d34a2b1d 17147$ac_includes_default
efa9bda4
AL
17148int
17149main ()
17150{
d34a2b1d
JG
17151#ifndef strstr
17152 char *p = (char *) strstr;
17153#endif
17154
efa9bda4
AL
17155 ;
17156 return 0;
17157}
17158_ACEOF
17159rm -f conftest.$ac_objext
17160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17161 (eval $ac_compile) 2>conftest.er1
17162 ac_status=$?
17163 grep -v '^ *+' conftest.er1 >conftest.err
17164 rm -f conftest.er1
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
49c96104
SE
17168 { ac_try='test -z "$ac_c_werror_flag"
17169 || test ! -s conftest.err'
efa9bda4
AL
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest.$ac_objext'
17176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177 (eval $ac_try) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; }; then
d34a2b1d 17181 ac_cv_have_decl_strstr=yes
efa9bda4
AL
17182else
17183 echo "$as_me: failed program was:" >&5
17184sed 's/^/| /' conftest.$ac_ext >&5
17185
d34a2b1d 17186ac_cv_have_decl_strstr=no
efa9bda4
AL
17187fi
17188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17189fi
d34a2b1d
JG
17190echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17191echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17192if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 17193
d34a2b1d
JG
17194cat >>confdefs.h <<_ACEOF
17195#define HAVE_DECL_STRSTR 1
17196_ACEOF
efa9bda4 17197
d34a2b1d
JG
17198
17199else
17200 cat >>confdefs.h <<_ACEOF
17201#define HAVE_DECL_STRSTR 0
5464f5a1 17202_ACEOF
252b5132 17203
d34a2b1d 17204
252b5132
RH
17205fi
17206
6be7c12c 17207
36527912
AJ
17208echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17209echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17210if test "${ac_cv_have_decl_snprintf+set}" = set; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17212else
17213 cat >conftest.$ac_ext <<_ACEOF
17214/* confdefs.h. */
17215_ACEOF
17216cat confdefs.h >>conftest.$ac_ext
17217cat >>conftest.$ac_ext <<_ACEOF
17218/* end confdefs.h. */
17219$ac_includes_default
17220int
17221main ()
17222{
17223#ifndef snprintf
17224 char *p = (char *) snprintf;
17225#endif
17226
17227 ;
17228 return 0;
17229}
17230_ACEOF
17231rm -f conftest.$ac_objext
17232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17233 (eval $ac_compile) 2>conftest.er1
17234 ac_status=$?
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } &&
49c96104
SE
17240 { ac_try='test -z "$ac_c_werror_flag"
17241 || test ! -s conftest.err'
36527912
AJ
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; } &&
17247 { ac_try='test -s conftest.$ac_objext'
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 ac_cv_have_decl_snprintf=yes
17254else
17255 echo "$as_me: failed program was:" >&5
17256sed 's/^/| /' conftest.$ac_ext >&5
17257
17258ac_cv_have_decl_snprintf=no
17259fi
17260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17261fi
17262echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17263echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17264if test $ac_cv_have_decl_snprintf = yes; then
17265
17266cat >>confdefs.h <<_ACEOF
17267#define HAVE_DECL_SNPRINTF 1
17268_ACEOF
17269
17270
17271else
17272 cat >>confdefs.h <<_ACEOF
17273#define HAVE_DECL_SNPRINTF 0
17274_ACEOF
17275
17276
17277fi
17278
17279
17280echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17281echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17282if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17283 echo $ECHO_N "(cached) $ECHO_C" >&6
17284else
17285 cat >conftest.$ac_ext <<_ACEOF
17286/* confdefs.h. */
17287_ACEOF
17288cat confdefs.h >>conftest.$ac_ext
17289cat >>conftest.$ac_ext <<_ACEOF
17290/* end confdefs.h. */
17291$ac_includes_default
17292int
17293main ()
17294{
17295#ifndef vsnprintf
17296 char *p = (char *) vsnprintf;
17297#endif
17298
17299 ;
17300 return 0;
17301}
17302_ACEOF
17303rm -f conftest.$ac_objext
17304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17305 (eval $ac_compile) 2>conftest.er1
17306 ac_status=$?
17307 grep -v '^ *+' conftest.er1 >conftest.err
17308 rm -f conftest.er1
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
49c96104
SE
17312 { ac_try='test -z "$ac_c_werror_flag"
17313 || test ! -s conftest.err'
36527912
AJ
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; } &&
17319 { ac_try='test -s conftest.$ac_objext'
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 ac_cv_have_decl_vsnprintf=yes
17326else
17327 echo "$as_me: failed program was:" >&5
17328sed 's/^/| /' conftest.$ac_ext >&5
17329
17330ac_cv_have_decl_vsnprintf=no
17331fi
17332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17333fi
17334echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17335echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17336if test $ac_cv_have_decl_vsnprintf = yes; then
17337
17338cat >>confdefs.h <<_ACEOF
17339#define HAVE_DECL_VSNPRINTF 1
17340_ACEOF
17341
17342
17343else
17344 cat >>confdefs.h <<_ACEOF
17345#define HAVE_DECL_VSNPRINTF 0
17346_ACEOF
17347
17348
17349fi
17350
17351
d34a2b1d 17352
252b5132
RH
17353# If we are configured native, pick a core file support file.
17354COREFILE=
17355COREFLAG=
17356TRAD_HEADER=
17357if test "${target}" = "${host}"; then
17358 case "${host}" in
13dfd2d0 17359 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
17360 COREFILE=''
17361 ;;
ed84e695 17362 alpha*-*-linux-*)
252b5132
RH
17363 COREFILE=trad-core.lo
17364 TRAD_HEADER='"hosts/alphalinux.h"'
17365 ;;
690cc98b
NC
17366 alpha*-*-netbsd* | alpha*-*-openbsd*)
17367 COREFILE=netbsd-core.lo
17368 ;;
252b5132 17369 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
17370 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
17371 COREFILE='' ;;
e33533a4
MK
17372 arm-*-netbsd* | arm-*-openbsd*)
17373 COREFILE=netbsd-core.lo
17374 ;;
252b5132
RH
17375 arm-*-riscix) COREFILE=trad-core.lo ;;
17376 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
17377 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
17378 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
17379 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
17380 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
17381 hppa*-*-netbsd* | hppa*-*-openbsd*)
17382 COREFILE=netbsd-core.lo
17383 ;;
17384
dc810e39 17385 i370-*-*)
5b93d8bb
AM
17386 COREFILE=trad-core.lo
17387 TRAD_HEADER='"hosts/i370linux.h"'
17388 ;;
17389
80c7c40a 17390 i[3-7]86-sequent-bsd*)
5b93d8bb 17391 COREFILE=trad-core.lo
252b5132
RH
17392 TRAD_HEADER='"hosts/symmetry.h"'
17393 ;;
80c7c40a
NC
17394 i[3-7]86-sequent-sysv4*) ;;
17395 i[3-7]86-sequent-sysv*)
252b5132
RH
17396 COREFILE=trad-core.lo
17397 TRAD_HEADER='"hosts/symmetry.h"'
17398 ;;
80c7c40a 17399 i[3-7]86-*-bsdi)
7e3b3466
NC
17400 COREFILE=
17401 ;;
d2bef492 17402 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
17403 COREFILE=trad-core.lo
17404 TRAD_HEADER='"hosts/i386bsd.h"'
17405 ;;
0b3e17e9 17406 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
d4af9775
DB
17407 COREFILE=''
17408 TRAD_HEADER='"hosts/i386bsd.h"'
17409 ;;
4615568e 17410 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
17411 COREFILE=netbsd-core.lo
17412 ;;
80c7c40a 17413 i[3-7]86-esix-sysv3*)
252b5132
RH
17414 COREFILE=trad-core.lo
17415 TRAD_HEADER='"hosts/esix.h"'
17416 ;;
80c7c40a 17417 i[3-7]86-*-sco3.2v5*)
252b5132
RH
17418 COREFILE=sco5-core.lo
17419 ;;
80c7c40a 17420 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
17421 COREFILE=trad-core.lo
17422 TRAD_HEADER='"hosts/i386sco.h"'
17423 ;;
80c7c40a 17424 i[3-7]86-*-mach3*)
252b5132
RH
17425 COREFILE=trad-core.lo
17426 TRAD_HEADER='"hosts/i386mach3.h"'
17427 ;;
ed84e695 17428 i[3-7]86-*-linux-*)
252b5132
RH
17429 COREFILE=trad-core.lo
17430 TRAD_HEADER='"hosts/i386linux.h"'
17431 ;;
80c7c40a
NC
17432 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
17433 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
17434 i860-*-mach3* | i860-*-osf1*)
17435 COREFILE=trad-core.lo
17436 TRAD_HEADER='"hosts/i860mach3.h"'
17437 ;;
252b5132
RH
17438 mips-*-netbsd* | mips*-*-openbsd*)
17439 COREFILE=netbsd-core.lo
17440 ;;
17441 mips-dec-*)
17442 COREFILE=trad-core.lo
17443 TRAD_HEADER='"hosts/decstation.h"'
17444 ;;
17445 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
17446 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
17447 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
17448 mips-*-sysv4*) ;;
17449 mips-*-sysv* | mips-*-riscos*)
17450 COREFILE=trad-core.lo
17451 TRAD_HEADER='"hosts/riscos.h"'
17452 ;;
17453 mips-sony-bsd*)
17454 COREFILE=trad-core.lo
17455 TRAD_HEADER='"hosts/news-mips.h"'
17456 ;;
17457 m68*-bull*-sysv*)
17458 COREFILE=trad-core.lo
17459 TRAD_HEADER='"hosts/dpx2.h"'
17460 ;;
17461 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
17462 m68*-hp-bsd*)
17463 COREFILE=trad-core.lo
17464 TRAD_HEADER='"hosts/hp300bsd.h"'
17465 ;;
ed84e695 17466 m68*-*-linux-*)
252b5132
RH
17467 COREFILE=trad-core.lo
17468 TRAD_HEADER='"hosts/m68klinux.h"'
17469 ;;
17470 m68*-motorola-sysv*)
17471 COREFILE=trad-core.lo
17472 TRAD_HEADER='"hosts/delta68.h"'
17473 ;;
17474 m68*-sony-*)
17475 COREFILE=trad-core.lo
17476 TRAD_HEADER='"hosts/news.h"'
17477 ;;
17478 m68*-*-netbsd* | m68*-*-openbsd*)
17479 COREFILE=netbsd-core.lo
17480 ;;
17481 m68*-apple-aux*)
17482 COREFILE=trad-core.lo
17483 TRAD_HEADER='"hosts/m68kaux.h"'
17484 ;;
eb1e0e80
NC
17485 m88*-*-sysv4*)
17486 ;;
17487 m88*-motorola-sysv*)
17488 COREFILE=ptrace-core.lo
17489 ;;
252b5132
RH
17490 m88*-*-mach3*)
17491 COREFILE=trad-core.lo
17492 TRAD_HEADER='"hosts/m88kmach3.h"'
17493 ;;
c6f8758f
NC
17494 m88*-*-openbsd*)
17495 COREFILE=netbsd-core.lo
17496 ;;
252b5132
RH
17497 ns32k-pc532-mach)
17498 COREFILE=trad-core.lo
17499 TRAD_HEADER='"hosts/pc532mach.h"'
17500 ;;
17501 ns32k-*-netbsd* | ns32k-*-openbsd*)
17502 COREFILE=netbsd-core.lo
17503 ;;
eb1e0e80
NC
17504 rs6000-*-lynx*)
17505 COREFILE=lynx-core.lo
17506 ;;
17507 rs6000-*-aix5.* | powerpc-*-aix5.*)
17508 COREFILE=rs6000-core.lo
17509 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17510 ;;
83954261 17511 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
17512 COREFILE=rs6000-core.lo
17513 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
17514 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17515 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
17516 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17517echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17518 cat >conftest.$ac_ext <<_ACEOF
17519/* confdefs.h. */
17520_ACEOF
17521cat confdefs.h >>conftest.$ac_ext
17522cat >>conftest.$ac_ext <<_ACEOF
17523/* end confdefs.h. */
83954261 17524#include <core.h>
5464f5a1
NN
17525int
17526main ()
17527{
83954261 17528struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
17529 ;
17530 return 0;
17531}
17532_ACEOF
17533rm -f conftest.$ac_objext
17534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17535 (eval $ac_compile) 2>conftest.er1
17536 ac_status=$?
17537 grep -v '^ *+' conftest.er1 >conftest.err
17538 rm -f conftest.er1
17539 cat conftest.err >&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } &&
49c96104
SE
17542 { ac_try='test -z "$ac_c_werror_flag"
17543 || test ! -s conftest.err'
5464f5a1
NN
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest.$ac_objext'
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555
17556cat >>confdefs.h <<\_ACEOF
83954261 17557#define HAVE_ST_C_IMPL 1
5464f5a1 17558_ACEOF
83954261 17559
5464f5a1
NN
17560 echo "$as_me:$LINENO: result: yes" >&5
17561echo "${ECHO_T}yes" >&6
83954261 17562else
5464f5a1
NN
17563 echo "$as_me: failed program was:" >&5
17564sed 's/^/| /' conftest.$ac_ext >&5
17565
17566echo "$as_me:$LINENO: result: no" >&5
17567echo "${ECHO_T}no" >&6
83954261 17568fi
5464f5a1 17569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 17570 ;;
252b5132
RH
17571 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
17572 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
17573 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
17574 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
17575 powerpc-*-beos*) ;;
13dfd2d0
NC
17576 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17577 COREFILE='' ;;
252b5132 17578 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 17579 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 17580 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
17581 sh*-*-netbsd* | sh*-*-openbsd*)
17582 COREFILE=netbsd-core.lo
17583 ;;
a9bf1154 17584 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
17585 COREFILE=netbsd-core.lo
17586 ;;
17587 tahoe-*-*)
17588 COREFILE=trad-core.lo
17589 TRAD_HEADER='"hosts/tahoe.h"'
17590 ;;
de6e5e1a
NC
17591 vax-*-netbsd* | vax-*-openbsd*)
17592 COREFILE=netbsd-core.lo
17593 ;;
252b5132
RH
17594 vax-*-ultrix2*)
17595 COREFILE=trad-core.lo
17596 TRAD_HEADER='"hosts/vaxult2.h"'
17597 ;;
17598 vax-*-ultrix*)
17599 COREFILE=trad-core.lo
17600 TRAD_HEADER='"hosts/vaxult2.h"'
17601 ;;
ed84e695 17602 vax-*-linux-*)
f8fc3443
NC
17603 COREFILE=trad-core.lo
17604 TRAD_HEADER='"hosts/vaxlinux.h"'
17605 ;;
252b5132
RH
17606 vax-*-*)
17607 COREFILE=trad-core.lo
17608 TRAD_HEADER='"hosts/vaxbsd.h"'
17609 ;;
85cfd8d3
MK
17610 x86_64-*-netbsd* | x86_64-*-openbsd*)
17611 COREFILE=netbsd-core.lo
17612 ;;
252b5132
RH
17613 esac
17614
17615 case "$COREFILE" in
17616 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
17617 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
17618 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
17619 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
17620 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
17621 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
17622 osf-core.lo) COREFLAG=-DOSF_CORE ;;
17623 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
17624 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
17625 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17626 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17627 esac
17628
17629 # ELF corefile support has several flavors, but all of
17630 # them use something called <sys/procfs.h>
5464f5a1
NN
17631
17632for ac_header in sys/procfs.h
252b5132 17633do
5464f5a1
NN
17634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17635if eval "test \"\${$as_ac_Header+set}\" = set"; then
17636 echo "$as_me:$LINENO: checking for $ac_header" >&5
17637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17638if eval "test \"\${$as_ac_Header+set}\" = set"; then
17639 echo $ECHO_N "(cached) $ECHO_C" >&6
17640fi
17641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17643else
17644 # Is the header compilable?
17645echo "$as_me:$LINENO: checking $ac_header usability" >&5
17646echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17647cat >conftest.$ac_ext <<_ACEOF
17648/* confdefs.h. */
17649_ACEOF
17650cat confdefs.h >>conftest.$ac_ext
17651cat >>conftest.$ac_ext <<_ACEOF
17652/* end confdefs.h. */
17653$ac_includes_default
17654#include <$ac_header>
17655_ACEOF
17656rm -f conftest.$ac_objext
17657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17658 (eval $ac_compile) 2>conftest.er1
17659 ac_status=$?
17660 grep -v '^ *+' conftest.er1 >conftest.err
17661 rm -f conftest.er1
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
49c96104
SE
17665 { ac_try='test -z "$ac_c_werror_flag"
17666 || test ! -s conftest.err'
5464f5a1
NN
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest.$ac_objext'
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; }; then
17678 ac_header_compiler=yes
17679else
17680 echo "$as_me: failed program was:" >&5
17681sed 's/^/| /' conftest.$ac_ext >&5
17682
17683ac_header_compiler=no
17684fi
17685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17686echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17687echo "${ECHO_T}$ac_header_compiler" >&6
17688
17689# Is the header present?
17690echo "$as_me:$LINENO: checking $ac_header presence" >&5
17691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17692cat >conftest.$ac_ext <<_ACEOF
17693/* confdefs.h. */
17694_ACEOF
17695cat confdefs.h >>conftest.$ac_ext
17696cat >>conftest.$ac_ext <<_ACEOF
17697/* end confdefs.h. */
17698#include <$ac_header>
17699_ACEOF
17700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17702 ac_status=$?
17703 grep -v '^ *+' conftest.er1 >conftest.err
17704 rm -f conftest.er1
17705 cat conftest.err >&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } >/dev/null; then
17708 if test -s conftest.err; then
17709 ac_cpp_err=$ac_c_preproc_warn_flag
17710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17711 else
17712 ac_cpp_err=
17713 fi
252b5132 17714else
5464f5a1 17715 ac_cpp_err=yes
252b5132 17716fi
5464f5a1
NN
17717if test -z "$ac_cpp_err"; then
17718 ac_header_preproc=yes
17719else
17720 echo "$as_me: failed program was:" >&5
17721sed 's/^/| /' conftest.$ac_ext >&5
17722
17723 ac_header_preproc=no
252b5132 17724fi
5464f5a1
NN
17725rm -f conftest.err conftest.$ac_ext
17726echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17727echo "${ECHO_T}$ac_header_preproc" >&6
17728
17729# So? What about this header?
17730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17731 yes:no: )
17732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17733echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17735echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17736 ac_header_preproc=yes
17737 ;;
17738 no:yes:* )
17739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17740echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17742echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17744echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17746echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17750echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17751 (
17752 cat <<\_ASBOX
17753## ------------------------------------------ ##
17754## Report this to the AC_PACKAGE_NAME lists. ##
17755## ------------------------------------------ ##
17756_ASBOX
17757 ) |
17758 sed "s/^/$as_me: WARNING: /" >&2
17759 ;;
17760esac
17761echo "$as_me:$LINENO: checking for $ac_header" >&5
17762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17763if eval "test \"\${$as_ac_Header+set}\" = set"; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 17765else
5464f5a1
NN
17766 eval "$as_ac_Header=\$ac_header_preproc"
17767fi
17768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17770
252b5132 17771fi
5464f5a1
NN
17772if test `eval echo '${'$as_ac_Header'}'` = yes; then
17773 cat >>confdefs.h <<_ACEOF
17774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17775_ACEOF
17776
17777fi
17778
252b5132
RH
17779done
17780
17781 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
17782 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17783echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17784 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17786else
17787 cat >conftest.$ac_ext <<_ACEOF
17788/* confdefs.h. */
17789_ACEOF
17790cat confdefs.h >>conftest.$ac_ext
17791cat >>conftest.$ac_ext <<_ACEOF
17792/* end confdefs.h. */
7ee38065
MS
17793
17794#define _SYSCALL32
252b5132 17795#include <sys/procfs.h>
5464f5a1
NN
17796int
17797main ()
17798{
252b5132 17799prstatus_t avar
5464f5a1
NN
17800 ;
17801 return 0;
17802}
17803_ACEOF
17804rm -f conftest.$ac_objext
17805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17806 (eval $ac_compile) 2>conftest.er1
17807 ac_status=$?
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
49c96104
SE
17813 { ac_try='test -z "$ac_c_werror_flag"
17814 || test ! -s conftest.err'
5464f5a1
NN
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; } &&
17820 { ac_try='test -s conftest.$ac_objext'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
252b5132
RH
17826 bfd_cv_have_sys_procfs_type_prstatus_t=yes
17827else
5464f5a1
NN
17828 echo "$as_me: failed program was:" >&5
17829sed 's/^/| /' conftest.$ac_ext >&5
17830
17831bfd_cv_have_sys_procfs_type_prstatus_t=no
17832
252b5132 17833fi
5464f5a1 17834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17835fi
17836
17837 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
17838
17839cat >>confdefs.h <<\_ACEOF
252b5132 17840#define HAVE_PRSTATUS_T 1
5464f5a1 17841_ACEOF
252b5132
RH
17842
17843 fi
5464f5a1
NN
17844 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17845echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 17846
5464f5a1
NN
17847 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17848echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17849 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 17851else
5464f5a1
NN
17852 cat >conftest.$ac_ext <<_ACEOF
17853/* confdefs.h. */
17854_ACEOF
17855cat confdefs.h >>conftest.$ac_ext
17856cat >>conftest.$ac_ext <<_ACEOF
17857/* end confdefs.h. */
7ee38065
MS
17858
17859#define _SYSCALL32
17860#include <sys/procfs.h>
5464f5a1
NN
17861int
17862main ()
17863{
7ee38065 17864prstatus32_t avar
5464f5a1
NN
17865 ;
17866 return 0;
17867}
17868_ACEOF
17869rm -f conftest.$ac_objext
17870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17871 (eval $ac_compile) 2>conftest.er1
17872 ac_status=$?
17873 grep -v '^ *+' conftest.er1 >conftest.err
17874 rm -f conftest.er1
17875 cat conftest.err >&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } &&
49c96104
SE
17878 { ac_try='test -z "$ac_c_werror_flag"
17879 || test ! -s conftest.err'
5464f5a1
NN
17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 (eval $ac_try) 2>&5
17882 ac_status=$?
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; } &&
17885 { ac_try='test -s conftest.$ac_objext'
17886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17888 ac_status=$?
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; }; then
7ee38065
MS
17891 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
17892else
5464f5a1
NN
17893 echo "$as_me: failed program was:" >&5
17894sed 's/^/| /' conftest.$ac_ext >&5
17895
17896bfd_cv_have_sys_procfs_type_prstatus32_t=no
17897
7ee38065 17898fi
5464f5a1 17899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
17900fi
17901
17902 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
17903
17904cat >>confdefs.h <<\_ACEOF
7ee38065 17905#define HAVE_PRSTATUS32_T 1
5464f5a1 17906_ACEOF
7ee38065
MS
17907
17908 fi
5464f5a1
NN
17909 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
17910echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 17911
5464f5a1
NN
17912 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
17913echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17914 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17916else
5464f5a1
NN
17917 cat >conftest.$ac_ext <<_ACEOF
17918/* confdefs.h. */
17919_ACEOF
17920cat confdefs.h >>conftest.$ac_ext
17921cat >>conftest.$ac_ext <<_ACEOF
17922/* end confdefs.h. */
7ee38065
MS
17923
17924#define _SYSCALL32
252b5132 17925#include <sys/procfs.h>
5464f5a1
NN
17926int
17927main ()
17928{
252b5132 17929prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
17930 ;
17931 return 0;
17932}
17933_ACEOF
17934rm -f conftest.$ac_objext
17935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17936 (eval $ac_compile) 2>conftest.er1
17937 ac_status=$?
17938 grep -v '^ *+' conftest.er1 >conftest.err
17939 rm -f conftest.er1
17940 cat conftest.err >&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } &&
49c96104
SE
17943 { ac_try='test -z "$ac_c_werror_flag"
17944 || test ! -s conftest.err'
5464f5a1
NN
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest.$ac_objext'
17951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17953 ac_status=$?
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
252b5132
RH
17956 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
17957else
5464f5a1
NN
17958 echo "$as_me: failed program was:" >&5
17959sed 's/^/| /' conftest.$ac_ext >&5
17960
17961bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
17962
252b5132 17963fi
5464f5a1 17964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17965fi
17966
17967 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
17968
17969cat >>confdefs.h <<\_ACEOF
252b5132 17970#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 17971_ACEOF
252b5132
RH
17972
17973 fi
5464f5a1
NN
17974 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
17975echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 17976
5464f5a1
NN
17977 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
17978echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17979 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 17981else
5464f5a1
NN
17982 cat >conftest.$ac_ext <<_ACEOF
17983/* confdefs.h. */
17984_ACEOF
17985cat confdefs.h >>conftest.$ac_ext
17986cat >>conftest.$ac_ext <<_ACEOF
17987/* end confdefs.h. */
7ee38065
MS
17988
17989#define _SYSCALL32
17990#include <sys/procfs.h>
5464f5a1
NN
17991int
17992main ()
17993{
7ee38065 17994prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
17995 ;
17996 return 0;
17997}
17998_ACEOF
17999rm -f conftest.$ac_objext
18000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18001 (eval $ac_compile) 2>conftest.er1
18002 ac_status=$?
18003 grep -v '^ *+' conftest.er1 >conftest.err
18004 rm -f conftest.er1
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } &&
49c96104
SE
18008 { ac_try='test -z "$ac_c_werror_flag"
18009 || test ! -s conftest.err'
5464f5a1
NN
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest.$ac_objext'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
7ee38065
MS
18021 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18022else
5464f5a1
NN
18023 echo "$as_me: failed program was:" >&5
18024sed 's/^/| /' conftest.$ac_ext >&5
18025
18026bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18027
7ee38065 18028fi
5464f5a1 18029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18030fi
18031
18032 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
18033
18034cat >>confdefs.h <<\_ACEOF
7ee38065 18035#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 18036_ACEOF
7ee38065
MS
18037
18038 fi
5464f5a1
NN
18039 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18040echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 18041
5464f5a1
NN
18042 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18043echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18044 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18046else
5464f5a1
NN
18047 cat >conftest.$ac_ext <<_ACEOF
18048/* confdefs.h. */
18049_ACEOF
18050cat confdefs.h >>conftest.$ac_ext
18051cat >>conftest.$ac_ext <<_ACEOF
18052/* end confdefs.h. */
7ee38065
MS
18053
18054#define _SYSCALL32
252b5132 18055#include <sys/procfs.h>
5464f5a1
NN
18056int
18057main ()
18058{
252b5132 18059pstatus_t avar
5464f5a1
NN
18060 ;
18061 return 0;
18062}
18063_ACEOF
18064rm -f conftest.$ac_objext
18065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18066 (eval $ac_compile) 2>conftest.er1
18067 ac_status=$?
18068 grep -v '^ *+' conftest.er1 >conftest.err
18069 rm -f conftest.er1
18070 cat conftest.err >&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); } &&
49c96104
SE
18073 { ac_try='test -z "$ac_c_werror_flag"
18074 || test ! -s conftest.err'
5464f5a1
NN
18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076 (eval $ac_try) 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; } &&
18080 { ac_try='test -s conftest.$ac_objext'
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18083 ac_status=$?
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; }; then
252b5132
RH
18086 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18087else
5464f5a1
NN
18088 echo "$as_me: failed program was:" >&5
18089sed 's/^/| /' conftest.$ac_ext >&5
18090
18091bfd_cv_have_sys_procfs_type_pstatus_t=no
18092
252b5132 18093fi
5464f5a1 18094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18095fi
18096
18097 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
18098
18099cat >>confdefs.h <<\_ACEOF
252b5132 18100#define HAVE_PSTATUS_T 1
5464f5a1 18101_ACEOF
252b5132
RH
18102
18103 fi
5464f5a1
NN
18104 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18105echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 18106
5464f5a1
NN
18107 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18108echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18109 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 18111else
5464f5a1
NN
18112 cat >conftest.$ac_ext <<_ACEOF
18113/* confdefs.h. */
18114_ACEOF
18115cat confdefs.h >>conftest.$ac_ext
18116cat >>conftest.$ac_ext <<_ACEOF
18117/* end confdefs.h. */
f572a39d
AM
18118
18119#define _SYSCALL32
18120#include <sys/procfs.h>
5464f5a1
NN
18121int
18122main ()
18123{
f572a39d 18124pxstatus_t avar
5464f5a1
NN
18125 ;
18126 return 0;
18127}
18128_ACEOF
18129rm -f conftest.$ac_objext
18130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18131 (eval $ac_compile) 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
49c96104
SE
18138 { ac_try='test -z "$ac_c_werror_flag"
18139 || test ! -s conftest.err'
5464f5a1
NN
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest.$ac_objext'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18148 ac_status=$?
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
f572a39d
AM
18151 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18152else
5464f5a1
NN
18153 echo "$as_me: failed program was:" >&5
18154sed 's/^/| /' conftest.$ac_ext >&5
18155
18156bfd_cv_have_sys_procfs_type_pxstatus_t=no
18157
f572a39d 18158fi
5464f5a1 18159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
18160fi
18161
18162 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
18163
18164cat >>confdefs.h <<\_ACEOF
f572a39d 18165#define HAVE_PXSTATUS_T 1
5464f5a1 18166_ACEOF
f572a39d
AM
18167
18168 fi
5464f5a1
NN
18169 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18170echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 18171
5464f5a1
NN
18172 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18173echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18174 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18176else
5464f5a1
NN
18177 cat >conftest.$ac_ext <<_ACEOF
18178/* confdefs.h. */
18179_ACEOF
18180cat confdefs.h >>conftest.$ac_ext
18181cat >>conftest.$ac_ext <<_ACEOF
18182/* end confdefs.h. */
7ee38065
MS
18183
18184#define _SYSCALL32
18185#include <sys/procfs.h>
5464f5a1
NN
18186int
18187main ()
18188{
7ee38065 18189pstatus32_t avar
5464f5a1
NN
18190 ;
18191 return 0;
18192}
18193_ACEOF
18194rm -f conftest.$ac_objext
18195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18196 (eval $ac_compile) 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
49c96104
SE
18203 { ac_try='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
5464f5a1
NN
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest.$ac_objext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
7ee38065
MS
18216 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18217else
5464f5a1
NN
18218 echo "$as_me: failed program was:" >&5
18219sed 's/^/| /' conftest.$ac_ext >&5
18220
18221bfd_cv_have_sys_procfs_type_pstatus32_t=no
18222
7ee38065 18223fi
5464f5a1 18224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18225fi
18226
18227 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
18228
18229cat >>confdefs.h <<\_ACEOF
7ee38065 18230#define HAVE_PSTATUS32_T 1
5464f5a1 18231_ACEOF
7ee38065
MS
18232
18233 fi
5464f5a1
NN
18234 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18235echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 18236
5464f5a1
NN
18237 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18238echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18239 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18241else
5464f5a1
NN
18242 cat >conftest.$ac_ext <<_ACEOF
18243/* confdefs.h. */
18244_ACEOF
18245cat confdefs.h >>conftest.$ac_ext
18246cat >>conftest.$ac_ext <<_ACEOF
18247/* end confdefs.h. */
7ee38065
MS
18248
18249#define _SYSCALL32
252b5132 18250#include <sys/procfs.h>
5464f5a1
NN
18251int
18252main ()
18253{
252b5132 18254prpsinfo_t avar
5464f5a1
NN
18255 ;
18256 return 0;
18257}
18258_ACEOF
18259rm -f conftest.$ac_objext
18260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18261 (eval $ac_compile) 2>conftest.er1
18262 ac_status=$?
18263 grep -v '^ *+' conftest.er1 >conftest.err
18264 rm -f conftest.er1
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
49c96104
SE
18268 { ac_try='test -z "$ac_c_werror_flag"
18269 || test ! -s conftest.err'
5464f5a1
NN
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try='test -s conftest.$ac_objext'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
252b5132
RH
18281 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18282else
5464f5a1
NN
18283 echo "$as_me: failed program was:" >&5
18284sed 's/^/| /' conftest.$ac_ext >&5
18285
18286bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18287
252b5132 18288fi
5464f5a1 18289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18290fi
18291
18292 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
18293
18294cat >>confdefs.h <<\_ACEOF
252b5132 18295#define HAVE_PRPSINFO_T 1
5464f5a1 18296_ACEOF
252b5132
RH
18297
18298 fi
5464f5a1
NN
18299 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18300echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 18301
5464f5a1
NN
18302 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18303echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18304 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18306else
5464f5a1
NN
18307 cat >conftest.$ac_ext <<_ACEOF
18308/* confdefs.h. */
18309_ACEOF
18310cat confdefs.h >>conftest.$ac_ext
18311cat >>conftest.$ac_ext <<_ACEOF
18312/* end confdefs.h. */
7ee38065
MS
18313
18314#define _SYSCALL32
18315#include <sys/procfs.h>
5464f5a1
NN
18316int
18317main ()
18318{
7ee38065 18319prpsinfo32_t avar
5464f5a1
NN
18320 ;
18321 return 0;
18322}
18323_ACEOF
18324rm -f conftest.$ac_objext
18325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18326 (eval $ac_compile) 2>conftest.er1
18327 ac_status=$?
18328 grep -v '^ *+' conftest.er1 >conftest.err
18329 rm -f conftest.er1
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
49c96104
SE
18333 { ac_try='test -z "$ac_c_werror_flag"
18334 || test ! -s conftest.err'
5464f5a1
NN
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest.$ac_objext'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; }; then
7ee38065
MS
18346 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
18347else
5464f5a1
NN
18348 echo "$as_me: failed program was:" >&5
18349sed 's/^/| /' conftest.$ac_ext >&5
18350
18351bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
18352
7ee38065 18353fi
5464f5a1 18354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18355fi
18356
18357 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
18358
18359cat >>confdefs.h <<\_ACEOF
7ee38065 18360#define HAVE_PRPSINFO32_T 1
5464f5a1 18361_ACEOF
7ee38065
MS
18362
18363 fi
5464f5a1
NN
18364 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
18365echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 18366
5464f5a1
NN
18367 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
18368echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
18369 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18371else
5464f5a1
NN
18372 cat >conftest.$ac_ext <<_ACEOF
18373/* confdefs.h. */
18374_ACEOF
18375cat confdefs.h >>conftest.$ac_ext
18376cat >>conftest.$ac_ext <<_ACEOF
18377/* end confdefs.h. */
7ee38065
MS
18378
18379#define _SYSCALL32
252b5132 18380#include <sys/procfs.h>
5464f5a1
NN
18381int
18382main ()
18383{
252b5132 18384psinfo_t avar
5464f5a1
NN
18385 ;
18386 return 0;
18387}
18388_ACEOF
18389rm -f conftest.$ac_objext
18390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18391 (eval $ac_compile) 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
49c96104
SE
18398 { ac_try='test -z "$ac_c_werror_flag"
18399 || test ! -s conftest.err'
5464f5a1
NN
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; } &&
18405 { ac_try='test -s conftest.$ac_objext'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; }; then
252b5132
RH
18411 bfd_cv_have_sys_procfs_type_psinfo_t=yes
18412else
5464f5a1
NN
18413 echo "$as_me: failed program was:" >&5
18414sed 's/^/| /' conftest.$ac_ext >&5
18415
18416bfd_cv_have_sys_procfs_type_psinfo_t=no
18417
252b5132 18418fi
5464f5a1 18419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18420fi
18421
18422 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
18423
18424cat >>confdefs.h <<\_ACEOF
252b5132 18425#define HAVE_PSINFO_T 1
5464f5a1 18426_ACEOF
252b5132
RH
18427
18428 fi
5464f5a1
NN
18429 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18430echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 18431
5464f5a1
NN
18432 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18433echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18434 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18436else
5464f5a1
NN
18437 cat >conftest.$ac_ext <<_ACEOF
18438/* confdefs.h. */
18439_ACEOF
18440cat confdefs.h >>conftest.$ac_ext
18441cat >>conftest.$ac_ext <<_ACEOF
18442/* end confdefs.h. */
7ee38065
MS
18443
18444#define _SYSCALL32
18445#include <sys/procfs.h>
5464f5a1
NN
18446int
18447main ()
18448{
7ee38065 18449psinfo32_t avar
5464f5a1
NN
18450 ;
18451 return 0;
18452}
18453_ACEOF
18454rm -f conftest.$ac_objext
18455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18456 (eval $ac_compile) 2>conftest.er1
18457 ac_status=$?
18458 grep -v '^ *+' conftest.er1 >conftest.err
18459 rm -f conftest.er1
18460 cat conftest.err >&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
49c96104
SE
18463 { ac_try='test -z "$ac_c_werror_flag"
18464 || test ! -s conftest.err'
5464f5a1
NN
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest.$ac_objext'
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
7ee38065
MS
18476 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18477else
5464f5a1
NN
18478 echo "$as_me: failed program was:" >&5
18479sed 's/^/| /' conftest.$ac_ext >&5
18480
18481bfd_cv_have_sys_procfs_type_psinfo32_t=no
18482
7ee38065 18483fi
5464f5a1 18484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18485fi
18486
18487 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
18488
18489cat >>confdefs.h <<\_ACEOF
7ee38065 18490#define HAVE_PSINFO32_T 1
5464f5a1 18491_ACEOF
7ee38065
MS
18492
18493 fi
5464f5a1
NN
18494 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18495echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 18496
5464f5a1
NN
18497 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18498echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18499 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18501else
5464f5a1
NN
18502 cat >conftest.$ac_ext <<_ACEOF
18503/* confdefs.h. */
18504_ACEOF
18505cat confdefs.h >>conftest.$ac_ext
18506cat >>conftest.$ac_ext <<_ACEOF
18507/* end confdefs.h. */
7ee38065
MS
18508
18509#define _SYSCALL32
252b5132 18510#include <sys/procfs.h>
5464f5a1
NN
18511int
18512main ()
18513{
252b5132 18514lwpstatus_t avar
5464f5a1
NN
18515 ;
18516 return 0;
18517}
18518_ACEOF
18519rm -f conftest.$ac_objext
18520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18521 (eval $ac_compile) 2>conftest.er1
18522 ac_status=$?
18523 grep -v '^ *+' conftest.er1 >conftest.err
18524 rm -f conftest.er1
18525 cat conftest.err >&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } &&
49c96104
SE
18528 { ac_try='test -z "$ac_c_werror_flag"
18529 || test ! -s conftest.err'
5464f5a1
NN
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest.$ac_objext'
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
252b5132
RH
18541 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18542else
5464f5a1
NN
18543 echo "$as_me: failed program was:" >&5
18544sed 's/^/| /' conftest.$ac_ext >&5
18545
18546bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18547
252b5132 18548fi
5464f5a1 18549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18550fi
18551
18552 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
18553
18554cat >>confdefs.h <<\_ACEOF
252b5132 18555#define HAVE_LWPSTATUS_T 1
5464f5a1 18556_ACEOF
252b5132
RH
18557
18558 fi
5464f5a1
NN
18559 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18560echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 18561
5464f5a1
NN
18562 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18563echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18564 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 18566else
5464f5a1
NN
18567 cat >conftest.$ac_ext <<_ACEOF
18568/* confdefs.h. */
18569_ACEOF
18570cat confdefs.h >>conftest.$ac_ext
18571cat >>conftest.$ac_ext <<_ACEOF
18572/* end confdefs.h. */
f572a39d
AM
18573
18574#define _SYSCALL32
18575#include <sys/procfs.h>
5464f5a1
NN
18576int
18577main ()
18578{
f572a39d 18579lwpxstatus_t avar
5464f5a1
NN
18580 ;
18581 return 0;
18582}
18583_ACEOF
18584rm -f conftest.$ac_objext
18585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18586 (eval $ac_compile) 2>conftest.er1
18587 ac_status=$?
18588 grep -v '^ *+' conftest.er1 >conftest.err
18589 rm -f conftest.er1
18590 cat conftest.err >&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } &&
49c96104
SE
18593 { ac_try='test -z "$ac_c_werror_flag"
18594 || test ! -s conftest.err'
5464f5a1
NN
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18597 ac_status=$?
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; } &&
18600 { ac_try='test -s conftest.$ac_objext'
18601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602 (eval $ac_try) 2>&5
18603 ac_status=$?
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; }; then
f572a39d
AM
18606 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18607else
5464f5a1
NN
18608 echo "$as_me: failed program was:" >&5
18609sed 's/^/| /' conftest.$ac_ext >&5
18610
18611bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18612
f572a39d 18613fi
5464f5a1 18614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
18615fi
18616
18617 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
18618
18619cat >>confdefs.h <<\_ACEOF
f572a39d 18620#define HAVE_LWPXSTATUS_T 1
5464f5a1 18621_ACEOF
f572a39d
AM
18622
18623 fi
5464f5a1
NN
18624 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18625echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 18626
5464f5a1
NN
18627 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18628echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18629 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18631else
5464f5a1
NN
18632 cat >conftest.$ac_ext <<_ACEOF
18633/* confdefs.h. */
18634_ACEOF
18635cat confdefs.h >>conftest.$ac_ext
18636cat >>conftest.$ac_ext <<_ACEOF
18637/* end confdefs.h. */
7ee38065
MS
18638
18639#define _SYSCALL32
252b5132 18640#include <sys/procfs.h>
5464f5a1
NN
18641int
18642main ()
18643{
252b5132 18644lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
18645 ;
18646 return 0;
18647}
18648_ACEOF
18649rm -f conftest.$ac_objext
18650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18651 (eval $ac_compile) 2>conftest.er1
18652 ac_status=$?
18653 grep -v '^ *+' conftest.er1 >conftest.err
18654 rm -f conftest.er1
18655 cat conftest.err >&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } &&
49c96104
SE
18658 { ac_try='test -z "$ac_c_werror_flag"
18659 || test ! -s conftest.err'
5464f5a1
NN
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; } &&
18665 { ac_try='test -s conftest.$ac_objext'
18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18668 ac_status=$?
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; }; then
252b5132
RH
18671 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18672else
5464f5a1
NN
18673 echo "$as_me: failed program was:" >&5
18674sed 's/^/| /' conftest.$ac_ext >&5
18675
18676bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18677
252b5132 18678fi
5464f5a1 18679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18680fi
18681
18682 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
18683
18684cat >>confdefs.h <<\_ACEOF
252b5132 18685#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 18686_ACEOF
252b5132
RH
18687
18688 fi
5464f5a1
NN
18689 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18690echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 18691
5464f5a1
NN
18692 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18693echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18694 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18695 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18696else
5464f5a1
NN
18697 cat >conftest.$ac_ext <<_ACEOF
18698/* confdefs.h. */
18699_ACEOF
18700cat confdefs.h >>conftest.$ac_ext
18701cat >>conftest.$ac_ext <<_ACEOF
18702/* end confdefs.h. */
7ee38065
MS
18703
18704#define _SYSCALL32
252b5132 18705#include <sys/procfs.h>
5464f5a1
NN
18706int
18707main ()
18708{
252b5132 18709lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
18710 ;
18711 return 0;
18712}
18713_ACEOF
18714rm -f conftest.$ac_objext
18715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18716 (eval $ac_compile) 2>conftest.er1
18717 ac_status=$?
18718 grep -v '^ *+' conftest.er1 >conftest.err
18719 rm -f conftest.er1
18720 cat conftest.err >&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } &&
49c96104
SE
18723 { ac_try='test -z "$ac_c_werror_flag"
18724 || test ! -s conftest.err'
5464f5a1
NN
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18727 ac_status=$?
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; } &&
18730 { ac_try='test -s conftest.$ac_objext'
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
252b5132
RH
18736 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18737else
5464f5a1
NN
18738 echo "$as_me: failed program was:" >&5
18739sed 's/^/| /' conftest.$ac_ext >&5
18740
18741bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18742
252b5132 18743fi
5464f5a1 18744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18745fi
18746
18747 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
18748
18749cat >>confdefs.h <<\_ACEOF
252b5132 18750#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 18751_ACEOF
252b5132
RH
18752
18753 fi
5464f5a1
NN
18754 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18755echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 18756
5464f5a1
NN
18757 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18758echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18759 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 18761else
5464f5a1
NN
18762 cat >conftest.$ac_ext <<_ACEOF
18763/* confdefs.h. */
18764_ACEOF
18765cat confdefs.h >>conftest.$ac_ext
18766cat >>conftest.$ac_ext <<_ACEOF
18767/* end confdefs.h. */
7ee38065
MS
18768
18769#define _SYSCALL32
e3c976c4 18770#include <sys/procfs.h>
5464f5a1
NN
18771int
18772main ()
18773{
e3c976c4 18774win32_pstatus_t avar
5464f5a1
NN
18775 ;
18776 return 0;
18777}
18778_ACEOF
18779rm -f conftest.$ac_objext
18780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18781 (eval $ac_compile) 2>conftest.er1
18782 ac_status=$?
18783 grep -v '^ *+' conftest.er1 >conftest.err
18784 rm -f conftest.er1
18785 cat conftest.err >&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } &&
49c96104
SE
18788 { ac_try='test -z "$ac_c_werror_flag"
18789 || test ! -s conftest.err'
5464f5a1
NN
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest.$ac_objext'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
e3c976c4
ILT
18801 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
18802else
5464f5a1
NN
18803 echo "$as_me: failed program was:" >&5
18804sed 's/^/| /' conftest.$ac_ext >&5
18805
18806bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18807
e3c976c4 18808fi
5464f5a1 18809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18810fi
18811
e3c976c4 18812 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
18813
18814cat >>confdefs.h <<\_ACEOF
e3c976c4 18815#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 18816_ACEOF
16e9c715
NC
18817
18818 fi
5464f5a1
NN
18819 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18820echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
18821
18822 fi
18823fi
16e9c715 18824
b3baf5d0 18825
6be7c12c 18826if test -n "$TRAD_HEADER"; then
5464f5a1
NN
18827
18828cat >>confdefs.h <<_ACEOF
252b5132 18829#define TRAD_HEADER $TRAD_HEADER
5464f5a1 18830_ACEOF
252b5132 18831
3f9b03b5 18832fi
252b5132
RH
18833
18834# Horrible hacks to build DLLs on Windows.
18835WIN32LDFLAGS=
18836WIN32LIBADD=
18837case "${host}" in
18838*-*-cygwin*)
18839 if test "$enable_shared" = "yes"; then
18840 WIN32LDFLAGS="-no-undefined"
18841 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
18842 fi
18843 ;;
78be1d6e 18844*-*-linux*)
39691762
L
18845 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
18846 # libiberty.a.
ca51bfff
L
18847 case "${host}" in
18848 mips*-*-linux*)
18849 # Linux/MIPS uses PIC by default.
18850 if test "$enable_shared" = "yes"; then
18851 WIN32LIBADD="-L../libiberty -liberty"
18852 fi
18853 ;;
18854 *)
66e25bab 18855 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 18856 if test -n "$x"; then
ca51bfff
L
18857 WIN32LIBADD="-L../libiberty/pic -liberty"
18858 fi
18859 ;;
18860 esac
39691762 18861 ;;
252b5132
RH
18862esac
18863
6be7c12c
AO
18864
18865
252b5132
RH
18866# target stuff:
18867
18868# Canonicalize the secondary target names.
18869if test -n "$enable_targets" ; then
18870 for targ in `echo $enable_targets | sed 's/,/ /g'`
18871 do
6d83c84b 18872 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
18873 if test -n "$result" ; then
18874 canon_targets="$canon_targets $result"
18875 else
18876 # Allow targets that config.sub doesn't recognize, like "all".
18877 canon_targets="$canon_targets $targ"
18878 fi
18879 done
18880fi
18881
18882all_targets=false
18883defvec=
18884selvecs=
08f74004 18885assocvecs=
252b5132
RH
18886selarchs=
18887TDEFINES=
18888for targ in $target $canon_targets
18889do
18890 if test "x$targ" = "xall"; then
18891 all_targets=true
08f74004 18892 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
18893 else
18894 . $srcdir/config.bfd
18895 if test "x$targ" = "x$target"; then
18896 defvec=$targ_defvec
18897 fi
18898 selvecs="$selvecs $targ_defvec $targ_selvecs"
18899 selarchs="$selarchs $targ_archs"
18900 TDEFINES="$TDEFINES $targ_cflags"
18901 fi
18902done
18903
6be7c12c 18904
252b5132
RH
18905# This processing still needs to be done if we're to decide properly whether
18906# 64-bit support needs to be compiled in. Currently, it will be included if
18907# the default or any other explicitly requested target requires it; it
18908# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 18909# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
18910# used.
18911
18912# uniq the default and selected vectors in all the configured targets.
18913f=""
18914for i in $selvecs ; do
18915 case " $f " in
18916 *" $i "*) ;;
18917 *) f="$f $i" ;;
18918 esac
18919done
18920selvecs="$f"
18921
6be7c12c 18922
08f74004
AM
18923# uniq the associated vectors in all the configured targets.
18924f=""
18925for i in $assocvecs ; do
18926 case " $f " in
18927 *" $i "*) ;;
18928 *) f="$f $i" ;;
18929 esac
18930done
18931assocvecs="$f"
18932
18933
252b5132
RH
18934# uniq the architectures in all the configured targets.
18935f=""
18936for i in $selarchs ; do
18937 case " $f " in
18938 *" $i "*) ;;
18939 *) f="$f $i" ;;
18940 esac
18941done
18942selarchs="$f"
18943
18944# Target backend .o files.
18945tb=
18946
104d59d1 18947elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
18948
18949for vec in $selvecs
18950do
69263e90 18951 target_size=32
252b5132
RH
18952 case "$vec" in
18953 # This list is alphabetized to make it easy to compare
dc810e39
AM
18954 # with the two vector lists in targets.c. For the same reason,
18955 # use one entry per line, even though this leads to long lines.
252b5132 18956 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 18957 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
18958 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
18959 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
18960 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 18961 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
18962 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18963 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18964 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
18965 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
18966 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18967 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18968 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
18969 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
18970 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
18971 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
18972 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
18973 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
18974 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
18975 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
18976 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
18977 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
18978 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 18979 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 18980 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 18981 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 18982 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 18983 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 18984 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 18985 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 18986 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 18987 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 18988 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 18989 bfd_elf32_bigarm_symbian_vec)
00a97672 18990 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 18991 bfd_elf32_bigarm_vxworks_vec)
00a97672 18992 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
18993 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18994 bfd_elf32_bigmips_vxworks_vec)
18995 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
3d3d428f 18996 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
0949843d 18997 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 18998 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 18999 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
19000 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19001 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 19002 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 19003 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 19004 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 19005 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 19006 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 19007 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 19008 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 19009 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 19010 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
0b3e17e9
NC
19011 bfd_elf32_i386_dragonfly_vec)
19012 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
eac338cf
PB
19013 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19014 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19015 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 19016 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 19017 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 19018 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 19019 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 19020 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 19021 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 19022 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 19023 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 19024 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 19025 bfd_elf32_littlearm_symbian_vec)
00a97672 19026 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 19027 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
19028 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19029 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
19030 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19031 bfd_elf32_littlemips_vxworks_vec)
19032 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 19033 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 19034 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
19035 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19036 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19037 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
19038 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19039 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
19040 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19041 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19042 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19043 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
19044 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19045 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
19046 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19047 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 19048 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 19049 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
19050 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19051 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19052 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19053 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 19054 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 19055 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
19056 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19057 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
19058 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19059 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19060 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 19061 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
19062 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19063 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
19064 # FIXME: We include cofflink.lo not because it's needed for
19065 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19066 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
19067 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19068 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19069 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19070 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19071 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19072 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19073 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19074 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19075 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19076 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19077 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19078 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19079 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 19080 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 19081 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
19082 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19083 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 19084 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
19085 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19086 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 19087 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 19088 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 19089 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 19090 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 19091 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
19092 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19093 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 19094 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
19095 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19096 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 19097 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
19098 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19099 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 19100 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 19101 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
19102 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19103 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 19104 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 19105 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
19106 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19107 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19108 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
19109 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19110 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
19111 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19112 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19113 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19114 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 19115 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 19116 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
19117 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 ;;
19118 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 19119 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 19120 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 19121 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
19122 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19123 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19124 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19125 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 19126 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 19127 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 19128 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 19129 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
19130 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19131 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
19132 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
19133 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
19134 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
19135 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
19136 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
19137 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
19138 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
19139 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
19140 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
19141 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 19142 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
19143 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
19144 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
19145 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
19146 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19147 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19148 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 19149 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
19150 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
19151 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
19152 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19153 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
19154 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19155 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
19156 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
19157 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19158 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19159 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
19160 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19161 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
19162 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
19163 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19164 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 19165 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
19166 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
19167 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 19168 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 19169 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 19170 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
19171 mach_o_be_vec) tb="$tb mach-o.lo" ;;
19172 mach_o_le_vec) tb="$tb mach-o.lo" ;;
19173 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
19174 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19175 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19176 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19177 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
19178 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19179 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 19180 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 19181 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 19182 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 19183 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 19184 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 19185 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 19186 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 19187 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
19188 pef_vec) tb="$tb pef.lo" ;;
19189 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 19190 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 19191 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 19192 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 19193 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 19194 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 19195 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 19196 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 19197 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 19198 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 19199 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
19200 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19201 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 19202 som_vec) tb="$tb som.lo" ;;
dc810e39 19203 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
19204 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
19205 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
19206 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19207 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19208 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 19209 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 19210 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
19211 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
19212 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
19213 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
19214 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
19215 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
19216 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
19217 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
19218 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 19219 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19220 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 19221 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19222 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 19223 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19224 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 19225 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 19226 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 19227 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 19228 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 19229 versados_vec) tb="$tb versados.lo" ;;
dc810e39 19230 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
19231 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19232 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
19233 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 19234 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 19235 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 19236
341ca622
AM
19237 # These appear out of order in targets.c
19238 srec_vec) tb="$tb srec.lo" ;;
19239 symbolsrec_vec) tb="$tb srec.lo" ;;
19240 tekhex_vec) tb="$tb tekhex.lo" ;;
19241 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
19242 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
19243
252b5132 19244 "") ;;
5464f5a1
NN
19245 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19246echo "$as_me: error: *** unknown target vector $vec" >&2;}
19247 { (exit 1); exit 1; }; } ;;
252b5132 19248 esac
69263e90
AM
19249
19250 if test ${target_size} = 64; then
19251 target64=true
19252 fi
19253 if test x"${vec}" = x"${defvec}"; then
19254 bfd_default_target_size=${target_size}
19255 fi
252b5132
RH
19256done
19257
19258# Target architecture .o files.
19259# A couple of CPUs use shorter file names to avoid problems on DOS
19260# filesystems.
d031aafb 19261ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
19262
19263# Weed out duplicate .o files.
19264f=""
19265for i in $tb ; do
19266 case " $f " in
19267 *" $i "*) ;;
19268 *) f="$f $i" ;;
19269 esac
19270done
19271tb="$f"
19272
19273f=""
19274for i in $ta ; do
19275 case " $f " in
19276 *" $i "*) ;;
19277 *) f="$f $i" ;;
19278 esac
19279done
19280ta="$f"
19281
19282bfd_backends="$tb"
19283bfd_machines="$ta"
19284
19285if test x${all_targets} = xtrue ; then
19286 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19287 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19288 selvecs=
19289 havevecs=
19290 selarchs=
08f74004
AM
19291 test -n "$assocvecs" &&
19292 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
19293else # all_targets is true
19294 # Only set these if they will be nonempty, for the clever echo.
19295 havevecs=
08f74004 19296 assocvecs=
252b5132
RH
19297 test -n "$selvecs" &&
19298 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19299 test -n "$selvecs" &&
19300 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19301 test -n "$selarchs" &&
19302 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19303fi # all_targets is true
19304
19305case ${host64}-${target64}-${want64} in
19306 *true*)
19307 wordsize=64
21e40a48 19308 bfd64_libs='$(BFD64_LIBS)'
252b5132 19309 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 19310 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
19311 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19312echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19313 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19314echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 19315 fi
966abd70
HPN
19316 if test -n "$GCC" ; then
19317 bad_64bit_gcc=no;
5464f5a1
NN
19318 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19319echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 19320 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
19321 cat >conftest.$ac_ext <<_ACEOF
19322/* confdefs.h. */
19323_ACEOF
19324cat confdefs.h >>conftest.$ac_ext
19325cat >>conftest.$ac_ext <<_ACEOF
19326/* end confdefs.h. */
966abd70 19327:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 19328_ACEOF
966abd70 19329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 19330 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 19331 bad_64bit_gcc=yes;
5464f5a1
NN
19332 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19333echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 19334else
5464f5a1
NN
19335 echo "$as_me:$LINENO: result: no" >&5
19336echo "${ECHO_T}no" >&6
966abd70
HPN
19337fi
19338rm -f conftest*
19339
19340 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
19341 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
19342echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
19343 { (exit 1); exit 1; }; }
966abd70
HPN
19344 fi
19345 fi
252b5132
RH
19346 ;;
19347 false-false-false)
19348 wordsize=32
19349 all_backends='$(BFD32_BACKENDS)'
19350 ;;
19351esac
19352
6be7c12c
AO
19353
19354
19355
19356
19357
69263e90 19358
2858ef35 19359
1012372a
AC
19360# Determine the host dependant file_ptr a.k.a. off_t type. In order
19361# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
19362# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
19363# Hopefully a reasonable assumption since fseeko et.al. should be
19364# upward compatible.
5464f5a1
NN
19365
19366
19367
19368
2e6f4fae
DJ
19369
19370for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 19371do
5464f5a1
NN
19372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19373echo "$as_me:$LINENO: checking for $ac_func" >&5
19374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19375if eval "test \"\${$as_ac_var+set}\" = set"; then
19376 echo $ECHO_N "(cached) $ECHO_C" >&6
19377else
2ba49b59
KC
19378 cat >conftest.$ac_ext <<_ACEOF
19379/* confdefs.h. */
19380_ACEOF
19381cat confdefs.h >>conftest.$ac_ext
19382cat >>conftest.$ac_ext <<_ACEOF
19383/* end confdefs.h. */
19384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19386#define $ac_func innocuous_$ac_func
19387
19388/* System header to define __stub macros and hopefully few prototypes,
19389 which can conflict with char $ac_func (); below.
19390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19391 <limits.h> exists even on freestanding compilers. */
19392
19393#ifdef __STDC__
19394# include <limits.h>
19395#else
19396# include <assert.h>
19397#endif
19398
19399#undef $ac_func
19400
19401/* Override any gcc2 internal prototype to avoid an error. */
19402#ifdef __cplusplus
19403extern "C"
19404{
19405#endif
19406/* We use char because int might match the return type of a gcc2
19407 builtin and then its argument prototype would still apply. */
19408char $ac_func ();
19409/* The GNU C library defines this for functions which it implements
19410 to always fail with ENOSYS. Some functions are actually named
19411 something starting with __ and the normal name is an alias. */
19412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19413choke me
19414#else
19415char (*f) () = $ac_func;
19416#endif
19417#ifdef __cplusplus
19418}
19419#endif
19420
19421int
19422main ()
19423{
19424return f != $ac_func;
19425 ;
19426 return 0;
19427}
19428_ACEOF
19429rm -f conftest.$ac_objext conftest$ac_exeext
19430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19431 (eval $ac_link) 2>conftest.er1
19432 ac_status=$?
19433 grep -v '^ *+' conftest.er1 >conftest.err
19434 rm -f conftest.er1
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
49c96104
SE
19438 { ac_try='test -z "$ac_c_werror_flag"
19439 || test ! -s conftest.err'
2ba49b59
KC
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; } &&
19445 { ac_try='test -s conftest$ac_exeext'
19446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447 (eval $ac_try) 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; }; then
19451 eval "$as_ac_var=yes"
19452else
19453 echo "$as_me: failed program was:" >&5
19454sed 's/^/| /' conftest.$ac_ext >&5
19455
19456eval "$as_ac_var=no"
19457fi
19458rm -f conftest.err conftest.$ac_objext \
19459 conftest$ac_exeext conftest.$ac_ext
19460fi
19461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19462echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19463if test `eval echo '${'$as_ac_var'}'` = yes; then
19464 cat >>confdefs.h <<_ACEOF
19465#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19466_ACEOF
19467
19468fi
19469done
19470
19471if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19472 echo "$as_me:$LINENO: checking for off_t" >&5
19473echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19474if test "${ac_cv_type_off_t+set}" = set; then
19475 echo $ECHO_N "(cached) $ECHO_C" >&6
19476else
19477 cat >conftest.$ac_ext <<_ACEOF
19478/* confdefs.h. */
19479_ACEOF
19480cat confdefs.h >>conftest.$ac_ext
19481cat >>conftest.$ac_ext <<_ACEOF
19482/* end confdefs.h. */
19483$ac_includes_default
19484int
19485main ()
19486{
19487if ((off_t *) 0)
19488 return 0;
19489if (sizeof (off_t))
19490 return 0;
19491 ;
19492 return 0;
19493}
19494_ACEOF
19495rm -f conftest.$ac_objext
19496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19497 (eval $ac_compile) 2>conftest.er1
19498 ac_status=$?
19499 grep -v '^ *+' conftest.er1 >conftest.err
19500 rm -f conftest.er1
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
49c96104
SE
19504 { ac_try='test -z "$ac_c_werror_flag"
19505 || test ! -s conftest.err'
2ba49b59
KC
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; } &&
19511 { ac_try='test -s conftest.$ac_objext'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
19517 ac_cv_type_off_t=yes
19518else
19519 echo "$as_me: failed program was:" >&5
19520sed 's/^/| /' conftest.$ac_ext >&5
19521
19522ac_cv_type_off_t=no
19523fi
19524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19525fi
19526echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19527echo "${ECHO_T}$ac_cv_type_off_t" >&6
19528
19529echo "$as_me:$LINENO: checking size of off_t" >&5
19530echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19531if test "${ac_cv_sizeof_off_t+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19533else
19534 if test "$ac_cv_type_off_t" = yes; then
19535 # The cast to unsigned long works around a bug in the HP C Compiler
19536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19537 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19538 # This bug is HP SR number 8606223364.
19539 if test "$cross_compiling" = yes; then
19540 # Depending upon the size, compute the lo and hi bounds.
19541cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
19542/* confdefs.h. */
19543_ACEOF
19544cat confdefs.h >>conftest.$ac_ext
19545cat >>conftest.$ac_ext <<_ACEOF
19546/* end confdefs.h. */
2ba49b59
KC
19547$ac_includes_default
19548int
19549main ()
19550{
19551static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19552test_array [0] = 0
5464f5a1 19553
2ba49b59
KC
19554 ;
19555 return 0;
19556}
19557_ACEOF
19558rm -f conftest.$ac_objext
19559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19560 (eval $ac_compile) 2>conftest.er1
19561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } &&
49c96104
SE
19567 { ac_try='test -z "$ac_c_werror_flag"
19568 || test ! -s conftest.err'
2ba49b59
KC
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; } &&
19574 { ac_try='test -s conftest.$ac_objext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 ac_lo=0 ac_mid=0
19581 while :; do
19582 cat >conftest.$ac_ext <<_ACEOF
19583/* confdefs.h. */
19584_ACEOF
19585cat confdefs.h >>conftest.$ac_ext
19586cat >>conftest.$ac_ext <<_ACEOF
19587/* end confdefs.h. */
19588$ac_includes_default
19589int
19590main ()
19591{
19592static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19593test_array [0] = 0
5464f5a1 19594
2ba49b59
KC
19595 ;
19596 return 0;
19597}
19598_ACEOF
19599rm -f conftest.$ac_objext
19600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19601 (eval $ac_compile) 2>conftest.er1
19602 ac_status=$?
19603 grep -v '^ *+' conftest.er1 >conftest.err
19604 rm -f conftest.er1
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } &&
49c96104
SE
19608 { ac_try='test -z "$ac_c_werror_flag"
19609 || test ! -s conftest.err'
2ba49b59
KC
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621 ac_hi=$ac_mid; break
19622else
19623 echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19625
2ba49b59
KC
19626ac_lo=`expr $ac_mid + 1`
19627 if test $ac_lo -le $ac_mid; then
19628 ac_lo= ac_hi=
19629 break
19630 fi
19631 ac_mid=`expr 2 '*' $ac_mid + 1`
19632fi
19633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19634 done
19635else
19636 echo "$as_me: failed program was:" >&5
19637sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19638
2ba49b59
KC
19639cat >conftest.$ac_ext <<_ACEOF
19640/* confdefs.h. */
19641_ACEOF
19642cat confdefs.h >>conftest.$ac_ext
19643cat >>conftest.$ac_ext <<_ACEOF
19644/* end confdefs.h. */
19645$ac_includes_default
19646int
19647main ()
5464f5a1 19648{
2ba49b59
KC
19649static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19650test_array [0] = 0
1012372a 19651
2ba49b59
KC
19652 ;
19653 return 0;
19654}
19655_ACEOF
19656rm -f conftest.$ac_objext
19657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19658 (eval $ac_compile) 2>conftest.er1
19659 ac_status=$?
19660 grep -v '^ *+' conftest.er1 >conftest.err
19661 rm -f conftest.er1
19662 cat conftest.err >&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } &&
49c96104
SE
19665 { ac_try='test -z "$ac_c_werror_flag"
19666 || test ! -s conftest.err'
2ba49b59
KC
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; } &&
19672 { ac_try='test -s conftest.$ac_objext'
19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674 (eval $ac_try) 2>&5
19675 ac_status=$?
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; }; then
19678 ac_hi=-1 ac_mid=-1
19679 while :; do
19680 cat >conftest.$ac_ext <<_ACEOF
19681/* confdefs.h. */
19682_ACEOF
19683cat confdefs.h >>conftest.$ac_ext
19684cat >>conftest.$ac_ext <<_ACEOF
19685/* end confdefs.h. */
19686$ac_includes_default
5464f5a1
NN
19687int
19688main ()
19689{
2ba49b59
KC
19690static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19691test_array [0] = 0
19692
5464f5a1
NN
19693 ;
19694 return 0;
19695}
19696_ACEOF
2ba49b59
KC
19697rm -f conftest.$ac_objext
19698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19699 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
19700 ac_status=$?
19701 grep -v '^ *+' conftest.er1 >conftest.err
19702 rm -f conftest.er1
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } &&
49c96104
SE
19706 { ac_try='test -z "$ac_c_werror_flag"
19707 || test ! -s conftest.err'
5464f5a1
NN
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
2ba49b59 19713 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
2ba49b59 19719 ac_lo=$ac_mid; break
5464f5a1
NN
19720else
19721 echo "$as_me: failed program was:" >&5
19722sed 's/^/| /' conftest.$ac_ext >&5
19723
2ba49b59
KC
19724ac_hi=`expr '(' $ac_mid ')' - 1`
19725 if test $ac_mid -le $ac_hi; then
19726 ac_lo= ac_hi=
19727 break
19728 fi
19729 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 19730fi
2ba49b59
KC
19731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19732 done
19733else
19734 echo "$as_me: failed program was:" >&5
19735sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19736
2ba49b59 19737ac_lo= ac_hi=
1012372a 19738fi
2ba49b59
KC
19739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19740fi
19741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19742# Binary search between lo and hi bounds.
19743while test "x$ac_lo" != "x$ac_hi"; do
19744 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
19745 cat >conftest.$ac_ext <<_ACEOF
19746/* confdefs.h. */
19747_ACEOF
19748cat confdefs.h >>conftest.$ac_ext
19749cat >>conftest.$ac_ext <<_ACEOF
19750/* end confdefs.h. */
2ba49b59 19751$ac_includes_default
5464f5a1
NN
19752int
19753main ()
19754{
2ba49b59
KC
19755static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19756test_array [0] = 0
19757
5464f5a1
NN
19758 ;
19759 return 0;
19760}
19761_ACEOF
19762rm -f conftest.$ac_objext
19763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19764 (eval $ac_compile) 2>conftest.er1
19765 ac_status=$?
19766 grep -v '^ *+' conftest.er1 >conftest.err
19767 rm -f conftest.er1
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
49c96104
SE
19771 { ac_try='test -z "$ac_c_werror_flag"
19772 || test ! -s conftest.err'
5464f5a1
NN
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest.$ac_objext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
2ba49b59 19784 ac_hi=$ac_mid
1012372a 19785else
5464f5a1
NN
19786 echo "$as_me: failed program was:" >&5
19787sed 's/^/| /' conftest.$ac_ext >&5
19788
2ba49b59 19789ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 19790fi
5464f5a1 19791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 19792done
2ba49b59
KC
19793case $ac_lo in
19794?*) ac_cv_sizeof_off_t=$ac_lo;;
19795'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19796See \`config.log' for more details." >&5
19797echo "$as_me: error: cannot compute sizeof (off_t), 77
19798See \`config.log' for more details." >&2;}
19799 { (exit 1); exit 1; }; } ;;
19800esac
19801else
19802 if test "$cross_compiling" = yes; then
49c96104
SE
19803 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19804See \`config.log' for more details." >&5
19805echo "$as_me: error: cannot run test program while cross compiling
19806See \`config.log' for more details." >&2;}
2ba49b59
KC
19807 { (exit 1); exit 1; }; }
19808else
19809 cat >conftest.$ac_ext <<_ACEOF
19810/* confdefs.h. */
19811_ACEOF
19812cat confdefs.h >>conftest.$ac_ext
19813cat >>conftest.$ac_ext <<_ACEOF
19814/* end confdefs.h. */
19815$ac_includes_default
19816long longval () { return (long) (sizeof (off_t)); }
19817unsigned long ulongval () { return (long) (sizeof (off_t)); }
19818#include <stdio.h>
19819#include <stdlib.h>
19820int
19821main ()
19822{
1012372a 19823
2ba49b59
KC
19824 FILE *f = fopen ("conftest.val", "w");
19825 if (! f)
19826 exit (1);
19827 if (((long) (sizeof (off_t))) < 0)
19828 {
19829 long i = longval ();
19830 if (i != ((long) (sizeof (off_t))))
19831 exit (1);
19832 fprintf (f, "%ld\n", i);
19833 }
19834 else
19835 {
19836 unsigned long i = ulongval ();
19837 if (i != ((long) (sizeof (off_t))))
19838 exit (1);
19839 fprintf (f, "%lu\n", i);
19840 }
19841 exit (ferror (f) || fclose (f) != 0);
19842
19843 ;
19844 return 0;
19845}
19846_ACEOF
19847rm -f conftest$ac_exeext
19848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19849 (eval $ac_link) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854 (eval $ac_try) 2>&5
19855 ac_status=$?
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; }; then
19858 ac_cv_sizeof_off_t=`cat conftest.val`
19859else
19860 echo "$as_me: program exited with status $ac_status" >&5
19861echo "$as_me: failed program was:" >&5
19862sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19863
2ba49b59
KC
19864( exit $ac_status )
19865{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19866See \`config.log' for more details." >&5
19867echo "$as_me: error: cannot compute sizeof (off_t), 77
19868See \`config.log' for more details." >&2;}
5464f5a1 19869 { (exit 1); exit 1; }; }
1012372a 19870fi
2ba49b59
KC
19871rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19872fi
19873fi
19874rm -f conftest.val
19875else
19876 ac_cv_sizeof_off_t=0
19877fi
19878fi
5464f5a1
NN
19879echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19880echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 19881cat >>confdefs.h <<_ACEOF
1012372a 19882#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 19883_ACEOF
1012372a
AC
19884
19885
1012372a 19886fi
5464f5a1
NN
19887echo "$as_me:$LINENO: checking file_ptr type" >&5
19888echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
19889bfd_file_ptr="long"
19890bfd_ufile_ptr="unsigned long"
19891if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
19892 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
19893 bfd_file_ptr=BFD_HOST_64_BIT
19894 bfd_ufile_ptr=BFD_HOST_U_64_BIT
19895fi
5464f5a1
NN
19896echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
19897echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
19898
19899
19900
19901
252b5132
RH
19902tdefaults=""
19903test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
19904test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 19905test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
19906test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
19907test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
19908
6be7c12c 19909
5464f5a1
NN
19910
19911
19912for ac_header in stdlib.h unistd.h
252b5132 19913do
5464f5a1
NN
19914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19915if eval "test \"\${$as_ac_Header+set}\" = set"; then
19916 echo "$as_me:$LINENO: checking for $ac_header" >&5
19917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19918if eval "test \"\${$as_ac_Header+set}\" = set"; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19920fi
19921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19923else
19924 # Is the header compilable?
19925echo "$as_me:$LINENO: checking $ac_header usability" >&5
19926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19927cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h. */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h. */
19933$ac_includes_default
19934#include <$ac_header>
19935_ACEOF
19936rm -f conftest.$ac_objext
19937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19938 (eval $ac_compile) 2>conftest.er1
19939 ac_status=$?
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } &&
49c96104
SE
19945 { ac_try='test -z "$ac_c_werror_flag"
19946 || test ! -s conftest.err'
5464f5a1
NN
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19949 ac_status=$?
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; } &&
19952 { ac_try='test -s conftest.$ac_objext'
19953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954 (eval $ac_try) 2>&5
19955 ac_status=$?
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; }; then
19958 ac_header_compiler=yes
19959else
19960 echo "$as_me: failed program was:" >&5
19961sed 's/^/| /' conftest.$ac_ext >&5
19962
19963ac_header_compiler=no
19964fi
19965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19967echo "${ECHO_T}$ac_header_compiler" >&6
19968
19969# Is the header present?
19970echo "$as_me:$LINENO: checking $ac_header presence" >&5
19971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19972cat >conftest.$ac_ext <<_ACEOF
19973/* confdefs.h. */
19974_ACEOF
19975cat confdefs.h >>conftest.$ac_ext
19976cat >>conftest.$ac_ext <<_ACEOF
19977/* end confdefs.h. */
19978#include <$ac_header>
19979_ACEOF
19980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19982 ac_status=$?
19983 grep -v '^ *+' conftest.er1 >conftest.err
19984 rm -f conftest.er1
19985 cat conftest.err >&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); } >/dev/null; then
19988 if test -s conftest.err; then
19989 ac_cpp_err=$ac_c_preproc_warn_flag
19990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19991 else
19992 ac_cpp_err=
19993 fi
252b5132 19994else
5464f5a1 19995 ac_cpp_err=yes
252b5132 19996fi
5464f5a1
NN
19997if test -z "$ac_cpp_err"; then
19998 ac_header_preproc=yes
19999else
20000 echo "$as_me: failed program was:" >&5
20001sed 's/^/| /' conftest.$ac_ext >&5
20002
20003 ac_header_preproc=no
252b5132 20004fi
5464f5a1
NN
20005rm -f conftest.err conftest.$ac_ext
20006echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20007echo "${ECHO_T}$ac_header_preproc" >&6
20008
20009# So? What about this header?
20010case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20011 yes:no: )
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20013echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20015echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20016 ac_header_preproc=yes
20017 ;;
20018 no:yes:* )
20019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20020echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20022echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20024echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20026echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20030echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20031 (
20032 cat <<\_ASBOX
20033## ------------------------------------------ ##
20034## Report this to the AC_PACKAGE_NAME lists. ##
20035## ------------------------------------------ ##
20036_ASBOX
20037 ) |
20038 sed "s/^/$as_me: WARNING: /" >&2
20039 ;;
20040esac
20041echo "$as_me:$LINENO: checking for $ac_header" >&5
20042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20043if eval "test \"\${$as_ac_Header+set}\" = set"; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 20045else
5464f5a1
NN
20046 eval "$as_ac_Header=\$ac_header_preproc"
20047fi
20048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20050
20051fi
20052if test `eval echo '${'$as_ac_Header'}'` = yes; then
20053 cat >>confdefs.h <<_ACEOF
20054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20055_ACEOF
20056
252b5132 20057fi
5464f5a1 20058
252b5132
RH
20059done
20060
5464f5a1 20061
252b5132
RH
20062for ac_func in getpagesize
20063do
5464f5a1
NN
20064as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20065echo "$as_me:$LINENO: checking for $ac_func" >&5
20066echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20067if eval "test \"\${$as_ac_var+set}\" = set"; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20069else
20070 cat >conftest.$ac_ext <<_ACEOF
20071/* confdefs.h. */
20072_ACEOF
20073cat confdefs.h >>conftest.$ac_ext
20074cat >>conftest.$ac_ext <<_ACEOF
20075/* end confdefs.h. */
20076/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20078#define $ac_func innocuous_$ac_func
20079
252b5132 20080/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
20081 which can conflict with char $ac_func (); below.
20082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20083 <limits.h> exists even on freestanding compilers. */
20084
20085#ifdef __STDC__
20086# include <limits.h>
20087#else
20088# include <assert.h>
20089#endif
6be7c12c 20090
5464f5a1 20091#undef $ac_func
252b5132 20092
5464f5a1
NN
20093/* Override any gcc2 internal prototype to avoid an error. */
20094#ifdef __cplusplus
20095extern "C"
20096{
20097#endif
20098/* We use char because int might match the return type of a gcc2
20099 builtin and then its argument prototype would still apply. */
20100char $ac_func ();
252b5132
RH
20101/* The GNU C library defines this for functions which it implements
20102 to always fail with ENOSYS. Some functions are actually named
20103 something starting with __ and the normal name is an alias. */
20104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20105choke me
20106#else
5464f5a1
NN
20107char (*f) () = $ac_func;
20108#endif
20109#ifdef __cplusplus
20110}
252b5132
RH
20111#endif
20112
5464f5a1
NN
20113int
20114main ()
20115{
20116return f != $ac_func;
20117 ;
20118 return 0;
20119}
20120_ACEOF
20121rm -f conftest.$ac_objext conftest$ac_exeext
20122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20123 (eval $ac_link) 2>conftest.er1
20124 ac_status=$?
20125 grep -v '^ *+' conftest.er1 >conftest.err
20126 rm -f conftest.er1
20127 cat conftest.err >&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } &&
49c96104
SE
20130 { ac_try='test -z "$ac_c_werror_flag"
20131 || test ! -s conftest.err'
5464f5a1
NN
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20134 ac_status=$?
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; } &&
20137 { ac_try='test -s conftest$ac_exeext'
20138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139 (eval $ac_try) 2>&5
20140 ac_status=$?
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; }; then
20143 eval "$as_ac_var=yes"
20144else
20145 echo "$as_me: failed program was:" >&5
20146sed 's/^/| /' conftest.$ac_ext >&5
20147
20148eval "$as_ac_var=no"
20149fi
20150rm -f conftest.err conftest.$ac_objext \
20151 conftest$ac_exeext conftest.$ac_ext
20152fi
20153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20154echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20155if test `eval echo '${'$as_ac_var'}'` = yes; then
20156 cat >>confdefs.h <<_ACEOF
20157#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20158_ACEOF
252b5132 20159
252b5132
RH
20160fi
20161done
20162
5464f5a1
NN
20163echo "$as_me:$LINENO: checking for working mmap" >&5
20164echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20165if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
20167else
20168 if test "$cross_compiling" = yes; then
20169 ac_cv_func_mmap_fixed_mapped=no
20170else
5464f5a1
NN
20171 cat >conftest.$ac_ext <<_ACEOF
20172/* confdefs.h. */
20173_ACEOF
20174cat confdefs.h >>conftest.$ac_ext
20175cat >>conftest.$ac_ext <<_ACEOF
20176/* end confdefs.h. */
20177$ac_includes_default
20178/* malloc might have been renamed as rpl_malloc. */
20179#undef malloc
6be7c12c 20180
252b5132
RH
20181/* Thanks to Mike Haertel and Jim Avera for this test.
20182 Here is a matrix of mmap possibilities:
20183 mmap private not fixed
20184 mmap private fixed at somewhere currently unmapped
20185 mmap private fixed at somewhere already mapped
20186 mmap shared not fixed
20187 mmap shared fixed at somewhere currently unmapped
20188 mmap shared fixed at somewhere already mapped
20189 For private mappings, we should verify that changes cannot be read()
20190 back from the file, nor mmap's back from the file at a different
20191 address. (There have been systems where private was not correctly
20192 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 20193 VM page cache was not coherent with the file system buffer cache
252b5132
RH
20194 like early versions of FreeBSD and possibly contemporary NetBSD.)
20195 For shared mappings, we should conversely verify that changes get
5464f5a1 20196 propagated back to all the places they're supposed to be.
252b5132
RH
20197
20198 Grep wants private fixed already mapped.
20199 The main things grep needs to know about mmap are:
20200 * does it exist and is it safe to write into the mmap'd area
20201 * how to use it (BSD variants) */
5464f5a1 20202
252b5132
RH
20203#include <fcntl.h>
20204#include <sys/mman.h>
20205
5464f5a1
NN
20206#if !STDC_HEADERS && !HAVE_STDLIB_H
20207char *malloc ();
20208#endif
6be7c12c 20209
5464f5a1
NN
20210/* This mess was copied from the GNU getpagesize.h. */
20211#if !HAVE_GETPAGESIZE
252b5132 20212/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 20213# if !HAVE_SYS_PARAM_H
252b5132
RH
20214# define HAVE_SYS_PARAM_H 1
20215# endif
20216
20217# ifdef _SC_PAGESIZE
20218# define getpagesize() sysconf(_SC_PAGESIZE)
20219# else /* no _SC_PAGESIZE */
5464f5a1 20220# if HAVE_SYS_PARAM_H
252b5132
RH
20221# include <sys/param.h>
20222# ifdef EXEC_PAGESIZE
20223# define getpagesize() EXEC_PAGESIZE
20224# else /* no EXEC_PAGESIZE */
20225# ifdef NBPG
20226# define getpagesize() NBPG * CLSIZE
20227# ifndef CLSIZE
20228# define CLSIZE 1
20229# endif /* no CLSIZE */
20230# else /* no NBPG */
20231# ifdef NBPC
20232# define getpagesize() NBPC
20233# else /* no NBPC */
20234# ifdef PAGESIZE
20235# define getpagesize() PAGESIZE
20236# endif /* PAGESIZE */
20237# endif /* no NBPC */
20238# endif /* no NBPG */
20239# endif /* no EXEC_PAGESIZE */
20240# else /* no HAVE_SYS_PARAM_H */
20241# define getpagesize() 8192 /* punt totally */
20242# endif /* no HAVE_SYS_PARAM_H */
20243# endif /* no _SC_PAGESIZE */
20244
5464f5a1
NN
20245#endif /* no HAVE_GETPAGESIZE */
20246
20247int
20248main ()
20249{
20250 char *data, *data2, *data3;
20251 int i, pagesize;
20252 int fd;
20253
20254 pagesize = getpagesize ();
20255
20256 /* First, make a file with some known garbage in it. */
20257 data = (char *) malloc (pagesize);
20258 if (!data)
20259 exit (1);
20260 for (i = 0; i < pagesize; ++i)
20261 *(data + i) = rand ();
20262 umask (0);
20263 fd = creat ("conftest.mmap", 0600);
20264 if (fd < 0)
20265 exit (1);
20266 if (write (fd, data, pagesize) != pagesize)
20267 exit (1);
20268 close (fd);
20269
20270 /* Next, try to mmap the file at a fixed address which already has
20271 something else allocated at it. If we can, also make sure that
20272 we see the same garbage. */
20273 fd = open ("conftest.mmap", O_RDWR);
20274 if (fd < 0)
20275 exit (1);
20276 data2 = (char *) malloc (2 * pagesize);
20277 if (!data2)
20278 exit (1);
20279 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20280 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20281 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20282 exit (1);
20283 for (i = 0; i < pagesize; ++i)
20284 if (*(data + i) != *(data2 + i))
20285 exit (1);
20286
20287 /* Finally, make sure that changes to the mapped area do not
20288 percolate back to the file as seen by read(). (This is a bug on
20289 some variants of i386 svr4.0.) */
20290 for (i = 0; i < pagesize; ++i)
20291 *(data2 + i) = *(data2 + i) + 1;
20292 data3 = (char *) malloc (pagesize);
20293 if (!data3)
20294 exit (1);
20295 if (read (fd, data3, pagesize) != pagesize)
20296 exit (1);
20297 for (i = 0; i < pagesize; ++i)
20298 if (*(data + i) != *(data3 + i))
20299 exit (1);
20300 close (fd);
20301 exit (0);
20302}
20303_ACEOF
20304rm -f conftest$ac_exeext
20305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20306 (eval $ac_link) 2>&5
20307 ac_status=$?
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 ac_cv_func_mmap_fixed_mapped=yes
20316else
20317 echo "$as_me: program exited with status $ac_status" >&5
20318echo "$as_me: failed program was:" >&5
20319sed 's/^/| /' conftest.$ac_ext >&5
20320
20321( exit $ac_status )
20322ac_cv_func_mmap_fixed_mapped=no
20323fi
20324rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20325fi
20326fi
20327echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20328echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20329if test $ac_cv_func_mmap_fixed_mapped = yes; then
20330
20331cat >>confdefs.h <<\_ACEOF
20332#define HAVE_MMAP 1
20333_ACEOF
20334
20335fi
20336rm -f conftest.mmap
20337
20338
20339
20340for ac_func in madvise mprotect
20341do
20342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20343echo "$as_me:$LINENO: checking for $ac_func" >&5
20344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20345if eval "test \"\${$as_ac_var+set}\" = set"; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20347else
20348 cat >conftest.$ac_ext <<_ACEOF
20349/* confdefs.h. */
20350_ACEOF
20351cat confdefs.h >>conftest.$ac_ext
20352cat >>conftest.$ac_ext <<_ACEOF
20353/* end confdefs.h. */
20354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20356#define $ac_func innocuous_$ac_func
20357
20358/* System header to define __stub macros and hopefully few prototypes,
20359 which can conflict with char $ac_func (); below.
20360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20361 <limits.h> exists even on freestanding compilers. */
20362
20363#ifdef __STDC__
20364# include <limits.h>
20365#else
20366# include <assert.h>
20367#endif
20368
20369#undef $ac_func
20370
20371/* Override any gcc2 internal prototype to avoid an error. */
20372#ifdef __cplusplus
20373extern "C"
20374{
20375#endif
20376/* We use char because int might match the return type of a gcc2
20377 builtin and then its argument prototype would still apply. */
20378char $ac_func ();
20379/* The GNU C library defines this for functions which it implements
20380 to always fail with ENOSYS. Some functions are actually named
20381 something starting with __ and the normal name is an alias. */
20382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20383choke me
20384#else
20385char (*f) () = $ac_func;
20386#endif
20387#ifdef __cplusplus
20388}
20389#endif
20390
20391int
20392main ()
20393{
20394return f != $ac_func;
20395 ;
20396 return 0;
20397}
20398_ACEOF
20399rm -f conftest.$ac_objext conftest$ac_exeext
20400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20401 (eval $ac_link) 2>conftest.er1
20402 ac_status=$?
20403 grep -v '^ *+' conftest.er1 >conftest.err
20404 rm -f conftest.er1
20405 cat conftest.err >&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } &&
49c96104
SE
20408 { ac_try='test -z "$ac_c_werror_flag"
20409 || test ! -s conftest.err'
5464f5a1
NN
20410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411 (eval $ac_try) 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; } &&
20415 { ac_try='test -s conftest$ac_exeext'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
20421 eval "$as_ac_var=yes"
20422else
20423 echo "$as_me: failed program was:" >&5
20424sed 's/^/| /' conftest.$ac_ext >&5
20425
20426eval "$as_ac_var=no"
20427fi
20428rm -f conftest.err conftest.$ac_objext \
20429 conftest$ac_exeext conftest.$ac_ext
20430fi
20431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20432echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20433if test `eval echo '${'$as_ac_var'}'` = yes; then
20434 cat >>confdefs.h <<_ACEOF
20435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20436_ACEOF
20437
20438fi
20439done
20440
20441case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20442 true+yes )
20443cat >>confdefs.h <<\_ACEOF
20444#define USE_MMAP 1
20445_ACEOF
20446 ;;
20447esac
20448
20449rm -f doc/config.status
20450 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20451
20e95c23 20452
5464f5a1
NN
20453 ac_config_commands="$ac_config_commands default"
20454
108a6f8e
CD
20455
20456
20457
20458
20459
5464f5a1
NN
20460cat >confcache <<\_ACEOF
20461# This file is a shell script that caches the results of configure
20462# tests run on this system so they can be shared between configure
20463# scripts and configure runs, see configure's option --config-cache.
20464# It is not useful on other systems. If it contains results you don't
20465# want to keep, you may remove or edit it.
20466#
20467# config.status only pays attention to the cache file if you give it
20468# the --recheck option to rerun configure.
20469#
20470# `ac_cv_env_foo' variables (set or unset) will be overridden when
20471# loading this file, other *unset* `ac_cv_foo' will be assigned the
20472# following values.
20473
20474_ACEOF
20475
20476# The following way of writing the cache mishandles newlines in values,
20477# but we know of no workaround that is simple, portable, and efficient.
20478# So, don't put newlines in cache variables' values.
20479# Ultrix sh set writes to stderr and can't be redirected directly,
20480# and sets the high bit in the cache file unless we assign to the vars.
20481{
20482 (set) 2>&1 |
20483 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20484 *ac_space=\ *)
20485 # `set' does not quote correctly, so add quotes (double-quote
20486 # substitution turns \\\\ into \\, and sed turns \\ into \).
20487 sed -n \
20488 "s/'/'\\\\''/g;
20489 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20490 ;;
20491 *)
20492 # `set' quotes correctly as required by POSIX, so do not add quotes.
20493 sed -n \
20494 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20495 ;;
20496 esac;
20497} |
20498 sed '
20499 t clear
20500 : clear
20501 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20502 t end
20503 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20504 : end' >>confcache
20505if diff $cache_file confcache >/dev/null 2>&1; then :; else
20506 if test -w $cache_file; then
20507 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20508 cat confcache >$cache_file
20509 else
20510 echo "not updating unwritable cache $cache_file"
20511 fi
20512fi
20513rm -f confcache
20514
20515test "x$prefix" = xNONE && prefix=$ac_default_prefix
20516# Let make expand exec_prefix.
20517test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20518
20519# VPATH may cause trouble with some makes, so we remove $(srcdir),
20520# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20521# trailing colons and then remove the whole line if VPATH becomes empty
20522# (actually we leave an empty line to preserve line numbers).
20523if test "x$srcdir" = x.; then
20524 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20525s/:*\$(srcdir):*/:/;
20526s/:*\${srcdir}:*/:/;
20527s/:*@srcdir@:*/:/;
20528s/^\([^=]*=[ ]*\):*/\1/;
20529s/:*$//;
20530s/^[^=]*=[ ]*$//;
20531}'
20532fi
20533
20534DEFS=-DHAVE_CONFIG_H
20535
20536ac_libobjs=
20537ac_ltlibobjs=
20538for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20539 # 1. Remove the extension, and $U if already installed.
20540 ac_i=`echo "$ac_i" |
20541 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20542 # 2. Add them.
20543 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20544 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20545done
20546LIBOBJS=$ac_libobjs
20547
20548LTLIBOBJS=$ac_ltlibobjs
20549
20550
f5385ebf
AM
20551if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20552 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20553Usually this means the macro was only invoked conditionally." >&5
20554echo "$as_me: error: conditional \"AMDEP\" was never defined.
20555Usually this means the macro was only invoked conditionally." >&2;}
20556 { (exit 1); exit 1; }; }
20557fi
20558if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20559 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20560Usually this means the macro was only invoked conditionally." >&5
20561echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20562Usually this means the macro was only invoked conditionally." >&2;}
20563 { (exit 1); exit 1; }; }
20564fi
20565if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20566 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20567Usually this means the macro was only invoked conditionally." >&5
20568echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20569Usually this means the macro was only invoked conditionally." >&2;}
20570 { (exit 1); exit 1; }; }
20571fi
d5fbea21
DJ
20572if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20573 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20574Usually this means the macro was only invoked conditionally." >&5
20575echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20576Usually this means the macro was only invoked conditionally." >&2;}
20577 { (exit 1); exit 1; }; }
20578fi
f5385ebf
AM
20579if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20580 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20581Usually this means the macro was only invoked conditionally." >&5
20582echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20583Usually this means the macro was only invoked conditionally." >&2;}
20584 { (exit 1); exit 1; }; }
20585fi
5464f5a1
NN
20586
20587: ${CONFIG_STATUS=./config.status}
20588ac_clean_files_save=$ac_clean_files
20589ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20590{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20591echo "$as_me: creating $CONFIG_STATUS" >&6;}
20592cat >$CONFIG_STATUS <<_ACEOF
20593#! $SHELL
20594# Generated by $as_me.
20595# Run this file to recreate the current configuration.
20596# Compiler output produced by configure, useful for debugging
20597# configure, is in config.log if it exists.
20598
20599debug=false
20600ac_cs_recheck=false
20601ac_cs_silent=false
20602SHELL=\${CONFIG_SHELL-$SHELL}
20603_ACEOF
20604
20605cat >>$CONFIG_STATUS <<\_ACEOF
20606## --------------------- ##
20607## M4sh Initialization. ##
20608## --------------------- ##
20609
20610# Be Bourne compatible
20611if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20612 emulate sh
20613 NULLCMD=:
20614 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20615 # is contrary to our usage. Disable this feature.
20616 alias -g '${1+"$@"}'='"$@"'
20617elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20618 set -o posix
20619fi
20620DUALCASE=1; export DUALCASE # for MKS sh
20621
20622# Support unset when possible.
20623if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20624 as_unset=unset
20625else
20626 as_unset=false
20627fi
20628
20629
20630# Work around bugs in pre-3.0 UWIN ksh.
20631$as_unset ENV MAIL MAILPATH
20632PS1='$ '
20633PS2='> '
20634PS4='+ '
20635
20636# NLS nuisances.
20637for as_var in \
20638 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20639 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20640 LC_TELEPHONE LC_TIME
20641do
20642 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20643 eval $as_var=C; export $as_var
20644 else
20645 $as_unset $as_var
20646 fi
20647done
20648
20649# Required to use basename.
20650if expr a : '\(a\)' >/dev/null 2>&1; then
20651 as_expr=expr
20652else
20653 as_expr=false
20654fi
20655
20656if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20657 as_basename=basename
20658else
20659 as_basename=false
20660fi
252b5132 20661
6be7c12c 20662
5464f5a1
NN
20663# Name of the executable.
20664as_me=`$as_basename "$0" ||
20665$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20666 X"$0" : 'X\(//\)$' \| \
20667 X"$0" : 'X\(/\)$' \| \
20668 . : '\(.\)' 2>/dev/null ||
20669echo X/"$0" |
20670 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20671 /^X\/\(\/\/\)$/{ s//\1/; q; }
20672 /^X\/\(\/\).*/{ s//\1/; q; }
20673 s/.*/./; q'`
20674
20675
20676# PATH needs CR, and LINENO needs CR and PATH.
20677# Avoid depending upon Character Ranges.
20678as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20679as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20680as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20681as_cr_digits='0123456789'
20682as_cr_alnum=$as_cr_Letters$as_cr_digits
20683
20684# The user is always right.
20685if test "${PATH_SEPARATOR+set}" != set; then
20686 echo "#! /bin/sh" >conf$$.sh
20687 echo "exit 0" >>conf$$.sh
20688 chmod +x conf$$.sh
20689 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20690 PATH_SEPARATOR=';'
20691 else
20692 PATH_SEPARATOR=:
20693 fi
20694 rm -f conf$$.sh
20695fi
20696
20697
20698 as_lineno_1=$LINENO
20699 as_lineno_2=$LINENO
20700 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20701 test "x$as_lineno_1" != "x$as_lineno_2" &&
20702 test "x$as_lineno_3" = "x$as_lineno_2" || {
20703 # Find who we are. Look in the path if we contain no path at all
20704 # relative or not.
20705 case $0 in
20706 *[\\/]* ) as_myself=$0 ;;
20707 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20708for as_dir in $PATH
20709do
20710 IFS=$as_save_IFS
20711 test -z "$as_dir" && as_dir=.
20712 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20713done
20714
20715 ;;
20716 esac
20717 # We did not find ourselves, most probably we were run as `sh COMMAND'
20718 # in which case we are not to be found in the path.
20719 if test "x$as_myself" = x; then
20720 as_myself=$0
20721 fi
20722 if test ! -f "$as_myself"; then
20723 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20724echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20725 { (exit 1); exit 1; }; }
20726 fi
20727 case $CONFIG_SHELL in
20728 '')
20729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20730for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20731do
20732 IFS=$as_save_IFS
20733 test -z "$as_dir" && as_dir=.
20734 for as_base in sh bash ksh sh5; do
20735 case $as_dir in
20736 /*)
20737 if ("$as_dir/$as_base" -c '
20738 as_lineno_1=$LINENO
20739 as_lineno_2=$LINENO
20740 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20741 test "x$as_lineno_1" != "x$as_lineno_2" &&
20742 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20743 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20744 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20745 CONFIG_SHELL=$as_dir/$as_base
20746 export CONFIG_SHELL
20747 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20748 fi;;
20749 esac
20750 done
20751done
20752;;
20753 esac
20754
20755 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20756 # uniformly replaced by the line number. The first 'sed' inserts a
20757 # line-number line before each line; the second 'sed' does the real
20758 # work. The second script uses 'N' to pair each line-number line
20759 # with the numbered line, and appends trailing '-' during
20760 # substitution so that $LINENO is not a special case at line end.
20761 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20762 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20763 sed '=' <$as_myself |
20764 sed '
20765 N
20766 s,$,-,
20767 : loop
20768 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20769 t loop
20770 s,-$,,
20771 s,^['$as_cr_digits']*\n,,
20772 ' >$as_me.lineno &&
20773 chmod +x $as_me.lineno ||
20774 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20775echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20776 { (exit 1); exit 1; }; }
20777
20778 # Don't try to exec as it changes $[0], causing all sort of problems
20779 # (the dirname of $[0] is not the place where we might find the
20780 # original and so on. Autoconf is especially sensible to this).
20781 . ./$as_me.lineno
20782 # Exit status is that of the last command.
20783 exit
252b5132 20784}
6be7c12c 20785
5464f5a1
NN
20786
20787case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20788 *c*,-n*) ECHO_N= ECHO_C='
20789' ECHO_T=' ' ;;
20790 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20791 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20792esac
20793
20794if expr a : '\(a\)' >/dev/null 2>&1; then
20795 as_expr=expr
252b5132 20796else
5464f5a1 20797 as_expr=false
252b5132 20798fi
5464f5a1
NN
20799
20800rm -f conf$$ conf$$.exe conf$$.file
20801echo >conf$$.file
20802if ln -s conf$$.file conf$$ 2>/dev/null; then
20803 # We could just check for DJGPP; but this test a) works b) is more generic
20804 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20805 if test -f conf$$.exe; then
20806 # Don't use ln at all; we don't have any links
20807 as_ln_s='cp -p'
20808 else
20809 as_ln_s='ln -s'
20810 fi
20811elif ln conf$$.file conf$$ 2>/dev/null; then
20812 as_ln_s=ln
20813else
20814 as_ln_s='cp -p'
252b5132 20815fi
5464f5a1 20816rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 20817
5464f5a1
NN
20818if mkdir -p . 2>/dev/null; then
20819 as_mkdir_p=:
20820else
20821 test -d ./-p && rmdir ./-p
20822 as_mkdir_p=false
252b5132 20823fi
b3baf5d0 20824
5464f5a1 20825as_executable_p="test -f"
252b5132 20826
5464f5a1
NN
20827# Sed expression to map a string onto a valid CPP name.
20828as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 20829
5464f5a1
NN
20830# Sed expression to map a string onto a valid variable name.
20831as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 20832
252b5132 20833
5464f5a1
NN
20834# IFS
20835# We need space, tab and new line, in precisely that order.
20836as_nl='
20837'
20838IFS=" $as_nl"
252b5132 20839
5464f5a1
NN
20840# CDPATH.
20841$as_unset CDPATH
20842
20843exec 6>&1
20844
20845# Open the log real soon, to keep \$[0] and so on meaningful, and to
20846# report actual input values of CONFIG_FILES etc. instead of their
20847# values after options handling. Logging --version etc. is OK.
20848exec 5>>config.log
20849{
20850 echo
20851 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20852## Running $as_me. ##
20853_ASBOX
20854} >&5
20855cat >&5 <<_CSEOF
20856
20857This file was extended by $as_me, which was
20858generated by GNU Autoconf 2.59. Invocation command line was
20859
20860 CONFIG_FILES = $CONFIG_FILES
20861 CONFIG_HEADERS = $CONFIG_HEADERS
20862 CONFIG_LINKS = $CONFIG_LINKS
20863 CONFIG_COMMANDS = $CONFIG_COMMANDS
20864 $ $0 $@
20865
20866_CSEOF
20867echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20868echo >&5
20869_ACEOF
20870
20871# Files that config.status was made for.
20872if test -n "$ac_config_files"; then
20873 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 20874fi
5464f5a1
NN
20875
20876if test -n "$ac_config_headers"; then
20877 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 20878fi
252b5132 20879
5464f5a1
NN
20880if test -n "$ac_config_links"; then
20881 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 20882fi
252b5132 20883
5464f5a1
NN
20884if test -n "$ac_config_commands"; then
20885 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20886fi
252b5132 20887
5464f5a1
NN
20888cat >>$CONFIG_STATUS <<\_ACEOF
20889
20890ac_cs_usage="\
20891\`$as_me' instantiates files from templates according to the
20892current configuration.
20893
20894Usage: $0 [OPTIONS] [FILE]...
20895
20896 -h, --help print this help, then exit
20897 -V, --version print version number, then exit
20898 -q, --quiet do not print progress messages
20899 -d, --debug don't remove temporary files
20900 --recheck update $as_me by reconfiguring in the same conditions
20901 --file=FILE[:TEMPLATE]
20902 instantiate the configuration file FILE
20903 --header=FILE[:TEMPLATE]
20904 instantiate the configuration header FILE
20905
20906Configuration files:
20907$config_files
20908
20909Configuration headers:
20910$config_headers
20911
20912Configuration commands:
20913$config_commands
20914
20915Report bugs to <bug-autoconf@gnu.org>."
20916_ACEOF
20917
20918cat >>$CONFIG_STATUS <<_ACEOF
20919ac_cs_version="\\
20920config.status
20921configured by $0, generated by GNU Autoconf 2.59,
20922 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20923
20924Copyright (C) 2003 Free Software Foundation, Inc.
20925This config.status script is free software; the Free Software Foundation
20926gives unlimited permission to copy, distribute and modify it."
20927srcdir=$srcdir
20928INSTALL="$INSTALL"
20929_ACEOF
20930
20931cat >>$CONFIG_STATUS <<\_ACEOF
20932# If no file are specified by the user, then we need to provide default
20933# value. By we need to know if files were specified by the user.
20934ac_need_defaults=:
20935while test $# != 0
20936do
20937 case $1 in
20938 --*=*)
20939 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20940 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20941 ac_shift=:
6be7c12c 20942 ;;
5464f5a1
NN
20943 -*)
20944 ac_option=$1
20945 ac_optarg=$2
20946 ac_shift=shift
6be7c12c 20947 ;;
5464f5a1
NN
20948 *) # This is not an option, so the user has probably given explicit
20949 # arguments.
20950 ac_option=$1
20951 ac_need_defaults=false;;
20952 esac
252b5132 20953
5464f5a1
NN
20954 case $ac_option in
20955 # Handling of the options.
20956_ACEOF
20957cat >>$CONFIG_STATUS <<\_ACEOF
20958 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20959 ac_cs_recheck=: ;;
20960 --version | --vers* | -V )
20961 echo "$ac_cs_version"; exit 0 ;;
20962 --he | --h)
20963 # Conflict between --help and --header
20964 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20965Try \`$0 --help' for more information." >&5
20966echo "$as_me: error: ambiguous option: $1
20967Try \`$0 --help' for more information." >&2;}
20968 { (exit 1); exit 1; }; };;
20969 --help | --hel | -h )
20970 echo "$ac_cs_usage"; exit 0 ;;
20971 --debug | --d* | -d )
20972 debug=: ;;
20973 --file | --fil | --fi | --f )
20974 $ac_shift
20975 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20976 ac_need_defaults=false;;
20977 --header | --heade | --head | --hea )
20978 $ac_shift
20979 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20980 ac_need_defaults=false;;
20981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20982 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20983 ac_cs_silent=: ;;
6be7c12c 20984
5464f5a1
NN
20985 # This is an error.
20986 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20987Try \`$0 --help' for more information." >&5
20988echo "$as_me: error: unrecognized option: $1
20989Try \`$0 --help' for more information." >&2;}
20990 { (exit 1); exit 1; }; } ;;
252b5132 20991
5464f5a1 20992 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 20993
5464f5a1
NN
20994 esac
20995 shift
20996done
6be7c12c 20997
5464f5a1 20998ac_configure_extra_args=
252b5132 20999
5464f5a1
NN
21000if $ac_cs_silent; then
21001 exec 6>/dev/null
21002 ac_configure_extra_args="$ac_configure_extra_args --silent"
21003fi
6be7c12c 21004
5464f5a1
NN
21005_ACEOF
21006cat >>$CONFIG_STATUS <<_ACEOF
21007if \$ac_cs_recheck; then
21008 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21009 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21010fi
21011
21012_ACEOF
21013
21014cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 21015#
5464f5a1 21016# INIT-COMMANDS section.
6be7c12c 21017#
b3baf5d0 21018
f5385ebf 21019AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
21020
21021
21022# The HP-UX ksh and POSIX shell print the target directory to stdout
21023# if CDPATH is set.
21024(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21025
21026sed_quote_subst='$sed_quote_subst'
21027double_quote_subst='$double_quote_subst'
21028delay_variable_subst='$delay_variable_subst'
21029enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21030macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21031macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21032enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21033pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21034enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21035host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21036host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21037host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21038build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21039build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21040build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21041SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21042Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21043GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21044EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21045FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21046LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21047NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21048LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21049max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21050ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21051exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21052lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21053lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21054lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21055reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21056reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21057deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21058file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21059AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21060AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21061STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21062RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21063old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21064old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21065old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21066CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21067CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21068compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21069GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21070lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21071lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21072lt_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"`'
21073objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21074SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21075ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21076MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21077lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21078lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21079lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21080lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21081lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21082need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21083libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21084shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21085extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21086archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21087enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21088export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21089whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21090compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21091old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21092old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21093archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21094archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21095module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21096module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21097with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21098allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21099no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21100hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21101hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21102hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21103hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21104hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21105hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21106hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21107hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21108inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21109link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21110fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21111always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21112export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21113exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21114include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21115prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21116file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21117variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21118need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21119need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21120version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21121runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21122shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21123shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21124libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21125library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21126soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21127postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21128postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21129finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21130finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21131hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21132sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21133sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21134hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21135enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21136enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21137enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21138old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21139striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21140
21141LTCC='$LTCC'
21142LTCFLAGS='$LTCFLAGS'
21143compiler='$compiler_DEFAULT'
21144
21145# Quote evaled strings.
21146for var in SED \
21147GREP \
21148EGREP \
21149FGREP \
21150LD \
21151NM \
21152LN_S \
21153lt_SP2NL \
21154lt_NL2SP \
21155reload_flag \
21156deplibs_check_method \
21157file_magic_cmd \
21158AR \
21159AR_FLAGS \
21160STRIP \
21161RANLIB \
21162CC \
21163CFLAGS \
21164compiler \
21165lt_cv_sys_global_symbol_pipe \
21166lt_cv_sys_global_symbol_to_cdecl \
21167lt_cv_sys_global_symbol_to_c_name_address \
21168SHELL \
21169ECHO \
21170lt_prog_compiler_no_builtin_flag \
21171lt_prog_compiler_wl \
21172lt_prog_compiler_pic \
21173lt_prog_compiler_static \
21174lt_cv_prog_compiler_c_o \
21175need_locks \
21176shrext_cmds \
21177export_dynamic_flag_spec \
21178whole_archive_flag_spec \
21179compiler_needs_object \
21180with_gnu_ld \
21181allow_undefined_flag \
21182no_undefined_flag \
21183hardcode_libdir_flag_spec \
21184hardcode_libdir_flag_spec_ld \
21185hardcode_libdir_separator \
21186fix_srcfile_path \
21187exclude_expsyms \
21188include_expsyms \
21189file_list_spec \
21190variables_saved_for_relink \
21191libname_spec \
21192library_names_spec \
21193soname_spec \
21194finish_eval \
21195old_striplib \
21196striplib; do
21197 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21198 *[\\\\\\\`\\"\\\$]*)
21199 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21200 ;;
21201 *)
21202 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21203 ;;
21204 esac
21205done
21206
21207# Double-quote double-evaled strings.
21208for var in reload_cmds \
21209old_postinstall_cmds \
21210old_postuninstall_cmds \
21211old_archive_cmds \
21212extract_expsyms_cmds \
21213old_archive_from_new_cmds \
21214old_archive_from_expsyms_cmds \
21215archive_cmds \
21216archive_expsym_cmds \
21217module_cmds \
21218module_expsym_cmds \
21219export_symbols_cmds \
21220prelink_cmds \
21221postinstall_cmds \
21222postuninstall_cmds \
21223finish_cmds \
21224sys_lib_search_path_spec \
21225sys_lib_dlsearch_path_spec; do
21226 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21227 *[\\\\\\\`\\"\\\$]*)
21228 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21229 ;;
21230 *)
21231 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21232 ;;
21233 esac
21234done
21235
21236# Fix-up fallback echo if it was mangled by the above quoting rules.
21237case \$lt_ECHO in
21238*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21239 ;;
21240esac
21241
21242ac_aux_dir='$ac_aux_dir'
21243xsi_shell='$xsi_shell'
21244lt_shell_append='$lt_shell_append'
21245
21246# See if we are running on zsh, and set the options which allow our
21247# commands through without removal of \ escapes INIT.
21248if test -n "\${ZSH_VERSION+set}" ; then
21249 setopt NO_GLOB_SUBST
21250fi
21251
21252
21253 PACKAGE='$PACKAGE'
21254 VERSION='$VERSION'
21255 TIMESTAMP='$TIMESTAMP'
21256 RM='$RM'
21257 ofile='$ofile'
21258
21259
21260
20e95c23
DJ
21261# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21262 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21263 # from automake.
21264 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21265 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21266 LINGUAS="${LINGUAS-%UNSET%}"
21267
5464f5a1 21268
d5efd9fc
AM
21269GCC="$GCC"
21270CC="$CC"
21271acx_cv_header_stdint="$acx_cv_header_stdint"
21272acx_cv_type_int8_t="$acx_cv_type_int8_t"
21273acx_cv_type_int16_t="$acx_cv_type_int16_t"
21274acx_cv_type_int32_t="$acx_cv_type_int32_t"
21275acx_cv_type_int64_t="$acx_cv_type_int64_t"
21276acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21277ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21278ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21279ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21280ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21281ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21282ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21283ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21284ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21285
21286
5464f5a1
NN
21287
21288_ACEOF
21289
21290
21291
21292cat >>$CONFIG_STATUS <<\_ACEOF
21293for ac_config_target in $ac_config_targets
252b5132 21294do
5464f5a1
NN
21295 case "$ac_config_target" in
21296 # Handling of arguments.
21297 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21298 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21299 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21300 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 21301 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 21302 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 21303 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 21304 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
21305 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21306 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21307 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21308echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21309 { (exit 1); exit 1; }; };;
252b5132
RH
21310 esac
21311done
21312
5464f5a1
NN
21313# If the user did not use the arguments to specify the items to instantiate,
21314# then the envvar interface is used. Set only those that are not.
21315# We use the long form for the default assignment because of an extremely
21316# bizarre bug on SunOS 4.1.3.
21317if $ac_need_defaults; then
21318 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21319 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21320 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21321fi
21322
21323# Have a temporary directory for convenience. Make it in the build tree
21324# simply because there is no reason to put it here, and in addition,
21325# creating and moving files from /tmp can sometimes cause problems.
21326# Create a temporary directory, and hook for its removal unless debugging.
21327$debug ||
21328{
21329 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21330 trap '{ (exit 1); exit 1; }' 1 2 13 15
21331}
b3baf5d0 21332
5464f5a1 21333# Create a (secure) tmp directory for tmp files.
b3baf5d0 21334
5464f5a1
NN
21335{
21336 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21337 test -n "$tmp" && test -d "$tmp"
21338} ||
21339{
21340 tmp=./confstat$$-$RANDOM
21341 (umask 077 && mkdir $tmp)
21342} ||
21343{
21344 echo "$me: cannot create a temporary directory in ." >&2
21345 { (exit 1); exit 1; }
21346}
21347
21348_ACEOF
21349
21350cat >>$CONFIG_STATUS <<_ACEOF
21351
21352#
21353# CONFIG_FILES section.
21354#
b3baf5d0 21355
5464f5a1
NN
21356# No need to generate the scripts if there are no CONFIG_FILES.
21357# This happens for instance when ./config.status config.h
21358if test -n "\$CONFIG_FILES"; then
21359 # Protect against being on the right side of a sed subst in config.status.
21360 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21361 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21362s,@SHELL@,$SHELL,;t t
21363s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21364s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21365s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21366s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21367s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21368s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21369s,@exec_prefix@,$exec_prefix,;t t
21370s,@prefix@,$prefix,;t t
21371s,@program_transform_name@,$program_transform_name,;t t
21372s,@bindir@,$bindir,;t t
21373s,@sbindir@,$sbindir,;t t
21374s,@libexecdir@,$libexecdir,;t t
21375s,@datadir@,$datadir,;t t
21376s,@sysconfdir@,$sysconfdir,;t t
21377s,@sharedstatedir@,$sharedstatedir,;t t
21378s,@localstatedir@,$localstatedir,;t t
21379s,@libdir@,$libdir,;t t
21380s,@includedir@,$includedir,;t t
21381s,@oldincludedir@,$oldincludedir,;t t
21382s,@infodir@,$infodir,;t t
21383s,@mandir@,$mandir,;t t
21384s,@build_alias@,$build_alias,;t t
21385s,@host_alias@,$host_alias,;t t
21386s,@target_alias@,$target_alias,;t t
21387s,@DEFS@,$DEFS,;t t
21388s,@ECHO_C@,$ECHO_C,;t t
21389s,@ECHO_N@,$ECHO_N,;t t
21390s,@ECHO_T@,$ECHO_T,;t t
21391s,@LIBS@,$LIBS,;t t
21392s,@build@,$build,;t t
21393s,@build_cpu@,$build_cpu,;t t
21394s,@build_vendor@,$build_vendor,;t t
21395s,@build_os@,$build_os,;t t
21396s,@host@,$host,;t t
21397s,@host_cpu@,$host_cpu,;t t
21398s,@host_vendor@,$host_vendor,;t t
21399s,@host_os@,$host_os,;t t
21400s,@target@,$target,;t t
21401s,@target_cpu@,$target_cpu,;t t
21402s,@target_vendor@,$target_vendor,;t t
21403s,@target_os@,$target_os,;t t
21404s,@CC@,$CC,;t t
21405s,@CFLAGS@,$CFLAGS,;t t
21406s,@LDFLAGS@,$LDFLAGS,;t t
21407s,@CPPFLAGS@,$CPPFLAGS,;t t
21408s,@ac_ct_CC@,$ac_ct_CC,;t t
21409s,@EXEEXT@,$EXEEXT,;t t
21410s,@OBJEXT@,$OBJEXT,;t t
21411s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21412s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21413s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 21414s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
21415s,@PACKAGE@,$PACKAGE,;t t
21416s,@VERSION@,$VERSION,;t t
21417s,@ACLOCAL@,$ACLOCAL,;t t
21418s,@AUTOCONF@,$AUTOCONF,;t t
21419s,@AUTOMAKE@,$AUTOMAKE,;t t
21420s,@AUTOHEADER@,$AUTOHEADER,;t t
21421s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
21422s,@install_sh@,$install_sh,;t t
21423s,@STRIP@,$STRIP,;t t
21424s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21425s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21426s,@mkdir_p@,$mkdir_p,;t t
21427s,@AWK@,$AWK,;t t
5464f5a1 21428s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
21429s,@am__leading_dot@,$am__leading_dot,;t t
21430s,@AMTAR@,$AMTAR,;t t
21431s,@am__tar@,$am__tar,;t t
21432s,@am__untar@,$am__untar,;t t
21433s,@DEPDIR@,$DEPDIR,;t t
21434s,@am__include@,$am__include,;t t
21435s,@am__quote@,$am__quote,;t t
21436s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21437s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21438s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21439s,@CCDEPMODE@,$CCDEPMODE,;t t
21440s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21441s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
21442s,@AR@,$AR,;t t
21443s,@ac_ct_AR@,$ac_ct_AR,;t t
21444s,@RANLIB@,$RANLIB,;t t
21445s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5464f5a1 21446s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb
SE
21447s,@SED@,$SED,;t t
21448s,@EGREP@,$EGREP,;t t
21449s,@FGREP@,$FGREP,;t t
21450s,@GREP@,$GREP,;t t
21451s,@LD@,$LD,;t t
21452s,@DUMPBIN@,$DUMPBIN,;t t
21453s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21454s,@NM@,$NM,;t t
21455s,@LN_S@,$LN_S,;t t
21456s,@lt_ECHO@,$lt_ECHO,;t t
21457s,@CPP@,$CPP,;t t
0d4a1476 21458s,@DEBUGDIR@,$DEBUGDIR,;t t
92f01d61 21459s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
21460s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21461s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 21462s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 21463s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
21464s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21465s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21466s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
21467s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21468s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
21469s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21470s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
21471s,@host_noncanonical@,$host_noncanonical,;t t
21472s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
21473s,@bfdlibdir@,$bfdlibdir,;t t
21474s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 21475s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
21476s,@LIBINTL@,$LIBINTL,;t t
21477s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21478s,@INCINTL@,$INCINTL,;t t
5464f5a1 21479s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
21480s,@GMSGFMT@,$GMSGFMT,;t t
21481s,@POSUB@,$POSUB,;t t
5464f5a1 21482s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 21483s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 21484s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
21485s,@GENCAT@,$GENCAT,;t t
21486s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 21487s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
21488s,@MSGFMT@,$MSGFMT,;t t
21489s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
21490s,@HDEFINES@,$HDEFINES,;t t
21491s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
d2df793a 21492s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
5464f5a1
NN
21493s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21494s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21495s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
d2df793a 21496s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
5464f5a1
NN
21497s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21498s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21499s,@COREFILE@,$COREFILE,;t t
21500s,@COREFLAG@,$COREFLAG,;t t
21501s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21502s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21503s,@TDEFINES@,$TDEFINES,;t t
21504s,@wordsize@,$wordsize,;t t
21e40a48 21505s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
21506s,@all_backends@,$all_backends,;t t
21507s,@bfd_backends@,$bfd_backends,;t t
21508s,@bfd_machines@,$bfd_machines,;t t
21509s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21510s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21511s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21512s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
21513s,@datarootdir@,$datarootdir,;t t
21514s,@docdir@,$docdir,;t t
21515s,@htmldir@,$htmldir,;t t
5464f5a1
NN
21516s,@LIBOBJS@,$LIBOBJS,;t t
21517s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 21518CEOF
252b5132 21519
5464f5a1
NN
21520_ACEOF
21521
21522 cat >>$CONFIG_STATUS <<\_ACEOF
21523 # Split the substitutions into bite-sized pieces for seds with
21524 # small command number limits, like on Digital OSF/1 and HP-UX.
21525 ac_max_sed_lines=48
21526 ac_sed_frag=1 # Number of current file.
21527 ac_beg=1 # First line for current file.
21528 ac_end=$ac_max_sed_lines # Line after last line for current file.
21529 ac_more_lines=:
21530 ac_sed_cmds=
21531 while $ac_more_lines; do
21532 if test $ac_beg -gt 1; then
21533 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 21534 else
5464f5a1
NN
21535 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21536 fi
21537 if test ! -s $tmp/subs.frag; then
21538 ac_more_lines=false
21539 else
21540 # The purpose of the label and of the branching condition is to
21541 # speed up the sed processing (if there are no `@' at all, there
21542 # is no need to browse any of the substitutions).
21543 # These are the two extra sed commands mentioned above.
21544 (echo ':t
21545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21546 if test -z "$ac_sed_cmds"; then
21547 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21548 else
21549 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21550 fi
21551 ac_sed_frag=`expr $ac_sed_frag + 1`
21552 ac_beg=$ac_end
21553 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 21554 fi
5464f5a1
NN
21555 done
21556 if test -z "$ac_sed_cmds"; then
21557 ac_sed_cmds=cat
252b5132 21558 fi
5464f5a1 21559fi # test -n "$CONFIG_FILES"
6be7c12c 21560
5464f5a1
NN
21561_ACEOF
21562cat >>$CONFIG_STATUS <<\_ACEOF
21563for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 21564 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
21565 case $ac_file in
21566 - | *:- | *:-:* ) # input from stdin
21567 cat >$tmp/stdin
21568 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21569 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21570 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21572 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
21573 esac
21574
5464f5a1
NN
21575 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21576 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21577$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21578 X"$ac_file" : 'X\(//\)[^/]' \| \
21579 X"$ac_file" : 'X\(//\)$' \| \
21580 X"$ac_file" : 'X\(/\)' \| \
21581 . : '\(.\)' 2>/dev/null ||
21582echo X"$ac_file" |
21583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21585 /^X\(\/\/\)$/{ s//\1/; q; }
21586 /^X\(\/\).*/{ s//\1/; q; }
21587 s/.*/./; q'`
21588 { if $as_mkdir_p; then
21589 mkdir -p "$ac_dir"
252b5132 21590 else
5464f5a1
NN
21591 as_dir="$ac_dir"
21592 as_dirs=
21593 while test ! -d "$as_dir"; do
21594 as_dirs="$as_dir $as_dirs"
21595 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21596$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21597 X"$as_dir" : 'X\(//\)[^/]' \| \
21598 X"$as_dir" : 'X\(//\)$' \| \
21599 X"$as_dir" : 'X\(/\)' \| \
21600 . : '\(.\)' 2>/dev/null ||
21601echo X"$as_dir" |
21602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21604 /^X\(\/\/\)$/{ s//\1/; q; }
21605 /^X\(\/\).*/{ s//\1/; q; }
21606 s/.*/./; q'`
21607 done
21608 test ! -n "$as_dirs" || mkdir $as_dirs
21609 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21610echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21611 { (exit 1); exit 1; }; }; }
21612
21613 ac_builddir=.
21614
21615if test "$ac_dir" != .; then
21616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21617 # A "../" for each directory in $ac_dir_suffix.
21618 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21619else
21620 ac_dir_suffix= ac_top_builddir=
21621fi
252b5132 21622
5464f5a1
NN
21623case $srcdir in
21624 .) # No --srcdir option. We are building in place.
21625 ac_srcdir=.
21626 if test -z "$ac_top_builddir"; then
21627 ac_top_srcdir=.
21628 else
21629 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21630 fi ;;
21631 [\\/]* | ?:[\\/]* ) # Absolute path.
21632 ac_srcdir=$srcdir$ac_dir_suffix;
21633 ac_top_srcdir=$srcdir ;;
252b5132 21634 *) # Relative path.
5464f5a1
NN
21635 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21636 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21637esac
252b5132 21638
5464f5a1
NN
21639# Do not use `cd foo && pwd` to compute absolute paths, because
21640# the directories may not exist.
21641case `pwd` in
21642.) ac_abs_builddir="$ac_dir";;
21643*)
21644 case "$ac_dir" in
21645 .) ac_abs_builddir=`pwd`;;
21646 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21647 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21648 esac;;
21649esac
21650case $ac_abs_builddir in
21651.) ac_abs_top_builddir=${ac_top_builddir}.;;
21652*)
21653 case ${ac_top_builddir}. in
21654 .) ac_abs_top_builddir=$ac_abs_builddir;;
21655 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21656 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21657 esac;;
21658esac
21659case $ac_abs_builddir in
21660.) ac_abs_srcdir=$ac_srcdir;;
21661*)
21662 case $ac_srcdir in
21663 .) ac_abs_srcdir=$ac_abs_builddir;;
21664 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21665 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21666 esac;;
21667esac
21668case $ac_abs_builddir in
21669.) ac_abs_top_srcdir=$ac_top_srcdir;;
21670*)
21671 case $ac_top_srcdir in
21672 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21673 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21674 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21675 esac;;
21676esac
252b5132 21677
5464f5a1
NN
21678
21679 case $INSTALL in
21680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21681 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 21682 esac
252b5132 21683
49c96104
SE
21684 if test x"$ac_file" != x-; then
21685 { echo "$as_me:$LINENO: creating $ac_file" >&5
21686echo "$as_me: creating $ac_file" >&6;}
21687 rm -f "$ac_file"
21688 fi
5464f5a1
NN
21689 # Let's still pretend it is `configure' which instantiates (i.e., don't
21690 # use $as_me), people would be surprised to read:
21691 # /* config.h. Generated by config.status. */
21692 if test x"$ac_file" = x-; then
21693 configure_input=
21694 else
21695 configure_input="$ac_file. "
21696 fi
21697 configure_input=$configure_input"Generated from `echo $ac_file_in |
21698 sed 's,.*/,,'` by configure."
21699
21700 # First look for the input files in the build tree, otherwise in the
21701 # src tree.
21702 ac_file_inputs=`IFS=:
21703 for f in $ac_file_in; do
21704 case $f in
21705 -) echo $tmp/stdin ;;
21706 [\\/$]*)
21707 # Absolute (can't be DOS-style, as IFS=:)
21708 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21709echo "$as_me: error: cannot find input file: $f" >&2;}
21710 { (exit 1); exit 1; }; }
21711 echo "$f";;
21712 *) # Relative
21713 if test -f "$f"; then
21714 # Build tree
21715 echo "$f"
21716 elif test -f "$srcdir/$f"; then
21717 # Source tree
21718 echo "$srcdir/$f"
21719 else
21720 # /dev/null tree
21721 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21722echo "$as_me: error: cannot find input file: $f" >&2;}
21723 { (exit 1); exit 1; }; }
21724 fi;;
21725 esac
21726 done` || { (exit 1); exit 1; }
5464f5a1
NN
21727_ACEOF
21728cat >>$CONFIG_STATUS <<_ACEOF
21729 sed "$ac_vpsub
21730$extrasub
21731_ACEOF
21732cat >>$CONFIG_STATUS <<\_ACEOF
21733:t
21734/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21735s,@configure_input@,$configure_input,;t t
21736s,@srcdir@,$ac_srcdir,;t t
21737s,@abs_srcdir@,$ac_abs_srcdir,;t t
21738s,@top_srcdir@,$ac_top_srcdir,;t t
21739s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21740s,@builddir@,$ac_builddir,;t t
21741s,@abs_builddir@,$ac_abs_builddir,;t t
21742s,@top_builddir@,$ac_top_builddir,;t t
21743s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21744s,@INSTALL@,$ac_INSTALL,;t t
21745" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21746 rm -f $tmp/stdin
21747 if test x"$ac_file" != x-; then
21748 mv $tmp/out $ac_file
21749 else
21750 cat $tmp/out
21751 rm -f $tmp/out
21752 fi
21753
21754done
21755_ACEOF
21756cat >>$CONFIG_STATUS <<\_ACEOF
21757
21758#
21759# CONFIG_HEADER section.
21760#
252b5132
RH
21761
21762# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21763# NAME is the cpp macro being defined and VALUE is the value it is being given.
21764#
21765# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
21766ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21767ac_dB='[ ].*$,\1#\2'
21768ac_dC=' '
21769ac_dD=',;t'
21770# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21771ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21772ac_uB='$,\1#\2define\3'
252b5132 21773ac_uC=' '
5464f5a1
NN
21774ac_uD=',;t'
21775
21776for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 21777 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
21778 case $ac_file in
21779 - | *:- | *:-:* ) # input from stdin
21780 cat >$tmp/stdin
21781 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21782 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21783 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21784 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21785 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
21786 esac
21787
5464f5a1
NN
21788 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21789echo "$as_me: creating $ac_file" >&6;}
21790
21791 # First look for the input files in the build tree, otherwise in the
21792 # src tree.
21793 ac_file_inputs=`IFS=:
21794 for f in $ac_file_in; do
21795 case $f in
21796 -) echo $tmp/stdin ;;
21797 [\\/$]*)
21798 # Absolute (can't be DOS-style, as IFS=:)
21799 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21800echo "$as_me: error: cannot find input file: $f" >&2;}
21801 { (exit 1); exit 1; }; }
21802 # Do quote $f, to prevent DOS paths from being IFS'd.
21803 echo "$f";;
21804 *) # Relative
21805 if test -f "$f"; then
21806 # Build tree
21807 echo "$f"
21808 elif test -f "$srcdir/$f"; then
21809 # Source tree
21810 echo "$srcdir/$f"
21811 else
21812 # /dev/null tree
21813 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21814echo "$as_me: error: cannot find input file: $f" >&2;}
21815 { (exit 1); exit 1; }; }
21816 fi;;
21817 esac
21818 done` || { (exit 1); exit 1; }
21819 # Remove the trailing spaces.
21820 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21821
21822_ACEOF
21823
21824# Transform confdefs.h into two sed scripts, `conftest.defines' and
21825# `conftest.undefs', that substitutes the proper values into
21826# config.h.in to produce config.h. The first handles `#define'
21827# templates, and the second `#undef' templates.
21828# And first: Protect against being on the right side of a sed subst in
21829# config.status. Protect against being in an unquoted here document
21830# in config.status.
21831rm -f conftest.defines conftest.undefs
21832# Using a here document instead of a string reduces the quoting nightmare.
21833# Putting comments in sed scripts is not portable.
21834#
21835# `end' is used to avoid that the second main sed command (meant for
21836# 0-ary CPP macros) applies to n-ary macro definitions.
21837# See the Autoconf documentation for `clear'.
21838cat >confdef2sed.sed <<\_ACEOF
21839s/[\\&,]/\\&/g
21840s,[\\$`],\\&,g
21841t clear
21842: clear
21843s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21844t end
21845s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21846: end
21847_ACEOF
21848# If some macros were called several times there might be several times
21849# the same #defines, which is useless. Nevertheless, we may not want to
21850# sort them, since we want the *last* AC-DEFINE to be honored.
21851uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21852sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21853rm -f confdef2sed.sed
252b5132
RH
21854
21855# This sed command replaces #undef with comments. This is necessary, for
21856# example, in the case of _POSIX_SOURCE, which is predefined and required
21857# on some systems where configure will not decide to define it.
5464f5a1
NN
21858cat >>conftest.undefs <<\_ACEOF
21859s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21860_ACEOF
21861
21862# Break up conftest.defines because some shells have a limit on the size
21863# of here documents, and old seds have small limits too (100 cmds).
21864echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21865echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21866echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21867echo ' :' >>$CONFIG_STATUS
21868rm -f conftest.tail
21869while grep . conftest.defines >/dev/null
21870do
21871 # Write a limited-size here document to $tmp/defines.sed.
21872 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21873 # Speed up: don't consider the non `#define' lines.
21874 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21875 # Work around the forget-to-reset-the-flag bug.
21876 echo 't clr' >>$CONFIG_STATUS
21877 echo ': clr' >>$CONFIG_STATUS
21878 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21879 echo 'CEOF
21880 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21881 rm -f $tmp/in
21882 mv $tmp/out $tmp/in
21883' >>$CONFIG_STATUS
21884 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21885 rm -f conftest.defines
21886 mv conftest.tail conftest.defines
21887done
21888rm -f conftest.defines
21889echo ' fi # grep' >>$CONFIG_STATUS
21890echo >>$CONFIG_STATUS
252b5132 21891
5464f5a1
NN
21892# Break up conftest.undefs because some shells have a limit on the size
21893# of here documents, and old seds have small limits too (100 cmds).
21894echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 21895rm -f conftest.tail
5464f5a1 21896while grep . conftest.undefs >/dev/null
252b5132 21897do
5464f5a1
NN
21898 # Write a limited-size here document to $tmp/undefs.sed.
21899 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21900 # Speed up: don't consider the non `#undef'
21901 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21902 # Work around the forget-to-reset-the-flag bug.
21903 echo 't clr' >>$CONFIG_STATUS
21904 echo ': clr' >>$CONFIG_STATUS
21905 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 21906 echo 'CEOF
5464f5a1
NN
21907 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21908 rm -f $tmp/in
21909 mv $tmp/out $tmp/in
21910' >>$CONFIG_STATUS
21911 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21912 rm -f conftest.undefs
21913 mv conftest.tail conftest.undefs
252b5132 21914done
5464f5a1
NN
21915rm -f conftest.undefs
21916
21917cat >>$CONFIG_STATUS <<\_ACEOF
21918 # Let's still pretend it is `configure' which instantiates (i.e., don't
21919 # use $as_me), people would be surprised to read:
21920 # /* config.h. Generated by config.status. */
21921 if test x"$ac_file" = x-; then
21922 echo "/* Generated by configure. */" >$tmp/config.h
21923 else
21924 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21925 fi
21926 cat $tmp/in >>$tmp/config.h
21927 rm -f $tmp/in
21928 if test x"$ac_file" != x-; then
21929 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21930 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21931echo "$as_me: $ac_file is unchanged" >&6;}
21932 else
21933 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21934$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21935 X"$ac_file" : 'X\(//\)[^/]' \| \
21936 X"$ac_file" : 'X\(//\)$' \| \
21937 X"$ac_file" : 'X\(/\)' \| \
21938 . : '\(.\)' 2>/dev/null ||
21939echo X"$ac_file" |
21940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21942 /^X\(\/\/\)$/{ s//\1/; q; }
21943 /^X\(\/\).*/{ s//\1/; q; }
21944 s/.*/./; q'`
21945 { if $as_mkdir_p; then
21946 mkdir -p "$ac_dir"
252b5132 21947 else
5464f5a1
NN
21948 as_dir="$ac_dir"
21949 as_dirs=
21950 while test ! -d "$as_dir"; do
21951 as_dirs="$as_dir $as_dirs"
21952 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21953$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21954 X"$as_dir" : 'X\(//\)[^/]' \| \
21955 X"$as_dir" : 'X\(//\)$' \| \
21956 X"$as_dir" : 'X\(/\)' \| \
21957 . : '\(.\)' 2>/dev/null ||
21958echo X"$as_dir" |
21959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21961 /^X\(\/\/\)$/{ s//\1/; q; }
21962 /^X\(\/\).*/{ s//\1/; q; }
21963 s/.*/./; q'`
21964 done
21965 test ! -n "$as_dirs" || mkdir $as_dirs
21966 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21967echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21968 { (exit 1); exit 1; }; }; }
21969
21970 rm -f $ac_file
21971 mv $tmp/config.h $ac_file
252b5132 21972 fi
5464f5a1
NN
21973 else
21974 cat $tmp/config.h
21975 rm -f $tmp/config.h
252b5132 21976 fi
f5385ebf
AM
21977# Compute $ac_file's index in $config_headers.
21978_am_stamp_count=1
21979for _am_header in $config_headers :; do
21980 case $_am_header in
21981 $ac_file | $ac_file:* )
21982 break ;;
21983 * )
21984 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21985 esac
21986done
21987echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21988$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21989 X$ac_file : 'X\(//\)[^/]' \| \
21990 X$ac_file : 'X\(//\)$' \| \
21991 X$ac_file : 'X\(/\)' \| \
21992 . : '\(.\)' 2>/dev/null ||
21993echo X$ac_file |
21994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21996 /^X\(\/\/\)$/{ s//\1/; q; }
21997 /^X\(\/\).*/{ s//\1/; q; }
21998 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
21999done
22000_ACEOF
22001cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 22002
5464f5a1
NN
22003#
22004# CONFIG_COMMANDS section.
22005#
22006for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22007 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22008 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22009 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22010$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22011 X"$ac_dest" : 'X\(//\)[^/]' \| \
22012 X"$ac_dest" : 'X\(//\)$' \| \
22013 X"$ac_dest" : 'X\(/\)' \| \
22014 . : '\(.\)' 2>/dev/null ||
22015echo X"$ac_dest" |
22016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22018 /^X\(\/\/\)$/{ s//\1/; q; }
22019 /^X\(\/\).*/{ s//\1/; q; }
22020 s/.*/./; q'`
22021 { if $as_mkdir_p; then
22022 mkdir -p "$ac_dir"
22023 else
22024 as_dir="$ac_dir"
22025 as_dirs=
22026 while test ! -d "$as_dir"; do
22027 as_dirs="$as_dir $as_dirs"
22028 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22029$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22030 X"$as_dir" : 'X\(//\)[^/]' \| \
22031 X"$as_dir" : 'X\(//\)$' \| \
22032 X"$as_dir" : 'X\(/\)' \| \
22033 . : '\(.\)' 2>/dev/null ||
22034echo X"$as_dir" |
22035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22037 /^X\(\/\/\)$/{ s//\1/; q; }
22038 /^X\(\/\).*/{ s//\1/; q; }
22039 s/.*/./; q'`
22040 done
22041 test ! -n "$as_dirs" || mkdir $as_dirs
22042 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22043echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22044 { (exit 1); exit 1; }; }; }
b3baf5d0 22045
5464f5a1 22046 ac_builddir=.
b3baf5d0 22047
5464f5a1
NN
22048if test "$ac_dir" != .; then
22049 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22050 # A "../" for each directory in $ac_dir_suffix.
22051 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22052else
22053 ac_dir_suffix= ac_top_builddir=
22054fi
22055
22056case $srcdir in
22057 .) # No --srcdir option. We are building in place.
22058 ac_srcdir=.
22059 if test -z "$ac_top_builddir"; then
22060 ac_top_srcdir=.
22061 else
22062 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22063 fi ;;
22064 [\\/]* | ?:[\\/]* ) # Absolute path.
22065 ac_srcdir=$srcdir$ac_dir_suffix;
22066 ac_top_srcdir=$srcdir ;;
22067 *) # Relative path.
22068 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22069 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22070esac
22071
22072# Do not use `cd foo && pwd` to compute absolute paths, because
22073# the directories may not exist.
22074case `pwd` in
22075.) ac_abs_builddir="$ac_dir";;
22076*)
22077 case "$ac_dir" in
22078 .) ac_abs_builddir=`pwd`;;
22079 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22080 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22081 esac;;
22082esac
22083case $ac_abs_builddir in
22084.) ac_abs_top_builddir=${ac_top_builddir}.;;
22085*)
22086 case ${ac_top_builddir}. in
22087 .) ac_abs_top_builddir=$ac_abs_builddir;;
22088 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22089 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22090 esac;;
22091esac
22092case $ac_abs_builddir in
22093.) ac_abs_srcdir=$ac_srcdir;;
22094*)
22095 case $ac_srcdir in
22096 .) ac_abs_srcdir=$ac_abs_builddir;;
22097 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22098 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22099 esac;;
22100esac
22101case $ac_abs_builddir in
22102.) ac_abs_top_srcdir=$ac_top_srcdir;;
22103*)
22104 case $ac_top_srcdir in
22105 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22106 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22107 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22108 esac;;
22109esac
22110
22111
22112 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22113echo "$as_me: executing $ac_dest commands" >&6;}
22114 case $ac_dest in
f5385ebf
AM
22115 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22116 # Strip MF so we end up with the name of the file.
22117 mf=`echo "$mf" | sed -e 's/:.*$//'`
22118 # Check whether this is an Automake generated Makefile or not.
22119 # We used to match only the files named `Makefile.in', but
22120 # some people rename them; so instead we look at the file content.
22121 # Grep'ing the first line is not enough: some people post-process
22122 # each Makefile.in and add a new line on top of each file to say so.
22123 # So let's grep whole file.
22124 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22125 dirpart=`(dirname "$mf") 2>/dev/null ||
22126$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22127 X"$mf" : 'X\(//\)[^/]' \| \
22128 X"$mf" : 'X\(//\)$' \| \
22129 X"$mf" : 'X\(/\)' \| \
22130 . : '\(.\)' 2>/dev/null ||
22131echo X"$mf" |
22132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22134 /^X\(\/\/\)$/{ s//\1/; q; }
22135 /^X\(\/\).*/{ s//\1/; q; }
22136 s/.*/./; q'`
22137 else
22138 continue
22139 fi
22140 # Extract the definition of DEPDIR, am__include, and am__quote
22141 # from the Makefile without running `make'.
22142 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22143 test -z "$DEPDIR" && continue
22144 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22145 test -z "am__include" && continue
22146 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22147 # When using ansi2knr, U may be empty or an underscore; expand it
22148 U=`sed -n 's/^U = //p' < "$mf"`
22149 # Find all dependency output files, they are included files with
22150 # $(DEPDIR) in their names. We invoke sed twice because it is the
22151 # simplest approach to changing $(DEPDIR) to its actual value in the
22152 # expansion.
22153 for file in `sed -n "
22154 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22155 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22156 # Make sure the directory exists.
22157 test -f "$dirpart/$file" && continue
22158 fdir=`(dirname "$file") 2>/dev/null ||
22159$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22160 X"$file" : 'X\(//\)[^/]' \| \
22161 X"$file" : 'X\(//\)$' \| \
22162 X"$file" : 'X\(/\)' \| \
22163 . : '\(.\)' 2>/dev/null ||
22164echo X"$file" |
22165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22166 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22167 /^X\(\/\/\)$/{ s//\1/; q; }
22168 /^X\(\/\).*/{ s//\1/; q; }
22169 s/.*/./; q'`
22170 { if $as_mkdir_p; then
22171 mkdir -p $dirpart/$fdir
22172 else
22173 as_dir=$dirpart/$fdir
22174 as_dirs=
22175 while test ! -d "$as_dir"; do
22176 as_dirs="$as_dir $as_dirs"
22177 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22178$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22179 X"$as_dir" : 'X\(//\)[^/]' \| \
22180 X"$as_dir" : 'X\(//\)$' \| \
22181 X"$as_dir" : 'X\(/\)' \| \
22182 . : '\(.\)' 2>/dev/null ||
22183echo X"$as_dir" |
22184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22186 /^X\(\/\/\)$/{ s//\1/; q; }
22187 /^X\(\/\).*/{ s//\1/; q; }
22188 s/.*/./; q'`
22189 done
22190 test ! -n "$as_dirs" || mkdir $as_dirs
22191 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22192echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22193 { (exit 1); exit 1; }; }; }
22194
22195 # echo "creating $dirpart/$file"
22196 echo '# dummy' > "$dirpart/$file"
22197 done
22198done
d7040cdb
SE
22199 ;;
22200 libtool )
22201
22202 # See if we are running on zsh, and set the options which allow our
22203 # commands through without removal of \ escapes.
22204 if test -n "${ZSH_VERSION+set}" ; then
22205 setopt NO_GLOB_SUBST
22206 fi
22207
22208 cfgfile="${ofile}T"
22209 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22210 $RM "$cfgfile"
22211
22212 cat <<_LT_EOF >> "$cfgfile"
22213#! $SHELL
22214
22215# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22216# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22217# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22218# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22219#
22220# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22221# 2006, 2007 Free Software Foundation, Inc.
22222#
22223# This file is part of GNU Libtool:
22224# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22225#
22226# This program is free software; you can redistribute it and/or modify
22227# it under the terms of the GNU General Public License as published by
0b3e17e9 22228# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
22229# (at your option) any later version.
22230#
22231# This program is distributed in the hope that it will be useful, but
22232# WITHOUT ANY WARRANTY; without even the implied warranty of
22233# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22234# General Public License for more details.
22235#
22236# You should have received a copy of the GNU General Public License
22237# along with this program; if not, a copy can be downloaded from
22238# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22239# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22240# MA 02110-1301, USA.
22241#
22242# As a special exception to the GNU General Public License, if you
22243# distribute this file as part of a program that contains a
22244# configuration script generated by Autoconf, you may include it under
22245# the same distribution terms that you use for the rest of that program.
22246
22247
22248# The names of the tagged configurations supported by this script.
22249available_tags=""
22250
22251# ### BEGIN LIBTOOL CONFIG
22252
22253# Whether or not to build shared libraries.
22254build_libtool_libs=$enable_shared
22255
22256# Which release of libtool.m4 was used?
22257macro_version=$macro_version
22258macro_revision=$macro_revision
22259
22260# Whether or not to build static libraries.
22261build_old_libs=$enable_static
22262
22263# What type of objects to build.
22264pic_mode=$pic_mode
22265
22266# Whether or not to optimize for fast installation.
22267fast_install=$enable_fast_install
22268
22269# The host system.
22270host_alias=$host_alias
22271host=$host
22272host_os=$host_os
22273
22274# The build system.
22275build_alias=$build_alias
22276build=$build
22277build_os=$build_os
22278
22279# A sed program that does not truncate output.
22280SED=$lt_SED
22281
22282# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22283Xsed="\$SED -e 1s/^X//"
22284
22285# A grep program that handles long lines.
22286GREP=$lt_GREP
22287
22288# An ERE matcher.
22289EGREP=$lt_EGREP
22290
22291# A literal string matcher.
22292FGREP=$lt_FGREP
22293
22294# A BSD- or MS-compatible name lister.
22295NM=$lt_NM
22296
22297# Whether we need soft or hard links.
22298LN_S=$lt_LN_S
22299
22300# What is the maximum length of a command?
22301max_cmd_len=$max_cmd_len
22302
22303# Object file suffix (normally "o").
22304objext=$ac_objext
22305
22306# Executable file suffix (normally "").
22307exeext=$exeext
22308
22309# whether the shell understands "unset".
22310lt_unset=$lt_unset
22311
22312# turn spaces into newlines.
22313SP2NL=$lt_lt_SP2NL
22314
22315# turn newlines into spaces.
22316NL2SP=$lt_lt_NL2SP
22317
22318# How to create reloadable object files.
22319reload_flag=$lt_reload_flag
22320reload_cmds=$lt_reload_cmds
22321
22322# Method to check whether dependent libraries are shared objects.
22323deplibs_check_method=$lt_deplibs_check_method
22324
22325# Command to use when deplibs_check_method == "file_magic".
22326file_magic_cmd=$lt_file_magic_cmd
22327
22328# The archiver.
22329AR=$lt_AR
22330AR_FLAGS=$lt_AR_FLAGS
22331
22332# A symbol stripping program.
22333STRIP=$lt_STRIP
22334
22335# Commands used to install an old-style archive.
22336RANLIB=$lt_RANLIB
22337old_postinstall_cmds=$lt_old_postinstall_cmds
22338old_postuninstall_cmds=$lt_old_postuninstall_cmds
22339
22340# A C compiler.
22341LTCC=$lt_CC
22342
22343# LTCC compiler flags.
22344LTCFLAGS=$lt_CFLAGS
22345
22346# Take the output of nm and produce a listing of raw symbols and C names.
22347global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22348
22349# Transform the output of nm in a proper C declaration.
22350global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22351
22352# Transform the output of nm in a C name address pair.
22353global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22354
22355# The name of the directory that contains temporary libtool files.
22356objdir=$objdir
22357
22358# Shell to use when invoking shell scripts.
22359SHELL=$lt_SHELL
22360
22361# An echo program that does not interpret backslashes.
22362ECHO=$lt_ECHO
22363
22364# Used to examine libraries when file_magic_cmd begins with "file".
22365MAGIC_CMD=$MAGIC_CMD
22366
22367# Must we lock files when doing compilation?
22368need_locks=$lt_need_locks
22369
22370# Old archive suffix (normally "a").
22371libext=$libext
22372
22373# Shared library suffix (normally ".so").
22374shrext_cmds=$lt_shrext_cmds
22375
22376# The commands to extract the exported symbol list from a shared archive.
22377extract_expsyms_cmds=$lt_extract_expsyms_cmds
22378
22379# Variables whose values should be saved in libtool wrapper scripts and
22380# restored at link time.
22381variables_saved_for_relink=$lt_variables_saved_for_relink
22382
22383# Do we need the "lib" prefix for modules?
22384need_lib_prefix=$need_lib_prefix
22385
22386# Do we need a version for libraries?
22387need_version=$need_version
22388
22389# Library versioning type.
22390version_type=$version_type
22391
22392# Shared library runtime path variable.
22393runpath_var=$runpath_var
22394
22395# Shared library path variable.
22396shlibpath_var=$shlibpath_var
22397
22398# Is shlibpath searched before the hard-coded library search path?
22399shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22400
22401# Format of library name prefix.
22402libname_spec=$lt_libname_spec
22403
22404# List of archive names. First name is the real one, the rest are links.
22405# The last name is the one that the linker finds with -lNAME
22406library_names_spec=$lt_library_names_spec
22407
22408# The coded name of the library, if different from the real name.
22409soname_spec=$lt_soname_spec
22410
22411# Command to use after installation of a shared archive.
22412postinstall_cmds=$lt_postinstall_cmds
22413
22414# Command to use after uninstallation of a shared archive.
22415postuninstall_cmds=$lt_postuninstall_cmds
22416
22417# Commands used to finish a libtool library installation in a directory.
22418finish_cmds=$lt_finish_cmds
22419
22420# As "finish_cmds", except a single script fragment to be evaled but
22421# not shown.
22422finish_eval=$lt_finish_eval
22423
22424# Whether we should hardcode library paths into libraries.
22425hardcode_into_libs=$hardcode_into_libs
22426
22427# Compile-time system search path for libraries.
22428sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22429
22430# Run-time system search path for libraries.
22431sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22432
22433# Whether dlopen is supported.
22434dlopen_support=$enable_dlopen
22435
22436# Whether dlopen of programs is supported.
22437dlopen_self=$enable_dlopen_self
22438
22439# Whether dlopen of statically linked programs is supported.
22440dlopen_self_static=$enable_dlopen_self_static
22441
22442# Commands to strip libraries.
22443old_striplib=$lt_old_striplib
22444striplib=$lt_striplib
22445
22446
22447# The linker used to build libraries.
22448LD=$lt_LD
22449
22450# Commands used to build an old-style archive.
22451old_archive_cmds=$lt_old_archive_cmds
22452
22453# A language specific compiler.
22454CC=$lt_compiler
22455
22456# Is the compiler the GNU compiler?
22457with_gcc=$GCC
22458
22459# Compiler flag to turn off builtin functions.
22460no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22461
22462# How to pass a linker flag through the compiler.
22463wl=$lt_lt_prog_compiler_wl
22464
22465# Additional compiler flags for building library objects.
22466pic_flag=$lt_lt_prog_compiler_pic
22467
22468# Compiler flag to prevent dynamic linking.
22469link_static_flag=$lt_lt_prog_compiler_static
22470
22471# Does compiler simultaneously support -c and -o options?
22472compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22473
22474# Whether or not to add -lc for building shared libraries.
22475build_libtool_need_lc=$archive_cmds_need_lc
22476
22477# Whether or not to disallow shared libs when runtime libs are static.
22478allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22479
22480# Compiler flag to allow reflexive dlopens.
22481export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22482
22483# Compiler flag to generate shared objects directly from archives.
22484whole_archive_flag_spec=$lt_whole_archive_flag_spec
22485
22486# Whether the compiler copes with passing no objects directly.
22487compiler_needs_object=$lt_compiler_needs_object
22488
22489# Create an old-style archive from a shared archive.
22490old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22491
22492# Create a temporary old-style archive to link instead of a shared archive.
22493old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22494
22495# Commands used to build a shared archive.
22496archive_cmds=$lt_archive_cmds
22497archive_expsym_cmds=$lt_archive_expsym_cmds
22498
22499# Commands used to build a loadable module if different from building
22500# a shared archive.
22501module_cmds=$lt_module_cmds
22502module_expsym_cmds=$lt_module_expsym_cmds
22503
22504# Whether we are building with GNU ld or not.
22505with_gnu_ld=$lt_with_gnu_ld
22506
22507# Flag that allows shared libraries with undefined symbols to be built.
22508allow_undefined_flag=$lt_allow_undefined_flag
22509
22510# Flag that enforces no undefined symbols.
22511no_undefined_flag=$lt_no_undefined_flag
22512
22513# Flag to hardcode \$libdir into a binary during linking.
22514# This must work even if \$libdir does not exist
22515hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22516
22517# If ld is used when linking, flag to hardcode \$libdir into a binary
22518# during linking. This must work even if \$libdir does not exist.
22519hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22520
22521# Whether we need a single "-rpath" flag with a separated argument.
22522hardcode_libdir_separator=$lt_hardcode_libdir_separator
22523
22524# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22525# DIR into the resulting binary.
22526hardcode_direct=$hardcode_direct
22527
22528# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22529# DIR into the resulting binary and the resulting library dependency is
22530# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22531# library is relocated.
22532hardcode_direct_absolute=$hardcode_direct_absolute
22533
22534# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22535# into the resulting binary.
22536hardcode_minus_L=$hardcode_minus_L
22537
22538# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22539# into the resulting binary.
22540hardcode_shlibpath_var=$hardcode_shlibpath_var
22541
22542# Set to "yes" if building a shared library automatically hardcodes DIR
22543# into the library and all subsequent libraries and executables linked
22544# against it.
22545hardcode_automatic=$hardcode_automatic
22546
22547# Set to yes if linker adds runtime paths of dependent libraries
22548# to runtime path list.
22549inherit_rpath=$inherit_rpath
22550
22551# Whether libtool must link a program against all its dependency libraries.
22552link_all_deplibs=$link_all_deplibs
22553
22554# Fix the shell variable \$srcfile for the compiler.
22555fix_srcfile_path=$lt_fix_srcfile_path
22556
22557# Set to "yes" if exported symbols are required.
22558always_export_symbols=$always_export_symbols
22559
22560# The commands to list exported symbols.
22561export_symbols_cmds=$lt_export_symbols_cmds
22562
22563# Symbols that should not be listed in the preloaded symbols.
22564exclude_expsyms=$lt_exclude_expsyms
22565
22566# Symbols that must always be exported.
22567include_expsyms=$lt_include_expsyms
22568
22569# Commands necessary for linking programs (against libraries) with templates.
22570prelink_cmds=$lt_prelink_cmds
22571
22572# Specify filename containing input files.
22573file_list_spec=$lt_file_list_spec
22574
22575# How to hardcode a shared library path into an executable.
22576hardcode_action=$hardcode_action
22577
22578# ### END LIBTOOL CONFIG
22579
22580_LT_EOF
22581
22582 case $host_os in
22583 aix3*)
22584 cat <<\_LT_EOF >> "$cfgfile"
22585# AIX sometimes has problems with the GCC collect2 program. For some
22586# reason, if we set the COLLECT_NAMES environment variable, the problems
22587# vanish in a puff of smoke.
22588if test "X${COLLECT_NAMES+set}" != Xset; then
22589 COLLECT_NAMES=
22590 export COLLECT_NAMES
22591fi
22592_LT_EOF
22593 ;;
22594 esac
22595
22596
22597ltmain="$ac_aux_dir/ltmain.sh"
22598
22599
22600 # We use sed instead of cat because bash on DJGPP gets confused if
22601 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22602 # text mode, it properly converts lines to CR/LF. This bash problem
22603 # is reportedly fixed, but why not run on old versions too?
22604 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22605 || (rm -f "$cfgfile"; exit 1)
22606
22607 case $xsi_shell in
22608 yes)
22609 cat << \_LT_EOF >> "$cfgfile"
22610# func_dirname file append nondir_replacement
22611# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22612# otherwise set result to NONDIR_REPLACEMENT.
22613func_dirname ()
22614{
22615 case ${1} in
22616 */*) func_dirname_result="${1%/*}${2}" ;;
22617 * ) func_dirname_result="${3}" ;;
22618 esac
22619}
22620
22621# func_basename file
22622func_basename ()
22623{
22624 func_basename_result="${1##*/}"
22625}
22626
22627# func_stripname prefix suffix name
22628# strip PREFIX and SUFFIX off of NAME.
22629# PREFIX and SUFFIX must not contain globbing or regex special
22630# characters, hashes, percent signs, but SUFFIX may contain a leading
22631# dot (in which case that matches only a dot).
22632func_stripname ()
22633{
22634 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22635 # positional parameters, so assign one to ordinary parameter first.
22636 func_stripname_result=${3}
22637 func_stripname_result=${func_stripname_result#"${1}"}
22638 func_stripname_result=${func_stripname_result%"${2}"}
22639}
22640
22641# func_opt_split
22642func_opt_split ()
22643{
22644 func_opt_split_opt=${1%%=*}
22645 func_opt_split_arg=${1#*=}
22646}
22647
22648# func_lo2o object
22649func_lo2o ()
22650{
22651 case ${1} in
22652 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22653 *) func_lo2o_result=${1} ;;
22654 esac
22655}
22656_LT_EOF
22657 ;;
22658 *) # Bourne compatible functions.
22659 cat << \_LT_EOF >> "$cfgfile"
22660# func_dirname file append nondir_replacement
22661# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22662# otherwise set result to NONDIR_REPLACEMENT.
22663func_dirname ()
22664{
22665 # Extract subdirectory from the argument.
22666 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22667 if test "X$func_dirname_result" = "X${1}"; then
22668 func_dirname_result="${3}"
22669 else
22670 func_dirname_result="$func_dirname_result${2}"
22671 fi
22672}
22673
22674# func_basename file
22675func_basename ()
22676{
22677 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22678}
22679
22680# func_stripname prefix suffix name
22681# strip PREFIX and SUFFIX off of NAME.
22682# PREFIX and SUFFIX must not contain globbing or regex special
22683# characters, hashes, percent signs, but SUFFIX may contain a leading
22684# dot (in which case that matches only a dot).
22685# func_strip_suffix prefix name
22686func_stripname ()
22687{
22688 case ${2} in
22689 .*) func_stripname_result=`$ECHO "X${3}" \
22690 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22691 *) func_stripname_result=`$ECHO "X${3}" \
22692 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22693 esac
22694}
22695
22696# sed scripts:
22697my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22698my_sed_long_arg='1s/^-[^=]*=//'
22699
22700# func_opt_split
22701func_opt_split ()
22702{
22703 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22704 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22705}
22706
22707# func_lo2o object
22708func_lo2o ()
22709{
22710 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22711}
22712_LT_EOF
22713esac
22714
22715case $lt_shell_append in
22716 yes)
22717 cat << \_LT_EOF >> "$cfgfile"
22718
22719# func_append var value
22720# Append VALUE to the end of shell variable VAR.
22721func_append ()
22722{
22723 eval "$1+=\$2"
22724}
22725_LT_EOF
22726 ;;
22727 *)
22728 cat << \_LT_EOF >> "$cfgfile"
22729
22730# func_append var value
22731# Append VALUE to the end of shell variable VAR.
22732func_append ()
22733{
22734 eval "$1=\$$1\$2"
22735}
22736_LT_EOF
22737 ;;
22738 esac
22739
22740
22741 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22742 || (rm -f "$cfgfile"; exit 1)
22743
22744 mv -f "$cfgfile" "$ofile" ||
22745 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22746 chmod +x "$ofile"
22747
f5385ebf 22748 ;;
20e95c23
DJ
22749 default-1 )
22750 for ac_file in $CONFIG_FILES; do
22751 # Support "outfile[:infile[:infile...]]"
22752 case "$ac_file" in
22753 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22754 esac
22755 # PO directories have a Makefile.in generated from Makefile.in.in.
22756 case "$ac_file" in */Makefile.in)
22757 # Adjust a relative srcdir.
22758 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22759 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22760 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22761 # In autoconf-2.13 it is called $ac_given_srcdir.
22762 # In autoconf-2.50 it is called $srcdir.
22763 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22764 case "$ac_given_srcdir" in
22765 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22766 /*) top_srcdir="$ac_given_srcdir" ;;
22767 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22768 esac
22769 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22770 rm -f "$ac_dir/POTFILES"
22771 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22772 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22773 POMAKEFILEDEPS="POTFILES.in"
22774 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22775 # on $ac_dir but don't depend on user-specified configuration
22776 # parameters.
22777 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22778 # The LINGUAS file contains the set of available languages.
22779 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22780 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22781 fi
22782 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22783 # Hide the ALL_LINGUAS assigment from automake.
22784 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22785 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22786 else
22787 # The set of available languages was given in configure.in.
22788 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22789 fi
22790 case "$ac_given_srcdir" in
22791 .) srcdirpre= ;;
22792 *) srcdirpre='$(srcdir)/' ;;
22793 esac
22794 POFILES=
22795 GMOFILES=
22796 UPDATEPOFILES=
22797 DUMMYPOFILES=
22798 for lang in $ALL_LINGUAS; do
22799 POFILES="$POFILES $srcdirpre$lang.po"
22800 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22801 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22802 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22803 done
22804 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22805 # environment variable.
22806 INST_LINGUAS=
22807 if test -n "$ALL_LINGUAS"; then
22808 for presentlang in $ALL_LINGUAS; do
22809 useit=no
22810 if test "%UNSET%" != "$LINGUAS"; then
22811 desiredlanguages="$LINGUAS"
22812 else
22813 desiredlanguages="$ALL_LINGUAS"
22814 fi
22815 for desiredlang in $desiredlanguages; do
22816 # Use the presentlang catalog if desiredlang is
22817 # a. equal to presentlang, or
22818 # b. a variant of presentlang (because in this case,
22819 # presentlang can be used as a fallback for messages
22820 # which are not translated in the desiredlang catalog).
22821 case "$desiredlang" in
22822 "$presentlang"*) useit=yes;;
22823 esac
22824 done
22825 if test $useit = yes; then
22826 INST_LINGUAS="$INST_LINGUAS $presentlang"
22827 fi
22828 done
22829 fi
22830 CATALOGS=
22831 if test -n "$INST_LINGUAS"; then
22832 for lang in $INST_LINGUAS; do
22833 CATALOGS="$CATALOGS $lang.gmo"
22834 done
22835 fi
22836 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22837 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"
22838 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22839 if test -f "$f"; then
22840 case "$f" in
22841 *.orig | *.bak | *~) ;;
22842 *) cat "$f" >> "$ac_dir/Makefile" ;;
22843 esac
22844 fi
22845 done
22846 fi
22847 ;;
22848 esac
22849 done ;;
d5efd9fc
AM
22850 bfd_stdint.h )
22851if test "$GCC" = yes; then
22852 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22853else
22854 echo "/* generated for $CC */" > tmp-stdint.h
22855fi
22856
22857sed 's/^ *//' >> tmp-stdint.h <<EOF
22858
22859 #ifndef GCC_GENERATED_STDINT_H
22860 #define GCC_GENERATED_STDINT_H 1
22861
22862 #include <sys/types.h>
22863EOF
22864
22865if test "$acx_cv_header_stdint" != stdint.h; then
22866 echo "#include <stddef.h>" >> tmp-stdint.h
22867fi
22868if test "$acx_cv_header_stdint" != stddef.h; then
22869 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22870fi
22871
22872sed 's/^ *//' >> tmp-stdint.h <<EOF
22873 /* glibc uses these symbols as guards to prevent redefinitions. */
22874 #ifdef __int8_t_defined
22875 #define _INT8_T
22876 #define _INT16_T
22877 #define _INT32_T
22878 #endif
22879 #ifdef __uint32_t_defined
22880 #define _UINT32_T
22881 #endif
22882
22883EOF
22884
22885# ----------------- done header, emit basic int types -------------
22886if test "$acx_cv_header_stdint" = stddef.h; then
22887 sed 's/^ *//' >> tmp-stdint.h <<EOF
22888
22889 #ifndef _UINT8_T
22890 #define _UINT8_T
22891 #ifndef __uint8_t_defined
22892 #define __uint8_t_defined
22893 typedef unsigned $acx_cv_type_int8_t uint8_t;
22894 #endif
22895 #endif
22896
22897 #ifndef _UINT16_T
22898 #define _UINT16_T
22899 #ifndef __uint16_t_defined
22900 #define __uint16_t_defined
22901 typedef unsigned $acx_cv_type_int16_t uint16_t;
22902 #endif
22903 #endif
22904
22905 #ifndef _UINT32_T
22906 #define _UINT32_T
22907 #ifndef __uint32_t_defined
22908 #define __uint32_t_defined
22909 typedef unsigned $acx_cv_type_int32_t uint32_t;
22910 #endif
22911 #endif
22912
22913 #ifndef _INT8_T
22914 #define _INT8_T
22915 #ifndef __int8_t_defined
22916 #define __int8_t_defined
22917 typedef $acx_cv_type_int8_t int8_t;
22918 #endif
22919 #endif
22920
22921 #ifndef _INT16_T
22922 #define _INT16_T
22923 #ifndef __int16_t_defined
22924 #define __int16_t_defined
22925 typedef $acx_cv_type_int16_t int16_t;
22926 #endif
22927 #endif
22928
22929 #ifndef _INT32_T
22930 #define _INT32_T
22931 #ifndef __int32_t_defined
22932 #define __int32_t_defined
22933 typedef $acx_cv_type_int32_t int32_t;
22934 #endif
22935 #endif
22936EOF
22937elif test "$ac_cv_type_u_int32_t" = yes; then
22938 sed 's/^ *//' >> tmp-stdint.h <<EOF
22939
22940 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22941 #ifndef _INT8_T
22942 #define _INT8_T
22943 #endif
22944 #ifndef _INT16_T
22945 #define _INT16_T
22946 #endif
22947 #ifndef _INT32_T
22948 #define _INT32_T
22949 #endif
22950
22951 #ifndef _UINT8_T
22952 #define _UINT8_T
22953 #ifndef __uint8_t_defined
22954 #define __uint8_t_defined
22955 typedef u_int8_t uint8_t;
22956 #endif
22957 #endif
22958
22959 #ifndef _UINT16_T
22960 #define _UINT16_T
22961 #ifndef __uint16_t_defined
22962 #define __uint16_t_defined
22963 typedef u_int16_t uint16_t;
22964 #endif
22965 #endif
22966
22967 #ifndef _UINT32_T
22968 #define _UINT32_T
22969 #ifndef __uint32_t_defined
22970 #define __uint32_t_defined
22971 typedef u_int32_t uint32_t;
22972 #endif
22973 #endif
22974EOF
22975else
22976 sed 's/^ *//' >> tmp-stdint.h <<EOF
22977
22978 /* Some systems have guard macros to prevent redefinitions, define them. */
22979 #ifndef _INT8_T
22980 #define _INT8_T
22981 #endif
22982 #ifndef _INT16_T
22983 #define _INT16_T
22984 #endif
22985 #ifndef _INT32_T
22986 #define _INT32_T
22987 #endif
22988 #ifndef _UINT8_T
22989 #define _UINT8_T
22990 #endif
22991 #ifndef _UINT16_T
22992 #define _UINT16_T
22993 #endif
22994 #ifndef _UINT32_T
22995 #define _UINT32_T
22996 #endif
22997EOF
22998fi
22999
23000# ------------- done basic int types, emit int64_t types ------------
23001if test "$ac_cv_type_uint64_t" = yes; then
23002 sed 's/^ *//' >> tmp-stdint.h <<EOF
23003
23004 /* system headers have good uint64_t and int64_t */
23005 #ifndef _INT64_T
23006 #define _INT64_T
23007 #endif
23008 #ifndef _UINT64_T
23009 #define _UINT64_T
23010 #endif
23011EOF
23012elif test "$ac_cv_type_u_int64_t" = yes; then
23013 sed 's/^ *//' >> tmp-stdint.h <<EOF
23014
23015 /* system headers have an u_int64_t (and int64_t) */
23016 #ifndef _INT64_T
23017 #define _INT64_T
23018 #endif
23019 #ifndef _UINT64_T
23020 #define _UINT64_T
23021 #ifndef __uint64_t_defined
23022 #define __uint64_t_defined
23023 typedef u_int64_t uint64_t;
23024 #endif
23025 #endif
23026EOF
23027elif test -n "$acx_cv_type_int64_t"; then
23028 sed 's/^ *//' >> tmp-stdint.h <<EOF
23029
23030 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23031 #ifndef _INT64_T
23032 #define _INT64_T
23033 typedef $acx_cv_type_int64_t int64_t;
23034 #endif
23035 #ifndef _UINT64_T
23036 #define _UINT64_T
23037 #ifndef __uint64_t_defined
23038 #define __uint64_t_defined
23039 typedef unsigned $acx_cv_type_int64_t uint64_t;
23040 #endif
23041 #endif
23042EOF
23043else
23044 sed 's/^ *//' >> tmp-stdint.h <<EOF
23045
23046 /* some common heuristics for int64_t, using compiler-specific tests */
23047 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23048 #ifndef _INT64_T
23049 #define _INT64_T
23050 #ifndef __int64_t_defined
23051 typedef long long int64_t;
23052 #endif
23053 #endif
23054 #ifndef _UINT64_T
23055 #define _UINT64_T
23056 typedef unsigned long long uint64_t;
23057 #endif
23058
23059 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23060 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23061 does not implement __extension__. But that compiler doesn't define
23062 __GNUC_MINOR__. */
23063 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23064 # define __extension__
23065 # endif
23066
23067 # ifndef _INT64_T
23068 # define _INT64_T
23069 __extension__ typedef long long int64_t;
23070 # endif
23071 # ifndef _UINT64_T
23072 # define _UINT64_T
23073 __extension__ typedef unsigned long long uint64_t;
23074 # endif
23075
23076 #elif !defined __STRICT_ANSI__
23077 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23078
23079 # ifndef _INT64_T
23080 # define _INT64_T
23081 typedef __int64 int64_t;
23082 # endif
23083 # ifndef _UINT64_T
23084 # define _UINT64_T
23085 typedef unsigned __int64 uint64_t;
23086 # endif
23087 # endif /* compiler */
23088
23089 #endif /* ANSI version */
23090EOF
23091fi
23092
23093# ------------- done int64_t types, emit intptr types ------------
23094if test "$ac_cv_type_uintptr_t" != yes; then
23095 sed 's/^ *//' >> tmp-stdint.h <<EOF
23096
23097 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23098 #ifndef __uintptr_t_defined
23099 typedef u$acx_cv_type_intptr_t uintptr_t;
23100 #endif
23101 #ifndef __intptr_t_defined
23102 typedef $acx_cv_type_intptr_t intptr_t;
23103 #endif
23104EOF
23105fi
23106
23107# ------------- done intptr types, emit int_least types ------------
23108if test "$ac_cv_type_int_least32_t" != yes; then
23109 sed 's/^ *//' >> tmp-stdint.h <<EOF
23110
23111 /* Define int_least types */
23112 typedef int8_t int_least8_t;
23113 typedef int16_t int_least16_t;
23114 typedef int32_t int_least32_t;
23115 #ifdef _INT64_T
23116 typedef int64_t int_least64_t;
23117 #endif
23118
23119 typedef uint8_t uint_least8_t;
23120 typedef uint16_t uint_least16_t;
23121 typedef uint32_t uint_least32_t;
23122 #ifdef _UINT64_T
23123 typedef uint64_t uint_least64_t;
23124 #endif
23125EOF
23126fi
23127
23128# ------------- done intptr types, emit int_fast types ------------
23129if test "$ac_cv_type_int_fast32_t" != yes; then
23130 sed 's/^ *//' >> tmp-stdint.h <<EOF
23131
23132 /* Define int_fast types. short is often slow */
23133 typedef int8_t int_fast8_t;
23134 typedef int int_fast16_t;
23135 typedef int32_t int_fast32_t;
23136 #ifdef _INT64_T
23137 typedef int64_t int_fast64_t;
23138 #endif
23139
23140 typedef uint8_t uint_fast8_t;
23141 typedef unsigned int uint_fast16_t;
23142 typedef uint32_t uint_fast32_t;
23143 #ifdef _UINT64_T
23144 typedef uint64_t uint_fast64_t;
23145 #endif
23146EOF
23147fi
23148
23149if test "$ac_cv_type_uintmax_t" != yes; then
23150 sed 's/^ *//' >> tmp-stdint.h <<EOF
23151
23152 /* Define intmax based on what we found */
23153 #ifdef _INT64_T
23154 typedef int64_t intmax_t;
23155 #else
23156 typedef long intmax_t;
23157 #endif
23158 #ifdef _UINT64_T
23159 typedef uint64_t uintmax_t;
23160 #else
23161 typedef unsigned long uintmax_t;
23162 #endif
23163EOF
23164fi
23165
23166sed 's/^ *//' >> tmp-stdint.h <<EOF
23167
23168 #endif /* GCC_GENERATED_STDINT_H */
23169EOF
23170
23171if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23172 rm -f tmp-stdint.h
23173else
23174 mv -f tmp-stdint.h bfd_stdint.h
23175fi
23176
23177 ;;
20e95c23
DJ
23178 default )
23179case "$srcdir" in
23180 .) srcdirpre= ;;
23181 *) srcdirpre='$(srcdir)/' ;;
23182esac
23183POFILES=
23184GMOFILES=
23185for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23186 if test $lang != dummy; then
23187 POFILES="$POFILES $srcdirpre$lang.po"
23188 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23189 fi
23190done
23191sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23192 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23193 -e "s,@POFILES@,$POFILES," \
23194 -e "s,@GMOFILES@,$GMOFILES," \
23195 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
23196 esac
23197done
23198_ACEOF
23199
23200cat >>$CONFIG_STATUS <<\_ACEOF
23201
23202{ (exit 0); exit 0; }
23203_ACEOF
252b5132 23204chmod +x $CONFIG_STATUS
5464f5a1
NN
23205ac_clean_files=$ac_clean_files_save
23206
23207
23208# configure is writing to config.log, and then calls config.status.
23209# config.status does its own redirection, appending to config.log.
23210# Unfortunately, on DOS this fails, as config.log is still kept open
23211# by configure, so config.status won't be able to write to it; its
23212# output is simply discarded. So we exec the FD to /dev/null,
23213# effectively closing config.log, so it can be properly (re)opened and
23214# appended to by config.status. When coming back to configure, we
23215# need to make the FD available again.
23216if test "$no_create" != yes; then
23217 ac_cs_success=:
23218 ac_config_status_args=
23219 test "$silent" = yes &&
23220 ac_config_status_args="$ac_config_status_args --quiet"
23221 exec 5>/dev/null
23222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23223 exec 5>>config.log
23224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23225 # would make configure fail if this is the last instruction.
23226 $ac_cs_success || { (exit 1); exit 1; }
23227fi
252b5132 23228
55c80943 23229
This page took 1.597292 seconds and 4 git commands to generate.