]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/configure
Resync.
[thirdparty/gcc.git] / gcc / configure
CommitLineData
005537df 1#! /bin/sh
861bb6c1 2# Guess values for system-dependent variables and create Makefiles.
b61ff9c8 3# Generated by GNU Autoconf 2.59.
861bb6c1 4#
b61ff9c8 5# Copyright (C) 2003 Free Software Foundation, Inc.
861bb6c1
JL
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
ba479fd2
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
b61ff9c8 12# Be Bourne compatible
ba479fd2
NN
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+"$@"}'='"$@"'
b61ff9c8
BS
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
ba479fd2 21fi
b61ff9c8 22DUALCASE=1; export DUALCASE # for MKS sh
ba479fd2
NN
23
24# Support unset when possible.
86da66b5 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ba479fd2
NN
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
b61ff9c8 33$as_unset ENV MAIL MAILPATH
ba479fd2
NN
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
86da66b5 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ba479fd2
NN
45 eval $as_var=C; export $as_var
46 else
b61ff9c8 47 $as_unset $as_var
ba479fd2
NN
48 fi
49done
50
51# Required to use basename.
b61ff9c8 52if expr a : '\(a\)' >/dev/null 2>&1; then
ba479fd2
NN
53 as_expr=expr
54else
55 as_expr=false
56fi
57
b61ff9c8 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
ba479fd2
NN
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
b61ff9c8 66as_me=`$as_basename "$0" ||
ba479fd2
NN
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
b61ff9c8
BS
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
ba479fd2 71echo X/"$0" |
b61ff9c8
BS
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
703d89ab 76
ab22c1fa 77
b61ff9c8
BS
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
1a4b763e 85
b61ff9c8
BS
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
1a4b763e
BS
97fi
98
1a4b763e 99
b61ff9c8
BS
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
1a4b763e 116
b61ff9c8
BS
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 '')
ba479fd2 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd7f7a6e 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ba479fd2
NN
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
b61ff9c8
BS
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
ba479fd2 137 /*)
b61ff9c8 138 if ("$as_dir/$as_base" -c '
1a4b763e
BS
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
b61ff9c8 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1a4b763e 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
b61ff9c8
BS
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
ba479fd2
NN
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
b61ff9c8
BS
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.
ba479fd2 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b61ff9c8
BS
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
ba479fd2
NN
165 sed '
166 N
b61ff9c8
BS
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
ba479fd2 170 t loop
b61ff9c8
BS
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
ba479fd2 173 ' >$as_me.lineno &&
b61ff9c8 174 chmod +x $as_me.lineno ||
ba479fd2
NN
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
b61ff9c8
BS
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
ba479fd2
NN
182 # Exit status is that of the last command.
183 exit
184}
185
186
b61ff9c8
BS
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= ;;
ba479fd2
NN
192esac
193
b61ff9c8 194if expr a : '\(a\)' >/dev/null 2>&1; then
ba479fd2
NN
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
b61ff9c8
BS
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
ba479fd2 207 as_ln_s='cp -p'
b61ff9c8
BS
208 else
209 as_ln_s='ln -s'
210 fi
ba479fd2
NN
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
b61ff9c8 216rm -f conf$$ conf$$.exe conf$$.file
861bb6c1 217
ba479fd2
NN
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
86da66b5 221 test -d ./-p && rmdir ./-p
ba479fd2
NN
222 as_mkdir_p=false
223fi
224
b61ff9c8 225as_executable_p="test -f"
ba479fd2
NN
226
227# Sed expression to map a string onto a valid CPP name.
86da66b5 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ba479fd2
NN
229
230# Sed expression to map a string onto a valid variable name.
86da66b5 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ba479fd2
NN
232
233
b61ff9c8
BS
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
ba479fd2
NN
242
243
da0f6381
PB
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
ba479fd2
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`
397
b61ff9c8
BS
398exec 6>&1
399
ba479fd2
NN
400#
401# Initializations.
402#
861bb6c1 403ac_default_prefix=/usr/local
ba479fd2
NN
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
b61ff9c8
BS
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
ba479fd2
NN
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="tree.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
b61ff9c8 427#if HAVE_SYS_TYPES_H
ba479fd2
NN
428# include <sys/types.h>
429#endif
b61ff9c8 430#if HAVE_SYS_STAT_H
ba479fd2
NN
431# include <sys/stat.h>
432#endif
b61ff9c8 433#if STDC_HEADERS
ba479fd2
NN
434# include <stdlib.h>
435# include <stddef.h>
436#else
b61ff9c8 437# if HAVE_STDLIB_H
ba479fd2
NN
438# include <stdlib.h>
439# endif
440#endif
b61ff9c8
BS
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
ba479fd2
NN
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
b61ff9c8 447#if HAVE_STRINGS_H
ba479fd2
NN
448# include <strings.h>
449#endif
b61ff9c8 450#if HAVE_INTTYPES_H
ba479fd2 451# include <inttypes.h>
b61ff9c8
BS
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
ba479fd2 456#endif
b61ff9c8 457#if HAVE_UNISTD_H
ba479fd2
NN
458# include <unistd.h>
459#endif"
460
572e5ae3 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 target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC STMP_FIXPROTO collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN ac_ct_AR STRIP ac_ct_STRIP lt_ECHO objdir enable_fast_install gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
ba479fd2 462ac_subst_files='language_hooks'
18c04407 463ac_pwd=`pwd`
861bb6c1
JL
464
465# Initialize some variables set by options.
ba479fd2
NN
466ac_init_help=
467ac_init_version=false
861bb6c1
JL
468# The variables have the same names as the options, with
469# dashes changed to underlines.
ba479fd2 470cache_file=/dev/null
861bb6c1 471exec_prefix=NONE
861bb6c1 472no_create=
861bb6c1
JL
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
861bb6c1
JL
481verbose=
482x_includes=NONE
483x_libraries=NONE
ba479fd2
NN
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
861bb6c1
JL
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
b61ff9c8 493datadir='${prefix}/share'
861bb6c1
JL
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
b61ff9c8 497libdir='${exec_prefix}/lib'
861bb6c1
JL
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
b61ff9c8
BS
500infodir='${prefix}/info'
501mandir='${prefix}/man'
861bb6c1 502
861bb6c1
JL
503ac_prev=
504for ac_option
505do
861bb6c1
JL
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
b61ff9c8 508 eval "$ac_prev=\$ac_option"
861bb6c1
JL
509 ac_prev=
510 continue
511 fi
512
b61ff9c8 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
861bb6c1
JL
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
b61ff9c8 517 case $ac_option in
861bb6c1
JL
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ba479fd2 522 bindir=$ac_optarg ;;
861bb6c1
JL
523
524 -build | --build | --buil | --bui | --bu)
ba479fd2 525 ac_prev=build_alias ;;
861bb6c1 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ba479fd2 527 build_alias=$ac_optarg ;;
861bb6c1
JL
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ba479fd2
NN
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
861bb6c1 538
b61ff9c8 539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
861bb6c1 540 ac_prev=datadir ;;
b61ff9c8
BS
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
ba479fd2 543 datadir=$ac_optarg ;;
861bb6c1
JL
544
545 -disable-* | --disable-*)
ba479fd2 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861bb6c1 547 # Reject names that are not valid shell variable names.
b61ff9c8 548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
ba479fd2
NN
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
b61ff9c8
BS
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
861bb6c1
JL
553
554 -enable-* | --enable-*)
ba479fd2 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
861bb6c1 556 # Reject names that are not valid shell variable names.
b61ff9c8 557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
ba479fd2
NN
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
b61ff9c8
BS
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
861bb6c1
JL
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
ba479fd2 574 exec_prefix=$ac_optarg ;;
861bb6c1
JL
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
ba479fd2
NN
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
861bb6c1
JL
586
587 -host | --host | --hos | --ho)
ba479fd2 588 ac_prev=host_alias ;;
861bb6c1 589 -host=* | --host=* | --hos=* | --ho=*)
ba479fd2 590 host_alias=$ac_optarg ;;
861bb6c1
JL
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
ba479fd2 597 includedir=$ac_optarg ;;
861bb6c1
JL
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ba479fd2 602 infodir=$ac_optarg ;;
861bb6c1
JL
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ba479fd2 607 libdir=$ac_optarg ;;
861bb6c1
JL
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
ba479fd2 614 libexecdir=$ac_optarg ;;
861bb6c1
JL
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
b61ff9c8
BS
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
861bb6c1
JL
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b61ff9c8
BS
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
ba479fd2 623 localstatedir=$ac_optarg ;;
861bb6c1
JL
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ba479fd2 628 mandir=$ac_optarg ;;
861bb6c1
JL
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ba479fd2 635 | --no-cr | --no-c | -n)
861bb6c1
JL
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ba479fd2 649 oldincludedir=$ac_optarg ;;
861bb6c1
JL
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ba479fd2 654 prefix=$ac_optarg ;;
861bb6c1
JL
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ba479fd2 661 program_prefix=$ac_optarg ;;
861bb6c1
JL
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ba479fd2 668 program_suffix=$ac_optarg ;;
861bb6c1
JL
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
ba479fd2 685 program_transform_name=$ac_optarg ;;
861bb6c1
JL
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
ba479fd2 695 sbindir=$ac_optarg ;;
861bb6c1
JL
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
ba479fd2 706 sharedstatedir=$ac_optarg ;;
861bb6c1
JL
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
ba479fd2 711 site=$ac_optarg ;;
861bb6c1
JL
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ba479fd2 716 srcdir=$ac_optarg ;;
861bb6c1
JL
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ba479fd2 723 sysconfdir=$ac_optarg ;;
861bb6c1
JL
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
ba479fd2 726 ac_prev=target_alias ;;
861bb6c1 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ba479fd2 728 target_alias=$ac_optarg ;;
861bb6c1
JL
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
ba479fd2
NN
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
861bb6c1
JL
735
736 -with-* | --with-*)
ba479fd2 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
861bb6c1 738 # Reject names that are not valid shell variable names.
b61ff9c8 739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
ba479fd2
NN
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
b61ff9c8
BS
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
861bb6c1
JL
748
749 -without-* | --without-*)
ba479fd2 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
861bb6c1 751 # Reject names that are not valid shell variable names.
b61ff9c8 752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
ba479fd2
NN
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
b61ff9c8
BS
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
861bb6c1
JL
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ba479fd2 767 x_includes=$ac_optarg ;;
861bb6c1
JL
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ba479fd2 774 x_libraries=$ac_optarg ;;
861bb6c1 775
ba479fd2
NN
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
861bb6c1
JL
779 ;;
780
ba479fd2
NN
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
b61ff9c8
BS
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
ba479fd2
NN
789 export $ac_envvar ;;
790
861bb6c1 791 *)
ba479fd2
NN
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
861bb6c1
JL
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
ba479fd2
NN
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
63cf211a 806fi
63cf211a 807
b61ff9c8
BS
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
861bb6c1 810do
b61ff9c8 811 eval ac_val=$`echo $ac_var`
ba479fd2 812 case $ac_val in
b61ff9c8
BS
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
2f41c1d6
PB
816 esac
817done
818
b61ff9c8
BS
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822do
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829done
830
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
ba479fd2
NN
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
6e3f3080 848
ba479fd2
NN
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
861bb6c1 853
861bb6c1
JL
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
b61ff9c8
BS
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
ba479fd2 860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
86da66b5
HPN
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
b61ff9c8
BS
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
ba479fd2 865echo X"$0" |
b61ff9c8
BS
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
861bb6c1 871 srcdir=$ac_confdir
f8c33439 872 if test ! -r $srcdir/$ac_unique_file; then
861bb6c1
JL
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
f8c33439 878if test ! -r $srcdir/$ac_unique_file; then
b61ff9c8
BS
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ba479fd2 884 { (exit 1); exit 1; }; }
b61ff9c8 885 fi
dd7f7a6e 886fi
f8c33439 887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
b61ff9c8 888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
dd7f7a6e 889 { (exit 1); exit 1; }; }
b61ff9c8
BS
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
923ac_env_GMPLIBS_set=${GMPLIBS+set}
924ac_env_GMPLIBS_value=$GMPLIBS
925ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
926ac_cv_env_GMPLIBS_value=$GMPLIBS
927ac_env_GMPINC_set=${GMPINC+set}
928ac_env_GMPINC_value=$GMPINC
929ac_cv_env_GMPINC_set=${GMPINC+set}
930ac_cv_env_GMPINC_value=$GMPINC
63cf211a 931
ba479fd2
NN
932#
933# Report the --help message.
934#
935if test "$ac_init_help" = "long"; then
936 # Omit some internal or obsolete options to make the list less imposing.
937 # This message is too long to be a string in the A/UX 3.1 sh.
938 cat <<_ACEOF
939\`configure' configures this package to adapt to many kinds of systems.
861bb6c1 940
ba479fd2 941Usage: $0 [OPTION]... [VAR=VALUE]...
861bb6c1 942
ba479fd2
NN
943To assign environment variables (e.g., CC, CFLAGS...), specify them as
944VAR=VALUE. See below for descriptions of some of the useful variables.
861bb6c1 945
ba479fd2 946Defaults for the options are specified in brackets.
861bb6c1 947
ba479fd2
NN
948Configuration:
949 -h, --help display this help and exit
950 --help=short display options specific to this package
951 --help=recursive display the short help of all the included packages
952 -V, --version display version information and exit
953 -q, --quiet, --silent do not print \`checking...' messages
954 --cache-file=FILE cache test results in FILE [disabled]
955 -C, --config-cache alias for \`--cache-file=config.cache'
956 -n, --no-create do not create output files
957 --srcdir=DIR find the sources in DIR [configure dir or \`..']
958
b61ff9c8
BS
959_ACEOF
960
961 cat <<_ACEOF
ba479fd2
NN
962Installation directories:
963 --prefix=PREFIX install architecture-independent files in PREFIX
86da66b5 964 [$ac_default_prefix]
ba479fd2 965 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
86da66b5 966 [PREFIX]
861bb6c1 967
ba479fd2
NN
968By default, \`make install' will install all the files in
969\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
970an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971for instance \`--prefix=\$HOME'.
13c22933 972
ba479fd2 973For better control, use the options below.
13c22933 974
ba479fd2
NN
975Fine tuning of the installation directories:
976 --bindir=DIR user executables [EPREFIX/bin]
977 --sbindir=DIR system admin executables [EPREFIX/sbin]
978 --libexecdir=DIR program executables [EPREFIX/libexec]
b61ff9c8 979 --datadir=DIR read-only architecture-independent data [PREFIX/share]
ba479fd2
NN
980 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
981 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
982 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
983 --libdir=DIR object code libraries [EPREFIX/lib]
984 --includedir=DIR C header files [PREFIX/include]
985 --oldincludedir=DIR C header files for non-gcc [/usr/include]
b61ff9c8
BS
986 --infodir=DIR info documentation [PREFIX/info]
987 --mandir=DIR man documentation [PREFIX/man]
ba479fd2 988_ACEOF
13c22933 989
ba479fd2 990 cat <<\_ACEOF
13c22933 991
ba479fd2
NN
992Program names:
993 --program-prefix=PREFIX prepend PREFIX to installed program names
994 --program-suffix=SUFFIX append SUFFIX to installed program names
995 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
13c22933 996
ba479fd2
NN
997System types:
998 --build=BUILD configure for building on BUILD [guessed]
999 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1000 --target=TARGET configure for building compilers for TARGET [HOST]
1001_ACEOF
13c22933
JJ
1002fi
1003
ba479fd2 1004if test -n "$ac_init_help"; then
13c22933 1005
ba479fd2 1006 cat <<\_ACEOF
13c22933 1007
ba479fd2
NN
1008Optional Features:
1009 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1010 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
03787dfd
KC
1011 --enable-generated-files-in-srcdir
1012 put copies of generated files in source dir
1013 intended for creating source tarballs for users
1014 without texinfo bison or flex.
3bbd5a19 1015 --enable-werror-always enable -Werror despite compiler version
ba479fd2
NN
1016 --enable-checking=LIST
1017 enable expensive run-time checks. With LIST,
1018 enable only specific categories of checks.
cdce5c16 1019 Categories are: yes,no,all,none,release.
726a989a 1020 Flags are: assert,df,fold,gc,gcac,gimple,misc,
7e98624c 1021 rtlflag,rtl,runtime,tree,valgrind,types.
ba479fd2 1022 --enable-coverage=LEVEL
fb38008e 1023 enable compiler's code coverage collection.
ba479fd2
NN
1024 Use to measure compiler performance and locate
1025 unused parts of the compiler. With LEVEL, specify
1026 optimization. Values are opt, noopt,
1027 default is noopt
1028 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1029 --enable-multilib enable library support for multiple ABIs
1030 --enable-__cxa_atexit enable __cxa_atexit for C++
79b87c74
MM
1031 --enable-decimal-float={no,yes,bid,dpd}
1032 enable decimal float extension to C. Selecting 'bid'
1033 or 'dpd' choses which decimal floating point format
1034 to use
ab22c1fa 1035 --enable-fixed-point enable fixed-point arithmetic extension to C
ba479fd2
NN
1036 --enable-threads enable thread usage for target GCC
1037 --enable-threads=LIB use LIB thread package for target GCC
8dea1cca
DD
1038 --enable-tls enable or disable generation of tls code
1039 overriding the assembler check for tls support
ba479fd2
NN
1040 --enable-objc-gc enable the use of Boehm's garbage collector with
1041 the GNU Objective-C runtime
1042 --disable-shared don't provide a shared libgcc
1043 --enable-intermodule build the compiler in one step
f3c9f174 1044 --enable-languages=LIST specify which front-ends to build
dfb77e37 1045 --disable-rpath do not hardcode runtime library paths
ba479fd2
NN
1046 --enable-initfini-array use .init_array/.fini_array sections
1047 --enable-sjlj-exceptions
1048 arrange to use setjmp/longjmp exception handling
7f970b70 1049 --enable-secureplt enable -msecure-plt by default for PowerPC
922e3e33 1050 --enable-cld enable -mcld by default for 32bit x86
ba479fd2
NN
1051 --disable-win32-registry
1052 disable lookup of installation paths in the
1053 Registry on Windows hosts
1054 --enable-win32-registry enable registry lookup (default)
1055 --enable-win32-registry=KEY
1056 use KEY instead of GCC version as the last portion
1057 of the registry key
da0f6381
PB
1058 --enable-shared[=PKGS]
1059 build shared libraries [default=yes]
1060 --enable-static[=PKGS]
1061 build static libraries [default=yes]
1062 --enable-fast-install[=PKGS]
1063 optimize for fast installation [default=yes]
1064 --disable-libtool-lock avoid locking (might break parallel builds)
ba479fd2
NN
1065 --enable-maintainer-mode
1066 enable make rules and dependencies not useful
1067 (and sometimes confusing) to the casual installer
1068 --enable-version-specific-runtime-libs
1069 specify that runtime libraries should be
1070 installed in a compiler-specific directory
093e61a6 1071
ba479fd2
NN
1072Optional Packages:
1073 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1074 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1546bb64 1075 --with-build-libsubdir=DIR Directory where to find libraries for build system
ba479fd2
NN
1076 --with-local-prefix=DIR specifies directory to put local include
1077 --with-gxx-include-dir=DIR
1078 specifies directory to put g++ header files
1079 --with-cpp-install-dir=DIR
1080 install the user visible C preprocessor in DIR
1081 (relative to PREFIX) as well as PREFIX/bin
1082 --with-gnu-ld arrange to work with GNU ld.
1083 --with-ld arrange to use the specified ld (full pathname)
d594623a 1084 --with-demangler-in-ld try to use demangler in GNU ld.
ba479fd2
NN
1085 --with-gnu-as arrange to work with GNU as
1086 --with-as arrange to use the specified as (full pathname)
1087 --with-stabs arrange to use stabs instead of host debug format
1088 --with-dwarf2 force the default debug format to be DWARF 2
160633c6
MM
1089 --with-build-sysroot=sysroot
1090 use sysroot as the system root during the build
ba479fd2 1091 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
2f41c1d6
PB
1092 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1093 --with-bugurl=URL Direct users to URL to report a bug
dfb77e37
KC
1094 --with-gnu-ld assume the C compiler uses GNU ld default=no
1095 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1096 --without-libiconv-prefix don't search for libiconv in includedir and libdir
443728bb 1097 --with-system-libunwind use installed libunwind
da0f6381
PB
1098 --with-pic try to use only PIC/non-PIC objects [default=use
1099 both]
1100 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ed965309 1101 --with-long-double-128 Use 128-bit long double by default.
59415997 1102 --with-gc={page,zone} choose the garbage collection mechanism to use
ba479fd2
NN
1103 with the compiler
1104 --with-system-zlib use installed libz
22482f74
MS
1105 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1106 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1107 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1108 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
13c22933 1109
ba479fd2
NN
1110Some influential environment variables:
1111 CC C compiler command
1112 CFLAGS C compiler flags
1113 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1114 nonstandard directory <lib dir>
b61ff9c8
BS
1115 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116 headers in a nonstandard directory <include dir>
ba479fd2 1117 CPP C preprocessor
6de9cd9a
DN
1118 GMPLIBS How to link GMP
1119 GMPINC How to find GMP include files
13c22933 1120
ba479fd2
NN
1121Use these variables to override the choices made by `configure' or to help
1122it to find libraries and programs with nonstandard names/locations.
73458fb7 1123
ba479fd2
NN
1124_ACEOF
1125fi
6e3f3080 1126
ba479fd2
NN
1127if test "$ac_init_help" = "recursive"; then
1128 # If there are subdirs, report their specific --help.
b61ff9c8 1129 ac_popdir=`pwd`
ba479fd2 1130 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
b61ff9c8 1131 test -d $ac_dir || continue
ba479fd2
NN
1132 ac_builddir=.
1133
b61ff9c8 1134if test "$ac_dir" != .; then
ba479fd2 1135 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b61ff9c8
BS
1136 # A "../" for each directory in $ac_dir_suffix.
1137 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1138else
1139 ac_dir_suffix= ac_top_builddir=
1140fi
ba479fd2
NN
1141
1142case $srcdir in
b61ff9c8 1143 .) # No --srcdir option. We are building in place.
ba479fd2 1144 ac_srcdir=.
b61ff9c8
BS
1145 if test -z "$ac_top_builddir"; then
1146 ac_top_srcdir=.
1147 else
1148 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1149 fi ;;
1150 [\\/]* | ?:[\\/]* ) # Absolute path.
ba479fd2 1151 ac_srcdir=$srcdir$ac_dir_suffix;
b61ff9c8
BS
1152 ac_top_srcdir=$srcdir ;;
1153 *) # Relative path.
1154 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1155 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1156esac
1157
1158# Do not use `cd foo && pwd` to compute absolute paths, because
1159# the directories may not exist.
1160case `pwd` in
1161.) ac_abs_builddir="$ac_dir";;
1162*)
1163 case "$ac_dir" in
1164 .) ac_abs_builddir=`pwd`;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1166 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1167 esac;;
1168esac
1169case $ac_abs_builddir in
1170.) ac_abs_top_builddir=${ac_top_builddir}.;;
1171*)
1172 case ${ac_top_builddir}. in
1173 .) ac_abs_top_builddir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1175 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1176 esac;;
1177esac
1178case $ac_abs_builddir in
1179.) ac_abs_srcdir=$ac_srcdir;;
1180*)
1181 case $ac_srcdir in
1182 .) ac_abs_srcdir=$ac_abs_builddir;;
1183 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1184 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1185 esac;;
1186esac
1187case $ac_abs_builddir in
1188.) ac_abs_top_srcdir=$ac_top_srcdir;;
1189*)
1190 case $ac_top_srcdir in
1191 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1192 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1193 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1194 esac;;
86da66b5 1195esac
b61ff9c8
BS
1196
1197 cd $ac_dir
1198 # Check for guested configure; otherwise get Cygnus style configure.
1199 if test -f $ac_srcdir/configure.gnu; then
1200 echo
1201 $SHELL $ac_srcdir/configure.gnu --help=recursive
1202 elif test -f $ac_srcdir/configure; then
1203 echo
1204 $SHELL $ac_srcdir/configure --help=recursive
1205 elif test -f $ac_srcdir/configure.ac ||
1206 test -f $ac_srcdir/configure.in; then
1207 echo
1208 $ac_configure --help
ba479fd2
NN
1209 else
1210 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b61ff9c8
BS
1211 fi
1212 cd $ac_popdir
ba479fd2
NN
1213 done
1214fi
1215
b61ff9c8 1216test -n "$ac_init_help" && exit 0
ba479fd2
NN
1217if $ac_init_version; then
1218 cat <<\_ACEOF
1219
b61ff9c8 1220Copyright (C) 2003 Free Software Foundation, Inc.
ba479fd2
NN
1221This configure script is free software; the Free Software Foundation
1222gives unlimited permission to copy, distribute and modify it.
1223_ACEOF
b61ff9c8 1224 exit 0
ba479fd2 1225fi
b61ff9c8
BS
1226exec 5>config.log
1227cat >&5 <<_ACEOF
ba479fd2
NN
1228This file contains any messages produced by compilers while
1229running configure, to aid debugging if configure makes a mistake.
1230
1231It was created by $as_me, which was
b61ff9c8 1232generated by GNU Autoconf 2.59. Invocation command line was
ba479fd2
NN
1233
1234 $ $0 $@
1235
1236_ACEOF
1237{
1238cat <<_ASUNAME
1239## --------- ##
1240## Platform. ##
1241## --------- ##
1242
1243hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1244uname -m = `(uname -m) 2>/dev/null || echo unknown`
1245uname -r = `(uname -r) 2>/dev/null || echo unknown`
1246uname -s = `(uname -s) 2>/dev/null || echo unknown`
1247uname -v = `(uname -v) 2>/dev/null || echo unknown`
1248
1249/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1250/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1251
1252/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1253/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1254/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b61ff9c8 1255hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
ba479fd2
NN
1256/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1257/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1258/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1259
1260_ASUNAME
1261
1262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1263for as_dir in $PATH
1264do
1265 IFS=$as_save_IFS
1266 test -z "$as_dir" && as_dir=.
1267 echo "PATH: $as_dir"
1268done
1269
1270} >&5
1271
1272cat >&5 <<_ACEOF
1273
1274
1275## ----------- ##
1276## Core tests. ##
1277## ----------- ##
1278
1279_ACEOF
1280
1281
1282# Keep a trace of the command line.
1283# Strip out --no-create and --no-recursion so they do not pile up.
1284# Strip out --silent because we don't want to record it for future runs.
1285# Also quote any args containing shell meta-characters.
1286# Make two passes to allow for proper duplicate-argument suppression.
1287ac_configure_args=
1288ac_configure_args0=
1289ac_configure_args1=
b61ff9c8 1290ac_sep=
ba479fd2
NN
1291ac_must_keep_next=false
1292for ac_pass in 1 2
1293do
1294 for ac_arg
1295 do
1296 case $ac_arg in
1297 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299 | -silent | --silent | --silen | --sile | --sil)
1300 continue ;;
b61ff9c8 1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
ba479fd2
NN
1302 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1303 esac
1304 case $ac_pass in
1305 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1306 2)
1307 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1308 if test $ac_must_keep_next = true; then
86da66b5 1309 ac_must_keep_next=false # Got value, back to normal.
ba479fd2 1310 else
86da66b5
HPN
1311 case $ac_arg in
1312 *=* | --config-cache | -C | -disable-* | --disable-* \
1313 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1314 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1315 | -with-* | --with-* | -without-* | --without-* | --x)
1316 case "$ac_configure_args0 " in
1317 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1318 esac
1319 ;;
1320 -* ) ac_must_keep_next=true ;;
1321 esac
ba479fd2 1322 fi
b61ff9c8
BS
1323 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1324 # Get rid of the leading space.
1325 ac_sep=" "
ba479fd2
NN
1326 ;;
1327 esac
1328 done
1329done
1330$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1331$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1332
1333# When interrupted or exit'd, cleanup temporary files, and complete
1334# config.log. We remove comments because anyway the quotes in there
1335# would cause problems or look ugly.
b61ff9c8
BS
1336# WARNING: Be sure not to use single quotes in there, as some shells,
1337# such as our DU 5.0 friend, will then `close' the trap.
ba479fd2
NN
1338trap 'exit_status=$?
1339 # Save into config.log some information that might help in debugging.
1340 {
1341 echo
1342
1343 cat <<\_ASBOX
1344## ---------------- ##
1345## Cache variables. ##
1346## ---------------- ##
1347_ASBOX
1348 echo
1349 # The following way of writing the cache mishandles newlines in values,
b61ff9c8 1350{
ba479fd2 1351 (set) 2>&1 |
b61ff9c8
BS
1352 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1353 *ac_space=\ *)
ba479fd2 1354 sed -n \
b61ff9c8
BS
1355 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1357 ;;
ba479fd2 1358 *)
b61ff9c8
BS
1359 sed -n \
1360 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ba479fd2 1361 ;;
b61ff9c8
BS
1362 esac;
1363}
ba479fd2
NN
1364 echo
1365
1366 cat <<\_ASBOX
1367## ----------------- ##
1368## Output variables. ##
1369## ----------------- ##
1370_ASBOX
1371 echo
1372 for ac_var in $ac_subst_vars
1373 do
b61ff9c8
BS
1374 eval ac_val=$`echo $ac_var`
1375 echo "$ac_var='"'"'$ac_val'"'"'"
ba479fd2
NN
1376 done | sort
1377 echo
1378
1379 if test -n "$ac_subst_files"; then
1380 cat <<\_ASBOX
b61ff9c8
BS
1381## ------------- ##
1382## Output files. ##
1383## ------------- ##
ba479fd2
NN
1384_ASBOX
1385 echo
1386 for ac_var in $ac_subst_files
1387 do
b61ff9c8
BS
1388 eval ac_val=$`echo $ac_var`
1389 echo "$ac_var='"'"'$ac_val'"'"'"
ba479fd2
NN
1390 done | sort
1391 echo
1392 fi
1393
1394 if test -s confdefs.h; then
1395 cat <<\_ASBOX
1396## ----------- ##
1397## confdefs.h. ##
1398## ----------- ##
1399_ASBOX
1400 echo
b61ff9c8 1401 sed "/^$/d" confdefs.h | sort
ba479fd2
NN
1402 echo
1403 fi
1404 test "$ac_signal" != 0 &&
1405 echo "$as_me: caught signal $ac_signal"
1406 echo "$as_me: exit $exit_status"
1407 } >&5
b61ff9c8
BS
1408 rm -f core *.core &&
1409 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
ba479fd2 1410 exit $exit_status
b61ff9c8 1411 ' 0
ba479fd2
NN
1412for ac_signal in 1 2 13 15; do
1413 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1414done
1415ac_signal=0
1416
1417# confdefs.h avoids OS command line length limits that DEFS can exceed.
b61ff9c8
BS
1418rm -rf conftest* confdefs.h
1419# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1420echo >confdefs.h
ba479fd2
NN
1421
1422# Predefined preprocessor variables.
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_NAME "$PACKAGE_NAME"
1426_ACEOF
1427
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1431_ACEOF
1432
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_VERSION "$PACKAGE_VERSION"
1436_ACEOF
1437
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_STRING "$PACKAGE_STRING"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1446_ACEOF
1447
1448
1449# Let the site file select an alternate cache file if it wants to.
1450# Prefer explicitly selected file to automatically selected ones.
b61ff9c8
BS
1451if test -z "$CONFIG_SITE"; then
1452 if test "x$prefix" != xNONE; then
1453 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1454 else
1455 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1456 fi
ba479fd2 1457fi
b61ff9c8 1458for ac_site_file in $CONFIG_SITE; do
ba479fd2
NN
1459 if test -r "$ac_site_file"; then
1460 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1461echo "$as_me: loading site script $ac_site_file" >&6;}
1462 sed 's/^/| /' "$ac_site_file" >&5
1463 . "$ac_site_file"
1464 fi
1465done
1466
1467if test -r "$cache_file"; then
1468 # Some versions of bash will fail to source /dev/null (special
1469 # files actually), so we avoid doing that.
1470 if test -f "$cache_file"; then
1471 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1472echo "$as_me: loading cache $cache_file" >&6;}
1473 case $cache_file in
b61ff9c8
BS
1474 [\\/]* | ?:[\\/]* ) . $cache_file;;
1475 *) . ./$cache_file;;
ba479fd2
NN
1476 esac
1477 fi
1478else
1479 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1480echo "$as_me: creating cache $cache_file" >&6;}
1481 >$cache_file
1482fi
1483
1484# Check that the precious variables saved in the cache have kept the same
1485# value.
1486ac_cache_corrupted=false
b61ff9c8
BS
1487for ac_var in `(set) 2>&1 |
1488 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
ba479fd2
NN
1489 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1490 eval ac_new_set=\$ac_env_${ac_var}_set
b61ff9c8
BS
1491 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1492 eval ac_new_val="\$ac_env_${ac_var}_value"
ba479fd2
NN
1493 case $ac_old_set,$ac_new_set in
1494 set,)
1495 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1496echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1497 ac_cache_corrupted=: ;;
1498 ,set)
1499 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1500echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1501 ac_cache_corrupted=: ;;
1502 ,);;
1503 *)
1504 if test "x$ac_old_val" != "x$ac_new_val"; then
deb984e6
PB
1505 # differences in whitespace do not lead to failure.
1506 ac_old_val_w=`echo x $ac_old_val`
1507 ac_new_val_w=`echo x $ac_new_val`
1508 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1509 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ba479fd2 1510echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
deb984e6
PB
1511 ac_cache_corrupted=:
1512 else
1513 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1514echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1515 eval $ac_var=\$ac_old_val
1516 fi
1517 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1518echo "$as_me: former value: \`$ac_old_val'" >&2;}
1519 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1520echo "$as_me: current value: \`$ac_new_val'" >&2;}
ba479fd2
NN
1521 fi;;
1522 esac
1523 # Pass precious variables to config.status.
1524 if test "$ac_new_set" = set; then
1525 case $ac_new_val in
b61ff9c8
BS
1526 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1527 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ba479fd2
NN
1528 *) ac_arg=$ac_var=$ac_new_val ;;
1529 esac
1530 case " $ac_configure_args " in
1531 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1532 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1533 esac
1534 fi
1535done
1536if $ac_cache_corrupted; then
18c04407
RW
1537 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1538echo "$as_me: error: in \`$ac_pwd':" >&2;}
ba479fd2
NN
1539 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1540echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1541 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1542echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1543 { (exit 1); exit 1; }; }
1544fi
1545
b61ff9c8
BS
1546ac_ext=c
1547ac_cpp='$CPP $CPPFLAGS'
1548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1550ac_compiler_gnu=$ac_cv_c_compiler_gnu
1551
ba479fd2
NN
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
18c04407
RW
1568
1569
1570
ba479fd2
NN
1571
1572
914c5af7 1573
b61ff9c8 1574 ac_config_headers="$ac_config_headers auto-host.h:config.in"
ba479fd2
NN
1575
1576
9f18db39
PB
1577gcc_version=`cat $srcdir/BASE-VER`
1578
ba479fd2
NN
1579# Determine the host, build, and target systems
1580ac_aux_dir=
b61ff9c8
BS
1581for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1582 if test -f $ac_dir/install-sh; then
ba479fd2
NN
1583 ac_aux_dir=$ac_dir
1584 ac_install_sh="$ac_aux_dir/install-sh -c"
1585 break
b61ff9c8 1586 elif test -f $ac_dir/install.sh; then
ba479fd2
NN
1587 ac_aux_dir=$ac_dir
1588 ac_install_sh="$ac_aux_dir/install.sh -c"
1589 break
b61ff9c8 1590 elif test -f $ac_dir/shtool; then
ba479fd2
NN
1591 ac_aux_dir=$ac_dir
1592 ac_install_sh="$ac_aux_dir/shtool install -c"
1593 break
1594 fi
1595done
1596if test -z "$ac_aux_dir"; then
b61ff9c8
BS
1597 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1598echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
ba479fd2
NN
1599 { (exit 1); exit 1; }; }
1600fi
b61ff9c8
BS
1601ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1602ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1603ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
ba479fd2
NN
1604
1605# Make sure we can run config.sub.
b61ff9c8
BS
1606$ac_config_sub sun4 >/dev/null 2>&1 ||
1607 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1608echo "$as_me: error: cannot run $ac_config_sub" >&2;}
ba479fd2
NN
1609 { (exit 1); exit 1; }; }
1610
b61ff9c8
BS
1611echo "$as_me:$LINENO: checking build system type" >&5
1612echo $ECHO_N "checking build system type... $ECHO_C" >&6
ba479fd2
NN
1613if test "${ac_cv_build+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
b61ff9c8
BS
1616 ac_cv_build_alias=$build_alias
1617test -z "$ac_cv_build_alias" &&
1618 ac_cv_build_alias=`$ac_config_guess`
1619test -z "$ac_cv_build_alias" &&
ba479fd2
NN
1620 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1621echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1622 { (exit 1); exit 1; }; }
b61ff9c8
BS
1623ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1624 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1625echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
ba479fd2
NN
1626 { (exit 1); exit 1; }; }
1627
1628fi
b61ff9c8
BS
1629echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1630echo "${ECHO_T}$ac_cv_build" >&6
ba479fd2 1631build=$ac_cv_build
b61ff9c8
BS
1632build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1635
1636
1637echo "$as_me:$LINENO: checking host system type" >&5
1638echo $ECHO_N "checking host system type... $ECHO_C" >&6
ba479fd2
NN
1639if test "${ac_cv_host+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
b61ff9c8
BS
1642 ac_cv_host_alias=$host_alias
1643test -z "$ac_cv_host_alias" &&
1644 ac_cv_host_alias=$ac_cv_build_alias
1645ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1646 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1647echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
ba479fd2
NN
1648 { (exit 1); exit 1; }; }
1649
1650fi
b61ff9c8
BS
1651echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1652echo "${ECHO_T}$ac_cv_host" >&6
ba479fd2 1653host=$ac_cv_host
b61ff9c8
BS
1654host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1657
1658
1659echo "$as_me:$LINENO: checking target system type" >&5
1660echo $ECHO_N "checking target system type... $ECHO_C" >&6
ba479fd2
NN
1661if test "${ac_cv_target+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
b61ff9c8
BS
1664 ac_cv_target_alias=$target_alias
1665test "x$ac_cv_target_alias" = "x" &&
1666 ac_cv_target_alias=$ac_cv_host_alias
1667ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1669echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
ba479fd2
NN
1670 { (exit 1); exit 1; }; }
1671
1672fi
b61ff9c8
BS
1673echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1674echo "${ECHO_T}$ac_cv_target" >&6
ba479fd2 1675target=$ac_cv_target
b61ff9c8
BS
1676target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
ba479fd2
NN
1679
1680
1681# The aliases save the names the user supplied, while $host etc.
1682# will get canonicalized.
1683test -n "$target_alias" &&
1684 test "$program_prefix$program_suffix$program_transform_name" = \
1685 NONENONEs,x,x, &&
1686 program_prefix=${target_alias}-
1687
1688# Determine the noncanonical target name, for directory use.
18fc9bd4
RG
1689 case ${build_alias} in
1690 "") build_noncanonical=${build} ;;
1691 *) build_noncanonical=${build_alias} ;;
1692esac
1693
1694 case ${host_alias} in
1695 "") host_noncanonical=${build_noncanonical} ;;
1696 *) host_noncanonical=${host_alias} ;;
1697esac
1698
1699 case ${target_alias} in
1700 "") target_noncanonical=${host_noncanonical} ;;
1701 *) target_noncanonical=${target_alias} ;;
1702esac
1703
1704
1705
8f1529e6
L
1706
1707# Determine the target- and build-specific subdirectories
57255173
PB
1708
1709# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1710# have matching libraries, they should use host libraries: Makefile.tpl
1711# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1712# However, they still use the build modules, because the corresponding
1713# host modules (e.g. bison) are only built for the host when bootstrap
1714# finishes. So:
1715# - build_subdir is where we find build modules, and never changes.
1716# - build_libsubdir is where we find build libraries, and can be overridden.
1717
1718# Prefix 'build-' so this never conflicts with target_subdir.
18fc9bd4 1719build_subdir="build-${build_noncanonical}"
1546bb64 1720
b61ff9c8 1721# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1546bb64 1722if test "${with_build_libsubdir+set}" = set; then
b61ff9c8
BS
1723 withval="$with_build_libsubdir"
1724 build_libsubdir="$withval"
1546bb64
PB
1725else
1726 build_libsubdir="$build_subdir"
b61ff9c8 1727fi;
18fc9bd4
RG
1728# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1729if ( test $srcdir = . && test -d gcc ) \
1730 || test -d $srcdir/../host-${host_noncanonical}; then
1731 host_subdir="host-${host_noncanonical}"
1732else
1733 host_subdir=.
1734fi
1735# No prefix.
1736target_subdir=${target_noncanonical}
1737
73458fb7 1738
093e61a6 1739# Set program_transform_name
13c22933 1740test "$program_prefix" != NONE &&
b61ff9c8 1741 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13c22933
JJ
1742# Use a double $ so make ignores it.
1743test "$program_suffix" != NONE &&
b61ff9c8 1744 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
ba479fd2
NN
1745# Double any \ or $. echo might interpret backslashes.
1746# By default was `s,x,x', remove it if useless.
1747cat <<\_ACEOF >conftest.sed
1748s/[\\$]/&&/g;s/;s,x,x,$//
1749_ACEOF
1750program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
b61ff9c8 1751rm conftest.sed
13c22933
JJ
1752
1753
34a86c2b
NN
1754# Check for bogus environment variables.
1755# Test if LIBRARY_PATH contains the notation for the current directory
1756# since this would lead to problems installing/building glibc.
1757# LIBRARY_PATH contains the current directory if one of the following
1758# is true:
1759# - one of the terminals (":" and ";") is the first or last sign
1760# - two terminals occur directly after each other
1761# - the path contains an element with a dot in it
b61ff9c8
BS
1762echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1763echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
34a86c2b
NN
1764case ${LIBRARY_PATH} in
1765 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1766 library_path_setting="contains current directory"
1767 ;;
1768 *)
1769 library_path_setting="ok"
1770 ;;
1771esac
b61ff9c8
BS
1772echo "$as_me:$LINENO: result: $library_path_setting" >&5
1773echo "${ECHO_T}$library_path_setting" >&6
34a86c2b 1774if test "$library_path_setting" != "ok"; then
ba479fd2 1775{ { echo "$as_me:$LINENO: error:
34a86c2b
NN
1776*** LIBRARY_PATH shouldn't contain the current directory when
1777*** building gcc. Please change the environment variable
ba479fd2
NN
1778*** and run configure again." >&5
1779echo "$as_me: error:
1780*** LIBRARY_PATH shouldn't contain the current directory when
1781*** building gcc. Please change the environment variable
1782*** and run configure again." >&2;}
1783 { (exit 1); exit 1; }; }
e9a25f70
JL
1784fi
1785
34a86c2b
NN
1786# Test if GCC_EXEC_PREFIX contains the notation for the current directory
1787# since this would lead to problems installing/building glibc.
1788# GCC_EXEC_PREFIX contains the current directory if one of the following
1789# is true:
1790# - one of the terminals (":" and ";") is the first or last sign
1791# - two terminals occur directly after each other
1792# - the path contains an element with a dot in it
b61ff9c8
BS
1793echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1794echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
34a86c2b
NN
1795case ${GCC_EXEC_PREFIX} in
1796 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1797 gcc_exec_prefix_setting="contains current directory"
1798 ;;
1799 *)
1800 gcc_exec_prefix_setting="ok"
1801 ;;
1802esac
b61ff9c8
BS
1803echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1804echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
34a86c2b 1805if test "$gcc_exec_prefix_setting" != "ok"; then
ba479fd2
NN
1806{ { echo "$as_me:$LINENO: error:
1807*** GCC_EXEC_PREFIX shouldn't contain the current directory when
1808*** building gcc. Please change the environment variable
1809*** and run configure again." >&5
1810echo "$as_me: error:
cafe096b
EC
1811*** GCC_EXEC_PREFIX shouldn't contain the current directory when
1812*** building gcc. Please change the environment variable
ba479fd2
NN
1813*** and run configure again." >&2;}
1814 { (exit 1); exit 1; }; }
34a86c2b
NN
1815fi
1816
1817# -----------
1818# Directories
1819# -----------
1820
1821# Specify the local prefix
1822local_prefix=
ba479fd2 1823
b61ff9c8 1824# Check whether --with-local-prefix or --without-local-prefix was given.
34a86c2b 1825if test "${with_local_prefix+set}" = set; then
b61ff9c8
BS
1826 withval="$with_local_prefix"
1827 case "${withval}" in
ba479fd2
NN
1828yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1829echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1830 { (exit 1); exit 1; }; } ;;
34a86c2b
NN
1831no) ;;
1832*) local_prefix=$with_local_prefix ;;
1833esac
b61ff9c8 1834fi;
34a86c2b
NN
1835
1836# Default local prefix if it is empty
1837if test x$local_prefix = x; then
1838 local_prefix=/usr/local
1839fi
1840
1841# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1842# passed in by the toplevel make and thus we'd get different behavior
1843# depending on where we built the sources.
1844gcc_gxx_include_dir=
1845# Specify the g++ header file directory
ba479fd2 1846
b61ff9c8 1847# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
34a86c2b 1848if test "${with_gxx_include_dir+set}" = set; then
b61ff9c8
BS
1849 withval="$with_gxx_include_dir"
1850 case "${withval}" in
ba479fd2
NN
1851yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1852echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1853 { (exit 1); exit 1; }; } ;;
34a86c2b
NN
1854no) ;;
1855*) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1856esac
b61ff9c8 1857fi;
34a86c2b 1858
0f57bf40 1859# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
34a86c2b
NN
1860if test x${gcc_gxx_include_dir} = x; then
1861 if test x${enable_version_specific_runtime_libs} = xyes; then
1862 gcc_gxx_include_dir='${libsubdir}/include/c++'
1863 else
0f57bf40
MM
1864 libstdcxx_incdir='include/c++/$(version)'
1865 if test x$host != x$target; then
1866 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1867 fi
15c723f3 1868 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
34a86c2b
NN
1869 fi
1870fi
1871
ba479fd2 1872
b61ff9c8 1873# Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
34a86c2b 1874if test "${with_cpp_install_dir+set}" = set; then
b61ff9c8
BS
1875 withval="$with_cpp_install_dir"
1876 if test x$withval = xyes; then
ba479fd2
NN
1877 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1878echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1879 { (exit 1); exit 1; }; }
34a86c2b
NN
1880elif test x$withval != xno; then
1881 cpp_install_dir=$withval
1882fi
b61ff9c8 1883fi;
34a86c2b 1884
51b9ff45 1885# We would like to our source tree to be readonly. However when releases or
ba479fd2 1886# pre-releases are generated, the flex/bison generated files as well as the
51b9ff45 1887# various formats of manuals need to be included along with the rest of the
ba479fd2 1888# sources. Therefore we have --enable-generated-files-in-srcdir to do
51b9ff45
KC
1889# just that.
1890
b61ff9c8
BS
1891echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1892echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1893 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
51b9ff45 1894if test "${enable_generated_files_in_srcdir+set}" = set; then
b61ff9c8
BS
1895 enableval="$enable_generated_files_in_srcdir"
1896 generated_files_in_srcdir=$enableval
51b9ff45 1897else
03787dfd 1898 generated_files_in_srcdir=no
b61ff9c8 1899fi;
1a4b763e 1900
b61ff9c8
BS
1901echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1902echo "${ECHO_T}$generated_files_in_srcdir" >&6
03787dfd
KC
1903
1904if test "$generated_files_in_srcdir" = "yes"; then
1905 GENINSRC=''
03787dfd
KC
1906else
1907 GENINSRC='#'
03787dfd
KC
1908fi
1909
1910
34a86c2b
NN
1911# -------------------
1912# Find default linker
1913# -------------------
1914
1915# With GNU ld
ba479fd2 1916
b61ff9c8 1917# Check whether --with-gnu-ld or --without-gnu-ld was given.
34a86c2b 1918if test "${with_gnu_ld+set}" = set; then
b61ff9c8
BS
1919 withval="$with_gnu_ld"
1920 gnu_ld_flag="$with_gnu_ld"
34a86c2b
NN
1921else
1922 gnu_ld_flag=no
b61ff9c8 1923fi;
6e3f3080 1924
63cf211a 1925# With pre-defined ld
ba479fd2 1926
b61ff9c8 1927# Check whether --with-ld or --without-ld was given.
34a86c2b 1928if test "${with_ld+set}" = set; then
b61ff9c8
BS
1929 withval="$with_ld"
1930 DEFAULT_LINKER="$with_ld"
1931fi;
34a86c2b
NN
1932if test x"${DEFAULT_LINKER+set}" = x"set"; then
1933 if test ! -x "$DEFAULT_LINKER"; then
99c012a8
BE
1934 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1935echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1936 { (exit 1); exit 1; }; }
34a86c2b
NN
1937 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1938 gnu_ld_flag=yes
1939 fi
ba479fd2
NN
1940
1941cat >>confdefs.h <<_ACEOF
34a86c2b 1942#define DEFAULT_LINKER "$DEFAULT_LINKER"
ba479fd2 1943_ACEOF
34a86c2b
NN
1944
1945fi
1946
2091ff66
NF
1947gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1948
1949cat >>confdefs.h <<_ACEOF
1950#define HAVE_GNU_LD $gnu_ld
1951_ACEOF
1952
1953
b61ff9c8
BS
1954echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1955echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
34a86c2b
NN
1956if test x"${DEFAULT_LINKER+set}" = x"set"; then
1957 if test x"$gnu_ld_flag" = x"no"; then
b61ff9c8
BS
1958 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1959echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
34a86c2b 1960 else
b61ff9c8
BS
1961 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1962echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
34a86c2b
NN
1963 fi
1964else
b61ff9c8
BS
1965 echo "$as_me:$LINENO: result: no" >&5
1966echo "${ECHO_T}no" >&6
34a86c2b
NN
1967fi
1968
d594623a
L
1969# With demangler in GNU ld
1970
b61ff9c8 1971# Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
d594623a 1972if test "${with_demangler_in_ld+set}" = set; then
b61ff9c8
BS
1973 withval="$with_demangler_in_ld"
1974 demangler_in_ld="$with_demangler_in_ld"
d594623a
L
1975else
1976 demangler_in_ld=no
b61ff9c8 1977fi;
d594623a 1978
34a86c2b
NN
1979# ----------------------
1980# Find default assembler
1981# ----------------------
1982
1983# With GNU as
ba479fd2 1984
b61ff9c8 1985# Check whether --with-gnu-as or --without-gnu-as was given.
34a86c2b 1986if test "${with_gnu_as+set}" = set; then
b61ff9c8
BS
1987 withval="$with_gnu_as"
1988 gas_flag="$with_gnu_as"
34a86c2b
NN
1989else
1990 gas_flag=no
b61ff9c8 1991fi;
ab22c1fa 1992
1a4b763e 1993
b61ff9c8 1994# Check whether --with-as or --without-as was given.
34a86c2b 1995if test "${with_as+set}" = set; then
b61ff9c8
BS
1996 withval="$with_as"
1997 DEFAULT_ASSEMBLER="$with_as"
1998fi;
34a86c2b
NN
1999if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2000 if test ! -x "$DEFAULT_ASSEMBLER"; then
99c012a8
BE
2001 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2002echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2003 { (exit 1); exit 1; }; }
34a86c2b
NN
2004 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2005 gas_flag=yes
2006 fi
ba479fd2
NN
2007
2008cat >>confdefs.h <<_ACEOF
34a86c2b 2009#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
ba479fd2 2010_ACEOF
34a86c2b
NN
2011
2012fi
2013
dc60b775
CD
2014gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2015
2016cat >>confdefs.h <<_ACEOF
2017#define HAVE_GNU_AS $gnu_as
2018_ACEOF
2019
2020
b61ff9c8
BS
2021echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2022echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
34a86c2b
NN
2023if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2024 if test x"$gas_flag" = x"no"; then
b61ff9c8
BS
2025 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2026echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
34a86c2b 2027 else
b61ff9c8
BS
2028 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2029echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
34a86c2b
NN
2030 fi
2031else
b61ff9c8
BS
2032 echo "$as_me:$LINENO: result: no" >&5
2033echo "${ECHO_T}no" >&6
34a86c2b
NN
2034fi
2035
2036# ---------------
2037# Find C compiler
2038# ---------------
2039
426ca3ca
RO
2040# If a non-executable a.out is present (e.g. created by GNU as above even if
2041# invoked with -v only), the IRIX 6 native ld just overwrites the existing
2042# file, even when creating an executable, so an execution test fails.
2043# Remove possible default executable files to avoid this.
2044#
2045# FIXME: This really belongs into AC_PROG_CC and can be removed once
2046# Autoconf includes it.
2047rm -f a.out a.exe b.out
2048
34a86c2b 2049# Find the native compiler
ba479fd2
NN
2050ac_ext=c
2051ac_cpp='$CPP $CPPFLAGS'
2052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055if test -n "$ac_tool_prefix"; then
2056 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2057set dummy ${ac_tool_prefix}gcc; ac_word=$2
b61ff9c8
BS
2058echo "$as_me:$LINENO: checking for $ac_word" >&5
2059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
2060if test "${ac_cv_prog_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062else
2063 if test -n "$CC"; then
2064 ac_cv_prog_CC="$CC" # Let the user override the test.
2065else
2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ba479fd2
NN
2073 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 break 2
2076 fi
2077done
2078done
2079
2080fi
2081fi
2082CC=$ac_cv_prog_CC
2083if test -n "$CC"; then
b61ff9c8
BS
2084 echo "$as_me:$LINENO: result: $CC" >&5
2085echo "${ECHO_T}$CC" >&6
ba479fd2 2086else
b61ff9c8
BS
2087 echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6
ba479fd2
NN
2089fi
2090
2091fi
2092if test -z "$ac_cv_prog_CC"; then
2093 ac_ct_CC=$CC
2094 # Extract the first word of "gcc", so it can be a program name with args.
6e3f3080 2095set dummy gcc; ac_word=$2
b61ff9c8
BS
2096echo "$as_me:$LINENO: checking for $ac_word" >&5
2097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
2098if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100else
2101 if test -n "$ac_ct_CC"; then
2102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2103else
2104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105for as_dir in $PATH
2106do
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ba479fd2
NN
2111 ac_cv_prog_ac_ct_CC="gcc"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 break 2
2114 fi
2115done
2116done
2117
2118fi
2119fi
2120ac_ct_CC=$ac_cv_prog_ac_ct_CC
2121if test -n "$ac_ct_CC"; then
b61ff9c8
BS
2122 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2123echo "${ECHO_T}$ac_ct_CC" >&6
ba479fd2 2124else
b61ff9c8
BS
2125 echo "$as_me:$LINENO: result: no" >&5
2126echo "${ECHO_T}no" >&6
ba479fd2
NN
2127fi
2128
b61ff9c8 2129 CC=$ac_ct_CC
ba479fd2
NN
2130else
2131 CC="$ac_cv_prog_CC"
2132fi
2133
2134if test -z "$CC"; then
b61ff9c8
BS
2135 if test -n "$ac_tool_prefix"; then
2136 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ba479fd2 2137set dummy ${ac_tool_prefix}cc; ac_word=$2
b61ff9c8
BS
2138echo "$as_me:$LINENO: checking for $ac_word" >&5
2139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
2140if test "${ac_cv_prog_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
cd9e5e7c
MK
2142else
2143 if test -n "$CC"; then
2144 ac_cv_prog_CC="$CC" # Let the user override the test.
2145else
ba479fd2
NN
2146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147for as_dir in $PATH
2148do
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 2152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ba479fd2
NN
2153 ac_cv_prog_CC="${ac_tool_prefix}cc"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 break 2
2156 fi
2157done
2158done
2159
cd9e5e7c
MK
2160fi
2161fi
ba479fd2 2162CC=$ac_cv_prog_CC
cd9e5e7c 2163if test -n "$CC"; then
b61ff9c8
BS
2164 echo "$as_me:$LINENO: result: $CC" >&5
2165echo "${ECHO_T}$CC" >&6
2f41c1d6 2166else
b61ff9c8
BS
2167 echo "$as_me:$LINENO: result: no" >&5
2168echo "${ECHO_T}no" >&6
2f41c1d6
PB
2169fi
2170
b61ff9c8
BS
2171fi
2172if test -z "$ac_cv_prog_CC"; then
2173 ac_ct_CC=$CC
2174 # Extract the first word of "cc", so it can be a program name with args.
2175set dummy cc; ac_word=$2
2176echo "$as_me:$LINENO: checking for $ac_word" >&5
2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181 if test -n "$ac_ct_CC"; then
2182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2183else
2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191 ac_cv_prog_ac_ct_CC="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
1a4b763e 2194 fi
b61ff9c8
BS
2195done
2196done
2197
2198fi
2199fi
2200ac_ct_CC=$ac_cv_prog_ac_ct_CC
2201if test -n "$ac_ct_CC"; then
2202 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203echo "${ECHO_T}$ac_ct_CC" >&6
2204else
2205 echo "$as_me:$LINENO: result: no" >&5
2206echo "${ECHO_T}no" >&6
2207fi
2208
2209 CC=$ac_ct_CC
2210else
2211 CC="$ac_cv_prog_CC"
2212fi
2213
ba479fd2 2214fi
6e3f3080
NN
2215if test -z "$CC"; then
2216 # Extract the first word of "cc", so it can be a program name with args.
2217set dummy cc; ac_word=$2
b61ff9c8
BS
2218echo "$as_me:$LINENO: checking for $ac_word" >&5
2219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
2220if test "${ac_cv_prog_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
6e3f3080
NN
2222else
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2225else
2226 ac_prog_rejected=no
ba479fd2
NN
2227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH
2229do
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ba479fd2
NN
2234 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2235 ac_prog_rejected=yes
2236 continue
2237 fi
2238 ac_cv_prog_CC="cc"
2239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 break 2
2241 fi
2242done
2243done
2244
6e3f3080
NN
2245if test $ac_prog_rejected = yes; then
2246 # We found a bogon in the path, so make sure we never use it.
2247 set dummy $ac_cv_prog_CC
2248 shift
ba479fd2 2249 if test $# != 0; then
6e3f3080
NN
2250 # We chose a different compiler from the bogus one.
2251 # However, it has the same basename, so the bogon will be chosen
2252 # first if we set CC to just the basename; use the full file name.
2253 shift
ba479fd2 2254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
e9a25f70 2255 fi
6e3f3080
NN
2256fi
2257fi
2258fi
ba479fd2 2259CC=$ac_cv_prog_CC
6e3f3080 2260if test -n "$CC"; then
b61ff9c8
BS
2261 echo "$as_me:$LINENO: result: $CC" >&5
2262echo "${ECHO_T}$CC" >&6
e9a25f70 2263else
b61ff9c8
BS
2264 echo "$as_me:$LINENO: result: no" >&5
2265echo "${ECHO_T}no" >&6
e9a25f70 2266fi
6e3f3080 2267
ba479fd2
NN
2268fi
2269if test -z "$CC"; then
2270 if test -n "$ac_tool_prefix"; then
b61ff9c8 2271 for ac_prog in cl
ba479fd2
NN
2272 do
2273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2274set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b61ff9c8
BS
2275echo "$as_me:$LINENO: checking for $ac_word" >&5
2276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
2277if test "${ac_cv_prog_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
093e61a6 2279else
6e3f3080
NN
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2282else
ba479fd2
NN
2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284for as_dir in $PATH
2285do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 2289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ba479fd2
NN
2290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
2293 fi
2294done
2295done
2296
093e61a6 2297fi
6e3f3080 2298fi
ba479fd2 2299CC=$ac_cv_prog_CC
6e3f3080 2300if test -n "$CC"; then
b61ff9c8
BS
2301 echo "$as_me:$LINENO: result: $CC" >&5
2302echo "${ECHO_T}$CC" >&6
6e3f3080 2303else
b61ff9c8
BS
2304 echo "$as_me:$LINENO: result: no" >&5
2305echo "${ECHO_T}no" >&6
093e61a6 2306fi
cafe096b 2307
ba479fd2
NN
2308 test -n "$CC" && break
2309 done
2310fi
2311if test -z "$CC"; then
2312 ac_ct_CC=$CC
b61ff9c8 2313 for ac_prog in cl
ba479fd2
NN
2314do
2315 # Extract the first word of "$ac_prog", so it can be a program name with args.
2316set dummy $ac_prog; ac_word=$2
b61ff9c8
BS
2317echo "$as_me:$LINENO: checking for $ac_word" >&5
2318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
2319if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322 if test -n "$ac_ct_CC"; then
2323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2324else
2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 2331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ba479fd2
NN
2332 ac_cv_prog_ac_ct_CC="$ac_prog"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2335 fi
2336done
2337done
6e3f3080 2338
ba479fd2
NN
2339fi
2340fi
2341ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342if test -n "$ac_ct_CC"; then
b61ff9c8
BS
2343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344echo "${ECHO_T}$ac_ct_CC" >&6
ba479fd2 2345else
b61ff9c8
BS
2346 echo "$as_me:$LINENO: result: no" >&5
2347echo "${ECHO_T}no" >&6
ba479fd2 2348fi
6e3f3080 2349
ba479fd2
NN
2350 test -n "$ac_ct_CC" && break
2351done
63cf211a 2352
b61ff9c8 2353 CC=$ac_ct_CC
ba479fd2
NN
2354fi
2355
2356fi
2357
2358
18c04407
RW
2359test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2360echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ba479fd2
NN
2362See \`config.log' for more details." >&5
2363echo "$as_me: error: no acceptable C compiler found in \$PATH
2364See \`config.log' for more details." >&2;}
18c04407 2365 { (exit 1); exit 1; }; }; }
ba479fd2
NN
2366
2367# Provide some information about the compiler.
b61ff9c8
BS
2368echo "$as_me:$LINENO:" \
2369 "checking for C compiler version" >&5
ba479fd2 2370ac_compiler=`set X $ac_compile; echo $2`
b61ff9c8
BS
2371{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2372 (eval $ac_compiler --version </dev/null >&5) 2>&5
ba479fd2
NN
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }
b61ff9c8
BS
2376{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2377 (eval $ac_compiler -v </dev/null >&5) 2>&5
ba479fd2
NN
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
b61ff9c8
BS
2381{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2382 (eval $ac_compiler -V </dev/null >&5) 2>&5
ba479fd2
NN
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2386
2387cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
2388/* confdefs.h. */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
2392/* end confdefs.h. */
2393
2394int
2395main ()
2396{
63cf211a 2397
ba479fd2
NN
2398 ;
2399 return 0;
2400}
2401_ACEOF
2402ac_clean_files_save=$ac_clean_files
2403ac_clean_files="$ac_clean_files a.out a.exe b.out"
2404# Try to create an executable without -o first, disregard a.out.
2405# It will help us diagnose broken compilers, and finding out an intuition
2406# of exeext.
b61ff9c8
BS
2407echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ba479fd2 2409ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
b61ff9c8
BS
2410if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411 (eval $ac_link_default) 2>&5
ba479fd2
NN
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; then
b61ff9c8
BS
2415 # Find the output, starting from the most likely. This scheme is
2416# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2417# resort.
2418
2419# Be careful to initialize this variable, since it used to be cached.
2420# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2421ac_cv_exeext=
2422# b.out is created by i960 compilers.
2423for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
ba479fd2
NN
2424do
2425 test -f "$ac_file" || continue
2426 case $ac_file in
b61ff9c8
BS
2427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2428 ;;
2429 conftest.$ac_ext )
2430 # This is the source file.
86da66b5 2431 ;;
ba479fd2 2432 [ab].out )
86da66b5
HPN
2433 # We found the default executable, but exeext='' is most
2434 # certainly right.
2435 break;;
ba479fd2 2436 *.* )
b61ff9c8
BS
2437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438 # FIXME: I believe we export ac_cv_exeext for Libtool,
2439 # but it would be cool to find out if it's true. Does anybody
2440 # maintain Libtool? --akim.
2441 export ac_cv_exeext
86da66b5 2442 break;;
ba479fd2 2443 * )
86da66b5 2444 break;;
ba479fd2
NN
2445 esac
2446done
2447else
2448 echo "$as_me: failed program was:" >&5
2449sed 's/^/| /' conftest.$ac_ext >&5
2450
18c04407
RW
2451{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2452echo "$as_me: error: in \`$ac_pwd':" >&2;}
ba479fd2
NN
2453{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2454See \`config.log' for more details." >&5
2455echo "$as_me: error: C compiler cannot create executables
2456See \`config.log' for more details." >&2;}
18c04407 2457 { (exit 77); exit 77; }; }; }
ba479fd2
NN
2458fi
2459
2460ac_exeext=$ac_cv_exeext
b61ff9c8
BS
2461echo "$as_me:$LINENO: result: $ac_file" >&5
2462echo "${ECHO_T}$ac_file" >&6
ba479fd2 2463
b61ff9c8 2464# Check the compiler produces executables we can run. If not, either
ba479fd2 2465# the compiler is broken, or we cross compile.
b61ff9c8
BS
2466echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2467echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
ba479fd2
NN
2468# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2469# If not cross compiling, check that we can run a simple program.
2470if test "$cross_compiling" != yes; then
2471 if { ac_try='./$ac_file'
b61ff9c8
BS
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
ba479fd2
NN
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 cross_compiling=no
6e3f3080 2478 else
ba479fd2
NN
2479 if test "$cross_compiling" = maybe; then
2480 cross_compiling=yes
2481 else
18c04407
RW
2482 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2483echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
ba479fd2
NN
2485If you meant to cross compile, use \`--host'.
2486See \`config.log' for more details." >&5
2487echo "$as_me: error: cannot run C compiled programs.
2488If you meant to cross compile, use \`--host'.
2489See \`config.log' for more details." >&2;}
18c04407 2490 { (exit 1); exit 1; }; }; }
ba479fd2 2491 fi
6e3f3080
NN
2492 fi
2493fi
b61ff9c8
BS
2494echo "$as_me:$LINENO: result: yes" >&5
2495echo "${ECHO_T}yes" >&6
ba479fd2
NN
2496
2497rm -f a.out a.exe conftest$ac_cv_exeext b.out
2498ac_clean_files=$ac_clean_files_save
b61ff9c8 2499# Check the compiler produces executables we can run. If not, either
ba479fd2 2500# the compiler is broken, or we cross compile.
b61ff9c8
BS
2501echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2502echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2503echo "$as_me:$LINENO: result: $cross_compiling" >&5
2504echo "${ECHO_T}$cross_compiling" >&6
2505
2506echo "$as_me:$LINENO: checking for suffix of executables" >&5
2507echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2509 (eval $ac_link) 2>&5
ba479fd2
NN
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; then
2513 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2514# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2515# work properly (i.e., refer to `conftest.exe'), while it won't with
2516# `rm'.
2517for ac_file in conftest.exe conftest conftest.*; do
2518 test -f "$ac_file" || continue
2519 case $ac_file in
b61ff9c8 2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
ba479fd2 2521 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b61ff9c8 2522 export ac_cv_exeext
86da66b5 2523 break;;
ba479fd2
NN
2524 * ) break;;
2525 esac
2526done
e9a25f70 2527else
18c04407
RW
2528 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2529echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ba479fd2
NN
2531See \`config.log' for more details." >&5
2532echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2533See \`config.log' for more details." >&2;}
18c04407 2534 { (exit 1); exit 1; }; }; }
ba479fd2
NN
2535fi
2536
2537rm -f conftest$ac_cv_exeext
b61ff9c8
BS
2538echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539echo "${ECHO_T}$ac_cv_exeext" >&6
ba479fd2
NN
2540
2541rm -f conftest.$ac_ext
2542EXEEXT=$ac_cv_exeext
2543ac_exeext=$EXEEXT
b61ff9c8
BS
2544echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
ba479fd2
NN
2546if test "${ac_cv_objext+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
2555
2556int
2557main ()
2558{
6e3f3080 2559
ba479fd2
NN
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564rm -f conftest.o conftest.obj
b61ff9c8
BS
2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>&5
ba479fd2
NN
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; then
b61ff9c8 2570 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
ba479fd2 2571 case $ac_file in
b61ff9c8 2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
ba479fd2
NN
2573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2574 break;;
2575 esac
2576done
63cf211a 2577else
ba479fd2
NN
2578 echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
18c04407
RW
2581{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2582echo "$as_me: error: in \`$ac_pwd':" >&2;}
ba479fd2
NN
2583{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2584See \`config.log' for more details." >&5
2585echo "$as_me: error: cannot compute suffix of object files: cannot compile
2586See \`config.log' for more details." >&2;}
18c04407 2587 { (exit 1); exit 1; }; }; }
ba479fd2
NN
2588fi
2589
2590rm -f conftest.$ac_cv_objext conftest.$ac_ext
2591fi
b61ff9c8
BS
2592echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2593echo "${ECHO_T}$ac_cv_objext" >&6
ba479fd2
NN
2594OBJEXT=$ac_cv_objext
2595ac_objext=$OBJEXT
b61ff9c8
BS
2596echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2597echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
ba479fd2
NN
2598if test "${ac_cv_c_compiler_gnu+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
2602/* confdefs.h. */
2603_ACEOF
2604cat confdefs.h >>conftest.$ac_ext
2605cat >>conftest.$ac_ext <<_ACEOF
2606/* end confdefs.h. */
2607
2608int
2609main ()
2610{
2611#ifndef __GNUC__
2612 choke me
2613#endif
6e3f3080 2614
ba479fd2
NN
2615 ;
2616 return 0;
2617}
2618_ACEOF
2619rm -f conftest.$ac_objext
b61ff9c8
BS
2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
ba479fd2 2622 ac_status=$?
86da66b5
HPN
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
ba479fd2 2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag"
2629 || test ! -s conftest.err'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
ba479fd2
NN
2641 ac_compiler_gnu=yes
2642else
2643 echo "$as_me: failed program was:" >&5
2644sed 's/^/| /' conftest.$ac_ext >&5
2645
b61ff9c8 2646ac_compiler_gnu=no
ba479fd2 2647fi
b61ff9c8 2648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba479fd2
NN
2649ac_cv_c_compiler_gnu=$ac_compiler_gnu
2650
2651fi
b61ff9c8
BS
2652echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2653echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
ba479fd2
NN
2654GCC=`test $ac_compiler_gnu = yes && echo yes`
2655ac_test_CFLAGS=${CFLAGS+set}
2656ac_save_CFLAGS=$CFLAGS
b61ff9c8
BS
2657CFLAGS="-g"
2658echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2659echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
ba479fd2
NN
2660if test "${ac_cv_prog_cc_g+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662else
b61ff9c8 2663 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
2664/* confdefs.h. */
2665_ACEOF
2666cat confdefs.h >>conftest.$ac_ext
2667cat >>conftest.$ac_ext <<_ACEOF
2668/* end confdefs.h. */
2669
2670int
2671main ()
2672{
2673
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678rm -f conftest.$ac_objext
b61ff9c8
BS
2679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>conftest.er1
ba479fd2 2681 ac_status=$?
86da66b5
HPN
2682 grep -v '^ *+' conftest.er1 >conftest.err
2683 rm -f conftest.er1
2684 cat conftest.err >&5
ba479fd2 2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
2686 (exit $ac_status); } &&
2687 { ac_try='test -z "$ac_c_werror_flag"
2688 || test ! -s conftest.err'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; } &&
2694 { ac_try='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
1a4b763e
BS
2700 ac_cv_prog_cc_g=yes
2701else
2702 echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
b61ff9c8
BS
2705ac_cv_prog_cc_g=no
2706fi
2707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2708fi
2709echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2710echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2711if test "$ac_test_CFLAGS" = set; then
2712 CFLAGS=$ac_save_CFLAGS
2713elif test $ac_cv_prog_cc_g = yes; then
2714 if test "$GCC" = yes; then
2715 CFLAGS="-g -O2"
2716 else
2717 CFLAGS="-g"
2718 fi
2719else
2720 if test "$GCC" = yes; then
2721 CFLAGS="-O2"
2722 else
2723 CFLAGS=
2724 fi
2725fi
2726echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2727echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2728if test "${ac_cv_prog_cc_stdc+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730else
2731 ac_cv_prog_cc_stdc=no
2732ac_save_CC=$CC
2733cat >conftest.$ac_ext <<_ACEOF
1a4b763e
BS
2734/* confdefs.h. */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h. */
b61ff9c8
BS
2739#include <stdarg.h>
2740#include <stdio.h>
2741#include <sys/types.h>
2742#include <sys/stat.h>
2743/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2744struct buf { int x; };
2745FILE * (*rcsopen) (struct buf *, struct stat *, int);
2746static char *e (p, i)
2747 char **p;
2748 int i;
1a4b763e 2749{
b61ff9c8 2750 return p[i];
1a4b763e 2751}
b61ff9c8
BS
2752static char *f (char * (*g) (char **, int), char **p, ...)
2753{
2754 char *s;
2755 va_list v;
2756 va_start (v,p);
2757 s = g (p, va_arg (v,int));
2758 va_end (v);
2759 return s;
2760}
2761
2762/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2763 function prototypes and stuff, but not '\xHH' hex character constants.
2764 These don't provoke an error unfortunately, instead are silently treated
2765 as 'x'. The following induces an error, until -std1 is added to get
2766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2767 array size at least. It's necessary to write '\x00'==0 to get something
2768 that's true only with -std1. */
2769int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2770
2771int test (int i, double x);
2772struct s1 {int (*f) (int a);};
2773struct s2 {int (*f) (double a);};
2774int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2775int argc;
2776char **argv;
2777int
2778main ()
2779{
2780return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2781 ;
2782 return 0;
2783}
2784_ACEOF
2785# Don't try gcc -ansi; that turns off useful extensions and
2786# breaks some systems' header files.
2787# AIX -qlanglvl=ansi
2788# Ultrix and OSF/1 -std1
2789# HP-UX 10.20 and later -Ae
2790# HP-UX older versions -Aa -D_HPUX_SOURCE
2791# SVR4 -Xc -D__EXTENSIONS__
2792for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2793do
2794 CC="$ac_save_CC $ac_arg"
2795 rm -f conftest.$ac_objext
2796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797 (eval $ac_compile) 2>conftest.er1
2798 ac_status=$?
1a4b763e
BS
2799 grep -v '^ *+' conftest.er1 >conftest.err
2800 rm -f conftest.er1
2801 cat conftest.err >&5
2f41c1d6 2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
2803 (exit $ac_status); } &&
2804 { ac_try='test -z "$ac_c_werror_flag"
2805 || test ! -s conftest.err'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; } &&
2811 { ac_try='test -s conftest.$ac_objext'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 ac_cv_prog_cc_stdc=$ac_arg
2818break
1a4b763e
BS
2819else
2820 echo "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
b61ff9c8
BS
2823fi
2824rm -f conftest.err conftest.$ac_objext
2825done
2826rm -f conftest.$ac_ext conftest.$ac_objext
2827CC=$ac_save_CC
2828
2829fi
2830
2831case "x$ac_cv_prog_cc_stdc" in
2832 x|xno)
2833 echo "$as_me:$LINENO: result: none needed" >&5
2834echo "${ECHO_T}none needed" >&6 ;;
2835 *)
2836 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2837echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2838 CC="$CC $ac_cv_prog_cc_stdc" ;;
2839esac
2840
2841# Some people use a C++ compiler to compile C. Since we use `exit',
2842# in C++ we need to declare it. In case someone uses the same compiler
2843# for both compiling C and C++ we need to have the C++ compiler decide
2844# the declaration of exit, since it's the most demanding environment.
2845cat >conftest.$ac_ext <<_ACEOF
2846#ifndef __cplusplus
2847 choke me
2848#endif
2849_ACEOF
2850rm -f conftest.$ac_objext
2851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2852 (eval $ac_compile) 2>conftest.er1
2853 ac_status=$?
2854 grep -v '^ *+' conftest.er1 >conftest.err
2855 rm -f conftest.er1
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try='test -z "$ac_c_werror_flag"
2860 || test ! -s conftest.err'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 (eval $ac_try) 2>&5
2863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; } &&
2866 { ac_try='test -s conftest.$ac_objext'
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 (eval $ac_try) 2>&5
2869 ac_status=$?
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; }; then
2872 for ac_declaration in \
2873 '' \
2874 'extern "C" void std::exit (int) throw (); using std::exit;' \
2875 'extern "C" void std::exit (int); using std::exit;' \
2876 'extern "C" void exit (int) throw ();' \
2877 'extern "C" void exit (int);' \
2878 'void exit (int);'
2879do
2880 cat >conftest.$ac_ext <<_ACEOF
1a4b763e
BS
2881/* confdefs.h. */
2882_ACEOF
2883cat confdefs.h >>conftest.$ac_ext
2884cat >>conftest.$ac_ext <<_ACEOF
2885/* end confdefs.h. */
b61ff9c8
BS
2886$ac_declaration
2887#include <stdlib.h>
1a4b763e
BS
2888int
2889main ()
2890{
b61ff9c8 2891exit (42);
1a4b763e
BS
2892 ;
2893 return 0;
2894}
2895_ACEOF
2896rm -f conftest.$ac_objext
b61ff9c8
BS
2897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>conftest.er1
2f41c1d6 2899 ac_status=$?
1a4b763e
BS
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2f41c1d6 2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
2904 (exit $ac_status); } &&
2905 { ac_try='test -z "$ac_c_werror_flag"
2906 || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 (eval $ac_try) 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 :
ab22c1fa
CF
2919else
2920 echo "$as_me: failed program was:" >&5
2921sed 's/^/| /' conftest.$ac_ext >&5
2922
b61ff9c8 2923continue
2f41c1d6 2924fi
b61ff9c8
BS
2925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2926 cat >conftest.$ac_ext <<_ACEOF
ab22c1fa
CF
2927/* confdefs.h. */
2928_ACEOF
2929cat confdefs.h >>conftest.$ac_ext
2930cat >>conftest.$ac_ext <<_ACEOF
2931/* end confdefs.h. */
b61ff9c8 2932$ac_declaration
2f41c1d6
PB
2933int
2934main ()
2935{
b61ff9c8 2936exit (42);
2f41c1d6
PB
2937 ;
2938 return 0;
2939}
2940_ACEOF
b61ff9c8
BS
2941rm -f conftest.$ac_objext
2942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>conftest.er1
2f41c1d6 2944 ac_status=$?
ab22c1fa
CF
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
a3bba767 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag"
2951 || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 (eval $ac_try) 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 break
ab22c1fa
CF
2964else
2965 echo "$as_me: failed program was:" >&5
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
2f41c1d6 2968fi
b61ff9c8 2969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2f41c1d6 2970done
b61ff9c8
BS
2971rm -f conftest*
2972if test -n "$ac_declaration"; then
2973 echo '#ifdef __cplusplus' >>confdefs.h
2974 echo $ac_declaration >>confdefs.h
2975 echo '#endif' >>confdefs.h
2f41c1d6 2976fi
2f41c1d6 2977
b61ff9c8
BS
2978else
2979 echo "$as_me: failed program was:" >&5
2980sed 's/^/| /' conftest.$ac_ext >&5
ba479fd2 2981
b61ff9c8
BS
2982fi
2983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba479fd2
NN
2984ac_ext=c
2985ac_cpp='$CPP $CPPFLAGS'
2986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989
2990if test "x$CC" != xcc; then
b61ff9c8
BS
2991 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2992echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
ba479fd2 2993else
b61ff9c8
BS
2994 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2995echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
ba479fd2
NN
2996fi
2997set dummy $CC; ac_cc=`echo $2 |
2998 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
b61ff9c8 2999if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
ba479fd2
NN
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
3003/* confdefs.h. */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h. */
3008
3009int
3010main ()
3011{
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
3ec83fc2
RH
3017# Make sure it works both with $CC and with simple cc.
3018# We do the test twice because some compilers refuse to overwrite an
3019# existing .o file with -o, though they will create one.
b61ff9c8
BS
3020ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3021if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
ba479fd2
NN
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
b61ff9c8
BS
3026 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
ba479fd2
NN
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); };
3ec83fc2
RH
3031then
3032 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3033 if test "x$CC" != xcc; then
3034 # Test first that cc exists at all.
ba479fd2 3035 if { ac_try='cc -c conftest.$ac_ext >&5'
b61ff9c8
BS
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 (eval $ac_try) 2>&5
ba479fd2
NN
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
b61ff9c8
BS
3041 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3042 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
ba479fd2
NN
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
b61ff9c8
BS
3047 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
ba479fd2
NN
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); };
3ec83fc2 3052 then
86da66b5
HPN
3053 # cc works too.
3054 :
3ec83fc2 3055 else
86da66b5
HPN
3056 # cc exists but doesn't like -o.
3057 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3ec83fc2
RH
3058 fi
3059 fi
3060 fi
3061else
3062 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3063fi
b61ff9c8 3064rm -f conftest*
3ec83fc2
RH
3065
3066fi
b61ff9c8
BS
3067if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3068 echo "$as_me:$LINENO: result: yes" >&5
3069echo "${ECHO_T}yes" >&6
3ec83fc2 3070else
b61ff9c8
BS
3071 echo "$as_me:$LINENO: result: no" >&5
3072echo "${ECHO_T}no" >&6
ba479fd2
NN
3073
3074cat >>confdefs.h <<\_ACEOF
3ec83fc2 3075#define NO_MINUS_C_MINUS_O 1
ba479fd2 3076_ACEOF
3ec83fc2
RH
3077
3078fi
3079
3b620440
KC
3080# expand $ac_aux_dir to an absolute path
3081am_aux_dir=`cd $ac_aux_dir && pwd`
3082
3083# FIXME: we rely on the cache variable name because
3084# there is no other way.
3085set dummy $CC
3086ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3087if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3088 # Losing compiler, so override with the script.
3089 # FIXME: It is wrong to rewrite CC.
3090 # But if we don't then we get into trouble of one sort or another.
3091 # A longer-term fix would be to have automake use am__CC in this case,
3092 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3093 CC="$am_aux_dir/compile $CC"
3094fi
3095
3d4e720a
ST
3096
3097
3098
3099if test -n "$ac_tool_prefix"; then
3100 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3101set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3102echo "$as_me:$LINENO: checking for $ac_word" >&5
3103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104if test "${ac_cv_prog_GNATBIND+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106else
3107 if test -n "$GNATBIND"; then
3108 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3109else
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121done
3122done
3123
3124fi
3125fi
3126GNATBIND=$ac_cv_prog_GNATBIND
3127if test -n "$GNATBIND"; then
3128 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3129echo "${ECHO_T}$GNATBIND" >&6
3130else
3131 echo "$as_me:$LINENO: result: no" >&5
3132echo "${ECHO_T}no" >&6
3133fi
3134
3135fi
3136if test -z "$ac_cv_prog_GNATBIND"; then
3137 ac_ct_GNATBIND=$GNATBIND
3138 # Extract the first word of "gnatbind", so it can be a program name with args.
3139set dummy gnatbind; ac_word=$2
3140echo "$as_me:$LINENO: checking for $ac_word" >&5
3141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144else
3145 if test -n "$ac_ct_GNATBIND"; then
3146 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3147else
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159done
3160done
3161
3162 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3163fi
3164fi
3165ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3166if test -n "$ac_ct_GNATBIND"; then
3167 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3168echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3169else
3170 echo "$as_me:$LINENO: result: no" >&5
3171echo "${ECHO_T}no" >&6
3172fi
3173
3174 GNATBIND=$ac_ct_GNATBIND
3175else
3176 GNATBIND="$ac_cv_prog_GNATBIND"
3177fi
3178
3179if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3181set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3182echo "$as_me:$LINENO: checking for $ac_word" >&5
3183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3187 if test -n "$GNATMAKE"; then
3188 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201done
3202done
3203
3204fi
3205fi
3206GNATMAKE=$ac_cv_prog_GNATMAKE
3207if test -n "$GNATMAKE"; then
3208 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3209echo "${ECHO_T}$GNATMAKE" >&6
3210else
3211 echo "$as_me:$LINENO: result: no" >&5
3212echo "${ECHO_T}no" >&6
3213fi
3214
3215fi
3216if test -z "$ac_cv_prog_GNATMAKE"; then
3217 ac_ct_GNATMAKE=$GNATMAKE
3218 # Extract the first word of "gnatmake", so it can be a program name with args.
3219set dummy gnatmake; ac_word=$2
3220echo "$as_me:$LINENO: checking for $ac_word" >&5
3221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224else
3225 if test -n "$ac_ct_GNATMAKE"; then
3226 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3227else
3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229for as_dir in $PATH
3230do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239done
3240done
3241
3242 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3243fi
3244fi
3245ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3246if test -n "$ac_ct_GNATMAKE"; then
3247 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3248echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3249else
3250 echo "$as_me:$LINENO: result: no" >&5
3251echo "${ECHO_T}no" >&6
3252fi
3253
3254 GNATMAKE=$ac_ct_GNATMAKE
3255else
3256 GNATMAKE="$ac_cv_prog_GNATMAKE"
3257fi
3258
3259echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3260echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3261if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3263else
3264 cat >conftest.adb <<EOF
3265procedure conftest is begin null; end conftest;
3266EOF
3267acx_cv_cc_gcc_supports_ada=no
3268# There is a bug in old released versions of GCC which causes the
3269# driver to exit successfully when the appropriate language module
3270# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3271# Therefore we must check for the error message as well as an
3272# unsuccessful exit.
3273# Other compilers, like HP Tru64 UNIX cc, exit successfully when
3274# given a .adb file, but produce no object file. So we must check
3275# if an object file was really produced to guard against this.
3276errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3277if test x"$errors" = x && test -f conftest.$ac_objext; then
3278 acx_cv_cc_gcc_supports_ada=yes
3279fi
3280rm -f conftest.*
3281fi
3282echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3283echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3284
3285if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3286 have_gnat=yes
3287else
3288 have_gnat=no
3289fi
3290
3291
414d23ae
HPN
3292# autoconf is lame and doesn't give us any substitution variable for this.
3293if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3294 NO_MINUS_C_MINUS_O=yes
3295else
3296 OUTPUT_OPTION='-o $@'
3297fi
3298
3299
3300
ec6c7392
PB
3301# Remove the -O2: for historical reasons, unless bootstrapping we prefer
3302# optimizations to be activated explicitly by the toplevel.
3303case "$CC" in
3304 */prev-gcc/xgcc*) ;;
3305 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3306esac
3307
3308
73458fb7
NN
3309# -------------------------
3310# Check C compiler features
3311# -------------------------
3312
60d26958 3313
ba479fd2
NN
3314ac_ext=c
3315ac_cpp='$CPP $CPPFLAGS'
3316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318ac_compiler_gnu=$ac_cv_c_compiler_gnu
b61ff9c8
BS
3319echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3320echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
84c041a1
ZW
3321# On Suns, sometimes $CPP names a directory.
3322if test -n "$CPP" && test -d "$CPP"; then
3323 CPP=
3324fi
3325if test -z "$CPP"; then
ba479fd2
NN
3326 if test "${ac_cv_prog_CPP+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329 # Double quotes because CPP needs to be expanded
3330 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3331 do
3332 ac_preproc_ok=false
3333for ac_c_preproc_warn_flag in '' yes
3334do
3335 # Use a header file that comes with gcc, so configuring glibc
3336 # with a fresh cross-compiler works.
3337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338 # <limits.h> exists even on freestanding compilers.
84c041a1 3339 # On the NeXT, cc -E runs the code through the compiler's parser,
ba479fd2
NN
3340 # not just through cpp. "Syntax error" is here to catch this case.
3341 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
3342/* confdefs.h. */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
3346/* end confdefs.h. */
3347#ifdef __STDC__
3348# include <limits.h>
3349#else
3350# include <assert.h>
3351#endif
86da66b5 3352 Syntax error
ba479fd2 3353_ACEOF
b61ff9c8
BS
3354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ba479fd2
NN
3356 ac_status=$?
3357 grep -v '^ *+' conftest.er1 >conftest.err
3358 rm -f conftest.er1
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365 else
3366 ac_cpp_err=
3367 fi
3368else
3369 ac_cpp_err=yes
3370fi
3371if test -z "$ac_cpp_err"; then
093e61a6 3372 :
cafe096b 3373else
ba479fd2
NN
3374 echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
3377 # Broken: fails on valid input.
3378continue
3379fi
3380rm -f conftest.err conftest.$ac_ext
3381
b61ff9c8 3382 # OK, works on sane cases. Now check whether non-existent headers
ba479fd2
NN
3383 # can be detected and how.
3384 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
3385/* confdefs.h. */
3386_ACEOF
3387cat confdefs.h >>conftest.$ac_ext
3388cat >>conftest.$ac_ext <<_ACEOF
3389/* end confdefs.h. */
3390#include <ac_nonexistent.h>
3391_ACEOF
b61ff9c8
BS
3392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ba479fd2
NN
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
3399 (exit $ac_status); } >/dev/null; then
3400 if test -s conftest.err; then
3401 ac_cpp_err=$ac_c_preproc_warn_flag
3402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3403 else
3404 ac_cpp_err=
3405 fi
3406else
3407 ac_cpp_err=yes
3408fi
3409if test -z "$ac_cpp_err"; then
ba479fd2
NN
3410 # Broken: success on invalid input.
3411continue
3412else
3413 echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
3416 # Passes both tests.
3417ac_preproc_ok=:
3418break
3419fi
3420rm -f conftest.err conftest.$ac_ext
3421
3422done
3423# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3424rm -f conftest.err conftest.$ac_ext
3425if $ac_preproc_ok; then
3426 break
3427fi
3428
3429 done
3430 ac_cv_prog_CPP=$CPP
3431
3432fi
3433 CPP=$ac_cv_prog_CPP
3434else
3435 ac_cv_prog_CPP=$CPP
3436fi
b61ff9c8
BS
3437echo "$as_me:$LINENO: result: $CPP" >&5
3438echo "${ECHO_T}$CPP" >&6
ba479fd2
NN
3439ac_preproc_ok=false
3440for ac_c_preproc_warn_flag in '' yes
3441do
3442 # Use a header file that comes with gcc, so configuring glibc
3443 # with a fresh cross-compiler works.
3444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445 # <limits.h> exists even on freestanding compilers.
3446 # On the NeXT, cc -E runs the code through the compiler's parser,
3447 # not just through cpp. "Syntax error" is here to catch this case.
3448 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
3449/* confdefs.h. */
3450_ACEOF
3451cat confdefs.h >>conftest.$ac_ext
3452cat >>conftest.$ac_ext <<_ACEOF
3453/* end confdefs.h. */
3454#ifdef __STDC__
3455# include <limits.h>
3456#else
3457# include <assert.h>
3458#endif
86da66b5 3459 Syntax error
ba479fd2 3460_ACEOF
b61ff9c8
BS
3461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ba479fd2
NN
3463 ac_status=$?
3464 grep -v '^ *+' conftest.er1 >conftest.err
3465 rm -f conftest.er1
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
3468 (exit $ac_status); } >/dev/null; then
3469 if test -s conftest.err; then
3470 ac_cpp_err=$ac_c_preproc_warn_flag
3471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3472 else
3473 ac_cpp_err=
3474 fi
3475else
3476 ac_cpp_err=yes
3477fi
3478if test -z "$ac_cpp_err"; then
6e3f3080 3479 :
414d23ae 3480else
ba479fd2
NN
3481 echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484 # Broken: fails on valid input.
3485continue
3486fi
3487rm -f conftest.err conftest.$ac_ext
3488
b61ff9c8 3489 # OK, works on sane cases. Now check whether non-existent headers
ba479fd2
NN
3490 # can be detected and how.
3491 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
3492/* confdefs.h. */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h. */
3497#include <ac_nonexistent.h>
3498_ACEOF
b61ff9c8
BS
3499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ba479fd2
NN
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
3506 (exit $ac_status); } >/dev/null; then
3507 if test -s conftest.err; then
3508 ac_cpp_err=$ac_c_preproc_warn_flag
3509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3510 else
3511 ac_cpp_err=
3512 fi
3513else
3514 ac_cpp_err=yes
3515fi
3516if test -z "$ac_cpp_err"; then
ba479fd2
NN
3517 # Broken: success on invalid input.
3518continue
3519else
3520 echo "$as_me: failed program was:" >&5
3521sed 's/^/| /' conftest.$ac_ext >&5
3522
3523 # Passes both tests.
3524ac_preproc_ok=:
3525break
63cf211a 3526fi
ba479fd2
NN
3527rm -f conftest.err conftest.$ac_ext
3528
3529done
3530# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531rm -f conftest.err conftest.$ac_ext
3532if $ac_preproc_ok; then
3533 :
6e3f3080 3534else
18c04407
RW
3535 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3536echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
ba479fd2
NN
3538See \`config.log' for more details." >&5
3539echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3540See \`config.log' for more details." >&2;}
18c04407 3541 { (exit 1); exit 1; }; }; }
6e3f3080
NN
3542fi
3543
ba479fd2
NN
3544ac_ext=c
3545ac_cpp='$CPP $CPPFLAGS'
3546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
b5472e1d 3550
60d26958
PB
3551echo "$as_me:$LINENO: checking for egrep" >&5
3552echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3553if test "${ac_cv_prog_egrep+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3557 then ac_cv_prog_egrep='grep -E'
3558 else ac_cv_prog_egrep='egrep'
3559 fi
3560fi
3561echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3562echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3563 EGREP=$ac_cv_prog_egrep
3564
3565
3566echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3567echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3568if test "${ac_cv_header_stdc+set}" = set; then
ba479fd2 3569 echo $ECHO_N "(cached) $ECHO_C" >&6
414d23ae 3570else
ba479fd2 3571 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
3572/* confdefs.h. */
3573_ACEOF
3574cat confdefs.h >>conftest.$ac_ext
3575cat >>conftest.$ac_ext <<_ACEOF
3576/* end confdefs.h. */
60d26958
PB
3577#include <stdlib.h>
3578#include <stdarg.h>
3579#include <string.h>
3580#include <float.h>
3581
3582int
3583main ()
3584{
414d23ae 3585
60d26958
PB
3586 ;
3587 return 0;
3588}
ba479fd2
NN
3589_ACEOF
3590rm -f conftest.$ac_objext
b61ff9c8
BS
3591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
ba479fd2 3593 ac_status=$?
86da66b5
HPN
3594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
ba479fd2 3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
3598 (exit $ac_status); } &&
3599 { ac_try='test -z "$ac_c_werror_flag"
3600 || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try='test -s conftest.$ac_objext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
60d26958 3612 ac_cv_header_stdc=yes
414d23ae 3613else
ba479fd2
NN
3614 echo "$as_me: failed program was:" >&5
3615sed 's/^/| /' conftest.$ac_ext >&5
3616
60d26958 3617ac_cv_header_stdc=no
414d23ae 3618fi
b61ff9c8 3619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
414d23ae 3620
60d26958
PB
3621if test $ac_cv_header_stdc = yes; then
3622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3623 cat >conftest.$ac_ext <<_ACEOF
3624/* confdefs.h. */
3625_ACEOF
3626cat confdefs.h >>conftest.$ac_ext
3627cat >>conftest.$ac_ext <<_ACEOF
3628/* end confdefs.h. */
3629#include <string.h>
3630
3631_ACEOF
3632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 $EGREP "memchr" >/dev/null 2>&1; then
3634 :
3635else
3636 ac_cv_header_stdc=no
414d23ae 3637fi
60d26958 3638rm -f conftest*
86da66b5 3639
60d26958 3640fi
86da66b5 3641
60d26958
PB
3642if test $ac_cv_header_stdc = yes; then
3643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3644 cat >conftest.$ac_ext <<_ACEOF
3645/* confdefs.h. */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h. */
3650#include <stdlib.h>
3651
3652_ACEOF
3653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3654 $EGREP "free" >/dev/null 2>&1; then
3655 :
3656else
3657 ac_cv_header_stdc=no
3658fi
3659rm -f conftest*
3660
3661fi
3662
3663if test $ac_cv_header_stdc = yes; then
3664 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3665 if test "$cross_compiling" = yes; then
3666 :
3667else
3668 cat >conftest.$ac_ext <<_ACEOF
3669/* confdefs.h. */
3670_ACEOF
3671cat confdefs.h >>conftest.$ac_ext
3672cat >>conftest.$ac_ext <<_ACEOF
3673/* end confdefs.h. */
3674#include <ctype.h>
3675#if ((' ' & 0x0FF) == 0x020)
3676# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3677# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3678#else
3679# define ISLOWER(c) \
3680 (('a' <= (c) && (c) <= 'i') \
3681 || ('j' <= (c) && (c) <= 'r') \
3682 || ('s' <= (c) && (c) <= 'z'))
3683# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
86da66b5 3684#endif
60d26958
PB
3685
3686#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3687int
3688main ()
3689{
3690 int i;
3691 for (i = 0; i < 256; i++)
3692 if (XOR (islower (i), ISLOWER (i))
3693 || toupper (i) != TOUPPER (i))
3694 exit(2);
3695 exit (0);
3696}
ba479fd2 3697_ACEOF
60d26958
PB
3698rm -f conftest$ac_exeext
3699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3700 (eval $ac_link) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 :
3710else
3711 echo "$as_me: program exited with status $ac_status" >&5
3712echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
414d23ae 3714
60d26958
PB
3715( exit $ac_status )
3716ac_cv_header_stdc=no
3717fi
3718rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3719fi
3720fi
3721fi
3722echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3723echo "${ECHO_T}$ac_cv_header_stdc" >&6
3724if test $ac_cv_header_stdc = yes; then
414d23ae 3725
60d26958
PB
3726cat >>confdefs.h <<\_ACEOF
3727#define STDC_HEADERS 1
3728_ACEOF
bf3b7cd3 3729
60d26958
PB
3730fi
3731
3732# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3743 inttypes.h stdint.h unistd.h
3744do
3745as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3746echo "$as_me:$LINENO: checking for $ac_header" >&5
3747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748if eval "test \"\${$as_ac_Header+set}\" = set"; then
1a4b763e
BS
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
60d26958
PB
3751 cat >conftest.$ac_ext <<_ACEOF
3752/* confdefs.h. */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h. */
3757$ac_includes_default
3758
3759#include <$ac_header>
3760_ACEOF
3761rm -f conftest.$ac_objext
3762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3763 (eval $ac_compile) 2>conftest.er1
3764 ac_status=$?
3765 grep -v '^ *+' conftest.er1 >conftest.err
3766 rm -f conftest.er1
3767 cat conftest.err >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -z "$ac_c_werror_flag"
3771 || test ! -s conftest.err'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; } &&
3777 { ac_try='test -s conftest.$ac_objext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 eval "$as_ac_Header=yes"
3784else
3785 echo "$as_me: failed program was:" >&5
3786sed 's/^/| /' conftest.$ac_ext >&5
3787
3788eval "$as_ac_Header=no"
b61ff9c8 3789fi
60d26958
PB
3790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3791fi
3792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794if test `eval echo '${'$as_ac_Header'}'` = yes; then
3795 cat >>confdefs.h <<_ACEOF
3796#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3797_ACEOF
1a4b763e 3798
60d26958 3799fi
1a4b763e 3800
60d26958
PB
3801done
3802
3803
3804
3805 if test "${ac_cv_header_minix_config_h+set}" = set; then
3806 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3807echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3808if test "${ac_cv_header_minix_config_h+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810fi
3811echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3812echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3813else
3814 # Is the header compilable?
3815echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3816echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3817cat >conftest.$ac_ext <<_ACEOF
3818/* confdefs.h. */
3819_ACEOF
3820cat confdefs.h >>conftest.$ac_ext
3821cat >>conftest.$ac_ext <<_ACEOF
3822/* end confdefs.h. */
3823$ac_includes_default
3824#include <minix/config.h>
3825_ACEOF
3826rm -f conftest.$ac_objext
3827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828 (eval $ac_compile) 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try='test -z "$ac_c_werror_flag"
3836 || test ! -s conftest.err'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; } &&
3842 { ac_try='test -s conftest.$ac_objext'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 (eval $ac_try) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; }; then
3848 ac_header_compiler=yes
3849else
3850 echo "$as_me: failed program was:" >&5
3851sed 's/^/| /' conftest.$ac_ext >&5
3852
3853ac_header_compiler=no
3854fi
3855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3856echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3857echo "${ECHO_T}$ac_header_compiler" >&6
3858
3859# Is the header present?
3860echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3861echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3862cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h. */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h. */
3868#include <minix/config.h>
3869_ACEOF
3870if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3872 ac_status=$?
3873 grep -v '^ *+' conftest.er1 >conftest.err
3874 rm -f conftest.er1
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } >/dev/null; then
3878 if test -s conftest.err; then
3879 ac_cpp_err=$ac_c_preproc_warn_flag
3880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3881 else
3882 ac_cpp_err=
3883 fi
3884else
3885 ac_cpp_err=yes
3886fi
3887if test -z "$ac_cpp_err"; then
3888 ac_header_preproc=yes
3889else
3890 echo "$as_me: failed program was:" >&5
3891sed 's/^/| /' conftest.$ac_ext >&5
3892
3893 ac_header_preproc=no
3894fi
3895rm -f conftest.err conftest.$ac_ext
3896echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3897echo "${ECHO_T}$ac_header_preproc" >&6
3898
3899# So? What about this header?
3900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3901 yes:no: )
3902 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3903echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3905echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3906 ac_header_preproc=yes
3907 ;;
3908 no:yes:* )
3909 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3910echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3911 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3912echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3914echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3916echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3917 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3918echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3919 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3920echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3921 (
3922 cat <<\_ASBOX
3923## ------------------------------------------ ##
3924## Report this to the AC_PACKAGE_NAME lists. ##
3925## ------------------------------------------ ##
3926_ASBOX
3927 ) |
3928 sed "s/^/$as_me: WARNING: /" >&2
3929 ;;
3930esac
3931echo "$as_me:$LINENO: checking for minix/config.h" >&5
3932echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3933if test "${ac_cv_header_minix_config_h+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936 ac_cv_header_minix_config_h=$ac_header_preproc
3937fi
3938echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3939echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3940
3941fi
3942if test $ac_cv_header_minix_config_h = yes; then
3943 MINIX=yes
3944else
3945 MINIX=
3946fi
3947
3948
3949 if test "$MINIX" = yes; then
3950
3951cat >>confdefs.h <<\_ACEOF
3952#define _POSIX_SOURCE 1
3953_ACEOF
3954
3955
3956cat >>confdefs.h <<\_ACEOF
3957#define _POSIX_1_SOURCE 2
3958_ACEOF
3959
3960
3961cat >>confdefs.h <<\_ACEOF
3962#define _MINIX 1
3963_ACEOF
3964
3965 fi
3966
3967
3968
3969 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3970echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3971if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
bf3b7cd3
JD
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974 cat >conftest.$ac_ext <<_ACEOF
3975/* confdefs.h. */
3976_ACEOF
3977cat confdefs.h >>conftest.$ac_ext
3978cat >>conftest.$ac_ext <<_ACEOF
3979/* end confdefs.h. */
bf3b7cd3 3980
60d26958
PB
3981# define __EXTENSIONS__ 1
3982 $ac_includes_default
bf3b7cd3
JD
3983int
3984main ()
3985{
3986
3987 ;
3988 return 0;
3989}
3990_ACEOF
3991rm -f conftest.$ac_objext
b61ff9c8
BS
3992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
3994 ac_status=$?
3995 grep -v '^ *+' conftest.er1 >conftest.err
3996 rm -f conftest.er1
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
3999 (exit $ac_status); } &&
4000 { ac_try='test -z "$ac_c_werror_flag"
4001 || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 (eval $ac_try) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
60d26958 4013 ac_cv_safe_to_define___extensions__=yes
bf3b7cd3
JD
4014else
4015 echo "$as_me: failed program was:" >&5
4016sed 's/^/| /' conftest.$ac_ext >&5
4017
60d26958 4018ac_cv_safe_to_define___extensions__=no
bf3b7cd3 4019fi
b61ff9c8 4020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60d26958
PB
4021fi
4022echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4023echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4024 test $ac_cv_safe_to_define___extensions__ = yes &&
4025 cat >>confdefs.h <<\_ACEOF
4026#define __EXTENSIONS__ 1
4027_ACEOF
bf3b7cd3 4028
60d26958
PB
4029 cat >>confdefs.h <<\_ACEOF
4030#define _ALL_SOURCE 1
4031_ACEOF
4032
4033 cat >>confdefs.h <<\_ACEOF
4034#define _GNU_SOURCE 1
4035_ACEOF
4036
4037 cat >>confdefs.h <<\_ACEOF
4038#define _POSIX_PTHREAD_SEMANTICS 1
4039_ACEOF
4040
4041 cat >>confdefs.h <<\_ACEOF
4042#define _TANDEM_SOURCE 1
4043_ACEOF
4044
4045
4046ac_ext=c
4047ac_cpp='$CPP $CPPFLAGS'
4048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4052echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4053# On Suns, sometimes $CPP names a directory.
4054if test -n "$CPP" && test -d "$CPP"; then
4055 CPP=
4056fi
4057if test -z "$CPP"; then
4058 if test "${ac_cv_prog_CPP+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060else
4061 # Double quotes because CPP needs to be expanded
4062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4063 do
4064 ac_preproc_ok=false
4065for ac_c_preproc_warn_flag in '' yes
4066do
4067 # Use a header file that comes with gcc, so configuring glibc
4068 # with a fresh cross-compiler works.
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070 # <limits.h> exists even on freestanding compilers.
4071 # On the NeXT, cc -E runs the code through the compiler's parser,
4072 # not just through cpp. "Syntax error" is here to catch this case.
bf3b7cd3
JD
4073 cat >conftest.$ac_ext <<_ACEOF
4074/* confdefs.h. */
4075_ACEOF
4076cat confdefs.h >>conftest.$ac_ext
4077cat >>conftest.$ac_ext <<_ACEOF
4078/* end confdefs.h. */
60d26958
PB
4079#ifdef __STDC__
4080# include <limits.h>
4081#else
4082# include <assert.h>
4083#endif
4084 Syntax error
bf3b7cd3 4085_ACEOF
60d26958
PB
4086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } >/dev/null; then
4094 if test -s conftest.err; then
4095 ac_cpp_err=$ac_c_preproc_warn_flag
4096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097 else
4098 ac_cpp_err=
4099 fi
4100else
4101 ac_cpp_err=yes
4102fi
4103if test -z "$ac_cpp_err"; then
bf3b7cd3
JD
4104 :
4105else
60d26958
PB
4106 echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 # Broken: fails on valid input.
4110continue
bf3b7cd3 4111fi
60d26958
PB
4112rm -f conftest.err conftest.$ac_ext
4113
4114 # OK, works on sane cases. Now check whether non-existent headers
4115 # can be detected and how.
4116 cat >conftest.$ac_ext <<_ACEOF
4117/* confdefs.h. */
4118_ACEOF
4119cat confdefs.h >>conftest.$ac_ext
4120cat >>conftest.$ac_ext <<_ACEOF
4121/* end confdefs.h. */
4122#include <ac_nonexistent.h>
4123_ACEOF
4124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4126 ac_status=$?
4127 grep -v '^ *+' conftest.er1 >conftest.err
4128 rm -f conftest.er1
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } >/dev/null; then
4132 if test -s conftest.err; then
4133 ac_cpp_err=$ac_c_preproc_warn_flag
4134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4135 else
4136 ac_cpp_err=
4137 fi
4138else
4139 ac_cpp_err=yes
4140fi
4141if test -z "$ac_cpp_err"; then
4142 # Broken: success on invalid input.
4143continue
4144else
4145 echo "$as_me: failed program was:" >&5
4146sed 's/^/| /' conftest.$ac_ext >&5
bf3b7cd3 4147
60d26958
PB
4148 # Passes both tests.
4149ac_preproc_ok=:
4150break
bf3b7cd3 4151fi
60d26958 4152rm -f conftest.err conftest.$ac_ext
bf3b7cd3 4153
60d26958
PB
4154done
4155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156rm -f conftest.err conftest.$ac_ext
4157if $ac_preproc_ok; then
4158 break
4159fi
4160
4161 done
4162 ac_cv_prog_CPP=$CPP
4163
4164fi
4165 CPP=$ac_cv_prog_CPP
4166else
4167 ac_cv_prog_CPP=$CPP
4168fi
4169echo "$as_me:$LINENO: result: $CPP" >&5
4170echo "${ECHO_T}$CPP" >&6
4171ac_preproc_ok=false
4172for ac_c_preproc_warn_flag in '' yes
4173do
4174 # Use a header file that comes with gcc, so configuring glibc
4175 # with a fresh cross-compiler works.
4176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4177 # <limits.h> exists even on freestanding compilers.
4178 # On the NeXT, cc -E runs the code through the compiler's parser,
4179 # not just through cpp. "Syntax error" is here to catch this case.
bf3b7cd3
JD
4180 cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h. */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
4185/* end confdefs.h. */
60d26958
PB
4186#ifdef __STDC__
4187# include <limits.h>
4188#else
4189# include <assert.h>
4190#endif
4191 Syntax error
bf3b7cd3 4192_ACEOF
60d26958
PB
4193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } >/dev/null; then
4201 if test -s conftest.err; then
4202 ac_cpp_err=$ac_c_preproc_warn_flag
4203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4204 else
4205 ac_cpp_err=
4206 fi
bf3b7cd3 4207else
60d26958 4208 ac_cpp_err=yes
bf3b7cd3 4209fi
60d26958
PB
4210if test -z "$ac_cpp_err"; then
4211 :
4212else
4213 echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
bf3b7cd3 4215
60d26958
PB
4216 # Broken: fails on valid input.
4217continue
bf3b7cd3 4218fi
60d26958 4219rm -f conftest.err conftest.$ac_ext
bf3b7cd3 4220
60d26958
PB
4221 # OK, works on sane cases. Now check whether non-existent headers
4222 # can be detected and how.
bf3b7cd3
JD
4223 cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h. */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h. */
60d26958 4229#include <ac_nonexistent.h>
bf3b7cd3 4230_ACEOF
60d26958
PB
4231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
bf3b7cd3 4233 ac_status=$?
60d26958
PB
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
bf3b7cd3 4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60d26958
PB
4238 (exit $ac_status); } >/dev/null; then
4239 if test -s conftest.err; then
4240 ac_cpp_err=$ac_c_preproc_warn_flag
4241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4242 else
4243 ac_cpp_err=
4244 fi
bf3b7cd3 4245else
60d26958
PB
4246 ac_cpp_err=yes
4247fi
4248if test -z "$ac_cpp_err"; then
4249 # Broken: success on invalid input.
4250continue
4251else
4252 echo "$as_me: failed program was:" >&5
bf3b7cd3
JD
4253sed 's/^/| /' conftest.$ac_ext >&5
4254
60d26958
PB
4255 # Passes both tests.
4256ac_preproc_ok=:
4257break
1a4b763e 4258fi
60d26958 4259rm -f conftest.err conftest.$ac_ext
bf3b7cd3 4260
60d26958
PB
4261done
4262# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263rm -f conftest.err conftest.$ac_ext
4264if $ac_preproc_ok; then
4265 :
4266else
18c04407
RW
4267 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4268echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
60d26958
PB
4270See \`config.log' for more details." >&5
4271echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4272See \`config.log' for more details." >&2;}
18c04407 4273 { (exit 1); exit 1; }; }; }
bf3b7cd3
JD
4274fi
4275
60d26958
PB
4276ac_ext=c
4277ac_cpp='$CPP $CPPFLAGS'
4278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf3b7cd3 4281
60d26958
PB
4282echo "$as_me:$LINENO: checking for inline" >&5
4283echo $ECHO_N "checking for inline... $ECHO_C" >&6
4284if test "${ac_cv_c_inline+set}" = set; then
bf3b7cd3
JD
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286else
60d26958
PB
4287 ac_cv_c_inline=no
4288for ac_kw in inline __inline__ __inline; do
bf3b7cd3
JD
4289 cat >conftest.$ac_ext <<_ACEOF
4290/* confdefs.h. */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h. */
60d26958
PB
4295#ifndef __cplusplus
4296typedef int foo_t;
4297static $ac_kw foo_t static_foo () {return 0; }
4298$ac_kw foo_t foo () {return 0; }
4299#endif
bf3b7cd3 4300
bf3b7cd3
JD
4301_ACEOF
4302rm -f conftest.$ac_objext
b61ff9c8
BS
4303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
4310 (exit $ac_status); } &&
4311 { ac_try='test -z "$ac_c_werror_flag"
4312 || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 (eval $ac_try) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
60d26958 4324 ac_cv_c_inline=$ac_kw; break
bf3b7cd3
JD
4325else
4326 echo "$as_me: failed program was:" >&5
4327sed 's/^/| /' conftest.$ac_ext >&5
4328
bf3b7cd3 4329fi
b61ff9c8 4330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60d26958 4331done
bf3b7cd3
JD
4332
4333fi
60d26958
PB
4334echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4335echo "${ECHO_T}$ac_cv_c_inline" >&6
bf3b7cd3 4336
60d26958
PB
4337
4338case $ac_cv_c_inline in
4339 inline | yes) ;;
4340 *)
4341 case $ac_cv_c_inline in
4342 no) ac_val=;;
4343 *) ac_val=$ac_cv_c_inline;;
4344 esac
4345 cat >>confdefs.h <<_ACEOF
4346#ifndef __cplusplus
4347#define inline $ac_val
4348#endif
4349_ACEOF
4350 ;;
4351esac
bf3b7cd3
JD
4352
4353
60d26958 4354# sizeof(char) is 1 by definition.
b61ff9c8
BS
4355echo "$as_me:$LINENO: checking for void *" >&5
4356echo $ECHO_N "checking for void *... $ECHO_C" >&6
bf3b7cd3
JD
4357if test "${ac_cv_type_void_p+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359else
4360 cat >conftest.$ac_ext <<_ACEOF
4361/* confdefs.h. */
4362_ACEOF
4363cat confdefs.h >>conftest.$ac_ext
4364cat >>conftest.$ac_ext <<_ACEOF
4365/* end confdefs.h. */
4366$ac_includes_default
4367int
4368main ()
4369{
b61ff9c8 4370if ((void * *) 0)
bf3b7cd3 4371 return 0;
b61ff9c8 4372if (sizeof (void *))
bf3b7cd3
JD
4373 return 0;
4374 ;
4375 return 0;
4376}
4377_ACEOF
4378rm -f conftest.$ac_objext
b61ff9c8
BS
4379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag"
4388 || test ! -s conftest.err'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; } &&
4394 { ac_try='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 (eval $ac_try) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
bf3b7cd3
JD
4400 ac_cv_type_void_p=yes
4401else
4402 echo "$as_me: failed program was:" >&5
4403sed 's/^/| /' conftest.$ac_ext >&5
4404
b61ff9c8 4405ac_cv_type_void_p=no
bf3b7cd3 4406fi
b61ff9c8 4407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3 4408fi
b61ff9c8
BS
4409echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4410echo "${ECHO_T}$ac_cv_type_void_p" >&6
bf3b7cd3 4411
b61ff9c8
BS
4412echo "$as_me:$LINENO: checking size of void *" >&5
4413echo $ECHO_N "checking size of void *... $ECHO_C" >&6
ba479fd2
NN
4414if test "${ac_cv_sizeof_void_p+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
75b6f3fd 4416else
b61ff9c8
BS
4417 if test "$ac_cv_type_void_p" = yes; then
4418 # The cast to unsigned long works around a bug in the HP C Compiler
4419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4421 # This bug is HP SR number 8606223364.
bf3b7cd3
JD
4422 if test "$cross_compiling" = yes; then
4423 # Depending upon the size, compute the lo and hi bounds.
4424cat >conftest.$ac_ext <<_ACEOF
4425/* confdefs.h. */
4426_ACEOF
4427cat confdefs.h >>conftest.$ac_ext
4428cat >>conftest.$ac_ext <<_ACEOF
4429/* end confdefs.h. */
4430$ac_includes_default
4431int
4432main ()
4433{
b61ff9c8 4434static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
bf3b7cd3
JD
4435test_array [0] = 0
4436
4437 ;
4438 return 0;
4439}
4440_ACEOF
4441rm -f conftest.$ac_objext
b61ff9c8
BS
4442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
4449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag"
4451 || test ! -s conftest.err'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 (eval $ac_try) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 (eval $ac_try) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
bf3b7cd3
JD
4463 ac_lo=0 ac_mid=0
4464 while :; do
4465 cat >conftest.$ac_ext <<_ACEOF
4466/* confdefs.h. */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h. */
4471$ac_includes_default
4472int
4473main ()
4474{
b61ff9c8 4475static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
bf3b7cd3
JD
4476test_array [0] = 0
4477
4478 ;
4479 return 0;
4480}
4481_ACEOF
4482rm -f conftest.$ac_objext
b61ff9c8
BS
4483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
4490 (exit $ac_status); } &&
4491 { ac_try='test -z "$ac_c_werror_flag"
4492 || test ! -s conftest.err'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try='test -s conftest.$ac_objext'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
bf3b7cd3
JD
4504 ac_hi=$ac_mid; break
4505else
4506 echo "$as_me: failed program was:" >&5
4507sed 's/^/| /' conftest.$ac_ext >&5
4508
b61ff9c8
BS
4509ac_lo=`expr $ac_mid + 1`
4510 if test $ac_lo -le $ac_mid; then
4511 ac_lo= ac_hi=
4512 break
4513 fi
4514 ac_mid=`expr 2 '*' $ac_mid + 1`
bf3b7cd3 4515fi
b61ff9c8 4516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
4517 done
4518else
4519 echo "$as_me: failed program was:" >&5
4520sed 's/^/| /' conftest.$ac_ext >&5
4521
b61ff9c8 4522cat >conftest.$ac_ext <<_ACEOF
bf3b7cd3
JD
4523/* confdefs.h. */
4524_ACEOF
4525cat confdefs.h >>conftest.$ac_ext
4526cat >>conftest.$ac_ext <<_ACEOF
4527/* end confdefs.h. */
4528$ac_includes_default
4529int
4530main ()
4531{
b61ff9c8 4532static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
bf3b7cd3
JD
4533test_array [0] = 0
4534
4535 ;
4536 return 0;
4537}
4538_ACEOF
4539rm -f conftest.$ac_objext
b61ff9c8
BS
4540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
bf3b7cd3
JD
4561 ac_hi=-1 ac_mid=-1
4562 while :; do
4563 cat >conftest.$ac_ext <<_ACEOF
4564/* confdefs.h. */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
4568/* end confdefs.h. */
4569$ac_includes_default
4570int
4571main ()
4572{
b61ff9c8 4573static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
bf3b7cd3
JD
4574test_array [0] = 0
4575
4576 ;
4577 return 0;
4578}
4579_ACEOF
4580rm -f conftest.$ac_objext
b61ff9c8
BS
4581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
bf3b7cd3
JD
4602 ac_lo=$ac_mid; break
4603else
4604 echo "$as_me: failed program was:" >&5
4605sed 's/^/| /' conftest.$ac_ext >&5
4606
b61ff9c8
BS
4607ac_hi=`expr '(' $ac_mid ')' - 1`
4608 if test $ac_mid -le $ac_hi; then
4609 ac_lo= ac_hi=
4610 break
4611 fi
4612 ac_mid=`expr 2 '*' $ac_mid`
bf3b7cd3 4613fi
b61ff9c8 4614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
4615 done
4616else
4617 echo "$as_me: failed program was:" >&5
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
b61ff9c8 4620ac_lo= ac_hi=
bf3b7cd3 4621fi
b61ff9c8 4622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3 4623fi
b61ff9c8 4624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
4625# Binary search between lo and hi bounds.
4626while test "x$ac_lo" != "x$ac_hi"; do
4627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4628 cat >conftest.$ac_ext <<_ACEOF
4629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
4634$ac_includes_default
4635int
4636main ()
4637{
b61ff9c8 4638static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
bf3b7cd3
JD
4639test_array [0] = 0
4640
4641 ;
4642 return 0;
4643}
4644_ACEOF
4645rm -f conftest.$ac_objext
b61ff9c8
BS
4646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
4653 (exit $ac_status); } &&
4654 { ac_try='test -z "$ac_c_werror_flag"
4655 || test ! -s conftest.err'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; } &&
4661 { ac_try='test -s conftest.$ac_objext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
bf3b7cd3
JD
4667 ac_hi=$ac_mid
4668else
4669 echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
b61ff9c8 4672ac_lo=`expr '(' $ac_mid ')' + 1`
bf3b7cd3 4673fi
b61ff9c8 4674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
4675done
4676case $ac_lo in
4677?*) ac_cv_sizeof_void_p=$ac_lo;;
18c04407
RW
4678'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4679echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
bf3b7cd3 4681See \`config.log' for more details." >&5
b61ff9c8 4682echo "$as_me: error: cannot compute sizeof (void *), 77
bf3b7cd3 4683See \`config.log' for more details." >&2;}
18c04407 4684 { (exit 1); exit 1; }; }; } ;;
bf3b7cd3 4685esac
b61ff9c8
BS
4686else
4687 if test "$cross_compiling" = yes; then
18c04407
RW
4688 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4689echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b61ff9c8
BS
4691See \`config.log' for more details." >&5
4692echo "$as_me: error: cannot run test program while cross compiling
4693See \`config.log' for more details." >&2;}
18c04407 4694 { (exit 1); exit 1; }; }; }
bf3b7cd3
JD
4695else
4696 cat >conftest.$ac_ext <<_ACEOF
4697/* confdefs.h. */
4698_ACEOF
4699cat confdefs.h >>conftest.$ac_ext
4700cat >>conftest.$ac_ext <<_ACEOF
4701/* end confdefs.h. */
4702$ac_includes_default
b61ff9c8
BS
4703long longval () { return (long) (sizeof (void *)); }
4704unsigned long ulongval () { return (long) (sizeof (void *)); }
bf3b7cd3
JD
4705#include <stdio.h>
4706#include <stdlib.h>
4707int
4708main ()
4709{
4710
4711 FILE *f = fopen ("conftest.val", "w");
4712 if (! f)
b61ff9c8
BS
4713 exit (1);
4714 if (((long) (sizeof (void *))) < 0)
bf3b7cd3 4715 {
b61ff9c8
BS
4716 long i = longval ();
4717 if (i != ((long) (sizeof (void *))))
4718 exit (1);
bf3b7cd3
JD
4719 fprintf (f, "%ld\n", i);
4720 }
4721 else
4722 {
b61ff9c8
BS
4723 unsigned long i = ulongval ();
4724 if (i != ((long) (sizeof (void *))))
4725 exit (1);
bf3b7cd3
JD
4726 fprintf (f, "%lu\n", i);
4727 }
b61ff9c8 4728 exit (ferror (f) || fclose (f) != 0);
bf3b7cd3
JD
4729
4730 ;
4731 return 0;
4732}
4733_ACEOF
4734rm -f conftest$ac_exeext
b61ff9c8
BS
4735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736 (eval $ac_link) 2>&5
bf3b7cd3
JD
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b61ff9c8
BS
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
bf3b7cd3
JD
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 ac_cv_sizeof_void_p=`cat conftest.val`
4746else
4747 echo "$as_me: program exited with status $ac_status" >&5
4748echo "$as_me: failed program was:" >&5
4749sed 's/^/| /' conftest.$ac_ext >&5
4750
4751( exit $ac_status )
18c04407
RW
4752{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4753echo "$as_me: error: in \`$ac_pwd':" >&2;}
b61ff9c8 4754{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
bf3b7cd3 4755See \`config.log' for more details." >&5
b61ff9c8 4756echo "$as_me: error: cannot compute sizeof (void *), 77
bf3b7cd3 4757See \`config.log' for more details." >&2;}
18c04407 4758 { (exit 1); exit 1; }; }; }
b61ff9c8
BS
4759fi
4760rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
4761fi
4762fi
4763rm -f conftest.val
b61ff9c8
BS
4764else
4765 ac_cv_sizeof_void_p=0
bf3b7cd3 4766fi
b61ff9c8
BS
4767fi
4768echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4769echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
bf3b7cd3
JD
4770cat >>confdefs.h <<_ACEOF
4771#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4772_ACEOF
4773
4774
b61ff9c8
BS
4775echo "$as_me:$LINENO: checking for short" >&5
4776echo $ECHO_N "checking for short... $ECHO_C" >&6
bf3b7cd3
JD
4777if test "${ac_cv_type_short+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780 cat >conftest.$ac_ext <<_ACEOF
4781/* confdefs.h. */
4782_ACEOF
4783cat confdefs.h >>conftest.$ac_ext
4784cat >>conftest.$ac_ext <<_ACEOF
4785/* end confdefs.h. */
4786$ac_includes_default
4787int
4788main ()
4789{
b61ff9c8 4790if ((short *) 0)
bf3b7cd3 4791 return 0;
b61ff9c8 4792if (sizeof (short))
bf3b7cd3
JD
4793 return 0;
4794 ;
4795 return 0;
4796}
4797_ACEOF
4798rm -f conftest.$ac_objext
b61ff9c8
BS
4799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
4806 (exit $ac_status); } &&
4807 { ac_try='test -z "$ac_c_werror_flag"
4808 || test ! -s conftest.err'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; } &&
4814 { ac_try='test -s conftest.$ac_objext'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 (eval $ac_try) 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
bf3b7cd3
JD
4820 ac_cv_type_short=yes
4821else
4822 echo "$as_me: failed program was:" >&5
4823sed 's/^/| /' conftest.$ac_ext >&5
4824
b61ff9c8 4825ac_cv_type_short=no
bf3b7cd3 4826fi
b61ff9c8 4827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3 4828fi
b61ff9c8
BS
4829echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4830echo "${ECHO_T}$ac_cv_type_short" >&6
bf3b7cd3 4831
b61ff9c8
BS
4832echo "$as_me:$LINENO: checking size of short" >&5
4833echo $ECHO_N "checking size of short... $ECHO_C" >&6
bf3b7cd3
JD
4834if test "${ac_cv_sizeof_short+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836else
b61ff9c8
BS
4837 if test "$ac_cv_type_short" = yes; then
4838 # The cast to unsigned long works around a bug in the HP C Compiler
4839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4841 # This bug is HP SR number 8606223364.
bf3b7cd3
JD
4842 if test "$cross_compiling" = yes; then
4843 # Depending upon the size, compute the lo and hi bounds.
4844cat >conftest.$ac_ext <<_ACEOF
4845/* confdefs.h. */
4846_ACEOF
4847cat confdefs.h >>conftest.$ac_ext
4848cat >>conftest.$ac_ext <<_ACEOF
4849/* end confdefs.h. */
4850$ac_includes_default
4851int
4852main ()
4853{
b61ff9c8 4854static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
bf3b7cd3
JD
4855test_array [0] = 0
4856
4857 ;
4858 return 0;
4859}
4860_ACEOF
4861rm -f conftest.$ac_objext
b61ff9c8
BS
4862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
4869 (exit $ac_status); } &&
4870 { ac_try='test -z "$ac_c_werror_flag"
4871 || test ! -s conftest.err'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; } &&
4877 { ac_try='test -s conftest.$ac_objext'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 (eval $ac_try) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; }; then
bf3b7cd3
JD
4883 ac_lo=0 ac_mid=0
4884 while :; do
4885 cat >conftest.$ac_ext <<_ACEOF
4886/* confdefs.h. */
4887_ACEOF
4888cat confdefs.h >>conftest.$ac_ext
4889cat >>conftest.$ac_ext <<_ACEOF
4890/* end confdefs.h. */
4891$ac_includes_default
4892int
4893main ()
4894{
b61ff9c8 4895static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
bf3b7cd3
JD
4896test_array [0] = 0
4897
4898 ;
4899 return 0;
4900}
4901_ACEOF
4902rm -f conftest.$ac_objext
b61ff9c8
BS
4903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
bf3b7cd3
JD
4924 ac_hi=$ac_mid; break
4925else
4926 echo "$as_me: failed program was:" >&5
4927sed 's/^/| /' conftest.$ac_ext >&5
4928
b61ff9c8
BS
4929ac_lo=`expr $ac_mid + 1`
4930 if test $ac_lo -le $ac_mid; then
4931 ac_lo= ac_hi=
4932 break
4933 fi
4934 ac_mid=`expr 2 '*' $ac_mid + 1`
bf3b7cd3 4935fi
b61ff9c8 4936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
4937 done
4938else
4939 echo "$as_me: failed program was:" >&5
4940sed 's/^/| /' conftest.$ac_ext >&5
4941
b61ff9c8 4942cat >conftest.$ac_ext <<_ACEOF
bf3b7cd3
JD
4943/* confdefs.h. */
4944_ACEOF
4945cat confdefs.h >>conftest.$ac_ext
4946cat >>conftest.$ac_ext <<_ACEOF
4947/* end confdefs.h. */
4948$ac_includes_default
4949int
4950main ()
4951{
b61ff9c8 4952static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
bf3b7cd3
JD
4953test_array [0] = 0
4954
4955 ;
4956 return 0;
4957}
4958_ACEOF
4959rm -f conftest.$ac_objext
b61ff9c8
BS
4960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
4967 (exit $ac_status); } &&
4968 { ac_try='test -z "$ac_c_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 (eval $ac_try) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
bf3b7cd3
JD
4981 ac_hi=-1 ac_mid=-1
4982 while :; do
4983 cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h. */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h. */
4989$ac_includes_default
4990int
4991main ()
4992{
b61ff9c8 4993static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
bf3b7cd3
JD
4994test_array [0] = 0
4995
4996 ;
4997 return 0;
4998}
4999_ACEOF
5000rm -f conftest.$ac_objext
b61ff9c8
BS
5001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5008 (exit $ac_status); } &&
5009 { ac_try='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
bf3b7cd3
JD
5022 ac_lo=$ac_mid; break
5023else
5024 echo "$as_me: failed program was:" >&5
5025sed 's/^/| /' conftest.$ac_ext >&5
5026
b61ff9c8
BS
5027ac_hi=`expr '(' $ac_mid ')' - 1`
5028 if test $ac_mid -le $ac_hi; then
5029 ac_lo= ac_hi=
5030 break
5031 fi
5032 ac_mid=`expr 2 '*' $ac_mid`
bf3b7cd3 5033fi
b61ff9c8 5034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
5035 done
5036else
5037 echo "$as_me: failed program was:" >&5
5038sed 's/^/| /' conftest.$ac_ext >&5
5039
b61ff9c8 5040ac_lo= ac_hi=
bf3b7cd3 5041fi
b61ff9c8 5042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3 5043fi
b61ff9c8 5044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
5045# Binary search between lo and hi bounds.
5046while test "x$ac_lo" != "x$ac_hi"; do
5047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5048 cat >conftest.$ac_ext <<_ACEOF
5049/* confdefs.h. */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h. */
5054$ac_includes_default
5055int
5056main ()
5057{
b61ff9c8 5058static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
bf3b7cd3
JD
5059test_array [0] = 0
5060
5061 ;
5062 return 0;
5063}
5064_ACEOF
5065rm -f conftest.$ac_objext
b61ff9c8
BS
5066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
bf3b7cd3
JD
5087 ac_hi=$ac_mid
5088else
5089 echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
b61ff9c8 5092ac_lo=`expr '(' $ac_mid ')' + 1`
bf3b7cd3 5093fi
b61ff9c8 5094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
5095done
5096case $ac_lo in
5097?*) ac_cv_sizeof_short=$ac_lo;;
18c04407
RW
5098'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5099echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
bf3b7cd3 5101See \`config.log' for more details." >&5
b61ff9c8 5102echo "$as_me: error: cannot compute sizeof (short), 77
bf3b7cd3 5103See \`config.log' for more details." >&2;}
18c04407 5104 { (exit 1); exit 1; }; }; } ;;
bf3b7cd3 5105esac
b61ff9c8
BS
5106else
5107 if test "$cross_compiling" = yes; then
18c04407
RW
5108 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5109echo "$as_me: error: in \`$ac_pwd':" >&2;}
5110{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b61ff9c8
BS
5111See \`config.log' for more details." >&5
5112echo "$as_me: error: cannot run test program while cross compiling
5113See \`config.log' for more details." >&2;}
18c04407 5114 { (exit 1); exit 1; }; }; }
8b1f719a
PB
5115else
5116 cat >conftest.$ac_ext <<_ACEOF
bf3b7cd3
JD
5117/* confdefs.h. */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h. */
5122$ac_includes_default
b61ff9c8
BS
5123long longval () { return (long) (sizeof (short)); }
5124unsigned long ulongval () { return (long) (sizeof (short)); }
bf3b7cd3
JD
5125#include <stdio.h>
5126#include <stdlib.h>
5127int
5128main ()
5129{
5130
5131 FILE *f = fopen ("conftest.val", "w");
5132 if (! f)
b61ff9c8
BS
5133 exit (1);
5134 if (((long) (sizeof (short))) < 0)
bf3b7cd3 5135 {
b61ff9c8
BS
5136 long i = longval ();
5137 if (i != ((long) (sizeof (short))))
5138 exit (1);
bf3b7cd3
JD
5139 fprintf (f, "%ld\n", i);
5140 }
5141 else
5142 {
b61ff9c8
BS
5143 unsigned long i = ulongval ();
5144 if (i != ((long) (sizeof (short))))
5145 exit (1);
bf3b7cd3
JD
5146 fprintf (f, "%lu\n", i);
5147 }
b61ff9c8 5148 exit (ferror (f) || fclose (f) != 0);
bf3b7cd3
JD
5149
5150 ;
5151 return 0;
5152}
5153_ACEOF
5154rm -f conftest$ac_exeext
b61ff9c8
BS
5155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5156 (eval $ac_link) 2>&5
bf3b7cd3
JD
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b61ff9c8
BS
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
bf3b7cd3
JD
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_cv_sizeof_short=`cat conftest.val`
5166else
5167 echo "$as_me: program exited with status $ac_status" >&5
5168echo "$as_me: failed program was:" >&5
5169sed 's/^/| /' conftest.$ac_ext >&5
5170
5171( exit $ac_status )
18c04407
RW
5172{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5173echo "$as_me: error: in \`$ac_pwd':" >&2;}
b61ff9c8 5174{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
bf3b7cd3 5175See \`config.log' for more details." >&5
b61ff9c8 5176echo "$as_me: error: cannot compute sizeof (short), 77
bf3b7cd3 5177See \`config.log' for more details." >&2;}
18c04407 5178 { (exit 1); exit 1; }; }; }
b61ff9c8
BS
5179fi
5180rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
5181fi
5182fi
5183rm -f conftest.val
b61ff9c8
BS
5184else
5185 ac_cv_sizeof_short=0
bf3b7cd3 5186fi
b61ff9c8
BS
5187fi
5188echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5189echo "${ECHO_T}$ac_cv_sizeof_short" >&6
bf3b7cd3
JD
5190cat >>confdefs.h <<_ACEOF
5191#define SIZEOF_SHORT $ac_cv_sizeof_short
5192_ACEOF
5193
5194
b61ff9c8
BS
5195echo "$as_me:$LINENO: checking for int" >&5
5196echo $ECHO_N "checking for int... $ECHO_C" >&6
bf3b7cd3
JD
5197if test "${ac_cv_type_int+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199else
5200 cat >conftest.$ac_ext <<_ACEOF
5201/* confdefs.h. */
5202_ACEOF
5203cat confdefs.h >>conftest.$ac_ext
5204cat >>conftest.$ac_ext <<_ACEOF
5205/* end confdefs.h. */
5206$ac_includes_default
5207int
5208main ()
5209{
b61ff9c8 5210if ((int *) 0)
bf3b7cd3 5211 return 0;
b61ff9c8 5212if (sizeof (int))
bf3b7cd3
JD
5213 return 0;
5214 ;
5215 return 0;
5216}
5217_ACEOF
5218rm -f conftest.$ac_objext
b61ff9c8
BS
5219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5221 ac_status=$?
5222 grep -v '^ *+' conftest.er1 >conftest.err
5223 rm -f conftest.er1
5224 cat conftest.err >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5226 (exit $ac_status); } &&
5227 { ac_try='test -z "$ac_c_werror_flag"
5228 || test ! -s conftest.err'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 (eval $ac_try) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; } &&
5234 { ac_try='test -s conftest.$ac_objext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 (eval $ac_try) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
bf3b7cd3
JD
5240 ac_cv_type_int=yes
5241else
5242 echo "$as_me: failed program was:" >&5
5243sed 's/^/| /' conftest.$ac_ext >&5
5244
b61ff9c8 5245ac_cv_type_int=no
bf3b7cd3 5246fi
b61ff9c8 5247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3 5248fi
b61ff9c8
BS
5249echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5250echo "${ECHO_T}$ac_cv_type_int" >&6
bf3b7cd3 5251
b61ff9c8
BS
5252echo "$as_me:$LINENO: checking size of int" >&5
5253echo $ECHO_N "checking size of int... $ECHO_C" >&6
bf3b7cd3
JD
5254if test "${ac_cv_sizeof_int+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256else
b61ff9c8
BS
5257 if test "$ac_cv_type_int" = yes; then
5258 # The cast to unsigned long works around a bug in the HP C Compiler
5259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5261 # This bug is HP SR number 8606223364.
bf3b7cd3
JD
5262 if test "$cross_compiling" = yes; then
5263 # Depending upon the size, compute the lo and hi bounds.
5264cat >conftest.$ac_ext <<_ACEOF
5265/* confdefs.h. */
5266_ACEOF
5267cat confdefs.h >>conftest.$ac_ext
5268cat >>conftest.$ac_ext <<_ACEOF
5269/* end confdefs.h. */
5270$ac_includes_default
5271int
5272main ()
5273{
b61ff9c8 5274static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
bf3b7cd3
JD
5275test_array [0] = 0
5276
5277 ;
5278 return 0;
5279}
5280_ACEOF
5281rm -f conftest.$ac_objext
b61ff9c8
BS
5282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5284 ac_status=$?
5285 grep -v '^ *+' conftest.er1 >conftest.err
5286 rm -f conftest.er1
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5289 (exit $ac_status); } &&
5290 { ac_try='test -z "$ac_c_werror_flag"
5291 || test ! -s conftest.err'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 (eval $ac_try) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; } &&
5297 { ac_try='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
bf3b7cd3
JD
5303 ac_lo=0 ac_mid=0
5304 while :; do
5305 cat >conftest.$ac_ext <<_ACEOF
5306/* confdefs.h. */
5307_ACEOF
5308cat confdefs.h >>conftest.$ac_ext
5309cat >>conftest.$ac_ext <<_ACEOF
5310/* end confdefs.h. */
5311$ac_includes_default
5312int
5313main ()
5314{
b61ff9c8 5315static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
bf3b7cd3
JD
5316test_array [0] = 0
5317
5318 ;
5319 return 0;
5320}
5321_ACEOF
5322rm -f conftest.$ac_objext
b61ff9c8
BS
5323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5330 (exit $ac_status); } &&
5331 { ac_try='test -z "$ac_c_werror_flag"
5332 || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 (eval $ac_try) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
bf3b7cd3
JD
5344 ac_hi=$ac_mid; break
5345else
5346 echo "$as_me: failed program was:" >&5
5347sed 's/^/| /' conftest.$ac_ext >&5
5348
b61ff9c8
BS
5349ac_lo=`expr $ac_mid + 1`
5350 if test $ac_lo -le $ac_mid; then
5351 ac_lo= ac_hi=
5352 break
5353 fi
5354 ac_mid=`expr 2 '*' $ac_mid + 1`
bf3b7cd3 5355fi
b61ff9c8 5356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
5357 done
5358else
5359 echo "$as_me: failed program was:" >&5
5360sed 's/^/| /' conftest.$ac_ext >&5
5361
b61ff9c8 5362cat >conftest.$ac_ext <<_ACEOF
bf3b7cd3
JD
5363/* confdefs.h. */
5364_ACEOF
5365cat confdefs.h >>conftest.$ac_ext
5366cat >>conftest.$ac_ext <<_ACEOF
5367/* end confdefs.h. */
5368$ac_includes_default
5369int
5370main ()
5371{
b61ff9c8 5372static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
bf3b7cd3
JD
5373test_array [0] = 0
5374
5375 ;
5376 return 0;
5377}
5378_ACEOF
5379rm -f conftest.$ac_objext
b61ff9c8
BS
5380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5382 ac_status=$?
5383 grep -v '^ *+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5387 (exit $ac_status); } &&
5388 { ac_try='test -z "$ac_c_werror_flag"
5389 || test ! -s conftest.err'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 (eval $ac_try) 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; } &&
5395 { ac_try='test -s conftest.$ac_objext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 (eval $ac_try) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
bf3b7cd3
JD
5401 ac_hi=-1 ac_mid=-1
5402 while :; do
5403 cat >conftest.$ac_ext <<_ACEOF
5404/* confdefs.h. */
5405_ACEOF
5406cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF
5408/* end confdefs.h. */
5409$ac_includes_default
5410int
5411main ()
5412{
b61ff9c8 5413static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
bf3b7cd3
JD
5414test_array [0] = 0
5415
5416 ;
5417 return 0;
5418}
5419_ACEOF
5420rm -f conftest.$ac_objext
b61ff9c8
BS
5421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag"
5430 || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 (eval $ac_try) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try='test -s conftest.$ac_objext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
bf3b7cd3
JD
5442 ac_lo=$ac_mid; break
5443else
5444 echo "$as_me: failed program was:" >&5
5445sed 's/^/| /' conftest.$ac_ext >&5
5446
b61ff9c8
BS
5447ac_hi=`expr '(' $ac_mid ')' - 1`
5448 if test $ac_mid -le $ac_hi; then
5449 ac_lo= ac_hi=
5450 break
5451 fi
5452 ac_mid=`expr 2 '*' $ac_mid`
bf3b7cd3 5453fi
b61ff9c8 5454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
5455 done
5456else
5457 echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5
5459
b61ff9c8 5460ac_lo= ac_hi=
bf3b7cd3 5461fi
b61ff9c8 5462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3 5463fi
b61ff9c8 5464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
5465# Binary search between lo and hi bounds.
5466while test "x$ac_lo" != "x$ac_hi"; do
5467 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5468 cat >conftest.$ac_ext <<_ACEOF
5469/* confdefs.h. */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
5473/* end confdefs.h. */
5474$ac_includes_default
5475int
5476main ()
5477{
b61ff9c8 5478static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
bf3b7cd3
JD
5479test_array [0] = 0
5480
5481 ;
5482 return 0;
5483}
5484_ACEOF
5485rm -f conftest.$ac_objext
b61ff9c8
BS
5486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5488 ac_status=$?
5489 grep -v '^ *+' conftest.er1 >conftest.err
5490 rm -f conftest.er1
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5493 (exit $ac_status); } &&
5494 { ac_try='test -z "$ac_c_werror_flag"
5495 || test ! -s conftest.err'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; } &&
5501 { ac_try='test -s conftest.$ac_objext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
bf3b7cd3
JD
5507 ac_hi=$ac_mid
5508else
5509 echo "$as_me: failed program was:" >&5
5510sed 's/^/| /' conftest.$ac_ext >&5
5511
b61ff9c8 5512ac_lo=`expr '(' $ac_mid ')' + 1`
bf3b7cd3 5513fi
b61ff9c8 5514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
5515done
5516case $ac_lo in
5517?*) ac_cv_sizeof_int=$ac_lo;;
18c04407
RW
5518'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5519echo "$as_me: error: in \`$ac_pwd':" >&2;}
5520{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
bf3b7cd3 5521See \`config.log' for more details." >&5
b61ff9c8 5522echo "$as_me: error: cannot compute sizeof (int), 77
bf3b7cd3 5523See \`config.log' for more details." >&2;}
18c04407 5524 { (exit 1); exit 1; }; }; } ;;
bf3b7cd3 5525esac
b61ff9c8
BS
5526else
5527 if test "$cross_compiling" = yes; then
18c04407
RW
5528 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5529echo "$as_me: error: in \`$ac_pwd':" >&2;}
5530{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b61ff9c8
BS
5531See \`config.log' for more details." >&5
5532echo "$as_me: error: cannot run test program while cross compiling
5533See \`config.log' for more details." >&2;}
18c04407 5534 { (exit 1); exit 1; }; }; }
bf3b7cd3
JD
5535else
5536 cat >conftest.$ac_ext <<_ACEOF
5537/* confdefs.h. */
5538_ACEOF
5539cat confdefs.h >>conftest.$ac_ext
5540cat >>conftest.$ac_ext <<_ACEOF
5541/* end confdefs.h. */
5542$ac_includes_default
b61ff9c8
BS
5543long longval () { return (long) (sizeof (int)); }
5544unsigned long ulongval () { return (long) (sizeof (int)); }
bf3b7cd3
JD
5545#include <stdio.h>
5546#include <stdlib.h>
5547int
5548main ()
5549{
5550
5551 FILE *f = fopen ("conftest.val", "w");
5552 if (! f)
b61ff9c8
BS
5553 exit (1);
5554 if (((long) (sizeof (int))) < 0)
bf3b7cd3 5555 {
b61ff9c8
BS
5556 long i = longval ();
5557 if (i != ((long) (sizeof (int))))
5558 exit (1);
bf3b7cd3
JD
5559 fprintf (f, "%ld\n", i);
5560 }
5561 else
5562 {
b61ff9c8
BS
5563 unsigned long i = ulongval ();
5564 if (i != ((long) (sizeof (int))))
5565 exit (1);
bf3b7cd3
JD
5566 fprintf (f, "%lu\n", i);
5567 }
b61ff9c8 5568 exit (ferror (f) || fclose (f) != 0);
bf3b7cd3
JD
5569
5570 ;
5571 return 0;
5572}
5573_ACEOF
5574rm -f conftest$ac_exeext
b61ff9c8
BS
5575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576 (eval $ac_link) 2>&5
bf3b7cd3
JD
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b61ff9c8
BS
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
bf3b7cd3
JD
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 ac_cv_sizeof_int=`cat conftest.val`
5586else
5587 echo "$as_me: program exited with status $ac_status" >&5
5588echo "$as_me: failed program was:" >&5
5589sed 's/^/| /' conftest.$ac_ext >&5
5590
5591( exit $ac_status )
18c04407
RW
5592{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5593echo "$as_me: error: in \`$ac_pwd':" >&2;}
b61ff9c8 5594{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
bf3b7cd3 5595See \`config.log' for more details." >&5
b61ff9c8 5596echo "$as_me: error: cannot compute sizeof (int), 77
bf3b7cd3 5597See \`config.log' for more details." >&2;}
18c04407 5598 { (exit 1); exit 1; }; }; }
b61ff9c8
BS
5599fi
5600rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
5601fi
5602fi
5603rm -f conftest.val
b61ff9c8
BS
5604else
5605 ac_cv_sizeof_int=0
bf3b7cd3 5606fi
b61ff9c8
BS
5607fi
5608echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5609echo "${ECHO_T}$ac_cv_sizeof_int" >&6
bf3b7cd3
JD
5610cat >>confdefs.h <<_ACEOF
5611#define SIZEOF_INT $ac_cv_sizeof_int
5612_ACEOF
5613
5614
b61ff9c8
BS
5615echo "$as_me:$LINENO: checking for long" >&5
5616echo $ECHO_N "checking for long... $ECHO_C" >&6
bf3b7cd3
JD
5617if test "${ac_cv_type_long+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619else
5620 cat >conftest.$ac_ext <<_ACEOF
5621/* confdefs.h. */
5622_ACEOF
5623cat confdefs.h >>conftest.$ac_ext
5624cat >>conftest.$ac_ext <<_ACEOF
5625/* end confdefs.h. */
5626$ac_includes_default
5627int
5628main ()
5629{
b61ff9c8 5630if ((long *) 0)
bf3b7cd3 5631 return 0;
b61ff9c8 5632if (sizeof (long))
bf3b7cd3
JD
5633 return 0;
5634 ;
5635 return 0;
5636}
5637_ACEOF
5638rm -f conftest.$ac_objext
b61ff9c8
BS
5639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5641 ac_status=$?
5642 grep -v '^ *+' conftest.er1 >conftest.err
5643 rm -f conftest.er1
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5646 (exit $ac_status); } &&
5647 { ac_try='test -z "$ac_c_werror_flag"
5648 || test ! -s conftest.err'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; } &&
5654 { ac_try='test -s conftest.$ac_objext'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 (eval $ac_try) 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
bf3b7cd3
JD
5660 ac_cv_type_long=yes
5661else
5662 echo "$as_me: failed program was:" >&5
5663sed 's/^/| /' conftest.$ac_ext >&5
5664
b61ff9c8 5665ac_cv_type_long=no
bf3b7cd3 5666fi
b61ff9c8 5667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3 5668fi
b61ff9c8
BS
5669echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5670echo "${ECHO_T}$ac_cv_type_long" >&6
bf3b7cd3 5671
b61ff9c8
BS
5672echo "$as_me:$LINENO: checking size of long" >&5
5673echo $ECHO_N "checking size of long... $ECHO_C" >&6
bf3b7cd3
JD
5674if test "${ac_cv_sizeof_long+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
b61ff9c8
BS
5677 if test "$ac_cv_type_long" = yes; then
5678 # The cast to unsigned long works around a bug in the HP C Compiler
5679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5681 # This bug is HP SR number 8606223364.
bf3b7cd3
JD
5682 if test "$cross_compiling" = yes; then
5683 # Depending upon the size, compute the lo and hi bounds.
5684cat >conftest.$ac_ext <<_ACEOF
5685/* confdefs.h. */
5686_ACEOF
5687cat confdefs.h >>conftest.$ac_ext
5688cat >>conftest.$ac_ext <<_ACEOF
5689/* end confdefs.h. */
5690$ac_includes_default
5691int
5692main ()
5693{
b61ff9c8 5694static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
bf3b7cd3
JD
5695test_array [0] = 0
5696
5697 ;
5698 return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext
b61ff9c8
BS
5702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
bf3b7cd3
JD
5723 ac_lo=0 ac_mid=0
5724 while :; do
5725 cat >conftest.$ac_ext <<_ACEOF
5726/* confdefs.h. */
5727_ACEOF
5728cat confdefs.h >>conftest.$ac_ext
5729cat >>conftest.$ac_ext <<_ACEOF
5730/* end confdefs.h. */
5731$ac_includes_default
5732int
5733main ()
5734{
b61ff9c8 5735static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
bf3b7cd3
JD
5736test_array [0] = 0
5737
5738 ;
5739 return 0;
5740}
5741_ACEOF
5742rm -f conftest.$ac_objext
b61ff9c8
BS
5743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5750 (exit $ac_status); } &&
5751 { ac_try='test -z "$ac_c_werror_flag"
5752 || test ! -s conftest.err'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 (eval $ac_try) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; } &&
5758 { ac_try='test -s conftest.$ac_objext'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 (eval $ac_try) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
bf3b7cd3
JD
5764 ac_hi=$ac_mid; break
5765else
5766 echo "$as_me: failed program was:" >&5
5767sed 's/^/| /' conftest.$ac_ext >&5
5768
b61ff9c8
BS
5769ac_lo=`expr $ac_mid + 1`
5770 if test $ac_lo -le $ac_mid; then
5771 ac_lo= ac_hi=
5772 break
5773 fi
5774 ac_mid=`expr 2 '*' $ac_mid + 1`
bf3b7cd3 5775fi
b61ff9c8 5776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
5777 done
5778else
5779 echo "$as_me: failed program was:" >&5
5780sed 's/^/| /' conftest.$ac_ext >&5
5781
b61ff9c8 5782cat >conftest.$ac_ext <<_ACEOF
bf3b7cd3
JD
5783/* confdefs.h. */
5784_ACEOF
5785cat confdefs.h >>conftest.$ac_ext
5786cat >>conftest.$ac_ext <<_ACEOF
5787/* end confdefs.h. */
5788$ac_includes_default
5789int
5790main ()
5791{
b61ff9c8 5792static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
bf3b7cd3
JD
5793test_array [0] = 0
5794
5795 ;
5796 return 0;
5797}
5798_ACEOF
5799rm -f conftest.$ac_objext
b61ff9c8
BS
5800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag"
5809 || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
bf3b7cd3
JD
5821 ac_hi=-1 ac_mid=-1
5822 while :; do
5823 cat >conftest.$ac_ext <<_ACEOF
5824/* confdefs.h. */
5825_ACEOF
5826cat confdefs.h >>conftest.$ac_ext
5827cat >>conftest.$ac_ext <<_ACEOF
5828/* end confdefs.h. */
5829$ac_includes_default
5830int
5831main ()
5832{
b61ff9c8 5833static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
bf3b7cd3
JD
5834test_array [0] = 0
5835
5836 ;
5837 return 0;
5838}
5839_ACEOF
5840rm -f conftest.$ac_objext
b61ff9c8
BS
5841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag"
5850 || test ! -s conftest.err'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 (eval $ac_try) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; } &&
5856 { ac_try='test -s conftest.$ac_objext'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
bf3b7cd3
JD
5862 ac_lo=$ac_mid; break
5863else
5864 echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
b61ff9c8
BS
5867ac_hi=`expr '(' $ac_mid ')' - 1`
5868 if test $ac_mid -le $ac_hi; then
5869 ac_lo= ac_hi=
5870 break
5871 fi
5872 ac_mid=`expr 2 '*' $ac_mid`
bf3b7cd3 5873fi
b61ff9c8 5874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
5875 done
5876else
5877 echo "$as_me: failed program was:" >&5
5878sed 's/^/| /' conftest.$ac_ext >&5
5879
b61ff9c8 5880ac_lo= ac_hi=
bf3b7cd3 5881fi
b61ff9c8 5882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3 5883fi
b61ff9c8 5884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
5885# Binary search between lo and hi bounds.
5886while test "x$ac_lo" != "x$ac_hi"; do
5887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5888 cat >conftest.$ac_ext <<_ACEOF
5889/* confdefs.h. */
5890_ACEOF
5891cat confdefs.h >>conftest.$ac_ext
5892cat >>conftest.$ac_ext <<_ACEOF
5893/* end confdefs.h. */
5894$ac_includes_default
5895int
5896main ()
5897{
b61ff9c8 5898static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
bf3b7cd3
JD
5899test_array [0] = 0
5900
5901 ;
5902 return 0;
5903}
5904_ACEOF
5905rm -f conftest.$ac_objext
b61ff9c8
BS
5906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
5913 (exit $ac_status); } &&
5914 { ac_try='test -z "$ac_c_werror_flag"
5915 || test ! -s conftest.err'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try='test -s conftest.$ac_objext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 (eval $ac_try) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
bf3b7cd3
JD
5927 ac_hi=$ac_mid
5928else
5929 echo "$as_me: failed program was:" >&5
5930sed 's/^/| /' conftest.$ac_ext >&5
5931
b61ff9c8 5932ac_lo=`expr '(' $ac_mid ')' + 1`
bf3b7cd3 5933fi
b61ff9c8 5934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
5935done
5936case $ac_lo in
5937?*) ac_cv_sizeof_long=$ac_lo;;
18c04407
RW
5938'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5939echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
bf3b7cd3 5941See \`config.log' for more details." >&5
b61ff9c8 5942echo "$as_me: error: cannot compute sizeof (long), 77
bf3b7cd3 5943See \`config.log' for more details." >&2;}
18c04407 5944 { (exit 1); exit 1; }; }; } ;;
bf3b7cd3 5945esac
b61ff9c8
BS
5946else
5947 if test "$cross_compiling" = yes; then
18c04407
RW
5948 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5949echo "$as_me: error: in \`$ac_pwd':" >&2;}
5950{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b61ff9c8
BS
5951See \`config.log' for more details." >&5
5952echo "$as_me: error: cannot run test program while cross compiling
5953See \`config.log' for more details." >&2;}
18c04407 5954 { (exit 1); exit 1; }; }; }
bf3b7cd3
JD
5955else
5956 cat >conftest.$ac_ext <<_ACEOF
5957/* confdefs.h. */
5958_ACEOF
5959cat confdefs.h >>conftest.$ac_ext
5960cat >>conftest.$ac_ext <<_ACEOF
5961/* end confdefs.h. */
5962$ac_includes_default
b61ff9c8
BS
5963long longval () { return (long) (sizeof (long)); }
5964unsigned long ulongval () { return (long) (sizeof (long)); }
bf3b7cd3
JD
5965#include <stdio.h>
5966#include <stdlib.h>
5967int
5968main ()
5969{
5970
5971 FILE *f = fopen ("conftest.val", "w");
5972 if (! f)
b61ff9c8
BS
5973 exit (1);
5974 if (((long) (sizeof (long))) < 0)
bf3b7cd3 5975 {
b61ff9c8
BS
5976 long i = longval ();
5977 if (i != ((long) (sizeof (long))))
5978 exit (1);
bf3b7cd3
JD
5979 fprintf (f, "%ld\n", i);
5980 }
5981 else
5982 {
b61ff9c8
BS
5983 unsigned long i = ulongval ();
5984 if (i != ((long) (sizeof (long))))
5985 exit (1);
bf3b7cd3
JD
5986 fprintf (f, "%lu\n", i);
5987 }
b61ff9c8 5988 exit (ferror (f) || fclose (f) != 0);
bf3b7cd3
JD
5989
5990 ;
5991 return 0;
5992}
5993_ACEOF
5994rm -f conftest$ac_exeext
b61ff9c8
BS
5995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>&5
bf3b7cd3
JD
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b61ff9c8
BS
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
bf3b7cd3
JD
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_sizeof_long=`cat conftest.val`
6006else
6007 echo "$as_me: program exited with status $ac_status" >&5
6008echo "$as_me: failed program was:" >&5
6009sed 's/^/| /' conftest.$ac_ext >&5
6010
6011( exit $ac_status )
18c04407
RW
6012{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6013echo "$as_me: error: in \`$ac_pwd':" >&2;}
b61ff9c8 6014{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
bf3b7cd3 6015See \`config.log' for more details." >&5
b61ff9c8 6016echo "$as_me: error: cannot compute sizeof (long), 77
bf3b7cd3 6017See \`config.log' for more details." >&2;}
18c04407 6018 { (exit 1); exit 1; }; }; }
b61ff9c8
BS
6019fi
6020rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
6021fi
6022fi
6023rm -f conftest.val
b61ff9c8
BS
6024else
6025 ac_cv_sizeof_long=0
bf3b7cd3 6026fi
b61ff9c8
BS
6027fi
6028echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6029echo "${ECHO_T}$ac_cv_sizeof_long" >&6
bf3b7cd3
JD
6030cat >>confdefs.h <<_ACEOF
6031#define SIZEOF_LONG $ac_cv_sizeof_long
6032_ACEOF
6033
6034
b61ff9c8
BS
6035echo "$as_me:$LINENO: checking for long long" >&5
6036echo $ECHO_N "checking for long long... $ECHO_C" >&6
5ec1c5e6
KC
6037if test "${ac_cv_type_long_long+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040 cat >conftest.$ac_ext <<_ACEOF
6041/* confdefs.h. */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h. */
6046$ac_includes_default
6047int
6048main ()
6049{
b61ff9c8 6050if ((long long *) 0)
5ec1c5e6 6051 return 0;
b61ff9c8 6052if (sizeof (long long))
5ec1c5e6
KC
6053 return 0;
6054 ;
6055 return 0;
6056}
6057_ACEOF
6058rm -f conftest.$ac_objext
b61ff9c8
BS
6059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>conftest.er1
5ec1c5e6
KC
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6066 (exit $ac_status); } &&
6067 { ac_try='test -z "$ac_c_werror_flag"
6068 || test ! -s conftest.err'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 (eval $ac_try) 2>&5
6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; } &&
6074 { ac_try='test -s conftest.$ac_objext'
6075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 (eval $ac_try) 2>&5
6077 ac_status=$?
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; }; then
5ec1c5e6
KC
6080 ac_cv_type_long_long=yes
6081else
6082 echo "$as_me: failed program was:" >&5
6083sed 's/^/| /' conftest.$ac_ext >&5
6084
b61ff9c8 6085ac_cv_type_long_long=no
5ec1c5e6 6086fi
b61ff9c8 6087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ec1c5e6 6088fi
b61ff9c8
BS
6089echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6090echo "${ECHO_T}$ac_cv_type_long_long" >&6
5ec1c5e6
KC
6091if test $ac_cv_type_long_long = yes; then
6092
6093cat >>confdefs.h <<_ACEOF
6094#define HAVE_LONG_LONG 1
6095_ACEOF
6096
b61ff9c8
BS
6097echo "$as_me:$LINENO: checking for long long" >&5
6098echo $ECHO_N "checking for long long... $ECHO_C" >&6
bf3b7cd3
JD
6099if test "${ac_cv_type_long_long+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101else
6102 cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
6108$ac_includes_default
6109int
6110main ()
6111{
b61ff9c8 6112if ((long long *) 0)
bf3b7cd3 6113 return 0;
b61ff9c8 6114if (sizeof (long long))
bf3b7cd3
JD
6115 return 0;
6116 ;
6117 return 0;
6118}
6119_ACEOF
6120rm -f conftest.$ac_objext
b61ff9c8
BS
6121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag"
6130 || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_type_long_long=yes
6143else
bf3b7cd3
JD
6144 echo "$as_me: failed program was:" >&5
6145sed 's/^/| /' conftest.$ac_ext >&5
6146
b61ff9c8 6147ac_cv_type_long_long=no
bf3b7cd3 6148fi
b61ff9c8 6149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3 6150fi
b61ff9c8
BS
6151echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6152echo "${ECHO_T}$ac_cv_type_long_long" >&6
bf3b7cd3 6153
b61ff9c8
BS
6154echo "$as_me:$LINENO: checking size of long long" >&5
6155echo $ECHO_N "checking size of long long... $ECHO_C" >&6
bf3b7cd3
JD
6156if test "${ac_cv_sizeof_long_long+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158else
b61ff9c8
BS
6159 if test "$ac_cv_type_long_long" = yes; then
6160 # The cast to unsigned long works around a bug in the HP C Compiler
6161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6163 # This bug is HP SR number 8606223364.
bf3b7cd3
JD
6164 if test "$cross_compiling" = yes; then
6165 # Depending upon the size, compute the lo and hi bounds.
6166cat >conftest.$ac_ext <<_ACEOF
6167/* confdefs.h. */
6168_ACEOF
6169cat confdefs.h >>conftest.$ac_ext
6170cat >>conftest.$ac_ext <<_ACEOF
6171/* end confdefs.h. */
6172$ac_includes_default
6173int
6174main ()
6175{
b61ff9c8 6176static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
bf3b7cd3
JD
6177test_array [0] = 0
6178
6179 ;
6180 return 0;
6181}
6182_ACEOF
6183rm -f conftest.$ac_objext
b61ff9c8
BS
6184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
6186 ac_status=$?
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
bf3b7cd3
JD
6205 ac_lo=0 ac_mid=0
6206 while :; do
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$ac_includes_default
6214int
6215main ()
6216{
b61ff9c8 6217static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
bf3b7cd3
JD
6218test_array [0] = 0
6219
6220 ;
6221 return 0;
6222}
6223_ACEOF
6224rm -f conftest.$ac_objext
b61ff9c8
BS
6225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6232 (exit $ac_status); } &&
6233 { ac_try='test -z "$ac_c_werror_flag"
6234 || test ! -s conftest.err'
6235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 (eval $ac_try) 2>&5
6237 ac_status=$?
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; } &&
6240 { ac_try='test -s conftest.$ac_objext'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 (eval $ac_try) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; }; then
8b1f719a 6246 ac_hi=$ac_mid; break
bf3b7cd3
JD
6247else
6248 echo "$as_me: failed program was:" >&5
6249sed 's/^/| /' conftest.$ac_ext >&5
6250
b61ff9c8
BS
6251ac_lo=`expr $ac_mid + 1`
6252 if test $ac_lo -le $ac_mid; then
6253 ac_lo= ac_hi=
6254 break
6255 fi
6256 ac_mid=`expr 2 '*' $ac_mid + 1`
8b1f719a 6257fi
b61ff9c8 6258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8b1f719a
PB
6259 done
6260else
6261 echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
b61ff9c8 6264cat >conftest.$ac_ext <<_ACEOF
bf3b7cd3
JD
6265/* confdefs.h. */
6266_ACEOF
6267cat confdefs.h >>conftest.$ac_ext
6268cat >>conftest.$ac_ext <<_ACEOF
6269/* end confdefs.h. */
6270$ac_includes_default
6271int
6272main ()
6273{
b61ff9c8 6274static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
bf3b7cd3
JD
6275test_array [0] = 0
6276
6277 ;
6278 return 0;
6279}
6280_ACEOF
6281rm -f conftest.$ac_objext
b61ff9c8
BS
6282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
bf3b7cd3
JD
6303 ac_hi=-1 ac_mid=-1
6304 while :; do
6305 cat >conftest.$ac_ext <<_ACEOF
6306/* confdefs.h. */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h. */
6311$ac_includes_default
6312int
6313main ()
6314{
b61ff9c8 6315static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
bf3b7cd3
JD
6316test_array [0] = 0
6317
6318 ;
6319 return 0;
6320}
6321_ACEOF
6322rm -f conftest.$ac_objext
b61ff9c8
BS
6323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
6325 ac_status=$?
6326 grep -v '^ *+' conftest.er1 >conftest.err
6327 rm -f conftest.er1
6328 cat conftest.err >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6330 (exit $ac_status); } &&
6331 { ac_try='test -z "$ac_c_werror_flag"
6332 || test ! -s conftest.err'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; } &&
6338 { ac_try='test -s conftest.$ac_objext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 (eval $ac_try) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
bf3b7cd3
JD
6344 ac_lo=$ac_mid; break
6345else
6346 echo "$as_me: failed program was:" >&5
6347sed 's/^/| /' conftest.$ac_ext >&5
6348
b61ff9c8
BS
6349ac_hi=`expr '(' $ac_mid ')' - 1`
6350 if test $ac_mid -le $ac_hi; then
6351 ac_lo= ac_hi=
6352 break
6353 fi
6354 ac_mid=`expr 2 '*' $ac_mid`
bf3b7cd3 6355fi
b61ff9c8 6356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
6357 done
6358else
6359 echo "$as_me: failed program was:" >&5
6360sed 's/^/| /' conftest.$ac_ext >&5
6361
b61ff9c8 6362ac_lo= ac_hi=
bf3b7cd3 6363fi
b61ff9c8 6364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3 6365fi
b61ff9c8 6366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
6367# Binary search between lo and hi bounds.
6368while test "x$ac_lo" != "x$ac_hi"; do
6369 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6370 cat >conftest.$ac_ext <<_ACEOF
6371/* confdefs.h. */
6372_ACEOF
6373cat confdefs.h >>conftest.$ac_ext
6374cat >>conftest.$ac_ext <<_ACEOF
6375/* end confdefs.h. */
6376$ac_includes_default
6377int
6378main ()
6379{
b61ff9c8 6380static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
bf3b7cd3
JD
6381test_array [0] = 0
6382
6383 ;
6384 return 0;
6385}
6386_ACEOF
6387rm -f conftest.$ac_objext
b61ff9c8
BS
6388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
bf3b7cd3
JD
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
bf3b7cd3
JD
6409 ac_hi=$ac_mid
6410else
6411 echo "$as_me: failed program was:" >&5
6412sed 's/^/| /' conftest.$ac_ext >&5
6413
b61ff9c8 6414ac_lo=`expr '(' $ac_mid ')' + 1`
bf3b7cd3 6415fi
b61ff9c8 6416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
6417done
6418case $ac_lo in
6419?*) ac_cv_sizeof_long_long=$ac_lo;;
18c04407
RW
6420'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6421echo "$as_me: error: in \`$ac_pwd':" >&2;}
6422{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
bf3b7cd3 6423See \`config.log' for more details." >&5
b61ff9c8 6424echo "$as_me: error: cannot compute sizeof (long long), 77
bf3b7cd3 6425See \`config.log' for more details." >&2;}
18c04407 6426 { (exit 1); exit 1; }; }; } ;;
bf3b7cd3 6427esac
b61ff9c8
BS
6428else
6429 if test "$cross_compiling" = yes; then
18c04407
RW
6430 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6431echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b61ff9c8
BS
6433See \`config.log' for more details." >&5
6434echo "$as_me: error: cannot run test program while cross compiling
6435See \`config.log' for more details." >&2;}
18c04407 6436 { (exit 1); exit 1; }; }; }
bf3b7cd3
JD
6437else
6438 cat >conftest.$ac_ext <<_ACEOF
6439/* confdefs.h. */
6440_ACEOF
6441cat confdefs.h >>conftest.$ac_ext
6442cat >>conftest.$ac_ext <<_ACEOF
6443/* end confdefs.h. */
6444$ac_includes_default
b61ff9c8
BS
6445long longval () { return (long) (sizeof (long long)); }
6446unsigned long ulongval () { return (long) (sizeof (long long)); }
bf3b7cd3
JD
6447#include <stdio.h>
6448#include <stdlib.h>
6449int
6450main ()
6451{
6452
6453 FILE *f = fopen ("conftest.val", "w");
6454 if (! f)
b61ff9c8
BS
6455 exit (1);
6456 if (((long) (sizeof (long long))) < 0)
bf3b7cd3 6457 {
b61ff9c8
BS
6458 long i = longval ();
6459 if (i != ((long) (sizeof (long long))))
6460 exit (1);
bf3b7cd3
JD
6461 fprintf (f, "%ld\n", i);
6462 }
6463 else
6464 {
b61ff9c8
BS
6465 unsigned long i = ulongval ();
6466 if (i != ((long) (sizeof (long long))))
6467 exit (1);
bf3b7cd3
JD
6468 fprintf (f, "%lu\n", i);
6469 }
b61ff9c8 6470 exit (ferror (f) || fclose (f) != 0);
bf3b7cd3
JD
6471
6472 ;
6473 return 0;
6474}
6475_ACEOF
6476rm -f conftest$ac_exeext
b61ff9c8
BS
6477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478 (eval $ac_link) 2>&5
bf3b7cd3
JD
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b61ff9c8
BS
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
bf3b7cd3
JD
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_cv_sizeof_long_long=`cat conftest.val`
6488else
6489 echo "$as_me: program exited with status $ac_status" >&5
6490echo "$as_me: failed program was:" >&5
6491sed 's/^/| /' conftest.$ac_ext >&5
6492
6493( exit $ac_status )
18c04407
RW
6494{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6495echo "$as_me: error: in \`$ac_pwd':" >&2;}
b61ff9c8 6496{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
bf3b7cd3 6497See \`config.log' for more details." >&5
b61ff9c8 6498echo "$as_me: error: cannot compute sizeof (long long), 77
bf3b7cd3 6499See \`config.log' for more details." >&2;}
18c04407 6500 { (exit 1); exit 1; }; }; }
b61ff9c8
BS
6501fi
6502rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
6503fi
6504fi
6505rm -f conftest.val
b61ff9c8
BS
6506else
6507 ac_cv_sizeof_long_long=0
2f41c1d6 6508fi
b61ff9c8
BS
6509fi
6510echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6511echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
bf3b7cd3
JD
6512cat >>confdefs.h <<_ACEOF
6513#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6514_ACEOF
6515
6516
6517fi
5ec1c5e6 6518
b61ff9c8
BS
6519echo "$as_me:$LINENO: checking for __int64" >&5
6520echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5ec1c5e6
KC
6521if test "${ac_cv_type___int64+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523else
6524 cat >conftest.$ac_ext <<_ACEOF
6525/* confdefs.h. */
6526_ACEOF
6527cat confdefs.h >>conftest.$ac_ext
6528cat >>conftest.$ac_ext <<_ACEOF
6529/* end confdefs.h. */
6530$ac_includes_default
6531int
6532main ()
6533{
b61ff9c8 6534if ((__int64 *) 0)
5ec1c5e6 6535 return 0;
b61ff9c8 6536if (sizeof (__int64))
5ec1c5e6
KC
6537 return 0;
6538 ;
6539 return 0;
6540}
6541_ACEOF
6542rm -f conftest.$ac_objext
b61ff9c8
BS
6543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
5ec1c5e6
KC
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_c_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
5ec1c5e6
KC
6564 ac_cv_type___int64=yes
6565else
6566 echo "$as_me: failed program was:" >&5
6567sed 's/^/| /' conftest.$ac_ext >&5
6568
b61ff9c8 6569ac_cv_type___int64=no
5ec1c5e6 6570fi
b61ff9c8 6571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ec1c5e6 6572fi
b61ff9c8
BS
6573echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6574echo "${ECHO_T}$ac_cv_type___int64" >&6
5ec1c5e6
KC
6575if test $ac_cv_type___int64 = yes; then
6576
6577cat >>confdefs.h <<_ACEOF
6578#define HAVE___INT64 1
6579_ACEOF
6580
b61ff9c8
BS
6581echo "$as_me:$LINENO: checking for __int64" >&5
6582echo $ECHO_N "checking for __int64... $ECHO_C" >&6
bf3b7cd3
JD
6583if test "${ac_cv_type___int64+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
ba479fd2 6586 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
6587/* confdefs.h. */
6588_ACEOF
6589cat confdefs.h >>conftest.$ac_ext
6590cat >>conftest.$ac_ext <<_ACEOF
6591/* end confdefs.h. */
bf3b7cd3 6592$ac_includes_default
ba479fd2
NN
6593int
6594main ()
6595{
b61ff9c8 6596if ((__int64 *) 0)
bf3b7cd3 6597 return 0;
b61ff9c8 6598if (sizeof (__int64))
bf3b7cd3 6599 return 0;
ba479fd2
NN
6600 ;
6601 return 0;
6602}
6603_ACEOF
6604rm -f conftest.$ac_objext
b61ff9c8
BS
6605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606 (eval $ac_compile) 2>conftest.er1
ba479fd2 6607 ac_status=$?
86da66b5
HPN
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
ba479fd2 6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6612 (exit $ac_status); } &&
6613 { ac_try='test -z "$ac_c_werror_flag"
6614 || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
bf3b7cd3 6626 ac_cv_type___int64=yes
75b6f3fd 6627else
ba479fd2
NN
6628 echo "$as_me: failed program was:" >&5
6629sed 's/^/| /' conftest.$ac_ext >&5
6630
b61ff9c8 6631ac_cv_type___int64=no
75b6f3fd 6632fi
b61ff9c8 6633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
75b6f3fd 6634fi
b61ff9c8
BS
6635echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6636echo "${ECHO_T}$ac_cv_type___int64" >&6
75b6f3fd 6637
b61ff9c8
BS
6638echo "$as_me:$LINENO: checking size of __int64" >&5
6639echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
bf3b7cd3 6640if test "${ac_cv_sizeof___int64+set}" = set; then
ba479fd2 6641 echo $ECHO_N "(cached) $ECHO_C" >&6
414d23ae 6642else
b61ff9c8
BS
6643 if test "$ac_cv_type___int64" = yes; then
6644 # The cast to unsigned long works around a bug in the HP C Compiler
6645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6647 # This bug is HP SR number 8606223364.
bf3b7cd3
JD
6648 if test "$cross_compiling" = yes; then
6649 # Depending upon the size, compute the lo and hi bounds.
6650cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
6651/* confdefs.h. */
6652_ACEOF
6653cat confdefs.h >>conftest.$ac_ext
6654cat >>conftest.$ac_ext <<_ACEOF
6655/* end confdefs.h. */
bf3b7cd3 6656$ac_includes_default
ba479fd2
NN
6657int
6658main ()
6659{
b61ff9c8 6660static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
bf3b7cd3
JD
6661test_array [0] = 0
6662
ba479fd2
NN
6663 ;
6664 return 0;
6665}
6666_ACEOF
6667rm -f conftest.$ac_objext
b61ff9c8
BS
6668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>conftest.er1
ba479fd2 6670 ac_status=$?
86da66b5
HPN
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
ba479fd2 6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_c_werror_flag"
6677 || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest.$ac_objext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 (eval $ac_try) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
bf3b7cd3
JD
6689 ac_lo=0 ac_mid=0
6690 while :; do
6691 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
6692/* confdefs.h. */
6693_ACEOF
6694cat confdefs.h >>conftest.$ac_ext
6695cat >>conftest.$ac_ext <<_ACEOF
6696/* end confdefs.h. */
bf3b7cd3 6697$ac_includes_default
ba479fd2
NN
6698int
6699main ()
6700{
b61ff9c8 6701static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
bf3b7cd3
JD
6702test_array [0] = 0
6703
ba479fd2
NN
6704 ;
6705 return 0;
6706}
6707_ACEOF
6708rm -f conftest.$ac_objext
b61ff9c8
BS
6709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710 (eval $ac_compile) 2>conftest.er1
ba479fd2 6711 ac_status=$?
86da66b5
HPN
6712 grep -v '^ *+' conftest.er1 >conftest.err
6713 rm -f conftest.er1
6714 cat conftest.err >&5
ba479fd2 6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6716 (exit $ac_status); } &&
6717 { ac_try='test -z "$ac_c_werror_flag"
6718 || test ! -s conftest.err'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 (eval $ac_try) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; } &&
6724 { ac_try='test -s conftest.$ac_objext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 (eval $ac_try) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
bf3b7cd3 6730 ac_hi=$ac_mid; break
75e93faa 6731else
ba479fd2
NN
6732 echo "$as_me: failed program was:" >&5
6733sed 's/^/| /' conftest.$ac_ext >&5
6734
b61ff9c8
BS
6735ac_lo=`expr $ac_mid + 1`
6736 if test $ac_lo -le $ac_mid; then
6737 ac_lo= ac_hi=
6738 break
6739 fi
6740 ac_mid=`expr 2 '*' $ac_mid + 1`
75e93faa 6741fi
b61ff9c8 6742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3 6743 done
75e93faa 6744else
bf3b7cd3
JD
6745 echo "$as_me: failed program was:" >&5
6746sed 's/^/| /' conftest.$ac_ext >&5
6747
b61ff9c8 6748cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
6749/* confdefs.h. */
6750_ACEOF
6751cat confdefs.h >>conftest.$ac_ext
6752cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h. */
bf3b7cd3 6754$ac_includes_default
ba479fd2
NN
6755int
6756main ()
6757{
b61ff9c8 6758static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
bf3b7cd3
JD
6759test_array [0] = 0
6760
ba479fd2
NN
6761 ;
6762 return 0;
6763}
6764_ACEOF
6765rm -f conftest.$ac_objext
b61ff9c8
BS
6766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767 (eval $ac_compile) 2>conftest.er1
ba479fd2 6768 ac_status=$?
86da66b5
HPN
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
ba479fd2 6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest.$ac_objext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
bf3b7cd3
JD
6787 ac_hi=-1 ac_mid=-1
6788 while :; do
6789 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
6790/* confdefs.h. */
6791_ACEOF
6792cat confdefs.h >>conftest.$ac_ext
6793cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h. */
bf3b7cd3 6795$ac_includes_default
ba479fd2
NN
6796int
6797main ()
6798{
b61ff9c8 6799static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
bf3b7cd3
JD
6800test_array [0] = 0
6801
ba479fd2
NN
6802 ;
6803 return 0;
6804}
6805_ACEOF
6806rm -f conftest.$ac_objext
b61ff9c8
BS
6807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808 (eval $ac_compile) 2>conftest.er1
ba479fd2 6809 ac_status=$?
86da66b5
HPN
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
ba479fd2 6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_c_werror_flag"
6816 || test ! -s conftest.err'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; } &&
6822 { ac_try='test -s conftest.$ac_objext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
bf3b7cd3 6828 ac_lo=$ac_mid; break
04cabffc 6829else
ba479fd2
NN
6830 echo "$as_me: failed program was:" >&5
6831sed 's/^/| /' conftest.$ac_ext >&5
6832
b61ff9c8
BS
6833ac_hi=`expr '(' $ac_mid ')' - 1`
6834 if test $ac_mid -le $ac_hi; then
6835 ac_lo= ac_hi=
6836 break
6837 fi
6838 ac_mid=`expr 2 '*' $ac_mid`
04cabffc 6839fi
b61ff9c8 6840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
6841 done
6842else
6843 echo "$as_me: failed program was:" >&5
6844sed 's/^/| /' conftest.$ac_ext >&5
04cabffc 6845
b61ff9c8 6846ac_lo= ac_hi=
414d23ae 6847fi
b61ff9c8 6848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
414d23ae 6849fi
b61ff9c8 6850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
6851# Binary search between lo and hi bounds.
6852while test "x$ac_lo" != "x$ac_hi"; do
6853 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
ba479fd2 6854 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
6855/* confdefs.h. */
6856_ACEOF
6857cat confdefs.h >>conftest.$ac_ext
6858cat >>conftest.$ac_ext <<_ACEOF
6859/* end confdefs.h. */
bf3b7cd3 6860$ac_includes_default
ba479fd2
NN
6861int
6862main ()
6863{
b61ff9c8 6864static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
bf3b7cd3
JD
6865test_array [0] = 0
6866
ba479fd2
NN
6867 ;
6868 return 0;
6869}
6870_ACEOF
6871rm -f conftest.$ac_objext
b61ff9c8
BS
6872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>conftest.er1
ba479fd2 6874 ac_status=$?
86da66b5
HPN
6875 grep -v '^ *+' conftest.er1 >conftest.err
6876 rm -f conftest.er1
6877 cat conftest.err >&5
ba479fd2 6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
6879 (exit $ac_status); } &&
6880 { ac_try='test -z "$ac_c_werror_flag"
6881 || test ! -s conftest.err'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try='test -s conftest.$ac_objext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
bf3b7cd3 6893 ac_hi=$ac_mid
75e93faa 6894else
ba479fd2
NN
6895 echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
6897
b61ff9c8 6898ac_lo=`expr '(' $ac_mid ')' + 1`
75e93faa 6899fi
b61ff9c8 6900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
414d23ae 6901done
bf3b7cd3
JD
6902case $ac_lo in
6903?*) ac_cv_sizeof___int64=$ac_lo;;
18c04407
RW
6904'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6905echo "$as_me: error: in \`$ac_pwd':" >&2;}
6906{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
bf3b7cd3 6907See \`config.log' for more details." >&5
b61ff9c8 6908echo "$as_me: error: cannot compute sizeof (__int64), 77
bf3b7cd3 6909See \`config.log' for more details." >&2;}
18c04407 6910 { (exit 1); exit 1; }; }; } ;;
bf3b7cd3 6911esac
b61ff9c8
BS
6912else
6913 if test "$cross_compiling" = yes; then
18c04407
RW
6914 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6915echo "$as_me: error: in \`$ac_pwd':" >&2;}
6916{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b61ff9c8
BS
6917See \`config.log' for more details." >&5
6918echo "$as_me: error: cannot run test program while cross compiling
6919See \`config.log' for more details." >&2;}
18c04407 6920 { (exit 1); exit 1; }; }; }
bf3b7cd3
JD
6921else
6922 cat >conftest.$ac_ext <<_ACEOF
6923/* confdefs.h. */
6924_ACEOF
6925cat confdefs.h >>conftest.$ac_ext
6926cat >>conftest.$ac_ext <<_ACEOF
6927/* end confdefs.h. */
6928$ac_includes_default
b61ff9c8
BS
6929long longval () { return (long) (sizeof (__int64)); }
6930unsigned long ulongval () { return (long) (sizeof (__int64)); }
bf3b7cd3
JD
6931#include <stdio.h>
6932#include <stdlib.h>
6933int
6934main ()
6935{
414d23ae 6936
bf3b7cd3
JD
6937 FILE *f = fopen ("conftest.val", "w");
6938 if (! f)
b61ff9c8
BS
6939 exit (1);
6940 if (((long) (sizeof (__int64))) < 0)
bf3b7cd3 6941 {
b61ff9c8
BS
6942 long i = longval ();
6943 if (i != ((long) (sizeof (__int64))))
6944 exit (1);
bf3b7cd3
JD
6945 fprintf (f, "%ld\n", i);
6946 }
6947 else
6948 {
b61ff9c8
BS
6949 unsigned long i = ulongval ();
6950 if (i != ((long) (sizeof (__int64))))
6951 exit (1);
bf3b7cd3
JD
6952 fprintf (f, "%lu\n", i);
6953 }
b61ff9c8 6954 exit (ferror (f) || fclose (f) != 0);
bf3b7cd3
JD
6955
6956 ;
6957 return 0;
6958}
6959_ACEOF
6960rm -f conftest$ac_exeext
b61ff9c8
BS
6961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>&5
bf3b7cd3
JD
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b61ff9c8
BS
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
bf3b7cd3
JD
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_sizeof___int64=`cat conftest.val`
6972else
6973 echo "$as_me: program exited with status $ac_status" >&5
6974echo "$as_me: failed program was:" >&5
6975sed 's/^/| /' conftest.$ac_ext >&5
75e93faa 6976
bf3b7cd3 6977( exit $ac_status )
18c04407
RW
6978{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6979echo "$as_me: error: in \`$ac_pwd':" >&2;}
b61ff9c8 6980{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
bf3b7cd3 6981See \`config.log' for more details." >&5
b61ff9c8 6982echo "$as_me: error: cannot compute sizeof (__int64), 77
bf3b7cd3 6983See \`config.log' for more details." >&2;}
18c04407 6984 { (exit 1); exit 1; }; }; }
b61ff9c8
BS
6985fi
6986rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bf3b7cd3
JD
6987fi
6988fi
6989rm -f conftest.val
b61ff9c8
BS
6990else
6991 ac_cv_sizeof___int64=0
bf3b7cd3 6992fi
b61ff9c8
BS
6993fi
6994echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6995echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
ba479fd2 6996cat >>confdefs.h <<_ACEOF
414d23ae 6997#define SIZEOF___INT64 $ac_cv_sizeof___int64
ba479fd2 6998_ACEOF
414d23ae 6999
cafe096b 7000
414d23ae
HPN
7001fi
7002
5ec1c5e6 7003
34a86c2b
NN
7004# ---------------------
7005# Warnings and checking
7006# ---------------------
7007
b5472e1d
NN
7008# Check $CC warning features (if it's GCC).
7009# We want to use -pedantic, but we don't want warnings about
7010# * 'long long'
7011# * variadic macros
89a42ac8 7012# * overlong strings
b5472e1d
NN
7013# So, we only use -pedantic if we can disable those warnings.
7014
3bbd5a19
PB
7015loose_warn=
7016save_CFLAGS="$CFLAGS"
f6e377f8 7017for option in -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual; do
3bbd5a19
PB
7018 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7019
b61ff9c8
BS
7020 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7021echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7022if eval "test \"\${$as_acx_Woption+set}\" = set"; then
b5472e1d
NN
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7024else
3bbd5a19
PB
7025 CFLAGS="$option"
7026 cat >conftest.$ac_ext <<_ACEOF
b5472e1d
NN
7027/* confdefs.h. */
7028_ACEOF
7029cat confdefs.h >>conftest.$ac_ext
7030cat >>conftest.$ac_ext <<_ACEOF
7031/* end confdefs.h. */
7032
3bbd5a19
PB
7033int
7034main ()
7035{
7036
7037 ;
7038 return 0;
7039}
b5472e1d
NN
7040_ACEOF
7041rm -f conftest.$ac_objext
b61ff9c8
BS
7042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043 (eval $ac_compile) 2>conftest.er1
b5472e1d
NN
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
7049 (exit $ac_status); } &&
7050 { ac_try='test -z "$ac_c_werror_flag"
7051 || test ! -s conftest.err'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; } &&
7057 { ac_try='test -s conftest.$ac_objext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 (eval $ac_try) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
3bbd5a19 7063 eval "$as_acx_Woption=yes"
b5472e1d
NN
7064else
7065 echo "$as_me: failed program was:" >&5
7066sed 's/^/| /' conftest.$ac_ext >&5
7067
b61ff9c8 7068eval "$as_acx_Woption=no"
b5472e1d 7069fi
b61ff9c8 7070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b5472e1d
NN
7071
7072fi
b61ff9c8
BS
7073echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7074echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3bbd5a19
PB
7075 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7076 loose_warn="$loose_warn${loose_warn:+ }$option"
7077fi
7078
7079 done
7080CFLAGS="$save_CFLAGS"
7081
3bbd5a19
PB
7082strict_warn=
7083save_CFLAGS="$CFLAGS"
f6e377f8 7084for option in -Wold-style-definition -Wc++-compat -Wmissing-format-attribute; do
3bbd5a19
PB
7085 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7086
b61ff9c8
BS
7087 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7088echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7089if eval "test \"\${$as_acx_Woption+set}\" = set"; then
89a42ac8
ZW
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
3bbd5a19
PB
7092 CFLAGS="$option"
7093 cat >conftest.$ac_ext <<_ACEOF
89a42ac8
ZW
7094/* confdefs.h. */
7095_ACEOF
7096cat confdefs.h >>conftest.$ac_ext
7097cat >>conftest.$ac_ext <<_ACEOF
7098/* end confdefs.h. */
7099
3bbd5a19
PB
7100int
7101main ()
7102{
7103
7104 ;
7105 return 0;
7106}
89a42ac8
ZW
7107_ACEOF
7108rm -f conftest.$ac_objext
b61ff9c8
BS
7109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7110 (eval $ac_compile) 2>conftest.er1
89a42ac8
ZW
7111 ac_status=$?
7112 grep -v '^ *+' conftest.er1 >conftest.err
7113 rm -f conftest.er1
7114 cat conftest.err >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
7116 (exit $ac_status); } &&
7117 { ac_try='test -z "$ac_c_werror_flag"
7118 || test ! -s conftest.err'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 (eval $ac_try) 2>&5
7121 ac_status=$?
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; } &&
7124 { ac_try='test -s conftest.$ac_objext'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
3bbd5a19 7130 eval "$as_acx_Woption=yes"
89a42ac8
ZW
7131else
7132 echo "$as_me: failed program was:" >&5
7133sed 's/^/| /' conftest.$ac_ext >&5
7134
b61ff9c8 7135eval "$as_acx_Woption=no"
89a42ac8 7136fi
b61ff9c8 7137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89a42ac8
ZW
7138
7139fi
b61ff9c8
BS
7140echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7141echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3bbd5a19
PB
7142 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7143 strict_warn="$strict_warn${strict_warn:+ }$option"
34a86c2b
NN
7144fi
7145
3bbd5a19
PB
7146 done
7147CFLAGS="$save_CFLAGS"
7148
7149if test "$GCC" = yes; then
f6e377f8
AT
7150 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
7151echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... $ECHO_C" >&6
7152if test "${acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_+set}" = set; then
643d3bd2
NN
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155 save_CFLAGS="$CFLAGS"
f6e377f8 7156CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
3bbd5a19 7157cat >conftest.$ac_ext <<_ACEOF
643d3bd2
NN
7158/* confdefs.h. */
7159_ACEOF
7160cat confdefs.h >>conftest.$ac_ext
7161cat >>conftest.$ac_ext <<_ACEOF
7162/* end confdefs.h. */
7163
3bbd5a19
PB
7164int
7165main ()
7166{
7167
7168 ;
7169 return 0;
7170}
643d3bd2
NN
7171_ACEOF
7172rm -f conftest.$ac_objext
b61ff9c8
BS
7173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7174 (eval $ac_compile) 2>conftest.er1
643d3bd2
NN
7175 ac_status=$?
7176 grep -v '^ *+' conftest.er1 >conftest.err
7177 rm -f conftest.er1
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
7180 (exit $ac_status); } &&
7181 { ac_try='test -z "$ac_c_werror_flag"
7182 || test ! -s conftest.err'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 (eval $ac_try) 2>&5
7185 ac_status=$?
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; } &&
7188 { ac_try='test -s conftest.$ac_objext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 (eval $ac_try) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
f6e377f8 7194 acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_=yes
643d3bd2
NN
7195else
7196 echo "$as_me: failed program was:" >&5
7197sed 's/^/| /' conftest.$ac_ext >&5
7198
f6e377f8 7199acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_=no
643d3bd2 7200fi
b61ff9c8 7201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3bbd5a19 7202CFLAGS="$save_CFLAGS"
643d3bd2 7203fi
f6e377f8
AT
7204echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_" >&5
7205echo "${ECHO_T}$acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_" >&6
7206if test $acx_cv_prog_cc_pedantic_m4_do__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings_ = yes; then
7207 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
643d3bd2
NN
7208fi
7209
ac0f3f39 7210
ac0f3f39 7211fi
ac0f3f39 7212
ac0f3f39 7213
b61ff9c8 7214# Check whether --enable-werror-always or --disable-werror-always was given.
09a9c095 7215if test "${enable_werror_always+set}" = set; then
b61ff9c8
BS
7216 enableval="$enable_werror_always"
7217
09a9c095
NN
7218else
7219 enable_werror_always=no
b61ff9c8 7220fi;
3bbd5a19
PB
7221if test $enable_werror_always = yes; then
7222 strict_warn="$strict_warn${strict_warn:+ }-Werror"
373477bb 7223fi
373477bb 7224
373477bb
GDR
7225
7226
7227
3bbd5a19
PB
7228# The above macros do nothing if the compiler is not GCC. However, the
7229# Makefile has more goo to add other flags, so this variabl is used to
7230# enables warnings only for GCC.
414d23ae
HPN
7231warn_cflags=
7232if test "x$GCC" = "xyes"; then
7233 warn_cflags='$(GCC_WARN_CFLAGS)'
7234fi
7235
7236
8b1f719a 7237# Enable expensive internal checks
a1286ef5
ZW
7238is_release=
7239if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7240 is_release=yes
7241fi
a6ccdbab 7242
b61ff9c8 7243# Check whether --enable-checking or --disable-checking was given.
414d23ae 7244if test "${enable_checking+set}" = set; then
b61ff9c8
BS
7245 enableval="$enable_checking"
7246 ac_checking_flags="${enableval}"
e1bbfc5c
NS
7247else
7248
7249# Determine the default checks.
7250if test x$is_release = x ; then
7251 ac_checking_flags=yes
7252else
7253 ac_checking_flags=release
7254fi
b61ff9c8 7255fi;
e1bbfc5c 7256IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
04c3028a 7257for check in release $ac_checking_flags
e1bbfc5c
NS
7258do
7259 case $check in
cdce5c16 7260 # these set all the flags to specific states
0d475361 7261 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
cdce5c16 7262 ac_fold_checking= ; ac_gc_checking=1 ;
726a989a 7263 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
232b67d9 7264 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7e98624c 7265 ac_tree_checking=1 ; ac_valgrind_checking= ;
1b24a790 7266 ac_types_checking=1 ;;
3089f8b5 7267 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
cdce5c16 7268 ac_fold_checking= ; ac_gc_checking= ;
726a989a 7269 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
232b67d9 7270 ac_rtlflag_checking= ; ac_runtime_checking= ;
7e98624c
RG
7271 ac_tree_checking= ; ac_valgrind_checking= ;
7272 ac_types_checking= ;;
3089f8b5 7273 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
cdce5c16 7274 ac_fold_checking=1 ; ac_gc_checking=1 ;
726a989a 7275 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
cdce5c16 7276 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7e98624c
RG
7277 ac_tree_checking=1 ; ac_valgrind_checking= ;
7278 ac_types_checking=1 ;;
3089f8b5 7279 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
cdce5c16 7280 ac_fold_checking= ; ac_gc_checking= ;
726a989a 7281 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
cdce5c16 7282 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7e98624c
RG
7283 ac_tree_checking= ; ac_valgrind_checking= ;
7284 ac_types_checking= ;;
cdce5c16 7285 # these enable particular checks
e1bbfc5c 7286 assert) ac_assert_checking=1 ;;
3089f8b5 7287 df) ac_df_checking=1 ;;
e1bbfc5c
NS
7288 fold) ac_fold_checking=1 ;;
7289 gc) ac_gc_checking=1 ;;
7290 gcac) ac_gc_always_collect=1 ;;
726a989a 7291 gimple) ac_gimple_checking=1 ;;
e1bbfc5c 7292 misc) ac_checking=1 ;;
e1bbfc5c 7293 rtl) ac_rtl_checking=1 ;;
cdce5c16 7294 rtlflag) ac_rtlflag_checking=1 ;;
b53ef395 7295 runtime) ac_runtime_checking=1 ;;
e1bbfc5c 7296 tree) ac_tree_checking=1 ;;
7e98624c 7297 types) ac_types_checking=1 ;;
cdce5c16 7298 valgrind) ac_valgrind_checking=1 ;;
e1bbfc5c 7299 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
ba479fd2
NN
7300echo "$as_me: error: unknown check category $check" >&2;}
7301 { (exit 1); exit 1; }; } ;;
e1bbfc5c
NS
7302 esac
7303done
7304IFS="$ac_save_IFS"
06c37c96 7305
ba479fd2
NN
7306nocommon_flag=""
7307if test x$ac_checking != x ; then
7308
7309cat >>confdefs.h <<\_ACEOF
7310#define ENABLE_CHECKING 1
7311_ACEOF
7312
7313 nocommon_flag=-fno-common
7314fi
3bbd5a19 7315
3089f8b5
PB
7316if test x$ac_df_checking != x ; then
7317
7318cat >>confdefs.h <<\_ACEOF
7319#define ENABLE_DF_CHECKING 1
7320_ACEOF
7321
7322fi
06c37c96
NS
7323if test x$ac_assert_checking != x ; then
7324
7325cat >>confdefs.h <<\_ACEOF
7326#define ENABLE_ASSERT_CHECKING 1
7327_ACEOF
7328
726a989a
RB
7329fi
7330if test x$ac_gimple_checking != x ; then
7331
7332cat >>confdefs.h <<\_ACEOF
7333#define ENABLE_GIMPLE_CHECKING 1
7334_ACEOF
7335
b53ef395 7336fi
232b67d9 7337
b53ef395
NS
7338if test x$ac_runtime_checking != x ; then
7339
7340cat >>confdefs.h <<\_ACEOF
7341#define ENABLE_RUNTIME_CHECKING 1
7342_ACEOF
7343
06c37c96 7344fi
ba479fd2
NN
7345if test x$ac_tree_checking != x ; then
7346
7347cat >>confdefs.h <<\_ACEOF
7348#define ENABLE_TREE_CHECKING 1
7349_ACEOF
7350
13f05fd0 7351 TREEBROWSER=tree-browser.o
ba479fd2 7352fi
7e98624c
RG
7353if test x$ac_types_checking != x ; then
7354
7355cat >>confdefs.h <<\_ACEOF
7356#define ENABLE_TYPES_CHECKING 1
7357_ACEOF
7358
7359fi
13f05fd0 7360
ba479fd2
NN
7361if test x$ac_rtl_checking != x ; then
7362
7363cat >>confdefs.h <<\_ACEOF
7364#define ENABLE_RTL_CHECKING 1
7365_ACEOF
7366
7367fi
7368if test x$ac_rtlflag_checking != x ; then
7369
7370cat >>confdefs.h <<\_ACEOF
7371#define ENABLE_RTL_FLAG_CHECKING 1
7372_ACEOF
7373
7374fi
7375if test x$ac_gc_checking != x ; then
7376
7377cat >>confdefs.h <<\_ACEOF
7378#define ENABLE_GC_CHECKING 1
7379_ACEOF
7380
7381fi
7382if test x$ac_gc_always_collect != x ; then
7383
7384cat >>confdefs.h <<\_ACEOF
7385#define ENABLE_GC_ALWAYS_COLLECT 1
7386_ACEOF
7387
7388fi
7389if test x$ac_fold_checking != x ; then
7390
7391cat >>confdefs.h <<\_ACEOF
7392#define ENABLE_FOLD_CHECKING 1
7393_ACEOF
7394
7395fi
7396valgrind_path_defines=
7397valgrind_command=
7398
ba479fd2 7399if test "${ac_cv_header_valgrind_h+set}" = set; then
b61ff9c8
BS
7400 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7401echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
ba479fd2
NN
7402if test "${ac_cv_header_valgrind_h+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404fi
b61ff9c8
BS
7405echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7406echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
ba479fd2
NN
7407else
7408 # Is the header compilable?
b61ff9c8
BS
7409echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7410echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
ba479fd2 7411cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
7412/* confdefs.h. */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h. */
7417$ac_includes_default
63cf211a 7418#include <valgrind.h>
ba479fd2
NN
7419_ACEOF
7420rm -f conftest.$ac_objext
b61ff9c8
BS
7421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7422 (eval $ac_compile) 2>conftest.er1
ba479fd2 7423 ac_status=$?
86da66b5
HPN
7424 grep -v '^ *+' conftest.er1 >conftest.err
7425 rm -f conftest.er1
7426 cat conftest.err >&5
ba479fd2 7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
7428 (exit $ac_status); } &&
7429 { ac_try='test -z "$ac_c_werror_flag"
7430 || test ! -s conftest.err'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; } &&
7436 { ac_try='test -s conftest.$ac_objext'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 (eval $ac_try) 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; }; then
ba479fd2
NN
7442 ac_header_compiler=yes
7443else
7444 echo "$as_me: failed program was:" >&5
7445sed 's/^/| /' conftest.$ac_ext >&5
7446
b61ff9c8 7447ac_header_compiler=no
ba479fd2 7448fi
b61ff9c8
BS
7449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7451echo "${ECHO_T}$ac_header_compiler" >&6
ba479fd2
NN
7452
7453# Is the header present?
b61ff9c8
BS
7454echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7455echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
ba479fd2 7456cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
7457/* confdefs.h. */
7458_ACEOF
7459cat confdefs.h >>conftest.$ac_ext
7460cat >>conftest.$ac_ext <<_ACEOF
7461/* end confdefs.h. */
7462#include <valgrind.h>
7463_ACEOF
b61ff9c8
BS
7464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ba479fd2
NN
7466 ac_status=$?
7467 grep -v '^ *+' conftest.er1 >conftest.err
7468 rm -f conftest.er1
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
7471 (exit $ac_status); } >/dev/null; then
7472 if test -s conftest.err; then
7473 ac_cpp_err=$ac_c_preproc_warn_flag
7474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7475 else
7476 ac_cpp_err=
7477 fi
7478else
7479 ac_cpp_err=yes
7480fi
7481if test -z "$ac_cpp_err"; then
ba479fd2
NN
7482 ac_header_preproc=yes
7483else
7484 echo "$as_me: failed program was:" >&5
7485sed 's/^/| /' conftest.$ac_ext >&5
7486
7487 ac_header_preproc=no
7488fi
7489rm -f conftest.err conftest.$ac_ext
b61ff9c8
BS
7490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7491echo "${ECHO_T}$ac_header_preproc" >&6
ba479fd2
NN
7492
7493# So? What about this header?
86da66b5
HPN
7494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7495 yes:no: )
ba479fd2
NN
7496 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7497echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
86da66b5
HPN
7498 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7499echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7500 ac_header_preproc=yes
ba479fd2 7501 ;;
86da66b5 7502 no:yes:* )
ba479fd2
NN
7503 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7504echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
86da66b5
HPN
7505 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7506echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7508echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7509 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7510echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
ba479fd2
NN
7511 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7512echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
86da66b5
HPN
7513 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7514echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
b61ff9c8
BS
7515 (
7516 cat <<\_ASBOX
7517## ------------------------------------------ ##
7518## Report this to the AC_PACKAGE_NAME lists. ##
7519## ------------------------------------------ ##
7520_ASBOX
7521 ) |
7522 sed "s/^/$as_me: WARNING: /" >&2
ba479fd2
NN
7523 ;;
7524esac
b61ff9c8
BS
7525echo "$as_me:$LINENO: checking for valgrind.h" >&5
7526echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
ba479fd2
NN
7527if test "${ac_cv_header_valgrind_h+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530 ac_cv_header_valgrind_h=$ac_header_preproc
6938ec6c 7531fi
b61ff9c8
BS
7532echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7533echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
ba479fd2 7534
6e3f3080 7535fi
ba479fd2 7536if test $ac_cv_header_valgrind_h = yes; then
6938ec6c
NN
7537 have_valgrind_h=yes
7538else
ba479fd2 7539 have_valgrind_h=no
6938ec6c
NN
7540fi
7541
7542
ba479fd2 7543
cdce5c16 7544if test x$ac_valgrind_checking != x ; then
414d23ae
HPN
7545 # It is certainly possible that there's valgrind but no valgrind.h.
7546 # GCC relies on making annotations so we must have both.
b61ff9c8
BS
7547 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7548echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
ba479fd2 7549 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
7550/* confdefs.h. */
7551_ACEOF
7552cat confdefs.h >>conftest.$ac_ext
7553cat >>conftest.$ac_ext <<_ACEOF
7554/* end confdefs.h. */
a207b594 7555#include <valgrind/memcheck.h>
14011ca4
AJ
7556#ifndef VALGRIND_DISCARD
7557#error VALGRIND_DISCARD not defined
7558#endif
ba479fd2 7559_ACEOF
b61ff9c8
BS
7560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ba479fd2
NN
7562 ac_status=$?
7563 grep -v '^ *+' conftest.er1 >conftest.err
7564 rm -f conftest.er1
7565 cat conftest.err >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
7567 (exit $ac_status); } >/dev/null; then
7568 if test -s conftest.err; then
7569 ac_cpp_err=$ac_c_preproc_warn_flag
7570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7571 else
7572 ac_cpp_err=
7573 fi
7574else
7575 ac_cpp_err=yes
7576fi
7577if test -z "$ac_cpp_err"; then
a207b594
HPN
7578 gcc_cv_header_valgrind_memcheck_h=yes
7579else
ba479fd2
NN
7580 echo "$as_me: failed program was:" >&5
7581sed 's/^/| /' conftest.$ac_ext >&5
7582
a207b594
HPN
7583 gcc_cv_header_valgrind_memcheck_h=no
7584fi
ba479fd2 7585rm -f conftest.err conftest.$ac_ext
b61ff9c8
BS
7586 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7587echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7588 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7589echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
ba479fd2 7590 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
7591/* confdefs.h. */
7592_ACEOF
7593cat confdefs.h >>conftest.$ac_ext
7594cat >>conftest.$ac_ext <<_ACEOF
7595/* end confdefs.h. */
a207b594
HPN
7596#include <memcheck.h>
7597#ifndef VALGRIND_DISCARD
7598#error VALGRIND_DISCARD not defined
7599#endif
ba479fd2 7600_ACEOF
b61ff9c8
BS
7601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ba479fd2
NN
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
7608 (exit $ac_status); } >/dev/null; then
7609 if test -s conftest.err; then
7610 ac_cpp_err=$ac_c_preproc_warn_flag
7611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7612 else
7613 ac_cpp_err=
7614 fi
7615else
7616 ac_cpp_err=yes
7617fi
7618if test -z "$ac_cpp_err"; then
14011ca4
AJ
7619 gcc_cv_header_memcheck_h=yes
7620else
ba479fd2
NN
7621 echo "$as_me: failed program was:" >&5
7622sed 's/^/| /' conftest.$ac_ext >&5
7623
cafe096b
EC
7624 gcc_cv_header_memcheck_h=no
7625fi
ba479fd2 7626rm -f conftest.err conftest.$ac_ext
b61ff9c8
BS
7627 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7628echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
ba479fd2 7629
56694dd9
ZW
7630# Prepare PATH_SEPARATOR.
7631# The user is always right.
7632if test "${PATH_SEPARATOR+set}" != set; then
7633 echo "#! /bin/sh" >conf$$.sh
7634 echo "exit 0" >>conf$$.sh
7635 chmod +x conf$$.sh
7636 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7637 PATH_SEPARATOR=';'
7638 else
7639 PATH_SEPARATOR=:
7640 fi
7641 rm -f conf$$.sh
7642fi
7643
7644# Find out how to test for executable files. Don't use a zero-byte file,
7645# as systems may use methods other than mode bits to determine executability.
7646cat >conf$$.file <<_ASEOF
7647#! /bin/sh
7648exit 0
7649_ASEOF
7650chmod +x conf$$.file
7651if test -x conf$$.file >/dev/null 2>&1; then
7652 ac_executable_p="test -x"
7653else
7654 ac_executable_p="test -f"
7655fi
7656rm -f conf$$.file
7657
7658# Extract the first word of "valgrind", so it can be a program name with args.
414d23ae 7659set dummy valgrind; ac_word=$2
b61ff9c8
BS
7660echo "$as_me:$LINENO: checking for $ac_word" >&5
7661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
7662if test "${ac_cv_path_valgrind_path+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
414d23ae
HPN
7664else
7665 case "$valgrind_path" in
56694dd9
ZW
7666 [\\/]* | ?:[\\/]*)
7667 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7668 ;;
414d23ae 7669 *)
56694dd9
ZW
7670 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7671 for ac_dir in $PATH; do
7672 IFS="$ac_save_IFS"
7673 test -z "$ac_dir" && ac_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7676 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7677 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7678 break 2
7679 fi
7680 fi
7681 done
7682 done
7683 IFS="$ac_save_IFS"
7684 ;;
414d23ae 7685esac
75e93faa 7686fi
414d23ae
HPN
7687valgrind_path="$ac_cv_path_valgrind_path"
7688if test -n "$valgrind_path"; then
b61ff9c8
BS
7689 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7690echo "${ECHO_T}$valgrind_path" >&6
414d23ae 7691else
b61ff9c8
BS
7692 echo "$as_me:$LINENO: result: no" >&5
7693echo "${ECHO_T}no" >&6
414d23ae
HPN
7694fi
7695
a207b594
HPN
7696 if test "x$valgrind_path" = "x" \
7697 || (test $have_valgrind_h = no \
7698 && test $gcc_cv_header_memcheck_h = no \
7699 && test $gcc_cv_header_valgrind_memcheck_h = no); then
ba479fd2
NN
7700 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7701echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7702 { (exit 1); exit 1; }; }
414d23ae
HPN
7703 fi
7704 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7705 valgrind_command="$valgrind_path -q"
ba479fd2
NN
7706
7707cat >>confdefs.h <<\_ACEOF
414d23ae 7708#define ENABLE_VALGRIND_CHECKING 1
ba479fd2 7709_ACEOF
75e93faa 7710
a207b594 7711 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
ba479fd2
NN
7712
7713cat >>confdefs.h <<\_ACEOF
a207b594 7714#define HAVE_VALGRIND_MEMCHECK_H 1
ba479fd2 7715_ACEOF
a207b594
HPN
7716
7717 fi
14011ca4 7718 if test $gcc_cv_header_memcheck_h = yes; then
ba479fd2
NN
7719
7720cat >>confdefs.h <<\_ACEOF
14011ca4 7721#define HAVE_MEMCHECK_H 1
ba479fd2 7722_ACEOF
14011ca4
AJ
7723
7724 fi
414d23ae 7725fi
75e93faa 7726
75e93faa
ZW
7727
7728
414d23ae 7729# Enable code coverage collection
b61ff9c8 7730# Check whether --enable-coverage or --disable-coverage was given.
414d23ae 7731if test "${enable_coverage+set}" = set; then
b61ff9c8
BS
7732 enableval="$enable_coverage"
7733 case "${enableval}" in
6dd297da
NN
7734 yes|noopt)
7735 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7736 ;;
7737 opt)
7738 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7739 ;;
7740 no)
7741 # a.k.a. --disable-coverage
7742 coverage_flags=""
7743 ;;
7744 *)
7745 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
ba479fd2
NN
7746echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7747 { (exit 1); exit 1; }; }
6dd297da 7748 ;;
414d23ae 7749esac
75e93faa 7750else
414d23ae 7751 coverage_flags=""
b61ff9c8 7752fi;
a3bba767 7753
2f41c1d6 7754
b61ff9c8 7755# Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
1a4b763e 7756if test "${enable_gather_detailed_mem_stats+set}" = set; then
b61ff9c8
BS
7757 enableval="$enable_gather_detailed_mem_stats"
7758
439a7e54
DN
7759else
7760 enable_gather_detailed_mem_stats=no
b61ff9c8 7761fi;
439a7e54 7762if test x$enable_gather_detailed_mem_stats = xyes ; then
ba479fd2
NN
7763
7764cat >>confdefs.h <<\_ACEOF
439a7e54 7765#define GATHER_STATISTICS 1
ba479fd2 7766_ACEOF
439a7e54
DN
7767
7768fi
7769
73458fb7
NN
7770# -------------------------------
7771# Miscenalleous configure options
7772# -------------------------------
34a86c2b
NN
7773
7774# With stabs
ba479fd2 7775
b61ff9c8 7776# Check whether --with-stabs or --without-stabs was given.
34a86c2b 7777if test "${with_stabs+set}" = set; then
b61ff9c8
BS
7778 withval="$with_stabs"
7779 stabs="$with_stabs"
34a86c2b
NN
7780else
7781 stabs=no
b61ff9c8 7782fi;
cafe096b 7783
34a86c2b 7784# Determine whether or not multilibs are enabled.
b61ff9c8 7785# Check whether --enable-multilib or --disable-multilib was given.
34a86c2b 7786if test "${enable_multilib+set}" = set; then
b61ff9c8
BS
7787 enableval="$enable_multilib"
7788
34a86c2b
NN
7789else
7790 enable_multilib=yes
b61ff9c8 7791fi;
75e93faa 7792
34a86c2b 7793
414d23ae 7794# Enable __cxa_atexit for C++.
b61ff9c8 7795# Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
414d23ae 7796if test "${enable___cxa_atexit+set}" = set; then
b61ff9c8 7797 enableval="$enable___cxa_atexit"
75e93faa 7798
b61ff9c8 7799fi;
75e93faa 7800
486aa804 7801# Enable C extension for decimal float if target supports it.
b61ff9c8 7802# Check whether --enable-decimal-float or --disable-decimal-float was given.
486aa804 7803if test "${enable_decimal_float+set}" = set; then
b61ff9c8
BS
7804 enableval="$enable_decimal_float"
7805
79b87c74
MM
7806 case $enable_decimal_float in
7807 yes | no | bid | dpd) ;;
7808 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7809Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7810echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7811Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7812 { (exit 1); exit 1; }; } ;;
7813 esac
7814
7815else
7816
7817 case $target in
7818 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
a4a9df5f 7819 enable_decimal_float=yes
486aa804
BE
7820 ;;
7821 *)
7822 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7823echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7824 enable_decimal_float=no
7825 ;;
79b87c74 7826 esac
486aa804 7827
b61ff9c8 7828fi;
486aa804 7829
79b87c74
MM
7830dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7831
7832cat >>confdefs.h <<_ACEOF
7833#define ENABLE_DECIMAL_FLOAT $dfp
7834_ACEOF
7835
7836
7837# x86's use BID format instead of DPD
7838case x$enable_decimal_float in
7839 xyes)
7840 case $target in
7841 i?86*-*-linux* | x86_64*-*-linux*)
7842 enable_decimal_float=bid
7843 ;;
7844 *)
7845 enable_decimal_float=dpd
7846 ;;
7847 esac
7848 ;;
7849 xno)
7850 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7851 # dependency on libdecnumber.
7852 enable_decimal_float=dpd
7853 ;;
7854esac
486aa804
BE
7855
7856
79b87c74 7857bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
486aa804
BE
7858
7859cat >>confdefs.h <<_ACEOF
79b87c74 7860#define ENABLE_DECIMAL_BID_FORMAT $bid
486aa804
BE
7861_ACEOF
7862
7863
ab22c1fa 7864# Enable C extension for fixed-point arithmetic.
b61ff9c8 7865# Check whether --enable-fixed-point or --disable-fixed-point was given.
ab22c1fa 7866if test "${enable_fixed_point+set}" = set; then
b61ff9c8
BS
7867 enableval="$enable_fixed_point"
7868
ab22c1fa
CF
7869
7870else
7871
7872 case $target in
7873 mips*-*-*)
d5be1dd4 7874 case $host in
a0e527e3
RW
7875 mips*-sgi-irix*)
7876 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7877echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
d5be1dd4
RS
7878 enable_fixed_point=no
7879 ;;
7880 *)
7881 enable_fixed_point=yes
7882 ;;
7883 esac
ab22c1fa
CF
7884 ;;
7885 *)
7886 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7887echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7888 enable_fixed_point=no
7889 ;;
7890 esac
7891
b61ff9c8 7892fi;
ab22c1fa
CF
7893
7894
7895fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7896
7897cat >>confdefs.h <<_ACEOF
7898#define ENABLE_FIXED_POINT $fixedpoint
7899_ACEOF
7900
7901
414d23ae
HPN
7902# Enable threads
7903# Pass with no value to take the default
7904# Pass with a value to specify a thread package
b61ff9c8 7905# Check whether --enable-threads or --disable-threads was given.
414d23ae 7906if test "${enable_threads+set}" = set; then
b61ff9c8
BS
7907 enableval="$enable_threads"
7908
414d23ae
HPN
7909else
7910 enable_threads=''
b61ff9c8 7911fi;
2f41c1d6 7912
b61ff9c8 7913# Check whether --enable-tls or --disable-tls was given.
1a4b763e 7914if test "${enable_tls+set}" = set; then
b61ff9c8
BS
7915 enableval="$enable_tls"
7916
8dea1cca
DD
7917 case $enable_tls in
7918 yes | no) ;;
7919 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7920Valid choices are 'yes' and 'no'." >&5
7921echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7922Valid choices are 'yes' and 'no'." >&2;}
7923 { (exit 1); exit 1; }; } ;;
7924 esac
7925
7926else
7927 enable_tls=''
b61ff9c8 7928fi;
1a4b763e 7929
b61ff9c8 7930# Check whether --enable-objc-gc or --disable-objc-gc was given.
414d23ae 7931if test "${enable_objc_gc+set}" = set; then
b61ff9c8
BS
7932 enableval="$enable_objc_gc"
7933 if test x$enable_objc_gc = xno; then
414d23ae
HPN
7934 objc_boehm_gc=''
7935else
7936 objc_boehm_gc=1
7937fi
7938else
7939 objc_boehm_gc=''
b61ff9c8 7940fi;
75e93faa 7941
a6ccdbab 7942
b61ff9c8 7943# Check whether --with-dwarf2 or --without-dwarf2 was given.
414d23ae 7944if test "${with_dwarf2+set}" = set; then
b61ff9c8
BS
7945 withval="$with_dwarf2"
7946 dwarf2="$with_dwarf2"
75e93faa 7947else
414d23ae 7948 dwarf2=no
b61ff9c8 7949fi;
2f41c1d6 7950
b61ff9c8 7951# Check whether --enable-shared or --disable-shared was given.
1a4b763e 7952if test "${enable_shared+set}" = set; then
b61ff9c8
BS
7953 enableval="$enable_shared"
7954
414d23ae
HPN
7955 case $enable_shared in
7956 yes | no) ;;
7957 *)
7958 enable_shared=no
7959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7960 for pkg in $enableval; do
7961 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7962 enable_shared=yes
7963 fi
7964 done
7965 IFS="$ac_save_ifs"
7966 ;;
7967 esac
7968
75e93faa 7969else
414d23ae 7970 enable_shared=yes
b61ff9c8 7971fi;
703d89ab 7972
ab22c1fa 7973
1a4b763e 7974
b61ff9c8 7975# Check whether --with-build-sysroot or --without-build-sysroot was given.
160633c6 7976if test "${with_build_sysroot+set}" = set; then
b61ff9c8 7977 withval="$with_build_sysroot"
160633c6 7978
b61ff9c8 7979fi;
160633c6
MM
7980
7981
b61ff9c8 7982# Check whether --with-sysroot or --without-sysroot was given.
4977bab6 7983if test "${with_sysroot+set}" = set; then
b61ff9c8
BS
7984 withval="$with_sysroot"
7985
4977bab6 7986 case ${with_sysroot} in
caa55b1e 7987 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4977bab6
ZW
7988 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7989 esac
ba479fd2 7990
4977bab6 7991 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14da6073 7992 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
4977bab6 7993
748670c2
RS
7994 if test "x$prefix" = xNONE; then
7995 test_prefix=/usr/local
7996 else
7997 test_prefix=$prefix
7998 fi
047d636f 7999 if test "x$exec_prefix" = xNONE; then
748670c2 8000 test_exec_prefix=$test_prefix
047d636f 8001 else
748670c2 8002 test_exec_prefix=$exec_prefix
047d636f
DJ
8003 fi
8004 case ${TARGET_SYSTEM_ROOT} in
91710e62 8005 "${test_prefix}"|"${test_prefix}/"*|\
748670c2
RS
8006 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8007 '${prefix}'|'${prefix}/'*|\
91710e62 8008 '${exec_prefix}'|'${exec_prefix}/'*)
047d636f
DJ
8009 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8010 TARGET_SYSTEM_ROOT_DEFINE="$t"
8011 ;;
8012 esac
8013
4977bab6 8014else
ba479fd2 8015
4977bab6 8016 TARGET_SYSTEM_ROOT=
db720d9a 8017 TARGET_SYSTEM_ROOT_DEFINE=
4977bab6
ZW
8018 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8019
b61ff9c8 8020fi;
4977bab6
ZW
8021
8022
8023
8024
d1bd0ded 8025# Build with intermodule optimisations
b61ff9c8 8026# Check whether --enable-intermodule or --disable-intermodule was given.
d1bd0ded 8027if test "${enable_intermodule+set}" = set; then
b61ff9c8
BS
8028 enableval="$enable_intermodule"
8029 case ${enable_intermodule} in
0c46c5c7
KC
8030 yes) onestep="-onestep";;
8031 *) onestep="";;
d1bd0ded 8032esac
0c46c5c7
KC
8033else
8034 onestep=""
b61ff9c8 8035fi;
2f41c1d6
PB
8036
8037
8038
8039
b61ff9c8 8040# Check whether --with-pkgversion or --without-pkgversion was given.
2f41c1d6 8041if test "${with_pkgversion+set}" = set; then
b61ff9c8
BS
8042 withval="$with_pkgversion"
8043 case "$withval" in
2f41c1d6
PB
8044 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8045echo "$as_me: error: package version not specified" >&2;}
8046 { (exit 1); exit 1; }; } ;;
8047 no) PKGVERSION= ;;
8048 *) PKGVERSION="($withval) " ;;
8049 esac
8050else
8051 PKGVERSION="(GCC) "
8052
b61ff9c8 8053fi;
2f41c1d6
PB
8054
8055
8056
1a4b763e 8057
b61ff9c8 8058# Check whether --with-bugurl or --without-bugurl was given.
2f41c1d6 8059if test "${with_bugurl+set}" = set; then
b61ff9c8
BS
8060 withval="$with_bugurl"
8061 case "$withval" in
2f41c1d6
PB
8062 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8063echo "$as_me: error: bug URL not specified" >&2;}
8064 { (exit 1); exit 1; }; } ;;
8065 no) BUGURL=
8066 ;;
8067 *) BUGURL="$withval"
8068 ;;
8069 esac
8070else
8071 BUGURL="http://gcc.gnu.org/bugs.html"
8072
b61ff9c8 8073fi;
2f41c1d6
PB
8074 case ${BUGURL} in
8075 "")
8076 REPORT_BUGS_TO=
8077 REPORT_BUGS_TEXI=
8078 ;;
8079 *)
8080 REPORT_BUGS_TO="<$BUGURL>"
8081 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8082 ;;
8083 esac;
8084
ab22c1fa 8085
d1bd0ded
GK
8086
8087
f3c9f174
NN
8088# Sanity check enable_languages in case someone does not run the toplevel
8089# configure # script.
b61ff9c8 8090# Check whether --enable-languages or --disable-languages was given.
f3c9f174 8091if test "${enable_languages+set}" = set; then
b61ff9c8
BS
8092 enableval="$enable_languages"
8093 case ,${enable_languages}, in
f3c9f174
NN
8094 ,,|,yes,)
8095 # go safe -- we cannot be much sure without the toplevel
8096 # configure's
8097 # analysis of which target libs are present and usable
8098 enable_languages=c
8099 ;;
8100 *,all,*)
8101 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8102echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8103 { (exit 1); exit 1; }; }
8104 ;;
8105 *,c,*)
8106 ;;
8107 *)
8108 enable_languages=c,${enable_languages}
8109 ;;
8110esac
8111else
8112 enable_languages=c
b61ff9c8 8113fi;
f3c9f174 8114
9288b845
CD
8115# Used by documentation targets
8116
8117
8118
f3c9f174 8119
73458fb7
NN
8120# -------------------------
8121# Checks for other programs
8122# -------------------------
5b67ad6f 8123
b61ff9c8
BS
8124echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8125echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8126set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8127if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
ba479fd2 8128 echo $ECHO_N "(cached) $ECHO_C" >&6
e9a25f70 8129else
ba479fd2 8130 cat >conftest.make <<\_ACEOF
e9a25f70 8131all:
b61ff9c8 8132 @echo 'ac_maketemp="$(MAKE)"'
ba479fd2 8133_ACEOF
e9a25f70 8134# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
b61ff9c8
BS
8135eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8136if test -n "$ac_maketemp"; then
8137 eval ac_cv_prog_make_${ac_make}_set=yes
8138else
8139 eval ac_cv_prog_make_${ac_make}_set=no
8140fi
ba479fd2 8141rm -f conftest.make
e9a25f70 8142fi
b61ff9c8
BS
8143if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8144 echo "$as_me:$LINENO: result: yes" >&5
8145echo "${ECHO_T}yes" >&6
e9a25f70
JL
8146 SET_MAKE=
8147else
b61ff9c8
BS
8148 echo "$as_me:$LINENO: result: no" >&5
8149echo "${ECHO_T}no" >&6
e9a25f70
JL
8150 SET_MAKE="MAKE=${MAKE-make}"
8151fi
8152
8153
861bb6c1 8154# Find some useful tools
ba479fd2 8155for ac_prog in gawk mawk nawk awk
861bb6c1 8156do
ba479fd2 8157 # Extract the first word of "$ac_prog", so it can be a program name with args.
861bb6c1 8158set dummy $ac_prog; ac_word=$2
b61ff9c8
BS
8159echo "$as_me:$LINENO: checking for $ac_word" >&5
8160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
8161if test "${ac_cv_prog_AWK+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
861bb6c1
JL
8163else
8164 if test -n "$AWK"; then
8165 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8166else
ba479fd2
NN
8167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 8173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ba479fd2
NN
8174 ac_cv_prog_AWK="$ac_prog"
8175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178done
8179done
8180
861bb6c1
JL
8181fi
8182fi
ba479fd2 8183AWK=$ac_cv_prog_AWK
861bb6c1 8184if test -n "$AWK"; then
b61ff9c8
BS
8185 echo "$as_me:$LINENO: result: $AWK" >&5
8186echo "${ECHO_T}$AWK" >&6
861bb6c1 8187else
b61ff9c8
BS
8188 echo "$as_me:$LINENO: result: no" >&5
8189echo "${ECHO_T}no" >&6
861bb6c1
JL
8190fi
8191
ba479fd2 8192 test -n "$AWK" && break
861bb6c1
JL
8193done
8194
776dc15d 8195# We need awk to create options.c and options.h.
2c4902b9
NN
8196# Bail out if it's missing.
8197case ${AWK} in
ba479fd2
NN
8198 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8199echo "$as_me: error: can't build without awk, bailing out" >&2;}
8200 { (exit 1); exit 1; }; } ;;
2c4902b9
NN
8201esac
8202
b61ff9c8
BS
8203echo "$as_me:$LINENO: checking whether ln -s works" >&5
8204echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
ba479fd2
NN
8205if test "${gcc_cv_prog_LN_S+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
0a4b6309
RL
8207else
8208 rm -f conftestdata_t
8209echo >conftestdata_f
8210if ln -s conftestdata_f conftestdata_t 2>/dev/null
8211then
8212 gcc_cv_prog_LN_S="ln -s"
8213else
8214 if ln conftestdata_f conftestdata_t 2>/dev/null
8215 then
8216 gcc_cv_prog_LN_S=ln
8217 else
35f06ae4
PB
8218 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8219 then
06c3418c 8220 gcc_cv_prog_LN_S="cp -p"
35f06ae4
PB
8221 else
8222 gcc_cv_prog_LN_S=cp
8223 fi
0a4b6309
RL
8224 fi
8225fi
8226rm -f conftestdata_f conftestdata_t
8227
8228fi
8229LN_S="$gcc_cv_prog_LN_S"
8230if test "$gcc_cv_prog_LN_S" = "ln -s"; then
b61ff9c8
BS
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
0a4b6309
RL
8233else
8234 if test "$gcc_cv_prog_LN_S" = "ln"; then
b61ff9c8
BS
8235 echo "$as_me:$LINENO: result: no, using ln" >&5
8236echo "${ECHO_T}no, using ln" >&6
0a4b6309 8237 else
b61ff9c8
BS
8238 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8239echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
0a4b6309
RL
8240 fi
8241fi
8242
b61ff9c8
BS
8243echo "$as_me:$LINENO: checking whether ln works" >&5
8244echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
18fc9bd4
RG
8245if test "${acx_cv_prog_LN+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247else
8248 rm -f conftestdata_t
8249echo >conftestdata_f
8250if ln conftestdata_f conftestdata_t 2>/dev/null
8251then
8252 acx_cv_prog_LN=ln
8253else
8254 acx_cv_prog_LN=no
8255fi
8256rm -f conftestdata_f conftestdata_t
8257
8258fi
8259if test $acx_cv_prog_LN = no; then
8260 LN="$LN_S"
b61ff9c8
BS
8261 echo "$as_me:$LINENO: result: no, using $LN" >&5
8262echo "${ECHO_T}no, using $LN" >&6
18fc9bd4
RG
8263else
8264 LN="$acx_cv_prog_LN"
b61ff9c8
BS
8265 echo "$as_me:$LINENO: result: yes" >&5
8266echo "${ECHO_T}yes" >&6
18fc9bd4
RG
8267fi
8268
ba479fd2
NN
8269if test -n "$ac_tool_prefix"; then
8270 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8271set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b61ff9c8
BS
8272echo "$as_me:$LINENO: checking for $ac_word" >&5
8273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
8274if test "${ac_cv_prog_RANLIB+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
861bb6c1
JL
8276else
8277 if test -n "$RANLIB"; then
8278 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8279else
ba479fd2
NN
8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281for as_dir in $PATH
8282do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 8286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ba479fd2
NN
8287 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291done
8292done
8293
6e3f3080
NN
8294fi
8295fi
ba479fd2 8296RANLIB=$ac_cv_prog_RANLIB
6e3f3080 8297if test -n "$RANLIB"; then
b61ff9c8
BS
8298 echo "$as_me:$LINENO: result: $RANLIB" >&5
8299echo "${ECHO_T}$RANLIB" >&6
ba479fd2 8300else
b61ff9c8
BS
8301 echo "$as_me:$LINENO: result: no" >&5
8302echo "${ECHO_T}no" >&6
ba479fd2
NN
8303fi
8304
8305fi
8306if test -z "$ac_cv_prog_RANLIB"; then
8307 ac_ct_RANLIB=$RANLIB
8308 # Extract the first word of "ranlib", so it can be a program name with args.
8309set dummy ranlib; ac_word=$2
b61ff9c8
BS
8310echo "$as_me:$LINENO: checking for $ac_word" >&5
8311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
8312if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314else
8315 if test -n "$ac_ct_RANLIB"; then
8316 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8317else
8318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319for as_dir in $PATH
8320do
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 8324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ba479fd2
NN
8325 ac_cv_prog_ac_ct_RANLIB="ranlib"
8326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8328 fi
8329done
8330done
8331
b61ff9c8 8332 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ba479fd2
NN
8333fi
8334fi
8335ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8336if test -n "$ac_ct_RANLIB"; then
b61ff9c8
BS
8337 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8338echo "${ECHO_T}$ac_ct_RANLIB" >&6
6e3f3080 8339else
b61ff9c8
BS
8340 echo "$as_me:$LINENO: result: no" >&5
8341echo "${ECHO_T}no" >&6
ba479fd2
NN
8342fi
8343
b61ff9c8 8344 RANLIB=$ac_ct_RANLIB
ba479fd2
NN
8345else
8346 RANLIB="$ac_cv_prog_RANLIB"
861bb6c1
JL
8347fi
8348
343a6100
MM
8349case "${host}" in
8350*-*-darwin*)
8351 # By default, the Darwin ranlib will not treat common symbols as
8352 # definitions when building the archive table of contents. Other
8353 # ranlibs do that; pass an option to the Darwin ranlib that makes
8354 # it behave similarly.
8355 ranlib_flags="-c"
8356 ;;
8357*)
8358 ranlib_flags=""
8359esac
8360
8361
0a4b6309
RL
8362# Find a good install program. We prefer a C program (faster),
8363# so one script is as good as another. But avoid the broken or
8364# incompatible versions:
8365# SysV /etc/install, /usr/sbin/install
8366# SunOS /usr/etc/install
8367# IRIX /sbin/install
8368# AIX /bin/install
8369# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8370# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8371# ./install, which can be erroneously created by make from ./install.sh.
b61ff9c8
BS
8372echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8373echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
0a4b6309 8374if test -z "$INSTALL"; then
ba479fd2
NN
8375if test "${ac_cv_path_install+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
0a4b6309
RL
8377else
8378 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8379 for ac_dir in $PATH; do
8380 # Account for people who put trailing slashes in PATH elements.
8381 case "$ac_dir/" in
8382 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8383 *)
8384 # OSF1 and SCO ODT 3.0 have their own names for install.
8385 for ac_prog in ginstall scoinst install; do
8386 if test -f $ac_dir/$ac_prog; then
8387 if test $ac_prog = install &&
8388 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8389 # AIX install. It has an incompatible calling convention.
8390 # OSF/1 installbsd also uses dspmsg, but is usable.
8391 :
8392 else
8393 ac_cv_path_install="$ac_dir/$ac_prog -c"
8394 break 2
8395 fi
8396 fi
8397 done
8398 ;;
8399 esac
8400 done
8401 IFS="$ac_save_IFS"
8402
8403fi
8404 if test "${ac_cv_path_install+set}" = set; then
8405 INSTALL="$ac_cv_path_install"
8406 else
8407 # As a last resort, use the slow shell script. We don't cache a
8408 # path for INSTALL within a source directory, because that will
8409 # break other packages using the cache if that directory is
8410 # removed, or if the path is relative.
8411 INSTALL="$ac_install_sh"
8412 fi
8413fi
b61ff9c8
BS
8414echo "$as_me:$LINENO: result: $INSTALL" >&5
8415echo "${ECHO_T}$INSTALL" >&6
0a4b6309
RL
8416
8417# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8418# It thinks the first close brace ends the variable substitution.
8419test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8420
8421test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8422
861bb6c1 8423
3a000df0 8424# See if cmp has --ignore-initial.
b61ff9c8
BS
8425echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8426echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
ba479fd2
NN
8427if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
3a000df0
KC
8429else
8430 echo abfoo >t1
8431 echo cdfoo >t2
269a7343 8432 gcc_cv_prog_cmp_skip=slowcompare
3a000df0
KC
8433 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8434 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
269a7343 8435 :
3a000df0
KC
8436 else
8437 gcc_cv_prog_cmp_skip=gnucompare
8438 fi
269a7343
KG
8439 fi
8440 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8441 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8442 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8443 :
8444 else
8445 gcc_cv_prog_cmp_skip=fastcompare
8446 fi
8447 fi
3a000df0
KC
8448 fi
8449 rm t1 t2
8450
8451fi
b61ff9c8
BS
8452echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8453echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
3a000df0
KC
8454make_compare_target=$gcc_cv_prog_cmp_skip
8455
8456
8457
73458fb7
NN
8458# See if we have the mktemp command.
8459# Extract the first word of "mktemp", so it can be a program name with args.
8460set dummy mktemp; ac_word=$2
b61ff9c8
BS
8461echo "$as_me:$LINENO: checking for $ac_word" >&5
8462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
8463if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
73458fb7
NN
8465else
8466 if test -n "$have_mktemp_command"; then
8467 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8468else
ba479fd2
NN
8469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470for as_dir in $PATH
8471do
8472 IFS=$as_save_IFS
8473 test -z "$as_dir" && as_dir=.
8474 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 8475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ba479fd2
NN
8476 ac_cv_prog_have_mktemp_command="yes"
8477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 break 2
8479 fi
8480done
8481done
8482
73458fb7
NN
8483 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8484fi
8485fi
ba479fd2 8486have_mktemp_command=$ac_cv_prog_have_mktemp_command
73458fb7 8487if test -n "$have_mktemp_command"; then
b61ff9c8
BS
8488 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8489echo "${ECHO_T}$have_mktemp_command" >&6
73458fb7 8490else
b61ff9c8
BS
8491 echo "$as_me:$LINENO: result: no" >&5
8492echo "${ECHO_T}no" >&6
73458fb7
NN
8493fi
8494
8495
7c27e184
PB
8496# See if makeinfo has been installed and is modern enough
8497# that we can use it.
9f18db39 8498
3bbd5a19 8499 # Extract the first word of "makeinfo", so it can be a program name with args.
73458fb7 8500set dummy makeinfo; ac_word=$2
b61ff9c8
BS
8501echo "$as_me:$LINENO: checking for $ac_word" >&5
8502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
8503if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
73458fb7
NN
8505else
8506 if test -n "$MAKEINFO"; then
8507 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8508else
ba479fd2
NN
8509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510for as_dir in $PATH
8511do
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 8515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ba479fd2
NN
8516 ac_cv_prog_MAKEINFO="makeinfo"
8517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 break 2
8519 fi
8520done
8521done
8522
73458fb7
NN
8523fi
8524fi
ba479fd2 8525MAKEINFO=$ac_cv_prog_MAKEINFO
73458fb7 8526if test -n "$MAKEINFO"; then
b61ff9c8
BS
8527 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8528echo "${ECHO_T}$MAKEINFO" >&6
73458fb7 8529else
b61ff9c8
BS
8530 echo "$as_me:$LINENO: result: no" >&5
8531echo "${ECHO_T}no" >&6
73458fb7
NN
8532fi
8533
3bbd5a19
PB
8534 if test -n "$MAKEINFO"; then
8535 # Found it, now check the version.
b61ff9c8
BS
8536 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8537echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
ba479fd2
NN
8538if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
73458fb7 8540else
3bbd5a19
PB
8541 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8542 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8543
8544 case $ac_prog_version in
8545 '') gcc_cv_prog_makeinfo_modern=no;;
7326a39e 8546 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3bbd5a19
PB
8547 *) gcc_cv_prog_makeinfo_modern=no;;
8548 esac
73458fb7
NN
8549
8550fi
b61ff9c8
BS
8551echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8552echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3bbd5a19
PB
8553 else
8554 gcc_cv_prog_makeinfo_modern=no
8555 fi
8556 if test $gcc_cv_prog_makeinfo_modern = no; then
8557 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8558 fi
73458fb7 8559
73458fb7 8560if test $gcc_cv_prog_makeinfo_modern = no; then
ba479fd2
NN
8561 { echo "$as_me:$LINENO: WARNING:
8562*** Makeinfo is missing or too old.
8563*** Info documentation will not be built." >&5
8564echo "$as_me: WARNING:
cafe096b 8565*** Makeinfo is missing or too old.
ba479fd2 8566*** Info documentation will not be built." >&2;}
73458fb7
NN
8567 BUILD_INFO=
8568else
ba479fd2 8569 BUILD_INFO=info
73458fb7
NN
8570fi
8571
7c27e184 8572
73458fb7 8573# Is pod2man recent enough to regenerate manpages?
b61ff9c8
BS
8574echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8575echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
73458fb7 8576if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
b61ff9c8
BS
8577 echo "$as_me:$LINENO: result: yes" >&5
8578echo "${ECHO_T}yes" >&6
ba479fd2 8579 GENERATED_MANPAGES=generated-manpages
73458fb7 8580else
b61ff9c8
BS
8581 echo "$as_me:$LINENO: result: no" >&5
8582echo "${ECHO_T}no" >&6
73458fb7
NN
8583 GENERATED_MANPAGES=
8584fi
8585
7c27e184 8586
3bbd5a19
PB
8587MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8588
73458fb7 8589# How about lex?
7c27e184
PB
8590for ac_prog in flex
8591do
8592 # Extract the first word of "$ac_prog", so it can be a program name with args.
8593set dummy $ac_prog; ac_word=$2
b61ff9c8
BS
8594echo "$as_me:$LINENO: checking for $ac_word" >&5
8595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
8596if test "${ac_cv_prog_FLEX+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
73458fb7
NN
8598else
8599 if test -n "$FLEX"; then
8600 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8601else
ba479fd2
NN
8602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603for as_dir in $PATH
8604do
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 8608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7c27e184 8609 ac_cv_prog_FLEX="$ac_prog"
ba479fd2
NN
8610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8612 fi
8613done
8614done
8615
73458fb7
NN
8616fi
8617fi
ba479fd2 8618FLEX=$ac_cv_prog_FLEX
73458fb7 8619if test -n "$FLEX"; then
b61ff9c8
BS
8620 echo "$as_me:$LINENO: result: $FLEX" >&5
8621echo "${ECHO_T}$FLEX" >&6
73458fb7 8622else
b61ff9c8
BS
8623 echo "$as_me:$LINENO: result: no" >&5
8624echo "${ECHO_T}no" >&6
73458fb7
NN
8625fi
8626
7c27e184
PB
8627 test -n "$FLEX" && break
8628done
8629test -n "$FLEX" || FLEX="$MISSING flex"
8630
73458fb7
NN
8631
8632# Bison?
7c27e184
PB
8633for ac_prog in bison
8634do
8635 # Extract the first word of "$ac_prog", so it can be a program name with args.
8636set dummy $ac_prog; ac_word=$2
b61ff9c8
BS
8637echo "$as_me:$LINENO: checking for $ac_word" >&5
8638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ba479fd2
NN
8639if test "${ac_cv_prog_BISON+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
73458fb7
NN
8641else
8642 if test -n "$BISON"; then
8643 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8644else
ba479fd2
NN
8645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646for as_dir in $PATH
8647do
8648 IFS=$as_save_IFS
8649 test -z "$as_dir" && as_dir=.
8650 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 8651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7c27e184 8652 ac_cv_prog_BISON="$ac_prog"
ba479fd2
NN
8653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8654 break 2
8655 fi
8656done
8657done
8658
73458fb7
NN
8659fi
8660fi
ba479fd2 8661BISON=$ac_cv_prog_BISON
73458fb7 8662if test -n "$BISON"; then
b61ff9c8
BS
8663 echo "$as_me:$LINENO: result: $BISON" >&5
8664echo "${ECHO_T}$BISON" >&6
73458fb7 8665else
b61ff9c8
BS
8666 echo "$as_me:$LINENO: result: no" >&5
8667echo "${ECHO_T}no" >&6
73458fb7
NN
8668fi
8669
7c27e184
PB
8670 test -n "$BISON" && break
8671done
8672test -n "$BISON" || BISON="$MISSING bison"
8673
8674
8675# Binutils are not build modules, unlike bison/flex/makeinfo. So we
8676# check for build == host before using them.
73458fb7 8677
f6a874ac 8678# NM
414adbdd
GK
8679if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8680 && test -d ../binutils ; then
f6a874ac
JW
8681 NM='$(objdir)/../binutils/nm-new'
8682else
8683 # Extract the first word of "nm", so it can be a program name with args.
8684set dummy nm; ac_word=$2
b61ff9c8
BS
8685echo "$as_me:$LINENO: checking for $ac_word" >&5
8686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f6a874ac
JW
8687if test "${ac_cv_prog_NM+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689else
8690 if test -n "$NM"; then
8691 ac_cv_prog_NM="$NM" # Let the user override the test.
8692else
8693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694for as_dir in $PATH
8695do
8696 IFS=$as_save_IFS
8697 test -z "$as_dir" && as_dir=.
8698 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 8699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f6a874ac
JW
8700 ac_cv_prog_NM="nm"
8701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 break 2
8703 fi
8704done
8705done
8706
8707 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8708fi
8709fi
8710NM=$ac_cv_prog_NM
8711if test -n "$NM"; then
b61ff9c8
BS
8712 echo "$as_me:$LINENO: result: $NM" >&5
8713echo "${ECHO_T}$NM" >&6
f6a874ac 8714else
b61ff9c8
BS
8715 echo "$as_me:$LINENO: result: no" >&5
8716echo "${ECHO_T}no" >&6
f6a874ac
JW
8717fi
8718
8719fi
8720
8721# AR
414adbdd
GK
8722if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8723 && test -d ../binutils ; then
f6a874ac
JW
8724 AR='$(objdir)/../binutils/ar'
8725else
8726 # Extract the first word of "ar", so it can be a program name with args.
8727set dummy ar; ac_word=$2
b61ff9c8
BS
8728echo "$as_me:$LINENO: checking for $ac_word" >&5
8729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f6a874ac
JW
8730if test "${ac_cv_prog_AR+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8732else
8733 if test -n "$AR"; then
8734 ac_cv_prog_AR="$AR" # Let the user override the test.
8735else
8736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737for as_dir in $PATH
8738do
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 8742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f6a874ac
JW
8743 ac_cv_prog_AR="ar"
8744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 break 2
8746 fi
8747done
8748done
8749
8750 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8751fi
8752fi
8753AR=$ac_cv_prog_AR
8754if test -n "$AR"; then
b61ff9c8
BS
8755 echo "$as_me:$LINENO: result: $AR" >&5
8756echo "${ECHO_T}$AR" >&6
f6a874ac 8757else
b61ff9c8
BS
8758 echo "$as_me:$LINENO: result: no" >&5
8759echo "${ECHO_T}no" >&6
f6a874ac
JW
8760fi
8761
8762fi
8763
8764
73458fb7
NN
8765# --------------------
8766# Checks for C headers
8767# --------------------
8768
ca9bc441
NN
8769# Need to reject headers which give warnings, so that the -Werror bootstrap
8770# works later. *sigh* This needs to come before all header checks.
18fc9bd4 8771
ca9bc441
NN
8772ac_c_preproc_warn_flag=yes
8773
b61ff9c8
BS
8774echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8775echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
ba479fd2
NN
8776if test "${ac_cv_header_stdc+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
956d6950 8778else
ba479fd2 8779 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
8780/* confdefs.h. */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h. */
956d6950
JL
8785#include <stdlib.h>
8786#include <stdarg.h>
8787#include <string.h>
8788#include <float.h>
ba479fd2
NN
8789
8790int
8791main ()
8792{
8793
8794 ;
8795 return 0;
8796}
8797_ACEOF
8798rm -f conftest.$ac_objext
b61ff9c8
BS
8799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8800 (eval $ac_compile) 2>conftest.er1
ba479fd2 8801 ac_status=$?
86da66b5
HPN
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
ba479fd2 8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
8806 (exit $ac_status); } &&
8807 { ac_try='test -z "$ac_c_werror_flag"
8808 || test ! -s conftest.err'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try='test -s conftest.$ac_objext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
956d6950
JL
8820 ac_cv_header_stdc=yes
8821else
ba479fd2
NN
8822 echo "$as_me: failed program was:" >&5
8823sed 's/^/| /' conftest.$ac_ext >&5
8824
b61ff9c8 8825ac_cv_header_stdc=no
956d6950 8826fi
b61ff9c8 8827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
956d6950
JL
8828
8829if test $ac_cv_header_stdc = yes; then
8830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ba479fd2 8831 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
8832/* confdefs.h. */
8833_ACEOF
8834cat confdefs.h >>conftest.$ac_ext
8835cat >>conftest.$ac_ext <<_ACEOF
8836/* end confdefs.h. */
956d6950 8837#include <string.h>
ba479fd2
NN
8838
8839_ACEOF
956d6950 8840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ba479fd2 8841 $EGREP "memchr" >/dev/null 2>&1; then
956d6950
JL
8842 :
8843else
956d6950
JL
8844 ac_cv_header_stdc=no
8845fi
8846rm -f conftest*
8847
8848fi
8849
8850if test $ac_cv_header_stdc = yes; then
8851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
ba479fd2 8852 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
8853/* confdefs.h. */
8854_ACEOF
8855cat confdefs.h >>conftest.$ac_ext
8856cat >>conftest.$ac_ext <<_ACEOF
8857/* end confdefs.h. */
956d6950 8858#include <stdlib.h>
ba479fd2
NN
8859
8860_ACEOF
956d6950 8861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ba479fd2 8862 $EGREP "free" >/dev/null 2>&1; then
956d6950
JL
8863 :
8864else
956d6950
JL
8865 ac_cv_header_stdc=no
8866fi
8867rm -f conftest*
8868
8869fi
8870
8871if test $ac_cv_header_stdc = yes; then
8872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
ba479fd2 8873 if test "$cross_compiling" = yes; then
956d6950
JL
8874 :
8875else
ba479fd2 8876 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
8877/* confdefs.h. */
8878_ACEOF
8879cat confdefs.h >>conftest.$ac_ext
8880cat >>conftest.$ac_ext <<_ACEOF
8881/* end confdefs.h. */
956d6950 8882#include <ctype.h>
ba479fd2
NN
8883#if ((' ' & 0x0FF) == 0x020)
8884# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8885# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8886#else
8887# define ISLOWER(c) \
86da66b5
HPN
8888 (('a' <= (c) && (c) <= 'i') \
8889 || ('j' <= (c) && (c) <= 'r') \
8890 || ('s' <= (c) && (c) <= 'z'))
ba479fd2
NN
8891# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8892#endif
63cf211a 8893
ba479fd2
NN
8894#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8895int
8896main ()
8897{
8898 int i;
8899 for (i = 0; i < 256; i++)
8900 if (XOR (islower (i), ISLOWER (i))
86da66b5 8901 || toupper (i) != TOUPPER (i))
b61ff9c8
BS
8902 exit(2);
8903 exit (0);
ba479fd2
NN
8904}
8905_ACEOF
8906rm -f conftest$ac_exeext
b61ff9c8
BS
8907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908 (eval $ac_link) 2>&5
ba479fd2
NN
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b61ff9c8
BS
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 (eval $ac_try) 2>&5
ba479fd2
NN
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
956d6950
JL
8917 :
8918else
ba479fd2
NN
8919 echo "$as_me: program exited with status $ac_status" >&5
8920echo "$as_me: failed program was:" >&5
8921sed 's/^/| /' conftest.$ac_ext >&5
8922
8923( exit $ac_status )
8924ac_cv_header_stdc=no
956d6950 8925fi
b61ff9c8 8926rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
956d6950 8927fi
956d6950
JL
8928fi
8929fi
b61ff9c8
BS
8930echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8931echo "${ECHO_T}$ac_cv_header_stdc" >&6
63cf211a 8932if test $ac_cv_header_stdc = yes; then
ba479fd2
NN
8933
8934cat >>confdefs.h <<\_ACEOF
956d6950 8935#define STDC_HEADERS 1
ba479fd2 8936_ACEOF
956d6950
JL
8937
8938fi
8939
b61ff9c8
BS
8940echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8941echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
ba479fd2
NN
8942if test "${ac_cv_header_time+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
956d6950 8944else
ba479fd2 8945 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
8946/* confdefs.h. */
8947_ACEOF
8948cat confdefs.h >>conftest.$ac_ext
8949cat >>conftest.$ac_ext <<_ACEOF
8950/* end confdefs.h. */
956d6950
JL
8951#include <sys/types.h>
8952#include <sys/time.h>
8953#include <time.h>
ba479fd2
NN
8954
8955int
8956main ()
8957{
8958if ((struct tm *) 0)
8959return 0;
8960 ;
8961 return 0;
8962}
8963_ACEOF
8964rm -f conftest.$ac_objext
b61ff9c8
BS
8965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966 (eval $ac_compile) 2>conftest.er1
ba479fd2 8967 ac_status=$?
86da66b5
HPN
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
ba479fd2 8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try='test -s conftest.$ac_objext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
956d6950
JL
8986 ac_cv_header_time=yes
8987else
ba479fd2
NN
8988 echo "$as_me: failed program was:" >&5
8989sed 's/^/| /' conftest.$ac_ext >&5
8990
b61ff9c8 8991ac_cv_header_time=no
956d6950 8992fi
b61ff9c8 8993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
956d6950 8994fi
b61ff9c8
BS
8995echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8996echo "${ECHO_T}$ac_cv_header_time" >&6
63cf211a 8997if test $ac_cv_header_time = yes; then
ba479fd2
NN
8998
8999cat >>confdefs.h <<\_ACEOF
956d6950 9000#define TIME_WITH_SYS_TIME 1
ba479fd2 9001_ACEOF
956d6950
JL
9002
9003fi
9004
b61ff9c8
BS
9005echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9006echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
18fc9bd4
RG
9007if test "${gcc_cv_header_string+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009else
9010 cat >conftest.$ac_ext <<_ACEOF
9011/* confdefs.h. */
9012_ACEOF
9013cat confdefs.h >>conftest.$ac_ext
9014cat >>conftest.$ac_ext <<_ACEOF
9015/* end confdefs.h. */
9016#include <string.h>
9017#include <strings.h>
9018int
9019main ()
9020{
9021
9022 ;
9023 return 0;
9024}
9025_ACEOF
9026rm -f conftest.$ac_objext
b61ff9c8
BS
9027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028 (eval $ac_compile) 2>conftest.er1
18fc9bd4
RG
9029 ac_status=$?
9030 grep -v '^ *+' conftest.er1 >conftest.err
9031 rm -f conftest.er1
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
9034 (exit $ac_status); } &&
9035 { ac_try='test -z "$ac_c_werror_flag"
9036 || test ! -s conftest.err'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 (eval $ac_try) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest.$ac_objext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
18fc9bd4
RG
9048 gcc_cv_header_string=yes
9049else
9050 echo "$as_me: failed program was:" >&5
9051sed 's/^/| /' conftest.$ac_ext >&5
9052
b61ff9c8 9053gcc_cv_header_string=no
18fc9bd4 9054fi
b61ff9c8 9055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18fc9bd4 9056fi
b61ff9c8
BS
9057echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9058echo "${ECHO_T}$gcc_cv_header_string" >&6
18fc9bd4
RG
9059if test $gcc_cv_header_string = yes; then
9060
9061cat >>confdefs.h <<\_ACEOF
9062#define STRING_WITH_STRINGS 1
9063_ACEOF
9064
9065fi
9066
b61ff9c8
BS
9067echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9068echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
ba479fd2
NN
9069if test "${ac_cv_header_sys_wait_h+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
e9831ca0 9071else
ba479fd2 9072 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
9073/* confdefs.h. */
9074_ACEOF
9075cat confdefs.h >>conftest.$ac_ext
9076cat >>conftest.$ac_ext <<_ACEOF
9077/* end confdefs.h. */
e9831ca0
KG
9078#include <sys/types.h>
9079#include <sys/wait.h>
9080#ifndef WEXITSTATUS
b61ff9c8 9081# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
e9831ca0
KG
9082#endif
9083#ifndef WIFEXITED
ba479fd2 9084# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
e9831ca0 9085#endif
ba479fd2
NN
9086
9087int
9088main ()
9089{
9090 int s;
9091 wait (&s);
9092 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9093 ;
9094 return 0;
9095}
9096_ACEOF
9097rm -f conftest.$ac_objext
b61ff9c8
BS
9098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>conftest.er1
ba479fd2 9100 ac_status=$?
86da66b5
HPN
9101 grep -v '^ *+' conftest.er1 >conftest.err
9102 rm -f conftest.er1
9103 cat conftest.err >&5
ba479fd2 9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
9105 (exit $ac_status); } &&
9106 { ac_try='test -z "$ac_c_werror_flag"
9107 || test ! -s conftest.err'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 (eval $ac_try) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; } &&
9113 { ac_try='test -s conftest.$ac_objext'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
e9831ca0
KG
9119 ac_cv_header_sys_wait_h=yes
9120else
ba479fd2
NN
9121 echo "$as_me: failed program was:" >&5
9122sed 's/^/| /' conftest.$ac_ext >&5
9123
b61ff9c8 9124ac_cv_header_sys_wait_h=no
e9831ca0 9125fi
b61ff9c8 9126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9831ca0 9127fi
b61ff9c8
BS
9128echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9129echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
63cf211a 9130if test $ac_cv_header_sys_wait_h = yes; then
ba479fd2
NN
9131
9132cat >>confdefs.h <<\_ACEOF
e9831ca0 9133#define HAVE_SYS_WAIT_H 1
ba479fd2 9134_ACEOF
6e3f3080 9135
63cf211a 9136fi
6e3f3080 9137
ba479fd2
NN
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
dfb77e37
KC
9159
9160for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
1072ec3f 9161 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
03c41c05 9162 sys/resource.h sys/param.h sys/times.h sys/stat.h \
56694dd9 9163 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
861bb6c1 9164do
ba479fd2 9165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b61ff9c8
BS
9166echo "$as_me:$LINENO: checking for $ac_header" >&5
9167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9168if eval "test \"\${$as_ac_Header+set}\" = set"; then
ba479fd2 9169 echo $ECHO_N "(cached) $ECHO_C" >&6
ba479fd2 9170else
18fc9bd4 9171 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
9172/* confdefs.h. */
9173_ACEOF
9174cat confdefs.h >>conftest.$ac_ext
9175cat >>conftest.$ac_ext <<_ACEOF
9176/* end confdefs.h. */
9177#include <$ac_header>
9178_ACEOF
b61ff9c8
BS
9179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ba479fd2
NN
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
9186 (exit $ac_status); } >/dev/null; then
9187 if test -s conftest.err; then
9188 ac_cpp_err=$ac_c_preproc_warn_flag
9189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9190 else
9191 ac_cpp_err=
9192 fi
9193else
9194 ac_cpp_err=yes
9195fi
9196if test -z "$ac_cpp_err"; then
18fc9bd4 9197 eval "$as_ac_Header=yes"
ba479fd2
NN
9198else
9199 echo "$as_me: failed program was:" >&5
9200sed 's/^/| /' conftest.$ac_ext >&5
9201
18fc9bd4 9202 eval "$as_ac_Header=no"
ba479fd2
NN
9203fi
9204rm -f conftest.err conftest.$ac_ext
6e3f3080 9205fi
b61ff9c8
BS
9206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ba479fd2
NN
9208if test `eval echo '${'$as_ac_Header'}'` = yes; then
9209 cat >>confdefs.h <<_ACEOF
9210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9211_ACEOF
9212
956d6950
JL
9213fi
9214done
9215
9216
f24af81b 9217# Check for thread headers.
b61ff9c8
BS
9218echo "$as_me:$LINENO: checking for thread.h" >&5
9219echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
ba479fd2
NN
9220if test "${ac_cv_header_thread_h+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
ba479fd2 9222else
18fc9bd4 9223 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
9224/* confdefs.h. */
9225_ACEOF
9226cat confdefs.h >>conftest.$ac_ext
9227cat >>conftest.$ac_ext <<_ACEOF
9228/* end confdefs.h. */
9229#include <thread.h>
9230_ACEOF
b61ff9c8
BS
9231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ba479fd2
NN
9233 ac_status=$?
9234 grep -v '^ *+' conftest.er1 >conftest.err
9235 rm -f conftest.er1
9236 cat conftest.err >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
9238 (exit $ac_status); } >/dev/null; then
9239 if test -s conftest.err; then
9240 ac_cpp_err=$ac_c_preproc_warn_flag
9241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9242 else
9243 ac_cpp_err=
9244 fi
9245else
9246 ac_cpp_err=yes
9247fi
9248if test -z "$ac_cpp_err"; then
18fc9bd4 9249 ac_cv_header_thread_h=yes
ba479fd2
NN
9250else
9251 echo "$as_me: failed program was:" >&5
9252sed 's/^/| /' conftest.$ac_ext >&5
9253
18fc9bd4 9254 ac_cv_header_thread_h=no
ba479fd2
NN
9255fi
9256rm -f conftest.err conftest.$ac_ext
6e3f3080 9257fi
b61ff9c8
BS
9258echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9259echo "${ECHO_T}$ac_cv_header_thread_h" >&6
ba479fd2 9260if test $ac_cv_header_thread_h = yes; then
f24af81b
TT
9261 have_thread_h=yes
9262else
ba479fd2 9263 have_thread_h=
f24af81b
TT
9264fi
9265
b61ff9c8
BS
9266echo "$as_me:$LINENO: checking for pthread.h" >&5
9267echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
ba479fd2
NN
9268if test "${ac_cv_header_pthread_h+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
0f57bf40 9270else
18fc9bd4 9271 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
9272/* confdefs.h. */
9273_ACEOF
9274cat confdefs.h >>conftest.$ac_ext
9275cat >>conftest.$ac_ext <<_ACEOF
9276/* end confdefs.h. */
9277#include <pthread.h>
9278_ACEOF
b61ff9c8
BS
9279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ba479fd2
NN
9281 ac_status=$?
9282 grep -v '^ *+' conftest.er1 >conftest.err
9283 rm -f conftest.er1
9284 cat conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
9286 (exit $ac_status); } >/dev/null; then
9287 if test -s conftest.err; then
9288 ac_cpp_err=$ac_c_preproc_warn_flag
9289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9290 else
9291 ac_cpp_err=
9292 fi
9293else
9294 ac_cpp_err=yes
9295fi
9296if test -z "$ac_cpp_err"; then
18fc9bd4 9297 ac_cv_header_pthread_h=yes
ba479fd2 9298else
18fc9bd4
RG
9299 echo "$as_me: failed program was:" >&5
9300sed 's/^/| /' conftest.$ac_ext >&5
9301
9302 ac_cv_header_pthread_h=no
9303fi
9304rm -f conftest.err conftest.$ac_ext
6e3f3080 9305fi
b61ff9c8
BS
9306echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9307echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
ba479fd2 9308if test $ac_cv_header_pthread_h = yes; then
f24af81b
TT
9309 have_pthread_h=yes
9310else
ba479fd2 9311 have_pthread_h=
f24af81b
TT
9312fi
9313
9314
84c041a1 9315# These tests can't be done till we know if we have limits.h.
b61ff9c8
BS
9316echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9317echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
ba479fd2
NN
9318if test "${gcc_cv_decl_char_bit+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320else
9321 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
9322/* confdefs.h. */
9323_ACEOF
9324cat confdefs.h >>conftest.$ac_ext
9325cat >>conftest.$ac_ext <<_ACEOF
9326/* end confdefs.h. */
75e93faa
ZW
9327#ifdef HAVE_LIMITS_H
9328#include <limits.h>
9329#endif
9330#ifdef CHAR_BIT
9331found
9332#endif
ba479fd2 9333_ACEOF
75e93faa 9334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ba479fd2 9335 $EGREP "found" >/dev/null 2>&1; then
75e93faa
ZW
9336 gcc_cv_decl_char_bit=yes
9337else
75e93faa
ZW
9338 gcc_cv_decl_char_bit=no
9339fi
9340rm -f conftest*
9341
9342
9343fi
b61ff9c8
BS
9344echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9345echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
75e93faa 9346if test $gcc_cv_decl_char_bit = no; then
b61ff9c8
BS
9347 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9348echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
ba479fd2
NN
9349if test "${gcc_cv_c_nbby+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
75e93faa
ZW
9351else
9352 i=8
9353 gcc_cv_c_nbby=
9354 while test $i -lt 65; do
ba479fd2 9355 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
9356/* confdefs.h. */
9357_ACEOF
9358cat confdefs.h >>conftest.$ac_ext
9359cat >>conftest.$ac_ext <<_ACEOF
9360/* end confdefs.h. */
9361
9362int
9363main ()
9364{
4e70264f
ZW
9365switch(0) {
9366 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9367 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9368 ; }
ba479fd2
NN
9369 ;
9370 return 0;
9371}
9372_ACEOF
9373rm -f conftest.$ac_objext
b61ff9c8
BS
9374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375 (eval $ac_compile) 2>conftest.er1
ba479fd2 9376 ac_status=$?
86da66b5
HPN
9377 grep -v '^ *+' conftest.er1 >conftest.err
9378 rm -f conftest.er1
9379 cat conftest.err >&5
ba479fd2 9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
9381 (exit $ac_status); } &&
9382 { ac_try='test -z "$ac_c_werror_flag"
9383 || test ! -s conftest.err'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 (eval $ac_try) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; } &&
9389 { ac_try='test -s conftest.$ac_objext'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 (eval $ac_try) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
4e70264f 9395 gcc_cv_c_nbby=$i; break
75e93faa 9396else
ba479fd2
NN
9397 echo "$as_me: failed program was:" >&5
9398sed 's/^/| /' conftest.$ac_ext >&5
9399
75e93faa 9400fi
b61ff9c8 9401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
75e93faa
ZW
9402 i=`expr $i + 1`
9403 done
9404 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9405
9406fi
b61ff9c8
BS
9407echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9408echo "${ECHO_T}$gcc_cv_c_nbby" >&6
75e93faa 9409if test $gcc_cv_c_nbby = failed; then
ba479fd2
NN
9410 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9411echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9412 { (exit 1); exit 1; }; }
75e93faa 9413else
ba479fd2
NN
9414
9415cat >>confdefs.h <<_ACEOF
75e93faa 9416#define CHAR_BIT $gcc_cv_c_nbby
ba479fd2 9417_ACEOF
75e93faa
ZW
9418
9419fi
9420fi
b61ff9c8
BS
9421echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9422echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
ba479fd2
NN
9423if test "${ac_cv_c_bigendian+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
84c041a1 9425else
9791c75c 9426 # See if sys/param.h defines the BYTE_ORDER macro.
ba479fd2 9427cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
9428/* confdefs.h. */
9429_ACEOF
9430cat confdefs.h >>conftest.$ac_ext
9431cat >>conftest.$ac_ext <<_ACEOF
9432/* end confdefs.h. */
4977bab6
ZW
9433#include <sys/types.h>
9434#include <sys/param.h>
9791c75c 9435
ba479fd2
NN
9436int
9437main ()
9438{
b61ff9c8 9439#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4977bab6 9440 bogus endian macros
84c041a1 9441#endif
9791c75c 9442
ba479fd2
NN
9443 ;
9444 return 0;
9445}
9446_ACEOF
9447rm -f conftest.$ac_objext
b61ff9c8
BS
9448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9449 (eval $ac_compile) 2>conftest.er1
ba479fd2 9450 ac_status=$?
86da66b5
HPN
9451 grep -v '^ *+' conftest.er1 >conftest.err
9452 rm -f conftest.er1
9453 cat conftest.err >&5
ba479fd2 9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
9455 (exit $ac_status); } &&
9456 { ac_try='test -z "$ac_c_werror_flag"
9457 || test ! -s conftest.err'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 (eval $ac_try) 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; } &&
9463 { ac_try='test -s conftest.$ac_objext'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 (eval $ac_try) 2>&5
9466 ac_status=$?
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
2f41c1d6 9469 # It does; now see whether it defined to BIG_ENDIAN or not.
ba479fd2 9470cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
9471/* confdefs.h. */
9472_ACEOF
9473cat confdefs.h >>conftest.$ac_ext
9474cat >>conftest.$ac_ext <<_ACEOF
9475/* end confdefs.h. */
4977bab6
ZW
9476#include <sys/types.h>
9477#include <sys/param.h>
9791c75c 9478
ba479fd2
NN
9479int
9480main ()
9481{
4977bab6
ZW
9482#if BYTE_ORDER != BIG_ENDIAN
9483 not big endian
84c041a1 9484#endif
9791c75c 9485
ba479fd2
NN
9486 ;
9487 return 0;
9488}
9489_ACEOF
9490rm -f conftest.$ac_objext
b61ff9c8
BS
9491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9492 (eval $ac_compile) 2>conftest.er1
ba479fd2 9493 ac_status=$?
86da66b5
HPN
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
ba479fd2 9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
9498 (exit $ac_status); } &&
9499 { ac_try='test -z "$ac_c_werror_flag"
9500 || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try='test -s conftest.$ac_objext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_c_bigendian=yes
9513else
9514 echo "$as_me: failed program was:" >&5
ba479fd2
NN
9515sed 's/^/| /' conftest.$ac_ext >&5
9516
b61ff9c8 9517ac_cv_c_bigendian=no
4977bab6 9518fi
b61ff9c8 9519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4977bab6 9520else
ba479fd2
NN
9521 echo "$as_me: failed program was:" >&5
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
b61ff9c8 9524# It does not; compile a test program.
9791c75c
KC
9525if test "$cross_compiling" = yes; then
9526 # try to guess the endianness by grepping values into an object file
9527 ac_cv_c_bigendian=unknown
9528 cat >conftest.$ac_ext <<_ACEOF
9529/* confdefs.h. */
9530_ACEOF
9531cat confdefs.h >>conftest.$ac_ext
9532cat >>conftest.$ac_ext <<_ACEOF
9533/* end confdefs.h. */
b61ff9c8
BS
9534short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9535short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9791c75c 9536void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
b61ff9c8
BS
9537short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9538short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9791c75c
KC
9539void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9540int
9541main ()
9542{
9543 _ascii (); _ebcdic ();
9544 ;
9545 return 0;
9546}
9547_ACEOF
9548rm -f conftest.$ac_objext
b61ff9c8
BS
9549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9550 (eval $ac_compile) 2>conftest.er1
9791c75c
KC
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
9556 (exit $ac_status); } &&
9557 { ac_try='test -z "$ac_c_werror_flag"
9558 || test ! -s conftest.err'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; } &&
9564 { ac_try='test -s conftest.$ac_objext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
8b1f719a
PB
9570 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9571 ac_cv_c_bigendian=yes
9572fi
9791c75c
KC
9573if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9574 if test "$ac_cv_c_bigendian" = unknown; then
9575 ac_cv_c_bigendian=no
9576 else
9577 # finding both strings is unlikely to happen, but who knows?
9578 ac_cv_c_bigendian=unknown
9579 fi
9580fi
9581else
9582 echo "$as_me: failed program was:" >&5
9583sed 's/^/| /' conftest.$ac_ext >&5
9584
4977bab6 9585fi
b61ff9c8 9586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba479fd2
NN
9587else
9588 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
9589/* confdefs.h. */
9590_ACEOF
9591cat confdefs.h >>conftest.$ac_ext
9592cat >>conftest.$ac_ext <<_ACEOF
9593/* end confdefs.h. */
9791c75c
KC
9594int
9595main ()
9596{
4977bab6
ZW
9597 /* Are we little or big endian? From Harbison&Steele. */
9598 union
9599 {
b61ff9c8
BS
9600 long l;
9601 char c[sizeof (long)];
4977bab6
ZW
9602 } u;
9603 u.l = 1;
b61ff9c8 9604 exit (u.c[sizeof (long) - 1] == 1);
4977bab6 9605}
ba479fd2
NN
9606_ACEOF
9607rm -f conftest$ac_exeext
b61ff9c8
BS
9608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609 (eval $ac_link) 2>&5
ba479fd2
NN
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b61ff9c8
BS
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 (eval $ac_try) 2>&5
ba479fd2
NN
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
4977bab6
ZW
9618 ac_cv_c_bigendian=no
9619else
ba479fd2
NN
9620 echo "$as_me: program exited with status $ac_status" >&5
9621echo "$as_me: failed program was:" >&5
9622sed 's/^/| /' conftest.$ac_ext >&5
9623
9624( exit $ac_status )
9625ac_cv_c_bigendian=yes
4977bab6 9626fi
b61ff9c8 9627rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
84c041a1 9628fi
4977bab6 9629fi
b61ff9c8 9630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4977bab6 9631fi
b61ff9c8
BS
9632echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9633echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9791c75c
KC
9634case $ac_cv_c_bigendian in
9635 yes)
ba479fd2
NN
9636
9637cat >>confdefs.h <<\_ACEOF
4977bab6 9638#define WORDS_BIGENDIAN 1
ba479fd2 9639_ACEOF
9791c75c
KC
9640 ;;
9641 no)
9642 ;;
9643 *)
9644 { { echo "$as_me:$LINENO: error: unknown endianness
9645presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9646echo "$as_me: error: unknown endianness
9647presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9648 { (exit 1); exit 1; }; } ;;
9649esac
84c041a1 9650
75e93faa 9651
73458fb7
NN
9652# --------
9653# UNSORTED
9654# --------
1e608388 9655
1e608388 9656
4e70264f
ZW
9657# These libraries may be used by collect2.
9658# We may need a special search path to get them linked.
b61ff9c8
BS
9659echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9660echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
ba479fd2
NN
9661if test "${gcc_cv_collect2_libs+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
4e70264f
ZW
9663else
9664 save_LIBS="$LIBS"
7f2749d4 9665for libs in '' -lld -lmld \
4e70264f
ZW
9666 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9667 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9668do
9669 LIBS="$libs"
ba479fd2 9670 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
9671/* confdefs.h. */
9672_ACEOF
9673cat confdefs.h >>conftest.$ac_ext
9674cat >>conftest.$ac_ext <<_ACEOF
9675/* end confdefs.h. */
9676
b61ff9c8 9677/* Override any gcc2 internal prototype to avoid an error. */
ba479fd2
NN
9678#ifdef __cplusplus
9679extern "C"
9680#endif
b61ff9c8
BS
9681/* We use char because int might match the return type of a gcc2
9682 builtin and then its argument prototype would still apply. */
ba479fd2
NN
9683char ldopen ();
9684int
9685main ()
9686{
b61ff9c8 9687ldopen ();
ba479fd2
NN
9688 ;
9689 return 0;
9690}
9691_ACEOF
9692rm -f conftest.$ac_objext conftest$ac_exeext
b61ff9c8
BS
9693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694 (eval $ac_link) 2>conftest.er1
ba479fd2 9695 ac_status=$?
86da66b5
HPN
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
ba479fd2 9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
4e70264f
ZW
9714 gcc_cv_collect2_libs="$libs"; break
9715else
ba479fd2
NN
9716 echo "$as_me: failed program was:" >&5
9717sed 's/^/| /' conftest.$ac_ext >&5
9718
4e70264f 9719fi
b61ff9c8 9720rm -f conftest.err conftest.$ac_objext \
86da66b5 9721 conftest$ac_exeext conftest.$ac_ext
4e70264f
ZW
9722done
9723LIBS="$save_LIBS"
9724test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9725fi
b61ff9c8
BS
9726echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9727echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
4e70264f
ZW
9728case $gcc_cv_collect2_libs in
9729 "none required") ;;
9730 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9731esac
9732
9733
7f2749d4
RK
9734# When building Ada code on Alpha, we need exc_resume which is usually in
9735# -lexc. So test for it.
9736save_LIBS="$LIBS"
9737LIBS=
b61ff9c8
BS
9738echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9739echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
ba479fd2
NN
9740if test "${ac_cv_search_exc_resume+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742else
9743 ac_func_search_save_LIBS=$LIBS
b61ff9c8 9744ac_cv_search_exc_resume=no
ba479fd2 9745cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
9746/* confdefs.h. */
9747_ACEOF
9748cat confdefs.h >>conftest.$ac_ext
9749cat >>conftest.$ac_ext <<_ACEOF
9750/* end confdefs.h. */
7f2749d4 9751
b61ff9c8 9752/* Override any gcc2 internal prototype to avoid an error. */
ba479fd2
NN
9753#ifdef __cplusplus
9754extern "C"
9755#endif
b61ff9c8
BS
9756/* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
ba479fd2
NN
9758char exc_resume ();
9759int
9760main ()
9761{
b61ff9c8 9762exc_resume ();
ba479fd2
NN
9763 ;
9764 return 0;
9765}
9766_ACEOF
b61ff9c8
BS
9767rm -f conftest.$ac_objext conftest$ac_exeext
9768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769 (eval $ac_link) 2>conftest.er1
ba479fd2 9770 ac_status=$?
86da66b5
HPN
9771 grep -v '^ *+' conftest.er1 >conftest.err
9772 rm -f conftest.er1
9773 cat conftest.err >&5
ba479fd2 9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
9775 (exit $ac_status); } &&
9776 { ac_try='test -z "$ac_c_werror_flag"
9777 || test ! -s conftest.err'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; } &&
9783 { ac_try='test -s conftest$ac_exeext'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9789 ac_cv_search_exc_resume="none required"
7f2749d4 9790else
ba479fd2
NN
9791 echo "$as_me: failed program was:" >&5
9792sed 's/^/| /' conftest.$ac_ext >&5
9793
ab22c1fa 9794fi
b61ff9c8
BS
9795rm -f conftest.err conftest.$ac_objext \
9796 conftest$ac_exeext conftest.$ac_ext
9797if test "$ac_cv_search_exc_resume" = no; then
9798 for ac_lib in exc; do
9799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9800 cat >conftest.$ac_ext <<_ACEOF
9801/* confdefs.h. */
9802_ACEOF
9803cat confdefs.h >>conftest.$ac_ext
9804cat >>conftest.$ac_ext <<_ACEOF
9805/* end confdefs.h. */
2f41c1d6 9806
b61ff9c8
BS
9807/* Override any gcc2 internal prototype to avoid an error. */
9808#ifdef __cplusplus
9809extern "C"
9810#endif
9811/* We use char because int might match the return type of a gcc2
9812 builtin and then its argument prototype would still apply. */
9813char exc_resume ();
9814int
9815main ()
9816{
9817exc_resume ();
9818 ;
9819 return 0;
9820}
9821_ACEOF
9822rm -f conftest.$ac_objext conftest$ac_exeext
9823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824 (eval $ac_link) 2>conftest.er1
9825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag"
9832 || test ! -s conftest.err'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 (eval $ac_try) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; } &&
9838 { ac_try='test -s conftest$ac_exeext'
9839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 (eval $ac_try) 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; }; then
9844 ac_cv_search_exc_resume="-l$ac_lib"
9845break
1a4b763e 9846else
b61ff9c8
BS
9847 echo "$as_me: failed program was:" >&5
9848sed 's/^/| /' conftest.$ac_ext >&5
9849
9850fi
9851rm -f conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9853 done
b8ec3cc8 9854fi
b8ec3cc8
EC
9855LIBS=$ac_func_search_save_LIBS
9856fi
b61ff9c8
BS
9857echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9858echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9859if test "$ac_cv_search_exc_resume" != no; then
9860 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
b8ec3cc8
EC
9861
9862fi
9863
dd7f7a6e 9864GNAT_LIBEXC="$LIBS"
b8ec3cc8
EC
9865LIBS="$save_LIBS"
9866
9867
dd7f7a6e
EC
9868# Some systems put ldexp and frexp in libm instead of libc; assume
9869# they're both in the same place. jcf-dump needs them.
9870save_LIBS="$LIBS"
9871LIBS=
b61ff9c8
BS
9872echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9873echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
dd7f7a6e 9874if test "${ac_cv_search_ldexp+set}" = set; then
b8ec3cc8
EC
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9876else
dd7f7a6e 9877 ac_func_search_save_LIBS=$LIBS
b61ff9c8 9878ac_cv_search_ldexp=no
dd7f7a6e 9879cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
9880/* confdefs.h. */
9881_ACEOF
9882cat confdefs.h >>conftest.$ac_ext
9883cat >>conftest.$ac_ext <<_ACEOF
9884/* end confdefs.h. */
dd7f7a6e 9885
b61ff9c8 9886/* Override any gcc2 internal prototype to avoid an error. */
dd7f7a6e
EC
9887#ifdef __cplusplus
9888extern "C"
9889#endif
b61ff9c8
BS
9890/* We use char because int might match the return type of a gcc2
9891 builtin and then its argument prototype would still apply. */
dd7f7a6e 9892char ldexp ();
ba479fd2
NN
9893int
9894main ()
9895{
b61ff9c8 9896ldexp ();
ba479fd2
NN
9897 ;
9898 return 0;
9899}
9900_ACEOF
b61ff9c8
BS
9901rm -f conftest.$ac_objext conftest$ac_exeext
9902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903 (eval $ac_link) 2>conftest.er1
dd7f7a6e
EC
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
9909 (exit $ac_status); } &&
9910 { ac_try='test -z "$ac_c_werror_flag"
9911 || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_search_ldexp="none required"
dd7f7a6e
EC
9924else
9925 echo "$as_me: failed program was:" >&5
9926sed 's/^/| /' conftest.$ac_ext >&5
9927
1a4b763e 9928fi
b61ff9c8
BS
9929rm -f conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931if test "$ac_cv_search_ldexp" = no; then
9932 for ac_lib in m; do
9933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9934 cat >conftest.$ac_ext <<_ACEOF
9935/* confdefs.h. */
9936_ACEOF
9937cat confdefs.h >>conftest.$ac_ext
9938cat >>conftest.$ac_ext <<_ACEOF
9939/* end confdefs.h. */
2f41c1d6 9940
b61ff9c8
BS
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 ldexp ();
9948int
9949main ()
9950{
9951ldexp ();
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_search_ldexp="-l$ac_lib"
9979break
1a4b763e 9980else
b61ff9c8
BS
9981 echo "$as_me: failed program was:" >&5
9982sed 's/^/| /' conftest.$ac_ext >&5
9983
9984fi
9985rm -f conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987 done
dd7f7a6e
EC
9988fi
9989LIBS=$ac_func_search_save_LIBS
9990fi
b61ff9c8
BS
9991echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9992echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9993if test "$ac_cv_search_ldexp" != no; then
9994 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
dd7f7a6e
EC
9995
9996fi
9997
9998LDEXP_LIB="$LIBS"
9999LIBS="$save_LIBS"
10000
10001
10002# Use <inttypes.h> only if it exists,
10003# doesn't clash with <sys/types.h>, and declares intmax_t.
b61ff9c8
BS
10004echo "$as_me:$LINENO: checking for inttypes.h" >&5
10005echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
dd7f7a6e
EC
10006if test "${gcc_cv_header_inttypes_h+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008else
10009 cat >conftest.$ac_ext <<_ACEOF
10010/* confdefs.h. */
10011_ACEOF
10012cat confdefs.h >>conftest.$ac_ext
10013cat >>conftest.$ac_ext <<_ACEOF
10014/* end confdefs.h. */
10015#include <sys/types.h>
10016#include <inttypes.h>
10017int
10018main ()
10019{
10020intmax_t i = -1;
10021 ;
10022 return 0;
10023}
10024_ACEOF
10025rm -f conftest.$ac_objext
b61ff9c8
BS
10026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027 (eval $ac_compile) 2>conftest.er1
dd7f7a6e
EC
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
10033 (exit $ac_status); } &&
10034 { ac_try='test -z "$ac_c_werror_flag"
10035 || test ! -s conftest.err'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; } &&
10041 { ac_try='test -s conftest.$ac_objext'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
dd7f7a6e
EC
10047 gcc_cv_header_inttypes_h=yes
10048else
10049 echo "$as_me: failed program was:" >&5
10050sed 's/^/| /' conftest.$ac_ext >&5
10051
b61ff9c8 10052gcc_cv_header_inttypes_h=no
dd7f7a6e 10053fi
b61ff9c8 10054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dd7f7a6e
EC
10055fi
10056
b61ff9c8
BS
10057echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10058echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
dd7f7a6e
EC
10059if test $gcc_cv_header_inttypes_h = yes; then
10060
10061cat >>confdefs.h <<\_ACEOF
10062#define HAVE_INTTYPES_H 1
10063_ACEOF
10064
0056a9b5 10065fi
956d6950 10066
c149cc37 10067
ba479fd2
NN
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
0d667716
KG
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
ba479fd2
NN
10096
10097
10098
ba479fd2
NN
10099
10100
10101
52a6edcc 10102for ac_func in times clock kill getrlimit setrlimit atoll atoq \
d2e506f2 10103 sysconf strsignal getrusage nl_langinfo \
0d667716
KG
10104 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10105 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
956d6950 10106do
ba479fd2 10107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b61ff9c8
BS
10108echo "$as_me:$LINENO: checking for $ac_func" >&5
10109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10110if eval "test \"\${$as_ac_var+set}\" = set"; then
ba479fd2
NN
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10112else
10113 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
10114/* confdefs.h. */
10115_ACEOF
10116cat confdefs.h >>conftest.$ac_ext
10117cat >>conftest.$ac_ext <<_ACEOF
10118/* end confdefs.h. */
86da66b5
HPN
10119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10121#define $ac_func innocuous_$ac_func
10122
956d6950 10123/* System header to define __stub macros and hopefully few prototypes,
ba479fd2
NN
10124 which can conflict with char $ac_func (); below.
10125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10126 <limits.h> exists even on freestanding compilers. */
86da66b5 10127
ba479fd2
NN
10128#ifdef __STDC__
10129# include <limits.h>
10130#else
10131# include <assert.h>
10132#endif
86da66b5
HPN
10133
10134#undef $ac_func
10135
b61ff9c8 10136/* Override any gcc2 internal prototype to avoid an error. */
ba479fd2
NN
10137#ifdef __cplusplus
10138extern "C"
b61ff9c8 10139{
ba479fd2 10140#endif
b61ff9c8
BS
10141/* We use char because int might match the return type of a gcc2
10142 builtin and then its argument prototype would still apply. */
ba479fd2 10143char $ac_func ();
956d6950
JL
10144/* The GNU C library defines this for functions which it implements
10145 to always fail with ENOSYS. Some functions are actually named
10146 something starting with __ and the normal name is an alias. */
b61ff9c8 10147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
956d6950 10148choke me
b61ff9c8
BS
10149#else
10150char (*f) () = $ac_func;
10151#endif
10152#ifdef __cplusplus
10153}
956d6950
JL
10154#endif
10155
ba479fd2
NN
10156int
10157main ()
10158{
b61ff9c8 10159return f != $ac_func;
ba479fd2
NN
10160 ;
10161 return 0;
10162}
10163_ACEOF
10164rm -f conftest.$ac_objext conftest$ac_exeext
b61ff9c8
BS
10165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166 (eval $ac_link) 2>conftest.er1
ba479fd2 10167 ac_status=$?
86da66b5
HPN
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
ba479fd2 10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
10172 (exit $ac_status); } &&
10173 { ac_try='test -z "$ac_c_werror_flag"
10174 || test ! -s conftest.err'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; } &&
10180 { ac_try='test -s conftest$ac_exeext'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
ba479fd2
NN
10186 eval "$as_ac_var=yes"
10187else
10188 echo "$as_me: failed program was:" >&5
10189sed 's/^/| /' conftest.$ac_ext >&5
10190
b61ff9c8 10191eval "$as_ac_var=no"
ba479fd2 10192fi
b61ff9c8 10193rm -f conftest.err conftest.$ac_objext \
86da66b5 10194 conftest$ac_exeext conftest.$ac_ext
ba479fd2 10195fi
b61ff9c8
BS
10196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10197echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ba479fd2
NN
10198if test `eval echo '${'$as_ac_var'}'` = yes; then
10199 cat >>confdefs.h <<_ACEOF
10200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10201_ACEOF
956d6950 10202
956d6950
JL
10203fi
10204done
10205
6885fc87 10206
39f6c4c8 10207if test x$ac_cv_func_mbstowcs = xyes; then
b61ff9c8
BS
10208 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10209echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
ba479fd2
NN
10210if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
39f6c4c8
KW
10212else
10213 if test "$cross_compiling" = yes; then
10214 gcc_cv_func_mbstowcs_works=yes
10215else
ba479fd2 10216 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
10217/* confdefs.h. */
10218_ACEOF
10219cat confdefs.h >>conftest.$ac_ext
10220cat >>conftest.$ac_ext <<_ACEOF
10221/* end confdefs.h. */
39f6c4c8
KW
10222#include <stdlib.h>
10223int main()
10224{
10225 mbstowcs(0, "", 0);
10226 return 0;
10227}
ba479fd2
NN
10228_ACEOF
10229rm -f conftest$ac_exeext
b61ff9c8
BS
10230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>&5
ba479fd2
NN
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b61ff9c8
BS
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
ba479fd2
NN
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
39f6c4c8
KW
10240 gcc_cv_func_mbstowcs_works=yes
10241else
ba479fd2
NN
10242 echo "$as_me: program exited with status $ac_status" >&5
10243echo "$as_me: failed program was:" >&5
10244sed 's/^/| /' conftest.$ac_ext >&5
10245
10246( exit $ac_status )
10247gcc_cv_func_mbstowcs_works=no
39f6c4c8 10248fi
b61ff9c8 10249rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39f6c4c8 10250fi
39f6c4c8 10251fi
b61ff9c8
BS
10252echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10253echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
63cf211a 10254 if test x$gcc_cv_func_mbstowcs_works = xyes; then
ba479fd2
NN
10255
10256cat >>confdefs.h <<\_ACEOF
39f6c4c8 10257#define HAVE_WORKING_MBSTOWCS 1
ba479fd2 10258_ACEOF
39f6c4c8
KW
10259
10260 fi
10261fi
10262
b61ff9c8
BS
10263echo "$as_me:$LINENO: checking for ssize_t" >&5
10264echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
ba479fd2
NN
10265if test "${ac_cv_type_ssize_t+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
63cf211a 10267else
ba479fd2 10268 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
10269/* confdefs.h. */
10270_ACEOF
10271cat confdefs.h >>conftest.$ac_ext
10272cat >>conftest.$ac_ext <<_ACEOF
10273/* end confdefs.h. */
8b4fc07a
NN
10274$ac_includes_default
10275int
10276main ()
10277{
b61ff9c8 10278if ((ssize_t *) 0)
8b4fc07a 10279 return 0;
b61ff9c8 10280if (sizeof (ssize_t))
8b4fc07a
NN
10281 return 0;
10282 ;
10283 return 0;
10284}
ba479fd2 10285_ACEOF
8b4fc07a 10286rm -f conftest.$ac_objext
b61ff9c8
BS
10287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10288 (eval $ac_compile) 2>conftest.er1
8b4fc07a 10289 ac_status=$?
86da66b5
HPN
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
8b4fc07a 10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
10294 (exit $ac_status); } &&
10295 { ac_try='test -z "$ac_c_werror_flag"
10296 || test ! -s conftest.err'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; } &&
10302 { ac_try='test -s conftest.$ac_objext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
cb65112a 10308 ac_cv_type_ssize_t=yes
f12bc141 10309else
8b4fc07a
NN
10310 echo "$as_me: failed program was:" >&5
10311sed 's/^/| /' conftest.$ac_ext >&5
6e3f3080 10312
b61ff9c8 10313ac_cv_type_ssize_t=no
8b4fc07a 10314fi
b61ff9c8 10315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63cf211a 10316fi
b61ff9c8
BS
10317echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10318echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8b4fc07a
NN
10319if test $ac_cv_type_ssize_t = yes; then
10320 :
10321else
ba479fd2 10322
8b4fc07a 10323cat >>confdefs.h <<_ACEOF
f12bc141 10324#define ssize_t int
ba479fd2 10325_ACEOF
f12bc141
ZW
10326
10327fi
10328
bba09b5a
AT
10329echo "$as_me:$LINENO: checking for caddr_t" >&5
10330echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10331if test "${ac_cv_type_caddr_t+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333else
10334 cat >conftest.$ac_ext <<_ACEOF
10335/* confdefs.h. */
10336_ACEOF
10337cat confdefs.h >>conftest.$ac_ext
10338cat >>conftest.$ac_ext <<_ACEOF
10339/* end confdefs.h. */
10340$ac_includes_default
10341int
10342main ()
10343{
10344if ((caddr_t *) 0)
10345 return 0;
10346if (sizeof (caddr_t))
10347 return 0;
10348 ;
10349 return 0;
10350}
10351_ACEOF
10352rm -f conftest.$ac_objext
10353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -z "$ac_c_werror_flag"
10362 || test ! -s conftest.err'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; } &&
10368 { ac_try='test -s conftest.$ac_objext'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 ac_cv_type_caddr_t=yes
10375else
10376 echo "$as_me: failed program was:" >&5
10377sed 's/^/| /' conftest.$ac_ext >&5
10378
10379ac_cv_type_caddr_t=no
10380fi
10381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10382fi
10383echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10384echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10385if test $ac_cv_type_caddr_t = yes; then
10386 :
10387else
10388
10389cat >>confdefs.h <<_ACEOF
10390#define caddr_t char *
10391_ACEOF
10392
10393fi
10394
0b9d02c6 10395
e256b8b6
DA
10396# Try to determine the array type of the second argument of getgroups
10397# for the target system (int or gid_t).
b61ff9c8
BS
10398echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10399echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
ba479fd2
NN
10400if test "${ac_cv_type_uid_t+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10402else
10403 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
10404/* confdefs.h. */
10405_ACEOF
10406cat confdefs.h >>conftest.$ac_ext
10407cat >>conftest.$ac_ext <<_ACEOF
10408/* end confdefs.h. */
e256b8b6 10409#include <sys/types.h>
ba479fd2
NN
10410
10411_ACEOF
e256b8b6 10412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ba479fd2 10413 $EGREP "uid_t" >/dev/null 2>&1; then
e256b8b6
DA
10414 ac_cv_type_uid_t=yes
10415else
e256b8b6
DA
10416 ac_cv_type_uid_t=no
10417fi
10418rm -f conftest*
10419
10420fi
b61ff9c8
BS
10421echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10422echo "${ECHO_T}$ac_cv_type_uid_t" >&6
63cf211a 10423if test $ac_cv_type_uid_t = no; then
ba479fd2
NN
10424
10425cat >>confdefs.h <<\_ACEOF
e256b8b6 10426#define uid_t int
ba479fd2 10427_ACEOF
cafe096b 10428
ba479fd2
NN
10429
10430cat >>confdefs.h <<\_ACEOF
e256b8b6 10431#define gid_t int
ba479fd2 10432_ACEOF
e256b8b6
DA
10433
10434fi
10435
b61ff9c8
BS
10436echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10437echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
ba479fd2
NN
10438if test "${ac_cv_type_getgroups+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
e256b8b6
DA
10440else
10441 if test "$cross_compiling" = yes; then
10442 ac_cv_type_getgroups=cross
10443else
ba479fd2 10444 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
10445/* confdefs.h. */
10446_ACEOF
10447cat confdefs.h >>conftest.$ac_ext
10448cat >>conftest.$ac_ext <<_ACEOF
10449/* end confdefs.h. */
e256b8b6 10450/* Thanks to Mike Rendell for this test. */
b61ff9c8 10451#include <sys/types.h>
e256b8b6
DA
10452#define NGID 256
10453#undef MAX
10454#define MAX(x, y) ((x) > (y) ? (x) : (y))
ba479fd2
NN
10455
10456int
10457main ()
e256b8b6
DA
10458{
10459 gid_t gidset[NGID];
10460 int i, n;
b61ff9c8 10461 union { gid_t gval; long lval; } val;
e256b8b6
DA
10462
10463 val.lval = -1;
10464 for (i = 0; i < NGID; i++)
10465 gidset[i] = val.gval;
10466 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
86da66b5 10467 gidset);
e256b8b6 10468 /* Exit non-zero if getgroups seems to require an array of ints. This
b61ff9c8
BS
10469 happens when gid_t is short but getgroups modifies an array of ints. */
10470 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
63cf211a 10471}
ba479fd2
NN
10472_ACEOF
10473rm -f conftest$ac_exeext
b61ff9c8
BS
10474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475 (eval $ac_link) 2>&5
ba479fd2
NN
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b61ff9c8
BS
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
ba479fd2
NN
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_cv_type_getgroups=gid_t
63cf211a 10485else
ba479fd2
NN
10486 echo "$as_me: program exited with status $ac_status" >&5
10487echo "$as_me: failed program was:" >&5
10488sed 's/^/| /' conftest.$ac_ext >&5
10489
10490( exit $ac_status )
10491ac_cv_type_getgroups=int
e256b8b6 10492fi
b61ff9c8 10493rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e256b8b6 10494fi
e256b8b6 10495if test $ac_cv_type_getgroups = cross; then
ba479fd2 10496 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
10497/* confdefs.h. */
10498_ACEOF
10499cat confdefs.h >>conftest.$ac_ext
10500cat >>conftest.$ac_ext <<_ACEOF
10501/* end confdefs.h. */
e256b8b6 10502#include <unistd.h>
ba479fd2
NN
10503
10504_ACEOF
e256b8b6 10505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ba479fd2 10506 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
e256b8b6
DA
10507 ac_cv_type_getgroups=gid_t
10508else
e256b8b6
DA
10509 ac_cv_type_getgroups=int
10510fi
10511rm -f conftest*
10512
10513fi
10514fi
b61ff9c8
BS
10515echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10516echo "${ECHO_T}$ac_cv_type_getgroups" >&6
e256b8b6 10517
ba479fd2 10518cat >>confdefs.h <<_ACEOF
e256b8b6 10519#define GETGROUPS_T $ac_cv_type_getgroups
ba479fd2 10520_ACEOF
e256b8b6
DA
10521
10522
10523if test "${target}" = "${build}"; then
10524 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10525else
10526 case "${target}" in
10527 # This condition may need some tweaking. It should include all
10528 # targets where the array type of the second argument of getgroups
10529 # is int and the type of gid_t is not equivalent to int.
10530 *-*-sunos* | *-*-ultrix*)
10531 TARGET_GETGROUPS_T=int
10532 ;;
10533 *)
10534 TARGET_GETGROUPS_T=gid_t
10535 ;;
10536 esac
10537fi
10538
10539
3b0727a0 10540
b61ff9c8
BS
10541echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10542echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
3b0727a0
MR
10543if test "${ac_cv_header_sys_mman_h+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
0f57bf40 10545else
18fc9bd4 10546 cat >conftest.$ac_ext <<_ACEOF
3b0727a0
MR
10547/* confdefs.h. */
10548_ACEOF
10549cat confdefs.h >>conftest.$ac_ext
10550cat >>conftest.$ac_ext <<_ACEOF
10551/* end confdefs.h. */
10552#include <sys/mman.h>
10553_ACEOF
b61ff9c8
BS
10554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3b0727a0
MR
10556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
10561 (exit $ac_status); } >/dev/null; then
10562 if test -s conftest.err; then
10563 ac_cpp_err=$ac_c_preproc_warn_flag
10564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10565 else
10566 ac_cpp_err=
10567 fi
10568else
10569 ac_cpp_err=yes
10570fi
10571if test -z "$ac_cpp_err"; then
10572 ac_cv_header_sys_mman_h=yes
10573else
3b0727a0
MR
10574 echo "$as_me: failed program was:" >&5
10575sed 's/^/| /' conftest.$ac_ext >&5
10576
18fc9bd4 10577 ac_cv_header_sys_mman_h=no
3b0727a0
MR
10578fi
10579rm -f conftest.err conftest.$ac_ext
10580fi
b61ff9c8
BS
10581echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10582echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
3b0727a0
MR
10583if test $ac_cv_header_sys_mman_h = yes; then
10584 gcc_header_sys_mman_h=yes
10585else
10586 gcc_header_sys_mman_h=no
10587fi
10588
b61ff9c8
BS
10589echo "$as_me:$LINENO: checking for mmap" >&5
10590echo $ECHO_N "checking for mmap... $ECHO_C" >&6
3b0727a0
MR
10591if test "${ac_cv_func_mmap+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10593else
10594 cat >conftest.$ac_ext <<_ACEOF
10595/* confdefs.h. */
10596_ACEOF
10597cat confdefs.h >>conftest.$ac_ext
10598cat >>conftest.$ac_ext <<_ACEOF
10599/* end confdefs.h. */
10600/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10602#define mmap innocuous_mmap
10603
10604/* System header to define __stub macros and hopefully few prototypes,
10605 which can conflict with char mmap (); below.
10606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10607 <limits.h> exists even on freestanding compilers. */
10608
10609#ifdef __STDC__
10610# include <limits.h>
10611#else
10612# include <assert.h>
10613#endif
10614
10615#undef mmap
10616
b61ff9c8 10617/* Override any gcc2 internal prototype to avoid an error. */
3b0727a0
MR
10618#ifdef __cplusplus
10619extern "C"
b61ff9c8 10620{
3b0727a0 10621#endif
b61ff9c8
BS
10622/* We use char because int might match the return type of a gcc2
10623 builtin and then its argument prototype would still apply. */
3b0727a0
MR
10624char mmap ();
10625/* The GNU C library defines this for functions which it implements
10626 to always fail with ENOSYS. Some functions are actually named
10627 something starting with __ and the normal name is an alias. */
b61ff9c8 10628#if defined (__stub_mmap) || defined (__stub___mmap)
3b0727a0 10629choke me
b61ff9c8
BS
10630#else
10631char (*f) () = mmap;
10632#endif
10633#ifdef __cplusplus
10634}
3b0727a0
MR
10635#endif
10636
10637int
10638main ()
10639{
b61ff9c8 10640return f != mmap;
3b0727a0
MR
10641 ;
10642 return 0;
10643}
10644_ACEOF
10645rm -f conftest.$ac_objext conftest$ac_exeext
b61ff9c8
BS
10646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647 (eval $ac_link) 2>conftest.er1
3b0727a0
MR
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
10653 (exit $ac_status); } &&
10654 { ac_try='test -z "$ac_c_werror_flag"
10655 || test ! -s conftest.err'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try='test -s conftest$ac_exeext'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
8b1f719a
PB
10667 ac_cv_func_mmap=yes
10668else
10669 echo "$as_me: failed program was:" >&5
10670sed 's/^/| /' conftest.$ac_ext >&5
a6ccdbab 10671
b61ff9c8 10672ac_cv_func_mmap=no
8b1f719a 10673fi
b61ff9c8 10674rm -f conftest.err conftest.$ac_objext \
3b0727a0
MR
10675 conftest$ac_exeext conftest.$ac_ext
10676fi
b61ff9c8
BS
10677echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10678echo "${ECHO_T}$ac_cv_func_mmap" >&6
3b0727a0
MR
10679if test $ac_cv_func_mmap = yes; then
10680 gcc_func_mmap=yes
10681else
10682 gcc_func_mmap=no
10683fi
10684
10685if test "$gcc_header_sys_mman_h" != yes \
10686 || test "$gcc_func_mmap" != yes; then
1072ec3f
ZW
10687 gcc_cv_func_mmap_file=no
10688 gcc_cv_func_mmap_dev_zero=no
10689 gcc_cv_func_mmap_anon=no
10690else
b61ff9c8
BS
10691 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10692echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
ba479fd2
NN
10693if test "${gcc_cv_func_mmap_file+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
1072ec3f 10695else
ba479fd2 10696 # Add a system to this blacklist if
1072ec3f
ZW
10697 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10698 # memory area containing the same data that you'd get if you applied
10699 # read() to the same fd. The only system known to have a problem here
10700 # is VMS, where text files have record structure.
10701 case "$host_os" in
ba479fd2 10702 vms* | ultrix*)
1072ec3f
ZW
10703 gcc_cv_func_mmap_file=no ;;
10704 *)
10705 gcc_cv_func_mmap_file=yes;;
10706 esac
10707fi
b61ff9c8
BS
10708echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10709echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10710 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10711echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
ba479fd2
NN
10712if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
1072ec3f
ZW
10714else
10715 # Add a system to this blacklist if it has mmap() but /dev/zero
10716 # does not exist, or if mmapping /dev/zero does not give anonymous
10717 # zeroed pages with both the following properties:
10718 # 1. If you map N consecutive pages in with one call, and then
10719 # unmap any subset of those pages, the pages that were not
10720 # explicitly unmapped remain accessible.
10721 # 2. If you map two adjacent blocks of memory and then unmap them
10722 # both at once, they must both go away.
10723 # Systems known to be in this category are Windows (all variants),
10724 # VMS, and Darwin.
10725 case "$host_os" in
2ce240d3 10726 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
1072ec3f
ZW
10727 gcc_cv_func_mmap_dev_zero=no ;;
10728 *)
10729 gcc_cv_func_mmap_dev_zero=yes;;
10730 esac
10731fi
b61ff9c8
BS
10732echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10733echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
1072ec3f
ZW
10734
10735 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
b61ff9c8
BS
10736 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10737echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
ba479fd2
NN
10738if test "${gcc_cv_decl_map_anon+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740else
10741 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
10742/* confdefs.h. */
10743_ACEOF
10744cat confdefs.h >>conftest.$ac_ext
10745cat >>conftest.$ac_ext <<_ACEOF
10746/* end confdefs.h. */
1072ec3f
ZW
10747#include <sys/types.h>
10748#include <sys/mman.h>
10749#include <unistd.h>
10750
10751#ifndef MAP_ANONYMOUS
10752#define MAP_ANONYMOUS MAP_ANON
10753#endif
10754
ba479fd2
NN
10755int
10756main ()
10757{
1072ec3f 10758int n = MAP_ANONYMOUS;
ba479fd2
NN
10759 ;
10760 return 0;
10761}
10762_ACEOF
10763rm -f conftest.$ac_objext
b61ff9c8
BS
10764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10765 (eval $ac_compile) 2>conftest.er1
ba479fd2 10766 ac_status=$?
86da66b5
HPN
10767 grep -v '^ *+' conftest.er1 >conftest.err
10768 rm -f conftest.er1
10769 cat conftest.err >&5
ba479fd2 10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
10771 (exit $ac_status); } &&
10772 { ac_try='test -z "$ac_c_werror_flag"
10773 || test ! -s conftest.err'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; } &&
10779 { ac_try='test -s conftest.$ac_objext'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
1072ec3f
ZW
10785 gcc_cv_decl_map_anon=yes
10786else
ba479fd2
NN
10787 echo "$as_me: failed program was:" >&5
10788sed 's/^/| /' conftest.$ac_ext >&5
10789
b61ff9c8 10790gcc_cv_decl_map_anon=no
1072ec3f 10791fi
b61ff9c8 10792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1072ec3f 10793fi
b61ff9c8
BS
10794echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10795echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
1072ec3f
ZW
10796
10797 if test $gcc_cv_decl_map_anon = no; then
10798 gcc_cv_func_mmap_anon=no
10799 else
b61ff9c8
BS
10800 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10801echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
ba479fd2
NN
10802if test "${gcc_cv_func_mmap_anon+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
1072ec3f
ZW
10804else
10805 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10806 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10807 # doesn't give anonymous zeroed pages with the same properties listed
10808 # above for use of /dev/zero.
10809 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10810 case "$host_os" in
10811 vms* | cygwin* | pe | mingw* | sco* | udk* )
10812 gcc_cv_func_mmap_anon=no ;;
10813 *)
10814 gcc_cv_func_mmap_anon=yes;;
10815 esac
10816fi
b61ff9c8
BS
10817echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10818echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
1072ec3f
ZW
10819 fi
10820fi
10821
10822if test $gcc_cv_func_mmap_file = yes; then
ba479fd2
NN
10823
10824cat >>confdefs.h <<\_ACEOF
1072ec3f 10825#define HAVE_MMAP_FILE 1
ba479fd2 10826_ACEOF
1072ec3f
ZW
10827
10828fi
10829if test $gcc_cv_func_mmap_dev_zero = yes; then
ba479fd2
NN
10830
10831cat >>confdefs.h <<\_ACEOF
1072ec3f 10832#define HAVE_MMAP_DEV_ZERO 1
ba479fd2 10833_ACEOF
1072ec3f
ZW
10834
10835fi
10836if test $gcc_cv_func_mmap_anon = yes; then
ba479fd2
NN
10837
10838cat >>confdefs.h <<\_ACEOF
1072ec3f 10839#define HAVE_MMAP_ANON 1
ba479fd2 10840_ACEOF
1072ec3f
ZW
10841
10842fi
10843
b27d2bd5
MK
10844
10845case "${host}" in
ee262b6f 10846*-*-*vms*)
ba479fd2 10847 # Under VMS, vfork works very differently than on Unix. The standard test
ee262b6f
DR
10848 # won't work, and it isn't easily adaptable. It makes more sense to
10849 # just force it.
10850 ac_cv_func_vfork_works=yes
10851 ;;
b27d2bd5 10852esac
b61ff9c8
BS
10853echo "$as_me:$LINENO: checking for pid_t" >&5
10854echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
ba479fd2
NN
10855if test "${ac_cv_type_pid_t+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857else
10858 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
10864$ac_includes_default
10865int
10866main ()
10867{
b61ff9c8 10868if ((pid_t *) 0)
ba479fd2 10869 return 0;
b61ff9c8 10870if (sizeof (pid_t))
ba479fd2
NN
10871 return 0;
10872 ;
10873 return 0;
10874}
10875_ACEOF
10876rm -f conftest.$ac_objext
b61ff9c8
BS
10877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10878 (eval $ac_compile) 2>conftest.er1
ba479fd2 10879 ac_status=$?
86da66b5
HPN
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
ba479fd2 10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
10884 (exit $ac_status); } &&
10885 { ac_try='test -z "$ac_c_werror_flag"
10886 || test ! -s conftest.err'
10887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888 (eval $ac_try) 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try='test -s conftest.$ac_objext'
10893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; }; then
cb65112a 10898 ac_cv_type_pid_t=yes
c375c43b 10899else
ba479fd2
NN
10900 echo "$as_me: failed program was:" >&5
10901sed 's/^/| /' conftest.$ac_ext >&5
6e3f3080 10902
b61ff9c8 10903ac_cv_type_pid_t=no
ba479fd2 10904fi
b61ff9c8 10905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63cf211a 10906fi
b61ff9c8
BS
10907echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10908echo "${ECHO_T}$ac_cv_type_pid_t" >&6
ba479fd2
NN
10909if test $ac_cv_type_pid_t = yes; then
10910 :
10911else
10912
10913cat >>confdefs.h <<_ACEOF
c375c43b 10914#define pid_t int
ba479fd2 10915_ACEOF
c375c43b
KG
10916
10917fi
10918
ba479fd2 10919
b61ff9c8
BS
10920
10921for ac_header in unistd.h vfork.h
ba479fd2
NN
10922do
10923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b61ff9c8
BS
10924echo "$as_me:$LINENO: checking for $ac_header" >&5
10925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10926if eval "test \"\${$as_ac_Header+set}\" = set"; then
ba479fd2 10927 echo $ECHO_N "(cached) $ECHO_C" >&6
0f57bf40 10928else
18fc9bd4 10929 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
10930/* confdefs.h. */
10931_ACEOF
10932cat confdefs.h >>conftest.$ac_ext
10933cat >>conftest.$ac_ext <<_ACEOF
10934/* end confdefs.h. */
10935#include <$ac_header>
10936_ACEOF
b61ff9c8
BS
10937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ba479fd2
NN
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
10944 (exit $ac_status); } >/dev/null; then
10945 if test -s conftest.err; then
10946 ac_cpp_err=$ac_c_preproc_warn_flag
10947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10948 else
10949 ac_cpp_err=
10950 fi
10951else
10952 ac_cpp_err=yes
10953fi
10954if test -z "$ac_cpp_err"; then
18fc9bd4 10955 eval "$as_ac_Header=yes"
ba479fd2
NN
10956else
10957 echo "$as_me: failed program was:" >&5
10958sed 's/^/| /' conftest.$ac_ext >&5
10959
18fc9bd4 10960 eval "$as_ac_Header=no"
ba479fd2
NN
10961fi
10962rm -f conftest.err conftest.$ac_ext
c375c43b 10963fi
b61ff9c8
BS
10964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ba479fd2
NN
10966if test `eval echo '${'$as_ac_Header'}'` = yes; then
10967 cat >>confdefs.h <<_ACEOF
10968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10969_ACEOF
6e3f3080
NN
10970
10971fi
ba479fd2
NN
10972done
10973
10974
10975
10976for ac_func in fork vfork
10977do
10978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b61ff9c8
BS
10979echo "$as_me:$LINENO: checking for $ac_func" >&5
10980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10981if eval "test \"\${$as_ac_var+set}\" = set"; then
ba479fd2
NN
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983else
10984 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
10985/* confdefs.h. */
10986_ACEOF
10987cat confdefs.h >>conftest.$ac_ext
10988cat >>conftest.$ac_ext <<_ACEOF
10989/* end confdefs.h. */
86da66b5
HPN
10990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10992#define $ac_func innocuous_$ac_func
10993
c375c43b 10994/* System header to define __stub macros and hopefully few prototypes,
ba479fd2
NN
10995 which can conflict with char $ac_func (); below.
10996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10997 <limits.h> exists even on freestanding compilers. */
86da66b5 10998
ba479fd2
NN
10999#ifdef __STDC__
11000# include <limits.h>
11001#else
11002# include <assert.h>
11003#endif
86da66b5
HPN
11004
11005#undef $ac_func
11006
b61ff9c8 11007/* Override any gcc2 internal prototype to avoid an error. */
ba479fd2
NN
11008#ifdef __cplusplus
11009extern "C"
b61ff9c8 11010{
ba479fd2 11011#endif
b61ff9c8
BS
11012/* We use char because int might match the return type of a gcc2
11013 builtin and then its argument prototype would still apply. */
ba479fd2 11014char $ac_func ();
c375c43b
KG
11015/* The GNU C library defines this for functions which it implements
11016 to always fail with ENOSYS. Some functions are actually named
11017 something starting with __ and the normal name is an alias. */
b61ff9c8 11018#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
c375c43b 11019choke me
b61ff9c8
BS
11020#else
11021char (*f) () = $ac_func;
11022#endif
11023#ifdef __cplusplus
11024}
c375c43b
KG
11025#endif
11026
ba479fd2
NN
11027int
11028main ()
11029{
b61ff9c8 11030return f != $ac_func;
ba479fd2
NN
11031 ;
11032 return 0;
11033}
11034_ACEOF
11035rm -f conftest.$ac_objext conftest$ac_exeext
b61ff9c8
BS
11036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037 (eval $ac_link) 2>conftest.er1
ba479fd2 11038 ac_status=$?
86da66b5
HPN
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
ba479fd2 11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
11043 (exit $ac_status); } &&
11044 { ac_try='test -z "$ac_c_werror_flag"
11045 || test ! -s conftest.err'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; } &&
11051 { ac_try='test -s conftest$ac_exeext'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
ba479fd2
NN
11057 eval "$as_ac_var=yes"
11058else
11059 echo "$as_me: failed program was:" >&5
11060sed 's/^/| /' conftest.$ac_ext >&5
11061
b61ff9c8 11062eval "$as_ac_var=no"
ba479fd2 11063fi
b61ff9c8 11064rm -f conftest.err conftest.$ac_objext \
86da66b5 11065 conftest$ac_exeext conftest.$ac_ext
ba479fd2 11066fi
b61ff9c8
BS
11067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11068echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ba479fd2
NN
11069if test `eval echo '${'$as_ac_var'}'` = yes; then
11070 cat >>confdefs.h <<_ACEOF
11071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11072_ACEOF
11073
c375c43b 11074fi
ba479fd2 11075done
c375c43b 11076
ba479fd2 11077if test "x$ac_cv_func_fork" = xyes; then
b61ff9c8
BS
11078 echo "$as_me:$LINENO: checking for working fork" >&5
11079echo $ECHO_N "checking for working fork... $ECHO_C" >&6
ba479fd2
NN
11080if test "${ac_cv_func_fork_works+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
c375c43b 11082else
ba479fd2
NN
11083 if test "$cross_compiling" = yes; then
11084 ac_cv_func_fork_works=cross
11085else
11086 cat >conftest.$ac_ext <<_ACEOF
b61ff9c8
BS
11087/* By Ruediger Kuhlmann. */
11088 #include <sys/types.h>
11089 #if HAVE_UNISTD_H
11090 # include <unistd.h>
11091 #endif
11092 /* Some systems only have a dummy stub for fork() */
11093 int main ()
11094 {
11095 if (fork() < 0)
11096 exit (1);
11097 exit (0);
11098 }
1a4b763e
BS
11099_ACEOF
11100rm -f conftest$ac_exeext
b61ff9c8
BS
11101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11102 (eval $ac_link) 2>&5
1a4b763e
BS
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b61ff9c8
BS
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
ba479fd2
NN
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 ac_cv_func_fork_works=yes
11112else
11113 echo "$as_me: program exited with status $ac_status" >&5
11114echo "$as_me: failed program was:" >&5
11115sed 's/^/| /' conftest.$ac_ext >&5
11116
11117( exit $ac_status )
11118ac_cv_func_fork_works=no
11119fi
b61ff9c8 11120rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ba479fd2
NN
11121fi
11122fi
b61ff9c8
BS
11123echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11124echo "${ECHO_T}$ac_cv_func_fork_works" >&6
ba479fd2
NN
11125
11126else
11127 ac_cv_func_fork_works=$ac_cv_func_fork
11128fi
11129if test "x$ac_cv_func_fork_works" = xcross; then
11130 case $host in
11131 *-*-amigaos* | *-*-msdosdjgpp*)
11132 # Override, as these systems have only a dummy fork() stub
11133 ac_cv_func_fork_works=no
11134 ;;
11135 *)
11136 ac_cv_func_fork_works=yes
11137 ;;
11138 esac
11139 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11140echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
c375c43b 11141fi
c375c43b 11142ac_cv_func_vfork_works=$ac_cv_func_vfork
ba479fd2 11143if test "x$ac_cv_func_vfork" = xyes; then
b61ff9c8
BS
11144 echo "$as_me:$LINENO: checking for working vfork" >&5
11145echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
ba479fd2
NN
11146if test "${ac_cv_func_vfork_works+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
c375c43b 11148else
ba479fd2
NN
11149 if test "$cross_compiling" = yes; then
11150 ac_cv_func_vfork_works=cross
11151else
11152 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
11153/* confdefs.h. */
11154_ACEOF
11155cat confdefs.h >>conftest.$ac_ext
11156cat >>conftest.$ac_ext <<_ACEOF
11157/* end confdefs.h. */
c375c43b 11158/* Thanks to Paul Eggert for this test. */
b61ff9c8
BS
11159#include <stdio.h>
11160#include <stdlib.h>
11161#include <sys/types.h>
11162#include <sys/stat.h>
ba479fd2 11163#include <sys/wait.h>
b61ff9c8
BS
11164#if HAVE_UNISTD_H
11165# include <unistd.h>
11166#endif
11167#if HAVE_VFORK_H
ba479fd2 11168# include <vfork.h>
c375c43b
KG
11169#endif
11170/* On some sparc systems, changes by the child to local and incoming
ba479fd2
NN
11171 argument registers are propagated back to the parent. The compiler
11172 is told about this with #include <vfork.h>, but some compilers
11173 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11174 static variable whose address is put into a register that is
11175 clobbered by the vfork. */
11176static void
c375c43b
KG
11177#ifdef __cplusplus
11178sparc_address_test (int arg)
ba479fd2 11179# else
c375c43b
KG
11180sparc_address_test (arg) int arg;
11181#endif
11182{
11183 static pid_t child;
11184 if (!child) {
11185 child = vfork ();
11186 if (child < 0) {
11187 perror ("vfork");
11188 _exit(2);
11189 }
11190 if (!child) {
11191 arg = getpid();
11192 write(-1, "", 0);
11193 _exit (arg);
11194 }
11195 }
11196}
ba479fd2
NN
11197
11198int
11199main ()
11200{
c375c43b
KG
11201 pid_t parent = getpid ();
11202 pid_t child;
11203
ba479fd2 11204 sparc_address_test (0);
c375c43b
KG
11205
11206 child = vfork ();
11207
11208 if (child == 0) {
ba479fd2
NN
11209 /* Here is another test for sparc vfork register problems. This
11210 test uses lots of local variables, at least as many local
11211 variables as main has allocated so far including compiler
11212 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11213 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11214 reuse the register of parent for one of the local variables,
11215 since it will think that parent can't possibly be used any more
11216 in this routine. Assigning to the local variable will thus
11217 munge parent in the parent process. */
c375c43b
KG
11218 pid_t
11219 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11220 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11221 /* Convince the compiler that p..p7 are live; otherwise, it might
11222 use the same hardware register for all 8 local variables. */
11223 if (p != p1 || p != p2 || p != p3 || p != p4
11224 || p != p5 || p != p6 || p != p7)
11225 _exit(1);
11226
ba479fd2
NN
11227 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11228 from child file descriptors. If the child closes a descriptor
11229 before it execs or exits, this munges the parent's descriptor
11230 as well. Test for this by closing stdout in the child. */
c375c43b
KG
11231 _exit(close(fileno(stdout)) != 0);
11232 } else {
11233 int status;
11234 struct stat st;
11235
11236 while (wait(&status) != child)
11237 ;
b61ff9c8 11238 exit(
c375c43b
KG
11239 /* Was there some problem with vforking? */
11240 child < 0
11241
11242 /* Did the child fail? (This shouldn't happen.) */
11243 || status
11244
11245 /* Did the vfork/compiler bug occur? */
11246 || parent != getpid()
11247
11248 /* Did the file descriptor bug occur? */
11249 || fstat(fileno(stdout), &st) != 0
11250 );
11251 }
11252}
ba479fd2
NN
11253_ACEOF
11254rm -f conftest$ac_exeext
b61ff9c8
BS
11255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>&5
ba479fd2
NN
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b61ff9c8
BS
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
ba479fd2
NN
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
c375c43b
KG
11265 ac_cv_func_vfork_works=yes
11266else
ba479fd2
NN
11267 echo "$as_me: program exited with status $ac_status" >&5
11268echo "$as_me: failed program was:" >&5
11269sed 's/^/| /' conftest.$ac_ext >&5
11270
11271( exit $ac_status )
11272ac_cv_func_vfork_works=no
cafe096b 11273fi
b61ff9c8 11274rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6e3f3080 11275fi
ba479fd2 11276fi
b61ff9c8
BS
11277echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11278echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
c375c43b 11279
ba479fd2
NN
11280fi;
11281if test "x$ac_cv_func_fork_works" = xcross; then
86da66b5 11282 ac_cv_func_vfork_works=$ac_cv_func_vfork
ba479fd2
NN
11283 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11284echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
c375c43b
KG
11285fi
11286
ba479fd2
NN
11287if test "x$ac_cv_func_vfork_works" = xyes; then
11288
11289cat >>confdefs.h <<\_ACEOF
11290#define HAVE_WORKING_VFORK 1
11291_ACEOF
11292
11293else
11294
11295cat >>confdefs.h <<\_ACEOF
c375c43b 11296#define vfork fork
ba479fd2 11297_ACEOF
c375c43b
KG
11298
11299fi
ba479fd2
NN
11300if test "x$ac_cv_func_fork_works" = xyes; then
11301
11302cat >>confdefs.h <<\_ACEOF
11303#define HAVE_WORKING_FORK 1
11304_ACEOF
11305
11306fi
11307
c375c43b 11308
81bf3d9e 11309
dfb77e37
KC
11310 if test "X$prefix" = "XNONE"; then
11311 acl_final_prefix="$ac_default_prefix"
11312 else
11313 acl_final_prefix="$prefix"
11314 fi
11315 if test "X$exec_prefix" = "XNONE"; then
11316 acl_final_exec_prefix='${prefix}'
11317 else
11318 acl_final_exec_prefix="$exec_prefix"
11319 fi
11320 acl_save_prefix="$prefix"
11321 prefix="$acl_final_prefix"
11322 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11323 prefix="$acl_save_prefix"
f91abfce
TT
11324
11325
b61ff9c8 11326# Check whether --with-gnu-ld or --without-gnu-ld was given.
dfb77e37 11327if test "${with_gnu_ld+set}" = set; then
b61ff9c8
BS
11328 withval="$with_gnu_ld"
11329 test "$withval" = no || with_gnu_ld=yes
ba479fd2 11330else
dfb77e37 11331 with_gnu_ld=no
b61ff9c8 11332fi;
dfb77e37
KC
11333# Prepare PATH_SEPARATOR.
11334# The user is always right.
11335if test "${PATH_SEPARATOR+set}" != set; then
11336 echo "#! /bin/sh" >conf$$.sh
11337 echo "exit 0" >>conf$$.sh
11338 chmod +x conf$$.sh
11339 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11340 PATH_SEPARATOR=';'
ba479fd2 11341 else
dfb77e37 11342 PATH_SEPARATOR=:
ba479fd2 11343 fi
dfb77e37
KC
11344 rm -f conf$$.sh
11345fi
11346ac_prog=ld
11347if test "$GCC" = yes; then
11348 # Check if gcc -print-prog-name=ld gives a path.
b61ff9c8
BS
11349 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11350echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
dfb77e37
KC
11351 case $host in
11352 *-*-mingw*)
11353 # gcc leaves a trailing carriage return which upsets mingw
11354 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11355 *)
11356 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11357 esac
11358 case $ac_prog in
11359 # Accept absolute paths.
11360 [\\/]* | [A-Za-z]:[\\/]*)
11361 re_direlt='/[^/][^/]*/\.\./'
11362 # Canonicalize the path of ld
11363 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11364 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11365 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11366 done
11367 test -z "$LD" && LD="$ac_prog"
11368 ;;
11369 "")
11370 # If it fails, then pretend we aren't using GCC.
11371 ac_prog=ld
11372 ;;
11373 *)
11374 # If it is relative, then search for the first ld in PATH.
11375 with_gnu_ld=unknown
11376 ;;
11377 esac
11378elif test "$with_gnu_ld" = yes; then
b61ff9c8
BS
11379 echo "$as_me:$LINENO: checking for GNU ld" >&5
11380echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
ba479fd2 11381else
b61ff9c8
BS
11382 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11383echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
ba479fd2 11384fi
dfb77e37
KC
11385if test "${acl_cv_path_LD+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
ba479fd2 11387else
dfb77e37
KC
11388 if test -z "$LD"; then
11389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11390 for ac_dir in $PATH; do
11391 test -z "$ac_dir" && ac_dir=.
11392 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11393 acl_cv_path_LD="$ac_dir/$ac_prog"
11394 # Check to see if the program is GNU ld. I'd rather use --version,
11395 # but apparently some GNU ld's only accept -v.
11396 # Break only if it was the GNU/non-GNU ld that we prefer.
18fc9bd4
RG
11397 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11398 test "$with_gnu_ld" != no && break
11399 else
11400 test "$with_gnu_ld" != yes && break
11401 fi
dfb77e37
KC
11402 fi
11403 done
11404 IFS="$ac_save_ifs"
11405else
11406 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11407fi
11408fi
ba479fd2 11409
dfb77e37
KC
11410LD="$acl_cv_path_LD"
11411if test -n "$LD"; then
b61ff9c8
BS
11412 echo "$as_me:$LINENO: result: $LD" >&5
11413echo "${ECHO_T}$LD" >&6
dfb77e37 11414else
b61ff9c8
BS
11415 echo "$as_me:$LINENO: result: no" >&5
11416echo "${ECHO_T}no" >&6
ba479fd2 11417fi
dfb77e37
KC
11418test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11419echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11420 { (exit 1); exit 1; }; }
b61ff9c8
BS
11421echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11422echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
dfb77e37
KC
11423if test "${acl_cv_prog_gnu_ld+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11425else
11426 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18fc9bd4
RG
11427if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11428 acl_cv_prog_gnu_ld=yes
11429else
11430 acl_cv_prog_gnu_ld=no
11431fi
dfb77e37 11432fi
b61ff9c8
BS
11433echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11434echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
dfb77e37
KC
11435with_gnu_ld=$acl_cv_prog_gnu_ld
11436
11437
11438
b61ff9c8
BS
11439 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11440echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
dfb77e37
KC
11441if test "${acl_cv_rpath+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443else
11444
11445 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11446 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11447 . ./conftest.sh
11448 rm -f ./conftest.sh
11449 acl_cv_rpath=done
ba479fd2 11450
eb158727 11451fi
b61ff9c8
BS
11452echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11453echo "${ECHO_T}$acl_cv_rpath" >&6
dfb77e37
KC
11454 wl="$acl_cv_wl"
11455 libext="$acl_cv_libext"
11456 shlibext="$acl_cv_shlibext"
11457 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11458 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11459 hardcode_direct="$acl_cv_hardcode_direct"
11460 hardcode_minus_L="$acl_cv_hardcode_minus_L"
b61ff9c8 11461 # Check whether --enable-rpath or --disable-rpath was given.
dfb77e37 11462if test "${enable_rpath+set}" = set; then
b61ff9c8
BS
11463 enableval="$enable_rpath"
11464 :
dfb77e37
KC
11465else
11466 enable_rpath=yes
b61ff9c8 11467fi;
8b1f719a 11468
a6ccdbab 11469
dfb77e37
KC
11470
11471
11472
11473
11474
b639c3c2
JJ
11475 use_additional=yes
11476
11477 acl_save_prefix="$prefix"
11478 prefix="$acl_final_prefix"
11479 acl_save_exec_prefix="$exec_prefix"
11480 exec_prefix="$acl_final_exec_prefix"
11481
11482 eval additional_includedir=\"$includedir\"
11483 eval additional_libdir=\"$libdir\"
11484
11485 exec_prefix="$acl_save_exec_prefix"
11486 prefix="$acl_save_prefix"
dfb77e37
KC
11487
11488
b61ff9c8 11489# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8b1f719a 11490if test "${with_libiconv_prefix+set}" = set; then
b61ff9c8
BS
11491 withval="$with_libiconv_prefix"
11492
8b1f719a 11493 if test "X$withval" = "Xno"; then
b639c3c2 11494 use_additional=no
8b1f719a
PB
11495 else
11496 if test "X$withval" = "X"; then
dfb77e37
KC
11497
11498 acl_save_prefix="$prefix"
11499 prefix="$acl_final_prefix"
11500 acl_save_exec_prefix="$exec_prefix"
11501 exec_prefix="$acl_final_exec_prefix"
11502
b639c3c2
JJ
11503 eval additional_includedir=\"$includedir\"
11504 eval additional_libdir=\"$libdir\"
dfb77e37
KC
11505
11506 exec_prefix="$acl_save_exec_prefix"
11507 prefix="$acl_save_prefix"
11508
8b1f719a 11509 else
b639c3c2
JJ
11510 additional_includedir="$withval/include"
11511 additional_libdir="$withval/lib"
8b1f719a
PB
11512 fi
11513 fi
11514
b61ff9c8 11515fi;
dfb77e37
KC
11516 LIBICONV=
11517 LTLIBICONV=
11518 INCICONV=
11519 rpathdirs=
11520 ltrpathdirs=
11521 names_already_handled=
11522 names_next_round='iconv '
11523 while test -n "$names_next_round"; do
11524 names_this_round="$names_next_round"
11525 names_next_round=
11526 for name in $names_this_round; do
11527 already_handled=
11528 for n in $names_already_handled; do
11529 if test "$n" = "$name"; then
11530 already_handled=yes
11531 break
11532 fi
11533 done
11534 if test -z "$already_handled"; then
11535 names_already_handled="$names_already_handled $name"
11536 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11537 eval value=\"\$HAVE_LIB$uppername\"
11538 if test -n "$value"; then
11539 if test "$value" = yes; then
11540 eval value=\"\$LIB$uppername\"
11541 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11542 eval value=\"\$LTLIB$uppername\"
11543 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11544 else
11545 :
11546 fi
11547 else
11548 found_dir=
11549 found_la=
11550 found_so=
11551 found_a=
b639c3c2
JJ
11552 if test $use_additional = yes; then
11553 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11554 found_dir="$additional_libdir"
11555 found_so="$additional_libdir/lib$name.$shlibext"
11556 if test -f "$additional_libdir/lib$name.la"; then
11557 found_la="$additional_libdir/lib$name.la"
dfb77e37
KC
11558 fi
11559 else
b639c3c2
JJ
11560 if test -f "$additional_libdir/lib$name.$libext"; then
11561 found_dir="$additional_libdir"
11562 found_a="$additional_libdir/lib$name.$libext"
11563 if test -f "$additional_libdir/lib$name.la"; then
11564 found_la="$additional_libdir/lib$name.la"
dfb77e37
KC
11565 fi
11566 fi
11567 fi
11568 fi
11569 if test "X$found_dir" = "X"; then
11570 for x in $LDFLAGS $LTLIBICONV; do
11571
11572 acl_save_prefix="$prefix"
11573 prefix="$acl_final_prefix"
11574 acl_save_exec_prefix="$exec_prefix"
11575 exec_prefix="$acl_final_exec_prefix"
11576 eval x=\"$x\"
11577 exec_prefix="$acl_save_exec_prefix"
11578 prefix="$acl_save_prefix"
11579
11580 case "$x" in
11581 -L*)
11582 dir=`echo "X$x" | sed -e 's/^X-L//'`
11583 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11584 found_dir="$dir"
11585 found_so="$dir/lib$name.$shlibext"
11586 if test -f "$dir/lib$name.la"; then
11587 found_la="$dir/lib$name.la"
11588 fi
11589 else
11590 if test -f "$dir/lib$name.$libext"; then
11591 found_dir="$dir"
11592 found_a="$dir/lib$name.$libext"
11593 if test -f "$dir/lib$name.la"; then
11594 found_la="$dir/lib$name.la"
11595 fi
11596 fi
11597 fi
11598 ;;
11599 esac
11600 if test "X$found_dir" != "X"; then
11601 break
11602 fi
11603 done
11604 fi
11605 if test "X$found_dir" != "X"; then
11606 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11607 if test "X$found_so" != "X"; then
11608 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11609 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11610 else
11611 haveit=
11612 for x in $ltrpathdirs; do
11613 if test "X$x" = "X$found_dir"; then
11614 haveit=yes
11615 break
11616 fi
11617 done
11618 if test -z "$haveit"; then
11619 ltrpathdirs="$ltrpathdirs $found_dir"
11620 fi
11621 if test "$hardcode_direct" = yes; then
11622 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11623 else
11624 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11625 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11626 haveit=
11627 for x in $rpathdirs; do
11628 if test "X$x" = "X$found_dir"; then
11629 haveit=yes
11630 break
11631 fi
11632 done
11633 if test -z "$haveit"; then
11634 rpathdirs="$rpathdirs $found_dir"
11635 fi
11636 else
11637 haveit=
11638 for x in $LDFLAGS $LIBICONV; do
11639
11640 acl_save_prefix="$prefix"
11641 prefix="$acl_final_prefix"
11642 acl_save_exec_prefix="$exec_prefix"
11643 exec_prefix="$acl_final_exec_prefix"
11644 eval x=\"$x\"
11645 exec_prefix="$acl_save_exec_prefix"
11646 prefix="$acl_save_prefix"
11647
11648 if test "X$x" = "X-L$found_dir"; then
11649 haveit=yes
11650 break
11651 fi
11652 done
11653 if test -z "$haveit"; then
11654 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11655 fi
11656 if test "$hardcode_minus_L" != no; then
11657 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11658 else
11659 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11660 fi
11661 fi
11662 fi
11663 fi
11664 else
11665 if test "X$found_a" != "X"; then
11666 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11667 else
11668 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11669 fi
11670 fi
11671 additional_includedir=
11672 case "$found_dir" in
11673 */lib | */lib/)
11674 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11675 additional_includedir="$basedir/include"
11676 ;;
11677 esac
11678 if test "X$additional_includedir" != "X"; then
11679 if test "X$additional_includedir" != "X/usr/include"; then
11680 haveit=
11681 if test "X$additional_includedir" = "X/usr/local/include"; then
11682 if test -n "$GCC"; then
11683 case $host_os in
18fc9bd4 11684 linux*) haveit=yes;;
dfb77e37
KC
11685 esac
11686 fi
11687 fi
11688 if test -z "$haveit"; then
11689 for x in $CPPFLAGS $INCICONV; do
11690
11691 acl_save_prefix="$prefix"
11692 prefix="$acl_final_prefix"
11693 acl_save_exec_prefix="$exec_prefix"
11694 exec_prefix="$acl_final_exec_prefix"
11695 eval x=\"$x\"
11696 exec_prefix="$acl_save_exec_prefix"
11697 prefix="$acl_save_prefix"
11698
11699 if test "X$x" = "X-I$additional_includedir"; then
11700 haveit=yes
11701 break
11702 fi
11703 done
11704 if test -z "$haveit"; then
11705 if test -d "$additional_includedir"; then
11706 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11707 fi
11708 fi
11709 fi
11710 fi
11711 fi
11712 if test -n "$found_la"; then
11713 save_libdir="$libdir"
11714 case "$found_la" in
11715 */* | *\\*) . "$found_la" ;;
11716 *) . "./$found_la" ;;
11717 esac
11718 libdir="$save_libdir"
11719 for dep in $dependency_libs; do
11720 case "$dep" in
11721 -L*)
11722 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11723 if test "X$additional_libdir" != "X/usr/lib"; then
11724 haveit=
11725 if test "X$additional_libdir" = "X/usr/local/lib"; then
11726 if test -n "$GCC"; then
11727 case $host_os in
18fc9bd4 11728 linux*) haveit=yes;;
dfb77e37
KC
11729 esac
11730 fi
11731 fi
11732 if test -z "$haveit"; then
11733 haveit=
11734 for x in $LDFLAGS $LIBICONV; do
11735
11736 acl_save_prefix="$prefix"
11737 prefix="$acl_final_prefix"
11738 acl_save_exec_prefix="$exec_prefix"
11739 exec_prefix="$acl_final_exec_prefix"
11740 eval x=\"$x\"
11741 exec_prefix="$acl_save_exec_prefix"
11742 prefix="$acl_save_prefix"
11743
11744 if test "X$x" = "X-L$additional_libdir"; then
11745 haveit=yes
11746 break
11747 fi
11748 done
11749 if test -z "$haveit"; then
11750 if test -d "$additional_libdir"; then
11751 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11752 fi
11753 fi
11754 haveit=
11755 for x in $LDFLAGS $LTLIBICONV; do
11756
11757 acl_save_prefix="$prefix"
11758 prefix="$acl_final_prefix"
11759 acl_save_exec_prefix="$exec_prefix"
11760 exec_prefix="$acl_final_exec_prefix"
11761 eval x=\"$x\"
11762 exec_prefix="$acl_save_exec_prefix"
11763 prefix="$acl_save_prefix"
11764
11765 if test "X$x" = "X-L$additional_libdir"; then
11766 haveit=yes
11767 break
11768 fi
11769 done
11770 if test -z "$haveit"; then
11771 if test -d "$additional_libdir"; then
11772 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11773 fi
11774 fi
11775 fi
11776 fi
11777 ;;
11778 -R*)
11779 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11780 if test "$enable_rpath" != no; then
11781 haveit=
11782 for x in $rpathdirs; do
11783 if test "X$x" = "X$dir"; then
11784 haveit=yes
11785 break
11786 fi
11787 done
11788 if test -z "$haveit"; then
11789 rpathdirs="$rpathdirs $dir"
11790 fi
11791 haveit=
11792 for x in $ltrpathdirs; do
11793 if test "X$x" = "X$dir"; then
11794 haveit=yes
11795 break
11796 fi
11797 done
11798 if test -z "$haveit"; then
11799 ltrpathdirs="$ltrpathdirs $dir"
11800 fi
11801 fi
11802 ;;
11803 -l*)
11804 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11805 ;;
11806 *.la)
11807 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11808 ;;
11809 *)
11810 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11811 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11812 ;;
11813 esac
11814 done
11815 fi
11816 else
11817 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11818 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11819 fi
11820 fi
11821 fi
11822 done
11823 done
11824 if test "X$rpathdirs" != "X"; then
11825 if test -n "$hardcode_libdir_separator"; then
11826 alldirs=
11827 for found_dir in $rpathdirs; do
11828 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11829 done
11830 acl_save_libdir="$libdir"
11831 libdir="$alldirs"
11832 eval flag=\"$hardcode_libdir_flag_spec\"
11833 libdir="$acl_save_libdir"
11834 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11835 else
11836 for found_dir in $rpathdirs; do
11837 acl_save_libdir="$libdir"
11838 libdir="$found_dir"
11839 eval flag=\"$hardcode_libdir_flag_spec\"
11840 libdir="$acl_save_libdir"
11841 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11842 done
11843 fi
11844 fi
11845 if test "X$ltrpathdirs" != "X"; then
11846 for found_dir in $ltrpathdirs; do
11847 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11848 done
11849 fi
11850
11851
11852
11853
11854
11855
11856
11857 am_save_CPPFLAGS="$CPPFLAGS"
11858
11859 for element in $INCICONV; do
11860 haveit=
11861 for x in $CPPFLAGS; do
11862
11863 acl_save_prefix="$prefix"
11864 prefix="$acl_final_prefix"
11865 acl_save_exec_prefix="$exec_prefix"
11866 exec_prefix="$acl_final_exec_prefix"
11867 eval x=\"$x\"
11868 exec_prefix="$acl_save_exec_prefix"
11869 prefix="$acl_save_prefix"
11870
11871 if test "X$x" = "X$element"; then
11872 haveit=yes
11873 break
11874 fi
11875 done
11876 if test -z "$haveit"; then
11877 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11878 fi
11879 done
eb158727
ZW
11880
11881
b61ff9c8
BS
11882 echo "$as_me:$LINENO: checking for iconv" >&5
11883echo $ECHO_N "checking for iconv... $ECHO_C" >&6
ba479fd2
NN
11884if test "${am_cv_func_iconv+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
f91abfce 11886else
ba479fd2 11887
f91abfce
TT
11888 am_cv_func_iconv="no, consider installing GNU libiconv"
11889 am_cv_lib_iconv=no
ba479fd2 11890 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
11891/* confdefs.h. */
11892_ACEOF
11893cat confdefs.h >>conftest.$ac_ext
11894cat >>conftest.$ac_ext <<_ACEOF
11895/* end confdefs.h. */
f91abfce
TT
11896#include <stdlib.h>
11897#include <iconv.h>
ba479fd2
NN
11898int
11899main ()
11900{
f91abfce
TT
11901iconv_t cd = iconv_open("","");
11902 iconv(cd,NULL,NULL,NULL,NULL);
11903 iconv_close(cd);
ba479fd2
NN
11904 ;
11905 return 0;
11906}
11907_ACEOF
11908rm -f conftest.$ac_objext conftest$ac_exeext
b61ff9c8
BS
11909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910 (eval $ac_link) 2>conftest.er1
ba479fd2 11911 ac_status=$?
86da66b5
HPN
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
ba479fd2 11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
11916 (exit $ac_status); } &&
11917 { ac_try='test -z "$ac_c_werror_flag"
11918 || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest$ac_exeext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
f91abfce
TT
11930 am_cv_func_iconv=yes
11931else
ba479fd2
NN
11932 echo "$as_me: failed program was:" >&5
11933sed 's/^/| /' conftest.$ac_ext >&5
11934
f91abfce 11935fi
b61ff9c8 11936rm -f conftest.err conftest.$ac_objext \
86da66b5 11937 conftest$ac_exeext conftest.$ac_ext
f91abfce
TT
11938 if test "$am_cv_func_iconv" != yes; then
11939 am_save_LIBS="$LIBS"
dfb77e37 11940 LIBS="$LIBS $LIBICONV"
ba479fd2 11941 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
11942/* confdefs.h. */
11943_ACEOF
11944cat confdefs.h >>conftest.$ac_ext
11945cat >>conftest.$ac_ext <<_ACEOF
11946/* end confdefs.h. */
f91abfce
TT
11947#include <stdlib.h>
11948#include <iconv.h>
ba479fd2
NN
11949int
11950main ()
11951{
f91abfce
TT
11952iconv_t cd = iconv_open("","");
11953 iconv(cd,NULL,NULL,NULL,NULL);
11954 iconv_close(cd);
ba479fd2
NN
11955 ;
11956 return 0;
11957}
11958_ACEOF
11959rm -f conftest.$ac_objext conftest$ac_exeext
b61ff9c8
BS
11960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11961 (eval $ac_link) 2>conftest.er1
ba479fd2 11962 ac_status=$?
86da66b5
HPN
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
ba479fd2 11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag"
11969 || test ! -s conftest.err'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest$ac_exeext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
f91abfce
TT
11981 am_cv_lib_iconv=yes
11982 am_cv_func_iconv=yes
11983else
ba479fd2
NN
11984 echo "$as_me: failed program was:" >&5
11985sed 's/^/| /' conftest.$ac_ext >&5
11986
f91abfce 11987fi
b61ff9c8 11988rm -f conftest.err conftest.$ac_objext \
86da66b5 11989 conftest$ac_exeext conftest.$ac_ext
f91abfce
TT
11990 LIBS="$am_save_LIBS"
11991 fi
6e3f3080 11992
ba479fd2 11993fi
b61ff9c8
BS
11994echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11995echo "${ECHO_T}$am_cv_func_iconv" >&6
63cf211a 11996 if test "$am_cv_func_iconv" = yes; then
ba479fd2
NN
11997
11998cat >>confdefs.h <<\_ACEOF
f91abfce 11999#define HAVE_ICONV 1
ba479fd2 12000_ACEOF
f91abfce 12001
dfb77e37
KC
12002 fi
12003 if test "$am_cv_lib_iconv" = yes; then
b61ff9c8
BS
12004 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12005echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12006 echo "$as_me:$LINENO: result: $LIBICONV" >&5
12007echo "${ECHO_T}$LIBICONV" >&6
dfb77e37
KC
12008 else
12009 CPPFLAGS="$am_save_CPPFLAGS"
12010 LIBICONV=
12011 LTLIBICONV=
12012 fi
12013
12014
12015
12016 if test "$am_cv_func_iconv" = yes; then
b61ff9c8
BS
12017 echo "$as_me:$LINENO: checking for iconv declaration" >&5
12018echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
ba479fd2
NN
12019 if test "${am_cv_proto_iconv+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
f91abfce 12021else
ba479fd2
NN
12022
12023 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
12024/* confdefs.h. */
12025_ACEOF
12026cat confdefs.h >>conftest.$ac_ext
12027cat >>conftest.$ac_ext <<_ACEOF
12028/* end confdefs.h. */
f91abfce
TT
12029
12030#include <stdlib.h>
12031#include <iconv.h>
12032extern
12033#ifdef __cplusplus
12034"C"
12035#endif
12036#if defined(__STDC__) || defined(__cplusplus)
12037size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12038#else
12039size_t iconv();
12040#endif
12041
ba479fd2
NN
12042int
12043main ()
12044{
f91abfce 12045
ba479fd2
NN
12046 ;
12047 return 0;
12048}
12049_ACEOF
12050rm -f conftest.$ac_objext
b61ff9c8
BS
12051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12052 (eval $ac_compile) 2>conftest.er1
ba479fd2 12053 ac_status=$?
86da66b5
HPN
12054 grep -v '^ *+' conftest.er1 >conftest.err
12055 rm -f conftest.er1
12056 cat conftest.err >&5
ba479fd2 12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
12058 (exit $ac_status); } &&
12059 { ac_try='test -z "$ac_c_werror_flag"
12060 || test ! -s conftest.err'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest.$ac_objext'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
f91abfce
TT
12072 am_cv_proto_iconv_arg1=""
12073else
ba479fd2
NN
12074 echo "$as_me: failed program was:" >&5
12075sed 's/^/| /' conftest.$ac_ext >&5
12076
b61ff9c8 12077am_cv_proto_iconv_arg1="const"
f91abfce 12078fi
b61ff9c8 12079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f91abfce
TT
12080 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12081fi
12082
12083 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b61ff9c8 12084 echo "$as_me:$LINENO: result: ${ac_t:-
ba479fd2
NN
12085 }$am_cv_proto_iconv" >&5
12086echo "${ECHO_T}${ac_t:-
b61ff9c8 12087 }$am_cv_proto_iconv" >&6
ba479fd2
NN
12088
12089cat >>confdefs.h <<_ACEOF
f91abfce 12090#define ICONV_CONST $am_cv_proto_iconv_arg1
ba479fd2 12091_ACEOF
f91abfce
TT
12092
12093 fi
f91abfce 12094
56694dd9
ZW
12095# Until we have in-tree GNU iconv:
12096LIBICONV_DEP=
12097
12098
18fc9bd4 12099
b61ff9c8
BS
12100 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12101echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
18fc9bd4
RG
12102if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104else
12105 cat >conftest.$ac_ext <<_ACEOF
12106/* confdefs.h. */
12107_ACEOF
12108cat confdefs.h >>conftest.$ac_ext
12109cat >>conftest.$ac_ext <<_ACEOF
12110/* end confdefs.h. */
12111#include <locale.h>
12112int
12113main ()
12114{
12115return LC_MESSAGES
12116 ;
12117 return 0;
12118}
12119_ACEOF
12120rm -f conftest.$ac_objext conftest$ac_exeext
b61ff9c8
BS
12121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12122 (eval $ac_link) 2>conftest.er1
18fc9bd4
RG
12123 ac_status=$?
12124 grep -v '^ *+' conftest.er1 >conftest.err
12125 rm -f conftest.er1
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
12128 (exit $ac_status); } &&
12129 { ac_try='test -z "$ac_c_werror_flag"
12130 || test ! -s conftest.err'
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); }; } &&
12136 { ac_try='test -s conftest$ac_exeext'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; }; then
18fc9bd4
RG
12142 am_cv_val_LC_MESSAGES=yes
12143else
12144 echo "$as_me: failed program was:" >&5
12145sed 's/^/| /' conftest.$ac_ext >&5
12146
b61ff9c8 12147am_cv_val_LC_MESSAGES=no
18fc9bd4 12148fi
b61ff9c8 12149rm -f conftest.err conftest.$ac_objext \
18fc9bd4
RG
12150 conftest$ac_exeext conftest.$ac_ext
12151fi
b61ff9c8
BS
12152echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12153echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
18fc9bd4
RG
12154 if test $am_cv_val_LC_MESSAGES = yes; then
12155
12156cat >>confdefs.h <<\_ACEOF
12157#define HAVE_LC_MESSAGES 1
12158_ACEOF
12159
12160 fi
12161
f91abfce 12162
a03ea89b 12163
b61ff9c8
BS
12164 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12165echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
a03ea89b
BM
12166if test "${am_cv_langinfo_codeset+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168else
12169 cat >conftest.$ac_ext <<_ACEOF
12170/* confdefs.h. */
12171_ACEOF
12172cat confdefs.h >>conftest.$ac_ext
12173cat >>conftest.$ac_ext <<_ACEOF
12174/* end confdefs.h. */
12175#include <langinfo.h>
12176int
12177main ()
12178{
12179char* cs = nl_langinfo(CODESET);
12180 ;
12181 return 0;
12182}
12183_ACEOF
12184rm -f conftest.$ac_objext conftest$ac_exeext
b61ff9c8
BS
12185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12186 (eval $ac_link) 2>conftest.er1
a03ea89b
BM
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
12192 (exit $ac_status); } &&
12193 { ac_try='test -z "$ac_c_werror_flag"
12194 || test ! -s conftest.err'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; } &&
12200 { ac_try='test -s conftest$ac_exeext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
a03ea89b
BM
12206 am_cv_langinfo_codeset=yes
12207else
12208 echo "$as_me: failed program was:" >&5
12209sed 's/^/| /' conftest.$ac_ext >&5
12210
b61ff9c8 12211am_cv_langinfo_codeset=no
a03ea89b 12212fi
b61ff9c8 12213rm -f conftest.err conftest.$ac_objext \
a03ea89b
BM
12214 conftest$ac_exeext conftest.$ac_ext
12215
12216fi
b61ff9c8
BS
12217echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12218echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
a03ea89b
BM
12219 if test $am_cv_langinfo_codeset = yes; then
12220
12221cat >>confdefs.h <<\_ACEOF
12222#define HAVE_LANGINFO_CODESET 1
12223_ACEOF
12224
12225 fi
12226
12227
86cf1cbd
KG
12228# We will need to find libiberty.h and ansidecl.h
12229saved_CFLAGS="$CFLAGS"
12230CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
ad6717df
PB
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
6a257778 12252
ad6717df
PB
12253
12254
0d667716
KG
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
367e8319 12265
0d667716
KG
12266
12267
7391b66c 12268
ed5b9f96
GK
12269
12270for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12271 strsignal strstr strverscmp \
12272 errno snprintf vsnprintf vasprintf malloc realloc calloc \
367e8319 12273 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
81bf3d9e 12274do
ad6717df 12275 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
b61ff9c8
BS
12276echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12277echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12278if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
ba479fd2
NN
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12280else
12281 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
12282/* confdefs.h. */
12283_ACEOF
12284cat confdefs.h >>conftest.$ac_ext
12285cat >>conftest.$ac_ext <<_ACEOF
12286/* end confdefs.h. */
7afe8c41
KG
12287#undef $ac_tr_decl
12288#define $ac_tr_decl 1
ba479fd2 12289
d02af173 12290#include "ansidecl.h"
86cf1cbd 12291#include "system.h"
f31e826b 12292
ba479fd2
NN
12293int
12294main ()
12295{
86cf1cbd
KG
12296#ifndef $ac_func
12297char *(*pfn) = (char *(*)) $ac_func ;
12298#endif
ba479fd2
NN
12299 ;
12300 return 0;
12301}
12302_ACEOF
12303rm -f conftest.$ac_objext
b61ff9c8
BS
12304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12305 (eval $ac_compile) 2>conftest.er1
ba479fd2 12306 ac_status=$?
86da66b5
HPN
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
ba479fd2 12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag"
12313 || test ! -s conftest.err'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; } &&
12319 { ac_try='test -s conftest.$ac_objext'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
f31e826b 12325 eval "gcc_cv_have_decl_$ac_func=yes"
81bf3d9e 12326else
ba479fd2
NN
12327 echo "$as_me: failed program was:" >&5
12328sed 's/^/| /' conftest.$ac_ext >&5
12329
b61ff9c8 12330eval "gcc_cv_have_decl_$ac_func=no"
81bf3d9e 12331fi
b61ff9c8 12332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
81bf3d9e
RH
12333fi
12334
f31e826b 12335if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
b61ff9c8
BS
12336 echo "$as_me:$LINENO: result: yes" >&5
12337echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
86cf1cbd 12338#define $ac_tr_decl 1
ba479fd2
NN
12339_ACEOF
12340
81bf3d9e 12341else
b61ff9c8
BS
12342 echo "$as_me:$LINENO: result: no" >&5
12343echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
f31e826b 12344#define $ac_tr_decl 0
ba479fd2
NN
12345_ACEOF
12346
81bf3d9e
RH
12347fi
12348
12349done
ba479fd2 12350
ba479fd2 12351
ba479fd2 12352
81bf3d9e 12353
81bf3d9e
RH
12354
12355for ac_func in getrlimit setrlimit getrusage
12356do
ad6717df 12357 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
b61ff9c8
BS
12358echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12359echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12360if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
ba479fd2
NN
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12362else
12363 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
12364/* confdefs.h. */
12365_ACEOF
12366cat confdefs.h >>conftest.$ac_ext
12367cat >>conftest.$ac_ext <<_ACEOF
12368/* end confdefs.h. */
7afe8c41
KG
12369#undef $ac_tr_decl
12370#define $ac_tr_decl 1
ba479fd2 12371
d02af173 12372#include "ansidecl.h"
86cf1cbd 12373#include "system.h"
81bf3d9e
RH
12374#ifdef HAVE_SYS_RESOURCE_H
12375#include <sys/resource.h>
12376#endif
12377
f31e826b 12378
ba479fd2
NN
12379int
12380main ()
12381{
86cf1cbd
KG
12382#ifndef $ac_func
12383char *(*pfn) = (char *(*)) $ac_func ;
12384#endif
ba479fd2
NN
12385 ;
12386 return 0;
12387}
12388_ACEOF
12389rm -f conftest.$ac_objext
b61ff9c8
BS
12390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>conftest.er1
ba479fd2 12392 ac_status=$?
86da66b5
HPN
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
ba479fd2 12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
12397 (exit $ac_status); } &&
12398 { ac_try='test -z "$ac_c_werror_flag"
12399 || test ! -s conftest.err'
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest.$ac_objext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
f31e826b 12411 eval "gcc_cv_have_decl_$ac_func=yes"
81bf3d9e 12412else
ba479fd2
NN
12413 echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
b61ff9c8 12416eval "gcc_cv_have_decl_$ac_func=no"
81bf3d9e 12417fi
b61ff9c8 12418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
81bf3d9e
RH
12419fi
12420
f31e826b 12421if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
b61ff9c8
BS
12422 echo "$as_me:$LINENO: result: yes" >&5
12423echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
86cf1cbd 12424#define $ac_tr_decl 1
ba479fd2
NN
12425_ACEOF
12426
81bf3d9e 12427else
b61ff9c8
BS
12428 echo "$as_me:$LINENO: result: no" >&5
12429echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
f31e826b 12430#define $ac_tr_decl 0
ba479fd2
NN
12431_ACEOF
12432
81bf3d9e
RH
12433fi
12434
12435done
86cf1cbd 12436
81bf3d9e 12437
ba479fd2 12438cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
12439/* confdefs.h. */
12440_ACEOF
12441cat confdefs.h >>conftest.$ac_ext
12442cat >>conftest.$ac_ext <<_ACEOF
12443/* end confdefs.h. */
b2522d2b
HPN
12444
12445#include "ansidecl.h"
12446#include "system.h"
12447#ifdef HAVE_SYS_RESOURCE_H
12448#include <sys/resource.h>
12449#endif
12450
ba479fd2
NN
12451int
12452main ()
12453{
b2522d2b 12454rlim_t l = 0;
ba479fd2
NN
12455 ;
12456 return 0;
12457}
12458_ACEOF
12459rm -f conftest.$ac_objext
b61ff9c8
BS
12460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12461 (eval $ac_compile) 2>conftest.er1
ba479fd2 12462 ac_status=$?
86da66b5
HPN
12463 grep -v '^ *+' conftest.er1 >conftest.err
12464 rm -f conftest.er1
12465 cat conftest.err >&5
ba479fd2 12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
12467 (exit $ac_status); } &&
12468 { ac_try='test -z "$ac_c_werror_flag"
12469 || test ! -s conftest.err'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; } &&
12475 { ac_try='test -s conftest.$ac_objext'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; }; then
b2522d2b
HPN
12481 :
12482else
ba479fd2
NN
12483 echo "$as_me: failed program was:" >&5
12484sed 's/^/| /' conftest.$ac_ext >&5
12485
12486
12487cat >>confdefs.h <<\_ACEOF
b2522d2b 12488#define rlim_t long
ba479fd2 12489_ACEOF
b2522d2b
HPN
12490
12491fi
b61ff9c8 12492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b2522d2b 12493
2102b2fe
RS
12494# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12495# FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12496# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12497# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
ad6717df 12498
351df804 12499for ac_func in ldgetname
c1800ec8 12500do
ad6717df 12501 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
b61ff9c8
BS
12502echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12503echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12504if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
ba479fd2
NN
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12506else
12507 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
12508/* confdefs.h. */
12509_ACEOF
12510cat confdefs.h >>conftest.$ac_ext
12511cat >>conftest.$ac_ext <<_ACEOF
12512/* end confdefs.h. */
c1800ec8
ZW
12513#undef $ac_tr_decl
12514#define $ac_tr_decl 1
ba479fd2 12515
351df804
KG
12516#include "ansidecl.h"
12517#include "system.h"
12518#ifdef HAVE_LDFCN_H
2102b2fe
RS
12519#undef FREAD
12520#undef FWRITE
351df804
KG
12521#include <ldfcn.h>
12522#endif
12523
12524
ba479fd2
NN
12525int
12526main ()
12527{
351df804
KG
12528#ifndef $ac_func
12529char *(*pfn) = (char *(*)) $ac_func ;
12530#endif
ba479fd2
NN
12531 ;
12532 return 0;
12533}
12534_ACEOF
12535rm -f conftest.$ac_objext
b61ff9c8
BS
12536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
ba479fd2 12538 ac_status=$?
86da66b5
HPN
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
ba479fd2 12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
351df804
KG
12557 eval "gcc_cv_have_decl_$ac_func=yes"
12558else
ba479fd2
NN
12559 echo "$as_me: failed program was:" >&5
12560sed 's/^/| /' conftest.$ac_ext >&5
12561
b61ff9c8 12562eval "gcc_cv_have_decl_$ac_func=no"
351df804 12563fi
b61ff9c8 12564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
351df804
KG
12565fi
12566
12567if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
b61ff9c8
BS
12568 echo "$as_me:$LINENO: result: yes" >&5
12569echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
351df804 12570#define $ac_tr_decl 1
ba479fd2
NN
12571_ACEOF
12572
351df804 12573else
b61ff9c8
BS
12574 echo "$as_me:$LINENO: result: no" >&5
12575echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
351df804 12576#define $ac_tr_decl 0
ba479fd2
NN
12577_ACEOF
12578
351df804
KG
12579fi
12580
12581done
ba479fd2 12582
351df804
KG
12583
12584
12585for ac_func in times
12586do
ad6717df 12587 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
b61ff9c8
BS
12588echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12589echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12590if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
ba479fd2
NN
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592else
12593 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
12594/* confdefs.h. */
12595_ACEOF
12596cat confdefs.h >>conftest.$ac_ext
12597cat >>conftest.$ac_ext <<_ACEOF
12598/* end confdefs.h. */
351df804
KG
12599#undef $ac_tr_decl
12600#define $ac_tr_decl 1
ba479fd2 12601
c1800ec8
ZW
12602#include "ansidecl.h"
12603#include "system.h"
12604#ifdef HAVE_SYS_TIMES_H
12605#include <sys/times.h>
12606#endif
12607
12608
ba479fd2
NN
12609int
12610main ()
12611{
c1800ec8
ZW
12612#ifndef $ac_func
12613char *(*pfn) = (char *(*)) $ac_func ;
12614#endif
ba479fd2
NN
12615 ;
12616 return 0;
12617}
12618_ACEOF
12619rm -f conftest.$ac_objext
b61ff9c8
BS
12620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>conftest.er1
ba479fd2 12622 ac_status=$?
86da66b5
HPN
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
ba479fd2 12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
12627 (exit $ac_status); } &&
12628 { ac_try='test -z "$ac_c_werror_flag"
12629 || test ! -s conftest.err'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try='test -s conftest.$ac_objext'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12638 ac_status=$?
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; }; then
2f41c1d6
PB
12641 eval "gcc_cv_have_decl_$ac_func=yes"
12642else
12643 echo "$as_me: failed program was:" >&5
12644sed 's/^/| /' conftest.$ac_ext >&5
ab22c1fa 12645
b61ff9c8 12646eval "gcc_cv_have_decl_$ac_func=no"
2f41c1d6 12647fi
b61ff9c8 12648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c1800ec8
ZW
12649fi
12650
12651if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
b61ff9c8
BS
12652 echo "$as_me:$LINENO: result: yes" >&5
12653echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
c1800ec8 12654#define $ac_tr_decl 1
ba479fd2
NN
12655_ACEOF
12656
c1800ec8 12657else
b61ff9c8
BS
12658 echo "$as_me:$LINENO: result: no" >&5
12659echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
c1800ec8 12660#define $ac_tr_decl 0
ba479fd2
NN
12661_ACEOF
12662
c1800ec8
ZW
12663fi
12664
12665done
c1800ec8
ZW
12666
12667
4f6d8cc8
GK
12668
12669for ac_func in sigaltstack
12670do
12671 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
b61ff9c8
BS
12672echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12673echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12674if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
4f6d8cc8
GK
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12676else
12677 cat >conftest.$ac_ext <<_ACEOF
12678/* confdefs.h. */
12679_ACEOF
12680cat confdefs.h >>conftest.$ac_ext
12681cat >>conftest.$ac_ext <<_ACEOF
12682/* end confdefs.h. */
12683#undef $ac_tr_decl
12684#define $ac_tr_decl 1
12685
12686#include "ansidecl.h"
12687#include "system.h"
12688#include <signal.h>
12689
12690
12691int
12692main ()
12693{
12694#ifndef $ac_func
12695char *(*pfn) = (char *(*)) $ac_func ;
12696#endif
12697 ;
12698 return 0;
12699}
12700_ACEOF
12701rm -f conftest.$ac_objext
b61ff9c8
BS
12702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703 (eval $ac_compile) 2>conftest.er1
4f6d8cc8
GK
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
12709 (exit $ac_status); } &&
12710 { ac_try='test -z "$ac_c_werror_flag"
12711 || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try='test -s conftest.$ac_objext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
8b1f719a
PB
12723 eval "gcc_cv_have_decl_$ac_func=yes"
12724else
12725 echo "$as_me: failed program was:" >&5
12726sed 's/^/| /' conftest.$ac_ext >&5
4f6d8cc8 12727
b61ff9c8 12728eval "gcc_cv_have_decl_$ac_func=no"
4f6d8cc8 12729fi
b61ff9c8 12730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4f6d8cc8
GK
12731fi
12732
12733if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
b61ff9c8
BS
12734 echo "$as_me:$LINENO: result: yes" >&5
12735echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
4f6d8cc8
GK
12736#define $ac_tr_decl 1
12737_ACEOF
12738
12739else
b61ff9c8
BS
12740 echo "$as_me:$LINENO: result: no" >&5
12741echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
4f6d8cc8
GK
12742#define $ac_tr_decl 0
12743_ACEOF
12744
12745fi
12746
12747done
12748
12749
c1800ec8 12750# More time-related stuff.
b61ff9c8
BS
12751echo "$as_me:$LINENO: checking for struct tms" >&5
12752echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
ba479fd2
NN
12753if test "${ac_cv_struct_tms+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755else
12756
12757cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
12758/* confdefs.h. */
12759_ACEOF
12760cat confdefs.h >>conftest.$ac_ext
12761cat >>conftest.$ac_ext <<_ACEOF
12762/* end confdefs.h. */
c1800ec8
ZW
12763
12764#include "ansidecl.h"
12765#include "system.h"
12766#ifdef HAVE_SYS_TIMES_H
12767#include <sys/times.h>
12768#endif
12769
ba479fd2
NN
12770int
12771main ()
12772{
c1800ec8 12773struct tms tms;
ba479fd2
NN
12774 ;
12775 return 0;
12776}
12777_ACEOF
12778rm -f conftest.$ac_objext
b61ff9c8
BS
12779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780 (eval $ac_compile) 2>conftest.er1
ba479fd2 12781 ac_status=$?
86da66b5
HPN
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
ba479fd2 12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
12786 (exit $ac_status); } &&
12787 { ac_try='test -z "$ac_c_werror_flag"
12788 || test ! -s conftest.err'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } &&
12794 { ac_try='test -s conftest.$ac_objext'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
c1800ec8
ZW
12800 ac_cv_struct_tms=yes
12801else
ba479fd2
NN
12802 echo "$as_me: failed program was:" >&5
12803sed 's/^/| /' conftest.$ac_ext >&5
12804
b61ff9c8 12805ac_cv_struct_tms=no
c1800ec8 12806fi
b61ff9c8 12807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c1800ec8 12808fi
b61ff9c8
BS
12809echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12810echo "${ECHO_T}$ac_cv_struct_tms" >&6
63cf211a 12811if test $ac_cv_struct_tms = yes; then
ba479fd2
NN
12812
12813cat >>confdefs.h <<\_ACEOF
c1800ec8 12814#define HAVE_STRUCT_TMS 1
ba479fd2 12815_ACEOF
c1800ec8
ZW
12816
12817fi
12818
12819# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12820# revisit after autoconf 2.50.
b61ff9c8
BS
12821echo "$as_me:$LINENO: checking for clock_t" >&5
12822echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
ba479fd2
NN
12823if test "${gcc_cv_type_clock_t+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12825else
12826
12827cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
12828/* confdefs.h. */
12829_ACEOF
12830cat confdefs.h >>conftest.$ac_ext
12831cat >>conftest.$ac_ext <<_ACEOF
12832/* end confdefs.h. */
c1800ec8
ZW
12833
12834#include "ansidecl.h"
12835#include "system.h"
12836
ba479fd2
NN
12837int
12838main ()
12839{
c1800ec8 12840clock_t x;
ba479fd2
NN
12841 ;
12842 return 0;
12843}
12844_ACEOF
12845rm -f conftest.$ac_objext
b61ff9c8
BS
12846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847 (eval $ac_compile) 2>conftest.er1
ba479fd2 12848 ac_status=$?
86da66b5
HPN
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
ba479fd2 12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
12853 (exit $ac_status); } &&
12854 { ac_try='test -z "$ac_c_werror_flag"
12855 || test ! -s conftest.err'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; } &&
12861 { ac_try='test -s conftest.$ac_objext'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
c1800ec8
ZW
12867 gcc_cv_type_clock_t=yes
12868else
ba479fd2
NN
12869 echo "$as_me: failed program was:" >&5
12870sed 's/^/| /' conftest.$ac_ext >&5
12871
b61ff9c8 12872gcc_cv_type_clock_t=no
c1800ec8 12873fi
b61ff9c8 12874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c1800ec8 12875fi
b61ff9c8
BS
12876echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12877echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
63cf211a 12878if test $gcc_cv_type_clock_t = yes; then
ba479fd2
NN
12879
12880cat >>confdefs.h <<\_ACEOF
c1800ec8 12881#define HAVE_CLOCK_T 1
ba479fd2 12882_ACEOF
c1800ec8
ZW
12883
12884fi
12885
eb70d86d
AS
12886# Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12887CFLAGS="$saved_CFLAGS"
12888
b61ff9c8 12889# Check whether --enable-initfini-array or --disable-initfini-array was given.
07cf4226 12890if test "${enable_initfini_array+set}" = set; then
b61ff9c8
BS
12891 enableval="$enable_initfini_array"
12892
07cf4226 12893else
ba479fd2 12894
b61ff9c8
BS
12895echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12896echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
ba479fd2
NN
12897if test "${gcc_cv_initfini_array+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
07cf4226 12899else
eb70d86d 12900 if test "$cross_compiling" = yes; then
918c4fe4 12901 gcc_cv_initfini_array=no
eb70d86d 12902else
ba479fd2 12903 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
12904/* confdefs.h. */
12905_ACEOF
12906cat confdefs.h >>conftest.$ac_ext
12907cat >>conftest.$ac_ext <<_ACEOF
12908/* end confdefs.h. */
eb70d86d 12909
07cf4226
DM
12910static int x = -1;
12911int main (void) { return x; }
12912int foo (void) { x = 0; }
12913int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
ba479fd2
NN
12914_ACEOF
12915rm -f conftest$ac_exeext
b61ff9c8
BS
12916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917 (eval $ac_link) 2>&5
ba479fd2
NN
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b61ff9c8
BS
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
ba479fd2
NN
12923 ac_status=$?
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
918c4fe4 12926 gcc_cv_initfini_array=yes
eb70d86d 12927else
ba479fd2
NN
12928 echo "$as_me: program exited with status $ac_status" >&5
12929echo "$as_me: failed program was:" >&5
12930sed 's/^/| /' conftest.$ac_ext >&5
12931
12932( exit $ac_status )
12933gcc_cv_initfini_array=no
eb70d86d 12934fi
b61ff9c8 12935rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
eb70d86d 12936fi
07cf4226 12937fi
b61ff9c8
BS
12938echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12939echo "${ECHO_T}$gcc_cv_initfini_array" >&6
eb70d86d 12940 enable_initfini_array=$gcc_cv_initfini_array
07cf4226 12941
b61ff9c8 12942fi;
63cf211a 12943if test $enable_initfini_array = yes; then
ba479fd2
NN
12944
12945cat >>confdefs.h <<\_ACEOF
eb70d86d 12946#define HAVE_INITFINI_ARRAY 1
ba479fd2 12947_ACEOF
07cf4226 12948
eb70d86d 12949fi
81bf3d9e 12950
ba479fd2 12951# mkdir takes a single argument on some systems.
b61ff9c8
BS
12952echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12953echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
ba479fd2
NN
12954if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
75923b2f 12956else
ba479fd2 12957 cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
12958/* confdefs.h. */
12959_ACEOF
12960cat confdefs.h >>conftest.$ac_ext
12961cat >>conftest.$ac_ext <<_ACEOF
12962/* end confdefs.h. */
75923b2f
MK
12963
12964#include <sys/types.h>
12965#ifdef HAVE_SYS_STAT_H
12966# include <sys/stat.h>
12967#endif
12968#ifdef HAVE_UNISTD_H
12969# include <unistd.h>
12970#endif
12971#ifdef HAVE_DIRECT_H
12972# include <direct.h>
12973#endif
ba479fd2
NN
12974int
12975main ()
12976{
75923b2f 12977mkdir ("foo", 0);
ba479fd2
NN
12978 ;
12979 return 0;
12980}
12981_ACEOF
12982rm -f conftest.$ac_objext
b61ff9c8
BS
12983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12984 (eval $ac_compile) 2>conftest.er1
ba479fd2 12985 ac_status=$?
86da66b5
HPN
12986 grep -v '^ *+' conftest.er1 >conftest.err
12987 rm -f conftest.er1
12988 cat conftest.err >&5
ba479fd2 12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
12990 (exit $ac_status); } &&
12991 { ac_try='test -z "$ac_c_werror_flag"
12992 || test ! -s conftest.err'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try='test -s conftest.$ac_objext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
75923b2f
MK
13004 gcc_cv_mkdir_takes_one_arg=no
13005else
ba479fd2
NN
13006 echo "$as_me: failed program was:" >&5
13007sed 's/^/| /' conftest.$ac_ext >&5
13008
b61ff9c8 13009gcc_cv_mkdir_takes_one_arg=yes
75923b2f 13010fi
b61ff9c8 13011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
75923b2f 13012fi
b61ff9c8
BS
13013echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
13014echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
63cf211a 13015if test $gcc_cv_mkdir_takes_one_arg = yes ; then
ba479fd2
NN
13016
13017cat >>confdefs.h <<\_ACEOF
75923b2f 13018#define MKDIR_TAKES_ONE_ARG 1
ba479fd2 13019_ACEOF
75923b2f
MK
13020
13021fi
13022
13023
861bb6c1
JL
13024# File extensions
13025manext='.1'
13026objext='.o'
13027
13028
13029
4977bab6 13030# With Setjmp/Longjmp based exception handling.
b61ff9c8 13031# Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4977bab6 13032if test "${enable_sjlj_exceptions+set}" = set; then
b61ff9c8 13033 enableval="$enable_sjlj_exceptions"
399fe3e1
JDA
13034 case $target in
13035 *-*-hpux10*)
13036 if test $enableval != yes; then
13037 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
13038echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
13039 enableval=yes
13040 fi
13041 ;;
13042esac
13043force_sjlj_exceptions=yes
13044else
13045 case $target in
13046 *-*-hpux10*)
13047 force_sjlj_exceptions=yes
13048 enableval=yes
13049 ;;
13050 *)
13051 force_sjlj_exceptions=no
13052 ;;
13053esac
13054fi;
13055if test $force_sjlj_exceptions = yes; then
b61ff9c8 13056 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
63cf211a 13057
ba479fd2
NN
13058cat >>confdefs.h <<_ACEOF
13059#define CONFIG_SJLJ_EXCEPTIONS $sjlj
13060_ACEOF
4977bab6 13061
399fe3e1 13062fi
4977bab6 13063
443728bb
L
13064# For platforms with the unwind ABI which includes an unwind library,
13065# libunwind, we can choose to use the system libunwind.
4977bab6 13066
b61ff9c8 13067# Check whether --with-system-libunwind or --without-system-libunwind was given.
443728bb 13068if test "${with_system_libunwind+set}" = set; then
b61ff9c8 13069 withval="$with_system_libunwind"
4977bab6 13070
b61ff9c8 13071fi;
4977bab6 13072
e64f5acf
SE
13073# config.gcc also contains tests of with_system_libunwind.
13074if test x$with_system_libunwind = xyes; then
13075
13076cat >>confdefs.h <<\_ACEOF
13077#define HAVE_GETIPINFO 1
13078_ACEOF
13079
13080fi
13081
34a86c2b
NN
13082# --------------------------------------------------------
13083# Build, host, and target specific configuration fragments
13084# --------------------------------------------------------
13085
5b28c537
NN
13086# Collect build-machine-specific information.
13087. ${srcdir}/config.build
13088
a89ea0df
NN
13089# Collect host-machine-specific information.
13090. ${srcdir}/config.host
13091
ef69da62 13092target_gtfiles=
a89ea0df
NN
13093
13094# Collect target-machine-specific information.
8ad9fb33 13095. ${srcdir}/config.gcc
861bb6c1
JL
13096
13097extra_objs="${host_extra_objs} ${extra_objs}"
30500d84 13098extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
861bb6c1
JL
13099
13100# Default the target-machine variables that were not explicitly set.
75bffa71 13101if test x"$tm_file" = x
861bb6c1
JL
13102then tm_file=$cpu_type/$cpu_type.h; fi
13103
6b2adea9 13104if test x"$extra_headers" = x
861bb6c1
JL
13105then extra_headers=; fi
13106
75bffa71 13107if test x$md_file = x
e98e406f 13108then md_file=$cpu_type/$cpu_type.md; fi
861bb6c1 13109
75bffa71 13110if test x$out_file = x
861bb6c1
JL
13111then out_file=$cpu_type/$cpu_type.c; fi
13112
75bffa71 13113if test x"$tmake_file" = x
861bb6c1
JL
13114then tmake_file=$cpu_type/t-$cpu_type
13115fi
13116
90e6a802 13117if test x"$dwarf2" = xyes
756ee602 13118then tm_file="$tm_file tm-dwarf2.h"
90e6a802
RL
13119fi
13120
861bb6c1 13121# Say what files are being used for the output code and MD file.
11642c3a 13122echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
861bb6c1
JL
13123echo "Using \`$srcdir/config/$md_file' as machine description file."
13124
11642c3a 13125# If any of the xm_file variables contain nonexistent files, warn
4dc0535b
ZW
13126# about them and drop them.
13127
11642c3a
ZW
13128bx=
13129for x in $build_xm_file; do
13130 if test -f $srcdir/config/$x
13131 then bx="$bx $x"
ba479fd2
NN
13132 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13133echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11642c3a
ZW
13134 fi
13135done
13136build_xm_file="$bx"
13137
13138hx=
13139for x in $host_xm_file; do
13140 if test -f $srcdir/config/$x
13141 then hx="$hx $x"
ba479fd2
NN
13142 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13143echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11642c3a
ZW
13144 fi
13145done
13146host_xm_file="$hx"
13147
13148tx=
13149for x in $xm_file; do
13150 if test -f $srcdir/config/$x
13151 then tx="$tx $x"
ba479fd2
NN
13152 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13153echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11642c3a
ZW
13154 fi
13155done
13156xm_file="$tx"
13157
861bb6c1
JL
13158count=a
13159for f in $tm_file; do
13160 count=${count}x
13161done
75bffa71 13162if test $count = ax; then
861bb6c1
JL
13163 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13164else
13165 echo "Using the following target machine macro files:"
13166 for f in $tm_file; do
13167 echo " $srcdir/config/$f"
13168 done
13169fi
13170
4977bab6 13171if test x$need_64bit_hwint = xyes; then
ba479fd2
NN
13172
13173cat >>confdefs.h <<\_ACEOF
4977bab6 13174#define NEED_64BIT_HOST_WIDE_INT 1
ba479fd2 13175_ACEOF
4977bab6
ZW
13176
13177fi
13178
99fa8911
AP
13179if test x$use_long_long_for_widest_fast_int = xyes; then
13180
13181cat >>confdefs.h <<\_ACEOF
13182#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13183_ACEOF
13184
13185fi
13186
861bb6c1
JL
13187count=a
13188for f in $host_xm_file; do
13189 count=${count}x
13190done
11642c3a
ZW
13191if test $count = a; then
13192 :
13193elif test $count = ax; then
861bb6c1
JL
13194 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13195else
13196 echo "Using the following host machine macro files:"
13197 for f in $host_xm_file; do
13198 echo " $srcdir/config/$f"
13199 done
13200fi
476d9098 13201echo "Using ${out_host_hook_obj} for host machine hooks."
861bb6c1 13202
75bffa71 13203if test "$host_xm_file" != "$build_xm_file"; then
861bb6c1
JL
13204 count=a
13205 for f in $build_xm_file; do
13206 count=${count}x
13207 done
11642c3a
ZW
13208 if test $count = a; then
13209 :
13210 elif test $count = ax; then
861bb6c1
JL
13211 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13212 else
13213 echo "Using the following build machine macro files:"
13214 for f in $build_xm_file; do
13215 echo " $srcdir/config/$f"
13216 done
13217 fi
13218fi
13219
4f6d8cc8 13220case ${host} in
b8ec3cc8 13221 powerpc*-*-darwin*)
b61ff9c8
BS
13222 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13223echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
4f6d8cc8
GK
13224if test "${gcc_cv_mcontext_underscores+set}" = set; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13226else
13227 cat >conftest.$ac_ext <<_ACEOF
13228
ba7da42a 13229#include <sys/cdefs.h>
de4fb767 13230#include <sys/signal.h>
4f6d8cc8
GK
13231#include <ucontext.h>
13232int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13233
13234_ACEOF
13235rm -f conftest.$ac_objext
b61ff9c8
BS
13236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13237 (eval $ac_compile) 2>conftest.er1
4f6d8cc8
GK
13238 ac_status=$?
13239 grep -v '^ *+' conftest.er1 >conftest.err
13240 rm -f conftest.er1
13241 cat conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
13243 (exit $ac_status); } &&
13244 { ac_try='test -z "$ac_c_werror_flag"
13245 || test ! -s conftest.err'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; } &&
13251 { ac_try='test -s conftest.$ac_objext'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
4f6d8cc8
GK
13257 gcc_cv_mcontext_underscores=no
13258else
13259 echo "$as_me: failed program was:" >&5
13260sed 's/^/| /' conftest.$ac_ext >&5
13261
b61ff9c8 13262gcc_cv_mcontext_underscores=yes
4f6d8cc8 13263fi
b61ff9c8 13264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4f6d8cc8 13265fi
b61ff9c8
BS
13266echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13267echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
4f6d8cc8
GK
13268 if test $gcc_cv_mcontext_underscores = yes; then
13269
13270cat >>confdefs.h <<\_ACEOF
13271#define HAS_MCONTEXT_T_UNDERSCORES
13272_ACEOF
13273
13274 fi
13275 ;;
13276esac
13277
8bb915b6
NN
13278# ---------
13279# Threading
13280# ---------
13281
c2e494a8 13282# Check if a valid thread package
615be2cf 13283case ${enable_threads} in
c2e494a8
NN
13284 "" | no)
13285 # No threads
13286 target_thread_file='single'
13287 ;;
13288 yes)
13289 # default
13290 target_thread_file='single'
13291 ;;
18167442 13292 aix | dce | gnat | irix | posix | posix95 | rtems | \
d9dced13 13293 single | solaris | vxworks | win32 | mipssde)
615be2cf 13294 target_thread_file=${enable_threads}
c2e494a8
NN
13295 ;;
13296 *)
615be2cf 13297 echo "${enable_threads} is an unknown thread package" 1>&2
c2e494a8
NN
13298 exit 1
13299 ;;
13300esac
13301
13302if test x${thread_file} = x; then
13303 # No thread file set by target-specific clauses in config.gcc,
13304 # so use file chosen by default logic above
13305 thread_file=${target_thread_file}
861bb6c1
JL
13306fi
13307
8bb915b6
NN
13308# Make gthr-default.h if we have a thread file.
13309gthread_flags=
13310if test $thread_file != single; then
b15a9f63
RW
13311 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13312 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13313 rm -f gthr-default.h-t
13314 else
13315 mv -f gthr-default.h-t gthr-default.h
13316 fi
8bb915b6
NN
13317 gthread_flags=-DHAVE_GTHR_DEFAULT
13318fi
13319
13320
13321# --------
13322# UNSORTED
13323# --------
13324
18fbf599 13325use_cxa_atexit=no
2121a768
JT
13326if test x$enable___cxa_atexit = xyes || \
13327 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
18fbf599 13328 if test x$host = x$target; then
97388150
DS
13329 case $host in
13330 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13331 # keyed to flag_use_cxa_atexit
13332 *-*-mingw32*)
13333 use_cxa_atexit=yes
13334 ;;
13335 *)
b61ff9c8
BS
13336 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13337echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
354b7da5
DH
13338if test "${ac_cv_func___cxa_atexit+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13340else
13341 cat >conftest.$ac_ext <<_ACEOF
354b7da5
DH
13342/* confdefs.h. */
13343_ACEOF
13344cat confdefs.h >>conftest.$ac_ext
13345cat >>conftest.$ac_ext <<_ACEOF
13346/* end confdefs.h. */
86da66b5
HPN
13347/* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13349#define __cxa_atexit innocuous___cxa_atexit
13350
354b7da5
DH
13351/* System header to define __stub macros and hopefully few prototypes,
13352 which can conflict with char __cxa_atexit (); below.
13353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13354 <limits.h> exists even on freestanding compilers. */
86da66b5 13355
354b7da5
DH
13356#ifdef __STDC__
13357# include <limits.h>
13358#else
13359# include <assert.h>
13360#endif
86da66b5
HPN
13361
13362#undef __cxa_atexit
13363
b61ff9c8 13364/* Override any gcc2 internal prototype to avoid an error. */
354b7da5
DH
13365#ifdef __cplusplus
13366extern "C"
b61ff9c8 13367{
354b7da5 13368#endif
b61ff9c8
BS
13369/* We use char because int might match the return type of a gcc2
13370 builtin and then its argument prototype would still apply. */
354b7da5
DH
13371char __cxa_atexit ();
13372/* The GNU C library defines this for functions which it implements
13373 to always fail with ENOSYS. Some functions are actually named
13374 something starting with __ and the normal name is an alias. */
b61ff9c8 13375#if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
354b7da5 13376choke me
b61ff9c8
BS
13377#else
13378char (*f) () = __cxa_atexit;
13379#endif
13380#ifdef __cplusplus
13381}
354b7da5
DH
13382#endif
13383
13384int
13385main ()
13386{
b61ff9c8 13387return f != __cxa_atexit;
354b7da5
DH
13388 ;
13389 return 0;
13390}
13391_ACEOF
13392rm -f conftest.$ac_objext conftest$ac_exeext
b61ff9c8
BS
13393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13394 (eval $ac_link) 2>conftest.er1
354b7da5 13395 ac_status=$?
86da66b5
HPN
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
354b7da5 13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
13400 (exit $ac_status); } &&
13401 { ac_try='test -z "$ac_c_werror_flag"
13402 || test ! -s conftest.err'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; } &&
13408 { ac_try='test -s conftest$ac_exeext'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }; then
354b7da5
DH
13414 ac_cv_func___cxa_atexit=yes
13415else
13416 echo "$as_me: failed program was:" >&5
13417sed 's/^/| /' conftest.$ac_ext >&5
13418
b61ff9c8 13419ac_cv_func___cxa_atexit=no
354b7da5 13420fi
b61ff9c8 13421rm -f conftest.err conftest.$ac_objext \
86da66b5 13422 conftest$ac_exeext conftest.$ac_ext
354b7da5 13423fi
b61ff9c8
BS
13424echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13425echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
354b7da5 13426if test $ac_cv_func___cxa_atexit = yes; then
18fbf599
PB
13427 use_cxa_atexit=yes
13428else
13429 echo "__cxa_atexit can't be enabled on this target"
13430fi
13431
5f60e48f 13432 ;;
97388150 13433 esac
18fbf599
PB
13434 else
13435 # We can't check for __cxa_atexit when building a cross, so assume
13436 # it is available
13437 use_cxa_atexit=yes
13438 fi
13439 if test x$use_cxa_atexit = xyes; then
ba479fd2
NN
13440
13441cat >>confdefs.h <<\_ACEOF
c7b5e395 13442#define DEFAULT_USE_CXA_ATEXIT 2
ba479fd2 13443_ACEOF
2121a768 13444
18fbf599 13445 fi
2121a768
JT
13446fi
13447
e64f5acf
SE
13448use_getipinfo=yes
13449if test x$with_system_libunwind = xyes; then
13450 if test x$host = x$target; then
b61ff9c8
BS
13451 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13452echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
e64f5acf
SE
13453if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455else
13456 ac_func_search_save_LIBS=$LIBS
b61ff9c8 13457ac_cv_search__Unwind_GetIPInfo=no
e64f5acf
SE
13458cat >conftest.$ac_ext <<_ACEOF
13459/* confdefs.h. */
13460_ACEOF
13461cat confdefs.h >>conftest.$ac_ext
13462cat >>conftest.$ac_ext <<_ACEOF
13463/* end confdefs.h. */
13464
b61ff9c8 13465/* Override any gcc2 internal prototype to avoid an error. */
e64f5acf
SE
13466#ifdef __cplusplus
13467extern "C"
13468#endif
b61ff9c8
BS
13469/* We use char because int might match the return type of a gcc2
13470 builtin and then its argument prototype would still apply. */
e64f5acf
SE
13471char _Unwind_GetIPInfo ();
13472int
13473main ()
13474{
b61ff9c8 13475_Unwind_GetIPInfo ();
e64f5acf
SE
13476 ;
13477 return 0;
13478}
13479_ACEOF
b61ff9c8
BS
13480rm -f conftest.$ac_objext conftest$ac_exeext
13481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482 (eval $ac_link) 2>conftest.er1
e64f5acf
SE
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
13488 (exit $ac_status); } &&
13489 { ac_try='test -z "$ac_c_werror_flag"
13490 || test ! -s conftest.err'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; } &&
13496 { ac_try='test -s conftest$ac_exeext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 ac_cv_search__Unwind_GetIPInfo="none required"
e64f5acf
SE
13503else
13504 echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
1a4b763e 13507fi
b61ff9c8
BS
13508rm -f conftest.err conftest.$ac_objext \
13509 conftest$ac_exeext conftest.$ac_ext
13510if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13511 for ac_lib in unwind; do
13512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13513 cat >conftest.$ac_ext <<_ACEOF
13514/* confdefs.h. */
13515_ACEOF
13516cat confdefs.h >>conftest.$ac_ext
13517cat >>conftest.$ac_ext <<_ACEOF
13518/* end confdefs.h. */
2f41c1d6 13519
b61ff9c8
BS
13520/* Override any gcc2 internal prototype to avoid an error. */
13521#ifdef __cplusplus
13522extern "C"
13523#endif
13524/* We use char because int might match the return type of a gcc2
13525 builtin and then its argument prototype would still apply. */
13526char _Unwind_GetIPInfo ();
13527int
13528main ()
13529{
13530_Unwind_GetIPInfo ();
13531 ;
13532 return 0;
13533}
13534_ACEOF
13535rm -f conftest.$ac_objext conftest$ac_exeext
13536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13537 (eval $ac_link) 2>conftest.er1
13538 ac_status=$?
13539 grep -v '^ *+' conftest.er1 >conftest.err
13540 rm -f conftest.er1
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -z "$ac_c_werror_flag"
13545 || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try='test -s conftest$ac_exeext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13558break
1a4b763e 13559else
b61ff9c8
BS
13560 echo "$as_me: failed program was:" >&5
13561sed 's/^/| /' conftest.$ac_ext >&5
13562
13563fi
13564rm -f conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 done
a6ccdbab 13567fi
a6ccdbab
EC
13568LIBS=$ac_func_search_save_LIBS
13569fi
b61ff9c8
BS
13570echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13571echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13572if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13573 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
a6ccdbab
EC
13574
13575else
13576 use_getipinfo=no
13577fi
13578
13579 fi
13580fi
13581
13582if test x$use_getipinfo = xyes; then
13583
13584cat >>confdefs.h <<\_ACEOF
13585#define HAVE_GETIPINFO 1
e64f5acf
SE
13586_ACEOF
13587
13588else
13589 echo "The system unwind library does not support _Unwind_GetIPInfo."
13590fi
13591
a5381466 13592# Look for a file containing extra machine modes.
1c0ca89d
ZW
13593if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13594 extra_modes_file='$(srcdir)'/config/${extra_modes}
ba479fd2
NN
13595
13596
13597cat >>confdefs.h <<_ACEOF
e22340b0 13598#define EXTRA_MODES_FILE "config/$extra_modes"
ba479fd2 13599_ACEOF
a5381466
ZW
13600
13601fi
13602
75685792
RS
13603# Convert extra_options into a form suitable for Makefile use.
13604extra_opt_files=
13605for f in $extra_options; do
13606 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13607done
13608
13609
b7cb92ad 13610# auto-host.h is the file containing items generated by autoconf and is
e9a25f70 13611# the first file included by config.h.
4977bab6 13612# If host=build, it is correct to have bconfig include auto-host.h
ba479fd2 13613# as well. If host!=build, we are in error and need to do more
db81d74a 13614# work to find out the build config parameters.
75bffa71 13615if test x$host = x$build
db81d74a 13616then
eaf4e618 13617 build_auto=auto-host.h
b7cb92ad
JL
13618else
13619 # We create a subdir, then run autoconf in the subdir.
13620 # To prevent recursion we set host and build for the new
13621 # invocation of configure to the build for this invocation
ba479fd2 13622 # of configure.
b7cb92ad
JL
13623 tempdir=build.$$
13624 rm -rf $tempdir
13625 mkdir $tempdir
13626 cd $tempdir
13627 case ${srcdir} in
255b8a49 13628 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
b7cb92ad
JL
13629 *) realsrcdir=../${srcdir};;
13630 esac
d920e825
L
13631 saved_CFLAGS="${CFLAGS}"
13632 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
f8c33439 13633 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
d920e825 13634 ${realsrcdir}/configure \
33e70558 13635 --enable-languages=${enable_languages-all} \
534d0cc0 13636 --target=$target_alias --host=$build_alias --build=$build_alias
d920e825 13637 CFLAGS="${saved_CFLAGS}"
b7cb92ad
JL
13638
13639 # We just finished tests for the build machine, so rename
13640 # the file auto-build.h in the gcc directory.
13641 mv auto-host.h ../auto-build.h
13642 cd ..
13643 rm -rf $tempdir
eaf4e618 13644 build_auto=auto-build.h
db81d74a
RH
13645fi
13646
06f0b04c 13647
eaf4e618 13648tm_file="${tm_file} defaults.h"
4977bab6
ZW
13649tm_p_file="${tm_p_file} tm-preds.h"
13650host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13651build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
49691411 13652# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
b4862477 13653# put this back in temporarily.
232b67d9 13654xm_file="auto-host.h ansidecl.h ${xm_file}"
0056a9b5 13655
34a86c2b
NN
13656# --------
13657# UNSORTED
13658# --------
13659
cc1e60ea 13660# Compile in configure arguments.
8105825d 13661if test -f configargs.h ; then
cc1e60ea 13662 # Being re-configured.
022dae81 13663 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
cc1e60ea
JM
13664 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13665else
13666 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13667fi
eeae7b41
DJ
13668
13669# Double all backslashes and backslash all quotes to turn
13670# gcc_config_arguments into a C string.
13671sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13672$gcc_config_arguments
13673EOF
13674gcc_config_arguments_str=`cat conftest.out`
13675rm -f conftest.out
13676
cc1e60ea
JM
13677cat > configargs.h <<EOF
13678/* Generated automatically. */
eeae7b41 13679static const char configuration_arguments[] = "$gcc_config_arguments_str";
a6687d2b 13680static const char thread_model[] = "$thread_file";
7816bea0
DJ
13681
13682static const struct {
13683 const char *name, *value;
13684} configure_default_options[] = $configure_default_options;
cc1e60ea
JM
13685EOF
13686
ab87f8c8 13687# Internationalization
18fc9bd4
RG
13688# If we haven't got the data from the intl directory,
13689# assume NLS is disabled.
13690USE_NLS=no
13691LIBINTL=
13692LIBINTL_DEP=
13693INCINTL=
13694XGETTEXT=
13695GMSGFMT=
13696POSUB=
13697
13698if test -f ../intl/config.intl; then
13699 . ../intl/config.intl
13700fi
b61ff9c8
BS
13701echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13702echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
18fc9bd4 13703if test x"$USE_NLS" != xyes; then
b61ff9c8
BS
13704 echo "$as_me:$LINENO: result: no" >&5
13705echo "${ECHO_T}no" >&6
18fc9bd4 13706else
b61ff9c8
BS
13707 echo "$as_me:$LINENO: result: yes" >&5
13708echo "${ECHO_T}yes" >&6
18fc9bd4
RG
13709
13710cat >>confdefs.h <<\_ACEOF
13711#define ENABLE_NLS 1
13712_ACEOF
13713
13714
b61ff9c8
BS
13715 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13716echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
18fc9bd4
RG
13717 # Look for .po and .gmo files in the source directory.
13718 CATALOGS=
13719 XLINGUAS=
13720 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13721 # If there aren't any .gmo files the shell will give us the
13722 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13723 # weeded out.
13724 case "$cat" in *\**)
13725 continue;;
13726 esac
13727 # The quadruple backslash is collapsed to a double backslash
13728 # by the backticks, then collapsed again by the double quotes,
13729 # leaving us with one backslash in the sed expression (right
13730 # before the dot that mustn't act as a wildcard).
13731 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13732 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13733 # The user is allowed to set LINGUAS to a list of languages to
13734 # install catalogs for. If it's empty that means "all of them."
13735 if test "x$LINGUAS" = x; then
13736 CATALOGS="$CATALOGS $cat"
13737 XLINGUAS="$XLINGUAS $lang"
13738 else
13739 case "$LINGUAS" in *$lang*)
13740 CATALOGS="$CATALOGS $cat"
13741 XLINGUAS="$XLINGUAS $lang"
13742 ;;
13743 esac
13744 fi
13745 done
13746 LINGUAS="$XLINGUAS"
b61ff9c8
BS
13747 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13748echo "${ECHO_T}$LINGUAS" >&6
18fc9bd4
RG
13749
13750
13751 DATADIRNAME=share
13752
13753 INSTOBJEXT=.mo
13754
13755 GENCAT=gencat
13756
13757 CATOBJEXT=.gmo
13758
13759fi
861bb6c1 13760
56694dd9
ZW
13761# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13762# -liconv on the link line twice.
13763case "$LIBINTL" in *$LIBICONV*)
13764 LIBICONV= ;;
13765esac
dc6746e7 13766
b61ff9c8 13767# Check whether --enable-secureplt or --disable-secureplt was given.
7f970b70 13768if test "${enable_secureplt+set}" = set; then
b61ff9c8 13769 enableval="$enable_secureplt"
7f970b70 13770
b61ff9c8 13771fi;
7f970b70 13772
922e3e33
UB
13773# Check whether --enable-cld or --disable-cld was given.
13774if test "${enable_cld+set}" = set; then
13775 enableval="$enable_cld"
13776
13777else
13778 enable_cld=no
13779fi;
13780
56694dd9 13781# Windows32 Registry support for specifying GCC installation paths.
b61ff9c8 13782# Check whether --enable-win32-registry or --disable-win32-registry was given.
56694dd9 13783if test "${enable_win32_registry+set}" = set; then
b61ff9c8 13784 enableval="$enable_win32_registry"
dc6746e7 13785
b61ff9c8 13786fi;
ba479fd2 13787
a1286ef5
ZW
13788case $host_os in
13789 win32 | pe | cygwin* | mingw32* | uwin*)
13790 if test "x$enable_win32_registry" != xno; then
b61ff9c8
BS
13791 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13792echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
ba479fd2
NN
13793if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13795else
13796 ac_func_search_save_LIBS=$LIBS
b61ff9c8 13797ac_cv_search_RegOpenKeyExA=no
ba479fd2 13798cat >conftest.$ac_ext <<_ACEOF
ba479fd2
NN
13799/* confdefs.h. */
13800_ACEOF
13801cat confdefs.h >>conftest.$ac_ext
13802cat >>conftest.$ac_ext <<_ACEOF
13803/* end confdefs.h. */
861bb6c1 13804
b61ff9c8 13805/* Override any gcc2 internal prototype to avoid an error. */
ba479fd2
NN
13806#ifdef __cplusplus
13807extern "C"
13808#endif
b61ff9c8
BS
13809/* We use char because int might match the return type of a gcc2
13810 builtin and then its argument prototype would still apply. */
ba479fd2
NN
13811char RegOpenKeyExA ();
13812int
13813main ()
13814{
b61ff9c8 13815RegOpenKeyExA ();
ba479fd2
NN
13816 ;
13817 return 0;
13818}
13819_ACEOF
b61ff9c8
BS
13820rm -f conftest.$ac_objext conftest$ac_exeext
13821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13822 (eval $ac_link) 2>conftest.er1
ba479fd2 13823 ac_status=$?
86da66b5
HPN
13824 grep -v '^ *+' conftest.er1 >conftest.err
13825 rm -f conftest.er1
13826 cat conftest.err >&5
ba479fd2 13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
13828 (exit $ac_status); } &&
13829 { ac_try='test -z "$ac_c_werror_flag"
13830 || test ! -s conftest.err'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; } &&
13836 { ac_try='test -s conftest$ac_exeext'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13839 ac_status=$?
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; }; then
13842 ac_cv_search_RegOpenKeyExA="none required"
ab87f8c8 13843else
ba479fd2
NN
13844 echo "$as_me: failed program was:" >&5
13845sed 's/^/| /' conftest.$ac_ext >&5
13846
1a4b763e 13847fi
b61ff9c8
BS
13848rm -f conftest.err conftest.$ac_objext \
13849 conftest$ac_exeext conftest.$ac_ext
13850if test "$ac_cv_search_RegOpenKeyExA" = no; then
13851 for ac_lib in advapi32; do
13852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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. */
2f41c1d6 13859
b61ff9c8
BS
13860/* Override any gcc2 internal prototype to avoid an error. */
13861#ifdef __cplusplus
13862extern "C"
13863#endif
13864/* We use char because int might match the return type of a gcc2
13865 builtin and then its argument prototype would still apply. */
13866char RegOpenKeyExA ();
13867int
13868main ()
13869{
13870RegOpenKeyExA ();
13871 ;
13872 return 0;
13873}
13874_ACEOF
13875rm -f conftest.$ac_objext conftest$ac_exeext
13876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13877 (eval $ac_link) 2>conftest.er1
13878 ac_status=$?
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try='test -z "$ac_c_werror_flag"
13885 || test ! -s conftest.err'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; } &&
13891 { ac_try='test -s conftest$ac_exeext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13894 ac_status=$?
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13898break
1a4b763e 13899else
b61ff9c8
BS
13900 echo "$as_me: failed program was:" >&5
13901sed 's/^/| /' conftest.$ac_ext >&5
13902
13903fi
13904rm -f conftest.err conftest.$ac_objext \
13905 conftest$ac_exeext conftest.$ac_ext
13906 done
dd7f7a6e
EC
13907fi
13908LIBS=$ac_func_search_save_LIBS
13909fi
b61ff9c8
BS
13910echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13911echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13912if test "$ac_cv_search_RegOpenKeyExA" != no; then
13913 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
dd7f7a6e
EC
13914
13915else
13916 enable_win32_registry=no
13917fi
13918
13919 fi
13920
13921 if test "x$enable_win32_registry" != xno; then
13922
13923cat >>confdefs.h <<\_ACEOF
13924#define ENABLE_WIN32_REGISTRY 1
13925_ACEOF
13926
13927
13928 if test "x$enable_win32_registry" != xyes \
13929 && test "x$enable_win32_registry" != x; then
13930
13931cat >>confdefs.h <<_ACEOF
13932#define WIN32_REGISTRY_KEY "$enable_win32_registry"
13933_ACEOF
13934
13935 fi
13936 fi
13937 ;;
13938esac
ab87f8c8 13939
56694dd9
ZW
13940# Get an absolute path to the GCC top-level source directory
13941holddir=`${PWDCMD-pwd}`
13942cd $srcdir
13943topdir=`${PWDCMD-pwd}`
13944cd $holddir
ab87f8c8 13945
56694dd9 13946# Conditionalize the makefile for this host machine.
2ed26f6b 13947xmake_file=
c406e779 13948for f in ${host_xmake_file}
56694dd9
ZW
13949do
13950 if test -f ${srcdir}/config/$f
13951 then
2ed26f6b 13952 xmake_file="${xmake_file} \$(srcdir)/config/$f"
56694dd9
ZW
13953 fi
13954done
093e61a6 13955
56694dd9 13956# Conditionalize the makefile for this target machine.
2ed26f6b 13957tmake_file_=
c406e779 13958for f in ${tmake_file}
56694dd9
ZW
13959do
13960 if test -f ${srcdir}/config/$f
13961 then
2ed26f6b 13962 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
56694dd9
ZW
13963 fi
13964done
2ed26f6b 13965tmake_file="${tmake_file_}"
71a94577 13966
5395b47b
NN
13967# This is a terrible hack which will go away some day.
13968host_cc_for_libada=${CC}
1e3fad21
NN
13969
13970
ab87f8c8
JL
13971out_object_file=`basename $out_file .c`.o
13972
75685792
RS
13973tm_file_list="options.h"
13974tm_include_list="options.h"
ab87f8c8 13975for f in $tm_file; do
64ccbc99 13976 case $f in
3ca43df7
RS
13977 ./* )
13978 f=`echo $f | sed 's/^..//'`
13979 tm_file_list="${tm_file_list} $f"
13980 tm_include_list="${tm_include_list} $f"
13981 ;;
d02af173 13982 defaults.h )
e22340b0
ZW
13983 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13984 tm_include_list="${tm_include_list} $f"
13985 ;;
13986 * )
13987 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13988 tm_include_list="${tm_include_list} config/$f"
13989 ;;
64ccbc99 13990 esac
ab87f8c8
JL
13991done
13992
11642c3a 13993tm_p_file_list=
e22340b0 13994tm_p_include_list=
11642c3a 13995for f in $tm_p_file; do
4977bab6
ZW
13996 case $f in
13997 tm-preds.h )
e22340b0
ZW
13998 tm_p_file_list="${tm_p_file_list} $f"
13999 tm_p_include_list="${tm_p_include_list} $f"
14000 ;;
14001 * )
14002 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
14003 tm_p_include_list="${tm_p_include_list} config/$f"
14004 esac
14005done
14006
14007xm_file_list=
14008xm_include_list=
14009for f in $xm_file; do
14010 case $f in
14011 ansidecl.h )
14012 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
14013 xm_include_list="${xm_include_list} $f"
14014 ;;
14015 auto-host.h )
14016 xm_file_list="${xm_file_list} $f"
14017 xm_include_list="${xm_include_list} $f"
14018 ;;
14019 * )
14020 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
14021 xm_include_list="${xm_include_list} config/$f"
14022 ;;
4977bab6 14023 esac
11642c3a
ZW
14024done
14025
ab87f8c8 14026host_xm_file_list=
e22340b0 14027host_xm_include_list=
ab87f8c8 14028for f in $host_xm_file; do
64ccbc99 14029 case $f in
d02af173 14030 ansidecl.h )
e22340b0
ZW
14031 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
14032 host_xm_include_list="${host_xm_include_list} $f"
14033 ;;
e2500fed 14034 auto-host.h )
e22340b0
ZW
14035 host_xm_file_list="${host_xm_file_list} $f"
14036 host_xm_include_list="${host_xm_include_list} $f"
14037 ;;
14038 * )
14039 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
14040 host_xm_include_list="${host_xm_include_list} config/$f"
14041 ;;
64ccbc99 14042 esac
ab87f8c8
JL
14043done
14044
14045build_xm_file_list=
14046for f in $build_xm_file; do
64ccbc99 14047 case $f in
d02af173 14048 ansidecl.h )
e22340b0
ZW
14049 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
14050 build_xm_include_list="${build_xm_include_list} $f"
14051 ;;
e2500fed 14052 auto-build.h | auto-host.h )
e22340b0
ZW
14053 build_xm_file_list="${build_xm_file_list} $f"
14054 build_xm_include_list="${build_xm_include_list} $f"
14055 ;;
14056 * )
14057 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
14058 build_xm_include_list="${build_xm_include_list} config/$f"
14059 ;;
64ccbc99 14060 esac
ab87f8c8
JL
14061done
14062
2989d30c
GK
14063# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
14064# cross-compiler which does not use the native headers and libraries.
a078a589 14065# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
ba479fd2
NN
14066CROSS=
14067ALL=all.internal
14068SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
b28250ab
MM
14069
14070if test "x$with_build_sysroot" != x; then
14da6073 14071 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
b28250ab
MM
14072else
14073 # This value is used, even on a native system, because
14074 # CROSS_SYSTEM_HEADER_DIR is just
14075 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
14076 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
14077fi
14078
ab87f8c8
JL
14079if test x$host != x$target
14080then
2989d30c 14081 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
a078a589 14082 ALL=all.cross
160633c6 14083 SYSTEM_HEADER_DIR=$build_system_header_dir
343f59d9 14084 case "$host","$target" in
3a7e8b87
GK
14085 # Darwin crosses can use the host system's libraries and headers,
14086 # because of the fat library support. Of course, it must be the
14087 # same version of Darwin on both sides. Allow the user to
14088 # just say --target=foo-darwin without a version number to mean
14089 # "the version on this system".
14090 *-*-darwin*,*-*-darwin*)
14091 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
14092 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
14093 if test $hostos = $targetos -o $targetos = darwin ; then
14094 CROSS=
14095 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14096 with_headers=yes
14097 fi
14098 ;;
14099
343f59d9
AM
14100 i?86-*-*,x86_64-*-* \
14101 | powerpc*-*-*,powerpc64*-*-*)
14102 CROSS="$CROSS -DNATIVE_CROSS" ;;
14103 esac
7a615b25 14104elif test "x$TARGET_SYSTEM_ROOT" != x; then
b28250ab 14105 SYSTEM_HEADER_DIR=$build_system_header_dir
ab87f8c8
JL
14106fi
14107
b39d221a
EC
14108# If this is a cross-compiler that does not
14109# have its own set of headers then define
14110# inhibit_libc
14111
dc06db20
R
14112# If this is using newlib, without having the headers available now,
14113# then define inhibit_libc in LIBGCC2_CFLAGS.
fecd6201
ZW
14114# This prevents libgcc2 from containing any code which requires libc
14115# support.
a929bc28 14116: ${inhibit_libc=false}
dc06db20
R
14117if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
14118 test x$with_newlib = xyes ; } &&
e50084fa 14119 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
160633c6 14120 inhibit_libc=true
b39d221a
EC
14121fi
14122
14123
a078a589
ZW
14124# When building gcc with a cross-compiler, we need to adjust things so
14125# that the generator programs are still built with the native compiler.
14126# Also, we cannot run fixincludes or fix-header.
a078a589
ZW
14127
14128# These are the normal (build=host) settings:
ba479fd2
NN
14129CC_FOR_BUILD='$(CC)'
14130BUILD_CFLAGS='$(ALL_CFLAGS)'
f8c33439 14131BUILD_LDFLAGS='$(LDFLAGS)'
ba479fd2 14132STMP_FIXINC=stmp-fixinc
8ad9fb33
AP
14133
14134# Possibly disable fixproto, on a per-target basis.
14135case ${use_fixproto} in
14136 no)
14137 STMP_FIXPROTO=
14138 ;;
14139 yes)
14140 STMP_FIXPROTO=stmp-fixproto
14141 ;;
14142esac
14143
a078a589 14144
83599948
NS
14145# And these apply if build != host, or we are generating coverage data
14146if test x$build != x$host || test "x$coverage_flags" != x
ab87f8c8 14147then
b11e4747 14148 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
f8c33439 14149 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
a078a589 14150
7a615b25 14151 if test "x$TARGET_SYSTEM_ROOT" = x; then
d8e5117d 14152 if test "x$STMP_FIXPROTO" != x; then
de253ca4
GK
14153 STMP_FIXPROTO=stmp-install-fixproto
14154 fi
7a615b25 14155 fi
ab87f8c8
JL
14156fi
14157
14158# Expand extra_headers to include complete path.
14159# This substitutes for lots of t-* files.
14160extra_headers_list=
b1ef58c8
NN
14161# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14162for file in ${extra_headers} ; do
14163 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14164done
ab87f8c8 14165
1617e5ee
GK
14166# If use_gcc_tgmath is set, append ginclude/tgmath.h.
14167if test x"$use_gcc_tgmath" = xyes
14168then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14169fi
14170
c38f02df
ILT
14171# Define collect2 in Makefile.
14172case $host_can_use_collect2 in
14173 no) collect2= ;;
14174 *) collect2='collect2$(exeext)' ;;
14175esac
14176
14177
ab87f8c8 14178# Add a definition of USE_COLLECT2 if system wants one.
34a86c2b
NN
14179case $use_collect2 in
14180 no) use_collect2= ;;
14181 "") ;;
ba479fd2 14182 *)
34a86c2b
NN
14183 host_xm_defines="${host_xm_defines} USE_COLLECT2"
14184 xm_defines="${xm_defines} USE_COLLECT2"
c38f02df
ILT
14185 case $host_can_use_collect2 in
14186 no)
14187 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14188echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14189 { (exit 1); exit 1; }; }
14190 ;;
14191 esac
34a86c2b
NN
14192 ;;
14193esac
ab87f8c8 14194
8bb915b6
NN
14195# ---------------------------
14196# Assembler & linker features
14197# ---------------------------
14198
da0f6381
PB
14199# During stage 2, ld is actually gcc/collect-ld, which is a small script to
14200# discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14201# However when ld-new is first executed from the build tree, libtool will
14202# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14203# to the build tree. While doing this we need to use the previous-stage
14204# linker, or we have an infinite loop. The presence of a shell script as
14205# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14206# the gcc/collect-ld script. So we need to know how libtool works, or
14207# exec-tool will fail.
e8b05380 14208
da0f6381
PB
14209
14210
14211
14212macro_version='2.1a'
14213macro_revision='1.2435'
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226ltmain="$ac_aux_dir/ltmain.sh"
14227
14228# Set options
14229
14230enable_dlopen=no
14231
14232
14233enable_win32_dll=no
14234
14235
14236# Check whether --enable-shared or --disable-shared was given.
14237if test "${enable_shared+set}" = set; then
14238 enableval="$enable_shared"
14239 p=${PACKAGE-default}
14240 case $enableval in
14241 yes) enable_shared=yes ;;
14242 no) enable_shared=no ;;
14243 *)
14244 enable_shared=no
14245 # Look at the argument we got. We use all the common list separators.
14246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14247 for pkg in $enableval; do
14248 IFS="$lt_save_ifs"
14249 if test "X$pkg" = "X$p"; then
14250 enable_shared=yes
14251 fi
14252 done
14253 IFS="$lt_save_ifs"
14254 ;;
14255 esac
e8b05380 14256else
da0f6381
PB
14257 enable_shared=yes
14258fi;
e8b05380 14259
da0f6381
PB
14260
14261
14262
14263
14264
14265
14266
14267# Check whether --enable-static or --disable-static was given.
14268if test "${enable_static+set}" = set; then
14269 enableval="$enable_static"
14270 p=${PACKAGE-default}
14271 case $enableval in
14272 yes) enable_static=yes ;;
14273 no) enable_static=no ;;
14274 *)
14275 enable_static=no
14276 # Look at the argument we got. We use all the common list separators.
14277 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14278 for pkg in $enableval; do
14279 IFS="$lt_save_ifs"
14280 if test "X$pkg" = "X$p"; then
14281 enable_static=yes
14282 fi
14283 done
14284 IFS="$lt_save_ifs"
14285 ;;
14286 esac
e8b05380 14287else
da0f6381
PB
14288 enable_static=yes
14289fi;
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299# Check whether --with-pic or --without-pic was given.
14300if test "${with_pic+set}" = set; then
14301 withval="$with_pic"
14302 pic_mode="$withval"
14303else
14304 pic_mode=default
14305fi;
14306
14307test -z "$pic_mode" && pic_mode=default
14308
14309
14310
14311
14312
14313
14314
14315# Check whether --enable-fast-install or --disable-fast-install was given.
14316if test "${enable_fast_install+set}" = set; then
14317 enableval="$enable_fast_install"
14318 p=${PACKAGE-default}
14319 case $enableval in
14320 yes) enable_fast_install=yes ;;
14321 no) enable_fast_install=no ;;
14322 *)
14323 enable_fast_install=no
14324 # Look at the argument we got. We use all the common list separators.
14325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14326 for pkg in $enableval; do
14327 IFS="$lt_save_ifs"
14328 if test "X$pkg" = "X$p"; then
14329 enable_fast_install=yes
14330 fi
14331 done
14332 IFS="$lt_save_ifs"
14333 ;;
14334 esac
14335else
14336 enable_fast_install=yes
14337fi;
14338
14339
14340
14341
14342
14343
14344
14345
14346echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14347echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14348if test "${lt_cv_path_SED+set}" = set; then
e8b05380
PB
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350else
da0f6381
PB
14351 # Loop through the user's path and test for sed and gsed.
14352# Then use that list of sed's as ones to test for truncation.
14353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e8b05380
PB
14354for as_dir in $PATH
14355do
14356 IFS=$as_save_IFS
14357 test -z "$as_dir" && as_dir=.
da0f6381
PB
14358 for lt_ac_prog in sed gsed; do
14359 for ac_exec_ext in '' $ac_executable_extensions; do
14360 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14361 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14362 fi
14363 done
14364 done
e8b05380 14365done
da0f6381
PB
14366IFS=$as_save_IFS
14367lt_ac_max=0
14368lt_ac_count=0
14369# Add /usr/xpg4/bin/sed as it is typically found on Solaris
14370# along with /bin/sed that truncates output.
14371for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14372 test ! -f $lt_ac_sed && continue
14373 cat /dev/null > conftest.in
14374 lt_ac_count=0
14375 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14376 # Check for GNU sed and select it if it is found.
14377 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14378 lt_cv_path_SED=$lt_ac_sed
14379 break
14380 fi
14381 while true; do
14382 cat conftest.in conftest.in >conftest.tmp
14383 mv conftest.tmp conftest.in
14384 cp conftest.in conftest.nl
14385 echo >>conftest.nl
14386 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14387 cmp -s conftest.out conftest.nl || break
14388 # 10000 chars as input seems more than enough
14389 test $lt_ac_count -gt 10 && break
14390 lt_ac_count=`expr $lt_ac_count + 1`
14391 if test $lt_ac_count -gt $lt_ac_max; then
14392 lt_ac_max=$lt_ac_count
14393 lt_cv_path_SED=$lt_ac_sed
14394 fi
14395 done
e8b05380
PB
14396done
14397
e8b05380 14398fi
b61ff9c8 14399
da0f6381 14400SED=$lt_cv_path_SED
e8b05380 14401
da0f6381
PB
14402echo "$as_me:$LINENO: result: $SED" >&5
14403echo "${ECHO_T}$SED" >&6
e8b05380 14404
da0f6381
PB
14405test -z "$SED" && SED=sed
14406Xsed="$SED -e 1s/^X//"
e8b05380 14407
e8b05380
PB
14408
14409
ad9c4d9f 14410
da0f6381
PB
14411
14412
14413
14414
14415
14416
14417
14418echo "$as_me:$LINENO: checking for fgrep" >&5
14419echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14420if test "${ac_cv_prog_fgrep+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 14422else
da0f6381
PB
14423 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14424 then ac_cv_prog_fgrep='grep -F'
14425 else ac_cv_prog_fgrep='fgrep'
14426 fi
981d4858 14427fi
da0f6381
PB
14428echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14429echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14430 FGREP=$ac_cv_prog_fgrep
9e423e6d 14431
9f18db39 14432
da0f6381 14433test -z "$GREP" && GREP=grep
9f18db39 14434
da0f6381
PB
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453# Check whether --with-gnu-ld or --without-gnu-ld was given.
14454if test "${with_gnu_ld+set}" = set; then
14455 withval="$with_gnu_ld"
14456 test "$withval" = no || with_gnu_ld=yes
14457else
14458 with_gnu_ld=no
14459fi;
14460ac_prog=ld
14461if test "$GCC" = yes; then
14462 # Check if gcc -print-prog-name=ld gives a path.
14463 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14464echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14465 case $host in
14466 *-*-mingw*)
14467 # gcc leaves a trailing carriage return which upsets mingw
14468 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14469 *)
14470 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14471 esac
14472 case $ac_prog in
14473 # Accept absolute paths.
14474 [\\/]* | ?:[\\/]*)
14475 re_direlt='/[^/][^/]*/\.\./'
14476 # Canonicalize the pathname of ld
14477 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14478 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14479 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14480 done
14481 test -z "$LD" && LD="$ac_prog"
14482 ;;
14483 "")
14484 # If it fails, then pretend we aren't using GCC.
14485 ac_prog=ld
14486 ;;
14487 *)
14488 # If it is relative, then search for the first ld in PATH.
14489 with_gnu_ld=unknown
14490 ;;
14491 esac
14492elif test "$with_gnu_ld" = yes; then
14493 echo "$as_me:$LINENO: checking for GNU ld" >&5
14494echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14495else
14496 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14497echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14498fi
14499if test "${lt_cv_path_LD+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501else
14502 if test -z "$LD"; then
14503 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14504 for ac_dir in $PATH; do
14505 IFS="$lt_save_ifs"
14506 test -z "$ac_dir" && ac_dir=.
14507 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14508 lt_cv_path_LD="$ac_dir/$ac_prog"
14509 # Check to see if the program is GNU ld. I'd rather use --version,
14510 # but apparently some variants of GNU ld only accept -v.
14511 # Break only if it was the GNU/non-GNU ld that we prefer.
14512 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14513 *GNU* | *'with BFD'*)
14514 test "$with_gnu_ld" != no && break
14515 ;;
14516 *)
14517 test "$with_gnu_ld" != yes && break
14518 ;;
14519 esac
14520 fi
14521 done
14522 IFS="$lt_save_ifs"
14523else
14524 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14525fi
14526fi
14527
14528LD="$lt_cv_path_LD"
14529if test -n "$LD"; then
14530 echo "$as_me:$LINENO: result: $LD" >&5
14531echo "${ECHO_T}$LD" >&6
14532else
14533 echo "$as_me:$LINENO: result: no" >&5
14534echo "${ECHO_T}no" >&6
14535fi
14536test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14537echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14538 { (exit 1); exit 1; }; }
14539echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14540echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14541if test "${lt_cv_prog_gnu_ld+set}" = set; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14543else
14544 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14545case `$LD -v 2>&1 </dev/null` in
14546*GNU* | *'with BFD'*)
14547 lt_cv_prog_gnu_ld=yes
14548 ;;
14549*)
14550 lt_cv_prog_gnu_ld=no
14551 ;;
14552esac
14553fi
14554echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14555echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14556with_gnu_ld=$lt_cv_prog_gnu_ld
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14568echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14569if test "${lt_cv_path_NM+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14571else
14572 if test -n "$NM"; then
14573 # Let the user override the test.
14574 lt_cv_path_NM="$NM"
14575else
14576 lt_nm_to_check="${ac_tool_prefix}nm"
14577 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14578 lt_nm_to_check="$lt_nm_to_check nm"
14579 fi
14580 for lt_tmp_nm in $lt_nm_to_check; do
14581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14582 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14583 IFS="$lt_save_ifs"
14584 test -z "$ac_dir" && ac_dir=.
14585 tmp_nm="$ac_dir/$lt_tmp_nm"
14586 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14587 # Check to see if the nm accepts a BSD-compat flag.
14588 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14589 # nm: unknown option "B" ignored
14590 # Tru64's nm complains that /dev/null is an invalid object file
14591 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14592 */dev/null* | *'Invalid file or object type'*)
14593 lt_cv_path_NM="$tmp_nm -B"
14594 break
14595 ;;
14596 *)
14597 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14598 */dev/null*)
14599 lt_cv_path_NM="$tmp_nm -p"
14600 break
14601 ;;
14602 *)
14603 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14604 continue # so that we can try to find one that supports BSD flags
14605 ;;
14606 esac
14607 ;;
14608 esac
14609 fi
14610 done
14611 IFS="$lt_save_ifs"
14612 done
14613 : ${lt_cv_path_NM=no}
14614fi
14615fi
14616echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14617echo "${ECHO_T}$lt_cv_path_NM" >&6
14618if test "$lt_cv_path_NM" != "no"; then
14619 NM="$lt_cv_path_NM"
14620else
14621 # Didn't find any BSD compatible name lister, look for dumpbin.
14622 if test -n "$ac_tool_prefix"; then
14623 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14624 do
14625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14627echo "$as_me:$LINENO: checking for $ac_word" >&5
14628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14629if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14631else
14632 if test -n "$DUMPBIN"; then
14633 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14634else
14635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14636for as_dir in $PATH
14637do
14638 IFS=$as_save_IFS
14639 test -z "$as_dir" && as_dir=.
14640 for ac_exec_ext in '' $ac_executable_extensions; do
14641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14642 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14644 break 2
14645 fi
14646done
14647done
14648
14649fi
14650fi
14651DUMPBIN=$ac_cv_prog_DUMPBIN
14652if test -n "$DUMPBIN"; then
14653 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14654echo "${ECHO_T}$DUMPBIN" >&6
14655else
14656 echo "$as_me:$LINENO: result: no" >&5
14657echo "${ECHO_T}no" >&6
14658fi
14659
14660 test -n "$DUMPBIN" && break
14661 done
14662fi
14663if test -z "$DUMPBIN"; then
14664 ac_ct_DUMPBIN=$DUMPBIN
14665 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14666do
14667 # Extract the first word of "$ac_prog", so it can be a program name with args.
14668set dummy $ac_prog; ac_word=$2
14669echo "$as_me:$LINENO: checking for $ac_word" >&5
14670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14671if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14673else
14674 if test -n "$ac_ct_DUMPBIN"; then
14675 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14676else
14677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14678for as_dir in $PATH
14679do
14680 IFS=$as_save_IFS
14681 test -z "$as_dir" && as_dir=.
14682 for ac_exec_ext in '' $ac_executable_extensions; do
14683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14684 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14686 break 2
14687 fi
14688done
14689done
14690
14691fi
14692fi
14693ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14694if test -n "$ac_ct_DUMPBIN"; then
14695 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14696echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14697else
14698 echo "$as_me:$LINENO: result: no" >&5
14699echo "${ECHO_T}no" >&6
14700fi
14701
14702 test -n "$ac_ct_DUMPBIN" && break
14703done
14704test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14705
14706 DUMPBIN=$ac_ct_DUMPBIN
14707fi
14708
14709
14710 if test "$DUMPBIN" != ":"; then
14711 NM="$DUMPBIN"
14712 fi
14713fi
14714test -z "$NM" && NM=nm
14715
14716
14717
14718
14719
14720
14721echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14722echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14723if test "${lt_cv_nm_interface+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14725else
14726 lt_cv_nm_interface="BSD nm"
14727 echo "int some_variable = 0;" > conftest.$ac_ext
f6e377f8 14728 (eval echo "\"\$as_me:14728: $ac_compile\"" >&5)
da0f6381
PB
14729 (eval "$ac_compile" 2>conftest.err)
14730 cat conftest.err >&5
f6e377f8 14731 (eval echo "\"\$as_me:14731: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
da0f6381
PB
14732 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14733 cat conftest.err >&5
f6e377f8 14734 (eval echo "\"\$as_me:14734: output\"" >&5)
da0f6381
PB
14735 cat conftest.out >&5
14736 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14737 lt_cv_nm_interface="MS dumpbin"
14738 fi
14739 rm -f conftest*
14740fi
14741echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14742echo "${ECHO_T}$lt_cv_nm_interface" >&6
14743
14744echo "$as_me:$LINENO: checking whether ln -s works" >&5
14745echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14746LN_S=$as_ln_s
14747if test "$LN_S" = "ln -s"; then
14748 echo "$as_me:$LINENO: result: yes" >&5
14749echo "${ECHO_T}yes" >&6
14750else
14751 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14752echo "${ECHO_T}no, using $LN_S" >&6
14753fi
14754
14755# find the maximum length of command line arguments
14756echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14757echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14758if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14760else
14761 i=0
14762 teststring="ABCD"
14763
14764 case $build_os in
14765 msdosdjgpp*)
14766 # On DJGPP, this test can blow up pretty badly due to problems in libc
14767 # (any single argument exceeding 2000 bytes causes a buffer overrun
14768 # during glob expansion). Even if it were fixed, the result of this
14769 # check would be larger than it should be.
14770 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14771 ;;
14772
14773 gnu*)
14774 # Under GNU Hurd, this test is not required because there is
14775 # no limit to the length of command line arguments.
14776 # Libtool will interpret -1 as no limit whatsoever
14777 lt_cv_sys_max_cmd_len=-1;
14778 ;;
14779
14780 cygwin* | mingw*)
14781 # On Win9x/ME, this test blows up -- it succeeds, but takes
14782 # about 5 minutes as the teststring grows exponentially.
14783 # Worse, since 9x/ME are not pre-emptively multitasking,
14784 # you end up with a "frozen" computer, even though with patience
14785 # the test eventually succeeds (with a max line length of 256k).
14786 # Instead, let's just punt: use the minimum linelength reported by
14787 # all of the supported platforms: 8192 (on NT/2K/XP).
14788 lt_cv_sys_max_cmd_len=8192;
14789 ;;
14790
14791 amigaos*)
14792 # On AmigaOS with pdksh, this test takes hours, literally.
14793 # So we just punt and use a minimum line length of 8192.
14794 lt_cv_sys_max_cmd_len=8192;
14795 ;;
14796
14797 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14798 # This has been around since 386BSD, at least. Likely further.
14799 if test -x /sbin/sysctl; then
14800 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14801 elif test -x /usr/sbin/sysctl; then
14802 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14803 else
14804 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14805 fi
14806 # And add a safety zone
14807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14809 ;;
14810
14811 interix*)
14812 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14813 lt_cv_sys_max_cmd_len=196608
14814 ;;
14815
14816 osf*)
14817 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14818 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14819 # nice to cause kernel panics so lets avoid the loop below.
14820 # First set a reasonable default.
14821 lt_cv_sys_max_cmd_len=16384
14822 #
14823 if test -x /sbin/sysconfig; then
14824 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14825 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14826 esac
14827 fi
14828 ;;
14829 sco3.2v5*)
14830 lt_cv_sys_max_cmd_len=102400
14831 ;;
14832 sysv5* | sco5v6* | sysv4.2uw2*)
14833 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14834 if test -n "$kargmax"; then
14835 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14836 else
14837 lt_cv_sys_max_cmd_len=32768
14838 fi
14839 ;;
14840 *)
14841 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
14842 if test -n $lt_cv_sys_max_cmd_len; then
14843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14845 else
14846 # Make teststring a little bigger before we do anything with it.
14847 # a 1K string should be a reasonable start.
14848 for i in 1 2 3 4 5 6 7 8 ; do
14849 teststring=$teststring$teststring
14850 done
14851 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14852 # If test is not a shell built-in, we'll probably end up computing a
14853 # maximum length that is only half of the actual maximum length, but
14854 # we can't tell.
14855 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14856 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14857 test $i != 17 # 1/2 MB should be enough
14858 do
14859 i=`expr $i + 1`
14860 teststring=$teststring$teststring
14861 done
14862 # Only check the string length outside the loop.
14863 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14864 teststring=
14865 # Add a significant safety factor because C++ compilers can tack on
14866 # massive amounts of additional arguments before passing them to the
14867 # linker. It appears as though 1/2 is a usable value.
14868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14869 fi
14870 ;;
14871 esac
14872
14873fi
14874
14875if test -n $lt_cv_sys_max_cmd_len ; then
14876 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14877echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14878else
14879 echo "$as_me:$LINENO: result: none" >&5
14880echo "${ECHO_T}none" >&6
14881fi
14882max_cmd_len=$lt_cv_sys_max_cmd_len
14883
14884
14885
14886
14887
14888
14889
14890: ${CP="cp -f"}
14891: ${MV="mv -f"}
14892: ${RM="rm -f"}
14893
14894echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14895echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14896# Try some XSI features
14897xsi_shell=no
14898( _lt_dummy="a/b/c"
14899 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14900 = c,a/b,, ) >/dev/null 2>&1 \
14901 && xsi_shell=yes
14902echo "$as_me:$LINENO: result: $xsi_shell" >&5
14903echo "${ECHO_T}$xsi_shell" >&6
14904
14905
14906echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14907echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14908lt_shell_append=no
14909( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14910 >/dev/null 2>&1 \
14911 && lt_shell_append=yes
14912echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14913echo "${ECHO_T}$lt_shell_append" >&6
14914
14915
14916if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14917 lt_unset=unset
14918else
14919 lt_unset=false
14920fi
14921
14922
14923
14924
14925
14926# test EBCDIC or ASCII
14927case `echo X|tr X '\101'` in
14928 A) # ASCII based system
14929 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14930 lt_SP2NL='tr \040 \012'
14931 lt_NL2SP='tr \015\012 \040\040'
14932 ;;
14933 *) # EBCDIC based system
14934 lt_SP2NL='tr \100 \n'
14935 lt_NL2SP='tr \r\n \100\100'
14936 ;;
14937esac
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14948echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14949if test "${lt_cv_ld_reload_flag+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951else
14952 lt_cv_ld_reload_flag='-r'
14953fi
14954echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14955echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14956reload_flag=$lt_cv_ld_reload_flag
14957case $reload_flag in
14958"" | " "*) ;;
14959*) reload_flag=" $reload_flag" ;;
14960esac
14961reload_cmds='$LD$reload_flag -o $output$reload_objs'
14962case $host_os in
14963 darwin*)
14964 if test "$GCC" = yes; then
14965 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14966 else
14967 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14968 fi
14969 ;;
14970esac
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14982echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14983if test "${lt_cv_deplibs_check_method+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14985else
14986 lt_cv_file_magic_cmd='$MAGIC_CMD'
14987lt_cv_file_magic_test_file=
14988lt_cv_deplibs_check_method='unknown'
14989# Need to set the preceding variable on all platforms that support
14990# interlibrary dependencies.
14991# 'none' -- dependencies not supported.
14992# `unknown' -- same as none, but documents that we really don't know.
14993# 'pass_all' -- all dependencies passed with no checks.
14994# 'test_compile' -- check by making test program.
14995# 'file_magic [[regex]]' -- check by looking for files in library path
14996# which responds to the $file_magic_cmd with a given extended regex.
14997# If you have `file' or equivalent on your system and you're not sure
14998# whether `pass_all' will *always* work, you probably want this one.
14999
15000case $host_os in
15001aix[4-9]*)
15002 lt_cv_deplibs_check_method=pass_all
15003 ;;
15004
15005beos*)
15006 lt_cv_deplibs_check_method=pass_all
15007 ;;
15008
15009bsdi[45]*)
15010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15011 lt_cv_file_magic_cmd='/usr/bin/file -L'
15012 lt_cv_file_magic_test_file=/shlib/libc.so
15013 ;;
15014
15015cygwin*)
15016 # func_win32_libid is a shell function defined in ltmain.sh
15017 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15018 lt_cv_file_magic_cmd='func_win32_libid'
15019 ;;
15020
15021mingw* | pw32*)
15022 # Base MSYS/MinGW do not provide the 'file' command needed by
15023 # func_win32_libid shell function, so use a weaker test based on 'objdump',
15024 # unless we find 'file', for example because we are cross-compiling.
15025 if ( file / ) >/dev/null 2>&1; then
15026 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15027 lt_cv_file_magic_cmd='func_win32_libid'
15028 else
15029 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
15030 lt_cv_file_magic_cmd='$OBJDUMP -f'
15031 fi
15032 ;;
15033
15034darwin* | rhapsody*)
15035 lt_cv_deplibs_check_method=pass_all
15036 ;;
15037
15038freebsd* | dragonfly*)
15039 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15040 case $host_cpu in
15041 i*86 )
15042 # Not sure whether the presence of OpenBSD here was a mistake.
15043 # Let's accept both of them until this is cleared up.
15044 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15045 lt_cv_file_magic_cmd=/usr/bin/file
15046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15047 ;;
15048 esac
15049 else
15050 lt_cv_deplibs_check_method=pass_all
15051 fi
15052 ;;
15053
15054gnu*)
15055 lt_cv_deplibs_check_method=pass_all
15056 ;;
15057
15058hpux10.20* | hpux11*)
15059 lt_cv_file_magic_cmd=/usr/bin/file
15060 case $host_cpu in
15061 ia64*)
15062 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15063 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15064 ;;
15065 hppa*64*)
15066 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]'
15067 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15068 ;;
15069 *)
15070 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15071 lt_cv_file_magic_test_file=/usr/lib/libc.sl
15072 ;;
15073 esac
15074 ;;
15075
15076interix[3-9]*)
15077 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15079 ;;
15080
15081irix5* | irix6* | nonstopux*)
15082 case $LD in
15083 *-32|*"-32 ") libmagic=32-bit;;
15084 *-n32|*"-n32 ") libmagic=N32;;
15085 *-64|*"-64 ") libmagic=64-bit;;
15086 *) libmagic=never-match;;
15087 esac
15088 lt_cv_deplibs_check_method=pass_all
15089 ;;
15090
15091# This must be Linux ELF.
15092linux* | k*bsd*-gnu)
15093 lt_cv_deplibs_check_method=pass_all
15094 ;;
15095
15096netbsd*)
15097 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15099 else
15100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15101 fi
15102 ;;
15103
15104newos6*)
15105 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15106 lt_cv_file_magic_cmd=/usr/bin/file
15107 lt_cv_file_magic_test_file=/usr/lib/libnls.so
15108 ;;
15109
15110*nto* | *qnx*)
15111 lt_cv_deplibs_check_method=pass_all
15112 ;;
15113
15114openbsd*)
15115 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15117 else
15118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15119 fi
15120 ;;
15121
15122osf3* | osf4* | osf5*)
15123 lt_cv_deplibs_check_method=pass_all
15124 ;;
15125
15126rdos*)
15127 lt_cv_deplibs_check_method=pass_all
15128 ;;
15129
15130solaris*)
15131 lt_cv_deplibs_check_method=pass_all
15132 ;;
15133
15134sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15135 lt_cv_deplibs_check_method=pass_all
15136 ;;
15137
15138sysv4 | sysv4.3*)
15139 case $host_vendor in
15140 motorola)
15141 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]'
15142 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15143 ;;
15144 ncr)
15145 lt_cv_deplibs_check_method=pass_all
15146 ;;
15147 sequent)
15148 lt_cv_file_magic_cmd='/bin/file'
15149 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15150 ;;
15151 sni)
15152 lt_cv_file_magic_cmd='/bin/file'
15153 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15154 lt_cv_file_magic_test_file=/lib/libc.so
15155 ;;
15156 siemens)
15157 lt_cv_deplibs_check_method=pass_all
15158 ;;
15159 pc)
15160 lt_cv_deplibs_check_method=pass_all
15161 ;;
15162 esac
15163 ;;
15164
15165tpf*)
15166 lt_cv_deplibs_check_method=pass_all
15167 ;;
15168esac
15169
15170fi
15171echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15172echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15173file_magic_cmd=$lt_cv_file_magic_cmd
15174deplibs_check_method=$lt_cv_deplibs_check_method
15175test -z "$deplibs_check_method" && deplibs_check_method=unknown
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188if test -n "$ac_tool_prefix"; then
15189 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15190set dummy ${ac_tool_prefix}ar; ac_word=$2
15191echo "$as_me:$LINENO: checking for $ac_word" >&5
15192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15193if test "${ac_cv_prog_AR+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195else
15196 if test -n "$AR"; then
15197 ac_cv_prog_AR="$AR" # Let the user override the test.
15198else
15199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15200for as_dir in $PATH
15201do
15202 IFS=$as_save_IFS
15203 test -z "$as_dir" && as_dir=.
15204 for ac_exec_ext in '' $ac_executable_extensions; do
15205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15206 ac_cv_prog_AR="${ac_tool_prefix}ar"
15207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15208 break 2
15209 fi
15210done
15211done
15212
15213fi
15214fi
15215AR=$ac_cv_prog_AR
15216if test -n "$AR"; then
15217 echo "$as_me:$LINENO: result: $AR" >&5
15218echo "${ECHO_T}$AR" >&6
15219else
15220 echo "$as_me:$LINENO: result: no" >&5
15221echo "${ECHO_T}no" >&6
15222fi
15223
15224fi
15225if test -z "$ac_cv_prog_AR"; then
15226 ac_ct_AR=$AR
15227 # Extract the first word of "ar", so it can be a program name with args.
15228set dummy ar; ac_word=$2
15229echo "$as_me:$LINENO: checking for $ac_word" >&5
15230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15231if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15233else
15234 if test -n "$ac_ct_AR"; then
15235 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15236else
15237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15238for as_dir in $PATH
15239do
15240 IFS=$as_save_IFS
15241 test -z "$as_dir" && as_dir=.
15242 for ac_exec_ext in '' $ac_executable_extensions; do
15243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15244 ac_cv_prog_ac_ct_AR="ar"
15245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15246 break 2
15247 fi
15248done
15249done
15250
15251 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15252fi
15253fi
15254ac_ct_AR=$ac_cv_prog_ac_ct_AR
15255if test -n "$ac_ct_AR"; then
15256 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15257echo "${ECHO_T}$ac_ct_AR" >&6
15258else
15259 echo "$as_me:$LINENO: result: no" >&5
15260echo "${ECHO_T}no" >&6
15261fi
15262
15263 AR=$ac_ct_AR
15264else
15265 AR="$ac_cv_prog_AR"
15266fi
15267
15268test -z "$AR" && AR=ar
15269test -z "$AR_FLAGS" && AR_FLAGS=cru
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281if test -n "$ac_tool_prefix"; then
15282 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15283set dummy ${ac_tool_prefix}strip; ac_word=$2
15284echo "$as_me:$LINENO: checking for $ac_word" >&5
15285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15286if test "${ac_cv_prog_STRIP+set}" = set; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15288else
15289 if test -n "$STRIP"; then
15290 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15291else
15292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15293for as_dir in $PATH
15294do
15295 IFS=$as_save_IFS
15296 test -z "$as_dir" && as_dir=.
15297 for ac_exec_ext in '' $ac_executable_extensions; do
15298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15299 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15301 break 2
15302 fi
15303done
15304done
15305
15306fi
15307fi
15308STRIP=$ac_cv_prog_STRIP
15309if test -n "$STRIP"; then
15310 echo "$as_me:$LINENO: result: $STRIP" >&5
15311echo "${ECHO_T}$STRIP" >&6
15312else
15313 echo "$as_me:$LINENO: result: no" >&5
15314echo "${ECHO_T}no" >&6
15315fi
15316
15317fi
15318if test -z "$ac_cv_prog_STRIP"; then
15319 ac_ct_STRIP=$STRIP
15320 # Extract the first word of "strip", so it can be a program name with args.
15321set dummy strip; ac_word=$2
15322echo "$as_me:$LINENO: checking for $ac_word" >&5
15323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15324if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15326else
15327 if test -n "$ac_ct_STRIP"; then
15328 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15329else
15330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331for as_dir in $PATH
15332do
15333 IFS=$as_save_IFS
15334 test -z "$as_dir" && as_dir=.
15335 for ac_exec_ext in '' $ac_executable_extensions; do
15336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15337 ac_cv_prog_ac_ct_STRIP="strip"
15338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15339 break 2
15340 fi
15341done
15342done
15343
15344 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15345fi
15346fi
15347ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15348if test -n "$ac_ct_STRIP"; then
15349 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15350echo "${ECHO_T}$ac_ct_STRIP" >&6
15351else
15352 echo "$as_me:$LINENO: result: no" >&5
15353echo "${ECHO_T}no" >&6
15354fi
15355
15356 STRIP=$ac_ct_STRIP
15357else
15358 STRIP="$ac_cv_prog_STRIP"
15359fi
15360
15361test -z "$STRIP" && STRIP=:
15362
15363
15364
15365
15366
15367
15368if test -n "$ac_tool_prefix"; then
15369 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15370set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15371echo "$as_me:$LINENO: checking for $ac_word" >&5
15372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15373if test "${ac_cv_prog_RANLIB+set}" = set; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15375else
15376 if test -n "$RANLIB"; then
15377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15378else
15379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15380for as_dir in $PATH
15381do
15382 IFS=$as_save_IFS
15383 test -z "$as_dir" && as_dir=.
15384 for ac_exec_ext in '' $ac_executable_extensions; do
15385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15386 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15388 break 2
15389 fi
15390done
15391done
15392
15393fi
15394fi
15395RANLIB=$ac_cv_prog_RANLIB
15396if test -n "$RANLIB"; then
15397 echo "$as_me:$LINENO: result: $RANLIB" >&5
15398echo "${ECHO_T}$RANLIB" >&6
15399else
15400 echo "$as_me:$LINENO: result: no" >&5
15401echo "${ECHO_T}no" >&6
15402fi
15403
15404fi
15405if test -z "$ac_cv_prog_RANLIB"; then
15406 ac_ct_RANLIB=$RANLIB
15407 # Extract the first word of "ranlib", so it can be a program name with args.
15408set dummy ranlib; ac_word=$2
15409echo "$as_me:$LINENO: checking for $ac_word" >&5
15410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15411if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15413else
15414 if test -n "$ac_ct_RANLIB"; then
15415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15416else
15417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15418for as_dir in $PATH
15419do
15420 IFS=$as_save_IFS
15421 test -z "$as_dir" && as_dir=.
15422 for ac_exec_ext in '' $ac_executable_extensions; do
15423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15424 ac_cv_prog_ac_ct_RANLIB="ranlib"
15425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15426 break 2
15427 fi
15428done
15429done
15430
15431 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15432fi
15433fi
15434ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15435if test -n "$ac_ct_RANLIB"; then
15436 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15437echo "${ECHO_T}$ac_ct_RANLIB" >&6
15438else
15439 echo "$as_me:$LINENO: result: no" >&5
15440echo "${ECHO_T}no" >&6
15441fi
15442
15443 RANLIB=$ac_ct_RANLIB
15444else
15445 RANLIB="$ac_cv_prog_RANLIB"
15446fi
15447
15448test -z "$RANLIB" && RANLIB=:
15449
15450
15451
15452
15453
15454
15455# Determine commands to create old-style static archives.
15456old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15457old_postinstall_cmds='chmod 644 $oldlib'
15458old_postuninstall_cmds=
15459
15460if test -n "$RANLIB"; then
15461 case $host_os in
15462 openbsd*)
15463 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15464 ;;
15465 *)
15466 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15467 ;;
15468 esac
15469 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15470fi
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505# If no C compiler was specified, use CC.
15506LTCC=${LTCC-"$CC"}
15507
15508# If no C compiler flags were specified, use CFLAGS.
15509LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15510
15511# Allow CC to be a program name with arguments.
15512compiler=$CC
15513
15514
15515# Check for command to grab the raw symbol name followed by C symbol from nm.
15516echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15517echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15518if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15520else
15521
15522# These are sane defaults that work on at least a few old systems.
15523# [They come from Ultrix. What could be older than Ultrix?!! ;)]
15524
15525# Character class describing NM global symbol codes.
15526symcode='[BCDEGRST]'
15527
15528# Regexp to match symbols that can be accessed directly from C.
15529sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15530
15531# Define system-specific variables.
15532case $host_os in
15533aix*)
15534 symcode='[BCDT]'
15535 ;;
15536cygwin* | mingw* | pw32*)
15537 symcode='[ABCDGISTW]'
15538 ;;
15539hpux*)
15540 if test "$host_cpu" = ia64; then
15541 symcode='[ABCDEGRST]'
15542 fi
15543 ;;
15544irix* | nonstopux*)
15545 symcode='[BCDEGRST]'
15546 ;;
15547osf*)
15548 symcode='[BCDEGQRST]'
15549 ;;
15550solaris*)
15551 symcode='[BDRT]'
15552 ;;
15553sco3.2v5*)
15554 symcode='[DT]'
15555 ;;
15556sysv4.2uw2*)
15557 symcode='[DT]'
15558 ;;
15559sysv5* | sco5v6* | unixware* | OpenUNIX*)
15560 symcode='[ABDT]'
15561 ;;
15562sysv4)
15563 symcode='[DFNSTU]'
15564 ;;
15565esac
15566
15567# If we're using GNU nm, then use its standard symbol codes.
15568case `$NM -V 2>&1` in
15569*GNU* | *'with BFD'*)
15570 symcode='[ABCDGIRSTW]' ;;
15571esac
15572
15573# Transform an extracted symbol line into a proper C declaration.
15574# Some systems (esp. on ia64) link data and code symbols differently,
15575# so use this general approach.
15576lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15577
15578# Transform an extracted symbol line into symbol name and symbol address
15579lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15580
15581# Handle CRLF in mingw tool chain
15582opt_cr=
15583case $build_os in
15584mingw*)
15585 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15586 ;;
15587esac
15588
15589# Try without a prefix underscore, then with it.
15590for ac_symprfx in "" "_"; do
15591
15592 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15593 symxfrm="\\1 $ac_symprfx\\2 \\2"
15594
15595 # Write the raw and C identifiers.
15596 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15597 # Fake it for dumpbin and say T for any non-static function
15598 # and D for any global variable.
15599 # Also find C++ and __fastcall symbols from MSVC++,
15600 # which start with @ or ?.
15601 lt_cv_sys_global_symbol_pipe="$AWK '"\
15602" {last_section=section; section=\$ 3};"\
15603" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15604" \$ 0!~/External *\|/{next};"\
15605" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15606" {if(hide[section]) next};"\
15607" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15608" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15609" s[1]~/^[@?]/{print s[1], s[1]; next};"\
15610" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15611" ' prfx=^$ac_symprfx"
15612 else
15613 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15614 fi
15615
15616 # Check to see that the pipe works correctly.
15617 pipe_works=no
15618
15619 rm -f conftest*
15620 cat > conftest.$ac_ext <<_LT_EOF
15621#ifdef __cplusplus
15622extern "C" {
15623#endif
15624char nm_test_var;
15625void nm_test_func(void);
15626void nm_test_func(void){}
15627#ifdef __cplusplus
15628}
15629#endif
15630int main(){nm_test_var='a';nm_test_func();return(0);}
15631_LT_EOF
15632
15633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15634 (eval $ac_compile) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; then
15638 # Now try to grab the symbols.
15639 nlist=conftest.nm
15640 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15641 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } && test -s "$nlist"; then
15645 # Try sorting and uniquifying the output.
15646 if sort "$nlist" | uniq > "$nlist"T; then
15647 mv -f "$nlist"T "$nlist"
15648 else
15649 rm -f "$nlist"T
15650 fi
15651
15652 # Make sure that we snagged all the symbols we need.
15653 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15654 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15655 cat <<_LT_EOF > conftest.$ac_ext
15656#ifdef __cplusplus
15657extern "C" {
15658#endif
15659
15660_LT_EOF
15661 # Now generate the symbol file.
15662 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15663
15664 cat <<_LT_EOF >> conftest.$ac_ext
15665
15666/* The mapping between symbol names and symbols. */
15667const struct {
15668 const char *name;
15669 void *address;
15670}
15671lt__PROGRAM__LTX_preloaded_symbols[] =
15672{
15673 { "@PROGRAM@", (void *) 0 },
15674_LT_EOF
15675 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15676 cat <<\_LT_EOF >> conftest.$ac_ext
15677 {0, (void *) 0}
15678};
15679
15680/* This works around a problem in FreeBSD linker */
15681#ifdef FREEBSD_WORKAROUND
15682static const void *lt_preloaded_setup() {
15683 return lt__PROGRAM__LTX_preloaded_symbols;
15684}
15685#endif
15686
15687#ifdef __cplusplus
15688}
15689#endif
15690_LT_EOF
15691 # Now try linking the two files.
15692 mv conftest.$ac_objext conftstm.$ac_objext
15693 lt_save_LIBS="$LIBS"
15694 lt_save_CFLAGS="$CFLAGS"
15695 LIBS="conftstm.$ac_objext"
15696 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15698 (eval $ac_link) 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15702 pipe_works=yes
15703 fi
15704 LIBS="$lt_save_LIBS"
15705 CFLAGS="$lt_save_CFLAGS"
15706 else
15707 echo "cannot find nm_test_func in $nlist" >&5
15708 fi
15709 else
15710 echo "cannot find nm_test_var in $nlist" >&5
15711 fi
15712 else
15713 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15714 fi
15715 else
15716 echo "$progname: failed program was:" >&5
15717 cat conftest.$ac_ext >&5
15718 fi
15719 rm -f conftest* conftst*
15720
15721 # Do not use the global_symbol_pipe unless it works.
15722 if test "$pipe_works" = yes; then
15723 break
15724 else
15725 lt_cv_sys_global_symbol_pipe=
15726 fi
15727done
15728
15729fi
15730
15731if test -z "$lt_cv_sys_global_symbol_pipe"; then
15732 lt_cv_sys_global_symbol_to_cdecl=
15733fi
15734if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15735 echo "$as_me:$LINENO: result: failed" >&5
15736echo "${ECHO_T}failed" >&6
15737else
15738 echo "$as_me:$LINENO: result: ok" >&5
15739echo "${ECHO_T}ok" >&6
15740fi
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15759if test "${enable_libtool_lock+set}" = set; then
15760 enableval="$enable_libtool_lock"
15761
15762fi;
15763test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15764
15765# Some flags need to be propagated to the compiler or linker for good
15766# libtool support.
15767case $host in
15768ia64-*-hpux*)
15769 # Find out which ABI we are using.
15770 echo 'int i;' > conftest.$ac_ext
15771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15772 (eval $ac_compile) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; then
15776 case `/usr/bin/file conftest.$ac_objext` in
15777 *ELF-32*)
15778 HPUX_IA64_MODE="32"
15779 ;;
15780 *ELF-64*)
15781 HPUX_IA64_MODE="64"
15782 ;;
15783 esac
15784 fi
15785 rm -rf conftest*
15786 ;;
15787*-*-irix6*)
15788 # Find out which ABI we are using.
f6e377f8 15789 echo '#line 15789 "configure"' > conftest.$ac_ext
da0f6381
PB
15790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791 (eval $ac_compile) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; then
15795 if test "$lt_cv_prog_gnu_ld" = yes; then
15796 case `/usr/bin/file conftest.$ac_objext` in
15797 *32-bit*)
15798 LD="${LD-ld} -melf32bsmip"
15799 ;;
15800 *N32*)
15801 LD="${LD-ld} -melf32bmipn32"
15802 ;;
15803 *64-bit*)
15804 LD="${LD-ld} -melf64bmip"
15805 ;;
15806 esac
15807 else
15808 case `/usr/bin/file conftest.$ac_objext` in
15809 *32-bit*)
15810 LD="${LD-ld} -32"
15811 ;;
15812 *N32*)
15813 LD="${LD-ld} -n32"
15814 ;;
15815 *64-bit*)
15816 LD="${LD-ld} -64"
15817 ;;
15818 esac
15819 fi
15820 fi
15821 rm -rf conftest*
15822 ;;
15823
15824x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15825s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15826 # Find out which ABI we are using.
15827 echo 'int i;' > conftest.$ac_ext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15829 (eval $ac_compile) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; then
15833 case `/usr/bin/file conftest.o` in
15834 *32-bit*)
15835 case $host in
15836 x86_64-*kfreebsd*-gnu)
15837 LD="${LD-ld} -m elf_i386_fbsd"
15838 ;;
15839 x86_64-*linux*)
15840 LD="${LD-ld} -m elf_i386"
15841 ;;
15842 ppc64-*linux*|powerpc64-*linux*)
15843 LD="${LD-ld} -m elf32ppclinux"
15844 ;;
15845 s390x-*linux*)
15846 LD="${LD-ld} -m elf_s390"
15847 ;;
15848 sparc64-*linux*)
15849 LD="${LD-ld} -m elf32_sparc"
15850 ;;
15851 esac
15852 ;;
15853 *64-bit*)
15854 case $host in
15855 x86_64-*kfreebsd*-gnu)
15856 LD="${LD-ld} -m elf_x86_64_fbsd"
15857 ;;
15858 x86_64-*linux*)
15859 LD="${LD-ld} -m elf_x86_64"
15860 ;;
15861 ppc*-*linux*|powerpc*-*linux*)
15862 LD="${LD-ld} -m elf64ppc"
15863 ;;
15864 s390*-*linux*|s390*-*tpf*)
15865 LD="${LD-ld} -m elf64_s390"
15866 ;;
15867 sparc*-*linux*)
15868 LD="${LD-ld} -m elf64_sparc"
15869 ;;
15870 esac
15871 ;;
15872 esac
15873 fi
15874 rm -rf conftest*
15875 ;;
15876
15877*-*-sco3.2v5*)
15878 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15879 SAVE_CFLAGS="$CFLAGS"
15880 CFLAGS="$CFLAGS -belf"
15881 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15882echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15883if test "${lt_cv_cc_needs_belf+set}" = set; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15885else
15886 ac_ext=c
15887ac_cpp='$CPP $CPPFLAGS'
15888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15890ac_compiler_gnu=$ac_cv_c_compiler_gnu
15891
15892 cat >conftest.$ac_ext <<_ACEOF
15893/* confdefs.h. */
15894_ACEOF
15895cat confdefs.h >>conftest.$ac_ext
15896cat >>conftest.$ac_ext <<_ACEOF
15897/* end confdefs.h. */
15898
15899int
15900main ()
15901{
15902
15903 ;
15904 return 0;
15905}
15906_ACEOF
15907rm -f conftest.$ac_objext conftest$ac_exeext
15908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909 (eval $ac_link) 2>conftest.er1
15910 ac_status=$?
15911 grep -v '^ *+' conftest.er1 >conftest.err
15912 rm -f conftest.er1
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
15916 { ac_try='test -z "$ac_c_werror_flag"
15917 || test ! -s conftest.err'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest$ac_exeext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; }; then
15929 lt_cv_cc_needs_belf=yes
15930else
15931 echo "$as_me: failed program was:" >&5
15932sed 's/^/| /' conftest.$ac_ext >&5
15933
15934lt_cv_cc_needs_belf=no
15935fi
15936rm -f conftest.err conftest.$ac_objext \
15937 conftest$ac_exeext conftest.$ac_ext
15938 ac_ext=c
15939ac_cpp='$CPP $CPPFLAGS'
15940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15942ac_compiler_gnu=$ac_cv_c_compiler_gnu
15943
15944fi
15945echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15946echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15947 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15948 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15949 CFLAGS="$SAVE_CFLAGS"
15950 fi
15951 ;;
15952sparc*-*solaris*)
15953 # Find out which ABI we are using.
15954 echo 'int i;' > conftest.$ac_ext
15955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15956 (eval $ac_compile) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; then
15960 case `/usr/bin/file conftest.o` in
15961 *64-bit*)
15962 case $lt_cv_prog_gnu_ld in
15963 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15964 *) LD="${LD-ld} -64" ;;
15965 esac
15966 ;;
15967 esac
15968 fi
15969 rm -rf conftest*
15970 ;;
15971esac
15972
15973need_locks="$enable_libtool_lock"
15974
15975
15976for ac_header in dlfcn.h
15977do
15978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15979echo "$as_me:$LINENO: checking for $ac_header" >&5
15980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15981if eval "test \"\${$as_ac_Header+set}\" = set"; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15983else
15984 cat >conftest.$ac_ext <<_ACEOF
15985/* confdefs.h. */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h. */
15990#include <$ac_header>
15991_ACEOF
15992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15994 ac_status=$?
15995 grep -v '^ *+' conftest.er1 >conftest.err
15996 rm -f conftest.er1
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } >/dev/null; then
16000 if test -s conftest.err; then
16001 ac_cpp_err=$ac_c_preproc_warn_flag
16002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16003 else
16004 ac_cpp_err=
16005 fi
16006else
16007 ac_cpp_err=yes
16008fi
16009if test -z "$ac_cpp_err"; then
16010 eval "$as_ac_Header=yes"
16011else
16012 echo "$as_me: failed program was:" >&5
16013sed 's/^/| /' conftest.$ac_ext >&5
16014
16015 eval "$as_ac_Header=no"
16016fi
16017rm -f conftest.err conftest.$ac_ext
16018fi
16019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16021if test `eval echo '${'$as_ac_Header'}'` = yes; then
16022 cat >>confdefs.h <<_ACEOF
16023#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16024_ACEOF
16025
16026fi
16027done
16028
16029
16030
16031# This can be used to rebuild libtool when needed
16032LIBTOOL_DEPS="$ltmain"
16033
16034# Always use our own libtool.
16035LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061test -z "$LN_S" && LN_S="ln -s"
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076if test -n "${ZSH_VERSION+set}" ; then
16077 setopt NO_GLOB_SUBST
16078fi
16079
16080echo "$as_me:$LINENO: checking for objdir" >&5
16081echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16082if test "${lt_cv_objdir+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16084else
16085 rm -f .libs 2>/dev/null
16086mkdir .libs 2>/dev/null
16087if test -d .libs; then
16088 lt_cv_objdir=.libs
16089else
16090 # MS-DOS does not allow filenames that begin with a dot.
16091 lt_cv_objdir=_libs
16092fi
16093rmdir .libs 2>/dev/null
16094fi
16095echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16096echo "${ECHO_T}$lt_cv_objdir" >&6
16097objdir=$lt_cv_objdir
16098
16099
16100
16101
16102
16103cat >>confdefs.h <<_ACEOF
16104#define LT_OBJDIR "$lt_cv_objdir/"
16105_ACEOF
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123case $host_os in
16124aix3*)
16125 # AIX sometimes has problems with the GCC collect2 program. For some
16126 # reason, if we set the COLLECT_NAMES environment variable, the problems
16127 # vanish in a puff of smoke.
16128 if test "X${COLLECT_NAMES+set}" != Xset; then
16129 COLLECT_NAMES=
16130 export COLLECT_NAMES
16131 fi
16132 ;;
16133esac
16134
16135# Sed substitution that helps us do robust quoting. It backslashifies
16136# metacharacters that are still active within double-quoted strings.
16137sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16138
16139# Same as above, but do not quote variable references.
16140double_quote_subst='s/\(["`\\]\)/\\\1/g'
16141
16142# Sed substitution to delay expansion of an escaped shell variable in a
16143# double_quote_subst'ed string.
16144delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16145
16146# Sed substitution to delay expansion of an escaped single quote.
16147delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16148
16149# Sed substitution to avoid accidental globbing in evaled expressions
16150no_glob_subst='s/\*/\\\*/g'
16151
16152# Global variables:
16153ofile=libtool
16154can_build_shared=yes
16155
16156# All known linkers require a `.a' archive for static linking (except MSVC,
16157# which needs '.lib').
16158libext=a
16159
16160with_gnu_ld="$lt_cv_prog_gnu_ld"
16161
16162old_CC="$CC"
16163old_CFLAGS="$CFLAGS"
16164
16165# Set sane defaults for various variables
16166test -z "$CC" && CC=cc
16167test -z "$LTCC" && LTCC=$CC
16168test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16169test -z "$LD" && LD=ld
16170test -z "$ac_objext" && ac_objext=o
16171
16172for cc_temp in $compiler""; do
16173 case $cc_temp in
16174 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16175 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16176 \-*) ;;
16177 *) break;;
16178 esac
16179done
16180cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16181
16182
16183# Only perform the check for file, if the check method requires it
16184test -z "$MAGIC_CMD" && MAGIC_CMD=file
16185case $deplibs_check_method in
16186file_magic*)
16187 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16188 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16189echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16190if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16192else
16193 case $MAGIC_CMD in
16194[\\/*] | ?:[\\/]*)
16195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16196 ;;
16197*)
16198 lt_save_MAGIC_CMD="$MAGIC_CMD"
16199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16200 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16201 for ac_dir in $ac_dummy; do
16202 IFS="$lt_save_ifs"
16203 test -z "$ac_dir" && ac_dir=.
16204 if test -f $ac_dir/${ac_tool_prefix}file; then
16205 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16206 if test -n "$file_magic_test_file"; then
16207 case $deplibs_check_method in
16208 "file_magic "*)
16209 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16212 $EGREP "$file_magic_regex" > /dev/null; then
16213 :
16214 else
16215 cat <<_LT_EOF 1>&2
16216
16217*** Warning: the command libtool uses to detect shared libraries,
16218*** $file_magic_cmd, produces output that libtool cannot recognize.
16219*** The result is that libtool may fail to recognize shared libraries
16220*** as such. This will affect the creation of libtool libraries that
16221*** depend on shared libraries, but programs linked with such libtool
16222*** libraries will work regardless of this problem. Nevertheless, you
16223*** may want to report the problem to your system manager and/or to
16224*** bug-libtool@gnu.org
16225
16226_LT_EOF
16227 fi ;;
16228 esac
16229 fi
16230 break
16231 fi
16232 done
16233 IFS="$lt_save_ifs"
16234 MAGIC_CMD="$lt_save_MAGIC_CMD"
16235 ;;
16236esac
16237fi
16238
16239MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16240if test -n "$MAGIC_CMD"; then
16241 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16242echo "${ECHO_T}$MAGIC_CMD" >&6
16243else
16244 echo "$as_me:$LINENO: result: no" >&5
16245echo "${ECHO_T}no" >&6
16246fi
16247
16248
16249
16250
16251
16252if test -z "$lt_cv_path_MAGIC_CMD"; then
16253 if test -n "$ac_tool_prefix"; then
16254 echo "$as_me:$LINENO: checking for file" >&5
16255echo $ECHO_N "checking for file... $ECHO_C" >&6
16256if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16257 echo $ECHO_N "(cached) $ECHO_C" >&6
16258else
16259 case $MAGIC_CMD in
16260[\\/*] | ?:[\\/]*)
16261 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16262 ;;
16263*)
16264 lt_save_MAGIC_CMD="$MAGIC_CMD"
16265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16266 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16267 for ac_dir in $ac_dummy; do
16268 IFS="$lt_save_ifs"
16269 test -z "$ac_dir" && ac_dir=.
16270 if test -f $ac_dir/file; then
16271 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16272 if test -n "$file_magic_test_file"; then
16273 case $deplibs_check_method in
16274 "file_magic "*)
16275 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16277 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16278 $EGREP "$file_magic_regex" > /dev/null; then
16279 :
16280 else
16281 cat <<_LT_EOF 1>&2
16282
16283*** Warning: the command libtool uses to detect shared libraries,
16284*** $file_magic_cmd, produces output that libtool cannot recognize.
16285*** The result is that libtool may fail to recognize shared libraries
16286*** as such. This will affect the creation of libtool libraries that
16287*** depend on shared libraries, but programs linked with such libtool
16288*** libraries will work regardless of this problem. Nevertheless, you
16289*** may want to report the problem to your system manager and/or to
16290*** bug-libtool@gnu.org
16291
16292_LT_EOF
16293 fi ;;
16294 esac
16295 fi
16296 break
16297 fi
16298 done
16299 IFS="$lt_save_ifs"
16300 MAGIC_CMD="$lt_save_MAGIC_CMD"
16301 ;;
16302esac
16303fi
16304
16305MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16306if test -n "$MAGIC_CMD"; then
16307 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16308echo "${ECHO_T}$MAGIC_CMD" >&6
16309else
16310 echo "$as_me:$LINENO: result: no" >&5
16311echo "${ECHO_T}no" >&6
16312fi
16313
16314
16315 else
16316 MAGIC_CMD=:
16317 fi
16318fi
16319
16320 fi
16321 ;;
16322esac
16323
16324# Use C for the default configuration in the libtool script
16325
16326lt_save_CC="$CC"
16327ac_ext=c
16328ac_cpp='$CPP $CPPFLAGS'
16329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16331ac_compiler_gnu=$ac_cv_c_compiler_gnu
16332
16333
16334# Source file extension for C test sources.
16335ac_ext=c
16336
16337# Object file extension for compiled C test sources.
16338objext=o
16339objext=$objext
16340
16341# Code to be used in simple compile tests
16342lt_simple_compile_test_code="int some_variable = 0;"
16343
16344# Code to be used in simple link tests
16345lt_simple_link_test_code='int main(){return(0);}'
16346
16347
16348
16349
16350
16351
16352
16353# If no C compiler was specified, use CC.
16354LTCC=${LTCC-"$CC"}
16355
16356# If no C compiler flags were specified, use CFLAGS.
16357LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16358
16359# Allow CC to be a program name with arguments.
16360compiler=$CC
16361
16362# Save the default compiler, since it gets overwritten when the other
16363# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16364compiler_DEFAULT=$CC
16365
16366# save warnings/boilerplate of simple test code
16367ac_outfile=conftest.$ac_objext
16368echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16369eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16370_lt_compiler_boilerplate=`cat conftest.err`
16371$RM conftest*
16372
16373ac_outfile=conftest.$ac_objext
16374echo "$lt_simple_link_test_code" >conftest.$ac_ext
16375eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16376_lt_linker_boilerplate=`cat conftest.err`
16377$RM conftest*
16378
16379
16380## CAVEAT EMPTOR:
16381## There is no encapsulation within the following macros, do not change
16382## the running order or otherwise move them around unless you know exactly
16383## what you are doing...
16384if test -n "$compiler"; then
16385
16386lt_prog_compiler_no_builtin_flag=
16387
16388if test "$GCC" = yes; then
16389 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16390
16391 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16392echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16393if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16395else
16396 lt_cv_prog_compiler_rtti_exceptions=no
16397 ac_outfile=conftest.$ac_objext
16398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16399 lt_compiler_flag="-fno-rtti -fno-exceptions"
16400 # Insert the option either (1) after the last *FLAGS variable, or
16401 # (2) before a word containing "conftest.", or (3) at the end.
16402 # Note that $ac_compile itself does not contain backslashes and begins
16403 # with a dollar sign (not a hyphen), so the echo should work correctly.
16404 # The option is referenced via a variable to avoid confusing sed.
16405 lt_compile=`echo "$ac_compile" | $SED \
16406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16408 -e 's:$: $lt_compiler_flag:'`
f6e377f8 16409 (eval echo "\"\$as_me:16409: $lt_compile\"" >&5)
da0f6381
PB
16410 (eval "$lt_compile" 2>conftest.err)
16411 ac_status=$?
16412 cat conftest.err >&5
f6e377f8 16413 echo "$as_me:16413: \$? = $ac_status" >&5
da0f6381
PB
16414 if (exit $ac_status) && test -s "$ac_outfile"; then
16415 # The compiler can only warn and ignore the option if not recognized
16416 # So say no if there are warnings other than the usual output.
16417 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16420 lt_cv_prog_compiler_rtti_exceptions=yes
16421 fi
16422 fi
16423 $RM conftest*
16424
16425fi
16426echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16427echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16428
16429if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16430 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16431else
16432 :
16433fi
16434
16435fi
16436
16437
16438
16439
16440
16441
16442 lt_prog_compiler_wl=
16443lt_prog_compiler_pic=
16444lt_prog_compiler_static=
16445
16446echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16447echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16448
16449 if test "$GCC" = yes; then
16450 lt_prog_compiler_wl='-Wl,'
16451 lt_prog_compiler_static='-static'
16452
16453 case $host_os in
16454 aix*)
16455 # All AIX code is PIC.
16456 if test "$host_cpu" = ia64; then
16457 # AIX 5 now supports IA64 processor
16458 lt_prog_compiler_static='-Bstatic'
16459 fi
16460 ;;
16461
16462 amigaos*)
16463 if test "$host_cpu" = m68k; then
16464 # FIXME: we need at least 68020 code to build shared libraries, but
16465 # adding the `-m68020' flag to GCC prevents building anything better,
16466 # like `-m68040'.
16467 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16468 fi
16469 ;;
16470
16471 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16472 # PIC is the default for these OSes.
16473 ;;
16474
16475 mingw* | cygwin* | pw32* | os2*)
16476 # This hack is so that the source file can tell whether it is being
16477 # built for inclusion in a dll (and should export symbols for example).
16478 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16479 # (--disable-auto-import) libraries
16480 lt_prog_compiler_pic='-DDLL_EXPORT'
16481 ;;
16482
16483 darwin* | rhapsody*)
16484 # PIC is the default on this platform
16485 # Common symbols not allowed in MH_DYLIB files
16486 lt_prog_compiler_pic='-fno-common'
16487 ;;
16488
16489 hpux*)
16490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16491 # not for PA HP-UX.
16492 case $host_cpu in
16493 hppa*64*|ia64*)
16494 # +Z the default
16495 ;;
16496 *)
16497 lt_prog_compiler_pic='-fPIC'
16498 ;;
16499 esac
16500 ;;
16501
16502 interix[3-9]*)
16503 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16504 # Instead, we relocate shared libraries at runtime.
16505 ;;
16506
16507 msdosdjgpp*)
16508 # Just because we use GCC doesn't mean we suddenly get shared libraries
16509 # on systems that don't support them.
16510 lt_prog_compiler_can_build_shared=no
16511 enable_shared=no
16512 ;;
16513
16514 *nto* | *qnx*)
16515 # QNX uses GNU C++, but need to define -shared option too, otherwise
16516 # it will coredump.
16517 lt_prog_compiler_pic='-fPIC -shared'
16518 ;;
16519
16520 sysv4*MP*)
16521 if test -d /usr/nec; then
16522 lt_prog_compiler_pic=-Kconform_pic
16523 fi
16524 ;;
16525
16526 *)
16527 lt_prog_compiler_pic='-fPIC'
16528 ;;
16529 esac
16530 else
16531 # PORTME Check for flag to pass linker flags through the system compiler.
16532 case $host_os in
16533 aix*)
16534 lt_prog_compiler_wl='-Wl,'
16535 if test "$host_cpu" = ia64; then
16536 # AIX 5 now supports IA64 processor
16537 lt_prog_compiler_static='-Bstatic'
16538 else
16539 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16540 fi
16541 ;;
16542 darwin*)
16543 # PIC is the default on this platform
16544 # Common symbols not allowed in MH_DYLIB files
16545 case $cc_basename in
16546 xlc*)
16547 lt_prog_compiler_pic='-qnocommon'
16548 lt_prog_compiler_wl='-Wl,'
16549 ;;
16550 esac
16551 ;;
16552
16553 mingw* | cygwin* | pw32* | os2*)
16554 # This hack is so that the source file can tell whether it is being
16555 # built for inclusion in a dll (and should export symbols for example).
16556 lt_prog_compiler_pic='-DDLL_EXPORT'
16557 ;;
16558
16559 hpux9* | hpux10* | hpux11*)
16560 lt_prog_compiler_wl='-Wl,'
16561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16562 # not for PA HP-UX.
16563 case $host_cpu in
16564 hppa*64*|ia64*)
16565 # +Z the default
16566 ;;
16567 *)
16568 lt_prog_compiler_pic='+Z'
16569 ;;
16570 esac
16571 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16572 lt_prog_compiler_static='${wl}-a ${wl}archive'
16573 ;;
16574
16575 irix5* | irix6* | nonstopux*)
16576 lt_prog_compiler_wl='-Wl,'
16577 # PIC (with -KPIC) is the default.
16578 lt_prog_compiler_static='-non_shared'
16579 ;;
16580
16581 linux* | k*bsd*-gnu)
16582 case $cc_basename in
16583 icc* | ecc*)
16584 lt_prog_compiler_wl='-Wl,'
16585 lt_prog_compiler_pic='-KPIC'
16586 lt_prog_compiler_static='-static'
16587 ;;
16588 pgcc* | pgf77* | pgf90* | pgf95*)
16589 # Portland Group compilers (*not* the Pentium gcc compiler,
16590 # which looks to be a dead project)
16591 lt_prog_compiler_wl='-Wl,'
16592 lt_prog_compiler_pic='-fpic'
16593 lt_prog_compiler_static='-Bstatic'
16594 ;;
16595 ccc*)
16596 lt_prog_compiler_wl='-Wl,'
16597 # All Alpha code is PIC.
16598 lt_prog_compiler_static='-non_shared'
16599 ;;
16600 *)
16601 case `$CC -V 2>&1 | sed 5q` in
16602 *Sun\ C*)
16603 # Sun C 5.9
16604 lt_prog_compiler_pic='-KPIC'
16605 lt_prog_compiler_static='-Bstatic'
16606 lt_prog_compiler_wl='-Wl,'
16607 ;;
16608 *Sun\ F*)
16609 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16610 lt_prog_compiler_pic='-KPIC'
16611 lt_prog_compiler_static='-Bstatic'
16612 lt_prog_compiler_wl=''
16613 ;;
16614 esac
16615 ;;
16616 esac
16617 ;;
16618
16619 newsos6)
16620 lt_prog_compiler_pic='-KPIC'
16621 lt_prog_compiler_static='-Bstatic'
16622 ;;
16623
16624 *nto* | *qnx*)
16625 # QNX uses GNU C++, but need to define -shared option too, otherwise
16626 # it will coredump.
16627 lt_prog_compiler_pic='-fPIC -shared'
16628 ;;
16629
16630 osf3* | osf4* | osf5*)
16631 lt_prog_compiler_wl='-Wl,'
16632 # All OSF/1 code is PIC.
16633 lt_prog_compiler_static='-non_shared'
16634 ;;
16635
16636 rdos*)
16637 lt_prog_compiler_static='-non_shared'
16638 ;;
16639
16640 solaris*)
16641 lt_prog_compiler_pic='-KPIC'
16642 lt_prog_compiler_static='-Bstatic'
16643 case $cc_basename in
16644 f77* | f90* | f95*)
16645 lt_prog_compiler_wl='-Qoption ld ';;
16646 *)
16647 lt_prog_compiler_wl='-Wl,';;
16648 esac
16649 ;;
16650
16651 sunos4*)
16652 lt_prog_compiler_wl='-Qoption ld '
16653 lt_prog_compiler_pic='-PIC'
16654 lt_prog_compiler_static='-Bstatic'
16655 ;;
16656
16657 sysv4 | sysv4.2uw2* | sysv4.3*)
16658 lt_prog_compiler_wl='-Wl,'
16659 lt_prog_compiler_pic='-KPIC'
16660 lt_prog_compiler_static='-Bstatic'
16661 ;;
16662
16663 sysv4*MP*)
16664 if test -d /usr/nec ;then
16665 lt_prog_compiler_pic='-Kconform_pic'
16666 lt_prog_compiler_static='-Bstatic'
16667 fi
16668 ;;
16669
16670 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16671 lt_prog_compiler_wl='-Wl,'
16672 lt_prog_compiler_pic='-KPIC'
16673 lt_prog_compiler_static='-Bstatic'
16674 ;;
16675
16676 unicos*)
16677 lt_prog_compiler_wl='-Wl,'
16678 lt_prog_compiler_can_build_shared=no
16679 ;;
16680
16681 uts4*)
16682 lt_prog_compiler_pic='-pic'
16683 lt_prog_compiler_static='-Bstatic'
16684 ;;
16685
16686 *)
16687 lt_prog_compiler_can_build_shared=no
16688 ;;
16689 esac
16690 fi
16691
16692case $host_os in
16693 # For platforms which do not support PIC, -DPIC is meaningless:
16694 *djgpp*)
16695 lt_prog_compiler_pic=
16696 ;;
16697 *)
16698 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16699 ;;
16700esac
16701echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16702echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16703
16704
16705
16706
16707
16708
16709#
16710# Check to make sure the PIC flag actually works.
16711#
16712if test -n "$lt_prog_compiler_pic"; then
16713 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16714echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16715if test "${lt_prog_compiler_pic_works+set}" = set; then
16716 echo $ECHO_N "(cached) $ECHO_C" >&6
16717else
16718 lt_prog_compiler_pic_works=no
16719 ac_outfile=conftest.$ac_objext
16720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16721 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16722 # Insert the option either (1) after the last *FLAGS variable, or
16723 # (2) before a word containing "conftest.", or (3) at the end.
16724 # Note that $ac_compile itself does not contain backslashes and begins
16725 # with a dollar sign (not a hyphen), so the echo should work correctly.
16726 # The option is referenced via a variable to avoid confusing sed.
16727 lt_compile=`echo "$ac_compile" | $SED \
16728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16730 -e 's:$: $lt_compiler_flag:'`
f6e377f8 16731 (eval echo "\"\$as_me:16731: $lt_compile\"" >&5)
da0f6381
PB
16732 (eval "$lt_compile" 2>conftest.err)
16733 ac_status=$?
16734 cat conftest.err >&5
f6e377f8 16735 echo "$as_me:16735: \$? = $ac_status" >&5
da0f6381
PB
16736 if (exit $ac_status) && test -s "$ac_outfile"; then
16737 # The compiler can only warn and ignore the option if not recognized
16738 # So say no if there are warnings other than the usual output.
16739 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16742 lt_prog_compiler_pic_works=yes
16743 fi
16744 fi
16745 $RM conftest*
16746
16747fi
16748echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16749echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16750
16751if test x"$lt_prog_compiler_pic_works" = xyes; then
16752 case $lt_prog_compiler_pic in
16753 "" | " "*) ;;
16754 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16755 esac
16756else
16757 lt_prog_compiler_pic=
16758 lt_prog_compiler_can_build_shared=no
16759fi
16760
16761fi
16762
16763
16764
16765
16766
16767
16768#
16769# Check to make sure the static flag actually works.
16770#
16771wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16772echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16773echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16774if test "${lt_prog_compiler_static_works+set}" = set; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16776else
16777 lt_prog_compiler_static_works=no
16778 save_LDFLAGS="$LDFLAGS"
16779 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16780 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16782 # The linker can only warn and ignore the option if not recognized
16783 # So say no if there are warnings
16784 if test -s conftest.err; then
16785 # Append any errors to the config.log.
16786 cat conftest.err 1>&5
16787 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16789 if diff conftest.exp conftest.er2 >/dev/null; then
16790 lt_prog_compiler_static_works=yes
16791 fi
16792 else
16793 lt_prog_compiler_static_works=yes
16794 fi
16795 fi
16796 $RM conftest*
16797 LDFLAGS="$save_LDFLAGS"
16798
16799fi
16800echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16801echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16802
16803if test x"$lt_prog_compiler_static_works" = xyes; then
16804 :
16805else
16806 lt_prog_compiler_static=
16807fi
16808
16809
16810
16811
16812
16813
16814
16815 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16816echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16817if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16819else
16820 lt_cv_prog_compiler_c_o=no
16821 $RM -r conftest 2>/dev/null
16822 mkdir conftest
16823 cd conftest
16824 mkdir out
16825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16826
16827 lt_compiler_flag="-o out/conftest2.$ac_objext"
16828 # Insert the option either (1) after the last *FLAGS variable, or
16829 # (2) before a word containing "conftest.", or (3) at the end.
16830 # Note that $ac_compile itself does not contain backslashes and begins
16831 # with a dollar sign (not a hyphen), so the echo should work correctly.
16832 lt_compile=`echo "$ac_compile" | $SED \
16833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16835 -e 's:$: $lt_compiler_flag:'`
f6e377f8 16836 (eval echo "\"\$as_me:16836: $lt_compile\"" >&5)
da0f6381
PB
16837 (eval "$lt_compile" 2>out/conftest.err)
16838 ac_status=$?
16839 cat out/conftest.err >&5
f6e377f8 16840 echo "$as_me:16840: \$? = $ac_status" >&5
da0f6381
PB
16841 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16842 then
16843 # The compiler can only warn and ignore the option if not recognized
16844 # So say no if there are warnings
16845 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16846 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16847 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16848 lt_cv_prog_compiler_c_o=yes
16849 fi
16850 fi
16851 chmod u+w . 2>&5
16852 $RM conftest*
16853 # SGI C++ compiler will create directory out/ii_files/ for
16854 # template instantiation
16855 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16856 $RM out/* && rmdir out
16857 cd ..
16858 $RM -r conftest
16859 $RM conftest*
16860
16861fi
16862echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16863echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16864
16865
16866
16867
16868
16869
16870 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16871echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16872if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16874else
16875 lt_cv_prog_compiler_c_o=no
16876 $RM -r conftest 2>/dev/null
16877 mkdir conftest
16878 cd conftest
16879 mkdir out
16880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16881
16882 lt_compiler_flag="-o out/conftest2.$ac_objext"
16883 # Insert the option either (1) after the last *FLAGS variable, or
16884 # (2) before a word containing "conftest.", or (3) at the end.
16885 # Note that $ac_compile itself does not contain backslashes and begins
16886 # with a dollar sign (not a hyphen), so the echo should work correctly.
16887 lt_compile=`echo "$ac_compile" | $SED \
16888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16890 -e 's:$: $lt_compiler_flag:'`
f6e377f8 16891 (eval echo "\"\$as_me:16891: $lt_compile\"" >&5)
da0f6381
PB
16892 (eval "$lt_compile" 2>out/conftest.err)
16893 ac_status=$?
16894 cat out/conftest.err >&5
f6e377f8 16895 echo "$as_me:16895: \$? = $ac_status" >&5
da0f6381
PB
16896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16897 then
16898 # The compiler can only warn and ignore the option if not recognized
16899 # So say no if there are warnings
16900 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16903 lt_cv_prog_compiler_c_o=yes
16904 fi
16905 fi
16906 chmod u+w . 2>&5
16907 $RM conftest*
16908 # SGI C++ compiler will create directory out/ii_files/ for
16909 # template instantiation
16910 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16911 $RM out/* && rmdir out
16912 cd ..
16913 $RM -r conftest
16914 $RM conftest*
16915
16916fi
16917echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16918echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16919
16920
16921
16922
16923hard_links="nottested"
16924if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16925 # do not overwrite the value of need_locks provided by the user
16926 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16927echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16928 hard_links=yes
16929 $RM conftest*
16930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16931 touch conftest.a
16932 ln conftest.a conftest.b 2>&5 || hard_links=no
16933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16934 echo "$as_me:$LINENO: result: $hard_links" >&5
16935echo "${ECHO_T}$hard_links" >&6
16936 if test "$hard_links" = no; then
16937 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16938echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16939 need_locks=warn
16940 fi
16941else
16942 need_locks=no
16943fi
16944
16945
16946
16947
16948
16949
16950 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16951echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16952
16953 runpath_var=
16954 allow_undefined_flag=
16955 always_export_symbols=no
16956 archive_cmds=
16957 archive_expsym_cmds=
16958 compiler_needs_object=no
16959 enable_shared_with_static_runtimes=no
16960 export_dynamic_flag_spec=
16961 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16962 hardcode_automatic=no
16963 hardcode_direct=no
16964 hardcode_direct_absolute=no
16965 hardcode_libdir_flag_spec=
16966 hardcode_libdir_flag_spec_ld=
16967 hardcode_libdir_separator=
16968 hardcode_minus_L=no
16969 hardcode_shlibpath_var=unsupported
16970 inherit_rpath=no
16971 link_all_deplibs=unknown
16972 module_cmds=
16973 module_expsym_cmds=
16974 old_archive_from_new_cmds=
16975 old_archive_from_expsyms_cmds=
16976 thread_safe_flag_spec=
16977 whole_archive_flag_spec=
16978 # include_expsyms should be a list of space-separated symbols to be *always*
16979 # included in the symbol list
16980 include_expsyms=
16981 # exclude_expsyms can be an extended regexp of symbols to exclude
16982 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16983 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16984 # as well as any symbol that contains `d'.
16985 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16986 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16987 # platforms (ab)use it in PIC code, but their linkers get confused if
16988 # the symbol is explicitly referenced. Since portable code cannot
16989 # rely on this symbol name, it's probably fine to never include it in
16990 # preloaded symbol tables.
16991 extract_expsyms_cmds=
16992
16993 case $host_os in
16994 cygwin* | mingw* | pw32*)
16995 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16996 # When not using gcc, we currently assume that we are using
16997 # Microsoft Visual C++.
16998 if test "$GCC" != yes; then
16999 with_gnu_ld=no
17000 fi
17001 ;;
17002 interix*)
17003 # we just hope/assume this is gcc and not c89 (= MSVC++)
17004 with_gnu_ld=yes
17005 ;;
17006 openbsd*)
17007 with_gnu_ld=no
17008 ;;
17009 esac
17010
17011 ld_shlibs=yes
17012 if test "$with_gnu_ld" = yes; then
17013 # If archive_cmds runs LD, not CC, wlarc should be empty
17014 wlarc='${wl}'
17015
17016 # Set some defaults for GNU ld with shared library support. These
17017 # are reset later if shared libraries are not supported. Putting them
17018 # here allows them to be overridden if necessary.
17019 runpath_var=LD_RUN_PATH
17020 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17021 export_dynamic_flag_spec='${wl}--export-dynamic'
17022 # ancient GNU ld didn't support --whole-archive et. al.
17023 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17024 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17025 else
17026 whole_archive_flag_spec=
17027 fi
17028 supports_anon_versioning=no
17029 case `$LD -v 2>&1` in
17030 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17031 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17032 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17033 *\ 2.11.*) ;; # other 2.11 versions
17034 *) supports_anon_versioning=yes ;;
17035 esac
17036
17037 # See if GNU ld supports shared libraries.
17038 case $host_os in
17039 aix[3-9]*)
17040 # On AIX/PPC, the GNU linker is very broken
17041 if test "$host_cpu" != ia64; then
17042 ld_shlibs=no
17043 cat <<_LT_EOF 1>&2
17044
17045*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17046*** to be unable to reliably create shared libraries on AIX.
17047*** Therefore, libtool is disabling shared libraries support. If you
17048*** really care for shared libraries, you may want to modify your PATH
17049*** so that a non-GNU linker is found, and then restart.
17050
17051_LT_EOF
17052 fi
17053 ;;
17054
17055 amigaos*)
17056 if test "$host_cpu" = m68k; then
17057 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)'
17058 hardcode_libdir_flag_spec='-L$libdir'
17059 hardcode_minus_L=yes
17060 fi
17061
17062 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17063 # that the semantics of dynamic libraries on AmigaOS, at least up
17064 # to version 4, is to share data among multiple programs linked
17065 # with the same dynamic library. Since this doesn't match the
17066 # behavior of shared libraries on other platforms, we can't use
17067 # them.
17068 ld_shlibs=no
17069 ;;
17070
17071 beos*)
17072 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17073 allow_undefined_flag=unsupported
17074 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17075 # support --undefined. This deserves some investigation. FIXME
17076 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17077 else
17078 ld_shlibs=no
17079 fi
17080 ;;
17081
17082 cygwin* | mingw* | pw32*)
17083 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17084 # as there is no search path for DLLs.
17085 hardcode_libdir_flag_spec='-L$libdir'
17086 allow_undefined_flag=unsupported
17087 always_export_symbols=no
17088 enable_shared_with_static_runtimes=yes
17089 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17090
17091 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17093 # If the export-symbols file already is a .def file (1st line
17094 # is EXPORTS), use it as is; otherwise, prepend...
17095 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17096 cp $export_symbols $output_objdir/$soname.def;
17097 else
17098 echo EXPORTS > $output_objdir/$soname.def;
17099 cat $export_symbols >> $output_objdir/$soname.def;
17100 fi~
17101 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17102 else
17103 ld_shlibs=no
17104 fi
17105 ;;
17106
17107 interix[3-9]*)
17108 hardcode_direct=no
17109 hardcode_shlibpath_var=no
17110 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17111 export_dynamic_flag_spec='${wl}-E'
17112 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17113 # Instead, shared libraries are loaded at an image base (0x10000000 by
17114 # default) and relocated if they conflict, which is a slow very memory
17115 # consuming and fragmenting process. To avoid this, we pick a random,
17116 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17117 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17118 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17119 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'
17120 ;;
17121
17122 gnu* | linux* | tpf* | k*bsd*-gnu)
17123 tmp_diet=no
17124 if test "$host_os" = linux-dietlibc; then
17125 case $cc_basename in
17126 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17127 esac
17128 fi
17129 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17130 && test "$tmp_diet" = no
17131 then
17132 tmp_addflag=
17133 case $cc_basename,$host_cpu in
17134 pgcc*) # Portland Group C compiler
17135 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'
17136 tmp_addflag=' $pic_flag'
17137 ;;
17138 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17139 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'
17140 tmp_addflag=' $pic_flag -Mnomain' ;;
17141 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17142 tmp_addflag=' -i_dynamic' ;;
17143 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17144 tmp_addflag=' -i_dynamic -nofor_main' ;;
17145 ifc* | ifort*) # Intel Fortran compiler
17146 tmp_addflag=' -nofor_main' ;;
17147 esac
17148 case `$CC -V 2>&1 | sed 5q` in
17149 *Sun\ C*) # Sun C 5.9
17150 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'
17151 compiler_needs_object=yes
17152 tmp_sharedflag='-G' ;;
17153 *Sun\ F*) # Sun Fortran 8.3
17154 tmp_sharedflag='-G' ;;
17155 *)
17156 tmp_sharedflag='-shared' ;;
17157 esac
17158 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17159
17160 if test "x$supports_anon_versioning" = xyes; then
17161 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17162 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17163 echo "local: *; };" >> $output_objdir/$libname.ver~
17164 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17165 fi
17166 else
17167 ld_shlibs=no
17168 fi
17169 ;;
17170
17171 netbsd*)
17172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17173 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17174 wlarc=
17175 else
17176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17177 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17178 fi
17179 ;;
17180
17181 solaris*)
17182 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17183 ld_shlibs=no
17184 cat <<_LT_EOF 1>&2
17185
17186*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17187*** create shared libraries on Solaris systems. Therefore, libtool
17188*** is disabling shared libraries support. We urge you to upgrade GNU
17189*** binutils to release 2.9.1 or newer. Another option is to modify
17190*** your PATH or compiler configuration so that the native linker is
17191*** used, and then restart.
17192
17193_LT_EOF
17194 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17196 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17197 else
17198 ld_shlibs=no
17199 fi
17200 ;;
17201
17202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17203 case `$LD -v 2>&1` in
17204 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17205 ld_shlibs=no
17206 cat <<_LT_EOF 1>&2
17207
17208*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17209*** reliably create shared libraries on SCO systems. Therefore, libtool
17210*** is disabling shared libraries support. We urge you to upgrade GNU
17211*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17212*** your PATH or compiler configuration so that the native linker is
17213*** used, and then restart.
17214
17215_LT_EOF
17216 ;;
17217 *)
17218 # For security reasons, it is highly recommended that you always
17219 # use absolute paths for naming shared libraries, and exclude the
17220 # DT_RUNPATH tag from executables and libraries. But doing so
17221 # requires that you compile everything twice, which is a pain.
17222 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17225 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17226 else
17227 ld_shlibs=no
17228 fi
17229 ;;
17230 esac
17231 ;;
17232
17233 sunos4*)
17234 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17235 wlarc=
17236 hardcode_direct=yes
17237 hardcode_shlibpath_var=no
17238 ;;
17239
17240 *)
17241 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17244 else
17245 ld_shlibs=no
17246 fi
17247 ;;
17248 esac
17249
17250 if test "$ld_shlibs" = no; then
17251 runpath_var=
17252 hardcode_libdir_flag_spec=
17253 export_dynamic_flag_spec=
17254 whole_archive_flag_spec=
17255 fi
17256 else
17257 # PORTME fill in a description of your system's linker (not GNU ld)
17258 case $host_os in
17259 aix3*)
17260 allow_undefined_flag=unsupported
17261 always_export_symbols=yes
17262 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'
17263 # Note: this linker hardcodes the directories in LIBPATH if there
17264 # are no directories specified by -L.
17265 hardcode_minus_L=yes
17266 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17267 # Neither direct hardcoding nor static linking is supported with a
17268 # broken collect2.
17269 hardcode_direct=unsupported
17270 fi
17271 ;;
17272
17273 aix[4-9]*)
17274 if test "$host_cpu" = ia64; then
17275 # On IA64, the linker does run time linking by default, so we don't
17276 # have to do anything special.
17277 aix_use_runtimelinking=no
17278 exp_sym_flag='-Bexport'
17279 no_entry_flag=""
17280 else
17281 # If we're using GNU nm, then we don't want the "-C" option.
17282 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17283 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17284 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'
17285 else
17286 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'
17287 fi
17288 aix_use_runtimelinking=no
17289
17290 # Test if we are trying to use run time linking or normal
17291 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17292 # need to do runtime linking.
17293 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17294 for ld_flag in $LDFLAGS; do
17295 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17296 aix_use_runtimelinking=yes
17297 break
17298 fi
17299 done
17300 ;;
17301 esac
17302
17303 exp_sym_flag='-bexport'
17304 no_entry_flag='-bnoentry'
17305 fi
17306
17307 # When large executables or shared objects are built, AIX ld can
17308 # have problems creating the table of contents. If linking a library
17309 # or program results in "error TOC overflow" add -mminimal-toc to
17310 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17311 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17312
17313 archive_cmds=''
17314 hardcode_direct=yes
17315 hardcode_direct_absolute=yes
17316 hardcode_libdir_separator=':'
17317 link_all_deplibs=yes
17318 file_list_spec='${wl}-f,'
17319
17320 if test "$GCC" = yes; then
17321 case $host_os in aix4.[012]|aix4.[012].*)
17322 # We only want to do this on AIX 4.2 and lower, the check
17323 # below for broken collect2 doesn't work under 4.3+
17324 collect2name=`${CC} -print-prog-name=collect2`
17325 if test -f "$collect2name" &&
17326 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17327 then
17328 # We have reworked collect2
17329 :
17330 else
17331 # We have old collect2
17332 hardcode_direct=unsupported
17333 # It fails to find uninstalled libraries when the uninstalled
17334 # path is not listed in the libpath. Setting hardcode_minus_L
17335 # to unsupported forces relinking
17336 hardcode_minus_L=yes
17337 hardcode_libdir_flag_spec='-L$libdir'
17338 hardcode_libdir_separator=
17339 fi
17340 ;;
17341 esac
17342 shared_flag='-shared'
17343 if test "$aix_use_runtimelinking" = yes; then
17344 shared_flag="$shared_flag "'${wl}-G'
17345 fi
17346 else
17347 # not using gcc
17348 if test "$host_cpu" = ia64; then
17349 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17350 # chokes on -Wl,-G. The following line is correct:
17351 shared_flag='-G'
17352 else
17353 if test "$aix_use_runtimelinking" = yes; then
17354 shared_flag='${wl}-G'
17355 else
17356 shared_flag='${wl}-bM:SRE'
17357 fi
17358 fi
17359 fi
17360
17361 # It seems that -bexpall does not export symbols beginning with
17362 # underscore (_), so it is better to generate a list of symbols to export.
17363 always_export_symbols=yes
17364 if test "$aix_use_runtimelinking" = yes; then
17365 # Warning - without using the other runtime loading flags (-brtl),
17366 # -berok will link without error, but may produce a broken library.
17367 allow_undefined_flag='-berok'
17368 # Determine the default libpath from the value encoded in an
17369 # empty executable.
17370 cat >conftest.$ac_ext <<_ACEOF
17371/* confdefs.h. */
17372_ACEOF
17373cat confdefs.h >>conftest.$ac_ext
17374cat >>conftest.$ac_ext <<_ACEOF
17375/* end confdefs.h. */
17376
17377int
17378main ()
17379{
17380
17381 ;
17382 return 0;
17383}
17384_ACEOF
17385rm -f conftest.$ac_objext conftest$ac_exeext
17386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17387 (eval $ac_link) 2>conftest.er1
17388 ac_status=$?
17389 grep -v '^ *+' conftest.er1 >conftest.err
17390 rm -f conftest.er1
17391 cat conftest.err >&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } &&
17394 { ac_try='test -z "$ac_c_werror_flag"
17395 || test ! -s conftest.err'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest$ac_exeext'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407
17408lt_aix_libpath_sed='
17409 /Import File Strings/,/^$/ {
17410 /^0/ {
17411 s/^0 *\(.*\)$/\1/
17412 p
17413 }
17414 }'
17415aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17416# Check for a 64-bit object if we didn't find anything.
17417if test -z "$aix_libpath"; then
17418 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17419fi
17420else
17421 echo "$as_me: failed program was:" >&5
17422sed 's/^/| /' conftest.$ac_ext >&5
17423
17424fi
17425rm -f conftest.err conftest.$ac_objext \
17426 conftest$ac_exeext conftest.$ac_ext
17427if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17428
17429 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17430 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"
17431 else
17432 if test "$host_cpu" = ia64; then
17433 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17434 allow_undefined_flag="-z nodefs"
17435 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"
17436 else
17437 # Determine the default libpath from the value encoded in an
17438 # empty executable.
17439 cat >conftest.$ac_ext <<_ACEOF
17440/* confdefs.h. */
17441_ACEOF
17442cat confdefs.h >>conftest.$ac_ext
17443cat >>conftest.$ac_ext <<_ACEOF
17444/* end confdefs.h. */
17445
17446int
17447main ()
17448{
17449
17450 ;
17451 return 0;
17452}
17453_ACEOF
17454rm -f conftest.$ac_objext conftest$ac_exeext
17455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17456 (eval $ac_link) 2>conftest.er1
17457 ac_status=$?
17458 grep -v '^ *+' conftest.er1 >conftest.err
17459 rm -f conftest.er1
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } &&
17463 { ac_try='test -z "$ac_c_werror_flag"
17464 || test ! -s conftest.err'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest$ac_exeext'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476
17477lt_aix_libpath_sed='
17478 /Import File Strings/,/^$/ {
17479 /^0/ {
17480 s/^0 *\(.*\)$/\1/
17481 p
17482 }
17483 }'
17484aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17485# Check for a 64-bit object if we didn't find anything.
17486if test -z "$aix_libpath"; then
17487 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17488fi
17489else
17490 echo "$as_me: failed program was:" >&5
17491sed 's/^/| /' conftest.$ac_ext >&5
17492
17493fi
17494rm -f conftest.err conftest.$ac_objext \
17495 conftest$ac_exeext conftest.$ac_ext
17496if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17497
17498 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17499 # Warning - without using the other run time loading flags,
17500 # -berok will link without error, but may produce a broken library.
17501 no_undefined_flag=' ${wl}-bernotok'
17502 allow_undefined_flag=' ${wl}-berok'
17503 # Exported symbols can be pulled into shared objects from archives
17504 whole_archive_flag_spec='$convenience'
17505 archive_cmds_need_lc=yes
17506 # This is similar to how AIX traditionally builds its shared libraries.
17507 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'
17508 fi
17509 fi
17510 ;;
17511
17512 amigaos*)
17513 if test "$host_cpu" = m68k; then
17514 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)'
17515 hardcode_libdir_flag_spec='-L$libdir'
17516 hardcode_minus_L=yes
17517 fi
17518 # see comment about different semantics on the GNU ld section
17519 ld_shlibs=no
17520 ;;
17521
17522 bsdi[45]*)
17523 export_dynamic_flag_spec=-rdynamic
17524 ;;
17525
17526 cygwin* | mingw* | pw32*)
17527 # When not using gcc, we currently assume that we are using
17528 # Microsoft Visual C++.
17529 # hardcode_libdir_flag_spec is actually meaningless, as there is
17530 # no search path for DLLs.
17531 hardcode_libdir_flag_spec=' '
17532 allow_undefined_flag=unsupported
17533 # Tell ltmain to make .lib files, not .a files.
17534 libext=lib
17535 # Tell ltmain to make .dll files, not .so files.
17536 shrext_cmds=".dll"
17537 # FIXME: Setting linknames here is a bad hack.
17538 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17539 # The linker will automatically build a .lib file if we build a DLL.
17540 old_archive_from_new_cmds='true'
17541 # FIXME: Should let the user specify the lib program.
17542 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17543 fix_srcfile_path='`cygpath -w "$srcfile"`'
17544 enable_shared_with_static_runtimes=yes
17545 ;;
17546
17547 darwin* | rhapsody*)
17548 case $host_os in
17549 rhapsody* | darwin1.[012])
17550 allow_undefined_flag='${wl}-undefined ${wl}suppress'
17551 ;;
17552 *) # Darwin 1.3 on
17553 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17554 10.[012])
17555 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17556 ;;
17557 10.*)
17558 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
17559 ;;
17560 esac
17561 ;;
17562 esac
17563 archive_cmds_need_lc=no
17564 hardcode_direct=no
17565 hardcode_automatic=yes
17566 hardcode_shlibpath_var=unsupported
17567 whole_archive_flag_spec=''
17568 link_all_deplibs=yes
17569 if test "$GCC" = yes ; then
17570 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17572else
17573 lt_cv_apple_cc_single_mod=no
17574 if test -z "${LT_MULTI_MODULE}"; then
17575 # By default we will add the -single_module flag. You can override
17576 # by either setting the environment variable LT_MULTI_MODULE
17577 # non-empty at configure time, or by adding -multi-module to the
17578 # link flags.
17579 echo "int foo(void){return 1;}" > conftest.c
17580 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17581 -dynamiclib ${wl}-single_module conftest.c
17582 if test -f libconftest.dylib; then
17583 lt_cv_apple_cc_single_mod=yes
17584 rm libconftest.dylib
17585 fi
17586 rm conftest.$ac_ext
17587 fi
17588fi
17589
17590 output_verbose_link_cmd=echo
17591 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
17592 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17593 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}'
17594 else
17595 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17596 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}'
17597 fi
17598 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17599 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}'
17600 else
17601 case $cc_basename in
17602 xlc*)
17603 output_verbose_link_cmd=echo
17604 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17605 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17606 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17607 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}'
17608 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}'
17609 ;;
17610 *)
17611 ld_shlibs=no
17612 ;;
17613 esac
17614 fi
17615 ;;
17616
17617 dgux*)
17618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17619 hardcode_libdir_flag_spec='-L$libdir'
17620 hardcode_shlibpath_var=no
17621 ;;
17622
17623 freebsd1*)
17624 ld_shlibs=no
17625 ;;
17626
17627 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17628 # support. Future versions do this automatically, but an explicit c++rt0.o
17629 # does not break anything, and helps significantly (at the cost of a little
17630 # extra space).
17631 freebsd2.2*)
17632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17633 hardcode_libdir_flag_spec='-R$libdir'
17634 hardcode_direct=yes
17635 hardcode_shlibpath_var=no
17636 ;;
17637
17638 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17639 freebsd2*)
17640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17641 hardcode_direct=yes
17642 hardcode_minus_L=yes
17643 hardcode_shlibpath_var=no
17644 ;;
17645
17646 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17647 freebsd* | dragonfly*)
17648 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17649 hardcode_libdir_flag_spec='-R$libdir'
17650 hardcode_direct=yes
17651 hardcode_shlibpath_var=no
17652 ;;
17653
17654 hpux9*)
17655 if test "$GCC" = yes; then
17656 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'
17657 else
17658 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'
17659 fi
17660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17661 hardcode_libdir_separator=:
17662 hardcode_direct=yes
17663
17664 # hardcode_minus_L: Not really in the search PATH,
17665 # but as the default location of the library.
17666 hardcode_minus_L=yes
17667 export_dynamic_flag_spec='${wl}-E'
17668 ;;
17669
17670 hpux10*)
17671 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17672 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17673 else
17674 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17675 fi
17676 if test "$with_gnu_ld" = no; then
17677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17678 hardcode_libdir_flag_spec_ld='+b $libdir'
17679 hardcode_libdir_separator=:
17680 hardcode_direct=yes
17681 hardcode_direct_absolute=yes
17682 export_dynamic_flag_spec='${wl}-E'
17683 # hardcode_minus_L: Not really in the search PATH,
17684 # but as the default location of the library.
17685 hardcode_minus_L=yes
17686 fi
17687 ;;
17688
17689 hpux11*)
17690 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17691 case $host_cpu in
17692 hppa*64*)
17693 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17694 ;;
17695 ia64*)
17696 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17697 ;;
17698 *)
17699 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17700 ;;
17701 esac
17702 else
17703 case $host_cpu in
17704 hppa*64*)
17705 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17706 ;;
17707 ia64*)
17708 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17709 ;;
17710 *)
17711 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17712 ;;
17713 esac
17714 fi
17715 if test "$with_gnu_ld" = no; then
17716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17717 hardcode_libdir_separator=:
17718
17719 case $host_cpu in
17720 hppa*64*|ia64*)
17721 hardcode_direct=no
17722 hardcode_shlibpath_var=no
17723 ;;
17724 *)
17725 hardcode_direct=yes
17726 hardcode_direct_absolute=yes
17727 export_dynamic_flag_spec='${wl}-E'
17728
17729 # hardcode_minus_L: Not really in the search PATH,
17730 # but as the default location of the library.
17731 hardcode_minus_L=yes
17732 ;;
17733 esac
17734 fi
17735 ;;
17736
17737 irix5* | irix6* | nonstopux*)
17738 if test "$GCC" = yes; then
17739 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'
17740 # Try to use the -exported_symbol ld option, if it does not
17741 # work, assume that -exports_file does not work either and
17742 # implicitly export all symbols.
17743 save_LDFLAGS="$LDFLAGS"
17744 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17745 cat >conftest.$ac_ext <<_ACEOF
17746int foo(void) {}
17747_ACEOF
17748rm -f conftest.$ac_objext conftest$ac_exeext
17749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17750 (eval $ac_link) 2>conftest.er1
17751 ac_status=$?
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag"
17758 || test ! -s conftest.err'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try='test -s conftest$ac_exeext'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 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'
17771
17772else
17773 echo "$as_me: failed program was:" >&5
17774sed 's/^/| /' conftest.$ac_ext >&5
17775
17776fi
17777rm -f conftest.err conftest.$ac_objext \
17778 conftest$ac_exeext conftest.$ac_ext
17779 LDFLAGS="$save_LDFLAGS"
17780 else
17781 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'
17782 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'
17783 fi
17784 archive_cmds_need_lc='no'
17785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17786 hardcode_libdir_separator=:
17787 inherit_rpath=yes
17788 link_all_deplibs=yes
17789 ;;
17790
17791 netbsd*)
17792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17794 else
17795 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17796 fi
17797 hardcode_libdir_flag_spec='-R$libdir'
17798 hardcode_direct=yes
17799 hardcode_shlibpath_var=no
17800 ;;
17801
17802 newsos6)
17803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17804 hardcode_direct=yes
17805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17806 hardcode_libdir_separator=:
17807 hardcode_shlibpath_var=no
17808 ;;
17809
17810 *nto* | *qnx*)
17811 ;;
17812
17813 openbsd*)
17814 hardcode_direct=yes
17815 hardcode_shlibpath_var=no
17816 hardcode_direct_absolute=yes
17817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17819 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17821 export_dynamic_flag_spec='${wl}-E'
17822 else
17823 case $host_os in
17824 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17826 hardcode_libdir_flag_spec='-R$libdir'
17827 ;;
17828 *)
17829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17831 ;;
17832 esac
17833 fi
17834 ;;
17835
17836 os2*)
17837 hardcode_libdir_flag_spec='-L$libdir'
17838 hardcode_minus_L=yes
17839 allow_undefined_flag=unsupported
17840 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'
17841 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17842 ;;
17843
17844 osf3*)
17845 if test "$GCC" = yes; then
17846 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17847 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'
17848 else
17849 allow_undefined_flag=' -expect_unresolved \*'
17850 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'
17851 fi
17852 archive_cmds_need_lc='no'
17853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17854 hardcode_libdir_separator=:
17855 ;;
17856
17857 osf4* | osf5*) # as osf3* with the addition of -msym flag
17858 if test "$GCC" = yes; then
17859 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17860 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'
17861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17862 else
17863 allow_undefined_flag=' -expect_unresolved \*'
17864 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'
17865 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~
17866 $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'
17867
17868 # Both c and cxx compiler support -rpath directly
17869 hardcode_libdir_flag_spec='-rpath $libdir'
17870 fi
17871 archive_cmds_need_lc='no'
17872 hardcode_libdir_separator=:
17873 ;;
17874
17875 solaris*)
17876 no_undefined_flag=' -z defs'
17877 if test "$GCC" = yes; then
17878 wlarc='${wl}'
17879 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17881 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17882 else
17883 case `$CC -V 2>&1` in
17884 *"Compilers 5.0"*)
17885 wlarc=''
17886 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17887 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17888 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17889 ;;
17890 *)
17891 wlarc='${wl}'
17892 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17894 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17895 ;;
17896 esac
17897 fi
17898 hardcode_libdir_flag_spec='-R$libdir'
17899 hardcode_shlibpath_var=no
17900 case $host_os in
17901 solaris2.[0-5] | solaris2.[0-5].*) ;;
17902 *)
17903 # The compiler driver will combine and reorder linker options,
17904 # but understands `-z linker_flag'. GCC discards it without `$wl',
17905 # but is careful enough not to reorder.
17906 # Supported since Solaris 2.6 (maybe 2.5.1?)
17907 if test "$GCC" = yes; then
17908 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17909 else
17910 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17911 fi
17912 ;;
17913 esac
17914 link_all_deplibs=yes
17915 ;;
17916
17917 sunos4*)
17918 if test "x$host_vendor" = xsequent; then
17919 # Use $CC to link under sequent, because it throws in some extra .o
17920 # files that make .init and .fini sections work.
17921 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17922 else
17923 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17924 fi
17925 hardcode_libdir_flag_spec='-L$libdir'
17926 hardcode_direct=yes
17927 hardcode_minus_L=yes
17928 hardcode_shlibpath_var=no
17929 ;;
17930
17931 sysv4)
17932 case $host_vendor in
17933 sni)
17934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17935 hardcode_direct=yes # is this really true???
17936 ;;
17937 siemens)
17938 ## LD is ld it makes a PLAMLIB
17939 ## CC just makes a GrossModule.
17940 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17941 reload_cmds='$CC -r -o $output$reload_objs'
17942 hardcode_direct=no
17943 ;;
17944 motorola)
17945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17946 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17947 ;;
17948 esac
17949 runpath_var='LD_RUN_PATH'
17950 hardcode_shlibpath_var=no
17951 ;;
17952
17953 sysv4.3*)
17954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17955 hardcode_shlibpath_var=no
17956 export_dynamic_flag_spec='-Bexport'
17957 ;;
17958
17959 sysv4*MP*)
17960 if test -d /usr/nec; then
17961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17962 hardcode_shlibpath_var=no
17963 runpath_var=LD_RUN_PATH
17964 hardcode_runpath_var=yes
17965 ld_shlibs=yes
17966 fi
17967 ;;
17968
17969 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17970 no_undefined_flag='${wl}-z,text'
17971 archive_cmds_need_lc=no
17972 hardcode_shlibpath_var=no
17973 runpath_var='LD_RUN_PATH'
17974
17975 if test "$GCC" = yes; then
17976 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17977 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17978 else
17979 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17980 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17981 fi
17982 ;;
17983
17984 sysv5* | sco3.2v5* | sco5v6*)
17985 # Note: We can NOT use -z defs as we might desire, because we do not
17986 # link with -lc, and that would cause any symbols used from libc to
17987 # always be unresolved, which means just about no library would
17988 # ever link correctly. If we're not using GNU ld we use -z text
17989 # though, which does catch some bad symbols but isn't as heavy-handed
17990 # as -z defs.
17991 no_undefined_flag='${wl}-z,text'
17992 allow_undefined_flag='${wl}-z,nodefs'
17993 archive_cmds_need_lc=no
17994 hardcode_shlibpath_var=no
17995 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17996 hardcode_libdir_separator=':'
17997 link_all_deplibs=yes
17998 export_dynamic_flag_spec='${wl}-Bexport'
17999 runpath_var='LD_RUN_PATH'
18000
18001 if test "$GCC" = yes; then
18002 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18003 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18004 else
18005 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18006 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18007 fi
18008 ;;
18009
18010 uts4*)
18011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18012 hardcode_libdir_flag_spec='-L$libdir'
18013 hardcode_shlibpath_var=no
18014 ;;
18015
18016 *)
18017 ld_shlibs=no
18018 ;;
18019 esac
18020
18021 if test x$host_vendor = xsni; then
18022 case $host in
18023 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18024 export_dynamic_flag_spec='${wl}-Blargedynsym'
18025 ;;
18026 esac
18027 fi
18028 fi
18029
18030echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18031echo "${ECHO_T}$ld_shlibs" >&6
18032test "$ld_shlibs" = no && can_build_shared=no
18033
18034with_gnu_ld=$with_gnu_ld
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050#
18051# Do we need to explicitly link libc?
18052#
18053case "x$archive_cmds_need_lc" in
18054x|xyes)
18055 # Assume -lc should be added
18056 archive_cmds_need_lc=yes
18057
18058 if test "$enable_shared" = yes && test "$GCC" = yes; then
18059 case $archive_cmds in
18060 *'~'*)
18061 # FIXME: we may have to deal with multi-command sequences.
18062 ;;
18063 '$CC '*)
18064 # Test whether the compiler implicitly links with -lc since on some
18065 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18066 # to ld, don't add -lc before -lgcc.
18067 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18068echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18069 $RM conftest*
18070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18071
18072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18073 (eval $ac_compile) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } 2>conftest.err; then
18077 soname=conftest
18078 lib=conftest
18079 libobjs=conftest.$ac_objext
18080 deplibs=
18081 wl=$lt_prog_compiler_wl
18082 pic_flag=$lt_prog_compiler_pic
18083 compiler_flags=-v
18084 linker_flags=-v
18085 verstring=
18086 output_objdir=.
18087 libname=conftest
18088 lt_save_allow_undefined_flag=$allow_undefined_flag
18089 allow_undefined_flag=
18090 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18091 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18092 ac_status=$?
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }
18095 then
18096 archive_cmds_need_lc=no
18097 else
18098 archive_cmds_need_lc=yes
18099 fi
18100 allow_undefined_flag=$lt_save_allow_undefined_flag
18101 else
18102 cat conftest.err 1>&5
18103 fi
18104 $RM conftest*
18105 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18106echo "${ECHO_T}$archive_cmds_need_lc" >&6
18107 ;;
18108 esac
18109 fi
18110 ;;
18111esac
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18270echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18271withGCC=$GCC
18272if test "$withGCC" = yes; then
18273 case $host_os in
18274 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18275 *) lt_awk_arg="/^libraries:/" ;;
18276 esac
18277 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18278 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18279 # if the path contains ";" then we assume it to be the separator
18280 # otherwise default to the standard path separator (i.e. ":") - it is
18281 # assumed that no part of a normal pathname contains ";" but that should
18282 # okay in the real world where ";" in dirpaths is itself problematic.
18283 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18284 else
18285 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18286 fi
18287 # Ok, now we have the path, separated by spaces, we can step through it
18288 # and add multilib dir if necessary.
18289 lt_tmp_lt_search_path_spec=
18290 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18291 for lt_sys_path in $lt_search_path_spec; do
18292 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18293 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18294 else
18295 test -d "$lt_sys_path" && \
18296 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18297 fi
18298 done
18299 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18300BEGIN {RS=" "; FS="/|\n";} {
18301 lt_foo="";
18302 lt_count=0;
18303 for (lt_i = NF; lt_i > 0; lt_i--) {
18304 if ($lt_i != "" && $lt_i != ".") {
18305 if ($lt_i == "..") {
18306 lt_count++;
18307 } else {
18308 if (lt_count == 0) {
18309 lt_foo="/" $lt_i lt_foo;
18310 } else {
18311 lt_count--;
18312 }
18313 }
18314 }
18315 }
18316 if (lt_foo != "") { lt_freq[lt_foo]++; }
18317 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18318}'`
18319 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18320else
18321 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18322fi
18323library_names_spec=
18324libname_spec='lib$name'
18325soname_spec=
18326shrext_cmds=".so"
18327postinstall_cmds=
18328postuninstall_cmds=
18329finish_cmds=
18330finish_eval=
18331shlibpath_var=
18332shlibpath_overrides_runpath=unknown
18333version_type=none
18334dynamic_linker="$host_os ld.so"
18335sys_lib_dlsearch_path_spec="/lib /usr/lib"
18336need_lib_prefix=unknown
18337hardcode_into_libs=no
18338
18339# when you set need_version to no, make sure it does not cause -set_version
18340# flags to be left without arguments
18341need_version=unknown
18342
18343case $host_os in
18344aix3*)
18345 version_type=linux
18346 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18347 shlibpath_var=LIBPATH
18348
18349 # AIX 3 has no versioning support, so we append a major version to the name.
18350 soname_spec='${libname}${release}${shared_ext}$major'
18351 ;;
18352
18353aix[4-9]*)
18354 version_type=linux
18355 need_lib_prefix=no
18356 need_version=no
18357 hardcode_into_libs=yes
18358 if test "$host_cpu" = ia64; then
18359 # AIX 5 supports IA64
18360 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18361 shlibpath_var=LD_LIBRARY_PATH
18362 else
18363 # With GCC up to 2.95.x, collect2 would create an import file
18364 # for dependence libraries. The import file would start with
18365 # the line `#! .'. This would cause the generated library to
18366 # depend on `.', always an invalid library. This was fixed in
18367 # development snapshots of GCC prior to 3.0.
18368 case $host_os in
18369 aix4 | aix4.[01] | aix4.[01].*)
18370 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18371 echo ' yes '
18372 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18373 :
18374 else
18375 can_build_shared=no
18376 fi
18377 ;;
18378 esac
18379 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18380 # soname into executable. Probably we can add versioning support to
18381 # collect2, so additional links can be useful in future.
18382 if test "$aix_use_runtimelinking" = yes; then
18383 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18384 # instead of lib<name>.a to let people know that these are not
18385 # typical AIX shared libraries.
18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387 else
18388 # We preserve .a as extension for shared libraries through AIX4.2
18389 # and later when we are not doing run time linking.
18390 library_names_spec='${libname}${release}.a $libname.a'
18391 soname_spec='${libname}${release}${shared_ext}$major'
18392 fi
18393 shlibpath_var=LIBPATH
18394 fi
18395 ;;
18396
18397amigaos*)
18398 if test "$host_cpu" = m68k; then
18399 library_names_spec='$libname.ixlibrary $libname.a'
18400 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18401 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'
18402 else
18403 dynamic_linker=no
18404 fi
18405 ;;
18406
18407beos*)
18408 library_names_spec='${libname}${shared_ext}'
18409 dynamic_linker="$host_os ld.so"
18410 shlibpath_var=LIBRARY_PATH
18411 ;;
18412
18413bsdi[45]*)
18414 version_type=linux
18415 need_version=no
18416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18417 soname_spec='${libname}${release}${shared_ext}$major'
18418 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18419 shlibpath_var=LD_LIBRARY_PATH
18420 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18421 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18422 # the default ld.so.conf also contains /usr/contrib/lib and
18423 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18424 # libtool to hard-code these into programs
18425 ;;
18426
18427cygwin* | mingw* | pw32*)
18428 version_type=windows
18429 shrext_cmds=".dll"
18430 need_version=no
18431 need_lib_prefix=no
18432
18433 case $withGCC,$host_os in
18434 yes,cygwin* | yes,mingw* | yes,pw32*)
18435 library_names_spec='$libname.dll.a'
18436 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18437 postinstall_cmds='base_file=`basename \${file}`~
18438 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18439 dldir=$destdir/`dirname \$dlpath`~
18440 test -d \$dldir || mkdir -p \$dldir~
18441 $install_prog $dir/$dlname \$dldir/$dlname~
18442 chmod a+x \$dldir/$dlname~
18443 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18444 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18445 fi'
18446 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18447 dlpath=$dir/\$dldll~
18448 $RM \$dlpath'
18449 shlibpath_overrides_runpath=yes
18450
18451 case $host_os in
18452 cygwin*)
18453 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18454 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18455 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18456 ;;
18457 mingw*)
18458 # MinGW DLLs use traditional 'lib' prefix
18459 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18460 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18461 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18462 # It is most probably a Windows format PATH printed by
18463 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18464 # path with ; separators, and with drive letters. We can handle the
18465 # drive letters (cygwin fileutils understands them), so leave them,
18466 # especially as we might pass files found there to a mingw objdump,
18467 # which wouldn't understand a cygwinified path. Ahh.
18468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18469 else
18470 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18471 fi
18472 ;;
18473 pw32*)
18474 # pw32 DLLs use 'pw' prefix rather than 'lib'
18475 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18476 ;;
18477 esac
18478 ;;
18479
18480 *)
18481 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18482 ;;
18483 esac
18484 dynamic_linker='Win32 ld.exe'
18485 # FIXME: first we should search . and the directory the executable is in
18486 shlibpath_var=PATH
18487 ;;
18488
18489darwin* | rhapsody*)
18490 dynamic_linker="$host_os dyld"
18491 version_type=darwin
18492 need_lib_prefix=no
18493 need_version=no
18494 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18495 soname_spec='${libname}${release}${major}$shared_ext'
18496 shlibpath_overrides_runpath=yes
18497 shlibpath_var=DYLD_LIBRARY_PATH
18498 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18499
18500 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18501 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18502 ;;
18503
18504dgux*)
18505 version_type=linux
18506 need_lib_prefix=no
18507 need_version=no
18508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18509 soname_spec='${libname}${release}${shared_ext}$major'
18510 shlibpath_var=LD_LIBRARY_PATH
18511 ;;
18512
18513freebsd1*)
18514 dynamic_linker=no
18515 ;;
18516
18517freebsd* | dragonfly*)
18518 # DragonFly does not have aout. When/if they implement a new
18519 # versioning mechanism, adjust this.
18520 if test -x /usr/bin/objformat; then
18521 objformat=`/usr/bin/objformat`
18522 else
18523 case $host_os in
18524 freebsd[123]*) objformat=aout ;;
18525 *) objformat=elf ;;
18526 esac
18527 fi
18528 version_type=freebsd-$objformat
18529 case $version_type in
18530 freebsd-elf*)
18531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18532 need_version=no
18533 need_lib_prefix=no
18534 ;;
18535 freebsd-*)
18536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18537 need_version=yes
18538 ;;
18539 esac
18540 shlibpath_var=LD_LIBRARY_PATH
18541 case $host_os in
18542 freebsd2*)
18543 shlibpath_overrides_runpath=yes
18544 ;;
18545 freebsd3.[01]* | freebsdelf3.[01]*)
18546 shlibpath_overrides_runpath=yes
18547 hardcode_into_libs=yes
18548 ;;
18549 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18550 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18551 shlibpath_overrides_runpath=no
18552 hardcode_into_libs=yes
18553 ;;
18554 *) # from 4.6 on, and DragonFly
18555 shlibpath_overrides_runpath=yes
18556 hardcode_into_libs=yes
18557 ;;
18558 esac
18559 ;;
18560
18561gnu*)
18562 version_type=linux
18563 need_lib_prefix=no
18564 need_version=no
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18566 soname_spec='${libname}${release}${shared_ext}$major'
18567 shlibpath_var=LD_LIBRARY_PATH
18568 hardcode_into_libs=yes
18569 ;;
18570
18571hpux9* | hpux10* | hpux11*)
18572 # Give a soname corresponding to the major version so that dld.sl refuses to
18573 # link against other versions.
18574 version_type=sunos
18575 need_lib_prefix=no
18576 need_version=no
18577 case $host_cpu in
18578 ia64*)
18579 shrext_cmds='.so'
18580 hardcode_into_libs=yes
18581 dynamic_linker="$host_os dld.so"
18582 shlibpath_var=LD_LIBRARY_PATH
18583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18585 soname_spec='${libname}${release}${shared_ext}$major'
18586 if test "X$HPUX_IA64_MODE" = X32; then
18587 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18588 else
18589 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18590 fi
18591 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18592 ;;
18593 hppa*64*)
18594 shrext_cmds='.sl'
18595 hardcode_into_libs=yes
18596 dynamic_linker="$host_os dld.sl"
18597 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18600 soname_spec='${libname}${release}${shared_ext}$major'
18601 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18602 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18603 ;;
18604 *)
18605 shrext_cmds='.sl'
18606 dynamic_linker="$host_os dld.sl"
18607 shlibpath_var=SHLIB_PATH
18608 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18610 soname_spec='${libname}${release}${shared_ext}$major'
18611 ;;
18612 esac
18613 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18614 postinstall_cmds='chmod 555 $lib'
18615 ;;
18616
18617interix[3-9]*)
18618 version_type=linux
18619 need_lib_prefix=no
18620 need_version=no
18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18622 soname_spec='${libname}${release}${shared_ext}$major'
18623 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18624 shlibpath_var=LD_LIBRARY_PATH
18625 shlibpath_overrides_runpath=no
18626 hardcode_into_libs=yes
18627 ;;
18628
18629irix5* | irix6* | nonstopux*)
18630 case $host_os in
18631 nonstopux*) version_type=nonstopux ;;
18632 *)
18633 if test "$lt_cv_prog_gnu_ld" = yes; then
18634 version_type=linux
18635 else
18636 version_type=irix
18637 fi ;;
18638 esac
18639 need_lib_prefix=no
18640 need_version=no
18641 soname_spec='${libname}${release}${shared_ext}$major'
18642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18643 case $host_os in
18644 irix5* | nonstopux*)
18645 libsuff= shlibsuff=
18646 ;;
18647 *)
18648 case $LD in # libtool.m4 will add one of these switches to LD
18649 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18650 libsuff= shlibsuff= libmagic=32-bit;;
18651 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18652 libsuff=32 shlibsuff=N32 libmagic=N32;;
18653 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18654 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18655 *) libsuff= shlibsuff= libmagic=never-match;;
18656 esac
18657 ;;
18658 esac
18659 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18660 shlibpath_overrides_runpath=no
18661 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18662 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18663 hardcode_into_libs=yes
18664 ;;
18665
18666# No shared lib support for Linux oldld, aout, or coff.
18667linux*oldld* | linux*aout* | linux*coff*)
18668 dynamic_linker=no
18669 ;;
18670
18671# This must be Linux ELF.
18672linux* | k*bsd*-gnu)
18673 version_type=linux
18674 need_lib_prefix=no
18675 need_version=no
18676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18677 soname_spec='${libname}${release}${shared_ext}$major'
18678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18679 shlibpath_var=LD_LIBRARY_PATH
18680 shlibpath_overrides_runpath=no
18681 # Some binutils ld are patched to set DT_RUNPATH
18682 save_LDFLAGS=$LDFLAGS
18683 save_libdir=$libdir
18684 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18685 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18686 cat >conftest.$ac_ext <<_ACEOF
18687/* confdefs.h. */
18688_ACEOF
18689cat confdefs.h >>conftest.$ac_ext
18690cat >>conftest.$ac_ext <<_ACEOF
18691/* end confdefs.h. */
18692
18693int
18694main ()
18695{
18696
18697 ;
18698 return 0;
18699}
18700_ACEOF
18701rm -f conftest.$ac_objext conftest$ac_exeext
18702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18703 (eval $ac_link) 2>conftest.er1
18704 ac_status=$?
18705 grep -v '^ *+' conftest.er1 >conftest.err
18706 rm -f conftest.er1
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } &&
18710 { ac_try='test -z "$ac_c_werror_flag"
18711 || test ! -s conftest.err'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18714 ac_status=$?
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; } &&
18717 { ac_try='test -s conftest$ac_exeext'
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18720 ac_status=$?
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; }; then
18723 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
18724 shlibpath_overrides_runpath=yes
18725fi
18726
18727else
18728 echo "$as_me: failed program was:" >&5
18729sed 's/^/| /' conftest.$ac_ext >&5
18730
18731fi
18732rm -f conftest.err conftest.$ac_objext \
18733 conftest$ac_exeext conftest.$ac_ext
18734 LDFLAGS=$save_LDFLAGS
18735 libdir=$save_libdir
18736
18737 # This implies no fast_install, which is unacceptable.
18738 # Some rework will be needed to allow for fast_install
18739 # before this can be enabled.
18740 hardcode_into_libs=yes
18741
18742 # Append ld.so.conf contents to the search path
18743 if test -f /etc/ld.so.conf; then
18744 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' ' '`
18745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18746 fi
18747
18748 # We used to test for /lib/ld.so.1 and disable shared libraries on
18749 # powerpc, because MkLinux only supported shared libraries with the
18750 # GNU dynamic linker. Since this was broken with cross compilers,
18751 # most powerpc-linux boxes support dynamic linking these days and
18752 # people can always --disable-shared, the test was removed, and we
18753 # assume the GNU/Linux dynamic linker is in use.
18754 dynamic_linker='GNU/Linux ld.so'
18755 ;;
18756
18757netbsd*)
18758 version_type=sunos
18759 need_lib_prefix=no
18760 need_version=no
18761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18764 dynamic_linker='NetBSD (a.out) ld.so'
18765 else
18766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18767 soname_spec='${libname}${release}${shared_ext}$major'
18768 dynamic_linker='NetBSD ld.elf_so'
18769 fi
18770 shlibpath_var=LD_LIBRARY_PATH
18771 shlibpath_overrides_runpath=yes
18772 hardcode_into_libs=yes
18773 ;;
18774
18775newsos6)
18776 version_type=linux
18777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18778 shlibpath_var=LD_LIBRARY_PATH
18779 shlibpath_overrides_runpath=yes
18780 ;;
18781
18782*nto* | *qnx*)
18783 version_type=qnx
18784 need_lib_prefix=no
18785 need_version=no
18786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18787 soname_spec='${libname}${release}${shared_ext}$major'
18788 shlibpath_var=LD_LIBRARY_PATH
18789 shlibpath_overrides_runpath=no
18790 hardcode_into_libs=yes
18791 dynamic_linker='ldqnx.so'
18792 ;;
18793
18794openbsd*)
18795 version_type=sunos
18796 sys_lib_dlsearch_path_spec="/usr/lib"
18797 need_lib_prefix=no
18798 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18799 case $host_os in
18800 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18801 *) need_version=no ;;
18802 esac
18803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18805 shlibpath_var=LD_LIBRARY_PATH
18806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18807 case $host_os in
18808 openbsd2.[89] | openbsd2.[89].*)
18809 shlibpath_overrides_runpath=no
18810 ;;
18811 *)
18812 shlibpath_overrides_runpath=yes
18813 ;;
18814 esac
18815 else
18816 shlibpath_overrides_runpath=yes
18817 fi
18818 ;;
18819
18820os2*)
18821 libname_spec='$name'
18822 shrext_cmds=".dll"
18823 need_lib_prefix=no
18824 library_names_spec='$libname${shared_ext} $libname.a'
18825 dynamic_linker='OS/2 ld.exe'
18826 shlibpath_var=LIBPATH
18827 ;;
18828
18829osf3* | osf4* | osf5*)
18830 version_type=osf
18831 need_lib_prefix=no
18832 need_version=no
18833 soname_spec='${libname}${release}${shared_ext}$major'
18834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835 shlibpath_var=LD_LIBRARY_PATH
18836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18838 ;;
18839
18840rdos*)
18841 dynamic_linker=no
18842 ;;
18843
18844solaris*)
18845 version_type=linux
18846 need_lib_prefix=no
18847 need_version=no
18848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18849 soname_spec='${libname}${release}${shared_ext}$major'
18850 shlibpath_var=LD_LIBRARY_PATH
18851 shlibpath_overrides_runpath=yes
18852 hardcode_into_libs=yes
18853 # ldd complains unless libraries are executable
18854 postinstall_cmds='chmod +x $lib'
18855 ;;
18856
18857sunos4*)
18858 version_type=sunos
18859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18861 shlibpath_var=LD_LIBRARY_PATH
18862 shlibpath_overrides_runpath=yes
18863 if test "$with_gnu_ld" = yes; then
18864 need_lib_prefix=no
18865 fi
18866 need_version=yes
18867 ;;
18868
18869sysv4 | sysv4.3*)
18870 version_type=linux
18871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18872 soname_spec='${libname}${release}${shared_ext}$major'
18873 shlibpath_var=LD_LIBRARY_PATH
18874 case $host_vendor in
18875 sni)
18876 shlibpath_overrides_runpath=no
18877 need_lib_prefix=no
18878 runpath_var=LD_RUN_PATH
18879 ;;
18880 siemens)
18881 need_lib_prefix=no
18882 ;;
18883 motorola)
18884 need_lib_prefix=no
18885 need_version=no
18886 shlibpath_overrides_runpath=no
18887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18888 ;;
18889 esac
18890 ;;
18891
18892sysv4*MP*)
18893 if test -d /usr/nec ;then
18894 version_type=linux
18895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18896 soname_spec='$libname${shared_ext}.$major'
18897 shlibpath_var=LD_LIBRARY_PATH
18898 fi
18899 ;;
18900
18901sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18902 version_type=freebsd-elf
18903 need_lib_prefix=no
18904 need_version=no
18905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18906 soname_spec='${libname}${release}${shared_ext}$major'
18907 shlibpath_var=LD_LIBRARY_PATH
18908 shlibpath_overrides_runpath=yes
18909 hardcode_into_libs=yes
18910 if test "$with_gnu_ld" = yes; then
18911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18912 else
18913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18914 case $host_os in
18915 sco3.2v5*)
18916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18917 ;;
18918 esac
18919 fi
18920 sys_lib_dlsearch_path_spec='/usr/lib'
18921 ;;
18922
18923tpf*)
18924 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18925 version_type=linux
18926 need_lib_prefix=no
18927 need_version=no
18928 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929 shlibpath_var=LD_LIBRARY_PATH
18930 shlibpath_overrides_runpath=no
18931 hardcode_into_libs=yes
18932 ;;
18933
18934uts4*)
18935 version_type=linux
18936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18937 soname_spec='${libname}${release}${shared_ext}$major'
18938 shlibpath_var=LD_LIBRARY_PATH
18939 ;;
18940
18941*)
18942 dynamic_linker=no
18943 ;;
18944esac
18945echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18946echo "${ECHO_T}$dynamic_linker" >&6
18947test "$dynamic_linker" = no && can_build_shared=no
18948
18949variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18950if test "$GCC" = yes; then
18951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18952fi
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19041echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19042hardcode_action=
19043if test -n "$hardcode_libdir_flag_spec" ||
19044 test -n "$runpath_var" ||
19045 test "X$hardcode_automatic" = "Xyes" ; then
19046
19047 # We can hardcode non-existent directories.
19048 if test "$hardcode_direct" != no &&
19049 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19050 # have to relink, otherwise we might link with an installed library
19051 # when we should be linking with a yet-to-be-installed one
19052 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19053 test "$hardcode_minus_L" != no; then
19054 # Linking always hardcodes the temporary library directory.
19055 hardcode_action=relink
19056 else
19057 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19058 hardcode_action=immediate
19059 fi
19060else
19061 # We cannot hardcode anything, or else we can only hardcode existing
19062 # directories.
19063 hardcode_action=unsupported
19064fi
19065echo "$as_me:$LINENO: result: $hardcode_action" >&5
19066echo "${ECHO_T}$hardcode_action" >&6
19067
19068if test "$hardcode_action" = relink ||
19069 test "$inherit_rpath" = yes; then
19070 # Fast installation is not supported
19071 enable_fast_install=no
19072elif test "$shlibpath_overrides_runpath" = yes ||
19073 test "$enable_shared" = no; then
19074 # Fast installation is not necessary
19075 enable_fast_install=needless
19076fi
19077
19078
19079
19080
19081
19082
19083 if test "x$enable_dlopen" != xyes; then
19084 enable_dlopen=unknown
19085 enable_dlopen_self=unknown
19086 enable_dlopen_self_static=unknown
19087else
19088 lt_cv_dlopen=no
19089 lt_cv_dlopen_libs=
19090
19091 case $host_os in
19092 beos*)
19093 lt_cv_dlopen="load_add_on"
19094 lt_cv_dlopen_libs=
19095 lt_cv_dlopen_self=yes
19096 ;;
19097
19098 mingw* | pw32*)
19099 lt_cv_dlopen="LoadLibrary"
19100 lt_cv_dlopen_libs=
19101 ;;
19102
19103 cygwin*)
19104 lt_cv_dlopen="dlopen"
19105 lt_cv_dlopen_libs=
19106 ;;
19107
19108 darwin*)
19109 # if libdl is installed we need to link against it
19110 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19111echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19112if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19114else
19115 ac_check_lib_save_LIBS=$LIBS
19116LIBS="-ldl $LIBS"
19117cat >conftest.$ac_ext <<_ACEOF
19118/* confdefs.h. */
19119_ACEOF
19120cat confdefs.h >>conftest.$ac_ext
19121cat >>conftest.$ac_ext <<_ACEOF
19122/* end confdefs.h. */
19123
19124/* Override any gcc2 internal prototype to avoid an error. */
19125#ifdef __cplusplus
19126extern "C"
19127#endif
19128/* We use char because int might match the return type of a gcc2
19129 builtin and then its argument prototype would still apply. */
19130char dlopen ();
19131int
19132main ()
19133{
19134dlopen ();
19135 ;
19136 return 0;
19137}
19138_ACEOF
19139rm -f conftest.$ac_objext conftest$ac_exeext
19140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19141 (eval $ac_link) 2>conftest.er1
19142 ac_status=$?
19143 grep -v '^ *+' conftest.er1 >conftest.err
19144 rm -f conftest.er1
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try='test -z "$ac_c_werror_flag"
19149 || test ! -s conftest.err'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest$ac_exeext'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_cv_lib_dl_dlopen=yes
19162else
19163 echo "$as_me: failed program was:" >&5
19164sed 's/^/| /' conftest.$ac_ext >&5
19165
19166ac_cv_lib_dl_dlopen=no
19167fi
19168rm -f conftest.err conftest.$ac_objext \
19169 conftest$ac_exeext conftest.$ac_ext
19170LIBS=$ac_check_lib_save_LIBS
19171fi
19172echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19173echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19174if test $ac_cv_lib_dl_dlopen = yes; then
19175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19176else
19177
19178 lt_cv_dlopen="dyld"
19179 lt_cv_dlopen_libs=
19180 lt_cv_dlopen_self=yes
19181
19182fi
19183
19184 ;;
19185
19186 *)
19187 echo "$as_me:$LINENO: checking for shl_load" >&5
19188echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19189if test "${ac_cv_func_shl_load+set}" = set; then
19190 echo $ECHO_N "(cached) $ECHO_C" >&6
19191else
19192 cat >conftest.$ac_ext <<_ACEOF
19193/* confdefs.h. */
19194_ACEOF
19195cat confdefs.h >>conftest.$ac_ext
19196cat >>conftest.$ac_ext <<_ACEOF
19197/* end confdefs.h. */
19198/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19200#define shl_load innocuous_shl_load
19201
19202/* System header to define __stub macros and hopefully few prototypes,
19203 which can conflict with char shl_load (); below.
19204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19205 <limits.h> exists even on freestanding compilers. */
19206
19207#ifdef __STDC__
19208# include <limits.h>
19209#else
19210# include <assert.h>
19211#endif
19212
19213#undef shl_load
19214
19215/* Override any gcc2 internal prototype to avoid an error. */
19216#ifdef __cplusplus
19217extern "C"
19218{
19219#endif
19220/* We use char because int might match the return type of a gcc2
19221 builtin and then its argument prototype would still apply. */
19222char shl_load ();
19223/* The GNU C library defines this for functions which it implements
19224 to always fail with ENOSYS. Some functions are actually named
19225 something starting with __ and the normal name is an alias. */
19226#if defined (__stub_shl_load) || defined (__stub___shl_load)
19227choke me
19228#else
19229char (*f) () = shl_load;
19230#endif
19231#ifdef __cplusplus
19232}
19233#endif
19234
19235int
19236main ()
19237{
19238return f != shl_load;
19239 ;
19240 return 0;
19241}
19242_ACEOF
19243rm -f conftest.$ac_objext conftest$ac_exeext
19244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19245 (eval $ac_link) 2>conftest.er1
19246 ac_status=$?
19247 grep -v '^ *+' conftest.er1 >conftest.err
19248 rm -f conftest.er1
19249 cat conftest.err >&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } &&
19252 { ac_try='test -z "$ac_c_werror_flag"
19253 || test ! -s conftest.err'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest$ac_exeext'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ac_cv_func_shl_load=yes
19266else
19267 echo "$as_me: failed program was:" >&5
19268sed 's/^/| /' conftest.$ac_ext >&5
19269
19270ac_cv_func_shl_load=no
19271fi
19272rm -f conftest.err conftest.$ac_objext \
19273 conftest$ac_exeext conftest.$ac_ext
19274fi
19275echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19276echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19277if test $ac_cv_func_shl_load = yes; then
19278 lt_cv_dlopen="shl_load"
19279else
19280 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19281echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19282if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
19284else
19285 ac_check_lib_save_LIBS=$LIBS
19286LIBS="-ldld $LIBS"
19287cat >conftest.$ac_ext <<_ACEOF
19288/* confdefs.h. */
19289_ACEOF
19290cat confdefs.h >>conftest.$ac_ext
19291cat >>conftest.$ac_ext <<_ACEOF
19292/* end confdefs.h. */
19293
19294/* Override any gcc2 internal prototype to avoid an error. */
19295#ifdef __cplusplus
19296extern "C"
19297#endif
19298/* We use char because int might match the return type of a gcc2
19299 builtin and then its argument prototype would still apply. */
19300char shl_load ();
19301int
19302main ()
19303{
19304shl_load ();
19305 ;
19306 return 0;
19307}
19308_ACEOF
19309rm -f conftest.$ac_objext conftest$ac_exeext
19310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19311 (eval $ac_link) 2>conftest.er1
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } &&
19318 { ac_try='test -z "$ac_c_werror_flag"
19319 || test ! -s conftest.err'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
19325 { ac_try='test -s conftest$ac_exeext'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 ac_cv_lib_dld_shl_load=yes
19332else
19333 echo "$as_me: failed program was:" >&5
19334sed 's/^/| /' conftest.$ac_ext >&5
19335
19336ac_cv_lib_dld_shl_load=no
19337fi
19338rm -f conftest.err conftest.$ac_objext \
19339 conftest$ac_exeext conftest.$ac_ext
19340LIBS=$ac_check_lib_save_LIBS
19341fi
19342echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19343echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19344if test $ac_cv_lib_dld_shl_load = yes; then
19345 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19346else
19347 echo "$as_me:$LINENO: checking for dlopen" >&5
19348echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19349if test "${ac_cv_func_dlopen+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19351else
19352 cat >conftest.$ac_ext <<_ACEOF
19353/* confdefs.h. */
19354_ACEOF
19355cat confdefs.h >>conftest.$ac_ext
19356cat >>conftest.$ac_ext <<_ACEOF
19357/* end confdefs.h. */
19358/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19360#define dlopen innocuous_dlopen
19361
19362/* System header to define __stub macros and hopefully few prototypes,
19363 which can conflict with char dlopen (); below.
19364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19365 <limits.h> exists even on freestanding compilers. */
19366
19367#ifdef __STDC__
19368# include <limits.h>
19369#else
19370# include <assert.h>
19371#endif
19372
19373#undef dlopen
19374
19375/* Override any gcc2 internal prototype to avoid an error. */
19376#ifdef __cplusplus
19377extern "C"
19378{
19379#endif
19380/* We use char because int might match the return type of a gcc2
19381 builtin and then its argument prototype would still apply. */
19382char dlopen ();
19383/* The GNU C library defines this for functions which it implements
19384 to always fail with ENOSYS. Some functions are actually named
19385 something starting with __ and the normal name is an alias. */
19386#if defined (__stub_dlopen) || defined (__stub___dlopen)
19387choke me
19388#else
19389char (*f) () = dlopen;
19390#endif
19391#ifdef __cplusplus
19392}
19393#endif
19394
19395int
19396main ()
19397{
19398return f != dlopen;
19399 ;
19400 return 0;
19401}
19402_ACEOF
19403rm -f conftest.$ac_objext conftest$ac_exeext
19404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19405 (eval $ac_link) 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
19412 { ac_try='test -z "$ac_c_werror_flag"
19413 || test ! -s conftest.err'
19414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest$ac_exeext'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19422 ac_status=$?
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425 ac_cv_func_dlopen=yes
19426else
19427 echo "$as_me: failed program was:" >&5
19428sed 's/^/| /' conftest.$ac_ext >&5
19429
19430ac_cv_func_dlopen=no
19431fi
19432rm -f conftest.err conftest.$ac_objext \
19433 conftest$ac_exeext conftest.$ac_ext
19434fi
19435echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19436echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19437if test $ac_cv_func_dlopen = yes; then
19438 lt_cv_dlopen="dlopen"
19439else
19440 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19441echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19442if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19444else
19445 ac_check_lib_save_LIBS=$LIBS
19446LIBS="-ldl $LIBS"
19447cat >conftest.$ac_ext <<_ACEOF
19448/* confdefs.h. */
19449_ACEOF
19450cat confdefs.h >>conftest.$ac_ext
19451cat >>conftest.$ac_ext <<_ACEOF
19452/* end confdefs.h. */
19453
19454/* Override any gcc2 internal prototype to avoid an error. */
19455#ifdef __cplusplus
19456extern "C"
19457#endif
19458/* We use char because int might match the return type of a gcc2
19459 builtin and then its argument prototype would still apply. */
19460char dlopen ();
19461int
19462main ()
19463{
19464dlopen ();
19465 ;
19466 return 0;
19467}
19468_ACEOF
19469rm -f conftest.$ac_objext conftest$ac_exeext
19470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19471 (eval $ac_link) 2>conftest.er1
19472 ac_status=$?
19473 grep -v '^ *+' conftest.er1 >conftest.err
19474 rm -f conftest.er1
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } &&
19478 { ac_try='test -z "$ac_c_werror_flag"
19479 || test ! -s conftest.err'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; } &&
19485 { ac_try='test -s conftest$ac_exeext'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19488 ac_status=$?
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; }; then
19491 ac_cv_lib_dl_dlopen=yes
19492else
19493 echo "$as_me: failed program was:" >&5
19494sed 's/^/| /' conftest.$ac_ext >&5
19495
19496ac_cv_lib_dl_dlopen=no
19497fi
19498rm -f conftest.err conftest.$ac_objext \
19499 conftest$ac_exeext conftest.$ac_ext
19500LIBS=$ac_check_lib_save_LIBS
19501fi
19502echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19503echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19504if test $ac_cv_lib_dl_dlopen = yes; then
19505 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19506else
19507 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19508echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19509if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19511else
19512 ac_check_lib_save_LIBS=$LIBS
19513LIBS="-lsvld $LIBS"
19514cat >conftest.$ac_ext <<_ACEOF
19515/* confdefs.h. */
19516_ACEOF
19517cat confdefs.h >>conftest.$ac_ext
19518cat >>conftest.$ac_ext <<_ACEOF
19519/* end confdefs.h. */
19520
19521/* Override any gcc2 internal prototype to avoid an error. */
19522#ifdef __cplusplus
19523extern "C"
19524#endif
19525/* We use char because int might match the return type of a gcc2
19526 builtin and then its argument prototype would still apply. */
19527char dlopen ();
19528int
19529main ()
19530{
19531dlopen ();
19532 ;
19533 return 0;
19534}
19535_ACEOF
19536rm -f conftest.$ac_objext conftest$ac_exeext
19537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19538 (eval $ac_link) 2>conftest.er1
19539 ac_status=$?
19540 grep -v '^ *+' conftest.er1 >conftest.err
19541 rm -f conftest.er1
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
19545 { ac_try='test -z "$ac_c_werror_flag"
19546 || test ! -s conftest.err'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest$ac_exeext'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 ac_cv_lib_svld_dlopen=yes
19559else
19560 echo "$as_me: failed program was:" >&5
19561sed 's/^/| /' conftest.$ac_ext >&5
19562
19563ac_cv_lib_svld_dlopen=no
19564fi
19565rm -f conftest.err conftest.$ac_objext \
19566 conftest$ac_exeext conftest.$ac_ext
19567LIBS=$ac_check_lib_save_LIBS
19568fi
19569echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19570echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19571if test $ac_cv_lib_svld_dlopen = yes; then
19572 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19573else
19574 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19575echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19576if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19578else
19579 ac_check_lib_save_LIBS=$LIBS
19580LIBS="-ldld $LIBS"
19581cat >conftest.$ac_ext <<_ACEOF
19582/* confdefs.h. */
19583_ACEOF
19584cat confdefs.h >>conftest.$ac_ext
19585cat >>conftest.$ac_ext <<_ACEOF
19586/* end confdefs.h. */
19587
19588/* Override any gcc2 internal prototype to avoid an error. */
19589#ifdef __cplusplus
19590extern "C"
19591#endif
19592/* We use char because int might match the return type of a gcc2
19593 builtin and then its argument prototype would still apply. */
19594char dld_link ();
19595int
19596main ()
19597{
19598dld_link ();
19599 ;
19600 return 0;
19601}
19602_ACEOF
19603rm -f conftest.$ac_objext conftest$ac_exeext
19604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19605 (eval $ac_link) 2>conftest.er1
19606 ac_status=$?
19607 grep -v '^ *+' conftest.er1 >conftest.err
19608 rm -f conftest.er1
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } &&
19612 { ac_try='test -z "$ac_c_werror_flag"
19613 || test ! -s conftest.err'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19616 ac_status=$?
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; } &&
19619 { ac_try='test -s conftest$ac_exeext'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_cv_lib_dld_dld_link=yes
19626else
19627 echo "$as_me: failed program was:" >&5
19628sed 's/^/| /' conftest.$ac_ext >&5
19629
19630ac_cv_lib_dld_dld_link=no
19631fi
19632rm -f conftest.err conftest.$ac_objext \
19633 conftest$ac_exeext conftest.$ac_ext
19634LIBS=$ac_check_lib_save_LIBS
19635fi
19636echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19637echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19638if test $ac_cv_lib_dld_dld_link = yes; then
19639 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19640fi
19641
19642
19643fi
19644
19645
19646fi
19647
19648
19649fi
19650
19651
19652fi
19653
19654
19655fi
19656
19657 ;;
19658 esac
19659
19660 if test "x$lt_cv_dlopen" != xno; then
19661 enable_dlopen=yes
19662 else
19663 enable_dlopen=no
19664 fi
19665
19666 case $lt_cv_dlopen in
19667 dlopen)
19668 save_CPPFLAGS="$CPPFLAGS"
19669 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19670
19671 save_LDFLAGS="$LDFLAGS"
19672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19673
19674 save_LIBS="$LIBS"
19675 LIBS="$lt_cv_dlopen_libs $LIBS"
19676
19677 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19678echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19679if test "${lt_cv_dlopen_self+set}" = set; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
19681else
19682 if test "$cross_compiling" = yes; then :
19683 lt_cv_dlopen_self=cross
19684else
19685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19686 lt_status=$lt_dlunknown
19687 cat > conftest.$ac_ext <<_LT_EOF
f6e377f8 19688#line 19688 "configure"
da0f6381
PB
19689#include "confdefs.h"
19690
19691#if HAVE_DLFCN_H
19692#include <dlfcn.h>
19693#endif
19694
19695#include <stdio.h>
19696
19697#ifdef RTLD_GLOBAL
19698# define LT_DLGLOBAL RTLD_GLOBAL
19699#else
19700# ifdef DL_GLOBAL
19701# define LT_DLGLOBAL DL_GLOBAL
19702# else
19703# define LT_DLGLOBAL 0
19704# endif
19705#endif
19706
19707/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19708 find out it does not work in some platform. */
19709#ifndef LT_DLLAZY_OR_NOW
19710# ifdef RTLD_LAZY
19711# define LT_DLLAZY_OR_NOW RTLD_LAZY
19712# else
19713# ifdef DL_LAZY
19714# define LT_DLLAZY_OR_NOW DL_LAZY
19715# else
19716# ifdef RTLD_NOW
19717# define LT_DLLAZY_OR_NOW RTLD_NOW
19718# else
19719# ifdef DL_NOW
19720# define LT_DLLAZY_OR_NOW DL_NOW
19721# else
19722# define LT_DLLAZY_OR_NOW 0
19723# endif
19724# endif
19725# endif
19726# endif
19727#endif
19728
19729#ifdef __cplusplus
19730extern "C" void exit (int);
19731#endif
19732
19733void fnord() { int i=42;}
19734int main ()
19735{
19736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19737 int status = $lt_dlunknown;
19738
19739 if (self)
19740 {
19741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19742 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19743 /* dlclose (self); */
19744 }
19745 else
19746 puts (dlerror ());
19747
19748 exit (status);
19749}
19750_LT_EOF
19751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19752 (eval $ac_link) 2>&5
19753 ac_status=$?
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19756 (./conftest; exit; ) >&5 2>/dev/null
19757 lt_status=$?
19758 case x$lt_status in
19759 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19760 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19761 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19762 esac
19763 else :
19764 # compilation failed
19765 lt_cv_dlopen_self=no
19766 fi
19767fi
19768rm -fr conftest*
19769
19770
19771fi
19772echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19773echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19774
19775 if test "x$lt_cv_dlopen_self" = xyes; then
19776 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19777 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19778echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19779if test "${lt_cv_dlopen_self_static+set}" = set; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19781else
19782 if test "$cross_compiling" = yes; then :
19783 lt_cv_dlopen_self_static=cross
19784else
19785 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19786 lt_status=$lt_dlunknown
19787 cat > conftest.$ac_ext <<_LT_EOF
f6e377f8 19788#line 19788 "configure"
da0f6381
PB
19789#include "confdefs.h"
19790
19791#if HAVE_DLFCN_H
19792#include <dlfcn.h>
19793#endif
19794
19795#include <stdio.h>
19796
19797#ifdef RTLD_GLOBAL
19798# define LT_DLGLOBAL RTLD_GLOBAL
19799#else
19800# ifdef DL_GLOBAL
19801# define LT_DLGLOBAL DL_GLOBAL
19802# else
19803# define LT_DLGLOBAL 0
19804# endif
19805#endif
19806
19807/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19808 find out it does not work in some platform. */
19809#ifndef LT_DLLAZY_OR_NOW
19810# ifdef RTLD_LAZY
19811# define LT_DLLAZY_OR_NOW RTLD_LAZY
19812# else
19813# ifdef DL_LAZY
19814# define LT_DLLAZY_OR_NOW DL_LAZY
19815# else
19816# ifdef RTLD_NOW
19817# define LT_DLLAZY_OR_NOW RTLD_NOW
19818# else
19819# ifdef DL_NOW
19820# define LT_DLLAZY_OR_NOW DL_NOW
19821# else
19822# define LT_DLLAZY_OR_NOW 0
19823# endif
19824# endif
19825# endif
19826# endif
19827#endif
19828
19829#ifdef __cplusplus
19830extern "C" void exit (int);
19831#endif
19832
19833void fnord() { int i=42;}
19834int main ()
19835{
19836 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19837 int status = $lt_dlunknown;
19838
19839 if (self)
19840 {
19841 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19842 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19843 /* dlclose (self); */
19844 }
19845 else
19846 puts (dlerror ());
19847
19848 exit (status);
19849}
19850_LT_EOF
19851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19852 (eval $ac_link) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19856 (./conftest; exit; ) >&5 2>/dev/null
19857 lt_status=$?
19858 case x$lt_status in
19859 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19860 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19861 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19862 esac
19863 else :
19864 # compilation failed
19865 lt_cv_dlopen_self_static=no
19866 fi
19867fi
19868rm -fr conftest*
19869
19870
19871fi
19872echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19873echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19874 fi
19875
19876 CPPFLAGS="$save_CPPFLAGS"
19877 LDFLAGS="$save_LDFLAGS"
19878 LIBS="$save_LIBS"
19879 ;;
19880 esac
19881
19882 case $lt_cv_dlopen_self in
19883 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19884 *) enable_dlopen_self=unknown ;;
19885 esac
19886
19887 case $lt_cv_dlopen_self_static in
19888 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19889 *) enable_dlopen_self_static=unknown ;;
19890 esac
19891fi
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909striplib=
19910old_striplib=
19911echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19912echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19913if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19914 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19915 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19916 echo "$as_me:$LINENO: result: yes" >&5
19917echo "${ECHO_T}yes" >&6
19918else
19919# FIXME - insert some real tests, host_os isn't really good enough
19920 case $host_os in
19921 darwin*)
19922 if test -n "$STRIP" ; then
19923 striplib="$STRIP -x"
19924 old_striplib="$STRIP -S"
19925 echo "$as_me:$LINENO: result: yes" >&5
19926echo "${ECHO_T}yes" >&6
19927 else
19928 echo "$as_me:$LINENO: result: no" >&5
19929echo "${ECHO_T}no" >&6
19930 fi
19931 ;;
19932 *)
19933 echo "$as_me:$LINENO: result: no" >&5
19934echo "${ECHO_T}no" >&6
19935 ;;
19936 esac
19937fi
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950 # Report which library types will actually be built
19951 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19952echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19953 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19954echo "${ECHO_T}$can_build_shared" >&6
19955
19956 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19957echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19958 test "$can_build_shared" = "no" && enable_shared=no
19959
19960 # On AIX, shared libraries and static libraries use the same namespace, and
19961 # are all built from PIC.
19962 case $host_os in
19963 aix3*)
19964 test "$enable_shared" = yes && enable_static=no
19965 if test -n "$RANLIB"; then
19966 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19967 postinstall_cmds='$RANLIB $lib'
19968 fi
19969 ;;
19970
19971 aix[4-9]*)
19972 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19973 test "$enable_shared" = yes && enable_static=no
19974 fi
19975 ;;
19976 esac
19977 echo "$as_me:$LINENO: result: $enable_shared" >&5
19978echo "${ECHO_T}$enable_shared" >&6
19979
19980 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19981echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19982 # Make sure either enable_shared or enable_static is yes.
19983 test "$enable_shared" = yes || enable_static=yes
19984 echo "$as_me:$LINENO: result: $enable_static" >&5
19985echo "${ECHO_T}$enable_static" >&6
19986
19987
19988
19989
19990fi
19991ac_ext=c
19992ac_cpp='$CPP $CPPFLAGS'
19993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19995ac_compiler_gnu=$ac_cv_c_compiler_gnu
19996
19997CC="$lt_save_CC"
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014# Only expand once:
20015
20016
20017
20018
20019
20020# Identify the assembler which will work hand-in-glove with the newly
20021# built GCC, so that we can examine its features. This is the assembler
20022# which will be driven by the driver program.
20023#
20024# If build != host, and we aren't building gas in-tree, we identify a
20025# build->target assembler and hope that it will have the same features
20026# as the host->target assembler we'll be using.
20027gcc_cv_gas_major_version=
20028gcc_cv_gas_minor_version=
20029gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20030
20031if test "${gcc_cv_as+set}" = set; then
20032 :
20033else
20034
20035if test -x "$DEFAULT_ASSEMBLER"; then
20036 gcc_cv_as="$DEFAULT_ASSEMBLER"
20037elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20038 && test -f ../gas/Makefile \
20039 && test x$build = x$host; then
20040 gcc_cv_as=../gas/as-new$build_exeext
20041elif test -x as$build_exeext; then
20042 # Build using assembler in the current directory.
20043 gcc_cv_as=./as$build_exeext
20044elif test -x $AS_FOR_TARGET; then
20045 gcc_cv_as="$AS_FOR_TARGET"
20046else
20047 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20048set dummy $AS_FOR_TARGET; ac_word=$2
20049echo "$as_me:$LINENO: checking for $ac_word" >&5
20050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20051if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20053else
20054 case $gcc_cv_as in
20055 [\\/]* | ?:[\\/]*)
20056 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20057 ;;
20058 *)
20059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20060for as_dir in $PATH
20061do
20062 IFS=$as_save_IFS
20063 test -z "$as_dir" && as_dir=.
20064 for ac_exec_ext in '' $ac_executable_extensions; do
20065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20066 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20068 break 2
20069 fi
20070done
20071done
20072
20073 ;;
20074esac
20075fi
20076gcc_cv_as=$ac_cv_path_gcc_cv_as
20077
20078if test -n "$gcc_cv_as"; then
20079 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20080echo "${ECHO_T}$gcc_cv_as" >&6
20081else
20082 echo "$as_me:$LINENO: result: no" >&5
20083echo "${ECHO_T}no" >&6
20084fi
20085
20086fi
20087fi
20088
20089
20090ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20091
20092case "$ORIGINAL_AS_FOR_TARGET" in
20093 ./as | ./as$build_exeext) ;;
20094 *) ac_config_files="$ac_config_files as:exec-tool.in"
20095 ;;
20096esac
20097
20098echo "$as_me:$LINENO: checking what assembler to use" >&5
20099echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20100if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20101 # Single tree build which includes gas. We want to prefer it
20102 # over whatever linker top-level may have detected, since
20103 # we'll use what we're building after installation anyway.
20104 echo "$as_me:$LINENO: result: newly built gas" >&5
20105echo "${ECHO_T}newly built gas" >&6
20106 in_tree_gas=yes
20107 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20108for f in $gcc_cv_as_bfd_srcdir/configure \
20109 $gcc_cv_as_gas_srcdir/configure \
20110 $gcc_cv_as_gas_srcdir/configure.in \
20111 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20112 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20113 if test x$gcc_cv_gas_version != x; then
20114 break
20115 fi
20116done
20117gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20118gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20119gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20120case $gcc_cv_gas_patch_version in
20121 "") gcc_cv_gas_patch_version="0" ;;
20122esac
20123gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20124 + $gcc_cv_gas_minor_version \) \* 1000 \
20125 + $gcc_cv_gas_patch_version`
20126
20127 in_tree_gas_is_elf=no
20128 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20129 || (grep 'obj_format = multi' ../gas/Makefile \
20130 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20131 then
20132 in_tree_gas_is_elf=yes
20133 fi
20134else
20135 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20136echo "${ECHO_T}$gcc_cv_as" >&6
20137 in_tree_gas=no
20138fi
20139
20140# Identify the linker which will work hand-in-glove with the newly
20141# built GCC, so that we can examine its features. This is the linker
20142# which will be driven by the driver program.
20143#
20144# If build != host, and we aren't building gas in-tree, we identify a
20145# build->target linker and hope that it will have the same features
20146# as the host->target linker we'll be using.
20147gcc_cv_gld_major_version=
20148gcc_cv_gld_minor_version=
20149gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20150gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20151
20152if test "${gcc_cv_ld+set}" = set; then
20153 :
20154else
20155
20156if test -x "$DEFAULT_LINKER"; then
20157 gcc_cv_ld="$DEFAULT_LINKER"
20158elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20159 && test -f ../ld/Makefile \
20160 && test x$build = x$host; then
20161 gcc_cv_ld=../ld/ld-new$build_exeext
e8b05380
PB
20162elif test -x collect-ld$build_exeext; then
20163 # Build using linker in the current directory.
20164 gcc_cv_ld=./collect-ld$build_exeext
20165elif test -x $LD_FOR_TARGET; then
20166 gcc_cv_ld="$LD_FOR_TARGET"
20167else
20168 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20169set dummy $LD_FOR_TARGET; ac_word=$2
b61ff9c8
BS
20170echo "$as_me:$LINENO: checking for $ac_word" >&5
20171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
e8b05380 20172if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
d739199a
DJ
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20174else
e8b05380 20175 case $gcc_cv_ld in
d739199a 20176 [\\/]* | ?:[\\/]*)
e8b05380 20177 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
d739199a
DJ
20178 ;;
20179 *)
20180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20181for as_dir in $PATH
20182do
20183 IFS=$as_save_IFS
20184 test -z "$as_dir" && as_dir=.
20185 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 20186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e8b05380 20187 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
d739199a
DJ
20188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20189 break 2
20190 fi
20191done
20192done
20193
20194 ;;
20195esac
20196fi
e8b05380 20197gcc_cv_ld=$ac_cv_path_gcc_cv_ld
b61ff9c8 20198
e8b05380 20199if test -n "$gcc_cv_ld"; then
b61ff9c8
BS
20200 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20201echo "${ECHO_T}$gcc_cv_ld" >&6
d739199a 20202else
b61ff9c8
BS
20203 echo "$as_me:$LINENO: result: no" >&5
20204echo "${ECHO_T}no" >&6
d739199a
DJ
20205fi
20206
20207fi
e8b05380
PB
20208fi
20209
20210
20211ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20212
be0fe523
PB
20213case "$ORIGINAL_LD_FOR_TARGET" in
20214 ./collect-ld | ./collect-ld$build_exeext) ;;
b61ff9c8 20215 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
be0fe523
PB
20216 ;;
20217esac
e8b05380 20218
b61ff9c8
BS
20219echo "$as_me:$LINENO: checking what linker to use" >&5
20220echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
e8b05380
PB
20221if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20222 # Single tree build which includes ld. We want to prefer it
20223 # over whatever linker top-level may have detected, since
20224 # we'll use what we're building after installation anyway.
b61ff9c8
BS
20225 echo "$as_me:$LINENO: result: newly built ld" >&5
20226echo "${ECHO_T}newly built ld" >&6
e8b05380
PB
20227 in_tree_ld=yes
20228 in_tree_ld_is_elf=no
20229 if (grep 'EMUL = .*elf' ../ld/Makefile \
20230 || grep 'EMUL = .*linux' ../ld/Makefile \
20231 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20232 in_tree_ld_is_elf=yes
20233 fi
20234 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
20235 do
20236 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20237 if test x$gcc_cv_gld_version != x; then
20238 break
20239 fi
20240 done
20241 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20242 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20243else
b61ff9c8
BS
20244 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20245echo "${ECHO_T}$gcc_cv_ld" >&6
e8b05380
PB
20246 in_tree_ld=no
20247fi
20248
20249# Figure out what nm we will be using.
20250gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20251if test "${gcc_cv_nm+set}" = set; then
20252 :
20253else
20254
20255if test -f $gcc_cv_binutils_srcdir/configure.in \
c15b113b
DD
20256 && test -f ../binutils/Makefile \
20257 && test x$build = x$host; then
e8b05380
PB
20258 gcc_cv_nm=../binutils/nm-new$build_exeext
20259elif test -x nm$build_exeext; then
20260 gcc_cv_nm=./nm$build_exeext
20261elif test -x $NM_FOR_TARGET; then
20262 gcc_cv_nm="$NM_FOR_TARGET"
20263else
20264 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20265set dummy $NM_FOR_TARGET; ac_word=$2
b61ff9c8
BS
20266echo "$as_me:$LINENO: checking for $ac_word" >&5
20267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
e8b05380 20268if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
d739199a
DJ
20269 echo $ECHO_N "(cached) $ECHO_C" >&6
20270else
e8b05380 20271 case $gcc_cv_nm in
d739199a 20272 [\\/]* | ?:[\\/]*)
e8b05380 20273 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
d739199a
DJ
20274 ;;
20275 *)
20276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20277for as_dir in $PATH
20278do
20279 IFS=$as_save_IFS
20280 test -z "$as_dir" && as_dir=.
20281 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 20282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e8b05380 20283 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
d739199a
DJ
20284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20285 break 2
20286 fi
20287done
20288done
20289
20290 ;;
20291esac
20292fi
e8b05380 20293gcc_cv_nm=$ac_cv_path_gcc_cv_nm
b61ff9c8 20294
e8b05380 20295if test -n "$gcc_cv_nm"; then
b61ff9c8
BS
20296 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20297echo "${ECHO_T}$gcc_cv_nm" >&6
d739199a 20298else
b61ff9c8
BS
20299 echo "$as_me:$LINENO: result: no" >&5
20300echo "${ECHO_T}no" >&6
d739199a
DJ
20301fi
20302
20303fi
e8b05380 20304fi
d739199a 20305
e8b05380 20306
b61ff9c8
BS
20307echo "$as_me:$LINENO: checking what nm to use" >&5
20308echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
e8b05380
PB
20309if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20310 # Single tree build which includes binutils.
b61ff9c8
BS
20311 echo "$as_me:$LINENO: result: newly built nm" >&5
20312echo "${ECHO_T}newly built nm" >&6
e8b05380
PB
20313 in_tree_nm=yes
20314else
b61ff9c8
BS
20315 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20316echo "${ECHO_T}$gcc_cv_nm" >&6
e8b05380
PB
20317 in_tree_nm=no
20318fi
20319
20320ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20321
be0fe523
PB
20322case "$ORIGINAL_NM_FOR_TARGET" in
20323 ./nm | ./nm$build_exeext) ;;
b61ff9c8 20324 *) ac_config_files="$ac_config_files nm:exec-tool.in"
be0fe523
PB
20325 ;;
20326esac
20327
e8b05380
PB
20328
20329# Figure out what objdump we will be using.
20330if test "${gcc_cv_objdump+set}" = set; then
20331 :
20332else
20333
20334if test -f $gcc_cv_binutils_srcdir/configure.in \
c15b113b
DD
20335 && test -f ../binutils/Makefile \
20336 && test x$build = x$host; then
e8b05380
PB
20337 # Single tree build which includes binutils.
20338 gcc_cv_objdump=../binutils/objdump$build_exeext
20339elif test -x objdump$build_exeext; then
20340 gcc_cv_objdump=./objdump$build_exeext
20341elif test -x $OBJDUMP_FOR_TARGET; then
20342 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20343else
20344 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20345set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
b61ff9c8
BS
20346echo "$as_me:$LINENO: checking for $ac_word" >&5
20347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
e8b05380 20348if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
9f18db39
PB
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20350else
e8b05380 20351 case $gcc_cv_objdump in
9f18db39 20352 [\\/]* | ?:[\\/]*)
e8b05380 20353 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
9f18db39
PB
20354 ;;
20355 *)
20356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e8b05380 20357for as_dir in $PATH
9f18db39
PB
20358do
20359 IFS=$as_save_IFS
20360 test -z "$as_dir" && as_dir=.
20361 for ac_exec_ext in '' $ac_executable_extensions; do
b61ff9c8 20362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e8b05380 20363 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
9f18db39
PB
20364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20365 break 2
20366 fi
20367done
20368done
779243f7 20369
9f18db39
PB
20370 ;;
20371esac
20372fi
e8b05380 20373gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
b61ff9c8 20374
e8b05380 20375if test -n "$gcc_cv_objdump"; then
b61ff9c8
BS
20376 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20377echo "${ECHO_T}$gcc_cv_objdump" >&6
9f18db39 20378else
b61ff9c8
BS
20379 echo "$as_me:$LINENO: result: no" >&5
20380echo "${ECHO_T}no" >&6
9f18db39
PB
20381fi
20382
e8b05380
PB
20383fi
20384fi
9f18db39 20385
e8b05380 20386
b61ff9c8
BS
20387echo "$as_me:$LINENO: checking what objdump to use" >&5
20388echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
e8b05380
PB
20389if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20390 # Single tree build which includes binutils.
b61ff9c8
BS
20391 echo "$as_me:$LINENO: result: newly built objdump" >&5
20392echo "${ECHO_T}newly built objdump" >&6
e8b05380 20393elif test x$gcc_cv_objdump = x; then
b61ff9c8
BS
20394 echo "$as_me:$LINENO: result: not found" >&5
20395echo "${ECHO_T}not found" >&6
e8b05380 20396else
b61ff9c8
BS
20397 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20398echo "${ECHO_T}$gcc_cv_objdump" >&6
a2eafc76 20399fi
3cae5780 20400
981d4858 20401# Figure out what assembler alignment features are present.
b61ff9c8
BS
20402echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20403echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
ba479fd2
NN
20404if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
20406else
20407 gcc_cv_as_balign_and_p2align=no
20408 if test $in_tree_gas = yes; then
20409 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20410 then gcc_cv_as_balign_and_p2align=yes
20411fi
20412 elif test x$gcc_cv_as != x; then
6e3f3080 20413 echo '.balign 4
8ada417f 20414.p2align 2' > conftest.s
ba479fd2
NN
20415 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
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); }; }
8ada417f
ZW
20421 then
20422 gcc_cv_as_balign_and_p2align=yes
20423 else
20424 echo "configure: failed program was" >&5
20425 cat conftest.s >&5
20426 fi
20427 rm -f conftest.o conftest.s
20428 fi
20429fi
b61ff9c8
BS
20430echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20431echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
63cf211a 20432if test $gcc_cv_as_balign_and_p2align = yes; then
ba479fd2
NN
20433
20434cat >>confdefs.h <<\_ACEOF
981d4858 20435#define HAVE_GAS_BALIGN_AND_P2ALIGN 1
ba479fd2 20436_ACEOF
981d4858 20437
ad9c4d9f
NN
20438fi
20439
b61ff9c8
BS
20440echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20441echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
ba479fd2
NN
20442if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
20444else
20445 gcc_cv_as_max_skip_p2align=no
20446 if test $in_tree_gas = yes; then
20447 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20448 then gcc_cv_as_max_skip_p2align=yes
20449fi
20450 elif test x$gcc_cv_as != x; then
6e3f3080 20451 echo '.p2align 4,,7' > conftest.s
ba479fd2
NN
20452 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }
8ada417f
ZW
20458 then
20459 gcc_cv_as_max_skip_p2align=yes
20460 else
20461 echo "configure: failed program was" >&5
20462 cat conftest.s >&5
20463 fi
20464 rm -f conftest.o conftest.s
20465 fi
ad9c4d9f 20466fi
b61ff9c8
BS
20467echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20468echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
63cf211a 20469if test $gcc_cv_as_max_skip_p2align = yes; then
ba479fd2
NN
20470
20471cat >>confdefs.h <<\_ACEOF
9e423e6d 20472#define HAVE_GAS_MAX_SKIP_P2ALIGN 1
ba479fd2 20473_ACEOF
9e423e6d 20474
9e423e6d 20475fi
ad9c4d9f 20476
b61ff9c8
BS
20477echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20478echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
5708d18d
MS
20479if test "${gcc_cv_as_literal16+set}" = set; then
20480 echo $ECHO_N "(cached) $ECHO_C" >&6
20481else
20482 gcc_cv_as_literal16=no
20483 if test $in_tree_gas = yes; then
20484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20485 then gcc_cv_as_literal16=yes
20486fi
20487 elif test x$gcc_cv_as != x; then
20488 echo '.literal16' > conftest.s
20489 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20492 ac_status=$?
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }
20495 then
20496 gcc_cv_as_literal16=yes
20497 else
20498 echo "configure: failed program was" >&5
20499 cat conftest.s >&5
20500 fi
20501 rm -f conftest.o conftest.s
20502 fi
20503fi
b61ff9c8
BS
20504echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20505echo "${ECHO_T}$gcc_cv_as_literal16" >&6
5708d18d
MS
20506if test $gcc_cv_as_literal16 = yes; then
20507
20508cat >>confdefs.h <<\_ACEOF
20509#define HAVE_GAS_LITERAL16 1
20510_ACEOF
20511
20512fi
20513
b61ff9c8
BS
20514echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20515echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
ba479fd2
NN
20516if test "${gcc_cv_as_subsection_m1+set}" = set; then
20517 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
20518else
20519 gcc_cv_as_subsection_m1=no
20520 if test $in_tree_gas = yes; then
20521 if test $in_tree_gas_is_elf = yes \
20522 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20523 then gcc_cv_as_subsection_m1=yes
ad9c4d9f 20524fi
8ada417f 20525 elif test x$gcc_cv_as != x; then
6e3f3080 20526 echo 'conftest_label1: .word 0
d1accaa3
JJ
20527.subsection -1
20528conftest_label2: .word 0
8ada417f 20529.previous' > conftest.s
ba479fd2
NN
20530 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20533 ac_status=$?
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; }
8ada417f
ZW
20536 then
20537 if test x$gcc_cv_nm != x; then
20538 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20539 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20540 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20541 then :
20542 else gcc_cv_as_subsection_m1=yes
20543 fi
20544 rm -f conftest.nm1 conftest.nm2
20545 fi
20546 else
20547 echo "configure: failed program was" >&5
20548 cat conftest.s >&5
20549 fi
20550 rm -f conftest.o conftest.s
20551 fi
981d4858 20552fi
b61ff9c8
BS
20553echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20554echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
63cf211a 20555if test $gcc_cv_as_subsection_m1 = yes; then
ba479fd2
NN
20556
20557cat >>confdefs.h <<\_ACEOF
981d4858 20558#define HAVE_GAS_SUBSECTION_ORDERING 1
ba479fd2 20559_ACEOF
981d4858 20560
d1accaa3 20561fi
ad9c4d9f 20562
b61ff9c8
BS
20563echo "$as_me:$LINENO: checking assembler for .weak" >&5
20564echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
ba479fd2
NN
20565if test "${gcc_cv_as_weak+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
20567else
20568 gcc_cv_as_weak=no
20569 if test $in_tree_gas = yes; then
20570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20571 then gcc_cv_as_weak=yes
ad9c4d9f 20572fi
8ada417f 20573 elif test x$gcc_cv_as != x; then
6e3f3080 20574 echo ' .weak foobar' > conftest.s
ba479fd2
NN
20575 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577 (eval $ac_try) 2>&5
20578 ac_status=$?
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; }
8ada417f
ZW
20581 then
20582 gcc_cv_as_weak=yes
20583 else
20584 echo "configure: failed program was" >&5
20585 cat conftest.s >&5
20586 fi
20587 rm -f conftest.o conftest.s
20588 fi
981d4858 20589fi
b61ff9c8
BS
20590echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20591echo "${ECHO_T}$gcc_cv_as_weak" >&6
63cf211a 20592if test $gcc_cv_as_weak = yes; then
ba479fd2
NN
20593
20594cat >>confdefs.h <<\_ACEOF
981d4858 20595#define HAVE_GAS_WEAK 1
ba479fd2 20596_ACEOF
981d4858 20597
12822146 20598fi
ad9c4d9f 20599
b61ff9c8
BS
20600echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20601echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
a0203ca7
AO
20602if test "${gcc_cv_as_weakref+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20604else
20605 gcc_cv_as_weakref=no
20606 if test $in_tree_gas = yes; then
20607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20608 then gcc_cv_as_weakref=yes
20609fi
20610 elif test x$gcc_cv_as != x; then
20611 echo ' .weakref foobar, barfnot' > conftest.s
20612 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }
20618 then
20619 gcc_cv_as_weakref=yes
20620 else
20621 echo "configure: failed program was" >&5
20622 cat conftest.s >&5
20623 fi
20624 rm -f conftest.o conftest.s
20625 fi
20626fi
b61ff9c8
BS
20627echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20628echo "${ECHO_T}$gcc_cv_as_weakref" >&6
a0203ca7
AO
20629if test $gcc_cv_as_weakref = yes; then
20630
20631cat >>confdefs.h <<\_ACEOF
20632#define HAVE_GAS_WEAKREF 1
20633_ACEOF
20634
20635fi
20636
b61ff9c8
BS
20637echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20638echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
e41f3691
JDA
20639if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20641else
20642 gcc_cv_as_nsubspa_comdat=no
20643 if test $in_tree_gas = yes; then
20644 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20645 then gcc_cv_as_nsubspa_comdat=yes
20646fi
20647 elif test x$gcc_cv_as != x; then
20648 echo ' .SPACE $TEXT$
20649 .NSUBSPA $CODE$,COMDAT' > conftest.s
20650 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }
20656 then
20657 gcc_cv_as_nsubspa_comdat=yes
20658 else
20659 echo "configure: failed program was" >&5
20660 cat conftest.s >&5
20661 fi
20662 rm -f conftest.o conftest.s
20663 fi
20664fi
b61ff9c8
BS
20665echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20666echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
e41f3691
JDA
20667if test $gcc_cv_as_nsubspa_comdat = yes; then
20668
20669cat >>confdefs.h <<\_ACEOF
20670#define HAVE_GAS_NSUBSPA_COMDAT 1
20671_ACEOF
20672
20673fi
20674
8ada417f
ZW
20675# .hidden needs to be supported in both the assembler and the linker,
20676# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20677# This is irritatingly difficult to feature test for; we have to check the
20678# date string after the version number. If we've got an in-tree
20679# ld, we don't know its patchlevel version, so we set the baseline at 2.13
20680# to be safe.
20681# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
b61ff9c8
BS
20682echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20683echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
ba479fd2
NN
20684if test "${gcc_cv_as_hidden+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
20686else
20687 gcc_cv_as_hidden=no
20688 if test $in_tree_gas = yes; then
20689 if test $in_tree_gas_is_elf = yes \
20690 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20691 then gcc_cv_as_hidden=yes
20692fi
20693 elif test x$gcc_cv_as != x; then
6e3f3080 20694 echo ' .hidden foobar
8ada417f 20695foobar:' > conftest.s
ba479fd2
NN
20696 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; }
8ada417f
ZW
20702 then
20703 gcc_cv_as_hidden=yes
20704 else
20705 echo "configure: failed program was" >&5
20706 cat conftest.s >&5
20707 fi
20708 rm -f conftest.o conftest.s
20709 fi
20710fi
b61ff9c8
BS
20711echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20712echo "${ECHO_T}$gcc_cv_as_hidden" >&6
63cf211a 20713
ad9c4d9f 20714
b61ff9c8
BS
20715echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20716echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
ba479fd2
NN
20717if test "${gcc_cv_ld_hidden+set}" = set; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
20719else
20720 if test $in_tree_ld = yes ; then
20721 gcc_cv_ld_hidden=no
20722 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
20723 && test $in_tree_ld_is_elf = yes; then
20724 gcc_cv_ld_hidden=yes
20725 fi
20726else
20727 gcc_cv_ld_hidden=yes
bace148a 20728 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
8ada417f
ZW
20729 if echo "$ld_ver" | grep GNU > /dev/null; then
20730 ld_vers=`echo $ld_ver | sed -n \
115e6e55 20731 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
8ada417f 20732 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
11176d2a
JB
20733 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
20734 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20735 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8ada417f
ZW
20736 if test 0"$ld_date" -lt 20020404; then
20737 if test -n "$ld_date"; then
20738 # If there was date string, but was earlier than 2002-04-04, fail
20739 gcc_cv_ld_hidden=no
20740 elif test -z "$ld_vers"; then
20741 # If there was no date string nor ld version number, something is wrong
20742 gcc_cv_ld_hidden=no
20743 else
8ada417f
ZW
20744 test -z "$ld_vers_patch" && ld_vers_patch=0
20745 if test "$ld_vers_major" -lt 2; then
20746 gcc_cv_ld_hidden=no
20747 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20748 gcc_cv_ld_hidden="no"
20749 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20750 gcc_cv_ld_hidden=no
c72931a6 20751 fi
8ada417f 20752 fi
789b7de5 20753 fi
8ada417f 20754 else
28690784 20755 case "${target}" in
b0fd7d27 20756 hppa64*-*-hpux* | ia64*-*-hpux*)
28690784
JDA
20757 gcc_cv_ld_hidden=yes
20758 ;;
20759 *)
20760 gcc_cv_ld_hidden=no
20761 ;;
20762 esac
8ada417f
ZW
20763 fi
20764fi
6d07784a 20765fi
b61ff9c8
BS
20766echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20767echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
8ada417f 20768libgcc_visibility=no
ad9c4d9f 20769
232b67d9 20770
8e3940b2 20771if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
8ada417f 20772 libgcc_visibility=yes
ba479fd2
NN
20773
20774cat >>confdefs.h <<\_ACEOF
8ada417f 20775#define HAVE_GAS_HIDDEN 1
ba479fd2 20776_ACEOF
ad9c4d9f
NN
20777
20778fi
20779
8ada417f 20780# Check if we have .[us]leb128, and support symbol arithmetic with it.
b61ff9c8
BS
20781echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20782echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
ba479fd2
NN
20783if test "${gcc_cv_as_leb128+set}" = set; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
20785else
20786 gcc_cv_as_leb128=no
20787 if test $in_tree_gas = yes; then
20788 if test $in_tree_gas_is_elf = yes \
20789 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20790 then gcc_cv_as_leb128=yes
20791fi
20792 elif test x$gcc_cv_as != x; then
6e3f3080 20793 echo ' .data
b7460f24
RH
20794 .uleb128 L2 - L1
20795L1:
20796 .uleb128 1280
20797 .sleb128 -1010
8ada417f 20798L2:' > conftest.s
ba479fd2
NN
20799 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20802 ac_status=$?
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; }
8ada417f
ZW
20805 then
20806 # GAS versions before 2.11 do not support uleb128,
20807 # despite appearing to.
20808 # ??? There exists an elf-specific test that will crash
20809 # the assembler. Perhaps it's better to figure out whether
20810 # arbitrary sections are supported and try the test.
bace148a 20811 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
8ada417f 20812 if echo "$as_ver" | grep GNU > /dev/null; then
ddcd0f6f 20813 as_vers=`echo $as_ver | sed -n \
115e6e55 20814 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
ddcd0f6f
BS
20815 as_major=`expr "$as_vers" : '\([0-9]*\)'`
20816 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
8ada417f
ZW
20817 if test $as_major -eq 2 && test $as_minor -lt 11
20818 then :
20819 else gcc_cv_as_leb128=yes
20820 fi
20821 fi
20822 else
20823 echo "configure: failed program was" >&5
20824 cat conftest.s >&5
20825 fi
20826 rm -f conftest.o conftest.s
20827 fi
b7460f24 20828fi
b61ff9c8
BS
20829echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20830echo "${ECHO_T}$gcc_cv_as_leb128" >&6
63cf211a 20831if test $gcc_cv_as_leb128 = yes; then
ba479fd2
NN
20832
20833cat >>confdefs.h <<\_ACEOF
b7460f24 20834#define HAVE_AS_LEB128 1
ba479fd2 20835_ACEOF
b7460f24
RH
20836
20837fi
ad9c4d9f 20838
8ada417f
ZW
20839# GAS versions up to and including 2.11.0 may mis-optimize
20840# .eh_frame data.
b61ff9c8
BS
20841echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20842echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
ba479fd2
NN
20843if test "${gcc_cv_as_eh_frame+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
20845else
20846 gcc_cv_as_eh_frame=no
20847 if test $in_tree_gas = yes; then
20848 if test $in_tree_gas_is_elf = yes \
20849 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20850 then gcc_cv_as_eh_frame=yes
ad9c4d9f 20851fi
8ada417f 20852 elif test x$gcc_cv_as != x; then
6e3f3080 20853 echo ' .text
c64688ae
RH
20854.LFB1:
20855 .4byte 0
20856.L1:
20857 .4byte 0
20858.LFE1:
20859 .section .eh_frame,"aw",@progbits
20860__FRAME_BEGIN__:
20861 .4byte .LECIE1-.LSCIE1
20862.LSCIE1:
20863 .4byte 0x0
20864 .byte 0x1
20865 .ascii "z\0"
20866 .byte 0x1
20867 .byte 0x78
20868 .byte 0x1a
20869 .byte 0x0
20870 .byte 0x4
20871 .4byte 1
20872 .p2align 1
20873.LECIE1:
20874.LSFDE1:
20875 .4byte .LEFDE1-.LASFDE1
20876.LASFDE1:
20877 .4byte .LASFDE1-__FRAME_BEGIN__
20878 .4byte .LFB1
20879 .4byte .LFE1-.LFB1
20880 .byte 0x4
20881 .4byte .LFE1-.LFB1
20882 .byte 0x4
20883 .4byte .L1-.LFB1
8ada417f 20884.LEFDE1:' > conftest.s
ba479fd2
NN
20885 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; }
8ada417f
ZW
20891 then
20892 cat > conftest.lit <<EOF
c64688ae
RH
20893 0000 10000000 00000000 017a0001 781a0004 .........z..x...
20894 0010 01000000 12000000 18000000 00000000 ................
093e61a6 20895 0020 08000000 04080000 0044 .........D
01efb963 20896EOF
ba479fd2 20897cat > conftest.big <<EOF
01efb963
AS
20898 0000 00000010 00000000 017a0001 781a0004 .........z..x...
20899 0010 00000001 00000012 00000018 00000000 ................
093e61a6 20900 0020 00000008 04000000 0844 .........D
c64688ae 20901EOF
8ada417f
ZW
20902 # If the assembler didn't choke, and we can objdump,
20903 # and we got the correct data, then succeed.
dbc02e7f
AS
20904 # The text in the here-document typically retains its unix-style line
20905 # endings, while the output of objdump will use host line endings.
20906 # Therefore, use diff -b for the comparisons.
8ada417f
ZW
20907 if test x$gcc_cv_objdump != x \
20908 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
20909 | tail -3 > conftest.got \
dbc02e7f
AS
20910 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
20911 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
8ada417f
ZW
20912 then
20913 gcc_cv_as_eh_frame=yes
ba479fd2
NN
20914 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916 (eval $ac_try) 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; }; then
8ada417f
ZW
20920 gcc_cv_as_eh_frame=buggy
20921 else
20922 # Uh oh, what do we do now?
20923 gcc_cv_as_eh_frame=no
20924 fi
20925 else
20926 echo "configure: failed program was" >&5
20927 cat conftest.s >&5
20928 fi
20929 rm -f conftest.o conftest.s
20930 fi
c64688ae 20931fi
b61ff9c8
BS
20932echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20933echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
ad9c4d9f 20934
6e3f3080 20935
63cf211a 20936if test $gcc_cv_as_eh_frame = buggy; then
ba479fd2
NN
20937
20938cat >>confdefs.h <<\_ACEOF
8ada417f 20939#define USE_AS_TRADITIONAL_FORMAT 1
ba479fd2 20940_ACEOF
ad9c4d9f
NN
20941
20942fi
20943
b61ff9c8
BS
20944echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20945echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
ba479fd2
NN
20946if test "${gcc_cv_as_shf_merge+set}" = set; then
20947 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
20948else
20949 gcc_cv_as_shf_merge=no
20950 if test $in_tree_gas = yes; then
20951 if test $in_tree_gas_is_elf = yes \
20952 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20953 then gcc_cv_as_shf_merge=yes
20954fi
20955 elif test x$gcc_cv_as != x; then
6e3f3080 20956 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
ba479fd2
NN
20957 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20960 ac_status=$?
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; }
8ada417f
ZW
20963 then
20964 gcc_cv_as_shf_merge=yes
20965 else
20966 echo "configure: failed program was" >&5
20967 cat conftest.s >&5
20968 fi
20969 rm -f conftest.o conftest.s
20970 fi
201556f0 20971fi
b61ff9c8
BS
20972echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20973echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
8ada417f 20974
c18a5b6c 20975if test $gcc_cv_as_shf_merge = no; then
b61ff9c8
BS
20976 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20977echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
c18a5b6c
MM
20978if test "${gcc_cv_as_shf_merge+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20980else
20981 gcc_cv_as_shf_merge=no
20982 if test $in_tree_gas = yes; then
20983 if test $in_tree_gas_is_elf = yes \
20984 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20985 then gcc_cv_as_shf_merge=yes
20986fi
20987 elif test x$gcc_cv_as != x; then
20988 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20989 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }
20995 then
20996 gcc_cv_as_shf_merge=yes
20997 else
20998 echo "configure: failed program was" >&5
20999 cat conftest.s >&5
21000 fi
21001 rm -f conftest.o conftest.s
21002 fi
21003fi
b61ff9c8
BS
21004echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21005echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
c18a5b6c
MM
21006
21007fi
8ad9fb33 21008
ba479fd2 21009cat >>confdefs.h <<_ACEOF
8ad9fb33 21010#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
ba479fd2 21011_ACEOF
201556f0 21012
201556f0 21013
b61ff9c8
BS
21014echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21015echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
c18a5b6c
MM
21016if test "${gcc_cv_as_comdat_group+set}" = set; then
21017 echo $ECHO_N "(cached) $ECHO_C" >&6
21018else
21019 gcc_cv_as_comdat_group=no
21020 if test $in_tree_gas = yes; then
21021 if test $in_tree_gas_is_elf = yes \
11176d2a 21022 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
c18a5b6c
MM
21023 then gcc_cv_as_comdat_group=yes
21024fi
21025 elif test x$gcc_cv_as != x; then
21026 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21027 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }
21033 then
21034 gcc_cv_as_comdat_group=yes
21035 else
21036 echo "configure: failed program was" >&5
21037 cat conftest.s >&5
21038 fi
21039 rm -f conftest.o conftest.s
21040 fi
21041fi
b61ff9c8
BS
21042echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21043echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
c18a5b6c
MM
21044
21045if test $gcc_cv_as_comdat_group = yes; then
21046 gcc_cv_as_comdat_group_percent=no
21047else
b61ff9c8
BS
21048 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21049echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
c18a5b6c
MM
21050if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21052else
21053 gcc_cv_as_comdat_group_percent=no
21054 if test $in_tree_gas = yes; then
21055 if test $in_tree_gas_is_elf = yes \
11176d2a 21056 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
c18a5b6c
MM
21057 then gcc_cv_as_comdat_group_percent=yes
21058fi
21059 elif test x$gcc_cv_as != x; then
21060 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21061 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21064 ac_status=$?
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; }
21067 then
21068 gcc_cv_as_comdat_group_percent=yes
21069 else
21070 echo "configure: failed program was" >&5
21071 cat conftest.s >&5
21072 fi
21073 rm -f conftest.o conftest.s
21074 fi
21075fi
b61ff9c8
BS
21076echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21077echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
c18a5b6c
MM
21078
21079fi
11176d2a
JB
21080if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21081 comdat_group=yes
21082 if test 0"$ld_date" -lt 20050308; then
21083 if test -n "$ld_date"; then
21084 # If there was date string, but was earlier than 2005-03-08, fail
21085 comdat_group=no
21086 elif test "$ld_vers_major" -lt 2; then
21087 comdat_group=no
21088 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21089 comdat_group=no
21090 fi
21091 fi
1cf0118d
RO
21092else
21093 # assume linkers other than GNU ld don't support COMDAT group
21094 comdat_group=no
21095fi
21096if test $comdat_group = no; then
21097 gcc_cv_as_comdat_group=no
21098 gcc_cv_as_comdat_group_percent=no
11176d2a 21099fi
c18a5b6c
MM
21100
21101cat >>confdefs.h <<_ACEOF
11176d2a 21102#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
c18a5b6c
MM
21103_ACEOF
21104
21105
8ada417f 21106# Thread-local storage - the check is heavily parametrized.
f996902d
RH
21107conftest_s=
21108tls_first_major=
21109tls_first_minor=
9739c90c 21110tls_as_opt=
f996902d 21111case "$target" in
6f9b006d
RH
21112 alpha*-*-*)
21113 conftest_s='
21114 .section ".tdata","awT",@progbits
21115foo: .long 25
21116 .text
21117 ldq $27,__tls_get_addr($29) !literal!1
21118 lda $16,foo($29) !tlsgd!1
21119 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21120 ldq $27,__tls_get_addr($29) !literal!2
21121 lda $16,foo($29) !tlsldm!2
21122 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21123 ldq $1,foo($29) !gotdtprel
21124 ldah $2,foo($29) !dtprelhi
21125 lda $3,foo($2) !dtprello
21126 lda $4,foo($29) !dtprel
21127 ldq $1,foo($29) !gottprel
21128 ldah $2,foo($29) !tprelhi
21129 lda $3,foo($2) !tprello
21130 lda $4,foo($29) !tprel'
21131 tls_first_major=2
21132 tls_first_minor=13
2f3321ca 21133 tls_as_opt=--fatal-warnings
6f9b006d 21134 ;;
e4dd71de
AH
21135 frv*-*-*)
21136 conftest_s='
21137 .section ".tdata","awT",@progbits
21138x: .long 25
21139 .text
21140 call #gettlsoff(x)'
21141 tls_first_major=2
21142 tls_first_minor=14
21143 ;;
51076f96
RC
21144 hppa*-*-linux*)
21145 conftest_s='
21146t1: .reg %r20
21147t2: .reg %r21
21148gp: .reg %r19
21149 .section ".tdata","awT",@progbits
21150foo: .long 25
21151 .text
21152 .align 4
21153 addil LT%foo-$tls_gdidx$,gp
21154 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21155 b __tls_get_addr
21156 nop
21157 addil LT%foo-$tls_ldidx$,gp
21158 b __tls_get_addr
21159 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21160 addil LR%foo-$tls_dtpoff$,%ret0
21161 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21162 mfctl %cr27,%t1
21163 addil LT%foo-$tls_ieoff$,gp
21164 ldw RT%foo-$tls_ieoff$(%r1),%t2
21165 add %t1,%t2,%t3
21166 mfctl %cr27,%t1
21167 addil LR%foo-$tls_leoff$,%t1
21168 ldo RR%foo-$tls_leoff$(%r1),%t2'
21169 tls_first_major=2
21170 tls_first_minor=15
21171 tls_as_opt=--fatal-warnings
21172 ;;
d3585b76
DJ
21173 arm*-*-*)
21174 conftest_s='
21175 .section ".tdata","awT",%progbits
21176foo: .long 25
21177 .text
21178.word foo(gottpoff)
21179.word foo(tpoff)
21180.word foo(tlsgd)
21181.word foo(tlsldm)
21182.word foo(tlsldo)'
21183 tls_first_major=2
21184 tls_first_minor=17
21185 ;;
f996902d
RH
21186 i[34567]86-*-*)
21187 conftest_s='
21188 .section ".tdata","awT",@progbits
21189foo: .long 25
21190 .text
21191 movl %gs:0, %eax
21192 leal foo@TLSGD(,%ebx,1), %eax
21193 leal foo@TLSLDM(%ebx), %eax
21194 leal foo@DTPOFF(%eax), %edx
21195 movl foo@GOTTPOFF(%ebx), %eax
21196 subl foo@GOTTPOFF(%ebx), %eax
75d38379
JJ
21197 addl foo@GOTNTPOFF(%ebx), %eax
21198 movl foo@INDNTPOFF, %eax
f996902d
RH
21199 movl $foo@TPOFF, %eax
21200 subl $foo@TPOFF, %eax
21201 leal foo@NTPOFF(%ecx), %eax'
21202 tls_first_major=2
75d38379 21203 tls_first_minor=14
2f3321ca 21204 tls_as_opt=--fatal-warnings
75d38379
JJ
21205 ;;
21206 x86_64-*-*)
21207 conftest_s='
21208 .section ".tdata","awT",@progbits
21209foo: .long 25
21210 .text
21211 movq %fs:0, %rax
21212 leaq foo@TLSGD(%rip), %rdi
21213 leaq foo@TLSLD(%rip), %rdi
21214 leaq foo@DTPOFF(%rax), %rdx
21215 movq foo@GOTTPOFF(%rip), %rax
21216 movq $foo@TPOFF, %rax'
21217 tls_first_major=2
21218 tls_first_minor=14
2f3321ca 21219 tls_as_opt=--fatal-warnings
f996902d 21220 ;;
7b6e506e
RH
21221 ia64-*-*)
21222 conftest_s='
21223 .section ".tdata","awT",@progbits
21224foo: data8 25
21225 .text
21226 addl r16 = @ltoff(@dtpmod(foo#)), gp
21227 addl r17 = @ltoff(@dtprel(foo#)), gp
21228 addl r18 = @ltoff(@tprel(foo#)), gp
21229 addl r19 = @dtprel(foo#), gp
21230 adds r21 = @dtprel(foo#), r13
21231 movl r23 = @dtprel(foo#)
21232 addl r20 = @tprel(foo#), gp
21233 adds r22 = @tprel(foo#), r13
21234 movl r24 = @tprel(foo#)'
21235 tls_first_major=2
21236 tls_first_minor=13
2f3321ca 21237 tls_as_opt=--fatal-warnings
7b6e506e 21238 ;;
69229b81
DJ
21239 mips*-*-*)
21240 conftest_s='
21241 .section .tdata,"awT",@progbits
21242x:
21243 .word 2
21244 .text
21245 addiu $4, $28, %tlsgd(x)
21246 addiu $4, $28, %tlsldm(x)
21247 lui $4, %dtprel_hi(x)
21248 addiu $4, $4, %dtprel_lo(x)
21249 lw $4, %gottprel(x)($28)
21250 lui $4, %tprel_hi(x)
21251 addiu $4, $4, %tprel_lo(x)'
21252 tls_first_major=2
21253 tls_first_minor=16
21254 tls_as_opt='-32 --fatal-warnings'
21255 ;;
c4501e62
JJ
21256 powerpc-*-*)
21257 conftest_s='
21258 .section ".tdata","awT",@progbits
21259 .align 2
21260ld0: .space 4
21261ld1: .space 4
21262x1: .space 4
21263x2: .space 4
21264x3: .space 4
21265 .text
21266 addi 3,31,ld0@got@tlsgd
21267 bl __tls_get_addr
21268 addi 3,31,x1@got@tlsld
21269 bl __tls_get_addr
21270 addi 9,3,x1@dtprel
21271 addis 9,3,x2@dtprel@ha
21272 addi 9,9,x2@dtprel@l
21273 lwz 9,x3@got@tprel(31)
21274 add 9,9,x@tls
21275 addi 9,2,x1@tprel
21276 addis 9,2,x2@tprel@ha
21277 addi 9,9,x2@tprel@l'
21278 tls_first_major=2
21279 tls_first_minor=14
2f3321ca 21280 tls_as_opt="-a32 --fatal-warnings"
c4501e62
JJ
21281 ;;
21282 powerpc64-*-*)
21283 conftest_s='
21284 .section ".tdata","awT",@progbits
21285 .align 3
21286ld0: .space 8
21287ld1: .space 8
21288x1: .space 8
21289x2: .space 8
21290x3: .space 8
21291 .text
21292 addi 3,2,ld0@got@tlsgd
21293 bl .__tls_get_addr
21294 nop
21295 addi 3,2,ld1@toc
21296 bl .__tls_get_addr
21297 nop
21298 addi 3,2,x1@got@tlsld
21299 bl .__tls_get_addr
21300 nop
21301 addi 9,3,x1@dtprel
21302 bl .__tls_get_addr
21303 nop
21304 addis 9,3,x2@dtprel@ha
21305 addi 9,9,x2@dtprel@l
21306 bl .__tls_get_addr
21307 nop
21308 ld 9,x3@got@dtprel(2)
21309 add 9,9,3
21310 bl .__tls_get_addr
21311 nop'
21312 tls_first_major=2
21313 tls_first_minor=14
2f3321ca 21314 tls_as_opt="-a64 --fatal-warnings"
c4501e62 21315 ;;
fd3cd001
UW
21316 s390-*-*)
21317 conftest_s='
21318 .section ".tdata","awT",@progbits
21319foo: .long 25
21320 .text
21321 .long foo@TLSGD
21322 .long foo@TLSLDM
21323 .long foo@DTPOFF
21324 .long foo@NTPOFF
21325 .long foo@GOTNTPOFF
21326 .long foo@INDNTPOFF
21327 l %r1,foo@GOTNTPOFF(%r12)
21328 l %r1,0(%r1):tls_load:foo
21329 bas %r14,0(%r1,%r13):tls_gdcall:foo
21330 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21331 tls_first_major=2
21332 tls_first_minor=14
2f3321ca 21333 tls_as_opt="-m31 --fatal-warnings"
fd3cd001
UW
21334 ;;
21335 s390x-*-*)
21336 conftest_s='
21337 .section ".tdata","awT",@progbits
21338foo: .long 25
21339 .text
21340 .quad foo@TLSGD
21341 .quad foo@TLSLDM
21342 .quad foo@DTPOFF
21343 .quad foo@NTPOFF
21344 .quad foo@GOTNTPOFF
21345 lg %r1,foo@GOTNTPOFF(%r12)
21346 larl %r1,foo@INDNTPOFF
21347 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21348 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21349 tls_first_major=2
21350 tls_first_minor=14
2f3321ca 21351 tls_as_opt="-m64 -Aesame --fatal-warnings"
fd3cd001 21352 ;;
9ff13962
KK
21353 sh-*-* | sh[34]-*-*)
21354 conftest_s='
21355 .section ".tdata","awT",@progbits
21356foo: .long 25
21357 .text
21358 .long foo@TLSGD
21359 .long foo@TLSLDM
21360 .long foo@DTPOFF
21361 .long foo@GOTTPOFF
21362 .long foo@TPOFF'
21363 tls_first_major=2
21364 tls_first_minor=13
2f3321ca 21365 tls_as_opt=--fatal-warnings
9ff13962 21366 ;;
5751a10b 21367 sparc*-*-*)
2f3321ca 21368 case "$target" in
7935dc1b
EB
21369 sparc*-sun-solaris2.[56789]*)
21370 # TLS was introduced in the Solaris 9 4/04 release but
21371 # we do not enable it by default on Solaris 9 either.
21372 if test "x$enable_tls" = xyes ; then
21373 on_solaris=yes
21374 else
21375 enable_tls=no;
21376 fi
21377 ;;
2f3321ca
EB
21378 sparc*-sun-solaris2.*)
21379 on_solaris=yes
21380 ;;
21381 *)
21382 on_solaris=no
21383 ;;
21384 esac
21385 if test x$on_solaris = xyes && test x$gas_flag = xno; then
21386 conftest_s='
21387 .section ".tdata",#alloc,#write,#tls
21388foo: .long 25
21389 .text
21390 sethi %tgd_hi22(foo), %o0
21391 add %o0, %tgd_lo10(foo), %o1
21392 add %l7, %o1, %o0, %tgd_add(foo)
21393 call __tls_get_addr, %tgd_call(foo)
21394 sethi %tldm_hi22(foo), %l1
21395 add %l1, %tldm_lo10(foo), %l2
21396 add %l7, %l2, %o0, %tldm_add(foo)
21397 call __tls_get_addr, %tldm_call(foo)
21398 sethi %tldo_hix22(foo), %l3
21399 xor %l3, %tldo_lox10(foo), %l4
21400 add %o0, %l4, %l5, %tldo_add(foo)
21401 sethi %tie_hi22(foo), %o3
21402 add %o3, %tie_lo10(foo), %o3
21403 ld [%l7 + %o3], %o2, %tie_ld(foo)
21404 add %g7, %o2, %o4, %tie_add(foo)
21405 sethi %tle_hix22(foo), %l1
21406 xor %l1, %tle_lox10(foo), %o5
21407 ld [%g7 + %o5], %o1'
21408 tls_first_major=0
21409 tls_first_minor=0
21410 else
21411 conftest_s='
5751a10b
JJ
21412 .section ".tdata","awT",@progbits
21413foo: .long 25
21414 .text
21415 sethi %tgd_hi22(foo), %o0
21416 add %o0, %tgd_lo10(foo), %o1
21417 add %l7, %o1, %o0, %tgd_add(foo)
21418 call __tls_get_addr, %tgd_call(foo)
21419 sethi %tldm_hi22(foo), %l1
21420 add %l1, %tldm_lo10(foo), %l2
21421 add %l7, %l2, %o0, %tldm_add(foo)
21422 call __tls_get_addr, %tldm_call(foo)
21423 sethi %tldo_hix22(foo), %l3
21424 xor %l3, %tldo_lox10(foo), %l4
21425 add %o0, %l4, %l5, %tldo_add(foo)
21426 sethi %tie_hi22(foo), %o3
21427 add %o3, %tie_lo10(foo), %o3
21428 ld [%l7 + %o3], %o2, %tie_ld(foo)
21429 add %g7, %o2, %o4, %tie_add(foo)
21430 sethi %tle_hix22(foo), %l1
21431 xor %l1, %tle_lox10(foo), %o5
21432 ld [%g7 + %o5], %o1'
21433 tls_first_major=2
21434 tls_first_minor=14
2f3321ca
EB
21435 tls_as_opt="-32 --fatal-warnings"
21436 fi
5751a10b 21437 ;;
f996902d 21438esac
8dea1cca
DD
21439set_have_as_tls=no
21440if test "x$enable_tls" = xno ; then
21441 : # TLS explicitly disabled.
21442elif test "x$enable_tls" = xyes ; then
21443 set_have_as_tls=yes # TLS explicitly enabled.
21444elif test -z "$tls_first_major"; then
8ada417f
ZW
21445 : # If we don't have a check, assume no support.
21446else
b61ff9c8
BS
21447 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21448echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
ba479fd2
NN
21449if test "${gcc_cv_as_tls+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
21451else
21452 gcc_cv_as_tls=no
21453 if test $in_tree_gas = yes; then
21454 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21455 then gcc_cv_as_tls=yes
ad9c4d9f 21456fi
8ada417f 21457 elif test x$gcc_cv_as != x; then
6e3f3080 21458 echo "$conftest_s" > conftest.s
2f3321ca 21459 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
ba479fd2
NN
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21462 ac_status=$?
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; }
8ada417f
ZW
21465 then
21466 gcc_cv_as_tls=yes
21467 else
21468 echo "configure: failed program was" >&5
21469 cat conftest.s >&5
21470 fi
21471 rm -f conftest.o conftest.s
f996902d 21472 fi
f996902d 21473fi
b61ff9c8
BS
21474echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21475echo "${ECHO_T}$gcc_cv_as_tls" >&6
63cf211a 21476if test $gcc_cv_as_tls = yes; then
8dea1cca
DD
21477 set_have_as_tls=yes
21478fi
21479fi
21480if test $set_have_as_tls = yes ; then
ba479fd2
NN
21481
21482cat >>confdefs.h <<\_ACEOF
f996902d 21483#define HAVE_AS_TLS 1
ba479fd2 21484_ACEOF
f996902d 21485
8ada417f
ZW
21486fi
21487
21488# Target-specific assembler checks.
f996902d 21489
b61ff9c8
BS
21490echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21491echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
7e9d8517
L
21492gcc_cv_ld_static_dynamic=no
21493if test $in_tree_ld = yes ; then
21494 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21495 gcc_cv_ld_static_dynamic=yes
21496 fi
21497elif test x$gcc_cv_ld != x; then
21498 # Check if linker supports -Bstatic/-Bdynamic option
21499 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21500 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21501 gcc_cv_ld_static_dynamic=yes
21502 fi
21503fi
21504if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21505
21506cat >>confdefs.h <<\_ACEOF
21507#define HAVE_LD_STATIC_DYNAMIC 1
21508_ACEOF
21509
21510fi
b61ff9c8
BS
21511echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21512echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
7e9d8517 21513
d594623a 21514if test x"$demangler_in_ld" = xyes; then
b61ff9c8
BS
21515 echo "$as_me:$LINENO: checking linker --demangle support" >&5
21516echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
d594623a
L
21517 gcc_cv_ld_demangle=no
21518 if test $in_tree_ld = yes; then
21519 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
21520 gcc_cv_ld_demangle=yes
21521 fi
21522 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21523 # Check if the GNU linker supports --demangle option
21524 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21525 gcc_cv_ld_demangle=yes
21526 fi
21527 fi
21528 if test x"$gcc_cv_ld_demangle" = xyes; then
21529
21530cat >>confdefs.h <<\_ACEOF
21531#define HAVE_LD_DEMANGLE 1
21532_ACEOF
21533
21534 fi
b61ff9c8
BS
21535 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21536echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
d594623a
L
21537fi
21538
3a37b08e
RH
21539case "$target" in
21540 # All TARGET_ABI_OSF targets.
21541 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
b61ff9c8
BS
21542 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21543echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
ba479fd2
NN
21544if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
3a37b08e 21546else
8ada417f
ZW
21547 gcc_cv_as_alpha_explicit_relocs=no
21548 if test $in_tree_gas = yes; then
21549 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21550 then gcc_cv_as_alpha_explicit_relocs=yes
ad9c4d9f 21551fi
8ada417f 21552 elif test x$gcc_cv_as != x; then
6e3f3080 21553 echo ' .set nomacro
3a37b08e
RH
21554 .text
21555 extbl $3, $2, $3 !lituse_bytoff!1
21556 ldq $2, a($29) !literal!1
21557 ldq $4, b($29) !literal!2
21558 ldq_u $3, 0($2) !lituse_base!1
21559 ldq $27, f($29) !literal!5
21560 jsr $26, ($27), f !lituse_jsr!5
21561 ldah $29, 0($26) !gpdisp!3
21562 lda $0, c($29) !gprel
21563 ldah $1, d($29) !gprelhigh
21564 lda $1, d($1) !gprellow
8ada417f 21565 lda $29, 0($29) !gpdisp!3' > conftest.s
ba479fd2
NN
21566 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568 (eval $ac_try) 2>&5
21569 ac_status=$?
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); }; }
8ada417f
ZW
21572 then
21573 gcc_cv_as_alpha_explicit_relocs=yes
21574 else
21575 echo "configure: failed program was" >&5
21576 cat conftest.s >&5
21577 fi
21578 rm -f conftest.o conftest.s
21579 fi
cafe096b 21580fi
b61ff9c8
BS
21581echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21582echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
63cf211a 21583if test $gcc_cv_as_alpha_explicit_relocs = yes; then
ba479fd2
NN
21584
21585cat >>confdefs.h <<\_ACEOF
3a37b08e 21586#define HAVE_AS_EXPLICIT_RELOCS 1
ba479fd2 21587_ACEOF
3a37b08e 21588
d006f5eb 21589fi
b61ff9c8
BS
21590 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21591echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
d006f5eb
RH
21592if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21594else
21595 gcc_cv_as_alpha_jsrdirect_relocs=no
21596 if test $in_tree_gas = yes; then
21597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21598 then gcc_cv_as_alpha_jsrdirect_relocs=yes
21599fi
21600 elif test x$gcc_cv_as != x; then
21601 echo ' .set nomacro
21602 .text
21603 ldq $27, a($29) !literal!1
21604 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21605 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; }
21611 then
21612 gcc_cv_as_alpha_jsrdirect_relocs=yes
21613 else
21614 echo "configure: failed program was" >&5
21615 cat conftest.s >&5
21616 fi
21617 rm -f conftest.o conftest.s
21618 fi
21619fi
b61ff9c8
BS
21620echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21621echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
d006f5eb
RH
21622if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21623
21624cat >>confdefs.h <<\_ACEOF
21625#define HAVE_AS_JSRDIRECT_RELOCS 1
21626_ACEOF
21627
86da66b5
HPN
21628fi
21629 ;;
21630
21631 cris-*-*)
b61ff9c8
BS
21632 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21633echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
86da66b5
HPN
21634if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21636else
21637 gcc_cv_as_cris_no_mul_bug=no
21638 if test $in_tree_gas = yes; then
21639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21640 then gcc_cv_as_cris_no_mul_bug=yes
21641fi
21642 elif test x$gcc_cv_as != x; then
21643 echo '.text' > conftest.s
21644 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }
21650 then
21651 gcc_cv_as_cris_no_mul_bug=yes
21652 else
21653 echo "configure: failed program was" >&5
21654 cat conftest.s >&5
21655 fi
21656 rm -f conftest.o conftest.s
21657 fi
21658fi
b61ff9c8
BS
21659echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21660echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
86da66b5
HPN
21661if test $gcc_cv_as_cris_no_mul_bug = yes; then
21662
21663cat >>confdefs.h <<\_ACEOF
21664#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21665_ACEOF
21666
8ada417f 21667fi
3a37b08e 21668 ;;
8ada417f 21669
1cb36a98 21670 sparc*-*-*)
b61ff9c8
BS
21671 echo "$as_me:$LINENO: checking assembler for .register" >&5
21672echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
ba479fd2
NN
21673if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
5b68c389 21675else
8ada417f
ZW
21676 gcc_cv_as_sparc_register_op=no
21677 if test x$gcc_cv_as != x; then
6e3f3080 21678 echo '.register %g2, #scratch' > conftest.s
ba479fd2
NN
21679 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21682 ac_status=$?
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; }
8ada417f
ZW
21685 then
21686 gcc_cv_as_sparc_register_op=yes
21687 else
21688 echo "configure: failed program was" >&5
21689 cat conftest.s >&5
21690 fi
21691 rm -f conftest.o conftest.s
21692 fi
cafe096b 21693fi
b61ff9c8
BS
21694echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21695echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
63cf211a 21696if test $gcc_cv_as_sparc_register_op = yes; then
ba479fd2
NN
21697
21698cat >>confdefs.h <<\_ACEOF
1cb36a98 21699#define HAVE_AS_REGISTER_PSEUDO_OP 1
ba479fd2 21700_ACEOF
1cb36a98 21701
8ada417f 21702fi
1cb36a98 21703
b61ff9c8
BS
21704 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21705echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
ba479fd2
NN
21706if test "${gcc_cv_as_sparc_relax+set}" = set; then
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
e95b1e6a 21708else
8ada417f
ZW
21709 gcc_cv_as_sparc_relax=no
21710 if test x$gcc_cv_as != x; then
6e3f3080 21711 echo '.text' > conftest.s
ba479fd2
NN
21712 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714 (eval $ac_try) 2>&5
21715 ac_status=$?
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); }; }
8ada417f
ZW
21718 then
21719 gcc_cv_as_sparc_relax=yes
21720 else
21721 echo "configure: failed program was" >&5
21722 cat conftest.s >&5
21723 fi
21724 rm -f conftest.o conftest.s
21725 fi
cafe096b 21726fi
b61ff9c8
BS
21727echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21728echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
63cf211a 21729if test $gcc_cv_as_sparc_relax = yes; then
ba479fd2
NN
21730
21731cat >>confdefs.h <<\_ACEOF
e95b1e6a 21732#define HAVE_AS_RELAX_OPTION 1
ba479fd2 21733_ACEOF
e95b1e6a 21734
8ada417f 21735fi
e95b1e6a 21736
b61ff9c8
BS
21737 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21738echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
ba479fd2
NN
21739if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
17e9e88c 21741else
8ada417f
ZW
21742 gcc_cv_as_sparc_ua_pcrel=no
21743 if test x$gcc_cv_as != x; then
6e3f3080 21744 echo '.text
8ada417f
ZW
21745foo:
21746 nop
21747.data
21748.align 4
21749.byte 0
21750.uaword %r_disp32(foo)' > conftest.s
ba479fd2
NN
21751 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21754 ac_status=$?
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; }
8ada417f
ZW
21757 then
21758 if test x$gcc_cv_ld != x \
21759 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
21760 gcc_cv_as_sparc_ua_pcrel=yes
21761 fi
21762 rm -f conftest
21763 else
21764 echo "configure: failed program was" >&5
21765 cat conftest.s >&5
21766 fi
21767 rm -f conftest.o conftest.s
21768 fi
cafe096b 21769fi
b61ff9c8
BS
21770echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21771echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
63cf211a 21772if test $gcc_cv_as_sparc_ua_pcrel = yes; then
ba479fd2
NN
21773
21774cat >>confdefs.h <<\_ACEOF
17e9e88c 21775#define HAVE_AS_SPARC_UA_PCREL 1
ba479fd2 21776_ACEOF
17e9e88c 21777
17e9e88c 21778
b61ff9c8
BS
21779 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21780echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
ba479fd2
NN
21781if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21782 echo $ECHO_N "(cached) $ECHO_C" >&6
cf7b8b0d 21783else
8ada417f
ZW
21784 gcc_cv_as_sparc_ua_pcrel_hidden=no
21785 if test x$gcc_cv_as != x; then
6e3f3080 21786 echo '.data
8ada417f
ZW
21787.align 4
21788.byte 0x31
21789.uaword %r_disp32(foo)
21790.byte 0x32, 0x33, 0x34
21791.global foo
21792.hidden foo
21793foo:
21794.skip 4' > conftest.s
ba479fd2
NN
21795 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797 (eval $ac_try) 2>&5
21798 ac_status=$?
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; }
8ada417f
ZW
21801 then
21802 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
21803 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
21804 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
21805 | grep ' 31000000 07323334' > /dev/null 2>&1; then
21806 if $gcc_cv_objdump -R conftest 2> /dev/null \
21807 | grep 'DISP32' > /dev/null 2>&1; then
21808 :
21809 else
21810 gcc_cv_as_sparc_ua_pcrel_hidden=yes
cf7b8b0d 21811 fi
8ada417f
ZW
21812 fi
21813 rm -f conftest
21814 else
21815 echo "configure: failed program was" >&5
21816 cat conftest.s >&5
21817 fi
21818 rm -f conftest.o conftest.s
21819 fi
cafe096b 21820fi
b61ff9c8
BS
21821echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21822echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
63cf211a 21823if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
ba479fd2
NN
21824
21825cat >>confdefs.h <<\_ACEOF
cf7b8b0d 21826#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
ba479fd2 21827_ACEOF
cf7b8b0d 21828
8ada417f 21829fi
ba479fd2 21830
8ada417f 21831fi # unaligned pcrel relocs
cf7b8b0d 21832
b61ff9c8
BS
21833 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21834echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
ba479fd2
NN
21835if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
5b68c389 21837else
8ada417f
ZW
21838 gcc_cv_as_sparc_offsetable_lo10=no
21839 if test x$gcc_cv_as != x; then
6e3f3080 21840 echo '.text
8ada417f
ZW
21841 or %g1, %lo(ab) + 12, %g1
21842 or %g1, %lo(ab + 12), %g1' > conftest.s
ba479fd2
NN
21843 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21846 ac_status=$?
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; }
8ada417f
ZW
21849 then
21850 if test x$gcc_cv_objdump != x \
ecb0ccbc 21851 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
8ada417f 21852 | grep ' 82106000 82106000' > /dev/null 2>&1; then
1b5c0152 21853 gcc_cv_as_sparc_offsetable_lo10=yes
8ada417f
ZW
21854 fi
21855 else
21856 echo "configure: failed program was" >&5
21857 cat conftest.s >&5
21858 fi
21859 rm -f conftest.o conftest.s
21860 fi
cafe096b 21861fi
b61ff9c8
BS
21862echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21863echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
63cf211a 21864if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
ba479fd2
NN
21865
21866cat >>confdefs.h <<\_ACEOF
1cb36a98 21867#define HAVE_AS_OFFSETABLE_LO10 1
ba479fd2 21868_ACEOF
1cb36a98 21869
8ada417f 21870fi
1cb36a98
RH
21871 ;;
21872
c307e6dd 21873 i[34567]86-*-* | x86_64-*-*)
d38bc601
BF
21874 case $target_os in
21875 cygwin* | pe | mingw32*)
21876 # Used for DWARF 2 in PE
b61ff9c8
BS
21877 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21878echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
d38bc601
BF
21879if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21881else
21882 gcc_cv_as_ix86_pe_secrel32=no
21883 if test $in_tree_gas = yes; then
21884 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21885 then gcc_cv_as_ix86_pe_secrel32=yes
21886fi
21887 elif test x$gcc_cv_as != x; then
21888 echo '.text
21889foo: nop
21890.data
21891 .secrel32 foo' > conftest.s
21892 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21895 ac_status=$?
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; }
21898 then
21899 if test x$gcc_cv_ld != x \
21900 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
21901 gcc_cv_as_ix86_pe_secrel32=yes
21902 fi
21903 rm -f conftest
21904 else
21905 echo "configure: failed program was" >&5
21906 cat conftest.s >&5
21907 fi
21908 rm -f conftest.o conftest.s
21909 fi
21910fi
b61ff9c8
BS
21911echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21912echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
d38bc601
BF
21913if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21914
21915cat >>confdefs.h <<\_ACEOF
21916#define HAVE_GAS_PE_SECREL32_RELOC 1
21917_ACEOF
21918
21919fi
21920 ;;
21921 esac
21922
b61ff9c8
BS
21923 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21924echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
ba479fd2
NN
21925if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
21927else
21928 gcc_cv_as_ix86_filds_fists=no
21929 if test $in_tree_gas = yes; then
21930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21931 then gcc_cv_as_ix86_filds_fists=yes
ad9c4d9f 21932fi
8ada417f 21933 elif test x$gcc_cv_as != x; then
6e3f3080 21934 echo 'filds mem; fists mem' > conftest.s
ba479fd2
NN
21935 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937 (eval $ac_try) 2>&5
21938 ac_status=$?
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); }; }
8ada417f
ZW
21941 then
21942 gcc_cv_as_ix86_filds_fists=yes
21943 else
21944 echo "configure: failed program was" >&5
21945 cat conftest.s >&5
981d4858 21946 fi
8ada417f
ZW
21947 rm -f conftest.o conftest.s
21948 fi
21949fi
b61ff9c8
BS
21950echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21951echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
63cf211a 21952if test $gcc_cv_as_ix86_filds_fists = yes; then
ba479fd2
NN
21953
21954cat >>confdefs.h <<\_ACEOF
8ada417f 21955#define HAVE_GAS_FILDS_FISTS 1
ba479fd2 21956_ACEOF
ad9c4d9f 21957
f6f5dff2
RO
21958fi
21959
b61ff9c8
BS
21960 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21961echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
ba479fd2
NN
21962if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
f6f5dff2
RO
21964else
21965 gcc_cv_as_ix86_cmov_sun_syntax=no
21966 if test x$gcc_cv_as != x; then
6e3f3080 21967 echo 'cmovl.l %edx, %eax' > conftest.s
ba479fd2
NN
21968 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; }
f6f5dff2
RO
21974 then
21975 gcc_cv_as_ix86_cmov_sun_syntax=yes
21976 else
21977 echo "configure: failed program was" >&5
21978 cat conftest.s >&5
21979 fi
21980 rm -f conftest.o conftest.s
21981 fi
21982fi
b61ff9c8
BS
21983echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21984echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
63cf211a 21985if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
ba479fd2
NN
21986
21987cat >>confdefs.h <<\_ACEOF
f6f5dff2 21988#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
ba479fd2 21989_ACEOF
f6f5dff2 21990
b6c03bcd
RS
21991fi
21992
b61ff9c8
BS
21993 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
21994echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
b6c03bcd
RS
21995if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
21996 echo $ECHO_N "(cached) $ECHO_C" >&6
21997else
21998 gcc_cv_as_ix86_ffreep=no
21999 if test x$gcc_cv_as != x; then
22000 echo 'ffreep %st(1)' > conftest.s
22001 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003 (eval $ac_try) 2>&5
22004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; }
22007 then
22008 gcc_cv_as_ix86_ffreep=yes
22009 else
22010 echo "configure: failed program was" >&5
22011 cat conftest.s >&5
22012 fi
22013 rm -f conftest.o conftest.s
22014 fi
22015fi
b61ff9c8
BS
22016echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22017echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
b6c03bcd
RS
22018if test $gcc_cv_as_ix86_ffreep = yes; then
22019
22020cat >>confdefs.h <<\_ACEOF
22021#define HAVE_AS_IX86_FFREEP 1
22022_ACEOF
22023
38ca3765
UB
22024fi
22025
b61ff9c8
BS
22026 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22027echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
38ca3765
UB
22028if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22030else
22031 gcc_cv_as_ix86_sahf=no
22032 if test x$gcc_cv_as != x; then
22033 echo 'sahf' > conftest.s
22034 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22036 (eval $ac_try) 2>&5
22037 ac_status=$?
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); }; }
22040 then
22041 gcc_cv_as_ix86_sahf=yes
22042 else
22043 echo "configure: failed program was" >&5
22044 cat conftest.s >&5
22045 fi
22046 rm -f conftest.o conftest.s
22047 fi
22048fi
b61ff9c8
BS
22049echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22050echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
38ca3765
UB
22051if test $gcc_cv_as_ix86_sahf = yes; then
22052
22053cat >>confdefs.h <<\_ACEOF
22054#define HAVE_AS_IX86_SAHF 1
22055_ACEOF
22056
68b92f78
RS
22057fi
22058
b61ff9c8
BS
22059 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22060echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
68b92f78
RS
22061if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22063else
22064 gcc_cv_as_ix86_diff_sect_delta=no
22065 if test x$gcc_cv_as != x; then
22066 echo '.section .rodata
22067.L1:
22068 .long .L2-.L1
22069 .long .L3-.L1
22070 .text
22071.L3: nop
22072.L2: nop' > conftest.s
22073 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22075 (eval $ac_try) 2>&5
22076 ac_status=$?
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); }; }
22079 then
22080 gcc_cv_as_ix86_diff_sect_delta=yes
22081 else
22082 echo "configure: failed program was" >&5
22083 cat conftest.s >&5
22084 fi
22085 rm -f conftest.o conftest.s
22086 fi
22087fi
b61ff9c8
BS
22088echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22089echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
68b92f78
RS
22090if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22091
22092cat >>confdefs.h <<\_ACEOF
22093#define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22094_ACEOF
22095
ad9c4d9f
NN
22096fi
22097
6f3ca281
ZW
22098 # This one is used unconditionally by i386.[ch]; it is to be defined
22099 # to 1 if the feature is present, 0 otherwise.
b61ff9c8
BS
22100 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22101echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
ba479fd2
NN
22102if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
22104else
22105 gcc_cv_as_ix86_gotoff_in_data=no
22106 if test $in_tree_gas = yes; then
22107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22108 then gcc_cv_as_ix86_gotoff_in_data=yes
22109fi
22110 elif test x$gcc_cv_as != x; then
6e3f3080 22111 echo ' .text
f88c65f7
RH
22112.L0:
22113 nop
22114 .data
8ada417f 22115 .long .L0@GOTOFF' > conftest.s
ba479fd2
NN
22116 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; }
8ada417f
ZW
22122 then
22123 gcc_cv_as_ix86_gotoff_in_data=yes
22124 else
22125 echo "configure: failed program was" >&5
22126 cat conftest.s >&5
f88c65f7 22127 fi
8ada417f
ZW
22128 rm -f conftest.o conftest.s
22129 fi
22130fi
b61ff9c8
BS
22131echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22132echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
8ada417f 22133
6f3ca281 22134
ba479fd2 22135cat >>confdefs.h <<_ACEOF
6f3ca281 22136#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
ba479fd2 22137_ACEOF
f88c65f7 22138
1cb36a98 22139 ;;
ef1ecf87
RH
22140
22141 ia64*-*-*)
b61ff9c8
BS
22142 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22143echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
ba479fd2
NN
22144if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
ef1ecf87 22146else
8ada417f
ZW
22147 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22148 if test $in_tree_gas = yes; then
22149 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22150 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
ad9c4d9f 22151fi
8ada417f 22152 elif test x$gcc_cv_as != x; then
6e3f3080 22153 echo ' .text
ef1ecf87
RH
22154 addl r15 = @ltoffx(x#), gp
22155 ;;
cfa9ee99 22156 ld8.mov r16 = [r15], x#' > conftest.s
ba479fd2
NN
22157 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159 (eval $ac_try) 2>&5
22160 ac_status=$?
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; }
8ada417f 22163 then
cfa9ee99 22164 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
8ada417f
ZW
22165 else
22166 echo "configure: failed program was" >&5
22167 cat conftest.s >&5
2c4a9cff 22168 fi
8ada417f
ZW
22169 rm -f conftest.o conftest.s
22170 fi
22171fi
b61ff9c8
BS
22172echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22173echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
63cf211a 22174if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
ba479fd2
NN
22175
22176cat >>confdefs.h <<\_ACEOF
cfa9ee99 22177#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
ba479fd2 22178_ACEOF
8ada417f 22179
cfa9ee99 22180fi
8ada417f 22181
2c4a9cff 22182 ;;
8ada417f 22183
2c4a9cff 22184 powerpc*-*-*)
8ada417f 22185 case $target in
432218ba
DE
22186 *-*-aix*) conftest_s=' .machine "pwr5"
22187 .csect .text[PR]
6b37db3c 22188 mfcr 3,128';;
8af4d362 22189 *-*-darwin*)
b61ff9c8
BS
22190 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22191echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
8af4d362
PB
22192if test "${gcc_cv_as_machine_directive+set}" = set; then
22193 echo $ECHO_N "(cached) $ECHO_C" >&6
22194else
22195 gcc_cv_as_machine_directive=no
22196 if test x$gcc_cv_as != x; then
22197 echo ' .machine ppc7400' > conftest.s
22198 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200 (eval $ac_try) 2>&5
22201 ac_status=$?
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); }; }
22204 then
22205 gcc_cv_as_machine_directive=yes
22206 else
22207 echo "configure: failed program was" >&5
22208 cat conftest.s >&5
22209 fi
22210 rm -f conftest.o conftest.s
22211 fi
22212fi
b61ff9c8
BS
22213echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22214echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
8af4d362
PB
22215
22216 if test x$gcc_cv_as_machine_directive != xyes; then
22217 echo "*** This target requires an assembler supporting \".machine\"" >&2
22218 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22219 test x$build = x$target && exit 1
22220 fi
22221 conftest_s=' .text
6b37db3c 22222 mfcr r3,128';;
4c67db14 22223 *) conftest_s=' .machine power4
d2ab3e37 22224 .text
6b37db3c 22225 mfcr 3,128';;
8ada417f 22226 esac
8ada417f 22227
b61ff9c8
BS
22228 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22229echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
ba479fd2
NN
22230if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
2c4a9cff 22232else
8ada417f
ZW
22233 gcc_cv_as_powerpc_mfcrf=no
22234 if test $in_tree_gas = yes; then
22235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22236 then gcc_cv_as_powerpc_mfcrf=yes
2c4a9cff 22237fi
8ada417f 22238 elif test x$gcc_cv_as != x; then
6e3f3080 22239 echo "$conftest_s" > conftest.s
ba479fd2
NN
22240 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242 (eval $ac_try) 2>&5
22243 ac_status=$?
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); }; }
8ada417f
ZW
22246 then
22247 gcc_cv_as_powerpc_mfcrf=yes
22248 else
22249 echo "configure: failed program was" >&5
22250 cat conftest.s >&5
22251 fi
22252 rm -f conftest.o conftest.s
22253 fi
2c4a9cff 22254fi
b61ff9c8
BS
22255echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22256echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
63cf211a 22257if test $gcc_cv_as_powerpc_mfcrf = yes; then
ba479fd2
NN
22258
22259cat >>confdefs.h <<\_ACEOF
2c4a9cff 22260#define HAVE_AS_MFCRF 1
ba479fd2 22261_ACEOF
ef1ecf87 22262
8ada417f 22263fi
432218ba
DE
22264
22265 case $target in
22266 *-*-aix*) conftest_s=' .machine "pwr5"
22267 .csect .text[PR]
22268 popcntb 3,3';;
22269 *) conftest_s=' .machine power5
22270 .text
22271 popcntb 3,3';;
22272 esac
22273
b61ff9c8
BS
22274 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22275echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
432218ba
DE
22276if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22277 echo $ECHO_N "(cached) $ECHO_C" >&6
22278else
22279 gcc_cv_as_powerpc_popcntb=no
22280 if test $in_tree_gas = yes; then
22281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22282 then gcc_cv_as_powerpc_popcntb=yes
22283fi
22284 elif test x$gcc_cv_as != x; then
22285 echo "$conftest_s" > conftest.s
22286 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288 (eval $ac_try) 2>&5
22289 ac_status=$?
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; }
22292 then
22293 gcc_cv_as_powerpc_popcntb=yes
22294 else
22295 echo "configure: failed program was" >&5
22296 cat conftest.s >&5
22297 fi
22298 rm -f conftest.o conftest.s
22299 fi
22300fi
b61ff9c8
BS
22301echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22302echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
432218ba
DE
22303if test $gcc_cv_as_powerpc_popcntb = yes; then
22304
22305cat >>confdefs.h <<\_ACEOF
22306#define HAVE_AS_POPCNTB 1
22307_ACEOF
22308
9719f3b7
DE
22309fi
22310
22311 case $target in
22312 *-*-aix*) conftest_s=' .machine "pwr5x"
22313 .csect .text[PR]
22314 frin 1,1';;
1e04bfdc 22315 *) conftest_s=' .machine power5
9719f3b7
DE
22316 .text
22317 frin 1,1';;
22318 esac
22319
b61ff9c8
BS
22320 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22321echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
9719f3b7
DE
22322if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22324else
22325 gcc_cv_as_powerpc_fprnd=no
22326 if test $in_tree_gas = yes; then
22327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22328 then gcc_cv_as_powerpc_fprnd=yes
22329fi
22330 elif test x$gcc_cv_as != x; then
22331 echo "$conftest_s" > conftest.s
22332 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22334 (eval $ac_try) 2>&5
22335 ac_status=$?
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); }; }
22338 then
22339 gcc_cv_as_powerpc_fprnd=yes
22340 else
22341 echo "configure: failed program was" >&5
22342 cat conftest.s >&5
22343 fi
22344 rm -f conftest.o conftest.s
22345 fi
22346fi
b61ff9c8
BS
22347echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22348echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
9719f3b7
DE
22349if test $gcc_cv_as_powerpc_fprnd = yes; then
22350
22351cat >>confdefs.h <<\_ACEOF
22352#define HAVE_AS_FPRND 1
22353_ACEOF
22354
44cd321e
PS
22355fi
22356
22357 case $target in
22358 *-*-aix*) conftest_s=' .machine "pwr6"
22359 .csect .text[PR]
22360 mffgpr 1,3';;
22361 *) conftest_s=' .machine power6
22362 .text
22363 mffgpr 1,3';;
22364 esac
22365
b61ff9c8
BS
22366 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22367echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
44cd321e
PS
22368if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22369 echo $ECHO_N "(cached) $ECHO_C" >&6
22370else
22371 gcc_cv_as_powerpc_mfpgpr=no
22372 if test $in_tree_gas = yes; then
22373 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22374 then gcc_cv_as_powerpc_mfpgpr=yes
22375fi
22376 elif test x$gcc_cv_as != x; then
22377 echo "$conftest_s" > conftest.s
22378 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380 (eval $ac_try) 2>&5
22381 ac_status=$?
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); }; }
22384 then
22385 gcc_cv_as_powerpc_mfpgpr=yes
22386 else
22387 echo "configure: failed program was" >&5
22388 cat conftest.s >&5
22389 fi
22390 rm -f conftest.o conftest.s
22391 fi
22392fi
b61ff9c8
BS
22393echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22394echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
44cd321e
PS
22395if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22396
22397cat >>confdefs.h <<\_ACEOF
22398#define HAVE_AS_MFPGPR 1
22399_ACEOF
22400
432218ba
DE
22401fi
22402
7f970b70
AM
22403 case $target in
22404 *-*-aix*) conftest_s=' .csect .text[PR]
22405LCF..0:
22406 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22407 *-*-darwin*)
22408 conftest_s=' .text
22409LCF0:
22410 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22411 *) conftest_s=' .text
22412.LCF0:
22413 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22414 esac
22415
b61ff9c8
BS
22416 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22417echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
695d8830
AS
22418if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22420else
22421 gcc_cv_as_powerpc_rel16=no
22422 if test $in_tree_gas = yes; then
22423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22424 then gcc_cv_as_powerpc_rel16=yes
22425fi
22426 elif test x$gcc_cv_as != x; then
22427 echo "$conftest_s" > conftest.s
22428 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430 (eval $ac_try) 2>&5
22431 ac_status=$?
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; }
22434 then
22435 gcc_cv_as_powerpc_rel16=yes
22436 else
22437 echo "configure: failed program was" >&5
22438 cat conftest.s >&5
22439 fi
22440 rm -f conftest.o conftest.s
22441 fi
22442fi
b61ff9c8
BS
22443echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22444echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
695d8830
AS
22445if test $gcc_cv_as_powerpc_rel16 = yes; then
22446
22447cat >>confdefs.h <<\_ACEOF
22448#define HAVE_AS_REL16 1
22449_ACEOF
22450
22451fi
22452
b639c3c2
JJ
22453 case $target in
22454 *-*-aix*) conftest_s=' .machine "pwr6"
22455 .csect .text[PR]
22456 cmpb 3,4,5';;
22457 *) conftest_s=' .machine power6
22458 .text
22459 cmpb 3,4,5';;
22460 esac
22461
b61ff9c8
BS
22462 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22463echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
b639c3c2
JJ
22464if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22466else
22467 gcc_cv_as_powerpc_cmpb=no
22468 if test $in_tree_gas = yes; then
22469 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22470 then gcc_cv_as_powerpc_cmpb=yes
22471fi
22472 elif test x$gcc_cv_as != x; then
22473 echo "$conftest_s" > conftest.s
22474 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22477 ac_status=$?
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; }
22480 then
22481 gcc_cv_as_powerpc_cmpb=yes
22482 else
22483 echo "configure: failed program was" >&5
22484 cat conftest.s >&5
22485 fi
22486 rm -f conftest.o conftest.s
22487 fi
22488fi
b61ff9c8
BS
22489echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22490echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
b639c3c2
JJ
22491if test $gcc_cv_as_powerpc_cmpb = yes; then
22492
22493cat >>confdefs.h <<\_ACEOF
22494#define HAVE_AS_CMPB 1
22495_ACEOF
22496
22497fi
22498
22499 case $target in
22500 *-*-aix*) conftest_s=' .machine "pwr6"
22501 .csect .text[PR]
0d74c0ee 22502 dadd 1,2,3';;
b639c3c2
JJ
22503 *) conftest_s=' .machine power6
22504 .text
0d74c0ee 22505 dadd 1,2,3';;
b639c3c2
JJ
22506 esac
22507
b61ff9c8
BS
22508 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22509echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
b639c3c2
JJ
22510if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22512else
22513 gcc_cv_as_powerpc_dfp=no
22514 if test $in_tree_gas = yes; then
22515 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22516 then gcc_cv_as_powerpc_dfp=yes
22517fi
22518 elif test x$gcc_cv_as != x; then
22519 echo "$conftest_s" > conftest.s
22520 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 (eval $ac_try) 2>&5
22523 ac_status=$?
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }
22526 then
22527 gcc_cv_as_powerpc_dfp=yes
22528 else
22529 echo "configure: failed program was" >&5
22530 cat conftest.s >&5
22531 fi
22532 rm -f conftest.o conftest.s
22533 fi
22534fi
b61ff9c8
BS
22535echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22536echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
b639c3c2
JJ
22537if test $gcc_cv_as_powerpc_dfp = yes; then
22538
22539cat >>confdefs.h <<\_ACEOF
22540#define HAVE_AS_DFP 1
22541_ACEOF
22542
e51917ae
JM
22543fi
22544
b61ff9c8
BS
22545 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22546echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
e51917ae
JM
22547if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22548 echo $ECHO_N "(cached) $ECHO_C" >&6
22549else
22550 gcc_cv_as_powerpc_gnu_attribute=no
22551 if test $in_tree_gas = yes; then
22552 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22553 then gcc_cv_as_powerpc_gnu_attribute=yes
22554fi
22555 elif test x$gcc_cv_as != x; then
22556 echo '.gnu_attribute 4,1' > conftest.s
22557 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559 (eval $ac_try) 2>&5
22560 ac_status=$?
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; }
22563 then
22564 gcc_cv_as_powerpc_gnu_attribute=yes
22565 else
22566 echo "configure: failed program was" >&5
22567 cat conftest.s >&5
22568 fi
22569 rm -f conftest.o conftest.s
22570 fi
22571fi
b61ff9c8
BS
22572echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22573echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
e51917ae
JM
22574if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22575
22576cat >>confdefs.h <<\_ACEOF
22577#define HAVE_AS_GNU_ATTRIBUTE 1
22578_ACEOF
22579
7f970b70 22580fi
8ada417f
ZW
22581 ;;
22582
22583 mips*-*-*)
b61ff9c8
BS
22584 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22585echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
ba479fd2
NN
22586if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22587 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
22588else
22589 gcc_cv_as_mips_explicit_relocs=no
22590 if test $in_tree_gas = yes; then
22591 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22592 then gcc_cv_as_mips_explicit_relocs=yes
22593fi
22594 elif test x$gcc_cv_as != x; then
6e3f3080 22595 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
ba479fd2
NN
22596 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598 (eval $ac_try) 2>&5
22599 ac_status=$?
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); }; }
8ada417f
ZW
22602 then
22603 gcc_cv_as_mips_explicit_relocs=yes
22604 else
22605 echo "configure: failed program was" >&5
22606 cat conftest.s >&5
ef1ecf87 22607 fi
8ada417f
ZW
22608 rm -f conftest.o conftest.s
22609 fi
22610fi
b61ff9c8
BS
22611echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22612echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
8ada417f
ZW
22613if test $gcc_cv_as_mips_explicit_relocs = yes; then
22614 if test x$target_cpu_default = x
22615 then target_cpu_default=MASK_EXPLICIT_RELOCS
22616 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22617 fi
4551169f 22618fi
b61ff9c8
BS
22619 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22620echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
4551169f
RS
22621if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22622 echo $ECHO_N "(cached) $ECHO_C" >&6
22623else
22624 gcc_cv_as_mips_no_shared=no
22625 if test $in_tree_gas = yes; then
22626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22627 then gcc_cv_as_mips_no_shared=yes
22628fi
22629 elif test x$gcc_cv_as != x; then
22630 echo 'nop' > conftest.s
22631 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22634 ac_status=$?
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; }
22637 then
22638 gcc_cv_as_mips_no_shared=yes
22639 else
22640 echo "configure: failed program was" >&5
22641 cat conftest.s >&5
22642 fi
22643 rm -f conftest.o conftest.s
22644 fi
22645fi
b61ff9c8
BS
22646echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22647echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
4551169f
RS
22648if test $gcc_cv_as_mips_no_shared = yes; then
22649
22650cat >>confdefs.h <<\_ACEOF
22651#define HAVE_AS_NO_SHARED 1
22652_ACEOF
22653
dcb957d9
JM
22654fi
22655
b61ff9c8
BS
22656 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22657echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
dcb957d9
JM
22658if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22660else
22661 gcc_cv_as_mips_gnu_attribute=no
22662 if test $in_tree_gas = yes; then
22663 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22664 then gcc_cv_as_mips_gnu_attribute=yes
22665fi
22666 elif test x$gcc_cv_as != x; then
22667 echo '.gnu_attribute 4,1' > conftest.s
22668 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22670 (eval $ac_try) 2>&5
22671 ac_status=$?
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); }; }
22674 then
22675 gcc_cv_as_mips_gnu_attribute=yes
22676 else
22677 echo "configure: failed program was" >&5
22678 cat conftest.s >&5
22679 fi
22680 rm -f conftest.o conftest.s
22681 fi
22682fi
b61ff9c8
BS
22683echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22684echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
dcb957d9
JM
22685if test $gcc_cv_as_mips_gnu_attribute = yes; then
22686
22687cat >>confdefs.h <<\_ACEOF
22688#define HAVE_AS_GNU_ATTRIBUTE 1
22689_ACEOF
22690
a44380d2
JM
22691fi
22692
b61ff9c8
BS
22693 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22694echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
a44380d2
JM
22695if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22696 echo $ECHO_N "(cached) $ECHO_C" >&6
22697else
22698 gcc_cv_as_mips_dtprelword=no
22699 if test $in_tree_gas = yes; then
22700 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22701 then gcc_cv_as_mips_dtprelword=yes
22702fi
22703 elif test x$gcc_cv_as != x; then
22704 echo '.section .tdata,"awT",@progbits
22705x:
22706 .word 2
22707 .text
22708 .dtprelword x+0x8000' > conftest.s
22709 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711 (eval $ac_try) 2>&5
22712 ac_status=$?
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); }; }
22715 then
22716 gcc_cv_as_mips_dtprelword=yes
22717 else
22718 echo "configure: failed program was" >&5
22719 cat conftest.s >&5
22720 fi
22721 rm -f conftest.o conftest.s
22722 fi
22723fi
b61ff9c8
BS
22724echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22725echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
a44380d2
JM
22726if test $gcc_cv_as_mips_dtprelword = yes; then
22727
22728cat >>confdefs.h <<\_ACEOF
22729#define HAVE_AS_DTPRELWORD 1
22730_ACEOF
22731
8ada417f 22732fi
dbad5e72
SE
22733 ;;
22734esac
8ada417f 22735
dbad5e72
SE
22736# Mips and HP-UX need the GNU assembler.
22737# Linux on IA64 might be able to use the Intel assembler.
22738
22739case "$target" in
22740 mips*-*-* | *-*-hpux* )
82563d35
RS
22741 if test x$gas_flag = xyes \
22742 || test x"$host" != x"$build" \
22743 || test ! -x "$gcc_cv_as" \
22744 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
22745 :
22746 else
22747 echo "*** This configuration requires the GNU assembler" >&2
22748 exit 1
22749 fi
ef1ecf87 22750 ;;
1cb36a98 22751esac
dbad5e72 22752
9d147085
RH
22753# ??? Not all targets support dwarf2 debug_line, even within a version
22754# of gas. Moreover, we need to emit a valid instruction to trigger any
22755# info to the output file. So, as supported targets are added to gas 2.11,
22756# add some instruction here to (also) show we expect this might work.
22757# ??? Once 2.11 is released, probably need to add first known working
22758# version to the per-target configury.
22759case "$target" in
80486e06 22760 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
cd985f66 22761 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
6b7b0ba1
KH
22762 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* \
22763 | spu-*-* | fido*-*-*)
9d147085
RH
22764 insn="nop"
22765 ;;
57116d8d 22766 ia64*-*-* | s390*-*-*)
9d147085
RH
22767 insn="nop 0"
22768 ;;
2853bc5a
HPN
22769 mmix-*-*)
22770 insn="swym 0"
22771 ;;
8ada417f
ZW
22772esac
22773if test x"$insn" != x; then
22774 conftest_s="\
22775 .file 1 \"conftest.s\"
22776 .loc 1 3 0
22777 $insn"
b61ff9c8
BS
22778 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22779echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
ba479fd2
NN
22780if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22781 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
22782else
22783 gcc_cv_as_dwarf2_debug_line=no
22784 if test $in_tree_gas = yes; then
22785 if test $in_tree_gas_is_elf = yes \
22786 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22787 then gcc_cv_as_dwarf2_debug_line=yes
22788fi
22789 elif test x$gcc_cv_as != x; then
6e3f3080 22790 echo "$conftest_s" > conftest.s
ba479fd2
NN
22791 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793 (eval $ac_try) 2>&5
22794 ac_status=$?
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); }; }
8ada417f 22797 then
080a5bb0
EB
22798 if test x$gcc_cv_objdump != x \
22799 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
22800 | grep debug_line > /dev/null 2>&1; then
8ada417f
ZW
22801 gcc_cv_as_dwarf2_debug_line=yes
22802 fi
22803 else
22804 echo "configure: failed program was" >&5
22805 cat conftest.s >&5
22806 fi
22807 rm -f conftest.o conftest.s
22808 fi
22809fi
b61ff9c8
BS
22810echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22811echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
ad9c4d9f 22812
ad9c4d9f 22813
8ada417f
ZW
22814# The .debug_line file table must be in the exact order that
22815# we specified the files, since these indices are also used
22816# by DW_AT_decl_file. Approximate this test by testing if
22817# the assembler bitches if the same index is assigned twice.
b61ff9c8
BS
22818 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22819echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
ba479fd2
NN
22820if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
22822else
22823 gcc_cv_as_dwarf2_file_buggy=no
22824 if test x$gcc_cv_as != x; then
6e3f3080 22825 echo ' .file 1 "foo.s"
8ada417f 22826 .file 1 "bar.s"' > conftest.s
ba479fd2
NN
22827 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22829 (eval $ac_try) 2>&5
22830 ac_status=$?
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); }; }
8ada417f
ZW
22833 then
22834 gcc_cv_as_dwarf2_file_buggy=yes
22835 else
22836 echo "configure: failed program was" >&5
22837 cat conftest.s >&5
22838 fi
22839 rm -f conftest.o conftest.s
22840 fi
ad9c4d9f 22841fi
b61ff9c8
BS
22842echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22843echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
8ada417f
ZW
22844
22845
22846 if test $gcc_cv_as_dwarf2_debug_line = yes \
22847 && test $gcc_cv_as_dwarf2_file_buggy = no; then
ba479fd2
NN
22848
22849cat >>confdefs.h <<\_ACEOF
9d147085 22850#define HAVE_AS_DWARF2_DEBUG_LINE 1
ba479fd2 22851_ACEOF
9d147085 22852
8ada417f 22853 fi
ad9c4d9f 22854
b61ff9c8
BS
22855 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22856echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
ba479fd2
NN
22857if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22858 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
22859else
22860 gcc_cv_as_gdwarf2_flag=no
22861 if test $in_tree_gas = yes; then
22862 if test $in_tree_gas_is_elf = yes \
22863 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22864 then gcc_cv_as_gdwarf2_flag=yes
22865fi
22866 elif test x$gcc_cv_as != x; then
6e3f3080 22867 echo "$insn" > conftest.s
ba479fd2
NN
22868 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870 (eval $ac_try) 2>&5
22871 ac_status=$?
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); }; }
8ada417f
ZW
22874 then
22875 gcc_cv_as_gdwarf2_flag=yes
22876 else
22877 echo "configure: failed program was" >&5
22878 cat conftest.s >&5
22879 fi
22880 rm -f conftest.o conftest.s
22881 fi
ad9c4d9f 22882fi
b61ff9c8
BS
22883echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22884echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
63cf211a 22885if test $gcc_cv_as_gdwarf2_flag = yes; then
ba479fd2
NN
22886
22887cat >>confdefs.h <<\_ACEOF
5f0e9ea2 22888#define HAVE_AS_GDWARF2_DEBUG_FLAG 1
ba479fd2 22889_ACEOF
5f0e9ea2
GK
22890
22891fi
ad9c4d9f 22892
b61ff9c8
BS
22893 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22894echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
ba479fd2
NN
22895if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
8ada417f
ZW
22897else
22898 gcc_cv_as_gstabs_flag=no
22899 if test $in_tree_gas = yes; then
22900 if test $in_tree_gas_is_elf = yes \
22901 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22902 then gcc_cv_as_gstabs_flag=yes
22903fi
22904 elif test x$gcc_cv_as != x; then
6e3f3080 22905 echo "$insn" > conftest.s
ba479fd2
NN
22906 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22909 ac_status=$?
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; }
8ada417f
ZW
22912 then
22913 # The native Solaris 9/Intel assembler doesn't understand --gstabs
22914 # and warns about it, but still exits successfully. So check for
22915 # this.
ba479fd2
NN
22916 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22918 (eval $ac_try) 2>&5
22919 ac_status=$?
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); }; }
8ada417f
ZW
22922 then :
22923 else gcc_cv_as_gstabs_flag=yes
22924 fi
22925 else
22926 echo "configure: failed program was" >&5
22927 cat conftest.s >&5
22928 fi
22929 rm -f conftest.o conftest.s
22930 fi
ad9c4d9f 22931fi
b61ff9c8
BS
22932echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22933echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
63cf211a 22934if test $gcc_cv_as_gstabs_flag = yes; then
ba479fd2
NN
22935
22936cat >>confdefs.h <<\_ACEOF
5f0e9ea2 22937#define HAVE_AS_GSTABS_DEBUG_FLAG 1
ba479fd2 22938_ACEOF
5f0e9ea2 22939
c8aea42c
PB
22940fi
22941
b61ff9c8
BS
22942 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22943echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
c8aea42c
PB
22944if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22945 echo $ECHO_N "(cached) $ECHO_C" >&6
22946else
22947 gcc_cv_as_debug_prefix_map_flag=no
22948 if test $in_tree_gas = yes; then
303a4698 22949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
c8aea42c
PB
22950 then gcc_cv_as_debug_prefix_map_flag=yes
22951fi
22952 elif test x$gcc_cv_as != x; then
22953 echo "$insn" > conftest.s
22954 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22957 ac_status=$?
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; }
22960 then
22961 gcc_cv_as_debug_prefix_map_flag=yes
22962 else
22963 echo "configure: failed program was" >&5
22964 cat conftest.s >&5
22965 fi
22966 rm -f conftest.o conftest.s
22967 fi
22968fi
b61ff9c8
BS
22969echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22970echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
c8aea42c
PB
22971if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22972
22973cat >>confdefs.h <<\_ACEOF
22974#define HAVE_AS_DEBUG_PREFIX_MAP 1
22975_ACEOF
22976
5f0e9ea2 22977fi
8ada417f 22978fi
5f0e9ea2 22979
b61ff9c8
BS
22980echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22981echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
03943c05
AO
22982if test "${gcc_cv_as_line_zero+set}" = set; then
22983 echo $ECHO_N "(cached) $ECHO_C" >&6
22984else
22985 gcc_cv_as_line_zero=no
22986 if test $in_tree_gas = yes; then
cf0eb7a1
AO
22987 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22988 then gcc_cv_as_line_zero=yes
03943c05
AO
22989fi
22990 elif test "x$gcc_cv_as" != x; then
22991 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22992 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22994 (eval $ac_try) 2>&5
22995 ac_status=$?
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); }; } &&
22998 test "x`cat conftest.out`" = x
22999 then
23000 gcc_cv_as_line_zero=yes
23001 else
23002 echo "configure: failed program was" >&5
23003 cat conftest.s >&5
23004 echo "configure: error output was" >&5
23005 cat conftest.out >&5
23006 fi
23007 rm -f conftest.o conftest.s conftest.out
23008 fi
23009fi
b61ff9c8
BS
23010echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23011echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
03943c05
AO
23012if test "x$gcc_cv_as_line_zero" = xyes; then
23013
23014cat >>confdefs.h <<\_ACEOF
23015#define HAVE_AS_LINE_ZERO 1
23016_ACEOF
23017
23018fi
23019
b61ff9c8
BS
23020echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
23021echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
96d0f4dc 23022gcc_cv_ld_ro_rw_mix=unknown
34a86c2b 23023if test $in_tree_ld = yes ; then
5408ac6c
HPN
23024 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
23025 && test $in_tree_ld_is_elf = yes; then
96d0f4dc
JJ
23026 gcc_cv_ld_ro_rw_mix=read-write
23027 fi
23028elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
90e145da
KC
23029 echo '.section myfoosect, "a"' > conftest1.s
23030 echo '.section myfoosect, "aw"' > conftest2.s
96d0f4dc 23031 echo '.byte 1' >> conftest2.s
90e145da 23032 echo '.section myfoosect, "a"' > conftest3.s
96d0f4dc 23033 echo '.byte 0' >> conftest3.s
6cd656d0
KC
23034 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23035 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23036 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
96d0f4dc 23037 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
c6cc7e13 23038 conftest2.o conftest3.o > /dev/null 2>&1; then
96d0f4dc 23039 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
c6cc7e13 23040 | sed -e '/myfoosect/!d' -e N`
96d0f4dc
JJ
23041 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23042 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23043 gcc_cv_ld_ro_rw_mix=read-only
23044 else
23045 gcc_cv_ld_ro_rw_mix=read-write
23046 fi
23047 fi
23048 fi
23049 rm -f conftest.* conftest[123].*
23050fi
23051if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
ba479fd2
NN
23052
23053cat >>confdefs.h <<\_ACEOF
96d0f4dc 23054#define HAVE_LD_RO_RW_SECTION_MIXING 1
ba479fd2 23055_ACEOF
96d0f4dc
JJ
23056
23057fi
b61ff9c8
BS
23058echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
23059echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
96d0f4dc 23060
b61ff9c8
BS
23061echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23062echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
275b60d6 23063gcc_cv_ld_eh_frame_hdr=no
34a86c2b 23064if test $in_tree_ld = yes ; then
5408ac6c
HPN
23065 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
23066 && test $in_tree_ld_is_elf = yes; then
275b60d6
JJ
23067 gcc_cv_ld_eh_frame_hdr=yes
23068 fi
23069elif test x$gcc_cv_ld != x; then
23070 # Check if linker supports --eh-frame-hdr option
23071 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23072 gcc_cv_ld_eh_frame_hdr=yes
23073 fi
23074fi
232b67d9 23075
275b60d6 23076if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
ba479fd2
NN
23077
23078cat >>confdefs.h <<\_ACEOF
275b60d6 23079#define HAVE_LD_EH_FRAME_HDR 1
ba479fd2 23080_ACEOF
275b60d6
JJ
23081
23082fi
b61ff9c8
BS
23083echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23084echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
275b60d6 23085
b61ff9c8
BS
23086echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23087echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
24a4dd31
JJ
23088gcc_cv_ld_pie=no
23089if test $in_tree_ld = yes ; then
5408ac6c
HPN
23090 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
23091 && test $in_tree_ld_is_elf = yes; then
24a4dd31
JJ
23092 gcc_cv_ld_pie=yes
23093 fi
23094elif test x$gcc_cv_ld != x; then
23095 # Check if linker supports -pie option
23096 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23097 gcc_cv_ld_pie=yes
23098 fi
23099fi
23100if test x"$gcc_cv_ld_pie" = xyes; then
ba479fd2
NN
23101
23102cat >>confdefs.h <<\_ACEOF
24a4dd31 23103#define HAVE_LD_PIE 1
ba479fd2 23104_ACEOF
24a4dd31
JJ
23105
23106fi
b61ff9c8
BS
23107echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23108echo "${ECHO_T}$gcc_cv_ld_pie" >&6
24a4dd31 23109
b61ff9c8
BS
23110echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23111echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
22ba88ef 23112gcc_cv_ld_eh_gc_sections=no
b639c3c2
JJ
23113if test $in_tree_ld = yes ; then
23114 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
23115 && test $in_tree_ld_is_elf = yes; then
23116 gcc_cv_ld_eh_gc_sections=yes
23117 fi
23118elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23119 cat > conftest.s <<EOF
23120 .section .text
23121.globl _start
23122 .type _start, @function
23123_start:
23124 .long foo
23125 .size _start, .-_start
23126 .section .text.foo,"ax",@progbits
23127 .type foo, @function
23128foo:
23129 .long 0
23130 .size foo, .-foo
23131 .section .gcc_except_table.foo,"a",@progbits
23132.L0:
23133 .long 0
23134 .section .eh_frame,"a",@progbits
23135 .long .L0
23136EOF
23137 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23138 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23139 | grep "gc-sections option ignored" > /dev/null; then
23140 gcc_cv_ld_eh_gc_sections=no
23141 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23142 gcc_cv_ld_eh_gc_sections=yes
23143 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23144 if test x$gcc_cv_as_comdat_group != xyes; then
23145 gcc_cv_ld_eh_gc_sections=no
23146 cat > conftest.s <<EOF
23147 .section .text
23148.globl _start
23149 .type _start, @function
23150_start:
23151 .long foo
23152 .size _start, .-_start
23153 .section .gnu.linkonce.t.foo,"ax",@progbits
23154 .type foo, @function
23155foo:
23156 .long 0
23157 .size foo, .-foo
23158 .section .gcc_except_table.foo,"a",@progbits
23159.L0:
23160 .long 0
23161 .section .eh_frame,"a",@progbits
23162 .long .L0
23163EOF
23164 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23165 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23166 | grep "gc-sections option ignored" > /dev/null; then
23167 gcc_cv_ld_eh_gc_sections=no
23168 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23169 gcc_cv_ld_eh_gc_sections=yes
23170 fi
23171 fi
23172 fi
23173 fi
23174 fi
23175 rm -f conftest.s conftest.o conftest
23176fi
e9d207d9
EB
23177case "$target" in
23178 hppa*-*-linux*)
23179 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23180 gcc_cv_ld_eh_gc_sections=no
23181 ;;
23182esac
22ba88ef
EB
23183if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23184
23185cat >>confdefs.h <<\_ACEOF
23186#define HAVE_LD_EH_GC_SECTIONS 1
23187_ACEOF
23188
23189fi
b61ff9c8
BS
23190echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23191echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
22ba88ef 23192
8bb915b6
NN
23193# --------
23194# UNSORTED
23195# --------
23196
b61ff9c8
BS
23197echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23198echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
82e923f6
RS
23199if test "${gcc_cv_ld_as_needed+set}" = set; then
23200 echo $ECHO_N "(cached) $ECHO_C" >&6
23201else
23202 gcc_cv_ld_as_needed=no
765f1bf9
AM
23203if test $in_tree_ld = yes ; then
23204 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
23205 && test $in_tree_ld_is_elf = yes; then
23206 gcc_cv_ld_as_needed=yes
23207 fi
23208elif test x$gcc_cv_ld != x; then
23209 # Check if linker supports --as-needed and --no-as-needed options
23210 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23211 gcc_cv_ld_as_needed=yes
23212 fi
23213fi
82e923f6
RS
23214
23215fi
b61ff9c8
BS
23216echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23217echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
765f1bf9
AM
23218if test x"$gcc_cv_ld_as_needed" = xyes; then
23219
23220cat >>confdefs.h <<\_ACEOF
23221#define HAVE_LD_AS_NEEDED 1
23222_ACEOF
23223
23224fi
765f1bf9 23225
d82bf747
AM
23226case "$target:$tm_file" in
23227 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
b61ff9c8
BS
23228 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
23229echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
85b776df
AM
23230if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
23231 echo $ECHO_N "(cached) $ECHO_C" >&6
23232else
23233 gcc_cv_ld_no_dot_syms=no
23234 if test $in_tree_ld = yes ; then
23235 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
23236 gcc_cv_ld_no_dot_syms=yes
23237 fi
23238 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
23239 cat > conftest1.s <<EOF
23240 .text
23241 bl .foo
23242EOF
23243 cat > conftest2.s <<EOF
23244 .section ".opd","aw"
23245 .align 3
23246 .globl foo
23247 .type foo,@function
23248foo:
23249 .quad .LEfoo,.TOC.@tocbase,0
23250 .text
23251.LEfoo:
23252 blr
23253 .size foo,.-.LEfoo
23254EOF
23255 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
23256 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
23257 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
23258 gcc_cv_ld_no_dot_syms=yes
23259 fi
23260 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23261 fi
23262
23263fi
b61ff9c8
BS
23264echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
23265echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
85b776df
AM
23266 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
23267
23268cat >>confdefs.h <<\_ACEOF
23269#define HAVE_LD_NO_DOT_SYMS 1
23270_ACEOF
23271
23272 fi
23273 ;;
23274esac
23275
b61ff9c8
BS
23276echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23277echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
380e5ca4
MM
23278if test "${gcc_cv_ld_sysroot+set}" = set; then
23279 echo $ECHO_N "(cached) $ECHO_C" >&6
23280else
23281 gcc_cv_ld_sysroot=no
23282 if test $in_tree_ld = yes ; then
23283 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
7032df40 23284 gcc_cv_ld_sysroot=yes
380e5ca4
MM
23285 fi
23286 elif test x$gcc_cv_ld != x; then
23287 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23288 gcc_cv_ld_sysroot=yes
23289 fi
23290 fi
23291fi
b61ff9c8
BS
23292echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23293echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
380e5ca4
MM
23294if test x"$gcc_cv_ld_sysroot" = xyes; then
23295
23296cat >>confdefs.h <<\_ACEOF
23297#define HAVE_LD_SYSROOT 1
23298_ACEOF
23299
23300fi
23301
9fb28a67 23302if test x$with_sysroot = x && test x$host = x$target \
c794c06f
CD
23303 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23304 && test "$prefix" != "NONE"; then
ba479fd2
NN
23305
23306cat >>confdefs.h <<_ACEOF
793e9558 23307#define PREFIX_INCLUDE_DIR "$prefix/include"
ba479fd2 23308_ACEOF
793e9558
PB
23309
23310fi
23311
77008252 23312# Test for stack protector support in target C library.
b61ff9c8
BS
23313echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23314echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
77008252
JJ
23315if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23316 echo $ECHO_N "(cached) $ECHO_C" >&6
23317else
23318 gcc_cv_libc_provides_ssp=no
a6ccdbab
EC
23319 case "$target" in
23320 *-*-linux*)
77008252
JJ
23321 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23322 if test "x$with_sysroot" = x; then
23323 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
c9ecbf86
JM
23324 elif test "x$with_build_sysroot" != "x"; then
23325 glibc_header_dir="${with_build_sysroot}/usr/include"
77008252
JJ
23326 elif test "x$with_sysroot" = xyes; then
23327 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23328 else
23329 glibc_header_dir="${with_sysroot}/usr/include"
23330 fi
23331 else
23332 glibc_header_dir=/usr/include
23333 fi
23334 # glibc 2.4 and later provides __stack_chk_fail and
23335 # either __stack_chk_guard, or TLS access to stack guard canary.
23336 if test -f $glibc_header_dir/features.h \
23337 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23338 $glibc_header_dir/features.h > /dev/null; then
23339 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23340 $glibc_header_dir/features.h > /dev/null; then
23341 gcc_cv_libc_provides_ssp=yes
23342 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23343 $glibc_header_dir/features.h > /dev/null \
23344 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23345 $glibc_header_dir/features.h > /dev/null; then
23346 gcc_cv_libc_provides_ssp=yes
fed6d628
BF
23347 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23348 $glibc_header_dir/features.h > /dev/null && \
23349 test -f $glibc_header_dir/bits/uClibc_config.h && \
23350 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23351 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23352 gcc_cv_libc_provides_ssp=yes
77008252 23353 fi
fed6d628 23354 fi
a6ccdbab
EC
23355 ;;
23356 *-*-darwin*)
b61ff9c8
BS
23357 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23358echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
a6ccdbab
EC
23359if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23360 echo $ECHO_N "(cached) $ECHO_C" >&6
23361else
23362 cat >conftest.$ac_ext <<_ACEOF
23363/* confdefs.h. */
23364_ACEOF
23365cat confdefs.h >>conftest.$ac_ext
23366cat >>conftest.$ac_ext <<_ACEOF
23367/* end confdefs.h. */
23368/* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23370#define __stack_chk_fail innocuous___stack_chk_fail
23371
23372/* System header to define __stub macros and hopefully few prototypes,
23373 which can conflict with char __stack_chk_fail (); below.
23374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23375 <limits.h> exists even on freestanding compilers. */
23376
23377#ifdef __STDC__
23378# include <limits.h>
23379#else
23380# include <assert.h>
23381#endif
23382
23383#undef __stack_chk_fail
23384
b61ff9c8 23385/* Override any gcc2 internal prototype to avoid an error. */
a6ccdbab
EC
23386#ifdef __cplusplus
23387extern "C"
b61ff9c8 23388{
a6ccdbab 23389#endif
b61ff9c8
BS
23390/* We use char because int might match the return type of a gcc2
23391 builtin and then its argument prototype would still apply. */
a6ccdbab
EC
23392char __stack_chk_fail ();
23393/* The GNU C library defines this for functions which it implements
23394 to always fail with ENOSYS. Some functions are actually named
23395 something starting with __ and the normal name is an alias. */
b61ff9c8 23396#if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
a6ccdbab 23397choke me
b61ff9c8
BS
23398#else
23399char (*f) () = __stack_chk_fail;
23400#endif
23401#ifdef __cplusplus
23402}
a6ccdbab
EC
23403#endif
23404
23405int
23406main ()
23407{
b61ff9c8 23408return f != __stack_chk_fail;
a6ccdbab
EC
23409 ;
23410 return 0;
23411}
23412_ACEOF
23413rm -f conftest.$ac_objext conftest$ac_exeext
b61ff9c8
BS
23414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23415 (eval $ac_link) 2>conftest.er1
a6ccdbab
EC
23416 ac_status=$?
23417 grep -v '^ *+' conftest.er1 >conftest.err
23418 rm -f conftest.er1
23419 cat conftest.err >&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b61ff9c8
BS
23421 (exit $ac_status); } &&
23422 { ac_try='test -z "$ac_c_werror_flag"
23423 || test ! -s conftest.err'
23424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425 (eval $ac_try) 2>&5
23426 ac_status=$?
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); }; } &&
23429 { ac_try='test -s conftest$ac_exeext'
23430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23431 (eval $ac_try) 2>&5
23432 ac_status=$?
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); }; }; then
8b1f719a
PB
23435 ac_cv_func___stack_chk_fail=yes
23436else
a6ccdbab
EC
23437 echo "$as_me: failed program was:" >&5
23438sed 's/^/| /' conftest.$ac_ext >&5
23439
b61ff9c8 23440ac_cv_func___stack_chk_fail=no
a6ccdbab 23441fi
b61ff9c8 23442rm -f conftest.err conftest.$ac_objext \
a6ccdbab
EC
23443 conftest$ac_exeext conftest.$ac_ext
23444fi
b61ff9c8
BS
23445echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23446echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
a6ccdbab
EC
23447if test $ac_cv_func___stack_chk_fail = yes; then
23448 gcc_cv_libc_provides_ssp=yes
23449else
23450 echo "no __stack_chk_fail on this target"
77008252 23451fi
a6ccdbab
EC
23452
23453 ;;
77008252 23454 *) gcc_cv_libc_provides_ssp=no ;;
a6ccdbab
EC
23455 esac
23456fi
b61ff9c8
BS
23457echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23458echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
a6ccdbab 23459
77008252
JJ
23460if test x$gcc_cv_libc_provides_ssp = xyes; then
23461
23462cat >>confdefs.h <<\_ACEOF
23463#define TARGET_LIBC_PROVIDES_SSP 1
23464_ACEOF
23465
23466fi
23467
ed965309
JJ
23468# Check if TFmode long double should be used by default or not.
23469# Some glibc targets used DFmode long double, but with glibc 2.4
23470# and later they can use TFmode.
23471case "$target" in
f7cc5390
JM
23472 powerpc*-*-linux* | \
23473 powerpc*-*-gnu* | \
ed965309
JJ
23474 sparc*-*-linux* | \
23475 s390*-*-linux* | \
23476 alpha*-*-linux*)
23477
b61ff9c8 23478# Check whether --with-long-double-128 or --without-long-double-128 was given.
ed965309 23479if test "${with_long_double_128+set}" = set; then
b61ff9c8
BS
23480 withval="$with_long_double_128"
23481 gcc_cv_target_ldbl128="$with_long_double_128"
ed965309
JJ
23482else
23483 gcc_cv_target_ldbl128=no
23484 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23485 if test "x$with_sysroot" = x; then
23486 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
c9ecbf86
JM
23487 elif test "x$with_build_sysroot" != "x"; then
23488 glibc_header_dir="${with_build_sysroot}/usr/include"
ed965309
JJ
23489 elif test "x$with_sysroot" = xyes; then
23490 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23491 else
23492 glibc_header_dir="${with_sysroot}/usr/include"
23493 fi
23494 else
23495 glibc_header_dir=/usr/include
23496 fi
65280f6c 23497 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
ed965309
JJ
23498 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23499 && gcc_cv_target_ldbl128=yes
65280f6c 23500
b61ff9c8 23501fi;
ed965309
JJ
23502 ;;
23503esac
23504if test x$gcc_cv_target_ldbl128 = xyes; then
23505
23506cat >>confdefs.h <<\_ACEOF
23507#define TARGET_DEFAULT_LONG_DOUBLE_128 1
23508_ACEOF
23509
23510fi
23511
81bf3d9e 23512# Find out what GC implementation we want, or may, use.
ba479fd2 23513
b61ff9c8 23514# Check whether --with-gc or --without-gc was given.
81bf3d9e 23515if test "${with_gc+set}" = set; then
b61ff9c8
BS
23516 withval="$with_gc"
23517 case "$withval" in
08cee789 23518 page)
81bf3d9e 23519 GGC=ggc-$withval
08cee789
DJ
23520 ;;
23521 zone)
23522 GGC=ggc-$withval
23523
23524cat >>confdefs.h <<\_ACEOF
23525#define GGC_ZONE 1
23526_ACEOF
23527
81bf3d9e
RH
23528 ;;
23529 *)
ba479fd2
NN
23530 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23531echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23532 { (exit 1); exit 1; }; }
81bf3d9e
RH
23533 ;;
23534esac
23535else
005537df 23536 GGC=ggc-page
b61ff9c8 23537fi;
81bf3d9e
RH
23538
23539echo "Using $GGC for garbage collection."
23540
3c809ba4 23541# Use the system's zlib library.
b8dad04b
ZW
23542zlibdir=-L../zlib
23543zlibinc="-I\$(srcdir)/../zlib"
ba479fd2 23544
b61ff9c8 23545# Check whether --with-system-zlib or --without-system-zlib was given.
3c809ba4 23546if test "${with_system_zlib+set}" = set; then
b61ff9c8
BS
23547 withval="$with_system_zlib"
23548 zlibdir=
3c809ba4
AG
23549zlibinc=
23550
b61ff9c8 23551fi;
b8ec3cc8 23552
703d89ab 23553
ab22c1fa 23554
1a4b763e 23555
b61ff9c8
BS
23556echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23557echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23558 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
dc6746e7 23559if test "${enable_maintainer_mode+set}" = set; then
b61ff9c8
BS
23560 enableval="$enable_maintainer_mode"
23561 maintainer_mode=$enableval
dc6746e7
PT
23562else
23563 maintainer_mode=no
b61ff9c8 23564fi;
a6ccdbab 23565
b61ff9c8
BS
23566echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23567echo "${ECHO_T}$maintainer_mode" >&6
dc6746e7
PT
23568
23569if test "$maintainer_mode" = "yes"; then
23570 MAINT=''
23571else
23572 MAINT='#'
23573fi
23574
8bb915b6
NN
23575# --------------
23576# Language hooks
23577# --------------
23578
861bb6c1
JL
23579# Make empty files to contain the specs and options for each language.
23580# Then add #include lines to for a compiler that has specs and/or options.
23581
cc11cc9b 23582subdirs=
d7b42618 23583lang_opt_files=
861bb6c1 23584lang_specs_files=
3103b7db 23585lang_tree_files=
861bb6c1
JL
23586# These (without "all_") are set in each config-lang.in.
23587# `language' must be a single word so is spelled singularly.
23588all_languages=
861bb6c1 23589all_compilers=
fa958513 23590all_outputs='Makefile gccbug libada-mk'
861bb6c1 23591# List of language makefile fragments.
2ed26f6b
ZW
23592all_lang_makefrags=
23593# List of language subdirectory makefiles. Deprecated.
861bb6c1 23594all_lang_makefiles=
703d89ab 23595# Additional files for gengtype
ef69da62 23596all_gtfiles="$target_gtfiles"
861bb6c1 23597
cc11cc9b
PB
23598# These are the languages that are set in --enable-languages,
23599# and are available in the GCC tree.
23600all_selected_languages=
23601
861bb6c1
JL
23602# Add the language fragments.
23603# Languages are added via two mechanisms. Some information must be
23604# recorded in makefile variables, these are defined in config-lang.in.
23605# We accumulate them and plug them into the main Makefile.
23606# The other mechanism is a set of hooks for each of the main targets
23607# like `clean', `install', etc.
23608
861bb6c1 23609language_hooks="Make-hooks"
861bb6c1 23610
cc11cc9b 23611for lang in ${srcdir}/*/config-lang.in
861bb6c1 23612do
1546bb64
PB
23613 test "$lang" = "${srcdir}/*/config-lang.in" && continue
23614
cc11cc9b
PB
23615 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
23616 if test "x$lang_alias" = x
23617 then
23618 echo "$lang doesn't set \$language." 1>&2
23619 exit 1
23620 fi
23621 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23622 subdirs="$subdirs $subdir"
349c3166
OH
23623
23624 # $gcc_subdir is where the gcc integration files are to be found
23625 # for a language, both for internal compiler purposes (compiler
23626 # sources implementing front-end to GCC tree converters), and for
23627 # build infrastructure purposes (Make-lang.in, etc.)
23628 #
23629 # This will be <subdir> (relative to $srcdir) if a line like
23630 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
23631 # is found in <langdir>/config-lang.in, and will remain <langdir>
23632 # otherwise.
23633 #
23634 # Except for the language alias (fetched above), the regular
23635 # "config-lang.in" contents are always retrieved from $gcc_subdir,
23636 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
23637 # only this and the language alias.
23638
23639 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
23640 if [ "$gcc_subdir" = "" ]; then
23641 gcc_subdir="$subdir"
23642 fi
23643
cc11cc9b
PB
23644 case ",$enable_languages," in
23645 *,$lang_alias,*)
23646 all_selected_languages="$all_selected_languages $lang_alias"
349c3166
OH
23647 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
23648 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
cc11cc9b
PB
23649 fi
23650 ;;
23651 esac
23652
cc11cc9b
PB
23653 language=
23654 boot_language=
23655 compilers=
cc11cc9b
PB
23656 outputs=
23657 gtfiles=
1546bb64 23658 subdir_requires=
349c3166 23659 . ${srcdir}/$gcc_subdir/config-lang.in
cc11cc9b
PB
23660 if test "x$language" = x
23661 then
349c3166 23662 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
cc11cc9b
PB
23663 exit 1
23664 fi
1546bb64
PB
23665
23666 ok=:
23667 case ",$enable_languages," in
23668 *,$lang_alias,*) ;;
23669 *)
23670 for i in $subdir_requires; do
b6348cb3 23671 test -f "${srcdir}/$i/config-lang.in" && continue
1546bb64
PB
23672 ok=false
23673 break
23674 done
23675 ;;
23676 esac
23677 $ok || continue
23678
349c3166
OH
23679 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
23680 if test -f $srcdir/$gcc_subdir/lang.opt; then
23681 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
1546bb64 23682 fi
349c3166
OH
23683 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
23684 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
1546bb64 23685 fi
349c3166
OH
23686 if test -f ${srcdir}/$gcc_subdir/Makefile.in
23687 then all_lang_makefiles="$gcc_subdir/Makefile"
cc11cc9b
PB
23688 fi
23689 all_languages="$all_languages $language"
cc11cc9b 23690 all_compilers="$all_compilers $compilers"
cc11cc9b 23691 all_outputs="$all_outputs $outputs"
703d89ab 23692 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
861bb6c1
JL
23693done
23694
8ac9d31f
TJ
23695# Pick up gtfiles for c
23696gtfiles=
8ac9d31f 23697. ${srcdir}/c-config-lang.in
703d89ab 23698all_gtfiles="$all_gtfiles [c] $gtfiles"
8ac9d31f 23699
cbc59f01 23700check_languages=
cc11cc9b 23701for language in $all_selected_languages
cbc59f01 23702do
cc11cc9b 23703 check_languages="$check_languages check-$language"
cbc59f01
DD
23704done
23705
62b81e45 23706# We link each language in with a set of hooks, reached indirectly via
cc11cc9b 23707# lang.${target}. Only do so for selected languages.
861bb6c1
JL
23708
23709rm -f Make-hooks
23710touch Make-hooks
bd97af06 23711target_list="all.cross start.encap rest.encap tags \
bcc3d150
BM
23712 install-common install-man install-info install-pdf dvi pdf \
23713 html uninstall info man srcextra srcman srcinfo \
8b1f719a 23714 mostlyclean clean distclean maintainer-clean"
cc11cc9b 23715
861bb6c1
JL
23716for t in $target_list
23717do
23718 x=
cc11cc9b 23719 for lang in $all_selected_languages
861bb6c1 23720 do
cc11cc9b 23721 x="$x $lang.$t"
861bb6c1
JL
23722 done
23723 echo "lang.$t: $x" >> Make-hooks
23724done
23725
8bb915b6
NN
23726# --------
23727# UNSORTED
23728# --------
23729
cc06d68c 23730# Create .gdbinit.
861bb6c1 23731
cc06d68c
GP
23732echo "dir ." > .gdbinit
23733echo "dir ${srcdir}" >> .gdbinit
23734if test x$gdb_needs_out_file_path = xyes
23735then
23736 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23737fi
23738if test "x$subdirs" != x; then
23739 for s in $subdirs
23740 do
23741 echo "dir ${srcdir}/$s" >> .gdbinit
23742 done
861bb6c1 23743fi
cc06d68c 23744echo "source ${srcdir}/gdbinit.in" >> .gdbinit
861bb6c1 23745
15c723f3 23746gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
d062c304
JL
23747
23748
2ce3c6c6 23749
2bbea3a6
RH
23750# Find a directory in which to install a shared libgcc.
23751
b61ff9c8 23752# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2bbea3a6 23753if test "${enable_version_specific_runtime_libs+set}" = set; then
b61ff9c8 23754 enableval="$enable_version_specific_runtime_libs"
ba479fd2 23755
b61ff9c8 23756fi;
2bbea3a6
RH
23757
23758
b61ff9c8 23759# Check whether --with-slibdir or --without-slibdir was given.
5b15f277 23760if test "${with_slibdir+set}" = set; then
b61ff9c8
BS
23761 withval="$with_slibdir"
23762 slibdir="$with_slibdir"
5b15f277
RH
23763else
23764 if test "${enable_version_specific_runtime_libs+set}" = set; then
2bbea3a6 23765 slibdir='$(libsubdir)'
5b15f277 23766elif test "$host" != "$target"; then
2bbea3a6
RH
23767 slibdir='$(build_tooldir)/lib'
23768else
5b15f277 23769 slibdir='$(libdir)'
2bbea3a6 23770fi
b61ff9c8 23771fi;
2bbea3a6
RH
23772
23773
22482f74 23774
b61ff9c8 23775# Check whether --with-datarootdir or --without-datarootdir was given.
22482f74 23776if test "${with_datarootdir+set}" = set; then
b61ff9c8
BS
23777 withval="$with_datarootdir"
23778 datarootdir="\${prefix}/$with_datarootdir"
22482f74
MS
23779else
23780 datarootdir='$(prefix)/share'
b61ff9c8 23781fi;
22482f74
MS
23782
23783
a6ccdbab 23784
b61ff9c8 23785# Check whether --with-docdir or --without-docdir was given.
22482f74 23786if test "${with_docdir+set}" = set; then
b61ff9c8
BS
23787 withval="$with_docdir"
23788 docdir="\${prefix}/$with_docdir"
22482f74
MS
23789else
23790 docdir='$(datarootdir)'
b61ff9c8 23791fi;
703d89ab 23792
ab22c1fa 23793
1a4b763e 23794
b61ff9c8 23795# Check whether --with-htmldir or --without-htmldir was given.
22482f74 23796if test "${with_htmldir+set}" = set; then
b61ff9c8
BS
23797 withval="$with_htmldir"
23798 htmldir="\${prefix}/$with_htmldir"
22482f74
MS
23799else
23800 htmldir='$(docdir)'
b61ff9c8 23801fi;
861bb6c1
JL
23802
23803
703d89ab 23804# Substitute configuration variables
861bb6c1
JL
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
9b16d2c4 23849
e9a25f70 23850
6e26218f 23851
c8724862 23852
11642c3a
ZW
23853
23854
23855
3d9d2476 23856
e2500fed 23857
a0e527e3 23858
c776a6d0 23859
51b9ff45 23860
861bb6c1 23861
6e3f3080
NN
23862# Echo link setup.
23863if test x${build} = x${host} ; then
23864 if test x${host} = x${target} ; then
23865 echo "Links are now set up to build a native compiler for ${target}." 1>&2
23866 else
23867 echo "Links are now set up to build a cross-compiler" 1>&2
23868 echo " from ${host} to ${target}." 1>&2
23869 fi
23870else
23871 if test x${host} = x${target} ; then
23872 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23873 echo " for ${target}." 1>&2
23874 else
23875 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23876 echo " from ${host} to ${target}." 1>&2
23877 fi
23878fi
23879
6de9cd9a
DN
23880
23881
23882
6e3f3080
NN
23883# Configure the subdirectories
23884# AC_CONFIG_SUBDIRS($subdirs)
23885
23886# Create the Makefile
23887# and configure language subdirectories
b61ff9c8 23888 ac_config_files="$ac_config_files $all_outputs"
914c5af7
NN
23889
23890
b61ff9c8 23891 ac_config_commands="$ac_config_commands default"
914c5af7 23892
ba479fd2 23893cat >confcache <<\_ACEOF
6e3f3080
NN
23894# This file is a shell script that caches the results of configure
23895# tests run on this system so they can be shared between configure
ba479fd2
NN
23896# scripts and configure runs, see configure's option --config-cache.
23897# It is not useful on other systems. If it contains results you don't
23898# want to keep, you may remove or edit it.
6e3f3080 23899#
ba479fd2
NN
23900# config.status only pays attention to the cache file if you give it
23901# the --recheck option to rerun configure.
6e3f3080 23902#
ba479fd2
NN
23903# `ac_cv_env_foo' variables (set or unset) will be overridden when
23904# loading this file, other *unset* `ac_cv_foo' will be assigned the
23905# following values.
23906
23907_ACEOF
23908
6e3f3080
NN
23909# The following way of writing the cache mishandles newlines in values,
23910# but we know of no workaround that is simple, portable, and efficient.
b61ff9c8 23911# So, don't put newlines in cache variables' values.
6e3f3080
NN
23912# Ultrix sh set writes to stderr and can't be redirected directly,
23913# and sets the high bit in the cache file unless we assign to the vars.
b61ff9c8 23914{
ba479fd2 23915 (set) 2>&1 |
b61ff9c8
BS
23916 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23917 *ac_space=\ *)
ba479fd2
NN
23918 # `set' does not quote correctly, so add quotes (double-quote
23919 # substitution turns \\\\ into \\, and sed turns \\ into \).
23920 sed -n \
86da66b5
HPN
23921 "s/'/'\\\\''/g;
23922 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b61ff9c8 23923 ;;
ba479fd2
NN
23924 *)
23925 # `set' quotes correctly as required by POSIX, so do not add quotes.
b61ff9c8
BS
23926 sed -n \
23927 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ba479fd2 23928 ;;
b61ff9c8
BS
23929 esac;
23930} |
ba479fd2
NN
23931 sed '
23932 t clear
b61ff9c8 23933 : clear
ba479fd2
NN
23934 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23935 t end
b61ff9c8
BS
23936 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23937 : end' >>confcache
23938if diff $cache_file confcache >/dev/null 2>&1; then :; else
23939 if test -w $cache_file; then
23940 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
ba479fd2 23941 cat confcache >$cache_file
6e3f3080 23942 else
b61ff9c8 23943 echo "not updating unwritable cache $cache_file"
6e3f3080
NN
23944 fi
23945fi
23946rm -f confcache
23947
23948test "x$prefix" = xNONE && prefix=$ac_default_prefix
23949# Let make expand exec_prefix.
23950test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23951
b61ff9c8
BS
23952# VPATH may cause trouble with some makes, so we remove $(srcdir),
23953# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23954# trailing colons and then remove the whole line if VPATH becomes empty
23955# (actually we leave an empty line to preserve line numbers).
23956if test "x$srcdir" = x.; then
23957 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23958s/:*\$(srcdir):*/:/;
23959s/:*\${srcdir}:*/:/;
23960s/:*@srcdir@:*/:/;
23961s/^\([^=]*=[ ]*\):*/\1/;
23962s/:*$//;
23963s/^[^=]*=[ ]*$//;
23964}'
23965fi
23966
63cf211a 23967DEFS=-DHAVE_CONFIG_H
6e3f3080 23968
ba479fd2
NN
23969ac_libobjs=
23970ac_ltlibobjs=
23971for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23972 # 1. Remove the extension, and $U if already installed.
b61ff9c8
BS
23973 ac_i=`echo "$ac_i" |
23974 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23975 # 2. Add them.
23976 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23977 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
ba479fd2
NN
23978done
23979LIBOBJS=$ac_libobjs
63cf211a 23980
ba479fd2
NN
23981LTLIBOBJS=$ac_ltlibobjs
23982
23983
23984
23985: ${CONFIG_STATUS=./config.status}
23986ac_clean_files_save=$ac_clean_files
23987ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23988{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23989echo "$as_me: creating $CONFIG_STATUS" >&6;}
23990cat >$CONFIG_STATUS <<_ACEOF
23991#! $SHELL
23992# Generated by $as_me.
6e3f3080
NN
23993# Run this file to recreate the current configuration.
23994# Compiler output produced by configure, useful for debugging
ba479fd2 23995# configure, is in config.log if it exists.
6e3f3080 23996
ba479fd2
NN
23997debug=false
23998ac_cs_recheck=false
23999ac_cs_silent=false
24000SHELL=\${CONFIG_SHELL-$SHELL}
24001_ACEOF
24002
24003cat >>$CONFIG_STATUS <<\_ACEOF
24004## --------------------- ##
24005## M4sh Initialization. ##
24006## --------------------- ##
24007
b61ff9c8 24008# Be Bourne compatible
ba479fd2
NN
24009if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24010 emulate sh
24011 NULLCMD=:
24012 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24013 # is contrary to our usage. Disable this feature.
24014 alias -g '${1+"$@"}'='"$@"'
b61ff9c8
BS
24015elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24016 set -o posix
2f41c1d6 24017fi
b61ff9c8 24018DUALCASE=1; export DUALCASE # for MKS sh
ab22c1fa 24019
1a4b763e
BS
24020# Support unset when possible.
24021if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24022 as_unset=unset
24023else
24024 as_unset=false
24025fi
24026
ab22c1fa 24027
1a4b763e 24028# Work around bugs in pre-3.0 UWIN ksh.
b61ff9c8 24029$as_unset ENV MAIL MAILPATH
1a4b763e
BS
24030PS1='$ '
24031PS2='> '
24032PS4='+ '
24033
24034# NLS nuisances.
24035for as_var in \
24036 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24037 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24038 LC_TELEPHONE LC_TIME
2f41c1d6 24039do
1a4b763e
BS
24040 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24041 eval $as_var=C; export $as_var
24042 else
b61ff9c8 24043 $as_unset $as_var
1a4b763e
BS
24044 fi
24045done
24046
24047# Required to use basename.
b61ff9c8 24048if expr a : '\(a\)' >/dev/null 2>&1; then
1a4b763e
BS
24049 as_expr=expr
24050else
24051 as_expr=false
24052fi
24053
b61ff9c8 24054if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1a4b763e
BS
24055 as_basename=basename
24056else
24057 as_basename=false
24058fi
24059
24060
24061# Name of the executable.
b61ff9c8 24062as_me=`$as_basename "$0" ||
1a4b763e
BS
24063$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24064 X"$0" : 'X\(//\)$' \| \
b61ff9c8
BS
24065 X"$0" : 'X\(/\)$' \| \
24066 . : '\(.\)' 2>/dev/null ||
1a4b763e 24067echo X/"$0" |
b61ff9c8
BS
24068 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24069 /^X\/\(\/\/\)$/{ s//\1/; q; }
24070 /^X\/\(\/\).*/{ s//\1/; q; }
24071 s/.*/./; q'`
1a4b763e 24072
b61ff9c8
BS
24073
24074# PATH needs CR, and LINENO needs CR and PATH.
24075# Avoid depending upon Character Ranges.
24076as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24077as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24078as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24079as_cr_digits='0123456789'
24080as_cr_alnum=$as_cr_Letters$as_cr_digits
24081
24082# The user is always right.
24083if test "${PATH_SEPARATOR+set}" != set; then
24084 echo "#! /bin/sh" >conf$$.sh
24085 echo "exit 0" >>conf$$.sh
24086 chmod +x conf$$.sh
24087 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24088 PATH_SEPARATOR=';'
24089 else
24090 PATH_SEPARATOR=:
24091 fi
24092 rm -f conf$$.sh
24093fi
1a4b763e
BS
24094
24095
b61ff9c8
BS
24096 as_lineno_1=$LINENO
24097 as_lineno_2=$LINENO
24098 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24099 test "x$as_lineno_1" != "x$as_lineno_2" &&
24100 test "x$as_lineno_3" = "x$as_lineno_2" || {
24101 # Find who we are. Look in the path if we contain no path at all
24102 # relative or not.
24103 case $0 in
24104 *[\\/]* ) as_myself=$0 ;;
24105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24106for as_dir in $PATH
24107do
24108 IFS=$as_save_IFS
24109 test -z "$as_dir" && as_dir=.
24110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24111done
1a4b763e 24112
b61ff9c8
BS
24113 ;;
24114 esac
24115 # We did not find ourselves, most probably we were run as `sh COMMAND'
24116 # in which case we are not to be found in the path.
24117 if test "x$as_myself" = x; then
24118 as_myself=$0
24119 fi
24120 if test ! -f "$as_myself"; then
24121 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24122echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24123 { (exit 1); exit 1; }; }
24124 fi
24125 case $CONFIG_SHELL in
24126 '')
24127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24129do
24130 IFS=$as_save_IFS
24131 test -z "$as_dir" && as_dir=.
24132 for as_base in sh bash ksh sh5; do
24133 case $as_dir in
24134 /*)
24135 if ("$as_dir/$as_base" -c '
8b1f719a
PB
24136 as_lineno_1=$LINENO
24137 as_lineno_2=$LINENO
b61ff9c8 24138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8b1f719a 24139 test "x$as_lineno_1" != "x$as_lineno_2" &&
b61ff9c8
BS
24140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24143 CONFIG_SHELL=$as_dir/$as_base
24144 export CONFIG_SHELL
24145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24146 fi;;
24147 esac
24148 done
24149done
24150;;
24151 esac
ba479fd2
NN
24152
24153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24154 # uniformly replaced by the line number. The first 'sed' inserts a
b61ff9c8
BS
24155 # line-number line before each line; the second 'sed' does the real
24156 # work. The second script uses 'N' to pair each line-number line
24157 # with the numbered line, and appends trailing '-' during
24158 # substitution so that $LINENO is not a special case at line end.
ba479fd2 24159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b61ff9c8
BS
24160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24161 sed '=' <$as_myself |
ba479fd2
NN
24162 sed '
24163 N
b61ff9c8
BS
24164 s,$,-,
24165 : loop
24166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
ba479fd2 24167 t loop
b61ff9c8
BS
24168 s,-$,,
24169 s,^['$as_cr_digits']*\n,,
ba479fd2 24170 ' >$as_me.lineno &&
b61ff9c8
BS
24171 chmod +x $as_me.lineno ||
24172 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24173echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
ba479fd2
NN
24174 { (exit 1); exit 1; }; }
24175
24176 # Don't try to exec as it changes $[0], causing all sort of problems
24177 # (the dirname of $[0] is not the place where we might find the
b61ff9c8
BS
24178 # original and so on. Autoconf is especially sensible to this).
24179 . ./$as_me.lineno
ba479fd2
NN
24180 # Exit status is that of the last command.
24181 exit
24182}
24183
24184
b61ff9c8
BS
24185case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24186 *c*,-n*) ECHO_N= ECHO_C='
24187' ECHO_T=' ' ;;
24188 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24189 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
ba479fd2
NN
24190esac
24191
b61ff9c8 24192if expr a : '\(a\)' >/dev/null 2>&1; then
ba479fd2
NN
24193 as_expr=expr
24194else
24195 as_expr=false
24196fi
24197
24198rm -f conf$$ conf$$.exe conf$$.file
24199echo >conf$$.file
24200if ln -s conf$$.file conf$$ 2>/dev/null; then
b61ff9c8
BS
24201 # We could just check for DJGPP; but this test a) works b) is more generic
24202 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24203 if test -f conf$$.exe; then
24204 # Don't use ln at all; we don't have any links
ba479fd2 24205 as_ln_s='cp -p'
b61ff9c8
BS
24206 else
24207 as_ln_s='ln -s'
24208 fi
ba479fd2
NN
24209elif ln conf$$.file conf$$ 2>/dev/null; then
24210 as_ln_s=ln
24211else
24212 as_ln_s='cp -p'
24213fi
b61ff9c8 24214rm -f conf$$ conf$$.exe conf$$.file
ba479fd2
NN
24215
24216if mkdir -p . 2>/dev/null; then
24217 as_mkdir_p=:
24218else
86da66b5 24219 test -d ./-p && rmdir ./-p
ba479fd2
NN
24220 as_mkdir_p=false
24221fi
24222
b61ff9c8 24223as_executable_p="test -f"
ba479fd2
NN
24224
24225# Sed expression to map a string onto a valid CPP name.
86da66b5 24226as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ba479fd2
NN
24227
24228# Sed expression to map a string onto a valid variable name.
86da66b5 24229as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ba479fd2
NN
24230
24231
b61ff9c8
BS
24232# IFS
24233# We need space, tab and new line, in precisely that order.
24234as_nl='
24235'
24236IFS=" $as_nl"
24237
24238# CDPATH.
24239$as_unset CDPATH
24240
ba479fd2
NN
24241exec 6>&1
24242
b61ff9c8 24243# Open the log real soon, to keep \$[0] and so on meaningful, and to
ba479fd2 24244# report actual input values of CONFIG_FILES etc. instead of their
b61ff9c8
BS
24245# values after options handling. Logging --version etc. is OK.
24246exec 5>>config.log
24247{
24248 echo
24249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24250## Running $as_me. ##
24251_ASBOX
24252} >&5
24253cat >&5 <<_CSEOF
24254
ba479fd2 24255This file was extended by $as_me, which was
b61ff9c8 24256generated by GNU Autoconf 2.59. Invocation command line was
ba479fd2
NN
24257
24258 CONFIG_FILES = $CONFIG_FILES
24259 CONFIG_HEADERS = $CONFIG_HEADERS
24260 CONFIG_LINKS = $CONFIG_LINKS
24261 CONFIG_COMMANDS = $CONFIG_COMMANDS
24262 $ $0 $@
24263
b61ff9c8
BS
24264_CSEOF
24265echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24266echo >&5
ba479fd2
NN
24267_ACEOF
24268
24269# Files that config.status was made for.
b61ff9c8
BS
24270if test -n "$ac_config_files"; then
24271 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24272fi
2f41c1d6 24273
b61ff9c8
BS
24274if test -n "$ac_config_headers"; then
24275 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24276fi
24277
24278if test -n "$ac_config_links"; then
24279 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24280fi
24281
24282if test -n "$ac_config_commands"; then
24283 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24284fi
ba479fd2
NN
24285
24286cat >>$CONFIG_STATUS <<\_ACEOF
b61ff9c8 24287
ba479fd2
NN
24288ac_cs_usage="\
24289\`$as_me' instantiates files from templates according to the
24290current configuration.
24291
24292Usage: $0 [OPTIONS] [FILE]...
24293
24294 -h, --help print this help, then exit
b61ff9c8 24295 -V, --version print version number, then exit
ba479fd2
NN
24296 -q, --quiet do not print progress messages
24297 -d, --debug don't remove temporary files
24298 --recheck update $as_me by reconfiguring in the same conditions
24299 --file=FILE[:TEMPLATE]
86da66b5 24300 instantiate the configuration file FILE
ba479fd2 24301 --header=FILE[:TEMPLATE]
86da66b5 24302 instantiate the configuration header FILE
ba479fd2
NN
24303
24304Configuration files:
24305$config_files
24306
24307Configuration headers:
24308$config_headers
24309
24310Configuration commands:
24311$config_commands
24312
24313Report bugs to <bug-autoconf@gnu.org>."
1a4b763e 24314_ACEOF
b61ff9c8 24315
ba479fd2
NN
24316cat >>$CONFIG_STATUS <<_ACEOF
24317ac_cs_version="\\
24318config.status
b61ff9c8
BS
24319configured by $0, generated by GNU Autoconf 2.59,
24320 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
ba479fd2 24321
b61ff9c8 24322Copyright (C) 2003 Free Software Foundation, Inc.
ba479fd2
NN
24323This config.status script is free software; the Free Software Foundation
24324gives unlimited permission to copy, distribute and modify it."
b61ff9c8 24325srcdir=$srcdir
ba479fd2
NN
24326_ACEOF
24327
24328cat >>$CONFIG_STATUS <<\_ACEOF
24329# If no file are specified by the user, then we need to provide default
24330# value. By we need to know if files were specified by the user.
24331ac_need_defaults=:
24332while test $# != 0
24333do
24334 case $1 in
24335 --*=*)
b61ff9c8
BS
24336 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24337 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
ba479fd2
NN
24338 ac_shift=:
24339 ;;
b61ff9c8 24340 -*)
ba479fd2
NN
24341 ac_option=$1
24342 ac_optarg=$2
24343 ac_shift=shift
24344 ;;
b61ff9c8
BS
24345 *) # This is not an option, so the user has probably given explicit
24346 # arguments.
24347 ac_option=$1
24348 ac_need_defaults=false;;
ba479fd2
NN
24349 esac
24350
24351 case $ac_option in
24352 # Handling of the options.
b61ff9c8
BS
24353_ACEOF
24354cat >>$CONFIG_STATUS <<\_ACEOF
ba479fd2
NN
24355 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24356 ac_cs_recheck=: ;;
b61ff9c8
BS
24357 --version | --vers* | -V )
24358 echo "$ac_cs_version"; exit 0 ;;
24359 --he | --h)
24360 # Conflict between --help and --header
24361 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24362Try \`$0 --help' for more information." >&5
24363echo "$as_me: error: ambiguous option: $1
24364Try \`$0 --help' for more information." >&2;}
24365 { (exit 1); exit 1; }; };;
24366 --help | --hel | -h )
24367 echo "$ac_cs_usage"; exit 0 ;;
24368 --debug | --d* | -d )
ba479fd2
NN
24369 debug=: ;;
24370 --file | --fil | --fi | --f )
24371 $ac_shift
24372 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24373 ac_need_defaults=false;;
24374 --header | --heade | --head | --hea )
24375 $ac_shift
24376 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24377 ac_need_defaults=false;;
24378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24379 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24380 ac_cs_silent=: ;;
24381
24382 # This is an error.
b61ff9c8
BS
24383 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24384Try \`$0 --help' for more information." >&5
24385echo "$as_me: error: unrecognized option: $1
24386Try \`$0 --help' for more information." >&2;}
ba479fd2
NN
24387 { (exit 1); exit 1; }; } ;;
24388
b61ff9c8 24389 *) ac_config_targets="$ac_config_targets $1" ;;
ba479fd2
NN
24390
24391 esac
24392 shift
6e3f3080 24393done
ba479fd2
NN
24394
24395ac_configure_extra_args=
24396
24397if $ac_cs_silent; then
24398 exec 6>/dev/null
24399 ac_configure_extra_args="$ac_configure_extra_args --silent"
861bb6c1
JL
24400fi
24401
ba479fd2
NN
24402_ACEOF
24403cat >>$CONFIG_STATUS <<_ACEOF
24404if \$ac_cs_recheck; then
b61ff9c8
BS
24405 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24406 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ba479fd2 24407fi
861bb6c1 24408
ba479fd2
NN
24409_ACEOF
24410
24411cat >>$CONFIG_STATUS <<_ACEOF
24412#
b61ff9c8 24413# INIT-COMMANDS section.
ba479fd2 24414#
b61ff9c8 24415
ba479fd2 24416subdirs='$subdirs'
ba479fd2
NN
24417
24418_ACEOF
24419
1a4b763e 24420
b61ff9c8
BS
24421
24422cat >>$CONFIG_STATUS <<\_ACEOF
ba479fd2
NN
24423for ac_config_target in $ac_config_targets
24424do
b61ff9c8
BS
24425 case "$ac_config_target" in
24426 # Handling of arguments.
24427 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
24428 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24429 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
24430 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
24431 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24432 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
ba479fd2
NN
24433 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24434echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24435 { (exit 1); exit 1; }; };;
861bb6c1 24436 esac
ba479fd2
NN
24437done
24438
24439# If the user did not use the arguments to specify the items to instantiate,
24440# then the envvar interface is used. Set only those that are not.
24441# We use the long form for the default assignment because of an extremely
24442# bizarre bug on SunOS 4.1.3.
24443if $ac_need_defaults; then
24444 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24445 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24446 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24447fi
24448
24449# Have a temporary directory for convenience. Make it in the build tree
b61ff9c8 24450# simply because there is no reason to put it here, and in addition,
ba479fd2 24451# creating and moving files from /tmp can sometimes cause problems.
b61ff9c8 24452# Create a temporary directory, and hook for its removal unless debugging.
ba479fd2
NN
24453$debug ||
24454{
b61ff9c8 24455 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
ba479fd2
NN
24456 trap '{ (exit 1); exit 1; }' 1 2 13 15
24457}
b61ff9c8 24458
ba479fd2 24459# Create a (secure) tmp directory for tmp files.
6e3f3080 24460
ba479fd2 24461{
b61ff9c8 24462 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
ba479fd2
NN
24463 test -n "$tmp" && test -d "$tmp"
24464} ||
24465{
b61ff9c8
BS
24466 tmp=./confstat$$-$RANDOM
24467 (umask 077 && mkdir $tmp)
ba479fd2
NN
24468} ||
24469{
24470 echo "$me: cannot create a temporary directory in ." >&2
24471 { (exit 1); exit 1; }
24472}
24473
b61ff9c8
BS
24474_ACEOF
24475
24476cat >>$CONFIG_STATUS <<_ACEOF
24477
ba479fd2 24478#
b61ff9c8 24479# CONFIG_FILES section.
ba479fd2
NN
24480#
24481
24482# No need to generate the scripts if there are no CONFIG_FILES.
24483# This happens for instance when ./config.status config.h
b61ff9c8
BS
24484if test -n "\$CONFIG_FILES"; then
24485 # Protect against being on the right side of a sed subst in config.status.
24486 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24487 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24488s,@SHELL@,$SHELL,;t t
24489s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24490s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24491s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24492s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24493s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24494s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24495s,@exec_prefix@,$exec_prefix,;t t
24496s,@prefix@,$prefix,;t t
24497s,@program_transform_name@,$program_transform_name,;t t
24498s,@bindir@,$bindir,;t t
24499s,@sbindir@,$sbindir,;t t
24500s,@libexecdir@,$libexecdir,;t t
24501s,@datadir@,$datadir,;t t
24502s,@sysconfdir@,$sysconfdir,;t t
24503s,@sharedstatedir@,$sharedstatedir,;t t
24504s,@localstatedir@,$localstatedir,;t t
24505s,@libdir@,$libdir,;t t
24506s,@includedir@,$includedir,;t t
24507s,@oldincludedir@,$oldincludedir,;t t
24508s,@infodir@,$infodir,;t t
24509s,@mandir@,$mandir,;t t
24510s,@build_alias@,$build_alias,;t t
24511s,@host_alias@,$host_alias,;t t
24512s,@target_alias@,$target_alias,;t t
24513s,@DEFS@,$DEFS,;t t
24514s,@ECHO_C@,$ECHO_C,;t t
24515s,@ECHO_N@,$ECHO_N,;t t
24516s,@ECHO_T@,$ECHO_T,;t t
24517s,@LIBS@,$LIBS,;t t
24518s,@build@,$build,;t t
24519s,@build_cpu@,$build_cpu,;t t
24520s,@build_vendor@,$build_vendor,;t t
24521s,@build_os@,$build_os,;t t
24522s,@host@,$host,;t t
24523s,@host_cpu@,$host_cpu,;t t
24524s,@host_vendor@,$host_vendor,;t t
24525s,@host_os@,$host_os,;t t
24526s,@target@,$target,;t t
24527s,@target_cpu@,$target_cpu,;t t
24528s,@target_vendor@,$target_vendor,;t t
24529s,@target_os@,$target_os,;t t
24530s,@target_noncanonical@,$target_noncanonical,;t t
24531s,@build_libsubdir@,$build_libsubdir,;t t
24532s,@build_subdir@,$build_subdir,;t t
24533s,@host_subdir@,$host_subdir,;t t
24534s,@target_subdir@,$target_subdir,;t t
24535s,@GENINSRC@,$GENINSRC,;t t
24536s,@CC@,$CC,;t t
24537s,@CFLAGS@,$CFLAGS,;t t
24538s,@LDFLAGS@,$LDFLAGS,;t t
24539s,@CPPFLAGS@,$CPPFLAGS,;t t
24540s,@ac_ct_CC@,$ac_ct_CC,;t t
24541s,@EXEEXT@,$EXEEXT,;t t
24542s,@OBJEXT@,$OBJEXT,;t t
3d4e720a
ST
24543s,@GNATBIND@,$GNATBIND,;t t
24544s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
24545s,@GNATMAKE@,$GNATMAKE,;t t
24546s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
b61ff9c8
BS
24547s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24548s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24549s,@CPP@,$CPP,;t t
24550s,@EGREP@,$EGREP,;t t
24551s,@loose_warn@,$loose_warn,;t t
b61ff9c8
BS
24552s,@strict_warn@,$strict_warn,;t t
24553s,@warn_cflags@,$warn_cflags,;t t
24554s,@nocommon_flag@,$nocommon_flag,;t t
24555s,@TREEBROWSER@,$TREEBROWSER,;t t
24556s,@valgrind_path@,$valgrind_path,;t t
24557s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24558s,@valgrind_command@,$valgrind_command,;t t
24559s,@coverage_flags@,$coverage_flags,;t t
24560s,@enable_multilib@,$enable_multilib,;t t
24561s,@enable_decimal_float@,$enable_decimal_float,;t t
24562s,@enable_fixed_point@,$enable_fixed_point,;t t
24563s,@enable_shared@,$enable_shared,;t t
24564s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24565s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24566s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24567s,@onestep@,$onestep,;t t
24568s,@PKGVERSION@,$PKGVERSION,;t t
24569s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24570s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24571s,@datarootdir@,$datarootdir,;t t
24572s,@docdir@,$docdir,;t t
24573s,@htmldir@,$htmldir,;t t
24574s,@SET_MAKE@,$SET_MAKE,;t t
24575s,@AWK@,$AWK,;t t
24576s,@LN_S@,$LN_S,;t t
24577s,@LN@,$LN,;t t
24578s,@RANLIB@,$RANLIB,;t t
24579s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24580s,@ranlib_flags@,$ranlib_flags,;t t
24581s,@INSTALL@,$INSTALL,;t t
24582s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24583s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24584s,@make_compare_target@,$make_compare_target,;t t
24585s,@have_mktemp_command@,$have_mktemp_command,;t t
24586s,@MAKEINFO@,$MAKEINFO,;t t
24587s,@BUILD_INFO@,$BUILD_INFO,;t t
24588s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24589s,@FLEX@,$FLEX,;t t
24590s,@BISON@,$BISON,;t t
24591s,@NM@,$NM,;t t
24592s,@AR@,$AR,;t t
24593s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24594s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24595s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24596s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24597s,@LIBICONV@,$LIBICONV,;t t
24598s,@LTLIBICONV@,$LTLIBICONV,;t t
24599s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24600s,@manext@,$manext,;t t
24601s,@objext@,$objext,;t t
24602s,@gthread_flags@,$gthread_flags,;t t
24603s,@extra_modes_file@,$extra_modes_file,;t t
24604s,@extra_opt_files@,$extra_opt_files,;t t
24605s,@USE_NLS@,$USE_NLS,;t t
24606s,@LIBINTL@,$LIBINTL,;t t
24607s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24608s,@INCINTL@,$INCINTL,;t t
24609s,@XGETTEXT@,$XGETTEXT,;t t
24610s,@GMSGFMT@,$GMSGFMT,;t t
24611s,@POSUB@,$POSUB,;t t
24612s,@CATALOGS@,$CATALOGS,;t t
24613s,@DATADIRNAME@,$DATADIRNAME,;t t
24614s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24615s,@GENCAT@,$GENCAT,;t t
24616s,@CATOBJEXT@,$CATOBJEXT,;t t
24617s,@host_cc_for_libada@,$host_cc_for_libada,;t t
24618s,@CROSS@,$CROSS,;t t
24619s,@ALL@,$ALL,;t t
24620s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24621s,@inhibit_libc@,$inhibit_libc,;t t
24622s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24623s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
f8c33439 24624s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
b61ff9c8
BS
24625s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24626s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24627s,@collect2@,$collect2,;t t
da0f6381
PB
24628s,@LIBTOOL@,$LIBTOOL,;t t
24629s,@SED@,$SED,;t t
24630s,@FGREP@,$FGREP,;t t
24631s,@GREP@,$GREP,;t t
24632s,@LD@,$LD,;t t
24633s,@DUMPBIN@,$DUMPBIN,;t t
24634s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24635s,@ac_ct_AR@,$ac_ct_AR,;t t
24636s,@STRIP@,$STRIP,;t t
24637s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24638s,@lt_ECHO@,$lt_ECHO,;t t
24639s,@objdir@,$objdir,;t t
24640s,@enable_fast_install@,$enable_fast_install,;t t
b61ff9c8
BS
24641s,@gcc_cv_as@,$gcc_cv_as,;t t
24642s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24643s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24644s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24645s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24646s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24647s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24648s,@libgcc_visibility@,$libgcc_visibility,;t t
24649s,@GGC@,$GGC,;t t
24650s,@zlibdir@,$zlibdir,;t t
24651s,@zlibinc@,$zlibinc,;t t
24652s,@MAINT@,$MAINT,;t t
24653s,@gcc_tooldir@,$gcc_tooldir,;t t
24654s,@dollar@,$dollar,;t t
24655s,@slibdir@,$slibdir,;t t
b61ff9c8
BS
24656s,@subdirs@,$subdirs,;t t
24657s,@srcdir@,$srcdir,;t t
24658s,@all_compilers@,$all_compilers,;t t
24659s,@all_gtfiles@,$all_gtfiles,;t t
24660s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24661s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24662s,@all_languages@,$all_languages,;t t
24663s,@all_selected_languages@,$all_selected_languages,;t t
24664s,@build_exeext@,$build_exeext,;t t
24665s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24666s,@build_xm_file_list@,$build_xm_file_list,;t t
24667s,@build_xm_include_list@,$build_xm_include_list,;t t
24668s,@build_xm_defines@,$build_xm_defines,;t t
a0e527e3 24669s,@build_file_translate@,$build_file_translate,;t t
b61ff9c8
BS
24670s,@check_languages@,$check_languages,;t t
24671s,@cpp_install_dir@,$cpp_install_dir,;t t
24672s,@xmake_file@,$xmake_file,;t t
24673s,@tmake_file@,$tmake_file,;t t
24674s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24675s,@extra_headers_list@,$extra_headers_list,;t t
24676s,@extra_objs@,$extra_objs,;t t
24677s,@extra_parts@,$extra_parts,;t t
24678s,@extra_passes@,$extra_passes,;t t
24679s,@extra_programs@,$extra_programs,;t t
24680s,@float_h_file@,$float_h_file,;t t
24681s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24682s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24683s,@host_exeext@,$host_exeext,;t t
24684s,@host_xm_file_list@,$host_xm_file_list,;t t
24685s,@host_xm_include_list@,$host_xm_include_list,;t t
24686s,@host_xm_defines@,$host_xm_defines,;t t
24687s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24688s,@install@,$install,;t t
24689s,@lang_opt_files@,$lang_opt_files,;t t
24690s,@lang_specs_files@,$lang_specs_files,;t t
24691s,@lang_tree_files@,$lang_tree_files,;t t
24692s,@local_prefix@,$local_prefix,;t t
24693s,@md_file@,$md_file,;t t
24694s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24695s,@out_file@,$out_file,;t t
24696s,@out_object_file@,$out_object_file,;t t
24697s,@thread_file@,$thread_file,;t t
24698s,@tm_file_list@,$tm_file_list,;t t
24699s,@tm_include_list@,$tm_include_list,;t t
24700s,@tm_defines@,$tm_defines,;t t
24701s,@tm_p_file_list@,$tm_p_file_list,;t t
24702s,@tm_p_include_list@,$tm_p_include_list,;t t
24703s,@xm_file_list@,$xm_file_list,;t t
24704s,@xm_include_list@,$xm_include_list,;t t
24705s,@xm_defines@,$xm_defines,;t t
24706s,@c_target_objs@,$c_target_objs,;t t
24707s,@cxx_target_objs@,$cxx_target_objs,;t t
c776a6d0 24708s,@fortran_target_objs@,$fortran_target_objs,;t t
b61ff9c8
BS
24709s,@target_cpu_default@,$target_cpu_default,;t t
24710s,@GMPLIBS@,$GMPLIBS,;t t
24711s,@GMPINC@,$GMPINC,;t t
24712s,@LIBOBJS@,$LIBOBJS,;t t
24713s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24714/@language_hooks@/r $language_hooks
24715s,@language_hooks@,,;t t
24716CEOF
24717
24718_ACEOF
24719
24720 cat >>$CONFIG_STATUS <<\_ACEOF
24721 # Split the substitutions into bite-sized pieces for seds with
24722 # small command number limits, like on Digital OSF/1 and HP-UX.
24723 ac_max_sed_lines=48
24724 ac_sed_frag=1 # Number of current file.
24725 ac_beg=1 # First line for current file.
24726 ac_end=$ac_max_sed_lines # Line after last line for current file.
24727 ac_more_lines=:
24728 ac_sed_cmds=
24729 while $ac_more_lines; do
24730 if test $ac_beg -gt 1; then
24731 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24732 else
24733 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24734 fi
24735 if test ! -s $tmp/subs.frag; then
24736 ac_more_lines=false
24737 else
24738 # The purpose of the label and of the branching condition is to
24739 # speed up the sed processing (if there are no `@' at all, there
24740 # is no need to browse any of the substitutions).
24741 # These are the two extra sed commands mentioned above.
24742 (echo ':t
24743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24744 if test -z "$ac_sed_cmds"; then
24745 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24746 else
24747 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24748 fi
24749 ac_sed_frag=`expr $ac_sed_frag + 1`
24750 ac_beg=$ac_end
24751 ac_end=`expr $ac_end + $ac_max_sed_lines`
24752 fi
24753 done
24754 if test -z "$ac_sed_cmds"; then
24755 ac_sed_cmds=cat
1a4b763e 24756 fi
b61ff9c8 24757fi # test -n "$CONFIG_FILES"
1a4b763e 24758
1a4b763e 24759_ACEOF
ba479fd2 24760cat >>$CONFIG_STATUS <<\_ACEOF
b61ff9c8
BS
24761for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24762 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24763 case $ac_file in
24764 - | *:- | *:-:* ) # input from stdin
24765 cat >$tmp/stdin
24766 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24767 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24768 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24769 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24770 * ) ac_file_in=$ac_file.in ;;
703d89ab
ZW
24771 esac
24772
b61ff9c8
BS
24773 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24774 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
ba479fd2 24775$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
86da66b5
HPN
24776 X"$ac_file" : 'X\(//\)[^/]' \| \
24777 X"$ac_file" : 'X\(//\)$' \| \
b61ff9c8
BS
24778 X"$ac_file" : 'X\(/\)' \| \
24779 . : '\(.\)' 2>/dev/null ||
ba479fd2 24780echo X"$ac_file" |
b61ff9c8
BS
24781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24783 /^X\(\/\/\)$/{ s//\1/; q; }
24784 /^X\(\/\).*/{ s//\1/; q; }
24785 s/.*/./; q'`
24786 { if $as_mkdir_p; then
24787 mkdir -p "$ac_dir"
24788 else
24789 as_dir="$ac_dir"
ba479fd2 24790 as_dirs=
b61ff9c8
BS
24791 while test ! -d "$as_dir"; do
24792 as_dirs="$as_dir $as_dirs"
24793 as_dir=`(dirname "$as_dir") 2>/dev/null ||
ba479fd2 24794$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
86da66b5
HPN
24795 X"$as_dir" : 'X\(//\)[^/]' \| \
24796 X"$as_dir" : 'X\(//\)$' \| \
b61ff9c8
BS
24797 X"$as_dir" : 'X\(/\)' \| \
24798 . : '\(.\)' 2>/dev/null ||
ba479fd2 24799echo X"$as_dir" |
b61ff9c8
BS
24800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24801 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24802 /^X\(\/\/\)$/{ s//\1/; q; }
24803 /^X\(\/\).*/{ s//\1/; q; }
24804 s/.*/./; q'`
ba479fd2 24805 done
b61ff9c8
BS
24806 test ! -n "$as_dirs" || mkdir $as_dirs
24807 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24808echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
ba479fd2 24809 { (exit 1); exit 1; }; }; }
b61ff9c8 24810
ba479fd2
NN
24811 ac_builddir=.
24812
b61ff9c8 24813if test "$ac_dir" != .; then
ba479fd2 24814 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b61ff9c8
BS
24815 # A "../" for each directory in $ac_dir_suffix.
24816 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24817else
24818 ac_dir_suffix= ac_top_builddir=
24819fi
ba479fd2
NN
24820
24821case $srcdir in
b61ff9c8 24822 .) # No --srcdir option. We are building in place.
ba479fd2 24823 ac_srcdir=.
b61ff9c8
BS
24824 if test -z "$ac_top_builddir"; then
24825 ac_top_srcdir=.
24826 else
24827 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24828 fi ;;
24829 [\\/]* | ?:[\\/]* ) # Absolute path.
ba479fd2 24830 ac_srcdir=$srcdir$ac_dir_suffix;
b61ff9c8
BS
24831 ac_top_srcdir=$srcdir ;;
24832 *) # Relative path.
24833 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24834 ac_top_srcdir=$ac_top_builddir$srcdir ;;
ba479fd2 24835esac
ba479fd2 24836
b61ff9c8
BS
24837# Do not use `cd foo && pwd` to compute absolute paths, because
24838# the directories may not exist.
24839case `pwd` in
24840.) ac_abs_builddir="$ac_dir";;
24841*)
24842 case "$ac_dir" in
24843 .) ac_abs_builddir=`pwd`;;
24844 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24845 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24846 esac;;
24847esac
24848case $ac_abs_builddir in
24849.) ac_abs_top_builddir=${ac_top_builddir}.;;
24850*)
24851 case ${ac_top_builddir}. in
24852 .) ac_abs_top_builddir=$ac_abs_builddir;;
24853 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24854 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24855 esac;;
24856esac
24857case $ac_abs_builddir in
24858.) ac_abs_srcdir=$ac_srcdir;;
24859*)
24860 case $ac_srcdir in
24861 .) ac_abs_srcdir=$ac_abs_builddir;;
24862 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24863 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24864 esac;;
24865esac
24866case $ac_abs_builddir in
24867.) ac_abs_top_srcdir=$ac_top_srcdir;;
24868*)
24869 case $ac_top_srcdir in
24870 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24871 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24872 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24873 esac;;
24874esac
703d89ab 24875
ab22c1fa 24876
1a4b763e 24877
b61ff9c8
BS
24878 if test x"$ac_file" != x-; then
24879 { echo "$as_me:$LINENO: creating $ac_file" >&5
24880echo "$as_me: creating $ac_file" >&6;}
24881 rm -f "$ac_file"
24882 fi
24883 # Let's still pretend it is `configure' which instantiates (i.e., don't
24884 # use $as_me), people would be surprised to read:
24885 # /* config.h. Generated by config.status. */
24886 if test x"$ac_file" = x-; then
24887 configure_input=
24888 else
24889 configure_input="$ac_file. "
24890 fi
24891 configure_input=$configure_input"Generated from `echo $ac_file_in |
24892 sed 's,.*/,,'` by configure."
24893
24894 # First look for the input files in the build tree, otherwise in the
24895 # src tree.
24896 ac_file_inputs=`IFS=:
24897 for f in $ac_file_in; do
24898 case $f in
24899 -) echo $tmp/stdin ;;
24900 [\\/$]*)
24901 # Absolute (can't be DOS-style, as IFS=:)
24902 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24903echo "$as_me: error: cannot find input file: $f" >&2;}
24904 { (exit 1); exit 1; }; }
24905 echo "$f";;
24906 *) # Relative
24907 if test -f "$f"; then
24908 # Build tree
24909 echo "$f"
24910 elif test -f "$srcdir/$f"; then
24911 # Source tree
24912 echo "$srcdir/$f"
24913 else
24914 # /dev/null tree
24915 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24916echo "$as_me: error: cannot find input file: $f" >&2;}
24917 { (exit 1); exit 1; }; }
24918 fi;;
24919 esac
24920 done` || { (exit 1); exit 1; }
a6ccdbab 24921_ACEOF
ba479fd2
NN
24922cat >>$CONFIG_STATUS <<_ACEOF
24923 sed "$ac_vpsub
24924$extrasub
24925_ACEOF
24926cat >>$CONFIG_STATUS <<\_ACEOF
24927:t
24928/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b61ff9c8
BS
24929s,@configure_input@,$configure_input,;t t
24930s,@srcdir@,$ac_srcdir,;t t
24931s,@abs_srcdir@,$ac_abs_srcdir,;t t
24932s,@top_srcdir@,$ac_top_srcdir,;t t
24933s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24934s,@builddir@,$ac_builddir,;t t
24935s,@abs_builddir@,$ac_abs_builddir,;t t
24936s,@top_builddir@,$ac_top_builddir,;t t
24937s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24938" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24939 rm -f $tmp/stdin
24940 if test x"$ac_file" != x-; then
24941 mv $tmp/out $ac_file
24942 else
24943 cat $tmp/out
24944 rm -f $tmp/out
24945 fi
24946
24947 # Run the commands associated with the file.
be0fe523 24948 case $ac_file in
b61ff9c8
BS
24949 as ) chmod +x as ;;
24950 collect-ld ) chmod +x collect-ld ;;
24951 nm ) chmod +x nm ;;
be0fe523 24952 esac
b61ff9c8
BS
24953done
24954_ACEOF
24955cat >>$CONFIG_STATUS <<\_ACEOF
24956
24957#
24958# CONFIG_HEADER section.
24959#
24960
24961# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24962# NAME is the cpp macro being defined and VALUE is the value it is being given.
24963#
24964# ac_d sets the value in "#define NAME VALUE" lines.
24965ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24966ac_dB='[ ].*$,\1#\2'
a3bba767 24967ac_dC=' '
b61ff9c8
BS
24968ac_dD=',;t'
24969# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24970ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24971ac_uB='$,\1#\2define\3'
24972ac_uC=' '
24973ac_uD=',;t'
24974
24975for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24976 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24977 case $ac_file in
24978 - | *:- | *:-:* ) # input from stdin
24979 cat >$tmp/stdin
24980 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24981 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24982 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24983 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24984 * ) ac_file_in=$ac_file.in ;;
24985 esac
24986
24987 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24988echo "$as_me: creating $ac_file" >&6;}
24989
24990 # First look for the input files in the build tree, otherwise in the
24991 # src tree.
24992 ac_file_inputs=`IFS=:
24993 for f in $ac_file_in; do
24994 case $f in
24995 -) echo $tmp/stdin ;;
24996 [\\/$]*)
24997 # Absolute (can't be DOS-style, as IFS=:)
24998 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24999echo "$as_me: error: cannot find input file: $f" >&2;}
25000 { (exit 1); exit 1; }; }
25001 # Do quote $f, to prevent DOS paths from being IFS'd.
25002 echo "$f";;
25003 *) # Relative
25004 if test -f "$f"; then
25005 # Build tree
25006 echo "$f"
25007 elif test -f "$srcdir/$f"; then
25008 # Source tree
25009 echo "$srcdir/$f"
25010 else
25011 # /dev/null tree
25012 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25013echo "$as_me: error: cannot find input file: $f" >&2;}
25014 { (exit 1); exit 1; }; }
25015 fi;;
25016 esac
25017 done` || { (exit 1); exit 1; }
25018 # Remove the trailing spaces.
25019 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25020
25021_ACEOF
25022
25023# Transform confdefs.h into two sed scripts, `conftest.defines' and
25024# `conftest.undefs', that substitutes the proper values into
25025# config.h.in to produce config.h. The first handles `#define'
25026# templates, and the second `#undef' templates.
25027# And first: Protect against being on the right side of a sed subst in
25028# config.status. Protect against being in an unquoted here document
25029# in config.status.
25030rm -f conftest.defines conftest.undefs
25031# Using a here document instead of a string reduces the quoting nightmare.
25032# Putting comments in sed scripts is not portable.
25033#
25034# `end' is used to avoid that the second main sed command (meant for
25035# 0-ary CPP macros) applies to n-ary macro definitions.
25036# See the Autoconf documentation for `clear'.
25037cat >confdef2sed.sed <<\_ACEOF
25038s/[\\&,]/\\&/g
25039s,[\\$`],\\&,g
25040t clear
25041: clear
25042s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25043t end
25044s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25045: end
25046_ACEOF
25047# If some macros were called several times there might be several times
25048# the same #defines, which is useless. Nevertheless, we may not want to
25049# sort them, since we want the *last* AC-DEFINE to be honored.
25050uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25051sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25052rm -f confdef2sed.sed
25053
25054# This sed command replaces #undef with comments. This is necessary, for
861bb6c1
JL
25055# example, in the case of _POSIX_SOURCE, which is predefined and required
25056# on some systems where configure will not decide to define it.
b61ff9c8
BS
25057cat >>conftest.undefs <<\_ACEOF
25058s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25059_ACEOF
25060
25061# Break up conftest.defines because some shells have a limit on the size
25062# of here documents, and old seds have small limits too (100 cmds).
25063echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25064echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25065echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25066echo ' :' >>$CONFIG_STATUS
25067rm -f conftest.tail
25068while grep . conftest.defines >/dev/null
ba479fd2 25069do
b61ff9c8
BS
25070 # Write a limited-size here document to $tmp/defines.sed.
25071 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25072 # Speed up: don't consider the non `#define' lines.
25073 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25074 # Work around the forget-to-reset-the-flag bug.
25075 echo 't clr' >>$CONFIG_STATUS
25076 echo ': clr' >>$CONFIG_STATUS
25077 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
ba479fd2 25078 echo 'CEOF
b61ff9c8
BS
25079 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25080 rm -f $tmp/in
25081 mv $tmp/out $tmp/in
25082' >>$CONFIG_STATUS
25083 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
ba479fd2
NN
25084 rm -f conftest.defines
25085 mv conftest.tail conftest.defines
25086done
b61ff9c8
BS
25087rm -f conftest.defines
25088echo ' fi # grep' >>$CONFIG_STATUS
25089echo >>$CONFIG_STATUS
25090
25091# Break up conftest.undefs because some shells have a limit on the size
25092# of here documents, and old seds have small limits too (100 cmds).
25093echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25094rm -f conftest.tail
25095while grep . conftest.undefs >/dev/null
25096do
25097 # Write a limited-size here document to $tmp/undefs.sed.
25098 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25099 # Speed up: don't consider the non `#undef'
25100 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25101 # Work around the forget-to-reset-the-flag bug.
25102 echo 't clr' >>$CONFIG_STATUS
25103 echo ': clr' >>$CONFIG_STATUS
25104 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25105 echo 'CEOF
25106 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25107 rm -f $tmp/in
25108 mv $tmp/out $tmp/in
25109' >>$CONFIG_STATUS
25110 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25111 rm -f conftest.undefs
25112 mv conftest.tail conftest.undefs
25113done
25114rm -f conftest.undefs
ba479fd2
NN
25115
25116cat >>$CONFIG_STATUS <<\_ACEOF
b61ff9c8
BS
25117 # Let's still pretend it is `configure' which instantiates (i.e., don't
25118 # use $as_me), people would be surprised to read:
25119 # /* config.h. Generated by config.status. */
25120 if test x"$ac_file" = x-; then
25121 echo "/* Generated by configure. */" >$tmp/config.h
25122 else
25123 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25124 fi
25125 cat $tmp/in >>$tmp/config.h
25126 rm -f $tmp/in
ba479fd2 25127 if test x"$ac_file" != x-; then
b61ff9c8 25128 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
ba479fd2
NN
25129 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25130echo "$as_me: $ac_file is unchanged" >&6;}
25131 else
b61ff9c8
BS
25132 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25133$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25134 X"$ac_file" : 'X\(//\)[^/]' \| \
25135 X"$ac_file" : 'X\(//\)$' \| \
25136 X"$ac_file" : 'X\(/\)' \| \
25137 . : '\(.\)' 2>/dev/null ||
25138echo X"$ac_file" |
25139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25141 /^X\(\/\/\)$/{ s//\1/; q; }
25142 /^X\(\/\).*/{ s//\1/; q; }
25143 s/.*/./; q'`
25144 { if $as_mkdir_p; then
25145 mkdir -p "$ac_dir"
25146 else
25147 as_dir="$ac_dir"
25148 as_dirs=
25149 while test ! -d "$as_dir"; do
25150 as_dirs="$as_dir $as_dirs"
25151 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25152$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25153 X"$as_dir" : 'X\(//\)[^/]' \| \
25154 X"$as_dir" : 'X\(//\)$' \| \
25155 X"$as_dir" : 'X\(/\)' \| \
25156 . : '\(.\)' 2>/dev/null ||
25157echo X"$as_dir" |
25158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25160 /^X\(\/\/\)$/{ s//\1/; q; }
25161 /^X\(\/\).*/{ s//\1/; q; }
25162 s/.*/./; q'`
25163 done
25164 test ! -n "$as_dirs" || mkdir $as_dirs
25165 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25166echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25167 { (exit 1); exit 1; }; }; }
25168
ba479fd2 25169 rm -f $ac_file
b61ff9c8 25170 mv $tmp/config.h $ac_file
ba479fd2
NN
25171 fi
25172 else
b61ff9c8
BS
25173 cat $tmp/config.h
25174 rm -f $tmp/config.h
ba479fd2 25175 fi
b61ff9c8
BS
25176done
25177_ACEOF
25178cat >>$CONFIG_STATUS <<\_ACEOF
2f41c1d6 25179
b61ff9c8
BS
25180#
25181# CONFIG_COMMANDS section.
25182#
25183for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25184 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25185 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25186 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25187$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25188 X"$ac_dest" : 'X\(//\)[^/]' \| \
25189 X"$ac_dest" : 'X\(//\)$' \| \
25190 X"$ac_dest" : 'X\(/\)' \| \
25191 . : '\(.\)' 2>/dev/null ||
25192echo X"$ac_dest" |
25193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25195 /^X\(\/\/\)$/{ s//\1/; q; }
25196 /^X\(\/\).*/{ s//\1/; q; }
25197 s/.*/./; q'`
25198 { if $as_mkdir_p; then
25199 mkdir -p "$ac_dir"
25200 else
25201 as_dir="$ac_dir"
25202 as_dirs=
25203 while test ! -d "$as_dir"; do
25204 as_dirs="$as_dir $as_dirs"
25205 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25207 X"$as_dir" : 'X\(//\)[^/]' \| \
25208 X"$as_dir" : 'X\(//\)$' \| \
25209 X"$as_dir" : 'X\(/\)' \| \
25210 . : '\(.\)' 2>/dev/null ||
25211echo X"$as_dir" |
25212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25214 /^X\(\/\/\)$/{ s//\1/; q; }
25215 /^X\(\/\).*/{ s//\1/; q; }
25216 s/.*/./; q'`
25217 done
25218 test ! -n "$as_dirs" || mkdir $as_dirs
25219 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25220echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25221 { (exit 1); exit 1; }; }; }
2f41c1d6 25222
b61ff9c8 25223 ac_builddir=.
2f41c1d6 25224
b61ff9c8
BS
25225if test "$ac_dir" != .; then
25226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25227 # A "../" for each directory in $ac_dir_suffix.
25228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25229else
25230 ac_dir_suffix= ac_top_builddir=
25231fi
25232
25233case $srcdir in
25234 .) # No --srcdir option. We are building in place.
25235 ac_srcdir=.
25236 if test -z "$ac_top_builddir"; then
25237 ac_top_srcdir=.
25238 else
25239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25240 fi ;;
25241 [\\/]* | ?:[\\/]* ) # Absolute path.
25242 ac_srcdir=$srcdir$ac_dir_suffix;
25243 ac_top_srcdir=$srcdir ;;
25244 *) # Relative path.
25245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25247esac
25248
25249# Do not use `cd foo && pwd` to compute absolute paths, because
25250# the directories may not exist.
25251case `pwd` in
25252.) ac_abs_builddir="$ac_dir";;
25253*)
25254 case "$ac_dir" in
25255 .) ac_abs_builddir=`pwd`;;
25256 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25257 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25258 esac;;
25259esac
25260case $ac_abs_builddir in
25261.) ac_abs_top_builddir=${ac_top_builddir}.;;
25262*)
25263 case ${ac_top_builddir}. in
25264 .) ac_abs_top_builddir=$ac_abs_builddir;;
25265 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25266 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25267 esac;;
25268esac
25269case $ac_abs_builddir in
25270.) ac_abs_srcdir=$ac_srcdir;;
25271*)
25272 case $ac_srcdir in
25273 .) ac_abs_srcdir=$ac_abs_builddir;;
25274 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25275 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25276 esac;;
25277esac
25278case $ac_abs_builddir in
25279.) ac_abs_top_srcdir=$ac_top_srcdir;;
25280*)
25281 case $ac_top_srcdir in
25282 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25283 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25284 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25285 esac;;
25286esac
25287
25288
25289 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25290echo "$as_me: executing $ac_dest commands" >&6;}
25291 case $ac_dest in
25292 default )
f1faaabd
NN
25293case ${CONFIG_HEADERS} in
25294 *auto-host.h:config.in*)
25295 echo > cstamp-h ;;
861bb6c1 25296esac
2ed26f6b 25297# Make sure all the subdirs exist.
3b620440 25298for d in $subdirs doc build
2ed26f6b 25299do
2ed26f6b 25300 test -d $d || mkdir $d
2ed26f6b 25301done
ba479fd2
NN
25302 ;;
25303 esac
b61ff9c8
BS
25304done
25305_ACEOF
cafe096b 25306
b61ff9c8 25307cat >>$CONFIG_STATUS <<\_ACEOF
ba479fd2
NN
25308
25309{ (exit 0); exit 0; }
25310_ACEOF
861bb6c1 25311chmod +x $CONFIG_STATUS
ba479fd2
NN
25312ac_clean_files=$ac_clean_files_save
25313
25314
25315# configure is writing to config.log, and then calls config.status.
25316# config.status does its own redirection, appending to config.log.
25317# Unfortunately, on DOS this fails, as config.log is still kept open
25318# by configure, so config.status won't be able to write to it; its
25319# output is simply discarded. So we exec the FD to /dev/null,
25320# effectively closing config.log, so it can be properly (re)opened and
25321# appended to by config.status. When coming back to configure, we
25322# need to make the FD available again.
25323if test "$no_create" != yes; then
25324 ac_cs_success=:
25325 ac_config_status_args=
25326 test "$silent" = yes &&
25327 ac_config_status_args="$ac_config_status_args --quiet"
25328 exec 5>/dev/null
25329 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25330 exec 5>>config.log
25331 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25332 # would make configure fail if this is the last instruction.
25333 $ac_cs_success || { (exit 1); exit 1; }
25334fi
861bb6c1 25335