2008-07-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
[official-gcc.git] / gcc / configure
blobf2b15d192e762ae9375a1301ac0a168f8b66cdd9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for 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
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if 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=:
96 rm -f conf$$.sh
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
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `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= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
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
283 if 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
293 done
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
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'
305 # So, first we look for a working echo in the user's PATH.
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
317 done
318 IFS="$lt_save_ifs"
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
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=:
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
366 prev="$cmd"
367 done
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
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.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
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}
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="tree.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_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'
462 ac_subst_files='language_hooks'
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
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.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
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=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
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 ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
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=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
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 ;;
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=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
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=*)
661 program_prefix=$ac_optarg ;;
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=*)
668 program_suffix=$ac_optarg ;;
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=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
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=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
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=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
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'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
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=*)
767 x_includes=$ac_optarg ;;
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=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
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}
799 esac
800 done
802 if test -n "$ac_prev"; then
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; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
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
829 done
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.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if 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
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
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
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923 ac_env_GMPLIBS_set=${GMPLIBS+set}
924 ac_env_GMPLIBS_value=$GMPLIBS
925 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
926 ac_cv_env_GMPLIBS_value=$GMPLIBS
927 ac_env_GMPINC_set=${GMPINC+set}
928 ac_env_GMPINC_value=$GMPINC
929 ac_cv_env_GMPINC_set=${GMPINC+set}
930 ac_cv_env_GMPINC_value=$GMPINC
933 # Report the --help message.
935 if 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.
941 Usage: $0 [OPTION]... [VAR=VALUE]...
943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
944 VAR=VALUE. See below for descriptions of some of the useful variables.
946 Defaults for the options are specified in brackets.
948 Configuration:
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 \`..']
959 _ACEOF
961 cat <<_ACEOF
962 Installation directories:
963 --prefix=PREFIX install architecture-independent files in PREFIX
964 [$ac_default_prefix]
965 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 [PREFIX]
968 By default, \`make install' will install all the files in
969 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
970 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971 for instance \`--prefix=\$HOME'.
973 For better control, use the options below.
975 Fine 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]
979 --datadir=DIR read-only architecture-independent data [PREFIX/share]
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]
986 --infodir=DIR info documentation [PREFIX/info]
987 --mandir=DIR man documentation [PREFIX/man]
988 _ACEOF
990 cat <<\_ACEOF
992 Program 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
997 System 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
1004 if test -n "$ac_init_help"; then
1006 cat <<\_ACEOF
1008 Optional Features:
1009 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1010 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
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.
1015 --enable-werror-always enable -Werror despite compiler version
1016 --enable-checking=LIST
1017 enable expensive run-time checks. With LIST,
1018 enable only specific categories of checks.
1019 Categories are: yes,no,all,none,release.
1020 Flags are: assert,df,fold,gc,gcac,misc,
1021 rtlflag,rtl,runtime,tree,valgrind,types.
1022 --enable-coverage=LEVEL
1023 enable compiler's code coverage collection.
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++
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
1035 --enable-fixed-point enable fixed-point arithmetic extension to C
1036 --enable-threads enable thread usage for target GCC
1037 --enable-threads=LIB use LIB thread package for target GCC
1038 --enable-tls enable or disable generation of tls code
1039 overriding the assembler check for tls support
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
1044 --enable-languages=LIST specify which front-ends to build
1045 --disable-rpath do not hardcode runtime library paths
1046 --enable-initfini-array use .init_array/.fini_array sections
1047 --enable-sjlj-exceptions
1048 arrange to use setjmp/longjmp exception handling
1049 --enable-secureplt enable -msecure-plt by default for PowerPC
1050 --enable-cld enable -mcld by default for 32bit x86
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
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)
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
1072 Optional Packages:
1073 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1074 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1075 --with-build-libsubdir=DIR Directory where to find libraries for build system
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)
1084 --with-demangler-in-ld try to use demangler in GNU ld.
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
1089 --with-build-sysroot=sysroot
1090 use sysroot as the system root during the build
1091 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
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
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
1097 --with-system-libunwind use installed libunwind
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]
1101 --with-long-double-128 Use 128-bit long double by default.
1102 --with-gc={page,zone} choose the garbage collection mechanism to use
1103 with the compiler
1104 --with-system-zlib use installed libz
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]
1110 Some 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>
1115 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116 headers in a nonstandard directory <include dir>
1117 CPP C preprocessor
1118 GMPLIBS How to link GMP
1119 GMPINC How to find GMP include files
1121 Use these variables to override the choices made by `configure' or to help
1122 it to find libraries and programs with nonstandard names/locations.
1124 _ACEOF
1127 if test "$ac_init_help" = "recursive"; then
1128 # If there are subdirs, report their specific --help.
1129 ac_popdir=`pwd`
1130 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1131 test -d $ac_dir || continue
1132 ac_builddir=.
1134 if test "$ac_dir" != .; then
1135 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1136 # A "../" for each directory in $ac_dir_suffix.
1137 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1138 else
1139 ac_dir_suffix= ac_top_builddir=
1142 case $srcdir in
1143 .) # No --srcdir option. We are building in place.
1144 ac_srcdir=.
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.
1151 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
1156 esac
1158 # Do not use `cd foo && pwd` to compute absolute paths, because
1159 # the directories may not exist.
1160 case `pwd` in
1161 .) ac_abs_builddir="$ac_dir";;
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;;
1168 esac
1169 case $ac_abs_builddir in
1170 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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;;
1177 esac
1178 case $ac_abs_builddir in
1179 .) ac_abs_srcdir=$ac_srcdir;;
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;;
1186 esac
1187 case $ac_abs_builddir in
1188 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
1195 esac
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
1209 else
1210 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1212 cd $ac_popdir
1213 done
1216 test -n "$ac_init_help" && exit 0
1217 if $ac_init_version; then
1218 cat <<\_ACEOF
1220 Copyright (C) 2003 Free Software Foundation, Inc.
1221 This configure script is free software; the Free Software Foundation
1222 gives unlimited permission to copy, distribute and modify it.
1223 _ACEOF
1224 exit 0
1226 exec 5>config.log
1227 cat >&5 <<_ACEOF
1228 This file contains any messages produced by compilers while
1229 running configure, to aid debugging if configure makes a mistake.
1231 It was created by $as_me, which was
1232 generated by GNU Autoconf 2.59. Invocation command line was
1234 $ $0 $@
1236 _ACEOF
1238 cat <<_ASUNAME
1239 ## --------- ##
1240 ## Platform. ##
1241 ## --------- ##
1243 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1244 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1245 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1246 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1247 uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
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`
1255 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
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`
1260 _ASUNAME
1262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1263 for as_dir in $PATH
1265 IFS=$as_save_IFS
1266 test -z "$as_dir" && as_dir=.
1267 echo "PATH: $as_dir"
1268 done
1270 } >&5
1272 cat >&5 <<_ACEOF
1275 ## ----------- ##
1276 ## Core tests. ##
1277 ## ----------- ##
1279 _ACEOF
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.
1287 ac_configure_args=
1288 ac_configure_args0=
1289 ac_configure_args1=
1290 ac_sep=
1291 ac_must_keep_next=false
1292 for ac_pass in 1 2
1294 for ac_arg
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 ;;
1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
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'" ;;
1307 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1308 if test $ac_must_keep_next = true; then
1309 ac_must_keep_next=false # Got value, back to normal.
1310 else
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
1320 -* ) ac_must_keep_next=true ;;
1321 esac
1323 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1324 # Get rid of the leading space.
1325 ac_sep=" "
1327 esac
1328 done
1329 done
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; }
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.
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.
1338 trap 'exit_status=$?
1339 # Save into config.log some information that might help in debugging.
1341 echo
1343 cat <<\_ASBOX
1344 ## ---------------- ##
1345 ## Cache variables. ##
1346 ## ---------------- ##
1347 _ASBOX
1348 echo
1349 # The following way of writing the cache mishandles newlines in values,
1351 (set) 2>&1 |
1352 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1353 *ac_space=\ *)
1354 sed -n \
1355 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1359 sed -n \
1360 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1362 esac;
1364 echo
1366 cat <<\_ASBOX
1367 ## ----------------- ##
1368 ## Output variables. ##
1369 ## ----------------- ##
1370 _ASBOX
1371 echo
1372 for ac_var in $ac_subst_vars
1374 eval ac_val=$`echo $ac_var`
1375 echo "$ac_var='"'"'$ac_val'"'"'"
1376 done | sort
1377 echo
1379 if test -n "$ac_subst_files"; then
1380 cat <<\_ASBOX
1381 ## ------------- ##
1382 ## Output files. ##
1383 ## ------------- ##
1384 _ASBOX
1385 echo
1386 for ac_var in $ac_subst_files
1388 eval ac_val=$`echo $ac_var`
1389 echo "$ac_var='"'"'$ac_val'"'"'"
1390 done | sort
1391 echo
1394 if test -s confdefs.h; then
1395 cat <<\_ASBOX
1396 ## ----------- ##
1397 ## confdefs.h. ##
1398 ## ----------- ##
1399 _ASBOX
1400 echo
1401 sed "/^$/d" confdefs.h | sort
1402 echo
1404 test "$ac_signal" != 0 &&
1405 echo "$as_me: caught signal $ac_signal"
1406 echo "$as_me: exit $exit_status"
1407 } >&5
1408 rm -f core *.core &&
1409 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1410 exit $exit_status
1412 for ac_signal in 1 2 13 15; do
1413 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1414 done
1415 ac_signal=0
1417 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1418 rm -rf conftest* confdefs.h
1419 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1420 echo >confdefs.h
1422 # Predefined preprocessor variables.
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_NAME "$PACKAGE_NAME"
1426 _ACEOF
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1431 _ACEOF
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1436 _ACEOF
1439 cat >>confdefs.h <<_ACEOF
1440 #define PACKAGE_STRING "$PACKAGE_STRING"
1441 _ACEOF
1444 cat >>confdefs.h <<_ACEOF
1445 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1446 _ACEOF
1449 # Let the site file select an alternate cache file if it wants to.
1450 # Prefer explicitly selected file to automatically selected ones.
1451 if 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"
1458 for ac_site_file in $CONFIG_SITE; do
1459 if test -r "$ac_site_file"; then
1460 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1461 echo "$as_me: loading site script $ac_site_file" >&6;}
1462 sed 's/^/| /' "$ac_site_file" >&5
1463 . "$ac_site_file"
1465 done
1467 if 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
1472 echo "$as_me: loading cache $cache_file" >&6;}
1473 case $cache_file in
1474 [\\/]* | ?:[\\/]* ) . $cache_file;;
1475 *) . ./$cache_file;;
1476 esac
1478 else
1479 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1480 echo "$as_me: creating cache $cache_file" >&6;}
1481 >$cache_file
1484 # Check that the precious variables saved in the cache have kept the same
1485 # value.
1486 ac_cache_corrupted=false
1487 for ac_var in `(set) 2>&1 |
1488 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1489 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1490 eval ac_new_set=\$ac_env_${ac_var}_set
1491 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1492 eval ac_new_val="\$ac_env_${ac_var}_value"
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
1496 echo "$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
1500 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1501 ac_cache_corrupted=: ;;
1502 ,);;
1504 if test "x$ac_old_val" != "x$ac_new_val"; then
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
1510 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1511 ac_cache_corrupted=:
1512 else
1513 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1514 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1515 eval $ac_var=\$ac_old_val
1517 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1518 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1519 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1520 echo "$as_me: current value: \`$ac_new_val'" >&2;}
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
1526 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1527 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
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
1535 done
1536 if $ac_cache_corrupted; then
1537 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1538 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1539 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1540 echo "$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
1542 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1543 { (exit 1); exit 1; }; }
1546 ac_ext=c
1547 ac_cpp='$CPP $CPPFLAGS'
1548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1574 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1577 gcc_version=`cat $srcdir/BASE-VER`
1579 # Determine the host, build, and target systems
1580 ac_aux_dir=
1581 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1582 if test -f $ac_dir/install-sh; then
1583 ac_aux_dir=$ac_dir
1584 ac_install_sh="$ac_aux_dir/install-sh -c"
1585 break
1586 elif test -f $ac_dir/install.sh; then
1587 ac_aux_dir=$ac_dir
1588 ac_install_sh="$ac_aux_dir/install.sh -c"
1589 break
1590 elif test -f $ac_dir/shtool; then
1591 ac_aux_dir=$ac_dir
1592 ac_install_sh="$ac_aux_dir/shtool install -c"
1593 break
1595 done
1596 if test -z "$ac_aux_dir"; then
1597 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1598 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1599 { (exit 1); exit 1; }; }
1601 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1602 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1603 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1605 # Make sure we can run config.sub.
1606 $ac_config_sub sun4 >/dev/null 2>&1 ||
1607 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1608 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1609 { (exit 1); exit 1; }; }
1611 echo "$as_me:$LINENO: checking build system type" >&5
1612 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1613 if test "${ac_cv_build+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616 ac_cv_build_alias=$build_alias
1617 test -z "$ac_cv_build_alias" &&
1618 ac_cv_build_alias=`$ac_config_guess`
1619 test -z "$ac_cv_build_alias" &&
1620 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1621 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1622 { (exit 1); exit 1; }; }
1623 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1624 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1625 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1626 { (exit 1); exit 1; }; }
1629 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1630 echo "${ECHO_T}$ac_cv_build" >&6
1631 build=$ac_cv_build
1632 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637 echo "$as_me:$LINENO: checking host system type" >&5
1638 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1639 if test "${ac_cv_host+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642 ac_cv_host_alias=$host_alias
1643 test -z "$ac_cv_host_alias" &&
1644 ac_cv_host_alias=$ac_cv_build_alias
1645 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1646 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1647 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1648 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1652 echo "${ECHO_T}$ac_cv_host" >&6
1653 host=$ac_cv_host
1654 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659 echo "$as_me:$LINENO: checking target system type" >&5
1660 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1661 if test "${ac_cv_target+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 ac_cv_target_alias=$target_alias
1665 test "x$ac_cv_target_alias" = "x" &&
1666 ac_cv_target_alias=$ac_cv_host_alias
1667 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1670 { (exit 1); exit 1; }; }
1673 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1674 echo "${ECHO_T}$ac_cv_target" >&6
1675 target=$ac_cv_target
1676 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681 # The aliases save the names the user supplied, while $host etc.
1682 # will get canonicalized.
1683 test -n "$target_alias" &&
1684 test "$program_prefix$program_suffix$program_transform_name" = \
1685 NONENONEs,x,x, &&
1686 program_prefix=${target_alias}-
1688 # Determine the noncanonical target name, for directory use.
1689 case ${build_alias} in
1690 "") build_noncanonical=${build} ;;
1691 *) build_noncanonical=${build_alias} ;;
1692 esac
1694 case ${host_alias} in
1695 "") host_noncanonical=${build_noncanonical} ;;
1696 *) host_noncanonical=${host_alias} ;;
1697 esac
1699 case ${target_alias} in
1700 "") target_noncanonical=${host_noncanonical} ;;
1701 *) target_noncanonical=${target_alias} ;;
1702 esac
1707 # Determine the target- and build-specific subdirectories
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.
1718 # Prefix 'build-' so this never conflicts with target_subdir.
1719 build_subdir="build-${build_noncanonical}"
1721 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1722 if test "${with_build_libsubdir+set}" = set; then
1723 withval="$with_build_libsubdir"
1724 build_libsubdir="$withval"
1725 else
1726 build_libsubdir="$build_subdir"
1728 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1729 if ( test $srcdir = . && test -d gcc ) \
1730 || test -d $srcdir/../host-${host_noncanonical}; then
1731 host_subdir="host-${host_noncanonical}"
1732 else
1733 host_subdir=.
1735 # No prefix.
1736 target_subdir=${target_noncanonical}
1739 # Set program_transform_name
1740 test "$program_prefix" != NONE &&
1741 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1742 # Use a double $ so make ignores it.
1743 test "$program_suffix" != NONE &&
1744 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1745 # Double any \ or $. echo might interpret backslashes.
1746 # By default was `s,x,x', remove it if useless.
1747 cat <<\_ACEOF >conftest.sed
1748 s/[\\$]/&&/g;s/;s,x,x,$//
1749 _ACEOF
1750 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1751 rm conftest.sed
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
1762 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1763 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1764 case ${LIBRARY_PATH} in
1765 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1766 library_path_setting="contains current directory"
1769 library_path_setting="ok"
1771 esac
1772 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1773 echo "${ECHO_T}$library_path_setting" >&6
1774 if test "$library_path_setting" != "ok"; then
1775 { { echo "$as_me:$LINENO: error:
1776 *** LIBRARY_PATH shouldn't contain the current directory when
1777 *** building gcc. Please change the environment variable
1778 *** and run configure again." >&5
1779 echo "$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; }; }
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
1793 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1794 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1795 case ${GCC_EXEC_PREFIX} in
1796 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1797 gcc_exec_prefix_setting="contains current directory"
1800 gcc_exec_prefix_setting="ok"
1802 esac
1803 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1804 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1805 if test "$gcc_exec_prefix_setting" != "ok"; then
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
1810 echo "$as_me: error:
1811 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1812 *** building gcc. Please change the environment variable
1813 *** and run configure again." >&2;}
1814 { (exit 1); exit 1; }; }
1817 # -----------
1818 # Directories
1819 # -----------
1821 # Specify the local prefix
1822 local_prefix=
1824 # Check whether --with-local-prefix or --without-local-prefix was given.
1825 if test "${with_local_prefix+set}" = set; then
1826 withval="$with_local_prefix"
1827 case "${withval}" in
1828 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1829 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1830 { (exit 1); exit 1; }; } ;;
1831 no) ;;
1832 *) local_prefix=$with_local_prefix ;;
1833 esac
1836 # Default local prefix if it is empty
1837 if test x$local_prefix = x; then
1838 local_prefix=/usr/local
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.
1844 gcc_gxx_include_dir=
1845 # Specify the g++ header file directory
1847 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1848 if test "${with_gxx_include_dir+set}" = set; then
1849 withval="$with_gxx_include_dir"
1850 case "${withval}" in
1851 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1852 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1853 { (exit 1); exit 1; }; } ;;
1854 no) ;;
1855 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1856 esac
1859 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1860 if 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
1864 libstdcxx_incdir='include/c++/$(version)'
1865 if test x$host != x$target; then
1866 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1868 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1873 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1874 if test "${with_cpp_install_dir+set}" = set; then
1875 withval="$with_cpp_install_dir"
1876 if test x$withval = xyes; then
1877 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1878 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1879 { (exit 1); exit 1; }; }
1880 elif test x$withval != xno; then
1881 cpp_install_dir=$withval
1885 # We would like to our source tree to be readonly. However when releases or
1886 # pre-releases are generated, the flex/bison generated files as well as the
1887 # various formats of manuals need to be included along with the rest of the
1888 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1889 # just that.
1891 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1892 echo $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.
1894 if test "${enable_generated_files_in_srcdir+set}" = set; then
1895 enableval="$enable_generated_files_in_srcdir"
1896 generated_files_in_srcdir=$enableval
1897 else
1898 generated_files_in_srcdir=no
1901 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1902 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1904 if test "$generated_files_in_srcdir" = "yes"; then
1905 GENINSRC=''
1906 else
1907 GENINSRC='#'
1911 # -------------------
1912 # Find default linker
1913 # -------------------
1915 # With GNU ld
1917 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1918 if test "${with_gnu_ld+set}" = set; then
1919 withval="$with_gnu_ld"
1920 gnu_ld_flag="$with_gnu_ld"
1921 else
1922 gnu_ld_flag=no
1925 # With pre-defined ld
1927 # Check whether --with-ld or --without-ld was given.
1928 if test "${with_ld+set}" = set; then
1929 withval="$with_ld"
1930 DEFAULT_LINKER="$with_ld"
1932 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1933 if test ! -x "$DEFAULT_LINKER"; then
1934 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1935 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1936 { (exit 1); exit 1; }; }
1937 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1938 gnu_ld_flag=yes
1941 cat >>confdefs.h <<_ACEOF
1942 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1943 _ACEOF
1947 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1949 cat >>confdefs.h <<_ACEOF
1950 #define HAVE_GNU_LD $gnu_ld
1951 _ACEOF
1954 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1955 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1956 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1957 if test x"$gnu_ld_flag" = x"no"; then
1958 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1959 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1960 else
1961 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1962 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1964 else
1965 echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1969 # With demangler in GNU ld
1971 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1972 if test "${with_demangler_in_ld+set}" = set; then
1973 withval="$with_demangler_in_ld"
1974 demangler_in_ld="$with_demangler_in_ld"
1975 else
1976 demangler_in_ld=no
1979 # ----------------------
1980 # Find default assembler
1981 # ----------------------
1983 # With GNU as
1985 # Check whether --with-gnu-as or --without-gnu-as was given.
1986 if test "${with_gnu_as+set}" = set; then
1987 withval="$with_gnu_as"
1988 gas_flag="$with_gnu_as"
1989 else
1990 gas_flag=no
1994 # Check whether --with-as or --without-as was given.
1995 if test "${with_as+set}" = set; then
1996 withval="$with_as"
1997 DEFAULT_ASSEMBLER="$with_as"
1999 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2000 if test ! -x "$DEFAULT_ASSEMBLER"; then
2001 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2002 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2003 { (exit 1); exit 1; }; }
2004 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2005 gas_flag=yes
2008 cat >>confdefs.h <<_ACEOF
2009 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2010 _ACEOF
2014 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2016 cat >>confdefs.h <<_ACEOF
2017 #define HAVE_GNU_AS $gnu_as
2018 _ACEOF
2021 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2022 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2023 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2024 if test x"$gas_flag" = x"no"; then
2025 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2026 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2027 else
2028 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2029 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2031 else
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2036 # ---------------
2037 # Find C compiler
2038 # ---------------
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.
2045 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2046 # Autoconf includes it.
2047 rm -f a.out a.exe b.out
2049 # Find the native compiler
2050 ac_ext=c
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055 if 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.
2057 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063 if test -n "$CC"; then
2064 ac_cv_prog_CC="$CC" # Let the user override the test.
2065 else
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2077 done
2078 done
2082 CC=$ac_cv_prog_CC
2083 if test -n "$CC"; then
2084 echo "$as_me:$LINENO: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6
2086 else
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2092 if 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.
2095 set dummy gcc; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 if test -n "$ac_ct_CC"; then
2102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2115 done
2116 done
2120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2121 if test -n "$ac_ct_CC"; then
2122 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2123 echo "${ECHO_T}$ac_ct_CC" >&6
2124 else
2125 echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2129 CC=$ac_ct_CC
2130 else
2131 CC="$ac_cv_prog_CC"
2134 if test -z "$CC"; then
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.
2137 set dummy ${ac_tool_prefix}cc; ac_word=$2
2138 echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140 if test "${ac_cv_prog_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143 if test -n "$CC"; then
2144 ac_cv_prog_CC="$CC" # Let the user override the test.
2145 else
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2157 done
2158 done
2162 CC=$ac_cv_prog_CC
2163 if test -n "$CC"; then
2164 echo "$as_me:$LINENO: result: $CC" >&5
2165 echo "${ECHO_T}$CC" >&6
2166 else
2167 echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6
2172 if 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.
2175 set dummy cc; ac_word=$2
2176 echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181 if test -n "$ac_ct_CC"; then
2182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
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
2195 done
2196 done
2200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2201 if test -n "$ac_ct_CC"; then
2202 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203 echo "${ECHO_T}$ac_ct_CC" >&6
2204 else
2205 echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6
2209 CC=$ac_ct_CC
2210 else
2211 CC="$ac_cv_prog_CC"
2215 if test -z "$CC"; then
2216 # Extract the first word of "cc", so it can be a program name with args.
2217 set dummy cc; ac_word=$2
2218 echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2225 else
2226 ac_prog_rejected=no
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2235 ac_prog_rejected=yes
2236 continue
2238 ac_cv_prog_CC="cc"
2239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 break 2
2242 done
2243 done
2245 if 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
2249 if test $# != 0; then
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
2254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2259 CC=$ac_cv_prog_CC
2260 if test -n "$CC"; then
2261 echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6
2263 else
2264 echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6
2269 if test -z "$CC"; then
2270 if test -n "$ac_tool_prefix"; then
2271 for ac_prog in cl
2273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2275 echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277 if test "${ac_cv_prog_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2294 done
2295 done
2299 CC=$ac_cv_prog_CC
2300 if test -n "$CC"; then
2301 echo "$as_me:$LINENO: result: $CC" >&5
2302 echo "${ECHO_T}$CC" >&6
2303 else
2304 echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2308 test -n "$CC" && break
2309 done
2311 if test -z "$CC"; then
2312 ac_ct_CC=$CC
2313 for ac_prog in cl
2315 # Extract the first word of "$ac_prog", so it can be a program name with args.
2316 set dummy $ac_prog; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 if test -n "$ac_ct_CC"; then
2323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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
2336 done
2337 done
2341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6
2345 else
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2350 test -n "$ac_ct_CC" && break
2351 done
2353 CC=$ac_ct_CC
2359 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2360 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: no acceptable C compiler found in \$PATH
2364 See \`config.log' for more details." >&2;}
2365 { (exit 1); exit 1; }; }; }
2367 # Provide some information about the compiler.
2368 echo "$as_me:$LINENO:" \
2369 "checking for C compiler version" >&5
2370 ac_compiler=`set X $ac_compile; echo $2`
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2372 (eval $ac_compiler --version </dev/null >&5) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2377 (eval $ac_compiler -v </dev/null >&5) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2382 (eval $ac_compiler -V </dev/null >&5) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h. */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2395 main ()
2399 return 0;
2401 _ACEOF
2402 ac_clean_files_save=$ac_clean_files
2403 ac_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.
2407 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2409 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411 (eval $ac_link_default) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; then
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.
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.
2421 ac_cv_exeext=
2422 # b.out is created by i960 compilers.
2423 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2425 test -f "$ac_file" || continue
2426 case $ac_file in
2427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2429 conftest.$ac_ext )
2430 # This is the source file.
2432 [ab].out )
2433 # We found the default executable, but exeext='' is most
2434 # certainly right.
2435 break;;
2436 *.* )
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
2442 break;;
2444 break;;
2445 esac
2446 done
2447 else
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2451 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2452 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2454 See \`config.log' for more details." >&5
2455 echo "$as_me: error: C compiler cannot create executables
2456 See \`config.log' for more details." >&2;}
2457 { (exit 77); exit 77; }; }; }
2460 ac_exeext=$ac_cv_exeext
2461 echo "$as_me:$LINENO: result: $ac_file" >&5
2462 echo "${ECHO_T}$ac_file" >&6
2464 # Check the compiler produces executables we can run. If not, either
2465 # the compiler is broken, or we cross compile.
2466 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2467 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
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.
2470 if test "$cross_compiling" != yes; then
2471 if { ac_try='./$ac_file'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 cross_compiling=no
2478 else
2479 if test "$cross_compiling" = maybe; then
2480 cross_compiling=yes
2481 else
2482 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2483 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2485 If you meant to cross compile, use \`--host'.
2486 See \`config.log' for more details." >&5
2487 echo "$as_me: error: cannot run C compiled programs.
2488 If you meant to cross compile, use \`--host'.
2489 See \`config.log' for more details." >&2;}
2490 { (exit 1); exit 1; }; }; }
2494 echo "$as_me:$LINENO: result: yes" >&5
2495 echo "${ECHO_T}yes" >&6
2497 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2498 ac_clean_files=$ac_clean_files_save
2499 # Check the compiler produces executables we can run. If not, either
2500 # the compiler is broken, or we cross compile.
2501 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2502 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2503 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2504 echo "${ECHO_T}$cross_compiling" >&6
2506 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2507 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2509 (eval $ac_link) 2>&5
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'.
2517 for ac_file in conftest.exe conftest conftest.*; do
2518 test -f "$ac_file" || continue
2519 case $ac_file in
2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2521 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2522 export ac_cv_exeext
2523 break;;
2524 * ) break;;
2525 esac
2526 done
2527 else
2528 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2529 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }; }
2537 rm -f conftest$ac_cv_exeext
2538 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539 echo "${ECHO_T}$ac_cv_exeext" >&6
2541 rm -f conftest.$ac_ext
2542 EXEEXT=$ac_cv_exeext
2543 ac_exeext=$EXEEXT
2544 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2546 if test "${ac_cv_objext+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549 cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h. */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2557 main ()
2561 return 0;
2563 _ACEOF
2564 rm -f conftest.o conftest.obj
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; then
2570 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2571 case $ac_file in
2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2574 break;;
2575 esac
2576 done
2577 else
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2581 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2582 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2584 See \`config.log' for more details." >&5
2585 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2586 See \`config.log' for more details." >&2;}
2587 { (exit 1); exit 1; }; }; }
2590 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2592 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2593 echo "${ECHO_T}$ac_cv_objext" >&6
2594 OBJEXT=$ac_cv_objext
2595 ac_objext=$OBJEXT
2596 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2597 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2598 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2609 main ()
2611 #ifndef __GNUC__
2612 choke me
2613 #endif
2616 return 0;
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
2641 ac_compiler_gnu=yes
2642 else
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 ac_compiler_gnu=no
2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2652 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2653 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2654 GCC=`test $ac_compiler_gnu = yes && echo yes`
2655 ac_test_CFLAGS=${CFLAGS+set}
2656 ac_save_CFLAGS=$CFLAGS
2657 CFLAGS="-g"
2658 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2659 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2660 if test "${ac_cv_prog_cc_g+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h. */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2671 main ()
2675 return 0;
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>conftest.er1
2681 ac_status=$?
2682 grep -v '^ *+' conftest.er1 >conftest.err
2683 rm -f conftest.er1
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
2700 ac_cv_prog_cc_g=yes
2701 else
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2705 ac_cv_prog_cc_g=no
2707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2709 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2710 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2711 if test "$ac_test_CFLAGS" = set; then
2712 CFLAGS=$ac_save_CFLAGS
2713 elif test $ac_cv_prog_cc_g = yes; then
2714 if test "$GCC" = yes; then
2715 CFLAGS="-g -O2"
2716 else
2717 CFLAGS="-g"
2719 else
2720 if test "$GCC" = yes; then
2721 CFLAGS="-O2"
2722 else
2723 CFLAGS=
2726 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2727 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2728 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731 ac_cv_prog_cc_stdc=no
2732 ac_save_CC=$CC
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h. */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
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. */
2744 struct buf { int x; };
2745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2746 static char *e (p, i)
2747 char **p;
2748 int i;
2750 return p[i];
2752 static char *f (char * (*g) (char **, int), char **p, ...)
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;
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. */
2769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2771 int test (int i, double x);
2772 struct s1 {int (*f) (int a);};
2773 struct s2 {int (*f) (double a);};
2774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2775 int argc;
2776 char **argv;
2778 main ()
2780 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2782 return 0;
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__
2792 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2794 CC="$ac_save_CC $ac_arg"
2795 rm -f conftest.$ac_objext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797 (eval $ac_compile) 2>conftest.er1
2798 ac_status=$?
2799 grep -v '^ *+' conftest.er1 >conftest.err
2800 rm -f conftest.er1
2801 cat conftest.err >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
2818 break
2819 else
2820 echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2824 rm -f conftest.err conftest.$ac_objext
2825 done
2826 rm -f conftest.$ac_ext conftest.$ac_objext
2827 CC=$ac_save_CC
2831 case "x$ac_cv_prog_cc_stdc" in
2832 x|xno)
2833 echo "$as_me:$LINENO: result: none needed" >&5
2834 echo "${ECHO_T}none needed" >&6 ;;
2836 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2837 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2838 CC="$CC $ac_cv_prog_cc_stdc" ;;
2839 esac
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.
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #ifndef __cplusplus
2847 choke me
2848 #endif
2849 _ACEOF
2850 rm -f conftest.$ac_objext
2851 if { (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);'
2880 cat >conftest.$ac_ext <<_ACEOF
2881 /* confdefs.h. */
2882 _ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2886 $ac_declaration
2887 #include <stdlib.h>
2889 main ()
2891 exit (42);
2893 return 0;
2895 _ACEOF
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
2919 else
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2923 continue
2925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2932 $ac_declaration
2934 main ()
2936 exit (42);
2938 return 0;
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>conftest.er1
2944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
2964 else
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2970 done
2971 rm -f conftest*
2972 if test -n "$ac_declaration"; then
2973 echo '#ifdef __cplusplus' >>confdefs.h
2974 echo $ac_declaration >>confdefs.h
2975 echo '#endif' >>confdefs.h
2978 else
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_ext=c
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990 if test "x$CC" != xcc; then
2991 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2992 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2993 else
2994 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2995 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2997 set dummy $CC; ac_cc=`echo $2 |
2998 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2999 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002 cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h. */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3010 main ()
3014 return 0;
3016 _ACEOF
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.
3020 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3021 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); };
3031 then
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.
3035 if { ac_try='cc -c conftest.$ac_ext >&5'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 (eval $ac_try) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
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
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); };
3052 then
3053 # cc works too.
3055 else
3056 # cc exists but doesn't like -o.
3057 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3061 else
3062 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3064 rm -f conftest*
3067 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3068 echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3070 else
3071 echo "$as_me:$LINENO: result: no" >&5
3072 echo "${ECHO_T}no" >&6
3074 cat >>confdefs.h <<\_ACEOF
3075 #define NO_MINUS_C_MINUS_O 1
3076 _ACEOF
3080 # expand $ac_aux_dir to an absolute path
3081 am_aux_dir=`cd $ac_aux_dir && pwd`
3083 # FIXME: we rely on the cache variable name because
3084 # there is no other way.
3085 set dummy $CC
3086 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3087 if 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"
3099 if 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.
3101 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3102 echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 if test -n "$GNATBIND"; then
3108 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
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
3121 done
3122 done
3126 GNATBIND=$ac_cv_prog_GNATBIND
3127 if test -n "$GNATBIND"; then
3128 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3129 echo "${ECHO_T}$GNATBIND" >&6
3130 else
3131 echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3136 if 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.
3139 set dummy gnatbind; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145 if test -n "$ac_ct_GNATBIND"; then
3146 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
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
3159 done
3160 done
3162 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3165 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3166 if test -n "$ac_ct_GNATBIND"; then
3167 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3168 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3169 else
3170 echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3174 GNATBIND=$ac_ct_GNATBIND
3175 else
3176 GNATBIND="$ac_cv_prog_GNATBIND"
3179 if 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.
3181 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3182 echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187 if test -n "$GNATMAKE"; then
3188 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
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
3201 done
3202 done
3206 GNATMAKE=$ac_cv_prog_GNATMAKE
3207 if test -n "$GNATMAKE"; then
3208 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3209 echo "${ECHO_T}$GNATMAKE" >&6
3210 else
3211 echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3216 if 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.
3219 set dummy gnatmake; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225 if test -n "$ac_ct_GNATMAKE"; then
3226 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
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
3239 done
3240 done
3242 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3245 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3246 if test -n "$ac_ct_GNATMAKE"; then
3247 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3248 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3249 else
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3254 GNATMAKE=$ac_ct_GNATMAKE
3255 else
3256 GNATMAKE="$ac_cv_prog_GNATMAKE"
3259 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3260 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3261 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264 cat >conftest.adb <<EOF
3265 procedure conftest is begin null; end conftest;
3267 acx_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.
3276 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3277 if test x"$errors" = x && test -f conftest.$ac_objext; then
3278 acx_cv_cc_gcc_supports_ada=yes
3280 rm -f conftest.*
3282 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3283 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3285 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3286 have_gnat=yes
3287 else
3288 have_gnat=no
3292 # autoconf is lame and doesn't give us any substitution variable for this.
3293 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3294 NO_MINUS_C_MINUS_O=yes
3295 else
3296 OUTPUT_OPTION='-o $@'
3301 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3302 # optimizations to be activated explicitly by the toplevel.
3303 case "$CC" in
3304 */prev-gcc/xgcc*) ;;
3305 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3306 esac
3309 # -------------------------
3310 # Check C compiler features
3311 # -------------------------
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3320 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3321 # On Suns, sometimes $CPP names a directory.
3322 if test -n "$CPP" && test -d "$CPP"; then
3323 CPP=
3325 if test -z "$CPP"; then
3326 if test "${ac_cv_prog_CPP+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329 # Double quotes because CPP needs to be expanded
3330 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3332 ac_preproc_ok=false
3333 for ac_c_preproc_warn_flag in '' yes
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.
3339 # On the NeXT, cc -E runs the code through the compiler's parser,
3340 # not just through cpp. "Syntax error" is here to catch this case.
3341 cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h. */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3347 #ifdef __STDC__
3348 # include <limits.h>
3349 #else
3350 # include <assert.h>
3351 #endif
3352 Syntax error
3353 _ACEOF
3354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
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=
3368 else
3369 ac_cpp_err=yes
3371 if test -z "$ac_cpp_err"; then
3373 else
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 # Broken: fails on valid input.
3378 continue
3380 rm -f conftest.err conftest.$ac_ext
3382 # OK, works on sane cases. Now check whether non-existent headers
3383 # can be detected and how.
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 #include <ac_nonexistent.h>
3391 _ACEOF
3392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
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=
3406 else
3407 ac_cpp_err=yes
3409 if test -z "$ac_cpp_err"; then
3410 # Broken: success on invalid input.
3411 continue
3412 else
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 # Passes both tests.
3417 ac_preproc_ok=:
3418 break
3420 rm -f conftest.err conftest.$ac_ext
3422 done
3423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3424 rm -f conftest.err conftest.$ac_ext
3425 if $ac_preproc_ok; then
3426 break
3429 done
3430 ac_cv_prog_CPP=$CPP
3433 CPP=$ac_cv_prog_CPP
3434 else
3435 ac_cv_prog_CPP=$CPP
3437 echo "$as_me:$LINENO: result: $CPP" >&5
3438 echo "${ECHO_T}$CPP" >&6
3439 ac_preproc_ok=false
3440 for ac_c_preproc_warn_flag in '' yes
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
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #ifdef __STDC__
3455 # include <limits.h>
3456 #else
3457 # include <assert.h>
3458 #endif
3459 Syntax error
3460 _ACEOF
3461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
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=
3475 else
3476 ac_cpp_err=yes
3478 if test -z "$ac_cpp_err"; then
3480 else
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 # Broken: fails on valid input.
3485 continue
3487 rm -f conftest.err conftest.$ac_ext
3489 # OK, works on sane cases. Now check whether non-existent headers
3490 # can be detected and how.
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h. */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3497 #include <ac_nonexistent.h>
3498 _ACEOF
3499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
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=
3513 else
3514 ac_cpp_err=yes
3516 if test -z "$ac_cpp_err"; then
3517 # Broken: success on invalid input.
3518 continue
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 # Passes both tests.
3524 ac_preproc_ok=:
3525 break
3527 rm -f conftest.err conftest.$ac_ext
3529 done
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then
3534 else
3535 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3536 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3538 See \`config.log' for more details." >&5
3539 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." >&2;}
3541 { (exit 1); exit 1; }; }; }
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 echo "$as_me:$LINENO: checking for egrep" >&5
3552 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3553 if test "${ac_cv_prog_egrep+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
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'
3561 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3562 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3563 EGREP=$ac_cv_prog_egrep
3566 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3567 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3568 if test "${ac_cv_header_stdc+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571 cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h. */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 #include <stdlib.h>
3578 #include <stdarg.h>
3579 #include <string.h>
3580 #include <float.h>
3583 main ()
3587 return 0;
3589 _ACEOF
3590 rm -f conftest.$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3593 ac_status=$?
3594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
3612 ac_cv_header_stdc=yes
3613 else
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 ac_cv_header_stdc=no
3619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3621 if 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
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 #include <string.h>
3631 _ACEOF
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 $EGREP "memchr" >/dev/null 2>&1; then
3635 else
3636 ac_cv_header_stdc=no
3638 rm -f conftest*
3642 if 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
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #include <stdlib.h>
3652 _ACEOF
3653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3654 $EGREP "free" >/dev/null 2>&1; then
3656 else
3657 ac_cv_header_stdc=no
3659 rm -f conftest*
3663 if 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
3667 else
3668 cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h. */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>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))
3684 #endif
3686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3688 main ()
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);
3697 _ACEOF
3698 rm -f conftest$ac_exeext
3699 if { (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
3710 else
3711 echo "$as_me: program exited with status $ac_status" >&5
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3715 ( exit $ac_status )
3716 ac_cv_header_stdc=no
3718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3722 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3723 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3724 if test $ac_cv_header_stdc = yes; then
3726 cat >>confdefs.h <<\_ACEOF
3727 #define STDC_HEADERS 1
3728 _ACEOF
3732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3742 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3743 inttypes.h stdint.h unistd.h
3745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3746 echo "$as_me:$LINENO: checking for $ac_header" >&5
3747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 $ac_includes_default
3759 #include <$ac_header>
3760 _ACEOF
3761 rm -f conftest.$ac_objext
3762 if { (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"
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 eval "$as_ac_Header=no"
3790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794 if 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
3801 done
3805 if test "${ac_cv_header_minix_config_h+set}" = set; then
3806 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3807 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3808 if test "${ac_cv_header_minix_config_h+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3812 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3813 else
3814 # Is the header compilable?
3815 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3816 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 $ac_includes_default
3824 #include <minix/config.h>
3825 _ACEOF
3826 rm -f conftest.$ac_objext
3827 if { (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
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 ac_header_compiler=no
3855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3857 echo "${ECHO_T}$ac_header_compiler" >&6
3859 # Is the header present?
3860 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3861 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 #include <minix/config.h>
3869 _ACEOF
3870 if { (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=
3884 else
3885 ac_cpp_err=yes
3887 if test -z "$ac_cpp_err"; then
3888 ac_header_preproc=yes
3889 else
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 ac_header_preproc=no
3895 rm -f conftest.err conftest.$ac_ext
3896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3897 echo "${ECHO_T}$ac_header_preproc" >&6
3899 # So? What about this header?
3900 case $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
3903 echo "$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
3905 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3906 ac_header_preproc=yes
3908 no:yes:* )
3909 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3910 echo "$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
3912 echo "$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
3914 echo "$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
3916 echo "$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
3918 echo "$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
3920 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3922 cat <<\_ASBOX
3923 ## ------------------------------------------ ##
3924 ## Report this to the AC_PACKAGE_NAME lists. ##
3925 ## ------------------------------------------ ##
3926 _ASBOX
3928 sed "s/^/$as_me: WARNING: /" >&2
3930 esac
3931 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3932 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3933 if test "${ac_cv_header_minix_config_h+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 ac_cv_header_minix_config_h=$ac_header_preproc
3938 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3939 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3942 if test $ac_cv_header_minix_config_h = yes; then
3943 MINIX=yes
3944 else
3945 MINIX=
3949 if test "$MINIX" = yes; then
3951 cat >>confdefs.h <<\_ACEOF
3952 #define _POSIX_SOURCE 1
3953 _ACEOF
3956 cat >>confdefs.h <<\_ACEOF
3957 #define _POSIX_1_SOURCE 2
3958 _ACEOF
3961 cat >>confdefs.h <<\_ACEOF
3962 #define _MINIX 1
3963 _ACEOF
3969 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3970 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3971 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974 cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h. */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 # define __EXTENSIONS__ 1
3982 $ac_includes_default
3984 main ()
3988 return 0;
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>conftest.er1
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
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
4013 ac_cv_safe_to_define___extensions__=yes
4014 else
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 ac_cv_safe_to_define___extensions__=no
4020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4022 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4023 echo "${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
4029 cat >>confdefs.h <<\_ACEOF
4030 #define _ALL_SOURCE 1
4031 _ACEOF
4033 cat >>confdefs.h <<\_ACEOF
4034 #define _GNU_SOURCE 1
4035 _ACEOF
4037 cat >>confdefs.h <<\_ACEOF
4038 #define _POSIX_PTHREAD_SEMANTICS 1
4039 _ACEOF
4041 cat >>confdefs.h <<\_ACEOF
4042 #define _TANDEM_SOURCE 1
4043 _ACEOF
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4052 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4053 # On Suns, sometimes $CPP names a directory.
4054 if test -n "$CPP" && test -d "$CPP"; then
4055 CPP=
4057 if test -z "$CPP"; then
4058 if test "${ac_cv_prog_CPP+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 # Double quotes because CPP needs to be expanded
4062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4064 ac_preproc_ok=false
4065 for ac_c_preproc_warn_flag in '' yes
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.
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 #ifdef __STDC__
4080 # include <limits.h>
4081 #else
4082 # include <assert.h>
4083 #endif
4084 Syntax error
4085 _ACEOF
4086 if { (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=
4100 else
4101 ac_cpp_err=yes
4103 if test -z "$ac_cpp_err"; then
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 # Broken: fails on valid input.
4110 continue
4112 rm -f conftest.err conftest.$ac_ext
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
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4123 _ACEOF
4124 if { (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=
4138 else
4139 ac_cpp_err=yes
4141 if test -z "$ac_cpp_err"; then
4142 # Broken: success on invalid input.
4143 continue
4144 else
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4148 # Passes both tests.
4149 ac_preproc_ok=:
4150 break
4152 rm -f conftest.err conftest.$ac_ext
4154 done
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.err conftest.$ac_ext
4157 if $ac_preproc_ok; then
4158 break
4161 done
4162 ac_cv_prog_CPP=$CPP
4165 CPP=$ac_cv_prog_CPP
4166 else
4167 ac_cv_prog_CPP=$CPP
4169 echo "$as_me:$LINENO: result: $CPP" >&5
4170 echo "${ECHO_T}$CPP" >&6
4171 ac_preproc_ok=false
4172 for ac_c_preproc_warn_flag in '' yes
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.
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h. */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 #ifdef __STDC__
4187 # include <limits.h>
4188 #else
4189 # include <assert.h>
4190 #endif
4191 Syntax error
4192 _ACEOF
4193 if { (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=
4207 else
4208 ac_cpp_err=yes
4210 if test -z "$ac_cpp_err"; then
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 # Broken: fails on valid input.
4217 continue
4219 rm -f conftest.err conftest.$ac_ext
4221 # OK, works on sane cases. Now check whether non-existent headers
4222 # can be detected and how.
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <ac_nonexistent.h>
4230 _ACEOF
4231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4233 ac_status=$?
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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=
4245 else
4246 ac_cpp_err=yes
4248 if test -z "$ac_cpp_err"; then
4249 # Broken: success on invalid input.
4250 continue
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 # Passes both tests.
4256 ac_preproc_ok=:
4257 break
4259 rm -f conftest.err conftest.$ac_ext
4261 done
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then
4266 else
4267 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4268 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4270 See \`config.log' for more details." >&5
4271 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4272 See \`config.log' for more details." >&2;}
4273 { (exit 1); exit 1; }; }; }
4276 ac_ext=c
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282 echo "$as_me:$LINENO: checking for inline" >&5
4283 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4284 if test "${ac_cv_c_inline+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287 ac_cv_c_inline=no
4288 for ac_kw in inline __inline__ __inline; do
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #ifndef __cplusplus
4296 typedef int foo_t;
4297 static $ac_kw foo_t static_foo () {return 0; }
4298 $ac_kw foo_t foo () {return 0; }
4299 #endif
4301 _ACEOF
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>conftest.er1
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
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
4324 ac_cv_c_inline=$ac_kw; break
4325 else
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331 done
4334 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4335 echo "${ECHO_T}$ac_cv_c_inline" >&6
4338 case $ac_cv_c_inline in
4339 inline | yes) ;;
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
4351 esac
4354 # sizeof(char) is 1 by definition.
4355 echo "$as_me:$LINENO: checking for void *" >&5
4356 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4357 if test "${ac_cv_type_void_p+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h. */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4366 $ac_includes_default
4368 main ()
4370 if ((void * *) 0)
4371 return 0;
4372 if (sizeof (void *))
4373 return 0;
4375 return 0;
4377 _ACEOF
4378 rm -f conftest.$ac_objext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380 (eval $ac_compile) 2>conftest.er1
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
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
4400 ac_cv_type_void_p=yes
4401 else
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 ac_cv_type_void_p=no
4407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4409 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4410 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4412 echo "$as_me:$LINENO: checking size of void *" >&5
4413 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4414 if test "${ac_cv_sizeof_void_p+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
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.
4422 if test "$cross_compiling" = yes; then
4423 # Depending upon the size, compute the lo and hi bounds.
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h. */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 $ac_includes_default
4432 main ()
4434 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4435 test_array [0] = 0
4438 return 0;
4440 _ACEOF
4441 rm -f conftest.$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>conftest.er1
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
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
4463 ac_lo=0 ac_mid=0
4464 while :; do
4465 cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h. */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4471 $ac_includes_default
4473 main ()
4475 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4476 test_array [0] = 0
4479 return 0;
4481 _ACEOF
4482 rm -f conftest.$ac_objext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484 (eval $ac_compile) 2>conftest.er1
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
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
4504 ac_hi=$ac_mid; break
4505 else
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 ac_lo=`expr $ac_mid + 1`
4510 if test $ac_lo -le $ac_mid; then
4511 ac_lo= ac_hi=
4512 break
4514 ac_mid=`expr 2 '*' $ac_mid + 1`
4516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4517 done
4518 else
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4522 cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h. */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4530 main ()
4532 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4533 test_array [0] = 0
4536 return 0;
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>conftest.er1
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
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
4561 ac_hi=-1 ac_mid=-1
4562 while :; do
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h. */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 $ac_includes_default
4571 main ()
4573 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4574 test_array [0] = 0
4577 return 0;
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
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
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
4602 ac_lo=$ac_mid; break
4603 else
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 ac_hi=`expr '(' $ac_mid ')' - 1`
4608 if test $ac_mid -le $ac_hi; then
4609 ac_lo= ac_hi=
4610 break
4612 ac_mid=`expr 2 '*' $ac_mid`
4614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4615 done
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 ac_lo= ac_hi=
4622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 # Binary search between lo and hi bounds.
4626 while 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
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 $ac_includes_default
4636 main ()
4638 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4639 test_array [0] = 0
4642 return 0;
4644 _ACEOF
4645 rm -f conftest.$ac_objext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>conftest.er1
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
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
4667 ac_hi=$ac_mid
4668 else
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 ac_lo=`expr '(' $ac_mid ')' + 1`
4674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4675 done
4676 case $ac_lo in
4677 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4678 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4679 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4681 See \`config.log' for more details." >&5
4682 echo "$as_me: error: cannot compute sizeof (void *), 77
4683 See \`config.log' for more details." >&2;}
4684 { (exit 1); exit 1; }; }; } ;;
4685 esac
4686 else
4687 if test "$cross_compiling" = yes; then
4688 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4689 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4691 See \`config.log' for more details." >&5
4692 echo "$as_me: error: cannot run test program while cross compiling
4693 See \`config.log' for more details." >&2;}
4694 { (exit 1); exit 1; }; }; }
4695 else
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h. */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 $ac_includes_default
4703 long longval () { return (long) (sizeof (void *)); }
4704 unsigned long ulongval () { return (long) (sizeof (void *)); }
4705 #include <stdio.h>
4706 #include <stdlib.h>
4708 main ()
4711 FILE *f = fopen ("conftest.val", "w");
4712 if (! f)
4713 exit (1);
4714 if (((long) (sizeof (void *))) < 0)
4716 long i = longval ();
4717 if (i != ((long) (sizeof (void *))))
4718 exit (1);
4719 fprintf (f, "%ld\n", i);
4721 else
4723 unsigned long i = ulongval ();
4724 if (i != ((long) (sizeof (void *))))
4725 exit (1);
4726 fprintf (f, "%lu\n", i);
4728 exit (ferror (f) || fclose (f) != 0);
4731 return 0;
4733 _ACEOF
4734 rm -f conftest$ac_exeext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736 (eval $ac_link) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
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`
4746 else
4747 echo "$as_me: program exited with status $ac_status" >&5
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4751 ( exit $ac_status )
4752 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4753 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4755 See \`config.log' for more details." >&5
4756 echo "$as_me: error: cannot compute sizeof (void *), 77
4757 See \`config.log' for more details." >&2;}
4758 { (exit 1); exit 1; }; }; }
4760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4763 rm -f conftest.val
4764 else
4765 ac_cv_sizeof_void_p=0
4768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4769 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4770 cat >>confdefs.h <<_ACEOF
4771 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4772 _ACEOF
4775 echo "$as_me:$LINENO: checking for short" >&5
4776 echo $ECHO_N "checking for short... $ECHO_C" >&6
4777 if test "${ac_cv_type_short+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 $ac_includes_default
4788 main ()
4790 if ((short *) 0)
4791 return 0;
4792 if (sizeof (short))
4793 return 0;
4795 return 0;
4797 _ACEOF
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>conftest.er1
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
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
4820 ac_cv_type_short=yes
4821 else
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4825 ac_cv_type_short=no
4827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4830 echo "${ECHO_T}$ac_cv_type_short" >&6
4832 echo "$as_me:$LINENO: checking size of short" >&5
4833 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4834 if test "${ac_cv_sizeof_short+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
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.
4842 if test "$cross_compiling" = yes; then
4843 # Depending upon the size, compute the lo and hi bounds.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 $ac_includes_default
4852 main ()
4854 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4855 test_array [0] = 0
4858 return 0;
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
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
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
4883 ac_lo=0 ac_mid=0
4884 while :; do
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_includes_default
4893 main ()
4895 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4896 test_array [0] = 0
4899 return 0;
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
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
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
4924 ac_hi=$ac_mid; break
4925 else
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4929 ac_lo=`expr $ac_mid + 1`
4930 if test $ac_lo -le $ac_mid; then
4931 ac_lo= ac_hi=
4932 break
4934 ac_mid=`expr 2 '*' $ac_mid + 1`
4936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937 done
4938 else
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4950 main ()
4952 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4953 test_array [0] = 0
4956 return 0;
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>conftest.er1
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
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
4981 ac_hi=-1 ac_mid=-1
4982 while :; do
4983 cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h. */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 $ac_includes_default
4991 main ()
4993 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4994 test_array [0] = 0
4997 return 0;
4999 _ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
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
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
5022 ac_lo=$ac_mid; break
5023 else
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5027 ac_hi=`expr '(' $ac_mid ')' - 1`
5028 if test $ac_mid -le $ac_hi; then
5029 ac_lo= ac_hi=
5030 break
5032 ac_mid=`expr 2 '*' $ac_mid`
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 done
5036 else
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 ac_lo= ac_hi=
5042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5045 # Binary search between lo and hi bounds.
5046 while 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
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 $ac_includes_default
5056 main ()
5058 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5059 test_array [0] = 0
5062 return 0;
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
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
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
5087 ac_hi=$ac_mid
5088 else
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 ac_lo=`expr '(' $ac_mid ')' + 1`
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 done
5096 case $ac_lo in
5097 ?*) ac_cv_sizeof_short=$ac_lo;;
5098 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5099 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5101 See \`config.log' for more details." >&5
5102 echo "$as_me: error: cannot compute sizeof (short), 77
5103 See \`config.log' for more details." >&2;}
5104 { (exit 1); exit 1; }; }; } ;;
5105 esac
5106 else
5107 if test "$cross_compiling" = yes; then
5108 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5109 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5110 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5111 See \`config.log' for more details." >&5
5112 echo "$as_me: error: cannot run test program while cross compiling
5113 See \`config.log' for more details." >&2;}
5114 { (exit 1); exit 1; }; }; }
5115 else
5116 cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h. */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 $ac_includes_default
5123 long longval () { return (long) (sizeof (short)); }
5124 unsigned long ulongval () { return (long) (sizeof (short)); }
5125 #include <stdio.h>
5126 #include <stdlib.h>
5128 main ()
5131 FILE *f = fopen ("conftest.val", "w");
5132 if (! f)
5133 exit (1);
5134 if (((long) (sizeof (short))) < 0)
5136 long i = longval ();
5137 if (i != ((long) (sizeof (short))))
5138 exit (1);
5139 fprintf (f, "%ld\n", i);
5141 else
5143 unsigned long i = ulongval ();
5144 if (i != ((long) (sizeof (short))))
5145 exit (1);
5146 fprintf (f, "%lu\n", i);
5148 exit (ferror (f) || fclose (f) != 0);
5151 return 0;
5153 _ACEOF
5154 rm -f conftest$ac_exeext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5156 (eval $ac_link) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_cv_sizeof_short=`cat conftest.val`
5166 else
5167 echo "$as_me: program exited with status $ac_status" >&5
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 ( exit $ac_status )
5172 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5173 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5175 See \`config.log' for more details." >&5
5176 echo "$as_me: error: cannot compute sizeof (short), 77
5177 See \`config.log' for more details." >&2;}
5178 { (exit 1); exit 1; }; }; }
5180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5183 rm -f conftest.val
5184 else
5185 ac_cv_sizeof_short=0
5188 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5189 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5190 cat >>confdefs.h <<_ACEOF
5191 #define SIZEOF_SHORT $ac_cv_sizeof_short
5192 _ACEOF
5195 echo "$as_me:$LINENO: checking for int" >&5
5196 echo $ECHO_N "checking for int... $ECHO_C" >&6
5197 if test "${ac_cv_type_int+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h. */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 $ac_includes_default
5208 main ()
5210 if ((int *) 0)
5211 return 0;
5212 if (sizeof (int))
5213 return 0;
5215 return 0;
5217 _ACEOF
5218 rm -f conftest.$ac_objext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220 (eval $ac_compile) 2>conftest.er1
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
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
5240 ac_cv_type_int=yes
5241 else
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5245 ac_cv_type_int=no
5247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5250 echo "${ECHO_T}$ac_cv_type_int" >&6
5252 echo "$as_me:$LINENO: checking size of int" >&5
5253 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5254 if test "${ac_cv_sizeof_int+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
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.
5262 if test "$cross_compiling" = yes; then
5263 # Depending upon the size, compute the lo and hi bounds.
5264 cat >conftest.$ac_ext <<_ACEOF
5265 /* confdefs.h. */
5266 _ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5270 $ac_includes_default
5272 main ()
5274 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5275 test_array [0] = 0
5278 return 0;
5280 _ACEOF
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>conftest.er1
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
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
5303 ac_lo=0 ac_mid=0
5304 while :; do
5305 cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h. */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 $ac_includes_default
5313 main ()
5315 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5316 test_array [0] = 0
5319 return 0;
5321 _ACEOF
5322 rm -f conftest.$ac_objext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324 (eval $ac_compile) 2>conftest.er1
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
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
5344 ac_hi=$ac_mid; break
5345 else
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ac_lo=`expr $ac_mid + 1`
5350 if test $ac_lo -le $ac_mid; then
5351 ac_lo= ac_hi=
5352 break
5354 ac_mid=`expr 2 '*' $ac_mid + 1`
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357 done
5358 else
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h. */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 $ac_includes_default
5370 main ()
5372 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5373 test_array [0] = 0
5376 return 0;
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>conftest.er1
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
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
5401 ac_hi=-1 ac_mid=-1
5402 while :; do
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 $ac_includes_default
5411 main ()
5413 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5414 test_array [0] = 0
5417 return 0;
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>conftest.er1
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
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
5442 ac_lo=$ac_mid; break
5443 else
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 ac_hi=`expr '(' $ac_mid ')' - 1`
5448 if test $ac_mid -le $ac_hi; then
5449 ac_lo= ac_hi=
5450 break
5452 ac_mid=`expr 2 '*' $ac_mid`
5454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455 done
5456 else
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 ac_lo= ac_hi=
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5465 # Binary search between lo and hi bounds.
5466 while 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
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 $ac_includes_default
5476 main ()
5478 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5479 test_array [0] = 0
5482 return 0;
5484 _ACEOF
5485 rm -f conftest.$ac_objext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>conftest.er1
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
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
5507 ac_hi=$ac_mid
5508 else
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ac_lo=`expr '(' $ac_mid ')' + 1`
5514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5515 done
5516 case $ac_lo in
5517 ?*) ac_cv_sizeof_int=$ac_lo;;
5518 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5519 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5521 See \`config.log' for more details." >&5
5522 echo "$as_me: error: cannot compute sizeof (int), 77
5523 See \`config.log' for more details." >&2;}
5524 { (exit 1); exit 1; }; }; } ;;
5525 esac
5526 else
5527 if test "$cross_compiling" = yes; then
5528 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5529 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5530 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5531 See \`config.log' for more details." >&5
5532 echo "$as_me: error: cannot run test program while cross compiling
5533 See \`config.log' for more details." >&2;}
5534 { (exit 1); exit 1; }; }; }
5535 else
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 $ac_includes_default
5543 long longval () { return (long) (sizeof (int)); }
5544 unsigned long ulongval () { return (long) (sizeof (int)); }
5545 #include <stdio.h>
5546 #include <stdlib.h>
5548 main ()
5551 FILE *f = fopen ("conftest.val", "w");
5552 if (! f)
5553 exit (1);
5554 if (((long) (sizeof (int))) < 0)
5556 long i = longval ();
5557 if (i != ((long) (sizeof (int))))
5558 exit (1);
5559 fprintf (f, "%ld\n", i);
5561 else
5563 unsigned long i = ulongval ();
5564 if (i != ((long) (sizeof (int))))
5565 exit (1);
5566 fprintf (f, "%lu\n", i);
5568 exit (ferror (f) || fclose (f) != 0);
5571 return 0;
5573 _ACEOF
5574 rm -f conftest$ac_exeext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576 (eval $ac_link) 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 ac_cv_sizeof_int=`cat conftest.val`
5586 else
5587 echo "$as_me: program exited with status $ac_status" >&5
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5591 ( exit $ac_status )
5592 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5593 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5595 See \`config.log' for more details." >&5
5596 echo "$as_me: error: cannot compute sizeof (int), 77
5597 See \`config.log' for more details." >&2;}
5598 { (exit 1); exit 1; }; }; }
5600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5603 rm -f conftest.val
5604 else
5605 ac_cv_sizeof_int=0
5608 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5609 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5610 cat >>confdefs.h <<_ACEOF
5611 #define SIZEOF_INT $ac_cv_sizeof_int
5612 _ACEOF
5615 echo "$as_me:$LINENO: checking for long" >&5
5616 echo $ECHO_N "checking for long... $ECHO_C" >&6
5617 if test "${ac_cv_type_long+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 $ac_includes_default
5628 main ()
5630 if ((long *) 0)
5631 return 0;
5632 if (sizeof (long))
5633 return 0;
5635 return 0;
5637 _ACEOF
5638 rm -f conftest.$ac_objext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640 (eval $ac_compile) 2>conftest.er1
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
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
5660 ac_cv_type_long=yes
5661 else
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 ac_cv_type_long=no
5667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5669 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5670 echo "${ECHO_T}$ac_cv_type_long" >&6
5672 echo "$as_me:$LINENO: checking size of long" >&5
5673 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5674 if test "${ac_cv_sizeof_long+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
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.
5682 if test "$cross_compiling" = yes; then
5683 # Depending upon the size, compute the lo and hi bounds.
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 $ac_includes_default
5692 main ()
5694 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5695 test_array [0] = 0
5698 return 0;
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
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
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
5723 ac_lo=0 ac_mid=0
5724 while :; do
5725 cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h. */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 $ac_includes_default
5733 main ()
5735 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5736 test_array [0] = 0
5739 return 0;
5741 _ACEOF
5742 rm -f conftest.$ac_objext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744 (eval $ac_compile) 2>conftest.er1
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
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
5764 ac_hi=$ac_mid; break
5765 else
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 ac_lo=`expr $ac_mid + 1`
5770 if test $ac_lo -le $ac_mid; then
5771 ac_lo= ac_hi=
5772 break
5774 ac_mid=`expr 2 '*' $ac_mid + 1`
5776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5777 done
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h. */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5790 main ()
5792 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5793 test_array [0] = 0
5796 return 0;
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>conftest.er1
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
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
5821 ac_hi=-1 ac_mid=-1
5822 while :; do
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5831 main ()
5833 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5834 test_array [0] = 0
5837 return 0;
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>conftest.er1
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
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
5862 ac_lo=$ac_mid; break
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5867 ac_hi=`expr '(' $ac_mid ')' - 1`
5868 if test $ac_mid -le $ac_hi; then
5869 ac_lo= ac_hi=
5870 break
5872 ac_mid=`expr 2 '*' $ac_mid`
5874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875 done
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 ac_lo= ac_hi=
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5885 # Binary search between lo and hi bounds.
5886 while 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
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 $ac_includes_default
5896 main ()
5898 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5899 test_array [0] = 0
5902 return 0;
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>conftest.er1
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
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
5927 ac_hi=$ac_mid
5928 else
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 ac_lo=`expr '(' $ac_mid ')' + 1`
5934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5935 done
5936 case $ac_lo in
5937 ?*) ac_cv_sizeof_long=$ac_lo;;
5938 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5939 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5941 See \`config.log' for more details." >&5
5942 echo "$as_me: error: cannot compute sizeof (long), 77
5943 See \`config.log' for more details." >&2;}
5944 { (exit 1); exit 1; }; }; } ;;
5945 esac
5946 else
5947 if test "$cross_compiling" = yes; then
5948 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5949 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5950 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5951 See \`config.log' for more details." >&5
5952 echo "$as_me: error: cannot run test program while cross compiling
5953 See \`config.log' for more details." >&2;}
5954 { (exit 1); exit 1; }; }; }
5955 else
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h. */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 $ac_includes_default
5963 long longval () { return (long) (sizeof (long)); }
5964 unsigned long ulongval () { return (long) (sizeof (long)); }
5965 #include <stdio.h>
5966 #include <stdlib.h>
5968 main ()
5971 FILE *f = fopen ("conftest.val", "w");
5972 if (! f)
5973 exit (1);
5974 if (((long) (sizeof (long))) < 0)
5976 long i = longval ();
5977 if (i != ((long) (sizeof (long))))
5978 exit (1);
5979 fprintf (f, "%ld\n", i);
5981 else
5983 unsigned long i = ulongval ();
5984 if (i != ((long) (sizeof (long))))
5985 exit (1);
5986 fprintf (f, "%lu\n", i);
5988 exit (ferror (f) || fclose (f) != 0);
5991 return 0;
5993 _ACEOF
5994 rm -f conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_sizeof_long=`cat conftest.val`
6006 else
6007 echo "$as_me: program exited with status $ac_status" >&5
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6011 ( exit $ac_status )
6012 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6013 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6015 See \`config.log' for more details." >&5
6016 echo "$as_me: error: cannot compute sizeof (long), 77
6017 See \`config.log' for more details." >&2;}
6018 { (exit 1); exit 1; }; }; }
6020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6023 rm -f conftest.val
6024 else
6025 ac_cv_sizeof_long=0
6028 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6029 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6030 cat >>confdefs.h <<_ACEOF
6031 #define SIZEOF_LONG $ac_cv_sizeof_long
6032 _ACEOF
6035 echo "$as_me:$LINENO: checking for long long" >&5
6036 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6037 if test "${ac_cv_type_long_long+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040 cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h. */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 $ac_includes_default
6048 main ()
6050 if ((long long *) 0)
6051 return 0;
6052 if (sizeof (long long))
6053 return 0;
6055 return 0;
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>conftest.er1
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
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
6080 ac_cv_type_long_long=yes
6081 else
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 ac_cv_type_long_long=no
6087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6090 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6091 if test $ac_cv_type_long_long = yes; then
6093 cat >>confdefs.h <<_ACEOF
6094 #define HAVE_LONG_LONG 1
6095 _ACEOF
6097 echo "$as_me:$LINENO: checking for long long" >&5
6098 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6099 if test "${ac_cv_type_long_long+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $ac_includes_default
6110 main ()
6112 if ((long long *) 0)
6113 return 0;
6114 if (sizeof (long long))
6115 return 0;
6117 return 0;
6119 _ACEOF
6120 rm -f conftest.$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>conftest.er1
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
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
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_cv_type_long_long=no
6149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6151 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6152 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6154 echo "$as_me:$LINENO: checking size of long long" >&5
6155 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6156 if test "${ac_cv_sizeof_long_long+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
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.
6164 if test "$cross_compiling" = yes; then
6165 # Depending upon the size, compute the lo and hi bounds.
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h. */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 $ac_includes_default
6174 main ()
6176 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6177 test_array [0] = 0
6180 return 0;
6182 _ACEOF
6183 rm -f conftest.$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
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
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
6205 ac_lo=0 ac_mid=0
6206 while :; do
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6215 main ()
6217 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6218 test_array [0] = 0
6221 return 0;
6223 _ACEOF
6224 rm -f conftest.$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226 (eval $ac_compile) 2>conftest.er1
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
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
6246 ac_hi=$ac_mid; break
6247 else
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 ac_lo=`expr $ac_mid + 1`
6252 if test $ac_lo -le $ac_mid; then
6253 ac_lo= ac_hi=
6254 break
6256 ac_mid=`expr 2 '*' $ac_mid + 1`
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 done
6260 else
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h. */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 $ac_includes_default
6272 main ()
6274 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6275 test_array [0] = 0
6278 return 0;
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283 (eval $ac_compile) 2>conftest.er1
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
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
6303 ac_hi=-1 ac_mid=-1
6304 while :; do
6305 cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h. */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 $ac_includes_default
6313 main ()
6315 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6316 test_array [0] = 0
6319 return 0;
6321 _ACEOF
6322 rm -f conftest.$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324 (eval $ac_compile) 2>conftest.er1
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
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
6344 ac_lo=$ac_mid; break
6345 else
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6349 ac_hi=`expr '(' $ac_mid ')' - 1`
6350 if test $ac_mid -le $ac_hi; then
6351 ac_lo= ac_hi=
6352 break
6354 ac_mid=`expr 2 '*' $ac_mid`
6356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6357 done
6358 else
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 ac_lo= ac_hi=
6364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 # Binary search between lo and hi bounds.
6368 while 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
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 $ac_includes_default
6378 main ()
6380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6381 test_array [0] = 0
6384 return 0;
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
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
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
6409 ac_hi=$ac_mid
6410 else
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ac_lo=`expr '(' $ac_mid ')' + 1`
6416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417 done
6418 case $ac_lo in
6419 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6420 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6421 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6423 See \`config.log' for more details." >&5
6424 echo "$as_me: error: cannot compute sizeof (long long), 77
6425 See \`config.log' for more details." >&2;}
6426 { (exit 1); exit 1; }; }; } ;;
6427 esac
6428 else
6429 if test "$cross_compiling" = yes; then
6430 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6431 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6433 See \`config.log' for more details." >&5
6434 echo "$as_me: error: cannot run test program while cross compiling
6435 See \`config.log' for more details." >&2;}
6436 { (exit 1); exit 1; }; }; }
6437 else
6438 cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h. */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 $ac_includes_default
6445 long longval () { return (long) (sizeof (long long)); }
6446 unsigned long ulongval () { return (long) (sizeof (long long)); }
6447 #include <stdio.h>
6448 #include <stdlib.h>
6450 main ()
6453 FILE *f = fopen ("conftest.val", "w");
6454 if (! f)
6455 exit (1);
6456 if (((long) (sizeof (long long))) < 0)
6458 long i = longval ();
6459 if (i != ((long) (sizeof (long long))))
6460 exit (1);
6461 fprintf (f, "%ld\n", i);
6463 else
6465 unsigned long i = ulongval ();
6466 if (i != ((long) (sizeof (long long))))
6467 exit (1);
6468 fprintf (f, "%lu\n", i);
6470 exit (ferror (f) || fclose (f) != 0);
6473 return 0;
6475 _ACEOF
6476 rm -f conftest$ac_exeext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478 (eval $ac_link) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
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`
6488 else
6489 echo "$as_me: program exited with status $ac_status" >&5
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6493 ( exit $ac_status )
6494 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6495 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6496 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6497 See \`config.log' for more details." >&5
6498 echo "$as_me: error: cannot compute sizeof (long long), 77
6499 See \`config.log' for more details." >&2;}
6500 { (exit 1); exit 1; }; }; }
6502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6505 rm -f conftest.val
6506 else
6507 ac_cv_sizeof_long_long=0
6510 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6511 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6512 cat >>confdefs.h <<_ACEOF
6513 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6514 _ACEOF
6519 echo "$as_me:$LINENO: checking for __int64" >&5
6520 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6521 if test "${ac_cv_type___int64+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h. */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 $ac_includes_default
6532 main ()
6534 if ((__int64 *) 0)
6535 return 0;
6536 if (sizeof (__int64))
6537 return 0;
6539 return 0;
6541 _ACEOF
6542 rm -f conftest.$ac_objext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
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
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
6564 ac_cv_type___int64=yes
6565 else
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6569 ac_cv_type___int64=no
6571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6573 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6574 echo "${ECHO_T}$ac_cv_type___int64" >&6
6575 if test $ac_cv_type___int64 = yes; then
6577 cat >>confdefs.h <<_ACEOF
6578 #define HAVE___INT64 1
6579 _ACEOF
6581 echo "$as_me:$LINENO: checking for __int64" >&5
6582 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6583 if test "${ac_cv_type___int64+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586 cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h. */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 $ac_includes_default
6594 main ()
6596 if ((__int64 *) 0)
6597 return 0;
6598 if (sizeof (__int64))
6599 return 0;
6601 return 0;
6603 _ACEOF
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606 (eval $ac_compile) 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
6626 ac_cv_type___int64=yes
6627 else
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_cv_type___int64=no
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6636 echo "${ECHO_T}$ac_cv_type___int64" >&6
6638 echo "$as_me:$LINENO: checking size of __int64" >&5
6639 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6640 if test "${ac_cv_sizeof___int64+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
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.
6648 if test "$cross_compiling" = yes; then
6649 # Depending upon the size, compute the lo and hi bounds.
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h. */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 $ac_includes_default
6658 main ()
6660 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6661 test_array [0] = 0
6664 return 0;
6666 _ACEOF
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
6689 ac_lo=0 ac_mid=0
6690 while :; do
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h. */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 $ac_includes_default
6699 main ()
6701 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6702 test_array [0] = 0
6705 return 0;
6707 _ACEOF
6708 rm -f conftest.$ac_objext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710 (eval $ac_compile) 2>conftest.er1
6711 ac_status=$?
6712 grep -v '^ *+' conftest.er1 >conftest.err
6713 rm -f conftest.er1
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
6730 ac_hi=$ac_mid; break
6731 else
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 ac_lo=`expr $ac_mid + 1`
6736 if test $ac_lo -le $ac_mid; then
6737 ac_lo= ac_hi=
6738 break
6740 ac_mid=`expr 2 '*' $ac_mid + 1`
6742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6743 done
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h. */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 $ac_includes_default
6756 main ()
6758 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6759 test_array [0] = 0
6762 return 0;
6764 _ACEOF
6765 rm -f conftest.$ac_objext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767 (eval $ac_compile) 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
6787 ac_hi=-1 ac_mid=-1
6788 while :; do
6789 cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h. */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 $ac_includes_default
6797 main ()
6799 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6800 test_array [0] = 0
6803 return 0;
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808 (eval $ac_compile) 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
6828 ac_lo=$ac_mid; break
6829 else
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 ac_hi=`expr '(' $ac_mid ')' - 1`
6834 if test $ac_mid -le $ac_hi; then
6835 ac_lo= ac_hi=
6836 break
6838 ac_mid=`expr 2 '*' $ac_mid`
6840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6841 done
6842 else
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 ac_lo= ac_hi=
6848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6851 # Binary search between lo and hi bounds.
6852 while test "x$ac_lo" != "x$ac_hi"; do
6853 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 $ac_includes_default
6862 main ()
6864 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6865 test_array [0] = 0
6868 return 0;
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>conftest.er1
6874 ac_status=$?
6875 grep -v '^ *+' conftest.er1 >conftest.err
6876 rm -f conftest.er1
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
6893 ac_hi=$ac_mid
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 ac_lo=`expr '(' $ac_mid ')' + 1`
6900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6901 done
6902 case $ac_lo in
6903 ?*) ac_cv_sizeof___int64=$ac_lo;;
6904 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6905 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6907 See \`config.log' for more details." >&5
6908 echo "$as_me: error: cannot compute sizeof (__int64), 77
6909 See \`config.log' for more details." >&2;}
6910 { (exit 1); exit 1; }; }; } ;;
6911 esac
6912 else
6913 if test "$cross_compiling" = yes; then
6914 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6915 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6917 See \`config.log' for more details." >&5
6918 echo "$as_me: error: cannot run test program while cross compiling
6919 See \`config.log' for more details." >&2;}
6920 { (exit 1); exit 1; }; }; }
6921 else
6922 cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h. */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928 $ac_includes_default
6929 long longval () { return (long) (sizeof (__int64)); }
6930 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6931 #include <stdio.h>
6932 #include <stdlib.h>
6934 main ()
6937 FILE *f = fopen ("conftest.val", "w");
6938 if (! f)
6939 exit (1);
6940 if (((long) (sizeof (__int64))) < 0)
6942 long i = longval ();
6943 if (i != ((long) (sizeof (__int64))))
6944 exit (1);
6945 fprintf (f, "%ld\n", i);
6947 else
6949 unsigned long i = ulongval ();
6950 if (i != ((long) (sizeof (__int64))))
6951 exit (1);
6952 fprintf (f, "%lu\n", i);
6954 exit (ferror (f) || fclose (f) != 0);
6957 return 0;
6959 _ACEOF
6960 rm -f conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_sizeof___int64=`cat conftest.val`
6972 else
6973 echo "$as_me: program exited with status $ac_status" >&5
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 ( exit $ac_status )
6978 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6979 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6980 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6981 See \`config.log' for more details." >&5
6982 echo "$as_me: error: cannot compute sizeof (__int64), 77
6983 See \`config.log' for more details." >&2;}
6984 { (exit 1); exit 1; }; }; }
6986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6989 rm -f conftest.val
6990 else
6991 ac_cv_sizeof___int64=0
6994 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6995 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6996 cat >>confdefs.h <<_ACEOF
6997 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6998 _ACEOF
7004 # ---------------------
7005 # Warnings and checking
7006 # ---------------------
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
7012 # * overlong strings
7013 # So, we only use -pedantic if we can disable those warnings.
7015 loose_warn=
7016 save_CFLAGS="$CFLAGS"
7017 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
7018 -Wmissing-prototypes -Wcast-qual -Wc++-compat; do
7019 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7021 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7022 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7023 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026 CFLAGS="$option"
7027 cat >conftest.$ac_ext <<_ACEOF
7028 /* confdefs.h. */
7029 _ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7035 main ()
7039 return 0;
7041 _ACEOF
7042 rm -f conftest.$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_c_werror_flag"
7052 || test ! -s conftest.err'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; } &&
7058 { ac_try='test -s conftest.$ac_objext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 (eval $ac_try) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7064 eval "$as_acx_Woption=yes"
7065 else
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 eval "$as_acx_Woption=no"
7071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7074 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7075 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7076 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7077 loose_warn="$loose_warn${loose_warn:+ }$option"
7080 done
7081 CFLAGS="$save_CFLAGS"
7083 strict_warn=
7084 save_CFLAGS="$CFLAGS"
7085 for option in -Wold-style-definition \
7086 -Wmissing-format-attribute; do
7087 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7089 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7090 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7091 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094 CFLAGS="$option"
7095 cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h. */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7103 main ()
7107 return 0;
7109 _ACEOF
7110 rm -f conftest.$ac_objext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7112 (eval $ac_compile) 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -z "$ac_c_werror_flag"
7120 || test ! -s conftest.err'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; } &&
7126 { ac_try='test -s conftest.$ac_objext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 eval "$as_acx_Woption=yes"
7133 else
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7137 eval "$as_acx_Woption=no"
7139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7142 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7143 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7144 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7145 strict_warn="$strict_warn${strict_warn:+ }$option"
7148 done
7149 CFLAGS="$save_CFLAGS"
7151 if test "$GCC" = yes; then
7152 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7153 -Wno-overlength-strings" >&5
7154 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7155 -Wno-overlength-strings... $ECHO_C" >&6
7156 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159 save_CFLAGS="$CFLAGS"
7160 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
7161 -Wno-overlength-strings"
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7170 main ()
7174 return 0;
7176 _ACEOF
7177 rm -f conftest.$ac_objext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7179 (eval $ac_compile) 2>conftest.er1
7180 ac_status=$?
7181 grep -v '^ *+' conftest.er1 >conftest.err
7182 rm -f conftest.er1
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -z "$ac_c_werror_flag"
7187 || test ! -s conftest.err'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; } &&
7193 { ac_try='test -s conftest.$ac_objext'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7199 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
7200 else
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
7206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7207 CFLAGS="$save_CFLAGS"
7209 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
7210 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
7211 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
7212 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
7213 -Wno-overlength-strings"
7220 # Check whether --enable-werror-always or --disable-werror-always was given.
7221 if test "${enable_werror_always+set}" = set; then
7222 enableval="$enable_werror_always"
7224 else
7225 enable_werror_always=no
7227 if test $enable_werror_always = yes; then
7228 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7234 # The above macros do nothing if the compiler is not GCC. However, the
7235 # Makefile has more goo to add other flags, so this variabl is used to
7236 # enables warnings only for GCC.
7237 warn_cflags=
7238 if test "x$GCC" = "xyes"; then
7239 warn_cflags='$(GCC_WARN_CFLAGS)'
7243 # Enable expensive internal checks
7244 is_release=
7245 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7246 is_release=yes
7249 # Check whether --enable-checking or --disable-checking was given.
7250 if test "${enable_checking+set}" = set; then
7251 enableval="$enable_checking"
7252 ac_checking_flags="${enableval}"
7253 else
7255 # Determine the default checks.
7256 if test x$is_release = x ; then
7257 ac_checking_flags=yes
7258 else
7259 ac_checking_flags=release
7262 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7263 for check in release $ac_checking_flags
7265 case $check in
7266 # these set all the flags to specific states
7267 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7268 ac_fold_checking= ; ac_gc_checking=1 ;
7269 ac_gc_always_collect= ; ac_rtl_checking= ;
7270 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7271 ac_tree_checking=1 ; ac_valgrind_checking= ;
7272 ac_types_checking=1 ;;
7273 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7274 ac_fold_checking= ; ac_gc_checking= ;
7275 ac_gc_always_collect= ; ac_rtl_checking= ;
7276 ac_rtlflag_checking= ; ac_runtime_checking= ;
7277 ac_tree_checking= ; ac_valgrind_checking= ;
7278 ac_types_checking= ;;
7279 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7280 ac_fold_checking=1 ; ac_gc_checking=1 ;
7281 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
7282 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7283 ac_tree_checking=1 ; ac_valgrind_checking= ;
7284 ac_types_checking=1 ;;
7285 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7286 ac_fold_checking= ; ac_gc_checking= ;
7287 ac_gc_always_collect= ; ac_rtl_checking= ;
7288 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7289 ac_tree_checking= ; ac_valgrind_checking= ;
7290 ac_types_checking= ;;
7291 # these enable particular checks
7292 assert) ac_assert_checking=1 ;;
7293 df) ac_df_checking=1 ;;
7294 fold) ac_fold_checking=1 ;;
7295 gc) ac_gc_checking=1 ;;
7296 gcac) ac_gc_always_collect=1 ;;
7297 misc) ac_checking=1 ;;
7298 rtl) ac_rtl_checking=1 ;;
7299 rtlflag) ac_rtlflag_checking=1 ;;
7300 runtime) ac_runtime_checking=1 ;;
7301 tree) ac_tree_checking=1 ;;
7302 types) ac_types_checking=1 ;;
7303 valgrind) ac_valgrind_checking=1 ;;
7304 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7305 echo "$as_me: error: unknown check category $check" >&2;}
7306 { (exit 1); exit 1; }; } ;;
7307 esac
7308 done
7309 IFS="$ac_save_IFS"
7311 nocommon_flag=""
7312 if test x$ac_checking != x ; then
7314 cat >>confdefs.h <<\_ACEOF
7315 #define ENABLE_CHECKING 1
7316 _ACEOF
7318 nocommon_flag=-fno-common
7321 if test x$ac_df_checking != x ; then
7323 cat >>confdefs.h <<\_ACEOF
7324 #define ENABLE_DF_CHECKING 1
7325 _ACEOF
7328 if test x$ac_assert_checking != x ; then
7330 cat >>confdefs.h <<\_ACEOF
7331 #define ENABLE_ASSERT_CHECKING 1
7332 _ACEOF
7336 if test x$ac_runtime_checking != x ; then
7338 cat >>confdefs.h <<\_ACEOF
7339 #define ENABLE_RUNTIME_CHECKING 1
7340 _ACEOF
7343 if test x$ac_tree_checking != x ; then
7345 cat >>confdefs.h <<\_ACEOF
7346 #define ENABLE_TREE_CHECKING 1
7347 _ACEOF
7349 TREEBROWSER=tree-browser.o
7351 if test x$ac_types_checking != x ; then
7353 cat >>confdefs.h <<\_ACEOF
7354 #define ENABLE_TYPES_CHECKING 1
7355 _ACEOF
7359 if test x$ac_rtl_checking != x ; then
7361 cat >>confdefs.h <<\_ACEOF
7362 #define ENABLE_RTL_CHECKING 1
7363 _ACEOF
7366 if test x$ac_rtlflag_checking != x ; then
7368 cat >>confdefs.h <<\_ACEOF
7369 #define ENABLE_RTL_FLAG_CHECKING 1
7370 _ACEOF
7373 if test x$ac_gc_checking != x ; then
7375 cat >>confdefs.h <<\_ACEOF
7376 #define ENABLE_GC_CHECKING 1
7377 _ACEOF
7380 if test x$ac_gc_always_collect != x ; then
7382 cat >>confdefs.h <<\_ACEOF
7383 #define ENABLE_GC_ALWAYS_COLLECT 1
7384 _ACEOF
7387 if test x$ac_fold_checking != x ; then
7389 cat >>confdefs.h <<\_ACEOF
7390 #define ENABLE_FOLD_CHECKING 1
7391 _ACEOF
7394 valgrind_path_defines=
7395 valgrind_command=
7397 if test "${ac_cv_header_valgrind_h+set}" = set; then
7398 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7399 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7400 if test "${ac_cv_header_valgrind_h+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7404 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7405 else
7406 # Is the header compilable?
7407 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7408 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h. */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 $ac_includes_default
7416 #include <valgrind.h>
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420 (eval $ac_compile) 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } &&
7427 { ac_try='test -z "$ac_c_werror_flag"
7428 || test ! -s conftest.err'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 (eval $ac_try) 2>&5
7431 ac_status=$?
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; } &&
7434 { ac_try='test -s conftest.$ac_objext'
7435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 (eval $ac_try) 2>&5
7437 ac_status=$?
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 ac_header_compiler=yes
7441 else
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 ac_header_compiler=no
7447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7449 echo "${ECHO_T}$ac_header_compiler" >&6
7451 # Is the header present?
7452 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7453 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h. */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 #include <valgrind.h>
7461 _ACEOF
7462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } >/dev/null; then
7470 if test -s conftest.err; then
7471 ac_cpp_err=$ac_c_preproc_warn_flag
7472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7473 else
7474 ac_cpp_err=
7476 else
7477 ac_cpp_err=yes
7479 if test -z "$ac_cpp_err"; then
7480 ac_header_preproc=yes
7481 else
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7485 ac_header_preproc=no
7487 rm -f conftest.err conftest.$ac_ext
7488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7489 echo "${ECHO_T}$ac_header_preproc" >&6
7491 # So? What about this header?
7492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7493 yes:no: )
7494 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7495 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7497 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7498 ac_header_preproc=yes
7500 no:yes:* )
7501 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7502 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7504 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7506 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7508 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7509 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7510 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7511 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7512 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7514 cat <<\_ASBOX
7515 ## ------------------------------------------ ##
7516 ## Report this to the AC_PACKAGE_NAME lists. ##
7517 ## ------------------------------------------ ##
7518 _ASBOX
7520 sed "s/^/$as_me: WARNING: /" >&2
7522 esac
7523 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7524 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7525 if test "${ac_cv_header_valgrind_h+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528 ac_cv_header_valgrind_h=$ac_header_preproc
7530 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7531 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7534 if test $ac_cv_header_valgrind_h = yes; then
7535 have_valgrind_h=yes
7536 else
7537 have_valgrind_h=no
7542 if test x$ac_valgrind_checking != x ; then
7543 # It is certainly possible that there's valgrind but no valgrind.h.
7544 # GCC relies on making annotations so we must have both.
7545 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7546 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7547 cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h. */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 #include <valgrind/memcheck.h>
7554 #ifndef VALGRIND_DISCARD
7555 #error VALGRIND_DISCARD not defined
7556 #endif
7557 _ACEOF
7558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } >/dev/null; then
7566 if test -s conftest.err; then
7567 ac_cpp_err=$ac_c_preproc_warn_flag
7568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7569 else
7570 ac_cpp_err=
7572 else
7573 ac_cpp_err=yes
7575 if test -z "$ac_cpp_err"; then
7576 gcc_cv_header_valgrind_memcheck_h=yes
7577 else
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7581 gcc_cv_header_valgrind_memcheck_h=no
7583 rm -f conftest.err conftest.$ac_ext
7584 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7585 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7586 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7587 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7588 cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h. */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 #include <memcheck.h>
7595 #ifndef VALGRIND_DISCARD
7596 #error VALGRIND_DISCARD not defined
7597 #endif
7598 _ACEOF
7599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7601 ac_status=$?
7602 grep -v '^ *+' conftest.er1 >conftest.err
7603 rm -f conftest.er1
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } >/dev/null; then
7607 if test -s conftest.err; then
7608 ac_cpp_err=$ac_c_preproc_warn_flag
7609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7610 else
7611 ac_cpp_err=
7613 else
7614 ac_cpp_err=yes
7616 if test -z "$ac_cpp_err"; then
7617 gcc_cv_header_memcheck_h=yes
7618 else
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7622 gcc_cv_header_memcheck_h=no
7624 rm -f conftest.err conftest.$ac_ext
7625 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7626 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7628 # Prepare PATH_SEPARATOR.
7629 # The user is always right.
7630 if test "${PATH_SEPARATOR+set}" != set; then
7631 echo "#! /bin/sh" >conf$$.sh
7632 echo "exit 0" >>conf$$.sh
7633 chmod +x conf$$.sh
7634 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7635 PATH_SEPARATOR=';'
7636 else
7637 PATH_SEPARATOR=:
7639 rm -f conf$$.sh
7642 # Find out how to test for executable files. Don't use a zero-byte file,
7643 # as systems may use methods other than mode bits to determine executability.
7644 cat >conf$$.file <<_ASEOF
7645 #! /bin/sh
7646 exit 0
7647 _ASEOF
7648 chmod +x conf$$.file
7649 if test -x conf$$.file >/dev/null 2>&1; then
7650 ac_executable_p="test -x"
7651 else
7652 ac_executable_p="test -f"
7654 rm -f conf$$.file
7656 # Extract the first word of "valgrind", so it can be a program name with args.
7657 set dummy valgrind; ac_word=$2
7658 echo "$as_me:$LINENO: checking for $ac_word" >&5
7659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7660 if test "${ac_cv_path_valgrind_path+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663 case "$valgrind_path" in
7664 [\\/]* | ?:[\\/]*)
7665 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7668 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7669 for ac_dir in $PATH; do
7670 IFS="$ac_save_IFS"
7671 test -z "$ac_dir" && ac_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7674 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7675 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7676 break 2
7679 done
7680 done
7681 IFS="$ac_save_IFS"
7683 esac
7685 valgrind_path="$ac_cv_path_valgrind_path"
7686 if test -n "$valgrind_path"; then
7687 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7688 echo "${ECHO_T}$valgrind_path" >&6
7689 else
7690 echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6
7694 if test "x$valgrind_path" = "x" \
7695 || (test $have_valgrind_h = no \
7696 && test $gcc_cv_header_memcheck_h = no \
7697 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7698 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7699 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7700 { (exit 1); exit 1; }; }
7702 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7703 valgrind_command="$valgrind_path -q"
7705 cat >>confdefs.h <<\_ACEOF
7706 #define ENABLE_VALGRIND_CHECKING 1
7707 _ACEOF
7709 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7711 cat >>confdefs.h <<\_ACEOF
7712 #define HAVE_VALGRIND_MEMCHECK_H 1
7713 _ACEOF
7716 if test $gcc_cv_header_memcheck_h = yes; then
7718 cat >>confdefs.h <<\_ACEOF
7719 #define HAVE_MEMCHECK_H 1
7720 _ACEOF
7727 # Enable code coverage collection
7728 # Check whether --enable-coverage or --disable-coverage was given.
7729 if test "${enable_coverage+set}" = set; then
7730 enableval="$enable_coverage"
7731 case "${enableval}" in
7732 yes|noopt)
7733 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7735 opt)
7736 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7739 # a.k.a. --disable-coverage
7740 coverage_flags=""
7743 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7744 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7745 { (exit 1); exit 1; }; }
7747 esac
7748 else
7749 coverage_flags=""
7753 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7754 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7755 enableval="$enable_gather_detailed_mem_stats"
7757 else
7758 enable_gather_detailed_mem_stats=no
7760 if test x$enable_gather_detailed_mem_stats = xyes ; then
7762 cat >>confdefs.h <<\_ACEOF
7763 #define GATHER_STATISTICS 1
7764 _ACEOF
7768 # -------------------------------
7769 # Miscenalleous configure options
7770 # -------------------------------
7772 # With stabs
7774 # Check whether --with-stabs or --without-stabs was given.
7775 if test "${with_stabs+set}" = set; then
7776 withval="$with_stabs"
7777 stabs="$with_stabs"
7778 else
7779 stabs=no
7782 # Determine whether or not multilibs are enabled.
7783 # Check whether --enable-multilib or --disable-multilib was given.
7784 if test "${enable_multilib+set}" = set; then
7785 enableval="$enable_multilib"
7787 else
7788 enable_multilib=yes
7792 # Enable __cxa_atexit for C++.
7793 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7794 if test "${enable___cxa_atexit+set}" = set; then
7795 enableval="$enable___cxa_atexit"
7799 # Enable C extension for decimal float if target supports it.
7800 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7801 if test "${enable_decimal_float+set}" = set; then
7802 enableval="$enable_decimal_float"
7804 case $enable_decimal_float in
7805 yes | no | bid | dpd) ;;
7806 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7807 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7808 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7809 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7810 { (exit 1); exit 1; }; } ;;
7811 esac
7813 else
7815 case $target in
7816 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7817 enable_decimal_float=yes
7820 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7821 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7822 enable_decimal_float=no
7824 esac
7828 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7830 cat >>confdefs.h <<_ACEOF
7831 #define ENABLE_DECIMAL_FLOAT $dfp
7832 _ACEOF
7835 # x86's use BID format instead of DPD
7836 case x$enable_decimal_float in
7837 xyes)
7838 case $target in
7839 i?86*-*-linux* | x86_64*-*-linux*)
7840 enable_decimal_float=bid
7843 enable_decimal_float=dpd
7845 esac
7847 xno)
7848 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7849 # dependency on libdecnumber.
7850 enable_decimal_float=dpd
7852 esac
7855 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7857 cat >>confdefs.h <<_ACEOF
7858 #define ENABLE_DECIMAL_BID_FORMAT $bid
7859 _ACEOF
7862 # Enable C extension for fixed-point arithmetic.
7863 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7864 if test "${enable_fixed_point+set}" = set; then
7865 enableval="$enable_fixed_point"
7868 else
7870 case $target in
7871 mips*-*-*)
7872 case $host in
7873 mips*-sgi-irix*)
7874 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7875 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7876 enable_fixed_point=no
7879 enable_fixed_point=yes
7881 esac
7884 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7885 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7886 enable_fixed_point=no
7888 esac
7893 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7895 cat >>confdefs.h <<_ACEOF
7896 #define ENABLE_FIXED_POINT $fixedpoint
7897 _ACEOF
7900 # Enable threads
7901 # Pass with no value to take the default
7902 # Pass with a value to specify a thread package
7903 # Check whether --enable-threads or --disable-threads was given.
7904 if test "${enable_threads+set}" = set; then
7905 enableval="$enable_threads"
7907 else
7908 enable_threads=''
7911 # Check whether --enable-tls or --disable-tls was given.
7912 if test "${enable_tls+set}" = set; then
7913 enableval="$enable_tls"
7915 case $enable_tls in
7916 yes | no) ;;
7917 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7918 Valid choices are 'yes' and 'no'." >&5
7919 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7920 Valid choices are 'yes' and 'no'." >&2;}
7921 { (exit 1); exit 1; }; } ;;
7922 esac
7924 else
7925 enable_tls=''
7928 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7929 if test "${enable_objc_gc+set}" = set; then
7930 enableval="$enable_objc_gc"
7931 if test x$enable_objc_gc = xno; then
7932 objc_boehm_gc=''
7933 else
7934 objc_boehm_gc=1
7936 else
7937 objc_boehm_gc=''
7941 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7942 if test "${with_dwarf2+set}" = set; then
7943 withval="$with_dwarf2"
7944 dwarf2="$with_dwarf2"
7945 else
7946 dwarf2=no
7949 # Check whether --enable-shared or --disable-shared was given.
7950 if test "${enable_shared+set}" = set; then
7951 enableval="$enable_shared"
7953 case $enable_shared in
7954 yes | no) ;;
7956 enable_shared=no
7957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7958 for pkg in $enableval; do
7959 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7960 enable_shared=yes
7962 done
7963 IFS="$ac_save_ifs"
7965 esac
7967 else
7968 enable_shared=yes
7973 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7974 if test "${with_build_sysroot+set}" = set; then
7975 withval="$with_build_sysroot"
7980 # Check whether --with-sysroot or --without-sysroot was given.
7981 if test "${with_sysroot+set}" = set; then
7982 withval="$with_sysroot"
7984 case ${with_sysroot} in
7985 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7986 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7987 esac
7989 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7990 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7992 if test "x$prefix" = xNONE; then
7993 test_prefix=/usr/local
7994 else
7995 test_prefix=$prefix
7997 if test "x$exec_prefix" = xNONE; then
7998 test_exec_prefix=$test_prefix
7999 else
8000 test_exec_prefix=$exec_prefix
8002 case ${TARGET_SYSTEM_ROOT} in
8003 "${test_prefix}"|"${test_prefix}/"*|\
8004 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8005 '${prefix}'|'${prefix}/'*|\
8006 '${exec_prefix}'|'${exec_prefix}/'*)
8007 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8008 TARGET_SYSTEM_ROOT_DEFINE="$t"
8010 esac
8012 else
8014 TARGET_SYSTEM_ROOT=
8015 TARGET_SYSTEM_ROOT_DEFINE=
8016 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8023 # Build with intermodule optimisations
8024 # Check whether --enable-intermodule or --disable-intermodule was given.
8025 if test "${enable_intermodule+set}" = set; then
8026 enableval="$enable_intermodule"
8027 case ${enable_intermodule} in
8028 yes) onestep="-onestep";;
8029 *) onestep="";;
8030 esac
8031 else
8032 onestep=""
8038 # Check whether --with-pkgversion or --without-pkgversion was given.
8039 if test "${with_pkgversion+set}" = set; then
8040 withval="$with_pkgversion"
8041 case "$withval" in
8042 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8043 echo "$as_me: error: package version not specified" >&2;}
8044 { (exit 1); exit 1; }; } ;;
8045 no) PKGVERSION= ;;
8046 *) PKGVERSION="($withval) " ;;
8047 esac
8048 else
8049 PKGVERSION="(GCC) "
8056 # Check whether --with-bugurl or --without-bugurl was given.
8057 if test "${with_bugurl+set}" = set; then
8058 withval="$with_bugurl"
8059 case "$withval" in
8060 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8061 echo "$as_me: error: bug URL not specified" >&2;}
8062 { (exit 1); exit 1; }; } ;;
8063 no) BUGURL=
8065 *) BUGURL="$withval"
8067 esac
8068 else
8069 BUGURL="http://gcc.gnu.org/bugs.html"
8072 case ${BUGURL} in
8074 REPORT_BUGS_TO=
8075 REPORT_BUGS_TEXI=
8078 REPORT_BUGS_TO="<$BUGURL>"
8079 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8081 esac;
8086 # Sanity check enable_languages in case someone does not run the toplevel
8087 # configure # script.
8088 # Check whether --enable-languages or --disable-languages was given.
8089 if test "${enable_languages+set}" = set; then
8090 enableval="$enable_languages"
8091 case ,${enable_languages}, in
8092 ,,|,yes,)
8093 # go safe -- we cannot be much sure without the toplevel
8094 # configure's
8095 # analysis of which target libs are present and usable
8096 enable_languages=c
8098 *,all,*)
8099 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8100 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8101 { (exit 1); exit 1; }; }
8103 *,c,*)
8106 enable_languages=c,${enable_languages}
8108 esac
8109 else
8110 enable_languages=c
8113 # Used by documentation targets
8118 # -------------------------
8119 # Checks for other programs
8120 # -------------------------
8122 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8123 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8124 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8125 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 else
8128 cat >conftest.make <<\_ACEOF
8129 all:
8130 @echo 'ac_maketemp="$(MAKE)"'
8131 _ACEOF
8132 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8133 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8134 if test -n "$ac_maketemp"; then
8135 eval ac_cv_prog_make_${ac_make}_set=yes
8136 else
8137 eval ac_cv_prog_make_${ac_make}_set=no
8139 rm -f conftest.make
8141 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8142 echo "$as_me:$LINENO: result: yes" >&5
8143 echo "${ECHO_T}yes" >&6
8144 SET_MAKE=
8145 else
8146 echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6
8148 SET_MAKE="MAKE=${MAKE-make}"
8152 # Find some useful tools
8153 for ac_prog in gawk mawk nawk awk
8155 # Extract the first word of "$ac_prog", so it can be a program name with args.
8156 set dummy $ac_prog; ac_word=$2
8157 echo "$as_me:$LINENO: checking for $ac_word" >&5
8158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8159 if test "${ac_cv_prog_AWK+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162 if test -n "$AWK"; then
8163 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172 ac_cv_prog_AWK="$ac_prog"
8173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 break 2
8176 done
8177 done
8181 AWK=$ac_cv_prog_AWK
8182 if test -n "$AWK"; then
8183 echo "$as_me:$LINENO: result: $AWK" >&5
8184 echo "${ECHO_T}$AWK" >&6
8185 else
8186 echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6
8190 test -n "$AWK" && break
8191 done
8193 # We need awk to create options.c and options.h.
8194 # Bail out if it's missing.
8195 case ${AWK} in
8196 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8197 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8198 { (exit 1); exit 1; }; } ;;
8199 esac
8201 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8202 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8203 if test "${gcc_cv_prog_LN_S+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206 rm -f conftestdata_t
8207 echo >conftestdata_f
8208 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8209 then
8210 gcc_cv_prog_LN_S="ln -s"
8211 else
8212 if ln conftestdata_f conftestdata_t 2>/dev/null
8213 then
8214 gcc_cv_prog_LN_S=ln
8215 else
8216 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8217 then
8218 gcc_cv_prog_LN_S="cp -p"
8219 else
8220 gcc_cv_prog_LN_S=cp
8224 rm -f conftestdata_f conftestdata_t
8227 LN_S="$gcc_cv_prog_LN_S"
8228 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8229 echo "$as_me:$LINENO: result: yes" >&5
8230 echo "${ECHO_T}yes" >&6
8231 else
8232 if test "$gcc_cv_prog_LN_S" = "ln"; then
8233 echo "$as_me:$LINENO: result: no, using ln" >&5
8234 echo "${ECHO_T}no, using ln" >&6
8235 else
8236 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8237 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8241 echo "$as_me:$LINENO: checking whether ln works" >&5
8242 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8243 if test "${acx_cv_prog_LN+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246 rm -f conftestdata_t
8247 echo >conftestdata_f
8248 if ln conftestdata_f conftestdata_t 2>/dev/null
8249 then
8250 acx_cv_prog_LN=ln
8251 else
8252 acx_cv_prog_LN=no
8254 rm -f conftestdata_f conftestdata_t
8257 if test $acx_cv_prog_LN = no; then
8258 LN="$LN_S"
8259 echo "$as_me:$LINENO: result: no, using $LN" >&5
8260 echo "${ECHO_T}no, using $LN" >&6
8261 else
8262 LN="$acx_cv_prog_LN"
8263 echo "$as_me:$LINENO: result: yes" >&5
8264 echo "${ECHO_T}yes" >&6
8267 if test -n "$ac_tool_prefix"; then
8268 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8269 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8270 echo "$as_me:$LINENO: checking for $ac_word" >&5
8271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8272 if test "${ac_cv_prog_RANLIB+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275 if test -n "$RANLIB"; then
8276 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8285 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8289 done
8290 done
8294 RANLIB=$ac_cv_prog_RANLIB
8295 if test -n "$RANLIB"; then
8296 echo "$as_me:$LINENO: result: $RANLIB" >&5
8297 echo "${ECHO_T}$RANLIB" >&6
8298 else
8299 echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6
8304 if test -z "$ac_cv_prog_RANLIB"; then
8305 ac_ct_RANLIB=$RANLIB
8306 # Extract the first word of "ranlib", so it can be a program name with args.
8307 set dummy ranlib; ac_word=$2
8308 echo "$as_me:$LINENO: checking for $ac_word" >&5
8309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8310 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313 if test -n "$ac_ct_RANLIB"; then
8314 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8315 else
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323 ac_cv_prog_ac_ct_RANLIB="ranlib"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 break 2
8327 done
8328 done
8330 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8333 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8334 if test -n "$ac_ct_RANLIB"; then
8335 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8336 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8337 else
8338 echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6
8342 RANLIB=$ac_ct_RANLIB
8343 else
8344 RANLIB="$ac_cv_prog_RANLIB"
8347 case "${host}" in
8348 *-*-darwin*)
8349 # By default, the Darwin ranlib will not treat common symbols as
8350 # definitions when building the archive table of contents. Other
8351 # ranlibs do that; pass an option to the Darwin ranlib that makes
8352 # it behave similarly.
8353 ranlib_flags="-c"
8356 ranlib_flags=""
8357 esac
8360 # Find a good install program. We prefer a C program (faster),
8361 # so one script is as good as another. But avoid the broken or
8362 # incompatible versions:
8363 # SysV /etc/install, /usr/sbin/install
8364 # SunOS /usr/etc/install
8365 # IRIX /sbin/install
8366 # AIX /bin/install
8367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8369 # ./install, which can be erroneously created by make from ./install.sh.
8370 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8371 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8372 if test -z "$INSTALL"; then
8373 if test "${ac_cv_path_install+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8377 for ac_dir in $PATH; do
8378 # Account for people who put trailing slashes in PATH elements.
8379 case "$ac_dir/" in
8380 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8382 # OSF1 and SCO ODT 3.0 have their own names for install.
8383 for ac_prog in ginstall scoinst install; do
8384 if test -f $ac_dir/$ac_prog; then
8385 if test $ac_prog = install &&
8386 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8387 # AIX install. It has an incompatible calling convention.
8388 # OSF/1 installbsd also uses dspmsg, but is usable.
8390 else
8391 ac_cv_path_install="$ac_dir/$ac_prog -c"
8392 break 2
8395 done
8397 esac
8398 done
8399 IFS="$ac_save_IFS"
8402 if test "${ac_cv_path_install+set}" = set; then
8403 INSTALL="$ac_cv_path_install"
8404 else
8405 # As a last resort, use the slow shell script. We don't cache a
8406 # path for INSTALL within a source directory, because that will
8407 # break other packages using the cache if that directory is
8408 # removed, or if the path is relative.
8409 INSTALL="$ac_install_sh"
8412 echo "$as_me:$LINENO: result: $INSTALL" >&5
8413 echo "${ECHO_T}$INSTALL" >&6
8415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8416 # It thinks the first close brace ends the variable substitution.
8417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8422 # See if cmp has --ignore-initial.
8423 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8424 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8425 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428 echo abfoo >t1
8429 echo cdfoo >t2
8430 gcc_cv_prog_cmp_skip=slowcompare
8431 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8432 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8434 else
8435 gcc_cv_prog_cmp_skip=gnucompare
8438 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8439 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8440 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8442 else
8443 gcc_cv_prog_cmp_skip=fastcompare
8447 rm t1 t2
8450 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8451 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8452 make_compare_target=$gcc_cv_prog_cmp_skip
8456 # See if we have the mktemp command.
8457 # Extract the first word of "mktemp", so it can be a program name with args.
8458 set dummy mktemp; ac_word=$2
8459 echo "$as_me:$LINENO: checking for $ac_word" >&5
8460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8461 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464 if test -n "$have_mktemp_command"; then
8465 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8466 else
8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468 for as_dir in $PATH
8470 IFS=$as_save_IFS
8471 test -z "$as_dir" && as_dir=.
8472 for ac_exec_ext in '' $ac_executable_extensions; do
8473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8474 ac_cv_prog_have_mktemp_command="yes"
8475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8476 break 2
8478 done
8479 done
8481 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8484 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8485 if test -n "$have_mktemp_command"; then
8486 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8487 echo "${ECHO_T}$have_mktemp_command" >&6
8488 else
8489 echo "$as_me:$LINENO: result: no" >&5
8490 echo "${ECHO_T}no" >&6
8494 # See if makeinfo has been installed and is modern enough
8495 # that we can use it.
8497 # Extract the first word of "makeinfo", so it can be a program name with args.
8498 set dummy makeinfo; ac_word=$2
8499 echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8501 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504 if test -n "$MAKEINFO"; then
8505 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8514 ac_cv_prog_MAKEINFO="makeinfo"
8515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8518 done
8519 done
8523 MAKEINFO=$ac_cv_prog_MAKEINFO
8524 if test -n "$MAKEINFO"; then
8525 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8526 echo "${ECHO_T}$MAKEINFO" >&6
8527 else
8528 echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6
8532 if test -n "$MAKEINFO"; then
8533 # Found it, now check the version.
8534 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8535 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8536 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8540 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8542 case $ac_prog_version in
8543 '') gcc_cv_prog_makeinfo_modern=no;;
8544 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8545 *) gcc_cv_prog_makeinfo_modern=no;;
8546 esac
8549 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8550 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8551 else
8552 gcc_cv_prog_makeinfo_modern=no
8554 if test $gcc_cv_prog_makeinfo_modern = no; then
8555 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8558 if test $gcc_cv_prog_makeinfo_modern = no; then
8559 { echo "$as_me:$LINENO: WARNING:
8560 *** Makeinfo is missing or too old.
8561 *** Info documentation will not be built." >&5
8562 echo "$as_me: WARNING:
8563 *** Makeinfo is missing or too old.
8564 *** Info documentation will not be built." >&2;}
8565 BUILD_INFO=
8566 else
8567 BUILD_INFO=info
8571 # Is pod2man recent enough to regenerate manpages?
8572 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8573 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8574 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8575 echo "$as_me:$LINENO: result: yes" >&5
8576 echo "${ECHO_T}yes" >&6
8577 GENERATED_MANPAGES=generated-manpages
8578 else
8579 echo "$as_me:$LINENO: result: no" >&5
8580 echo "${ECHO_T}no" >&6
8581 GENERATED_MANPAGES=
8585 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8587 # How about lex?
8588 for ac_prog in flex
8590 # Extract the first word of "$ac_prog", so it can be a program name with args.
8591 set dummy $ac_prog; ac_word=$2
8592 echo "$as_me:$LINENO: checking for $ac_word" >&5
8593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8594 if test "${ac_cv_prog_FLEX+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597 if test -n "$FLEX"; then
8598 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8599 else
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 for as_dir in $PATH
8603 IFS=$as_save_IFS
8604 test -z "$as_dir" && as_dir=.
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8607 ac_cv_prog_FLEX="$ac_prog"
8608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8609 break 2
8611 done
8612 done
8616 FLEX=$ac_cv_prog_FLEX
8617 if test -n "$FLEX"; then
8618 echo "$as_me:$LINENO: result: $FLEX" >&5
8619 echo "${ECHO_T}$FLEX" >&6
8620 else
8621 echo "$as_me:$LINENO: result: no" >&5
8622 echo "${ECHO_T}no" >&6
8625 test -n "$FLEX" && break
8626 done
8627 test -n "$FLEX" || FLEX="$MISSING flex"
8630 # Bison?
8631 for ac_prog in bison
8633 # Extract the first word of "$ac_prog", so it can be a program name with args.
8634 set dummy $ac_prog; ac_word=$2
8635 echo "$as_me:$LINENO: checking for $ac_word" >&5
8636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8637 if test "${ac_cv_prog_BISON+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640 if test -n "$BISON"; then
8641 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8642 else
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $PATH
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8650 ac_cv_prog_BISON="$ac_prog"
8651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 break 2
8654 done
8655 done
8659 BISON=$ac_cv_prog_BISON
8660 if test -n "$BISON"; then
8661 echo "$as_me:$LINENO: result: $BISON" >&5
8662 echo "${ECHO_T}$BISON" >&6
8663 else
8664 echo "$as_me:$LINENO: result: no" >&5
8665 echo "${ECHO_T}no" >&6
8668 test -n "$BISON" && break
8669 done
8670 test -n "$BISON" || BISON="$MISSING bison"
8673 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8674 # check for build == host before using them.
8676 # NM
8677 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8678 && test -d ../binutils ; then
8679 NM='$(objdir)/../binutils/nm-new'
8680 else
8681 # Extract the first word of "nm", so it can be a program name with args.
8682 set dummy nm; ac_word=$2
8683 echo "$as_me:$LINENO: checking for $ac_word" >&5
8684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8685 if test "${ac_cv_prog_NM+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688 if test -n "$NM"; then
8689 ac_cv_prog_NM="$NM" # Let the user override the test.
8690 else
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_NM="nm"
8699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 break 2
8702 done
8703 done
8705 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8708 NM=$ac_cv_prog_NM
8709 if test -n "$NM"; then
8710 echo "$as_me:$LINENO: result: $NM" >&5
8711 echo "${ECHO_T}$NM" >&6
8712 else
8713 echo "$as_me:$LINENO: result: no" >&5
8714 echo "${ECHO_T}no" >&6
8719 # AR
8720 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8721 && test -d ../binutils ; then
8722 AR='$(objdir)/../binutils/ar'
8723 else
8724 # Extract the first word of "ar", so it can be a program name with args.
8725 set dummy ar; ac_word=$2
8726 echo "$as_me:$LINENO: checking for $ac_word" >&5
8727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8728 if test "${ac_cv_prog_AR+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731 if test -n "$AR"; then
8732 ac_cv_prog_AR="$AR" # Let the user override the test.
8733 else
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 for as_dir in $PATH
8737 IFS=$as_save_IFS
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8741 ac_cv_prog_AR="ar"
8742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 break 2
8745 done
8746 done
8748 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8751 AR=$ac_cv_prog_AR
8752 if test -n "$AR"; then
8753 echo "$as_me:$LINENO: result: $AR" >&5
8754 echo "${ECHO_T}$AR" >&6
8755 else
8756 echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6
8763 # --------------------
8764 # Checks for C headers
8765 # --------------------
8767 # Need to reject headers which give warnings, so that the -Werror bootstrap
8768 # works later. *sigh* This needs to come before all header checks.
8770 ac_c_preproc_warn_flag=yes
8772 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8773 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8774 if test "${ac_cv_header_stdc+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 #include <stdlib.h>
8784 #include <stdarg.h>
8785 #include <string.h>
8786 #include <float.h>
8789 main ()
8793 return 0;
8795 _ACEOF
8796 rm -f conftest.$ac_objext
8797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8798 (eval $ac_compile) 2>conftest.er1
8799 ac_status=$?
8800 grep -v '^ *+' conftest.er1 >conftest.err
8801 rm -f conftest.er1
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -z "$ac_c_werror_flag"
8806 || test ! -s conftest.err'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 (eval $ac_try) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest.$ac_objext'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 (eval $ac_try) 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 ac_cv_header_stdc=yes
8819 else
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 ac_cv_header_stdc=no
8825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8827 if test $ac_cv_header_stdc = yes; then
8828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8829 cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h. */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8835 #include <string.h>
8837 _ACEOF
8838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8839 $EGREP "memchr" >/dev/null 2>&1; then
8841 else
8842 ac_cv_header_stdc=no
8844 rm -f conftest*
8848 if test $ac_cv_header_stdc = yes; then
8849 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8850 cat >conftest.$ac_ext <<_ACEOF
8851 /* confdefs.h. */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856 #include <stdlib.h>
8858 _ACEOF
8859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8860 $EGREP "free" >/dev/null 2>&1; then
8862 else
8863 ac_cv_header_stdc=no
8865 rm -f conftest*
8869 if test $ac_cv_header_stdc = yes; then
8870 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8871 if test "$cross_compiling" = yes; then
8873 else
8874 cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h. */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880 #include <ctype.h>
8881 #if ((' ' & 0x0FF) == 0x020)
8882 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8883 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8884 #else
8885 # define ISLOWER(c) \
8886 (('a' <= (c) && (c) <= 'i') \
8887 || ('j' <= (c) && (c) <= 'r') \
8888 || ('s' <= (c) && (c) <= 'z'))
8889 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8890 #endif
8892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8894 main ()
8896 int i;
8897 for (i = 0; i < 256; i++)
8898 if (XOR (islower (i), ISLOWER (i))
8899 || toupper (i) != TOUPPER (i))
8900 exit(2);
8901 exit (0);
8903 _ACEOF
8904 rm -f conftest$ac_exeext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906 (eval $ac_link) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8916 else
8917 echo "$as_me: program exited with status $ac_status" >&5
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8921 ( exit $ac_status )
8922 ac_cv_header_stdc=no
8924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8928 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8929 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8930 if test $ac_cv_header_stdc = yes; then
8932 cat >>confdefs.h <<\_ACEOF
8933 #define STDC_HEADERS 1
8934 _ACEOF
8938 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8939 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8940 if test "${ac_cv_header_time+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h. */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949 #include <sys/types.h>
8950 #include <sys/time.h>
8951 #include <time.h>
8954 main ()
8956 if ((struct tm *) 0)
8957 return 0;
8959 return 0;
8961 _ACEOF
8962 rm -f conftest.$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964 (eval $ac_compile) 2>conftest.er1
8965 ac_status=$?
8966 grep -v '^ *+' conftest.er1 >conftest.err
8967 rm -f conftest.er1
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try='test -z "$ac_c_werror_flag"
8972 || test ! -s conftest.err'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 (eval $ac_try) 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; } &&
8978 { ac_try='test -s conftest.$ac_objext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 ac_cv_header_time=yes
8985 else
8986 echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8989 ac_cv_header_time=no
8991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8993 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8994 echo "${ECHO_T}$ac_cv_header_time" >&6
8995 if test $ac_cv_header_time = yes; then
8997 cat >>confdefs.h <<\_ACEOF
8998 #define TIME_WITH_SYS_TIME 1
8999 _ACEOF
9003 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9004 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9005 if test "${gcc_cv_header_string+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008 cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h. */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 #include <string.h>
9015 #include <strings.h>
9017 main ()
9021 return 0;
9023 _ACEOF
9024 rm -f conftest.$ac_objext
9025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9026 (eval $ac_compile) 2>conftest.er1
9027 ac_status=$?
9028 grep -v '^ *+' conftest.er1 >conftest.err
9029 rm -f conftest.er1
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -z "$ac_c_werror_flag"
9034 || test ! -s conftest.err'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 (eval $ac_try) 2>&5
9037 ac_status=$?
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; } &&
9040 { ac_try='test -s conftest.$ac_objext'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 (eval $ac_try) 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; }; then
9046 gcc_cv_header_string=yes
9047 else
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9051 gcc_cv_header_string=no
9053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9055 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9056 echo "${ECHO_T}$gcc_cv_header_string" >&6
9057 if test $gcc_cv_header_string = yes; then
9059 cat >>confdefs.h <<\_ACEOF
9060 #define STRING_WITH_STRINGS 1
9061 _ACEOF
9065 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9066 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9067 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070 cat >conftest.$ac_ext <<_ACEOF
9071 /* confdefs.h. */
9072 _ACEOF
9073 cat confdefs.h >>conftest.$ac_ext
9074 cat >>conftest.$ac_ext <<_ACEOF
9075 /* end confdefs.h. */
9076 #include <sys/types.h>
9077 #include <sys/wait.h>
9078 #ifndef WEXITSTATUS
9079 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9080 #endif
9081 #ifndef WIFEXITED
9082 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9083 #endif
9086 main ()
9088 int s;
9089 wait (&s);
9090 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9092 return 0;
9094 _ACEOF
9095 rm -f conftest.$ac_objext
9096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9097 (eval $ac_compile) 2>conftest.er1
9098 ac_status=$?
9099 grep -v '^ *+' conftest.er1 >conftest.err
9100 rm -f conftest.er1
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } &&
9104 { ac_try='test -z "$ac_c_werror_flag"
9105 || test ! -s conftest.err'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 (eval $ac_try) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; } &&
9111 { ac_try='test -s conftest.$ac_objext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 (eval $ac_try) 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_header_sys_wait_h=yes
9118 else
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9122 ac_cv_header_sys_wait_h=no
9124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9126 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9127 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9128 if test $ac_cv_header_sys_wait_h = yes; then
9130 cat >>confdefs.h <<\_ACEOF
9131 #define HAVE_SYS_WAIT_H 1
9132 _ACEOF
9158 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9159 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9160 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9161 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9164 echo "$as_me:$LINENO: checking for $ac_header" >&5
9165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 else
9169 cat >conftest.$ac_ext <<_ACEOF
9170 /* confdefs.h. */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 #include <$ac_header>
9176 _ACEOF
9177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } >/dev/null; then
9185 if test -s conftest.err; then
9186 ac_cpp_err=$ac_c_preproc_warn_flag
9187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9188 else
9189 ac_cpp_err=
9191 else
9192 ac_cpp_err=yes
9194 if test -z "$ac_cpp_err"; then
9195 eval "$as_ac_Header=yes"
9196 else
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9200 eval "$as_ac_Header=no"
9202 rm -f conftest.err conftest.$ac_ext
9204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9207 cat >>confdefs.h <<_ACEOF
9208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9209 _ACEOF
9212 done
9215 # Check for thread headers.
9216 echo "$as_me:$LINENO: checking for thread.h" >&5
9217 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9218 if test "${ac_cv_header_thread_h+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 #include <thread.h>
9228 _ACEOF
9229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } >/dev/null; then
9237 if test -s conftest.err; then
9238 ac_cpp_err=$ac_c_preproc_warn_flag
9239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9240 else
9241 ac_cpp_err=
9243 else
9244 ac_cpp_err=yes
9246 if test -z "$ac_cpp_err"; then
9247 ac_cv_header_thread_h=yes
9248 else
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9252 ac_cv_header_thread_h=no
9254 rm -f conftest.err conftest.$ac_ext
9256 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9257 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9258 if test $ac_cv_header_thread_h = yes; then
9259 have_thread_h=yes
9260 else
9261 have_thread_h=
9264 echo "$as_me:$LINENO: checking for pthread.h" >&5
9265 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9266 if test "${ac_cv_header_pthread_h+set}" = set; then
9267 echo $ECHO_N "(cached) $ECHO_C" >&6
9268 else
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 #include <pthread.h>
9276 _ACEOF
9277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9279 ac_status=$?
9280 grep -v '^ *+' conftest.er1 >conftest.err
9281 rm -f conftest.er1
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } >/dev/null; then
9285 if test -s conftest.err; then
9286 ac_cpp_err=$ac_c_preproc_warn_flag
9287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9288 else
9289 ac_cpp_err=
9291 else
9292 ac_cpp_err=yes
9294 if test -z "$ac_cpp_err"; then
9295 ac_cv_header_pthread_h=yes
9296 else
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_cv_header_pthread_h=no
9302 rm -f conftest.err conftest.$ac_ext
9304 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9305 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9306 if test $ac_cv_header_pthread_h = yes; then
9307 have_pthread_h=yes
9308 else
9309 have_pthread_h=
9313 # These tests can't be done till we know if we have limits.h.
9314 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9315 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9316 if test "${gcc_cv_decl_char_bit+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319 cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h. */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9325 #ifdef HAVE_LIMITS_H
9326 #include <limits.h>
9327 #endif
9328 #ifdef CHAR_BIT
9329 found
9330 #endif
9331 _ACEOF
9332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9333 $EGREP "found" >/dev/null 2>&1; then
9334 gcc_cv_decl_char_bit=yes
9335 else
9336 gcc_cv_decl_char_bit=no
9338 rm -f conftest*
9342 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9343 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9344 if test $gcc_cv_decl_char_bit = no; then
9345 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9346 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9347 if test "${gcc_cv_c_nbby+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9351 gcc_cv_c_nbby=
9352 while test $i -lt 65; do
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h. */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9361 main ()
9363 switch(0) {
9364 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9365 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9368 return 0;
9370 _ACEOF
9371 rm -f conftest.$ac_objext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>conftest.er1
9374 ac_status=$?
9375 grep -v '^ *+' conftest.er1 >conftest.err
9376 rm -f conftest.er1
9377 cat conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } &&
9380 { ac_try='test -z "$ac_c_werror_flag"
9381 || test ! -s conftest.err'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; } &&
9387 { ac_try='test -s conftest.$ac_objext'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389 (eval $ac_try) 2>&5
9390 ac_status=$?
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9393 gcc_cv_c_nbby=$i; break
9394 else
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9400 i=`expr $i + 1`
9401 done
9402 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9405 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9406 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9407 if test $gcc_cv_c_nbby = failed; then
9408 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9409 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9410 { (exit 1); exit 1; }; }
9411 else
9413 cat >>confdefs.h <<_ACEOF
9414 #define CHAR_BIT $gcc_cv_c_nbby
9415 _ACEOF
9419 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9420 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9421 if test "${ac_cv_c_bigendian+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424 # See if sys/param.h defines the BYTE_ORDER macro.
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 #include <sys/types.h>
9432 #include <sys/param.h>
9435 main ()
9437 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9438 bogus endian macros
9439 #endif
9442 return 0;
9444 _ACEOF
9445 rm -f conftest.$ac_objext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9447 (eval $ac_compile) 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -z "$ac_c_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 (eval $ac_try) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try='test -s conftest.$ac_objext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 # It does; now see whether it defined to BIG_ENDIAN or not.
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h. */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 #include <sys/types.h>
9475 #include <sys/param.h>
9478 main ()
9480 #if BYTE_ORDER != BIG_ENDIAN
9481 not big endian
9482 #endif
9485 return 0;
9487 _ACEOF
9488 rm -f conftest.$ac_objext
9489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9490 (eval $ac_compile) 2>conftest.er1
9491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -z "$ac_c_werror_flag"
9498 || test ! -s conftest.err'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 (eval $ac_try) 2>&5
9501 ac_status=$?
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; } &&
9504 { ac_try='test -s conftest.$ac_objext'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 (eval $ac_try) 2>&5
9507 ac_status=$?
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; }; then
9510 ac_cv_c_bigendian=yes
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_cv_c_bigendian=no
9517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9518 else
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 # It does not; compile a test program.
9523 if test "$cross_compiling" = yes; then
9524 # try to guess the endianness by grepping values into an object file
9525 ac_cv_c_bigendian=unknown
9526 cat >conftest.$ac_ext <<_ACEOF
9527 /* confdefs.h. */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9532 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9533 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9534 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9535 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9536 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9537 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9539 main ()
9541 _ascii (); _ebcdic ();
9543 return 0;
9545 _ACEOF
9546 rm -f conftest.$ac_objext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9548 (eval $ac_compile) 2>conftest.er1
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try='test -z "$ac_c_werror_flag"
9556 || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try='test -s conftest.$ac_objext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 (eval $ac_try) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9569 ac_cv_c_bigendian=yes
9571 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9572 if test "$ac_cv_c_bigendian" = unknown; then
9573 ac_cv_c_bigendian=no
9574 else
9575 # finding both strings is unlikely to happen, but who knows?
9576 ac_cv_c_bigendian=unknown
9579 else
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9585 else
9586 cat >conftest.$ac_ext <<_ACEOF
9587 /* confdefs.h. */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9593 main ()
9595 /* Are we little or big endian? From Harbison&Steele. */
9596 union
9598 long l;
9599 char c[sizeof (long)];
9600 } u;
9601 u.l = 1;
9602 exit (u.c[sizeof (long) - 1] == 1);
9604 _ACEOF
9605 rm -f conftest$ac_exeext
9606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9607 (eval $ac_link) 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 (eval $ac_try) 2>&5
9613 ac_status=$?
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; }; then
9616 ac_cv_c_bigendian=no
9617 else
9618 echo "$as_me: program exited with status $ac_status" >&5
9619 echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9622 ( exit $ac_status )
9623 ac_cv_c_bigendian=yes
9625 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9630 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9631 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9632 case $ac_cv_c_bigendian in
9633 yes)
9635 cat >>confdefs.h <<\_ACEOF
9636 #define WORDS_BIGENDIAN 1
9637 _ACEOF
9642 { { echo "$as_me:$LINENO: error: unknown endianness
9643 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9644 echo "$as_me: error: unknown endianness
9645 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9646 { (exit 1); exit 1; }; } ;;
9647 esac
9650 # --------
9651 # UNSORTED
9652 # --------
9655 # These libraries may be used by collect2.
9656 # We may need a special search path to get them linked.
9657 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9658 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9659 if test "${gcc_cv_collect2_libs+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662 save_LIBS="$LIBS"
9663 for libs in '' -lld -lmld \
9664 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9665 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9667 LIBS="$libs"
9668 cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h. */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9675 /* Override any gcc2 internal prototype to avoid an error. */
9676 #ifdef __cplusplus
9677 extern "C"
9678 #endif
9679 /* We use char because int might match the return type of a gcc2
9680 builtin and then its argument prototype would still apply. */
9681 char ldopen ();
9683 main ()
9685 ldopen ();
9687 return 0;
9689 _ACEOF
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692 (eval $ac_link) 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
9699 { ac_try='test -z "$ac_c_werror_flag"
9700 || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 (eval $ac_try) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest$ac_exeext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 (eval $ac_try) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 gcc_cv_collect2_libs="$libs"; break
9713 else
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9718 rm -f conftest.err conftest.$ac_objext \
9719 conftest$ac_exeext conftest.$ac_ext
9720 done
9721 LIBS="$save_LIBS"
9722 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9724 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9725 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9726 case $gcc_cv_collect2_libs in
9727 "none required") ;;
9728 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9729 esac
9732 # When building Ada code on Alpha, we need exc_resume which is usually in
9733 # -lexc. So test for it.
9734 save_LIBS="$LIBS"
9735 LIBS=
9736 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9737 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9738 if test "${ac_cv_search_exc_resume+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741 ac_func_search_save_LIBS=$LIBS
9742 ac_cv_search_exc_resume=no
9743 cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h. */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9750 /* Override any gcc2 internal prototype to avoid an error. */
9751 #ifdef __cplusplus
9752 extern "C"
9753 #endif
9754 /* We use char because int might match the return type of a gcc2
9755 builtin and then its argument prototype would still apply. */
9756 char exc_resume ();
9758 main ()
9760 exc_resume ();
9762 return 0;
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767 (eval $ac_link) 2>conftest.er1
9768 ac_status=$?
9769 grep -v '^ *+' conftest.er1 >conftest.err
9770 rm -f conftest.er1
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } &&
9774 { ac_try='test -z "$ac_c_werror_flag"
9775 || test ! -s conftest.err'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; } &&
9781 { ac_try='test -s conftest$ac_exeext'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 (eval $ac_try) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; }; then
9787 ac_cv_search_exc_resume="none required"
9788 else
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9793 rm -f conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9795 if test "$ac_cv_search_exc_resume" = no; then
9796 for ac_lib in exc; do
9797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9805 /* Override any gcc2 internal prototype to avoid an error. */
9806 #ifdef __cplusplus
9807 extern "C"
9808 #endif
9809 /* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9811 char exc_resume ();
9813 main ()
9815 exc_resume ();
9817 return 0;
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822 (eval $ac_link) 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_c_werror_flag"
9830 || test ! -s conftest.err'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 (eval $ac_try) 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; } &&
9836 { ac_try='test -s conftest$ac_exeext'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838 (eval $ac_try) 2>&5
9839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; }; then
9842 ac_cv_search_exc_resume="-l$ac_lib"
9843 break
9844 else
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9849 rm -f conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 done
9853 LIBS=$ac_func_search_save_LIBS
9855 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9856 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9857 if test "$ac_cv_search_exc_resume" != no; then
9858 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9862 GNAT_LIBEXC="$LIBS"
9863 LIBS="$save_LIBS"
9866 # Some systems put ldexp and frexp in libm instead of libc; assume
9867 # they're both in the same place. jcf-dump needs them.
9868 save_LIBS="$LIBS"
9869 LIBS=
9870 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9871 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9872 if test "${ac_cv_search_ldexp+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875 ac_func_search_save_LIBS=$LIBS
9876 ac_cv_search_ldexp=no
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h. */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9884 /* Override any gcc2 internal prototype to avoid an error. */
9885 #ifdef __cplusplus
9886 extern "C"
9887 #endif
9888 /* We use char because int might match the return type of a gcc2
9889 builtin and then its argument prototype would still apply. */
9890 char ldexp ();
9892 main ()
9894 ldexp ();
9896 return 0;
9898 _ACEOF
9899 rm -f conftest.$ac_objext conftest$ac_exeext
9900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9901 (eval $ac_link) 2>conftest.er1
9902 ac_status=$?
9903 grep -v '^ *+' conftest.er1 >conftest.err
9904 rm -f conftest.er1
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try='test -z "$ac_c_werror_flag"
9909 || test ! -s conftest.err'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 (eval $ac_try) 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; } &&
9915 { ac_try='test -s conftest$ac_exeext'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917 (eval $ac_try) 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 ac_cv_search_ldexp="none required"
9922 else
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9927 rm -f conftest.err conftest.$ac_objext \
9928 conftest$ac_exeext conftest.$ac_ext
9929 if test "$ac_cv_search_ldexp" = no; then
9930 for ac_lib in m; do
9931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h. */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9939 /* Override any gcc2 internal prototype to avoid an error. */
9940 #ifdef __cplusplus
9941 extern "C"
9942 #endif
9943 /* We use char because int might match the return type of a gcc2
9944 builtin and then its argument prototype would still apply. */
9945 char ldexp ();
9947 main ()
9949 ldexp ();
9951 return 0;
9953 _ACEOF
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956 (eval $ac_link) 2>conftest.er1
9957 ac_status=$?
9958 grep -v '^ *+' conftest.er1 >conftest.err
9959 rm -f conftest.er1
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag"
9964 || test ! -s conftest.err'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 (eval $ac_try) 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try='test -s conftest$ac_exeext'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 (eval $ac_try) 2>&5
9973 ac_status=$?
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_search_ldexp="-l$ac_lib"
9977 break
9978 else
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9983 rm -f conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9985 done
9987 LIBS=$ac_func_search_save_LIBS
9989 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9990 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9991 if test "$ac_cv_search_ldexp" != no; then
9992 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9996 LDEXP_LIB="$LIBS"
9997 LIBS="$save_LIBS"
10000 # Use <inttypes.h> only if it exists,
10001 # doesn't clash with <sys/types.h>, and declares intmax_t.
10002 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10003 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10004 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 else
10007 cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h. */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 #include <sys/types.h>
10014 #include <inttypes.h>
10016 main ()
10018 intmax_t i = -1;
10020 return 0;
10022 _ACEOF
10023 rm -f conftest.$ac_objext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10025 (eval $ac_compile) 2>conftest.er1
10026 ac_status=$?
10027 grep -v '^ *+' conftest.er1 >conftest.err
10028 rm -f conftest.er1
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest.$ac_objext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 gcc_cv_header_inttypes_h=yes
10046 else
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 gcc_cv_header_inttypes_h=no
10052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10055 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10056 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10057 if test $gcc_cv_header_inttypes_h = yes; then
10059 cat >>confdefs.h <<\_ACEOF
10060 #define HAVE_INTTYPES_H 1
10061 _ACEOF
10102 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
10103 sysconf strsignal getrusage nl_langinfo scandir alphasort \
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
10107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10108 echo "$as_me:$LINENO: checking for $ac_func" >&5
10109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10110 if eval "test \"\${$as_ac_var+set}\" = set"; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113 cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h. */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
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
10123 /* System header to define __stub macros and hopefully few prototypes,
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. */
10128 #ifdef __STDC__
10129 # include <limits.h>
10130 #else
10131 # include <assert.h>
10132 #endif
10134 #undef $ac_func
10136 /* Override any gcc2 internal prototype to avoid an error. */
10137 #ifdef __cplusplus
10138 extern "C"
10140 #endif
10141 /* We use char because int might match the return type of a gcc2
10142 builtin and then its argument prototype would still apply. */
10143 char $ac_func ();
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. */
10147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10148 choke me
10149 #else
10150 char (*f) () = $ac_func;
10151 #endif
10152 #ifdef __cplusplus
10154 #endif
10157 main ()
10159 return f != $ac_func;
10161 return 0;
10163 _ACEOF
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166 (eval $ac_link) 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
10186 eval "$as_ac_var=yes"
10187 else
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 eval "$as_ac_var=no"
10193 rm -f conftest.err conftest.$ac_objext \
10194 conftest$ac_exeext conftest.$ac_ext
10196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10198 if 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
10204 done
10207 if test x$ac_cv_func_mbstowcs = xyes; then
10208 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10209 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10210 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213 if test "$cross_compiling" = yes; then
10214 gcc_cv_func_mbstowcs_works=yes
10215 else
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h. */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 #include <stdlib.h>
10223 int main()
10225 mbstowcs(0, "", 0);
10226 return 0;
10228 _ACEOF
10229 rm -f conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 gcc_cv_func_mbstowcs_works=yes
10241 else
10242 echo "$as_me: program exited with status $ac_status" >&5
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10246 ( exit $ac_status )
10247 gcc_cv_func_mbstowcs_works=no
10249 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10252 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10253 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10254 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10256 cat >>confdefs.h <<\_ACEOF
10257 #define HAVE_WORKING_MBSTOWCS 1
10258 _ACEOF
10263 echo "$as_me:$LINENO: checking for ssize_t" >&5
10264 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10265 if test "${ac_cv_type_ssize_t+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268 cat >conftest.$ac_ext <<_ACEOF
10269 /* confdefs.h. */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 $ac_includes_default
10276 main ()
10278 if ((ssize_t *) 0)
10279 return 0;
10280 if (sizeof (ssize_t))
10281 return 0;
10283 return 0;
10285 _ACEOF
10286 rm -f conftest.$ac_objext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10288 (eval $ac_compile) 2>conftest.er1
10289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
10308 ac_cv_type_ssize_t=yes
10309 else
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10313 ac_cv_type_ssize_t=no
10315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10317 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10318 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10319 if test $ac_cv_type_ssize_t = yes; then
10321 else
10323 cat >>confdefs.h <<_ACEOF
10324 #define ssize_t int
10325 _ACEOF
10330 # Try to determine the array type of the second argument of getgroups
10331 # for the target system (int or gid_t).
10332 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10333 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10334 if test "${ac_cv_type_uid_t+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337 cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h. */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343 #include <sys/types.h>
10345 _ACEOF
10346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10347 $EGREP "uid_t" >/dev/null 2>&1; then
10348 ac_cv_type_uid_t=yes
10349 else
10350 ac_cv_type_uid_t=no
10352 rm -f conftest*
10355 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10356 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10357 if test $ac_cv_type_uid_t = no; then
10359 cat >>confdefs.h <<\_ACEOF
10360 #define uid_t int
10361 _ACEOF
10364 cat >>confdefs.h <<\_ACEOF
10365 #define gid_t int
10366 _ACEOF
10370 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10371 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10372 if test "${ac_cv_type_getgroups+set}" = set; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 else
10375 if test "$cross_compiling" = yes; then
10376 ac_cv_type_getgroups=cross
10377 else
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h. */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 /* Thanks to Mike Rendell for this test. */
10385 #include <sys/types.h>
10386 #define NGID 256
10387 #undef MAX
10388 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10391 main ()
10393 gid_t gidset[NGID];
10394 int i, n;
10395 union { gid_t gval; long lval; } val;
10397 val.lval = -1;
10398 for (i = 0; i < NGID; i++)
10399 gidset[i] = val.gval;
10400 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10401 gidset);
10402 /* Exit non-zero if getgroups seems to require an array of ints. This
10403 happens when gid_t is short but getgroups modifies an array of ints. */
10404 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10406 _ACEOF
10407 rm -f conftest$ac_exeext
10408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10409 (eval $ac_link) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10415 ac_status=$?
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10418 ac_cv_type_getgroups=gid_t
10419 else
10420 echo "$as_me: program exited with status $ac_status" >&5
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 ( exit $ac_status )
10425 ac_cv_type_getgroups=int
10427 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10429 if test $ac_cv_type_getgroups = cross; then
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h. */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 #include <unistd.h>
10438 _ACEOF
10439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10440 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10441 ac_cv_type_getgroups=gid_t
10442 else
10443 ac_cv_type_getgroups=int
10445 rm -f conftest*
10449 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10450 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10452 cat >>confdefs.h <<_ACEOF
10453 #define GETGROUPS_T $ac_cv_type_getgroups
10454 _ACEOF
10457 if test "${target}" = "${build}"; then
10458 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10459 else
10460 case "${target}" in
10461 # This condition may need some tweaking. It should include all
10462 # targets where the array type of the second argument of getgroups
10463 # is int and the type of gid_t is not equivalent to int.
10464 *-*-sunos* | *-*-ultrix*)
10465 TARGET_GETGROUPS_T=int
10468 TARGET_GETGROUPS_T=gid_t
10470 esac
10475 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10476 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10477 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 else
10480 cat >conftest.$ac_ext <<_ACEOF
10481 /* confdefs.h. */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10486 #include <sys/mman.h>
10487 _ACEOF
10488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } >/dev/null; then
10496 if test -s conftest.err; then
10497 ac_cpp_err=$ac_c_preproc_warn_flag
10498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10499 else
10500 ac_cpp_err=
10502 else
10503 ac_cpp_err=yes
10505 if test -z "$ac_cpp_err"; then
10506 ac_cv_header_sys_mman_h=yes
10507 else
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 ac_cv_header_sys_mman_h=no
10513 rm -f conftest.err conftest.$ac_ext
10515 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10516 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10517 if test $ac_cv_header_sys_mman_h = yes; then
10518 gcc_header_sys_mman_h=yes
10519 else
10520 gcc_header_sys_mman_h=no
10523 echo "$as_me:$LINENO: checking for mmap" >&5
10524 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10525 if test "${ac_cv_func_mmap+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528 cat >conftest.$ac_ext <<_ACEOF
10529 /* confdefs.h. */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10534 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10536 #define mmap innocuous_mmap
10538 /* System header to define __stub macros and hopefully few prototypes,
10539 which can conflict with char mmap (); below.
10540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10541 <limits.h> exists even on freestanding compilers. */
10543 #ifdef __STDC__
10544 # include <limits.h>
10545 #else
10546 # include <assert.h>
10547 #endif
10549 #undef mmap
10551 /* Override any gcc2 internal prototype to avoid an error. */
10552 #ifdef __cplusplus
10553 extern "C"
10555 #endif
10556 /* We use char because int might match the return type of a gcc2
10557 builtin and then its argument prototype would still apply. */
10558 char mmap ();
10559 /* The GNU C library defines this for functions which it implements
10560 to always fail with ENOSYS. Some functions are actually named
10561 something starting with __ and the normal name is an alias. */
10562 #if defined (__stub_mmap) || defined (__stub___mmap)
10563 choke me
10564 #else
10565 char (*f) () = mmap;
10566 #endif
10567 #ifdef __cplusplus
10569 #endif
10572 main ()
10574 return f != mmap;
10576 return 0;
10578 _ACEOF
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581 (eval $ac_link) 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
10588 { ac_try='test -z "$ac_c_werror_flag"
10589 || test ! -s conftest.err'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10592 ac_status=$?
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; } &&
10595 { ac_try='test -s conftest$ac_exeext'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 ac_cv_func_mmap=yes
10602 else
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10606 ac_cv_func_mmap=no
10608 rm -f conftest.err conftest.$ac_objext \
10609 conftest$ac_exeext conftest.$ac_ext
10611 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10612 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10613 if test $ac_cv_func_mmap = yes; then
10614 gcc_func_mmap=yes
10615 else
10616 gcc_func_mmap=no
10619 if test "$gcc_header_sys_mman_h" != yes \
10620 || test "$gcc_func_mmap" != yes; then
10621 gcc_cv_func_mmap_file=no
10622 gcc_cv_func_mmap_dev_zero=no
10623 gcc_cv_func_mmap_anon=no
10624 else
10625 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10626 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10627 if test "${gcc_cv_func_mmap_file+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630 # Add a system to this blacklist if
10631 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10632 # memory area containing the same data that you'd get if you applied
10633 # read() to the same fd. The only system known to have a problem here
10634 # is VMS, where text files have record structure.
10635 case "$host_os" in
10636 vms* | ultrix*)
10637 gcc_cv_func_mmap_file=no ;;
10639 gcc_cv_func_mmap_file=yes;;
10640 esac
10642 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10643 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10644 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10645 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10646 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649 # Add a system to this blacklist if it has mmap() but /dev/zero
10650 # does not exist, or if mmapping /dev/zero does not give anonymous
10651 # zeroed pages with both the following properties:
10652 # 1. If you map N consecutive pages in with one call, and then
10653 # unmap any subset of those pages, the pages that were not
10654 # explicitly unmapped remain accessible.
10655 # 2. If you map two adjacent blocks of memory and then unmap them
10656 # both at once, they must both go away.
10657 # Systems known to be in this category are Windows (all variants),
10658 # VMS, and Darwin.
10659 case "$host_os" in
10660 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10661 gcc_cv_func_mmap_dev_zero=no ;;
10663 gcc_cv_func_mmap_dev_zero=yes;;
10664 esac
10666 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10667 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10669 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10670 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10671 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10672 if test "${gcc_cv_decl_map_anon+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675 cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h. */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10681 #include <sys/types.h>
10682 #include <sys/mman.h>
10683 #include <unistd.h>
10685 #ifndef MAP_ANONYMOUS
10686 #define MAP_ANONYMOUS MAP_ANON
10687 #endif
10690 main ()
10692 int n = MAP_ANONYMOUS;
10694 return 0;
10696 _ACEOF
10697 rm -f conftest.$ac_objext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10699 (eval $ac_compile) 2>conftest.er1
10700 ac_status=$?
10701 grep -v '^ *+' conftest.er1 >conftest.err
10702 rm -f conftest.er1
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } &&
10706 { ac_try='test -z "$ac_c_werror_flag"
10707 || test ! -s conftest.err'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try='test -s conftest.$ac_objext'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 gcc_cv_decl_map_anon=yes
10720 else
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 gcc_cv_decl_map_anon=no
10726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10728 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10729 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10731 if test $gcc_cv_decl_map_anon = no; then
10732 gcc_cv_func_mmap_anon=no
10733 else
10734 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10735 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10736 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 else
10739 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10740 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10741 # doesn't give anonymous zeroed pages with the same properties listed
10742 # above for use of /dev/zero.
10743 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10744 case "$host_os" in
10745 vms* | cygwin* | pe | mingw* | sco* | udk* )
10746 gcc_cv_func_mmap_anon=no ;;
10748 gcc_cv_func_mmap_anon=yes;;
10749 esac
10751 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10752 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10756 if test $gcc_cv_func_mmap_file = yes; then
10758 cat >>confdefs.h <<\_ACEOF
10759 #define HAVE_MMAP_FILE 1
10760 _ACEOF
10763 if test $gcc_cv_func_mmap_dev_zero = yes; then
10765 cat >>confdefs.h <<\_ACEOF
10766 #define HAVE_MMAP_DEV_ZERO 1
10767 _ACEOF
10770 if test $gcc_cv_func_mmap_anon = yes; then
10772 cat >>confdefs.h <<\_ACEOF
10773 #define HAVE_MMAP_ANON 1
10774 _ACEOF
10779 case "${host}" in
10780 *-*-*vms*)
10781 # Under VMS, vfork works very differently than on Unix. The standard test
10782 # won't work, and it isn't easily adaptable. It makes more sense to
10783 # just force it.
10784 ac_cv_func_vfork_works=yes
10786 esac
10787 echo "$as_me:$LINENO: checking for pid_t" >&5
10788 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10789 if test "${ac_cv_type_pid_t+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792 cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h. */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 $ac_includes_default
10800 main ()
10802 if ((pid_t *) 0)
10803 return 0;
10804 if (sizeof (pid_t))
10805 return 0;
10807 return 0;
10809 _ACEOF
10810 rm -f conftest.$ac_objext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812 (eval $ac_compile) 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -z "$ac_c_werror_flag"
10820 || test ! -s conftest.err'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; } &&
10826 { ac_try='test -s conftest.$ac_objext'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; }; then
10832 ac_cv_type_pid_t=yes
10833 else
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10837 ac_cv_type_pid_t=no
10839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10841 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10842 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10843 if test $ac_cv_type_pid_t = yes; then
10845 else
10847 cat >>confdefs.h <<_ACEOF
10848 #define pid_t int
10849 _ACEOF
10855 for ac_header in unistd.h vfork.h
10857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10858 echo "$as_me:$LINENO: checking for $ac_header" >&5
10859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 cat >conftest.$ac_ext <<_ACEOF
10864 /* confdefs.h. */
10865 _ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10869 #include <$ac_header>
10870 _ACEOF
10871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10873 ac_status=$?
10874 grep -v '^ *+' conftest.er1 >conftest.err
10875 rm -f conftest.er1
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } >/dev/null; then
10879 if test -s conftest.err; then
10880 ac_cpp_err=$ac_c_preproc_warn_flag
10881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10882 else
10883 ac_cpp_err=
10885 else
10886 ac_cpp_err=yes
10888 if test -z "$ac_cpp_err"; then
10889 eval "$as_ac_Header=yes"
10890 else
10891 echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10894 eval "$as_ac_Header=no"
10896 rm -f conftest.err conftest.$ac_ext
10898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10901 cat >>confdefs.h <<_ACEOF
10902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10903 _ACEOF
10906 done
10910 for ac_func in fork vfork
10912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10913 echo "$as_me:$LINENO: checking for $ac_func" >&5
10914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10915 if eval "test \"\${$as_ac_var+set}\" = set"; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10926 #define $ac_func innocuous_$ac_func
10928 /* System header to define __stub macros and hopefully few prototypes,
10929 which can conflict with char $ac_func (); below.
10930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10931 <limits.h> exists even on freestanding compilers. */
10933 #ifdef __STDC__
10934 # include <limits.h>
10935 #else
10936 # include <assert.h>
10937 #endif
10939 #undef $ac_func
10941 /* Override any gcc2 internal prototype to avoid an error. */
10942 #ifdef __cplusplus
10943 extern "C"
10945 #endif
10946 /* We use char because int might match the return type of a gcc2
10947 builtin and then its argument prototype would still apply. */
10948 char $ac_func ();
10949 /* The GNU C library defines this for functions which it implements
10950 to always fail with ENOSYS. Some functions are actually named
10951 something starting with __ and the normal name is an alias. */
10952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10953 choke me
10954 #else
10955 char (*f) () = $ac_func;
10956 #endif
10957 #ifdef __cplusplus
10959 #endif
10962 main ()
10964 return f != $ac_func;
10966 return 0;
10968 _ACEOF
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10971 (eval $ac_link) 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try='test -z "$ac_c_werror_flag"
10979 || test ! -s conftest.err'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; } &&
10985 { ac_try='test -s conftest$ac_exeext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 eval "$as_ac_var=yes"
10992 else
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 eval "$as_ac_var=no"
10998 rm -f conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11003 if test `eval echo '${'$as_ac_var'}'` = yes; then
11004 cat >>confdefs.h <<_ACEOF
11005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11006 _ACEOF
11009 done
11011 if test "x$ac_cv_func_fork" = xyes; then
11012 echo "$as_me:$LINENO: checking for working fork" >&5
11013 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11014 if test "${ac_cv_func_fork_works+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 else
11017 if test "$cross_compiling" = yes; then
11018 ac_cv_func_fork_works=cross
11019 else
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* By Ruediger Kuhlmann. */
11022 #include <sys/types.h>
11023 #if HAVE_UNISTD_H
11024 # include <unistd.h>
11025 #endif
11026 /* Some systems only have a dummy stub for fork() */
11027 int main ()
11029 if (fork() < 0)
11030 exit (1);
11031 exit (0);
11033 _ACEOF
11034 rm -f conftest$ac_exeext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11036 (eval $ac_link) 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
11045 ac_cv_func_fork_works=yes
11046 else
11047 echo "$as_me: program exited with status $ac_status" >&5
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ( exit $ac_status )
11052 ac_cv_func_fork_works=no
11054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11057 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11058 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11060 else
11061 ac_cv_func_fork_works=$ac_cv_func_fork
11063 if test "x$ac_cv_func_fork_works" = xcross; then
11064 case $host in
11065 *-*-amigaos* | *-*-msdosdjgpp*)
11066 # Override, as these systems have only a dummy fork() stub
11067 ac_cv_func_fork_works=no
11070 ac_cv_func_fork_works=yes
11072 esac
11073 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11074 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11076 ac_cv_func_vfork_works=$ac_cv_func_vfork
11077 if test "x$ac_cv_func_vfork" = xyes; then
11078 echo "$as_me:$LINENO: checking for working vfork" >&5
11079 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11080 if test "${ac_cv_func_vfork_works+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083 if test "$cross_compiling" = yes; then
11084 ac_cv_func_vfork_works=cross
11085 else
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h. */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 /* Thanks to Paul Eggert for this test. */
11093 #include <stdio.h>
11094 #include <stdlib.h>
11095 #include <sys/types.h>
11096 #include <sys/stat.h>
11097 #include <sys/wait.h>
11098 #if HAVE_UNISTD_H
11099 # include <unistd.h>
11100 #endif
11101 #if HAVE_VFORK_H
11102 # include <vfork.h>
11103 #endif
11104 /* On some sparc systems, changes by the child to local and incoming
11105 argument registers are propagated back to the parent. The compiler
11106 is told about this with #include <vfork.h>, but some compilers
11107 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11108 static variable whose address is put into a register that is
11109 clobbered by the vfork. */
11110 static void
11111 #ifdef __cplusplus
11112 sparc_address_test (int arg)
11113 # else
11114 sparc_address_test (arg) int arg;
11115 #endif
11117 static pid_t child;
11118 if (!child) {
11119 child = vfork ();
11120 if (child < 0) {
11121 perror ("vfork");
11122 _exit(2);
11124 if (!child) {
11125 arg = getpid();
11126 write(-1, "", 0);
11127 _exit (arg);
11133 main ()
11135 pid_t parent = getpid ();
11136 pid_t child;
11138 sparc_address_test (0);
11140 child = vfork ();
11142 if (child == 0) {
11143 /* Here is another test for sparc vfork register problems. This
11144 test uses lots of local variables, at least as many local
11145 variables as main has allocated so far including compiler
11146 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11147 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11148 reuse the register of parent for one of the local variables,
11149 since it will think that parent can't possibly be used any more
11150 in this routine. Assigning to the local variable will thus
11151 munge parent in the parent process. */
11152 pid_t
11153 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11154 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11155 /* Convince the compiler that p..p7 are live; otherwise, it might
11156 use the same hardware register for all 8 local variables. */
11157 if (p != p1 || p != p2 || p != p3 || p != p4
11158 || p != p5 || p != p6 || p != p7)
11159 _exit(1);
11161 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11162 from child file descriptors. If the child closes a descriptor
11163 before it execs or exits, this munges the parent's descriptor
11164 as well. Test for this by closing stdout in the child. */
11165 _exit(close(fileno(stdout)) != 0);
11166 } else {
11167 int status;
11168 struct stat st;
11170 while (wait(&status) != child)
11172 exit(
11173 /* Was there some problem with vforking? */
11174 child < 0
11176 /* Did the child fail? (This shouldn't happen.) */
11177 || status
11179 /* Did the vfork/compiler bug occur? */
11180 || parent != getpid()
11182 /* Did the file descriptor bug occur? */
11183 || fstat(fileno(stdout), &st) != 0
11187 _ACEOF
11188 rm -f conftest$ac_exeext
11189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11190 (eval $ac_link) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }; then
11199 ac_cv_func_vfork_works=yes
11200 else
11201 echo "$as_me: program exited with status $ac_status" >&5
11202 echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11205 ( exit $ac_status )
11206 ac_cv_func_vfork_works=no
11208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11211 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11212 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11215 if test "x$ac_cv_func_fork_works" = xcross; then
11216 ac_cv_func_vfork_works=$ac_cv_func_vfork
11217 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11218 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11221 if test "x$ac_cv_func_vfork_works" = xyes; then
11223 cat >>confdefs.h <<\_ACEOF
11224 #define HAVE_WORKING_VFORK 1
11225 _ACEOF
11227 else
11229 cat >>confdefs.h <<\_ACEOF
11230 #define vfork fork
11231 _ACEOF
11234 if test "x$ac_cv_func_fork_works" = xyes; then
11236 cat >>confdefs.h <<\_ACEOF
11237 #define HAVE_WORKING_FORK 1
11238 _ACEOF
11244 if test "X$prefix" = "XNONE"; then
11245 acl_final_prefix="$ac_default_prefix"
11246 else
11247 acl_final_prefix="$prefix"
11249 if test "X$exec_prefix" = "XNONE"; then
11250 acl_final_exec_prefix='${prefix}'
11251 else
11252 acl_final_exec_prefix="$exec_prefix"
11254 acl_save_prefix="$prefix"
11255 prefix="$acl_final_prefix"
11256 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11257 prefix="$acl_save_prefix"
11260 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11261 if test "${with_gnu_ld+set}" = set; then
11262 withval="$with_gnu_ld"
11263 test "$withval" = no || with_gnu_ld=yes
11264 else
11265 with_gnu_ld=no
11267 # Prepare PATH_SEPARATOR.
11268 # The user is always right.
11269 if test "${PATH_SEPARATOR+set}" != set; then
11270 echo "#! /bin/sh" >conf$$.sh
11271 echo "exit 0" >>conf$$.sh
11272 chmod +x conf$$.sh
11273 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11274 PATH_SEPARATOR=';'
11275 else
11276 PATH_SEPARATOR=:
11278 rm -f conf$$.sh
11280 ac_prog=ld
11281 if test "$GCC" = yes; then
11282 # Check if gcc -print-prog-name=ld gives a path.
11283 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11284 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11285 case $host in
11286 *-*-mingw*)
11287 # gcc leaves a trailing carriage return which upsets mingw
11288 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11290 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11291 esac
11292 case $ac_prog in
11293 # Accept absolute paths.
11294 [\\/]* | [A-Za-z]:[\\/]*)
11295 re_direlt='/[^/][^/]*/\.\./'
11296 # Canonicalize the path of ld
11297 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11298 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11299 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11300 done
11301 test -z "$LD" && LD="$ac_prog"
11304 # If it fails, then pretend we aren't using GCC.
11305 ac_prog=ld
11308 # If it is relative, then search for the first ld in PATH.
11309 with_gnu_ld=unknown
11311 esac
11312 elif test "$with_gnu_ld" = yes; then
11313 echo "$as_me:$LINENO: checking for GNU ld" >&5
11314 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11315 else
11316 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11317 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11319 if test "${acl_cv_path_LD+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322 if test -z "$LD"; then
11323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11324 for ac_dir in $PATH; do
11325 test -z "$ac_dir" && ac_dir=.
11326 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11327 acl_cv_path_LD="$ac_dir/$ac_prog"
11328 # Check to see if the program is GNU ld. I'd rather use --version,
11329 # but apparently some GNU ld's only accept -v.
11330 # Break only if it was the GNU/non-GNU ld that we prefer.
11331 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11332 test "$with_gnu_ld" != no && break
11333 else
11334 test "$with_gnu_ld" != yes && break
11337 done
11338 IFS="$ac_save_ifs"
11339 else
11340 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11344 LD="$acl_cv_path_LD"
11345 if test -n "$LD"; then
11346 echo "$as_me:$LINENO: result: $LD" >&5
11347 echo "${ECHO_T}$LD" >&6
11348 else
11349 echo "$as_me:$LINENO: result: no" >&5
11350 echo "${ECHO_T}no" >&6
11352 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11353 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11354 { (exit 1); exit 1; }; }
11355 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11356 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11357 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11361 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11362 acl_cv_prog_gnu_ld=yes
11363 else
11364 acl_cv_prog_gnu_ld=no
11367 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11368 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11369 with_gnu_ld=$acl_cv_prog_gnu_ld
11373 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11374 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11375 if test "${acl_cv_rpath+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11379 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11380 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11381 . ./conftest.sh
11382 rm -f ./conftest.sh
11383 acl_cv_rpath=done
11386 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11387 echo "${ECHO_T}$acl_cv_rpath" >&6
11388 wl="$acl_cv_wl"
11389 libext="$acl_cv_libext"
11390 shlibext="$acl_cv_shlibext"
11391 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11392 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11393 hardcode_direct="$acl_cv_hardcode_direct"
11394 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11395 # Check whether --enable-rpath or --disable-rpath was given.
11396 if test "${enable_rpath+set}" = set; then
11397 enableval="$enable_rpath"
11399 else
11400 enable_rpath=yes
11409 use_additional=yes
11411 acl_save_prefix="$prefix"
11412 prefix="$acl_final_prefix"
11413 acl_save_exec_prefix="$exec_prefix"
11414 exec_prefix="$acl_final_exec_prefix"
11416 eval additional_includedir=\"$includedir\"
11417 eval additional_libdir=\"$libdir\"
11419 exec_prefix="$acl_save_exec_prefix"
11420 prefix="$acl_save_prefix"
11423 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11424 if test "${with_libiconv_prefix+set}" = set; then
11425 withval="$with_libiconv_prefix"
11427 if test "X$withval" = "Xno"; then
11428 use_additional=no
11429 else
11430 if test "X$withval" = "X"; then
11432 acl_save_prefix="$prefix"
11433 prefix="$acl_final_prefix"
11434 acl_save_exec_prefix="$exec_prefix"
11435 exec_prefix="$acl_final_exec_prefix"
11437 eval additional_includedir=\"$includedir\"
11438 eval additional_libdir=\"$libdir\"
11440 exec_prefix="$acl_save_exec_prefix"
11441 prefix="$acl_save_prefix"
11443 else
11444 additional_includedir="$withval/include"
11445 additional_libdir="$withval/lib"
11450 LIBICONV=
11451 LTLIBICONV=
11452 INCICONV=
11453 rpathdirs=
11454 ltrpathdirs=
11455 names_already_handled=
11456 names_next_round='iconv '
11457 while test -n "$names_next_round"; do
11458 names_this_round="$names_next_round"
11459 names_next_round=
11460 for name in $names_this_round; do
11461 already_handled=
11462 for n in $names_already_handled; do
11463 if test "$n" = "$name"; then
11464 already_handled=yes
11465 break
11467 done
11468 if test -z "$already_handled"; then
11469 names_already_handled="$names_already_handled $name"
11470 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11471 eval value=\"\$HAVE_LIB$uppername\"
11472 if test -n "$value"; then
11473 if test "$value" = yes; then
11474 eval value=\"\$LIB$uppername\"
11475 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11476 eval value=\"\$LTLIB$uppername\"
11477 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11478 else
11481 else
11482 found_dir=
11483 found_la=
11484 found_so=
11485 found_a=
11486 if test $use_additional = yes; then
11487 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11488 found_dir="$additional_libdir"
11489 found_so="$additional_libdir/lib$name.$shlibext"
11490 if test -f "$additional_libdir/lib$name.la"; then
11491 found_la="$additional_libdir/lib$name.la"
11493 else
11494 if test -f "$additional_libdir/lib$name.$libext"; then
11495 found_dir="$additional_libdir"
11496 found_a="$additional_libdir/lib$name.$libext"
11497 if test -f "$additional_libdir/lib$name.la"; then
11498 found_la="$additional_libdir/lib$name.la"
11503 if test "X$found_dir" = "X"; then
11504 for x in $LDFLAGS $LTLIBICONV; do
11506 acl_save_prefix="$prefix"
11507 prefix="$acl_final_prefix"
11508 acl_save_exec_prefix="$exec_prefix"
11509 exec_prefix="$acl_final_exec_prefix"
11510 eval x=\"$x\"
11511 exec_prefix="$acl_save_exec_prefix"
11512 prefix="$acl_save_prefix"
11514 case "$x" in
11515 -L*)
11516 dir=`echo "X$x" | sed -e 's/^X-L//'`
11517 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11518 found_dir="$dir"
11519 found_so="$dir/lib$name.$shlibext"
11520 if test -f "$dir/lib$name.la"; then
11521 found_la="$dir/lib$name.la"
11523 else
11524 if test -f "$dir/lib$name.$libext"; then
11525 found_dir="$dir"
11526 found_a="$dir/lib$name.$libext"
11527 if test -f "$dir/lib$name.la"; then
11528 found_la="$dir/lib$name.la"
11533 esac
11534 if test "X$found_dir" != "X"; then
11535 break
11537 done
11539 if test "X$found_dir" != "X"; then
11540 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11541 if test "X$found_so" != "X"; then
11542 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11543 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11544 else
11545 haveit=
11546 for x in $ltrpathdirs; do
11547 if test "X$x" = "X$found_dir"; then
11548 haveit=yes
11549 break
11551 done
11552 if test -z "$haveit"; then
11553 ltrpathdirs="$ltrpathdirs $found_dir"
11555 if test "$hardcode_direct" = yes; then
11556 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11557 else
11558 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11559 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11560 haveit=
11561 for x in $rpathdirs; do
11562 if test "X$x" = "X$found_dir"; then
11563 haveit=yes
11564 break
11566 done
11567 if test -z "$haveit"; then
11568 rpathdirs="$rpathdirs $found_dir"
11570 else
11571 haveit=
11572 for x in $LDFLAGS $LIBICONV; do
11574 acl_save_prefix="$prefix"
11575 prefix="$acl_final_prefix"
11576 acl_save_exec_prefix="$exec_prefix"
11577 exec_prefix="$acl_final_exec_prefix"
11578 eval x=\"$x\"
11579 exec_prefix="$acl_save_exec_prefix"
11580 prefix="$acl_save_prefix"
11582 if test "X$x" = "X-L$found_dir"; then
11583 haveit=yes
11584 break
11586 done
11587 if test -z "$haveit"; then
11588 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11590 if test "$hardcode_minus_L" != no; then
11591 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11592 else
11593 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11598 else
11599 if test "X$found_a" != "X"; then
11600 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11601 else
11602 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11605 additional_includedir=
11606 case "$found_dir" in
11607 */lib | */lib/)
11608 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11609 additional_includedir="$basedir/include"
11611 esac
11612 if test "X$additional_includedir" != "X"; then
11613 if test "X$additional_includedir" != "X/usr/include"; then
11614 haveit=
11615 if test "X$additional_includedir" = "X/usr/local/include"; then
11616 if test -n "$GCC"; then
11617 case $host_os in
11618 linux*) haveit=yes;;
11619 esac
11622 if test -z "$haveit"; then
11623 for x in $CPPFLAGS $INCICONV; do
11625 acl_save_prefix="$prefix"
11626 prefix="$acl_final_prefix"
11627 acl_save_exec_prefix="$exec_prefix"
11628 exec_prefix="$acl_final_exec_prefix"
11629 eval x=\"$x\"
11630 exec_prefix="$acl_save_exec_prefix"
11631 prefix="$acl_save_prefix"
11633 if test "X$x" = "X-I$additional_includedir"; then
11634 haveit=yes
11635 break
11637 done
11638 if test -z "$haveit"; then
11639 if test -d "$additional_includedir"; then
11640 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11646 if test -n "$found_la"; then
11647 save_libdir="$libdir"
11648 case "$found_la" in
11649 */* | *\\*) . "$found_la" ;;
11650 *) . "./$found_la" ;;
11651 esac
11652 libdir="$save_libdir"
11653 for dep in $dependency_libs; do
11654 case "$dep" in
11655 -L*)
11656 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11657 if test "X$additional_libdir" != "X/usr/lib"; then
11658 haveit=
11659 if test "X$additional_libdir" = "X/usr/local/lib"; then
11660 if test -n "$GCC"; then
11661 case $host_os in
11662 linux*) haveit=yes;;
11663 esac
11666 if test -z "$haveit"; then
11667 haveit=
11668 for x in $LDFLAGS $LIBICONV; do
11670 acl_save_prefix="$prefix"
11671 prefix="$acl_final_prefix"
11672 acl_save_exec_prefix="$exec_prefix"
11673 exec_prefix="$acl_final_exec_prefix"
11674 eval x=\"$x\"
11675 exec_prefix="$acl_save_exec_prefix"
11676 prefix="$acl_save_prefix"
11678 if test "X$x" = "X-L$additional_libdir"; then
11679 haveit=yes
11680 break
11682 done
11683 if test -z "$haveit"; then
11684 if test -d "$additional_libdir"; then
11685 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11688 haveit=
11689 for x in $LDFLAGS $LTLIBICONV; do
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"
11699 if test "X$x" = "X-L$additional_libdir"; then
11700 haveit=yes
11701 break
11703 done
11704 if test -z "$haveit"; then
11705 if test -d "$additional_libdir"; then
11706 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11712 -R*)
11713 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11714 if test "$enable_rpath" != no; then
11715 haveit=
11716 for x in $rpathdirs; do
11717 if test "X$x" = "X$dir"; then
11718 haveit=yes
11719 break
11721 done
11722 if test -z "$haveit"; then
11723 rpathdirs="$rpathdirs $dir"
11725 haveit=
11726 for x in $ltrpathdirs; do
11727 if test "X$x" = "X$dir"; then
11728 haveit=yes
11729 break
11731 done
11732 if test -z "$haveit"; then
11733 ltrpathdirs="$ltrpathdirs $dir"
11737 -l*)
11738 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11740 *.la)
11741 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11744 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11745 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11747 esac
11748 done
11750 else
11751 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11752 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11756 done
11757 done
11758 if test "X$rpathdirs" != "X"; then
11759 if test -n "$hardcode_libdir_separator"; then
11760 alldirs=
11761 for found_dir in $rpathdirs; do
11762 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11763 done
11764 acl_save_libdir="$libdir"
11765 libdir="$alldirs"
11766 eval flag=\"$hardcode_libdir_flag_spec\"
11767 libdir="$acl_save_libdir"
11768 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11769 else
11770 for found_dir in $rpathdirs; do
11771 acl_save_libdir="$libdir"
11772 libdir="$found_dir"
11773 eval flag=\"$hardcode_libdir_flag_spec\"
11774 libdir="$acl_save_libdir"
11775 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11776 done
11779 if test "X$ltrpathdirs" != "X"; then
11780 for found_dir in $ltrpathdirs; do
11781 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11782 done
11791 am_save_CPPFLAGS="$CPPFLAGS"
11793 for element in $INCICONV; do
11794 haveit=
11795 for x in $CPPFLAGS; do
11797 acl_save_prefix="$prefix"
11798 prefix="$acl_final_prefix"
11799 acl_save_exec_prefix="$exec_prefix"
11800 exec_prefix="$acl_final_exec_prefix"
11801 eval x=\"$x\"
11802 exec_prefix="$acl_save_exec_prefix"
11803 prefix="$acl_save_prefix"
11805 if test "X$x" = "X$element"; then
11806 haveit=yes
11807 break
11809 done
11810 if test -z "$haveit"; then
11811 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11813 done
11816 echo "$as_me:$LINENO: checking for iconv" >&5
11817 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11818 if test "${am_cv_func_iconv+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11822 am_cv_func_iconv="no, consider installing GNU libiconv"
11823 am_cv_lib_iconv=no
11824 cat >conftest.$ac_ext <<_ACEOF
11825 /* confdefs.h. */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 #include <stdlib.h>
11831 #include <iconv.h>
11833 main ()
11835 iconv_t cd = iconv_open("","");
11836 iconv(cd,NULL,NULL,NULL,NULL);
11837 iconv_close(cd);
11839 return 0;
11841 _ACEOF
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11844 (eval $ac_link) 2>conftest.er1
11845 ac_status=$?
11846 grep -v '^ *+' conftest.er1 >conftest.err
11847 rm -f conftest.er1
11848 cat conftest.err >&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } &&
11851 { ac_try='test -z "$ac_c_werror_flag"
11852 || test ! -s conftest.err'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; } &&
11858 { ac_try='test -s conftest$ac_exeext'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; }; then
11864 am_cv_func_iconv=yes
11865 else
11866 echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11870 rm -f conftest.err conftest.$ac_objext \
11871 conftest$ac_exeext conftest.$ac_ext
11872 if test "$am_cv_func_iconv" != yes; then
11873 am_save_LIBS="$LIBS"
11874 LIBS="$LIBS $LIBICONV"
11875 cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h. */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 #include <stdlib.h>
11882 #include <iconv.h>
11884 main ()
11886 iconv_t cd = iconv_open("","");
11887 iconv(cd,NULL,NULL,NULL,NULL);
11888 iconv_close(cd);
11890 return 0;
11892 _ACEOF
11893 rm -f conftest.$ac_objext conftest$ac_exeext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11895 (eval $ac_link) 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag"
11903 || test ! -s conftest.err'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; } &&
11909 { ac_try='test -s conftest$ac_exeext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 am_cv_lib_iconv=yes
11916 am_cv_func_iconv=yes
11917 else
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11922 rm -f conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924 LIBS="$am_save_LIBS"
11928 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11929 echo "${ECHO_T}$am_cv_func_iconv" >&6
11930 if test "$am_cv_func_iconv" = yes; then
11932 cat >>confdefs.h <<\_ACEOF
11933 #define HAVE_ICONV 1
11934 _ACEOF
11937 if test "$am_cv_lib_iconv" = yes; then
11938 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11939 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11940 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11941 echo "${ECHO_T}$LIBICONV" >&6
11942 else
11943 CPPFLAGS="$am_save_CPPFLAGS"
11944 LIBICONV=
11945 LTLIBICONV=
11950 if test "$am_cv_func_iconv" = yes; then
11951 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11952 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11953 if test "${am_cv_proto_iconv+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11957 cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h. */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11964 #include <stdlib.h>
11965 #include <iconv.h>
11966 extern
11967 #ifdef __cplusplus
11969 #endif
11970 #if defined(__STDC__) || defined(__cplusplus)
11971 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11972 #else
11973 size_t iconv();
11974 #endif
11977 main ()
11981 return 0;
11983 _ACEOF
11984 rm -f conftest.$ac_objext
11985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11986 (eval $ac_compile) 2>conftest.er1
11987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -z "$ac_c_werror_flag"
11994 || test ! -s conftest.err'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try='test -s conftest.$ac_objext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12006 am_cv_proto_iconv_arg1=""
12007 else
12008 echo "$as_me: failed program was:" >&5
12009 sed 's/^/| /' conftest.$ac_ext >&5
12011 am_cv_proto_iconv_arg1="const"
12013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12014 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);"
12017 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12018 echo "$as_me:$LINENO: result: ${ac_t:-
12019 }$am_cv_proto_iconv" >&5
12020 echo "${ECHO_T}${ac_t:-
12021 }$am_cv_proto_iconv" >&6
12023 cat >>confdefs.h <<_ACEOF
12024 #define ICONV_CONST $am_cv_proto_iconv_arg1
12025 _ACEOF
12029 # Until we have in-tree GNU iconv:
12030 LIBICONV_DEP=
12034 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12035 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12036 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 else
12039 cat >conftest.$ac_ext <<_ACEOF
12040 /* confdefs.h. */
12041 _ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045 #include <locale.h>
12047 main ()
12049 return LC_MESSAGES
12051 return 0;
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056 (eval $ac_link) 2>conftest.er1
12057 ac_status=$?
12058 grep -v '^ *+' conftest.er1 >conftest.err
12059 rm -f conftest.er1
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
12063 { ac_try='test -z "$ac_c_werror_flag"
12064 || test ! -s conftest.err'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; } &&
12070 { ac_try='test -s conftest$ac_exeext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 am_cv_val_LC_MESSAGES=yes
12077 else
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 am_cv_val_LC_MESSAGES=no
12083 rm -f conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12086 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12087 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12088 if test $am_cv_val_LC_MESSAGES = yes; then
12090 cat >>confdefs.h <<\_ACEOF
12091 #define HAVE_LC_MESSAGES 1
12092 _ACEOF
12098 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12099 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12100 if test "${am_cv_langinfo_codeset+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103 cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h. */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109 #include <langinfo.h>
12111 main ()
12113 char* cs = nl_langinfo(CODESET);
12115 return 0;
12117 _ACEOF
12118 rm -f conftest.$ac_objext conftest$ac_exeext
12119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12120 (eval $ac_link) 2>conftest.er1
12121 ac_status=$?
12122 grep -v '^ *+' conftest.er1 >conftest.err
12123 rm -f conftest.er1
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -z "$ac_c_werror_flag"
12128 || test ! -s conftest.err'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest$ac_exeext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 am_cv_langinfo_codeset=yes
12141 else
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 am_cv_langinfo_codeset=no
12147 rm -f conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12151 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12152 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12153 if test $am_cv_langinfo_codeset = yes; then
12155 cat >>confdefs.h <<\_ACEOF
12156 #define HAVE_LANGINFO_CODESET 1
12157 _ACEOF
12162 # We will need to find libiberty.h and ansidecl.h
12163 saved_CFLAGS="$CFLAGS"
12164 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12204 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12205 strsignal strstr strverscmp \
12206 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12207 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
12209 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12210 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12211 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12212 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h. */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 #undef $ac_tr_decl
12222 #define $ac_tr_decl 1
12224 #include "ansidecl.h"
12225 #include "system.h"
12228 main ()
12230 #ifndef $ac_func
12231 char *(*pfn) = (char *(*)) $ac_func ;
12232 #endif
12234 return 0;
12236 _ACEOF
12237 rm -f conftest.$ac_objext
12238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12239 (eval $ac_compile) 2>conftest.er1
12240 ac_status=$?
12241 grep -v '^ *+' conftest.er1 >conftest.err
12242 rm -f conftest.er1
12243 cat conftest.err >&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } &&
12246 { ac_try='test -z "$ac_c_werror_flag"
12247 || test ! -s conftest.err'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; } &&
12253 { ac_try='test -s conftest.$ac_objext'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; }; then
12259 eval "gcc_cv_have_decl_$ac_func=yes"
12260 else
12261 echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12264 eval "gcc_cv_have_decl_$ac_func=no"
12266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12269 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12270 echo "$as_me:$LINENO: result: yes" >&5
12271 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12272 #define $ac_tr_decl 1
12273 _ACEOF
12275 else
12276 echo "$as_me:$LINENO: result: no" >&5
12277 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12278 #define $ac_tr_decl 0
12279 _ACEOF
12283 done
12289 for ac_func in getrlimit setrlimit getrusage
12291 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12292 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12293 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12294 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12296 else
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h. */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 #undef $ac_tr_decl
12304 #define $ac_tr_decl 1
12306 #include "ansidecl.h"
12307 #include "system.h"
12308 #ifdef HAVE_SYS_RESOURCE_H
12309 #include <sys/resource.h>
12310 #endif
12314 main ()
12316 #ifndef $ac_func
12317 char *(*pfn) = (char *(*)) $ac_func ;
12318 #endif
12320 return 0;
12322 _ACEOF
12323 rm -f conftest.$ac_objext
12324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12325 (eval $ac_compile) 2>conftest.er1
12326 ac_status=$?
12327 grep -v '^ *+' conftest.er1 >conftest.err
12328 rm -f conftest.er1
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try='test -z "$ac_c_werror_flag"
12333 || test ! -s conftest.err'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; } &&
12339 { ac_try='test -s conftest.$ac_objext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 eval "gcc_cv_have_decl_$ac_func=yes"
12346 else
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12350 eval "gcc_cv_have_decl_$ac_func=no"
12352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12355 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12356 echo "$as_me:$LINENO: result: yes" >&5
12357 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12358 #define $ac_tr_decl 1
12359 _ACEOF
12361 else
12362 echo "$as_me:$LINENO: result: no" >&5
12363 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12364 #define $ac_tr_decl 0
12365 _ACEOF
12369 done
12372 cat >conftest.$ac_ext <<_ACEOF
12373 /* confdefs.h. */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12379 #include "ansidecl.h"
12380 #include "system.h"
12381 #ifdef HAVE_SYS_RESOURCE_H
12382 #include <sys/resource.h>
12383 #endif
12386 main ()
12388 rlim_t l = 0;
12390 return 0;
12392 _ACEOF
12393 rm -f conftest.$ac_objext
12394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12395 (eval $ac_compile) 2>conftest.er1
12396 ac_status=$?
12397 grep -v '^ *+' conftest.er1 >conftest.err
12398 rm -f conftest.er1
12399 cat conftest.err >&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } &&
12402 { ac_try='test -z "$ac_c_werror_flag"
12403 || test ! -s conftest.err'
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; } &&
12409 { ac_try='test -s conftest.$ac_objext'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12416 else
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12421 cat >>confdefs.h <<\_ACEOF
12422 #define rlim_t long
12423 _ACEOF
12426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12428 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12429 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12430 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12431 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12433 for ac_func in ldgetname
12435 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12436 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12437 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12438 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 else
12441 cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h. */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447 #undef $ac_tr_decl
12448 #define $ac_tr_decl 1
12450 #include "ansidecl.h"
12451 #include "system.h"
12452 #ifdef HAVE_LDFCN_H
12453 #undef FREAD
12454 #undef FWRITE
12455 #include <ldfcn.h>
12456 #endif
12460 main ()
12462 #ifndef $ac_func
12463 char *(*pfn) = (char *(*)) $ac_func ;
12464 #endif
12466 return 0;
12468 _ACEOF
12469 rm -f conftest.$ac_objext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12471 (eval $ac_compile) 2>conftest.er1
12472 ac_status=$?
12473 grep -v '^ *+' conftest.er1 >conftest.err
12474 rm -f conftest.er1
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try='test -z "$ac_c_werror_flag"
12479 || test ! -s conftest.err'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest.$ac_objext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 eval "gcc_cv_have_decl_$ac_func=yes"
12492 else
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12496 eval "gcc_cv_have_decl_$ac_func=no"
12498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12501 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12502 echo "$as_me:$LINENO: result: yes" >&5
12503 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12504 #define $ac_tr_decl 1
12505 _ACEOF
12507 else
12508 echo "$as_me:$LINENO: result: no" >&5
12509 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12510 #define $ac_tr_decl 0
12511 _ACEOF
12515 done
12519 for ac_func in times
12521 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12522 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12523 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12524 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 else
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 #undef $ac_tr_decl
12534 #define $ac_tr_decl 1
12536 #include "ansidecl.h"
12537 #include "system.h"
12538 #ifdef HAVE_SYS_TIMES_H
12539 #include <sys/times.h>
12540 #endif
12544 main ()
12546 #ifndef $ac_func
12547 char *(*pfn) = (char *(*)) $ac_func ;
12548 #endif
12550 return 0;
12552 _ACEOF
12553 rm -f conftest.$ac_objext
12554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12555 (eval $ac_compile) 2>conftest.er1
12556 ac_status=$?
12557 grep -v '^ *+' conftest.er1 >conftest.err
12558 rm -f conftest.er1
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } &&
12562 { ac_try='test -z "$ac_c_werror_flag"
12563 || test ! -s conftest.err'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; } &&
12569 { ac_try='test -s conftest.$ac_objext'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12575 eval "gcc_cv_have_decl_$ac_func=yes"
12576 else
12577 echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12580 eval "gcc_cv_have_decl_$ac_func=no"
12582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12585 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12586 echo "$as_me:$LINENO: result: yes" >&5
12587 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12588 #define $ac_tr_decl 1
12589 _ACEOF
12591 else
12592 echo "$as_me:$LINENO: result: no" >&5
12593 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12594 #define $ac_tr_decl 0
12595 _ACEOF
12599 done
12603 for ac_func in sigaltstack
12605 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12606 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12607 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12608 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 else
12611 cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h. */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617 #undef $ac_tr_decl
12618 #define $ac_tr_decl 1
12620 #include "ansidecl.h"
12621 #include "system.h"
12622 #include <signal.h>
12626 main ()
12628 #ifndef $ac_func
12629 char *(*pfn) = (char *(*)) $ac_func ;
12630 #endif
12632 return 0;
12634 _ACEOF
12635 rm -f conftest.$ac_objext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>conftest.er1
12638 ac_status=$?
12639 grep -v '^ *+' conftest.er1 >conftest.err
12640 rm -f conftest.er1
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try='test -z "$ac_c_werror_flag"
12645 || test ! -s conftest.err'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try='test -s conftest.$ac_objext'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12654 ac_status=$?
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 eval "gcc_cv_have_decl_$ac_func=yes"
12658 else
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12662 eval "gcc_cv_have_decl_$ac_func=no"
12664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12667 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12668 echo "$as_me:$LINENO: result: yes" >&5
12669 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12670 #define $ac_tr_decl 1
12671 _ACEOF
12673 else
12674 echo "$as_me:$LINENO: result: no" >&5
12675 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12676 #define $ac_tr_decl 0
12677 _ACEOF
12681 done
12684 # More time-related stuff.
12685 echo "$as_me:$LINENO: checking for struct tms" >&5
12686 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12687 if test "${ac_cv_struct_tms+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12691 cat >conftest.$ac_ext <<_ACEOF
12692 /* confdefs.h. */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12698 #include "ansidecl.h"
12699 #include "system.h"
12700 #ifdef HAVE_SYS_TIMES_H
12701 #include <sys/times.h>
12702 #endif
12705 main ()
12707 struct tms tms;
12709 return 0;
12711 _ACEOF
12712 rm -f conftest.$ac_objext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714 (eval $ac_compile) 2>conftest.er1
12715 ac_status=$?
12716 grep -v '^ *+' conftest.er1 >conftest.err
12717 rm -f conftest.er1
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
12721 { ac_try='test -z "$ac_c_werror_flag"
12722 || test ! -s conftest.err'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; } &&
12728 { ac_try='test -s conftest.$ac_objext'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; }; then
12734 ac_cv_struct_tms=yes
12735 else
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 ac_cv_struct_tms=no
12741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12743 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12744 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12745 if test $ac_cv_struct_tms = yes; then
12747 cat >>confdefs.h <<\_ACEOF
12748 #define HAVE_STRUCT_TMS 1
12749 _ACEOF
12753 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12754 # revisit after autoconf 2.50.
12755 echo "$as_me:$LINENO: checking for clock_t" >&5
12756 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12757 if test "${gcc_cv_type_clock_t+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 else
12761 cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h. */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h. */
12768 #include "ansidecl.h"
12769 #include "system.h"
12772 main ()
12774 clock_t x;
12776 return 0;
12778 _ACEOF
12779 rm -f conftest.$ac_objext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12781 (eval $ac_compile) 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -z "$ac_c_werror_flag"
12789 || test ! -s conftest.err'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try='test -s conftest.$ac_objext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 gcc_cv_type_clock_t=yes
12802 else
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 gcc_cv_type_clock_t=no
12808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12810 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12811 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12812 if test $gcc_cv_type_clock_t = yes; then
12814 cat >>confdefs.h <<\_ACEOF
12815 #define HAVE_CLOCK_T 1
12816 _ACEOF
12820 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12821 CFLAGS="$saved_CFLAGS"
12823 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12824 if test "${enable_initfini_array+set}" = set; then
12825 enableval="$enable_initfini_array"
12827 else
12829 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12830 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12831 if test "${gcc_cv_initfini_array+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834 if test "$cross_compiling" = yes; then
12835 gcc_cv_initfini_array=no
12836 else
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h. */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12844 static int x = -1;
12845 int main (void) { return x; }
12846 int foo (void) { x = 0; }
12847 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12848 _ACEOF
12849 rm -f conftest$ac_exeext
12850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12851 (eval $ac_link) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 gcc_cv_initfini_array=yes
12861 else
12862 echo "$as_me: program exited with status $ac_status" >&5
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ( exit $ac_status )
12867 gcc_cv_initfini_array=no
12869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12872 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12873 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12874 enable_initfini_array=$gcc_cv_initfini_array
12877 if test $enable_initfini_array = yes; then
12879 cat >>confdefs.h <<\_ACEOF
12880 #define HAVE_INITFINI_ARRAY 1
12881 _ACEOF
12885 # mkdir takes a single argument on some systems.
12886 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12887 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12888 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 else
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h. */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12898 #include <sys/types.h>
12899 #ifdef HAVE_SYS_STAT_H
12900 # include <sys/stat.h>
12901 #endif
12902 #ifdef HAVE_UNISTD_H
12903 # include <unistd.h>
12904 #endif
12905 #ifdef HAVE_DIRECT_H
12906 # include <direct.h>
12907 #endif
12909 main ()
12911 mkdir ("foo", 0);
12913 return 0;
12915 _ACEOF
12916 rm -f conftest.$ac_objext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12918 (eval $ac_compile) 2>conftest.er1
12919 ac_status=$?
12920 grep -v '^ *+' conftest.er1 >conftest.err
12921 rm -f conftest.er1
12922 cat conftest.err >&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } &&
12925 { ac_try='test -z "$ac_c_werror_flag"
12926 || test ! -s conftest.err'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; } &&
12932 { ac_try='test -s conftest.$ac_objext'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 gcc_cv_mkdir_takes_one_arg=no
12939 else
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12943 gcc_cv_mkdir_takes_one_arg=yes
12945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12947 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12948 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12949 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12951 cat >>confdefs.h <<\_ACEOF
12952 #define MKDIR_TAKES_ONE_ARG 1
12953 _ACEOF
12958 # File extensions
12959 manext='.1'
12960 objext='.o'
12964 # With Setjmp/Longjmp based exception handling.
12965 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12966 if test "${enable_sjlj_exceptions+set}" = set; then
12967 enableval="$enable_sjlj_exceptions"
12968 case $target in
12969 *-*-hpux10*)
12970 if test $enableval != yes; then
12971 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12972 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12973 enableval=yes
12976 esac
12977 force_sjlj_exceptions=yes
12978 else
12979 case $target in
12980 *-*-hpux10*)
12981 force_sjlj_exceptions=yes
12982 enableval=yes
12985 force_sjlj_exceptions=no
12987 esac
12989 if test $force_sjlj_exceptions = yes; then
12990 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12992 cat >>confdefs.h <<_ACEOF
12993 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12994 _ACEOF
12998 # For platforms with the unwind ABI which includes an unwind library,
12999 # libunwind, we can choose to use the system libunwind.
13001 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13002 if test "${with_system_libunwind+set}" = set; then
13003 withval="$with_system_libunwind"
13007 # config.gcc also contains tests of with_system_libunwind.
13008 if test x$with_system_libunwind = xyes; then
13010 cat >>confdefs.h <<\_ACEOF
13011 #define HAVE_GETIPINFO 1
13012 _ACEOF
13016 # --------------------------------------------------------
13017 # Build, host, and target specific configuration fragments
13018 # --------------------------------------------------------
13020 # Collect build-machine-specific information.
13021 . ${srcdir}/config.build
13023 # Collect host-machine-specific information.
13024 . ${srcdir}/config.host
13026 target_gtfiles=
13028 # Collect target-machine-specific information.
13029 . ${srcdir}/config.gcc
13031 extra_objs="${host_extra_objs} ${extra_objs}"
13032 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13034 # Default the target-machine variables that were not explicitly set.
13035 if test x"$tm_file" = x
13036 then tm_file=$cpu_type/$cpu_type.h; fi
13038 if test x"$extra_headers" = x
13039 then extra_headers=; fi
13041 if test x$md_file = x
13042 then md_file=$cpu_type/$cpu_type.md; fi
13044 if test x$out_file = x
13045 then out_file=$cpu_type/$cpu_type.c; fi
13047 if test x"$tmake_file" = x
13048 then tmake_file=$cpu_type/t-$cpu_type
13051 if test x"$dwarf2" = xyes
13052 then tm_file="$tm_file tm-dwarf2.h"
13055 # Say what files are being used for the output code and MD file.
13056 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13057 echo "Using \`$srcdir/config/$md_file' as machine description file."
13059 # If any of the xm_file variables contain nonexistent files, warn
13060 # about them and drop them.
13063 for x in $build_xm_file; do
13064 if test -f $srcdir/config/$x
13065 then bx="$bx $x"
13066 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13067 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13069 done
13070 build_xm_file="$bx"
13073 for x in $host_xm_file; do
13074 if test -f $srcdir/config/$x
13075 then hx="$hx $x"
13076 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13077 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13079 done
13080 host_xm_file="$hx"
13083 for x in $xm_file; do
13084 if test -f $srcdir/config/$x
13085 then tx="$tx $x"
13086 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13087 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13089 done
13090 xm_file="$tx"
13092 count=a
13093 for f in $tm_file; do
13094 count=${count}x
13095 done
13096 if test $count = ax; then
13097 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13098 else
13099 echo "Using the following target machine macro files:"
13100 for f in $tm_file; do
13101 echo " $srcdir/config/$f"
13102 done
13105 if test x$need_64bit_hwint = xyes; then
13107 cat >>confdefs.h <<\_ACEOF
13108 #define NEED_64BIT_HOST_WIDE_INT 1
13109 _ACEOF
13113 if test x$use_long_long_for_widest_fast_int = xyes; then
13115 cat >>confdefs.h <<\_ACEOF
13116 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13117 _ACEOF
13121 count=a
13122 for f in $host_xm_file; do
13123 count=${count}x
13124 done
13125 if test $count = a; then
13127 elif test $count = ax; then
13128 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13129 else
13130 echo "Using the following host machine macro files:"
13131 for f in $host_xm_file; do
13132 echo " $srcdir/config/$f"
13133 done
13135 echo "Using ${out_host_hook_obj} for host machine hooks."
13137 if test "$host_xm_file" != "$build_xm_file"; then
13138 count=a
13139 for f in $build_xm_file; do
13140 count=${count}x
13141 done
13142 if test $count = a; then
13144 elif test $count = ax; then
13145 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13146 else
13147 echo "Using the following build machine macro files:"
13148 for f in $build_xm_file; do
13149 echo " $srcdir/config/$f"
13150 done
13154 case ${host} in
13155 powerpc*-*-darwin*)
13156 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13157 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13158 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 else
13161 cat >conftest.$ac_ext <<_ACEOF
13163 #include <sys/cdefs.h>
13164 #include <sys/signal.h>
13165 #include <ucontext.h>
13166 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13168 _ACEOF
13169 rm -f conftest.$ac_objext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13171 (eval $ac_compile) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -z "$ac_c_werror_flag"
13179 || test ! -s conftest.err'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; } &&
13185 { ac_try='test -s conftest.$ac_objext'
13186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187 (eval $ac_try) 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13191 gcc_cv_mcontext_underscores=no
13192 else
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13196 gcc_cv_mcontext_underscores=yes
13198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13200 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13201 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13202 if test $gcc_cv_mcontext_underscores = yes; then
13204 cat >>confdefs.h <<\_ACEOF
13205 #define HAS_MCONTEXT_T_UNDERSCORES
13206 _ACEOF
13210 esac
13212 # ---------
13213 # Threading
13214 # ---------
13216 # Check if a valid thread package
13217 case ${enable_threads} in
13218 "" | no)
13219 # No threads
13220 target_thread_file='single'
13222 yes)
13223 # default
13224 target_thread_file='single'
13226 aix | dce | gnat | irix | posix | posix95 | rtems | \
13227 single | solaris | vxworks | win32 | mipssde)
13228 target_thread_file=${enable_threads}
13231 echo "${enable_threads} is an unknown thread package" 1>&2
13232 exit 1
13234 esac
13236 if test x${thread_file} = x; then
13237 # No thread file set by target-specific clauses in config.gcc,
13238 # so use file chosen by default logic above
13239 thread_file=${target_thread_file}
13242 # Make gthr-default.h if we have a thread file.
13243 gthread_flags=
13244 if test $thread_file != single; then
13245 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13246 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13247 rm -f gthr-default.h-t
13248 else
13249 mv -f gthr-default.h-t gthr-default.h
13251 gthread_flags=-DHAVE_GTHR_DEFAULT
13255 # --------
13256 # UNSORTED
13257 # --------
13259 use_cxa_atexit=no
13260 if test x$enable___cxa_atexit = xyes || \
13261 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13262 if test x$host = x$target; then
13263 case $host in
13264 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13265 # keyed to flag_use_cxa_atexit
13266 *-*-mingw32*)
13267 use_cxa_atexit=yes
13270 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13271 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13272 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
13274 else
13275 cat >conftest.$ac_ext <<_ACEOF
13276 /* confdefs.h. */
13277 _ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h. */
13281 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13283 #define __cxa_atexit innocuous___cxa_atexit
13285 /* System header to define __stub macros and hopefully few prototypes,
13286 which can conflict with char __cxa_atexit (); below.
13287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13288 <limits.h> exists even on freestanding compilers. */
13290 #ifdef __STDC__
13291 # include <limits.h>
13292 #else
13293 # include <assert.h>
13294 #endif
13296 #undef __cxa_atexit
13298 /* Override any gcc2 internal prototype to avoid an error. */
13299 #ifdef __cplusplus
13300 extern "C"
13302 #endif
13303 /* We use char because int might match the return type of a gcc2
13304 builtin and then its argument prototype would still apply. */
13305 char __cxa_atexit ();
13306 /* The GNU C library defines this for functions which it implements
13307 to always fail with ENOSYS. Some functions are actually named
13308 something starting with __ and the normal name is an alias. */
13309 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13310 choke me
13311 #else
13312 char (*f) () = __cxa_atexit;
13313 #endif
13314 #ifdef __cplusplus
13316 #endif
13319 main ()
13321 return f != __cxa_atexit;
13323 return 0;
13325 _ACEOF
13326 rm -f conftest.$ac_objext conftest$ac_exeext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13328 (eval $ac_link) 2>conftest.er1
13329 ac_status=$?
13330 grep -v '^ *+' conftest.er1 >conftest.err
13331 rm -f conftest.er1
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
13335 { ac_try='test -z "$ac_c_werror_flag"
13336 || test ! -s conftest.err'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest$ac_exeext'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_cv_func___cxa_atexit=yes
13349 else
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 ac_cv_func___cxa_atexit=no
13355 rm -f conftest.err conftest.$ac_objext \
13356 conftest$ac_exeext conftest.$ac_ext
13358 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13359 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13360 if test $ac_cv_func___cxa_atexit = yes; then
13361 use_cxa_atexit=yes
13362 else
13363 echo "__cxa_atexit can't be enabled on this target"
13367 esac
13368 else
13369 # We can't check for __cxa_atexit when building a cross, so assume
13370 # it is available
13371 use_cxa_atexit=yes
13373 if test x$use_cxa_atexit = xyes; then
13375 cat >>confdefs.h <<\_ACEOF
13376 #define DEFAULT_USE_CXA_ATEXIT 2
13377 _ACEOF
13382 use_getipinfo=yes
13383 if test x$with_system_libunwind = xyes; then
13384 if test x$host = x$target; then
13385 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13386 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13387 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390 ac_func_search_save_LIBS=$LIBS
13391 ac_cv_search__Unwind_GetIPInfo=no
13392 cat >conftest.$ac_ext <<_ACEOF
13393 /* confdefs.h. */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13399 /* Override any gcc2 internal prototype to avoid an error. */
13400 #ifdef __cplusplus
13401 extern "C"
13402 #endif
13403 /* We use char because int might match the return type of a gcc2
13404 builtin and then its argument prototype would still apply. */
13405 char _Unwind_GetIPInfo ();
13407 main ()
13409 _Unwind_GetIPInfo ();
13411 return 0;
13413 _ACEOF
13414 rm -f conftest.$ac_objext conftest$ac_exeext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13416 (eval $ac_link) 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
13423 { ac_try='test -z "$ac_c_werror_flag"
13424 || test ! -s conftest.err'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest$ac_exeext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_cv_search__Unwind_GetIPInfo="none required"
13437 else
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13442 rm -f conftest.err conftest.$ac_objext \
13443 conftest$ac_exeext conftest.$ac_ext
13444 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13445 for ac_lib in unwind; do
13446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13447 cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h. */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13454 /* Override any gcc2 internal prototype to avoid an error. */
13455 #ifdef __cplusplus
13456 extern "C"
13457 #endif
13458 /* We use char because int might match the return type of a gcc2
13459 builtin and then its argument prototype would still apply. */
13460 char _Unwind_GetIPInfo ();
13462 main ()
13464 _Unwind_GetIPInfo ();
13466 return 0;
13468 _ACEOF
13469 rm -f conftest.$ac_objext conftest$ac_exeext
13470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13471 (eval $ac_link) 2>conftest.er1
13472 ac_status=$?
13473 grep -v '^ *+' conftest.er1 >conftest.err
13474 rm -f conftest.er1
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -z "$ac_c_werror_flag"
13479 || test ! -s conftest.err'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; } &&
13485 { ac_try='test -s conftest$ac_exeext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13492 break
13493 else
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13498 rm -f conftest.err conftest.$ac_objext \
13499 conftest$ac_exeext conftest.$ac_ext
13500 done
13502 LIBS=$ac_func_search_save_LIBS
13504 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13505 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13506 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13507 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13509 else
13510 use_getipinfo=no
13516 if test x$use_getipinfo = xyes; then
13518 cat >>confdefs.h <<\_ACEOF
13519 #define HAVE_GETIPINFO 1
13520 _ACEOF
13522 else
13523 echo "The system unwind library does not support _Unwind_GetIPInfo."
13526 # Look for a file containing extra machine modes.
13527 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13528 extra_modes_file='$(srcdir)'/config/${extra_modes}
13531 cat >>confdefs.h <<_ACEOF
13532 #define EXTRA_MODES_FILE "config/$extra_modes"
13533 _ACEOF
13537 # Convert extra_options into a form suitable for Makefile use.
13538 extra_opt_files=
13539 for f in $extra_options; do
13540 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13541 done
13544 # auto-host.h is the file containing items generated by autoconf and is
13545 # the first file included by config.h.
13546 # If host=build, it is correct to have bconfig include auto-host.h
13547 # as well. If host!=build, we are in error and need to do more
13548 # work to find out the build config parameters.
13549 if test x$host = x$build
13550 then
13551 build_auto=auto-host.h
13552 else
13553 # We create a subdir, then run autoconf in the subdir.
13554 # To prevent recursion we set host and build for the new
13555 # invocation of configure to the build for this invocation
13556 # of configure.
13557 tempdir=build.$$
13558 rm -rf $tempdir
13559 mkdir $tempdir
13560 cd $tempdir
13561 case ${srcdir} in
13562 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13563 *) realsrcdir=../${srcdir};;
13564 esac
13565 saved_CFLAGS="${CFLAGS}"
13566 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13567 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13568 ${realsrcdir}/configure \
13569 --enable-languages=${enable_languages-all} \
13570 --target=$target_alias --host=$build_alias --build=$build_alias
13571 CFLAGS="${saved_CFLAGS}"
13573 # We just finished tests for the build machine, so rename
13574 # the file auto-build.h in the gcc directory.
13575 mv auto-host.h ../auto-build.h
13576 cd ..
13577 rm -rf $tempdir
13578 build_auto=auto-build.h
13582 tm_file="${tm_file} defaults.h"
13583 tm_p_file="${tm_p_file} tm-preds.h"
13584 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13585 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13586 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13587 # put this back in temporarily.
13588 xm_file="auto-host.h ansidecl.h ${xm_file}"
13590 # --------
13591 # UNSORTED
13592 # --------
13594 # Compile in configure arguments.
13595 if test -f configargs.h ; then
13596 # Being re-configured.
13597 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13598 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13599 else
13600 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13603 # Double all backslashes and backslash all quotes to turn
13604 # gcc_config_arguments into a C string.
13605 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13606 $gcc_config_arguments
13608 gcc_config_arguments_str=`cat conftest.out`
13609 rm -f conftest.out
13611 cat > configargs.h <<EOF
13612 /* Generated automatically. */
13613 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13614 static const char thread_model[] = "$thread_file";
13616 static const struct {
13617 const char *name, *value;
13618 } configure_default_options[] = $configure_default_options;
13621 # Internationalization
13622 # If we haven't got the data from the intl directory,
13623 # assume NLS is disabled.
13624 USE_NLS=no
13625 LIBINTL=
13626 LIBINTL_DEP=
13627 INCINTL=
13628 XGETTEXT=
13629 GMSGFMT=
13630 POSUB=
13632 if test -f ../intl/config.intl; then
13633 . ../intl/config.intl
13635 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13636 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13637 if test x"$USE_NLS" != xyes; then
13638 echo "$as_me:$LINENO: result: no" >&5
13639 echo "${ECHO_T}no" >&6
13640 else
13641 echo "$as_me:$LINENO: result: yes" >&5
13642 echo "${ECHO_T}yes" >&6
13644 cat >>confdefs.h <<\_ACEOF
13645 #define ENABLE_NLS 1
13646 _ACEOF
13649 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13650 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13651 # Look for .po and .gmo files in the source directory.
13652 CATALOGS=
13653 XLINGUAS=
13654 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13655 # If there aren't any .gmo files the shell will give us the
13656 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13657 # weeded out.
13658 case "$cat" in *\**)
13659 continue;;
13660 esac
13661 # The quadruple backslash is collapsed to a double backslash
13662 # by the backticks, then collapsed again by the double quotes,
13663 # leaving us with one backslash in the sed expression (right
13664 # before the dot that mustn't act as a wildcard).
13665 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13666 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13667 # The user is allowed to set LINGUAS to a list of languages to
13668 # install catalogs for. If it's empty that means "all of them."
13669 if test "x$LINGUAS" = x; then
13670 CATALOGS="$CATALOGS $cat"
13671 XLINGUAS="$XLINGUAS $lang"
13672 else
13673 case "$LINGUAS" in *$lang*)
13674 CATALOGS="$CATALOGS $cat"
13675 XLINGUAS="$XLINGUAS $lang"
13677 esac
13679 done
13680 LINGUAS="$XLINGUAS"
13681 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13682 echo "${ECHO_T}$LINGUAS" >&6
13685 DATADIRNAME=share
13687 INSTOBJEXT=.mo
13689 GENCAT=gencat
13691 CATOBJEXT=.gmo
13695 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13696 # -liconv on the link line twice.
13697 case "$LIBINTL" in *$LIBICONV*)
13698 LIBICONV= ;;
13699 esac
13701 # Check whether --enable-secureplt or --disable-secureplt was given.
13702 if test "${enable_secureplt+set}" = set; then
13703 enableval="$enable_secureplt"
13707 # Check whether --enable-cld or --disable-cld was given.
13708 if test "${enable_cld+set}" = set; then
13709 enableval="$enable_cld"
13711 else
13712 enable_cld=no
13715 # Windows32 Registry support for specifying GCC installation paths.
13716 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13717 if test "${enable_win32_registry+set}" = set; then
13718 enableval="$enable_win32_registry"
13722 case $host_os in
13723 win32 | pe | cygwin* | mingw32* | uwin*)
13724 if test "x$enable_win32_registry" != xno; then
13725 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13726 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13727 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 else
13730 ac_func_search_save_LIBS=$LIBS
13731 ac_cv_search_RegOpenKeyExA=no
13732 cat >conftest.$ac_ext <<_ACEOF
13733 /* confdefs.h. */
13734 _ACEOF
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h. */
13739 /* Override any gcc2 internal prototype to avoid an error. */
13740 #ifdef __cplusplus
13741 extern "C"
13742 #endif
13743 /* We use char because int might match the return type of a gcc2
13744 builtin and then its argument prototype would still apply. */
13745 char RegOpenKeyExA ();
13747 main ()
13749 RegOpenKeyExA ();
13751 return 0;
13753 _ACEOF
13754 rm -f conftest.$ac_objext conftest$ac_exeext
13755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13756 (eval $ac_link) 2>conftest.er1
13757 ac_status=$?
13758 grep -v '^ *+' conftest.er1 >conftest.err
13759 rm -f conftest.er1
13760 cat conftest.err >&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } &&
13763 { ac_try='test -z "$ac_c_werror_flag"
13764 || test ! -s conftest.err'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try='test -s conftest$ac_exeext'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 ac_cv_search_RegOpenKeyExA="none required"
13777 else
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13782 rm -f conftest.err conftest.$ac_objext \
13783 conftest$ac_exeext conftest.$ac_ext
13784 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13785 for ac_lib in advapi32; do
13786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13794 /* Override any gcc2 internal prototype to avoid an error. */
13795 #ifdef __cplusplus
13796 extern "C"
13797 #endif
13798 /* We use char because int might match the return type of a gcc2
13799 builtin and then its argument prototype would still apply. */
13800 char RegOpenKeyExA ();
13802 main ()
13804 RegOpenKeyExA ();
13806 return 0;
13808 _ACEOF
13809 rm -f conftest.$ac_objext conftest$ac_exeext
13810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13811 (eval $ac_link) 2>conftest.er1
13812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -z "$ac_c_werror_flag"
13819 || test ! -s conftest.err'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest$ac_exeext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13832 break
13833 else
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13838 rm -f conftest.err conftest.$ac_objext \
13839 conftest$ac_exeext conftest.$ac_ext
13840 done
13842 LIBS=$ac_func_search_save_LIBS
13844 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13845 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13846 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13847 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13849 else
13850 enable_win32_registry=no
13855 if test "x$enable_win32_registry" != xno; then
13857 cat >>confdefs.h <<\_ACEOF
13858 #define ENABLE_WIN32_REGISTRY 1
13859 _ACEOF
13862 if test "x$enable_win32_registry" != xyes \
13863 && test "x$enable_win32_registry" != x; then
13865 cat >>confdefs.h <<_ACEOF
13866 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13867 _ACEOF
13872 esac
13874 # Get an absolute path to the GCC top-level source directory
13875 holddir=`${PWDCMD-pwd}`
13876 cd $srcdir
13877 topdir=`${PWDCMD-pwd}`
13878 cd $holddir
13880 # Conditionalize the makefile for this host machine.
13881 xmake_file=
13882 for f in ${host_xmake_file}
13884 if test -f ${srcdir}/config/$f
13885 then
13886 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13888 done
13890 # Conditionalize the makefile for this target machine.
13891 tmake_file_=
13892 for f in ${tmake_file}
13894 if test -f ${srcdir}/config/$f
13895 then
13896 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13898 done
13899 tmake_file="${tmake_file_}"
13901 # This is a terrible hack which will go away some day.
13902 host_cc_for_libada=${CC}
13905 out_object_file=`basename $out_file .c`.o
13907 tm_file_list="options.h"
13908 tm_include_list="options.h"
13909 for f in $tm_file; do
13910 case $f in
13911 ./* )
13912 f=`echo $f | sed 's/^..//'`
13913 tm_file_list="${tm_file_list} $f"
13914 tm_include_list="${tm_include_list} $f"
13916 defaults.h )
13917 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13918 tm_include_list="${tm_include_list} $f"
13921 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13922 tm_include_list="${tm_include_list} config/$f"
13924 esac
13925 done
13927 tm_p_file_list=
13928 tm_p_include_list=
13929 for f in $tm_p_file; do
13930 case $f in
13931 tm-preds.h )
13932 tm_p_file_list="${tm_p_file_list} $f"
13933 tm_p_include_list="${tm_p_include_list} $f"
13936 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13937 tm_p_include_list="${tm_p_include_list} config/$f"
13938 esac
13939 done
13941 xm_file_list=
13942 xm_include_list=
13943 for f in $xm_file; do
13944 case $f in
13945 ansidecl.h )
13946 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13947 xm_include_list="${xm_include_list} $f"
13949 auto-host.h )
13950 xm_file_list="${xm_file_list} $f"
13951 xm_include_list="${xm_include_list} $f"
13954 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13955 xm_include_list="${xm_include_list} config/$f"
13957 esac
13958 done
13960 host_xm_file_list=
13961 host_xm_include_list=
13962 for f in $host_xm_file; do
13963 case $f in
13964 ansidecl.h )
13965 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13966 host_xm_include_list="${host_xm_include_list} $f"
13968 auto-host.h )
13969 host_xm_file_list="${host_xm_file_list} $f"
13970 host_xm_include_list="${host_xm_include_list} $f"
13973 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13974 host_xm_include_list="${host_xm_include_list} config/$f"
13976 esac
13977 done
13979 build_xm_file_list=
13980 for f in $build_xm_file; do
13981 case $f in
13982 ansidecl.h )
13983 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13984 build_xm_include_list="${build_xm_include_list} $f"
13986 auto-build.h | auto-host.h )
13987 build_xm_file_list="${build_xm_file_list} $f"
13988 build_xm_include_list="${build_xm_include_list} $f"
13991 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13992 build_xm_include_list="${build_xm_include_list} config/$f"
13994 esac
13995 done
13997 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13998 # cross-compiler which does not use the native headers and libraries.
13999 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
14000 CROSS=
14001 ALL=all.internal
14002 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14004 if test "x$with_build_sysroot" != x; then
14005 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
14006 else
14007 # This value is used, even on a native system, because
14008 # CROSS_SYSTEM_HEADER_DIR is just
14009 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
14010 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
14013 if test x$host != x$target
14014 then
14015 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
14016 ALL=all.cross
14017 SYSTEM_HEADER_DIR=$build_system_header_dir
14018 case "$host","$target" in
14019 # Darwin crosses can use the host system's libraries and headers,
14020 # because of the fat library support. Of course, it must be the
14021 # same version of Darwin on both sides. Allow the user to
14022 # just say --target=foo-darwin without a version number to mean
14023 # "the version on this system".
14024 *-*-darwin*,*-*-darwin*)
14025 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
14026 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
14027 if test $hostos = $targetos -o $targetos = darwin ; then
14028 CROSS=
14029 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14030 with_headers=yes
14034 i?86-*-*,x86_64-*-* \
14035 | powerpc*-*-*,powerpc64*-*-*)
14036 CROSS="$CROSS -DNATIVE_CROSS" ;;
14037 esac
14038 elif test "x$TARGET_SYSTEM_ROOT" != x; then
14039 SYSTEM_HEADER_DIR=$build_system_header_dir
14042 # If this is a cross-compiler that does not
14043 # have its own set of headers then define
14044 # inhibit_libc
14046 # If this is using newlib, without having the headers available now,
14047 # then define inhibit_libc in LIBGCC2_CFLAGS.
14048 # This prevents libgcc2 from containing any code which requires libc
14049 # support.
14050 : ${inhibit_libc=false}
14051 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
14052 test x$with_newlib = xyes ; } &&
14053 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
14054 inhibit_libc=true
14058 # When building gcc with a cross-compiler, we need to adjust things so
14059 # that the generator programs are still built with the native compiler.
14060 # Also, we cannot run fixincludes or fix-header.
14062 # These are the normal (build=host) settings:
14063 CC_FOR_BUILD='$(CC)'
14064 BUILD_CFLAGS='$(ALL_CFLAGS)'
14065 BUILD_LDFLAGS='$(LDFLAGS)'
14066 STMP_FIXINC=stmp-fixinc
14068 # Possibly disable fixproto, on a per-target basis.
14069 case ${use_fixproto} in
14071 STMP_FIXPROTO=
14073 yes)
14074 STMP_FIXPROTO=stmp-fixproto
14076 esac
14079 # And these apply if build != host, or we are generating coverage data
14080 if test x$build != x$host || test "x$coverage_flags" != x
14081 then
14082 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14083 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
14085 if test "x$TARGET_SYSTEM_ROOT" = x; then
14086 if test "x$STMP_FIXPROTO" != x; then
14087 STMP_FIXPROTO=stmp-install-fixproto
14092 # Expand extra_headers to include complete path.
14093 # This substitutes for lots of t-* files.
14094 extra_headers_list=
14095 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14096 for file in ${extra_headers} ; do
14097 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14098 done
14100 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14101 if test x"$use_gcc_tgmath" = xyes
14102 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14105 # Define collect2 in Makefile.
14106 case $host_can_use_collect2 in
14107 no) collect2= ;;
14108 *) collect2='collect2$(exeext)' ;;
14109 esac
14112 # Add a definition of USE_COLLECT2 if system wants one.
14113 case $use_collect2 in
14114 no) use_collect2= ;;
14115 "") ;;
14117 host_xm_defines="${host_xm_defines} USE_COLLECT2"
14118 xm_defines="${xm_defines} USE_COLLECT2"
14119 case $host_can_use_collect2 in
14121 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14122 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14123 { (exit 1); exit 1; }; }
14125 esac
14127 esac
14129 # ---------------------------
14130 # Assembler & linker features
14131 # ---------------------------
14133 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14134 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14135 # However when ld-new is first executed from the build tree, libtool will
14136 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14137 # to the build tree. While doing this we need to use the previous-stage
14138 # linker, or we have an infinite loop. The presence of a shell script as
14139 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14140 # the gcc/collect-ld script. So we need to know how libtool works, or
14141 # exec-tool will fail.
14146 macro_version='2.1a'
14147 macro_revision='1.2435'
14160 ltmain="$ac_aux_dir/ltmain.sh"
14162 # Set options
14164 enable_dlopen=no
14167 enable_win32_dll=no
14170 # Check whether --enable-shared or --disable-shared was given.
14171 if test "${enable_shared+set}" = set; then
14172 enableval="$enable_shared"
14173 p=${PACKAGE-default}
14174 case $enableval in
14175 yes) enable_shared=yes ;;
14176 no) enable_shared=no ;;
14178 enable_shared=no
14179 # Look at the argument we got. We use all the common list separators.
14180 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14181 for pkg in $enableval; do
14182 IFS="$lt_save_ifs"
14183 if test "X$pkg" = "X$p"; then
14184 enable_shared=yes
14186 done
14187 IFS="$lt_save_ifs"
14189 esac
14190 else
14191 enable_shared=yes
14201 # Check whether --enable-static or --disable-static was given.
14202 if test "${enable_static+set}" = set; then
14203 enableval="$enable_static"
14204 p=${PACKAGE-default}
14205 case $enableval in
14206 yes) enable_static=yes ;;
14207 no) enable_static=no ;;
14209 enable_static=no
14210 # Look at the argument we got. We use all the common list separators.
14211 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14212 for pkg in $enableval; do
14213 IFS="$lt_save_ifs"
14214 if test "X$pkg" = "X$p"; then
14215 enable_static=yes
14217 done
14218 IFS="$lt_save_ifs"
14220 esac
14221 else
14222 enable_static=yes
14233 # Check whether --with-pic or --without-pic was given.
14234 if test "${with_pic+set}" = set; then
14235 withval="$with_pic"
14236 pic_mode="$withval"
14237 else
14238 pic_mode=default
14241 test -z "$pic_mode" && pic_mode=default
14249 # Check whether --enable-fast-install or --disable-fast-install was given.
14250 if test "${enable_fast_install+set}" = set; then
14251 enableval="$enable_fast_install"
14252 p=${PACKAGE-default}
14253 case $enableval in
14254 yes) enable_fast_install=yes ;;
14255 no) enable_fast_install=no ;;
14257 enable_fast_install=no
14258 # Look at the argument we got. We use all the common list separators.
14259 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14260 for pkg in $enableval; do
14261 IFS="$lt_save_ifs"
14262 if test "X$pkg" = "X$p"; then
14263 enable_fast_install=yes
14265 done
14266 IFS="$lt_save_ifs"
14268 esac
14269 else
14270 enable_fast_install=yes
14280 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14281 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14282 if test "${lt_cv_path_SED+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285 # Loop through the user's path and test for sed and gsed.
14286 # Then use that list of sed's as ones to test for truncation.
14287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14288 for as_dir in $PATH
14290 IFS=$as_save_IFS
14291 test -z "$as_dir" && as_dir=.
14292 for lt_ac_prog in sed gsed; do
14293 for ac_exec_ext in '' $ac_executable_extensions; do
14294 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14295 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14297 done
14298 done
14299 done
14300 IFS=$as_save_IFS
14301 lt_ac_max=0
14302 lt_ac_count=0
14303 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14304 # along with /bin/sed that truncates output.
14305 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14306 test ! -f $lt_ac_sed && continue
14307 cat /dev/null > conftest.in
14308 lt_ac_count=0
14309 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14310 # Check for GNU sed and select it if it is found.
14311 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14312 lt_cv_path_SED=$lt_ac_sed
14313 break
14315 while true; do
14316 cat conftest.in conftest.in >conftest.tmp
14317 mv conftest.tmp conftest.in
14318 cp conftest.in conftest.nl
14319 echo >>conftest.nl
14320 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14321 cmp -s conftest.out conftest.nl || break
14322 # 10000 chars as input seems more than enough
14323 test $lt_ac_count -gt 10 && break
14324 lt_ac_count=`expr $lt_ac_count + 1`
14325 if test $lt_ac_count -gt $lt_ac_max; then
14326 lt_ac_max=$lt_ac_count
14327 lt_cv_path_SED=$lt_ac_sed
14329 done
14330 done
14334 SED=$lt_cv_path_SED
14336 echo "$as_me:$LINENO: result: $SED" >&5
14337 echo "${ECHO_T}$SED" >&6
14339 test -z "$SED" && SED=sed
14340 Xsed="$SED -e 1s/^X//"
14352 echo "$as_me:$LINENO: checking for fgrep" >&5
14353 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14354 if test "${ac_cv_prog_fgrep+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 else
14357 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14358 then ac_cv_prog_fgrep='grep -F'
14359 else ac_cv_prog_fgrep='fgrep'
14362 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14363 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14364 FGREP=$ac_cv_prog_fgrep
14367 test -z "$GREP" && GREP=grep
14387 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14388 if test "${with_gnu_ld+set}" = set; then
14389 withval="$with_gnu_ld"
14390 test "$withval" = no || with_gnu_ld=yes
14391 else
14392 with_gnu_ld=no
14394 ac_prog=ld
14395 if test "$GCC" = yes; then
14396 # Check if gcc -print-prog-name=ld gives a path.
14397 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14398 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14399 case $host in
14400 *-*-mingw*)
14401 # gcc leaves a trailing carriage return which upsets mingw
14402 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14404 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14405 esac
14406 case $ac_prog in
14407 # Accept absolute paths.
14408 [\\/]* | ?:[\\/]*)
14409 re_direlt='/[^/][^/]*/\.\./'
14410 # Canonicalize the pathname of ld
14411 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14412 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14413 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14414 done
14415 test -z "$LD" && LD="$ac_prog"
14418 # If it fails, then pretend we aren't using GCC.
14419 ac_prog=ld
14422 # If it is relative, then search for the first ld in PATH.
14423 with_gnu_ld=unknown
14425 esac
14426 elif test "$with_gnu_ld" = yes; then
14427 echo "$as_me:$LINENO: checking for GNU ld" >&5
14428 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14429 else
14430 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14431 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14433 if test "${lt_cv_path_LD+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436 if test -z "$LD"; then
14437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14438 for ac_dir in $PATH; do
14439 IFS="$lt_save_ifs"
14440 test -z "$ac_dir" && ac_dir=.
14441 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14442 lt_cv_path_LD="$ac_dir/$ac_prog"
14443 # Check to see if the program is GNU ld. I'd rather use --version,
14444 # but apparently some variants of GNU ld only accept -v.
14445 # Break only if it was the GNU/non-GNU ld that we prefer.
14446 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14447 *GNU* | *'with BFD'*)
14448 test "$with_gnu_ld" != no && break
14451 test "$with_gnu_ld" != yes && break
14453 esac
14455 done
14456 IFS="$lt_save_ifs"
14457 else
14458 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14462 LD="$lt_cv_path_LD"
14463 if test -n "$LD"; then
14464 echo "$as_me:$LINENO: result: $LD" >&5
14465 echo "${ECHO_T}$LD" >&6
14466 else
14467 echo "$as_me:$LINENO: result: no" >&5
14468 echo "${ECHO_T}no" >&6
14470 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14471 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14472 { (exit 1); exit 1; }; }
14473 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14474 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14475 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14479 case `$LD -v 2>&1 </dev/null` in
14480 *GNU* | *'with BFD'*)
14481 lt_cv_prog_gnu_ld=yes
14484 lt_cv_prog_gnu_ld=no
14486 esac
14488 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14489 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14490 with_gnu_ld=$lt_cv_prog_gnu_ld
14501 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14502 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14503 if test "${lt_cv_path_NM+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506 if test -n "$NM"; then
14507 # Let the user override the test.
14508 lt_cv_path_NM="$NM"
14509 else
14510 lt_nm_to_check="${ac_tool_prefix}nm"
14511 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14512 lt_nm_to_check="$lt_nm_to_check nm"
14514 for lt_tmp_nm in $lt_nm_to_check; do
14515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14516 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14517 IFS="$lt_save_ifs"
14518 test -z "$ac_dir" && ac_dir=.
14519 tmp_nm="$ac_dir/$lt_tmp_nm"
14520 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14521 # Check to see if the nm accepts a BSD-compat flag.
14522 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14523 # nm: unknown option "B" ignored
14524 # Tru64's nm complains that /dev/null is an invalid object file
14525 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14526 */dev/null* | *'Invalid file or object type'*)
14527 lt_cv_path_NM="$tmp_nm -B"
14528 break
14531 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14532 */dev/null*)
14533 lt_cv_path_NM="$tmp_nm -p"
14534 break
14537 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14538 continue # so that we can try to find one that supports BSD flags
14540 esac
14542 esac
14544 done
14545 IFS="$lt_save_ifs"
14546 done
14547 : ${lt_cv_path_NM=no}
14550 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14551 echo "${ECHO_T}$lt_cv_path_NM" >&6
14552 if test "$lt_cv_path_NM" != "no"; then
14553 NM="$lt_cv_path_NM"
14554 else
14555 # Didn't find any BSD compatible name lister, look for dumpbin.
14556 if test -n "$ac_tool_prefix"; then
14557 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14561 echo "$as_me:$LINENO: checking for $ac_word" >&5
14562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14563 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 else
14566 if test -n "$DUMPBIN"; then
14567 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14568 else
14569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14570 for as_dir in $PATH
14572 IFS=$as_save_IFS
14573 test -z "$as_dir" && as_dir=.
14574 for ac_exec_ext in '' $ac_executable_extensions; do
14575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14576 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14578 break 2
14580 done
14581 done
14585 DUMPBIN=$ac_cv_prog_DUMPBIN
14586 if test -n "$DUMPBIN"; then
14587 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14588 echo "${ECHO_T}$DUMPBIN" >&6
14589 else
14590 echo "$as_me:$LINENO: result: no" >&5
14591 echo "${ECHO_T}no" >&6
14594 test -n "$DUMPBIN" && break
14595 done
14597 if test -z "$DUMPBIN"; then
14598 ac_ct_DUMPBIN=$DUMPBIN
14599 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14601 # Extract the first word of "$ac_prog", so it can be a program name with args.
14602 set dummy $ac_prog; ac_word=$2
14603 echo "$as_me:$LINENO: checking for $ac_word" >&5
14604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14605 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14607 else
14608 if test -n "$ac_ct_DUMPBIN"; then
14609 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14610 else
14611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612 for as_dir in $PATH
14614 IFS=$as_save_IFS
14615 test -z "$as_dir" && as_dir=.
14616 for ac_exec_ext in '' $ac_executable_extensions; do
14617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14618 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14620 break 2
14622 done
14623 done
14627 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14628 if test -n "$ac_ct_DUMPBIN"; then
14629 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14630 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14631 else
14632 echo "$as_me:$LINENO: result: no" >&5
14633 echo "${ECHO_T}no" >&6
14636 test -n "$ac_ct_DUMPBIN" && break
14637 done
14638 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14640 DUMPBIN=$ac_ct_DUMPBIN
14644 if test "$DUMPBIN" != ":"; then
14645 NM="$DUMPBIN"
14648 test -z "$NM" && NM=nm
14655 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14656 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14657 if test "${lt_cv_nm_interface+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14659 else
14660 lt_cv_nm_interface="BSD nm"
14661 echo "int some_variable = 0;" > conftest.$ac_ext
14662 (eval echo "\"\$as_me:14662: $ac_compile\"" >&5)
14663 (eval "$ac_compile" 2>conftest.err)
14664 cat conftest.err >&5
14665 (eval echo "\"\$as_me:14665: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14666 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14667 cat conftest.err >&5
14668 (eval echo "\"\$as_me:14668: output\"" >&5)
14669 cat conftest.out >&5
14670 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14671 lt_cv_nm_interface="MS dumpbin"
14673 rm -f conftest*
14675 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14676 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14678 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14679 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14680 LN_S=$as_ln_s
14681 if test "$LN_S" = "ln -s"; then
14682 echo "$as_me:$LINENO: result: yes" >&5
14683 echo "${ECHO_T}yes" >&6
14684 else
14685 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14686 echo "${ECHO_T}no, using $LN_S" >&6
14689 # find the maximum length of command line arguments
14690 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14691 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14692 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14694 else
14696 teststring="ABCD"
14698 case $build_os in
14699 msdosdjgpp*)
14700 # On DJGPP, this test can blow up pretty badly due to problems in libc
14701 # (any single argument exceeding 2000 bytes causes a buffer overrun
14702 # during glob expansion). Even if it were fixed, the result of this
14703 # check would be larger than it should be.
14704 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14707 gnu*)
14708 # Under GNU Hurd, this test is not required because there is
14709 # no limit to the length of command line arguments.
14710 # Libtool will interpret -1 as no limit whatsoever
14711 lt_cv_sys_max_cmd_len=-1;
14714 cygwin* | mingw*)
14715 # On Win9x/ME, this test blows up -- it succeeds, but takes
14716 # about 5 minutes as the teststring grows exponentially.
14717 # Worse, since 9x/ME are not pre-emptively multitasking,
14718 # you end up with a "frozen" computer, even though with patience
14719 # the test eventually succeeds (with a max line length of 256k).
14720 # Instead, let's just punt: use the minimum linelength reported by
14721 # all of the supported platforms: 8192 (on NT/2K/XP).
14722 lt_cv_sys_max_cmd_len=8192;
14725 amigaos*)
14726 # On AmigaOS with pdksh, this test takes hours, literally.
14727 # So we just punt and use a minimum line length of 8192.
14728 lt_cv_sys_max_cmd_len=8192;
14731 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14732 # This has been around since 386BSD, at least. Likely further.
14733 if test -x /sbin/sysctl; then
14734 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14735 elif test -x /usr/sbin/sysctl; then
14736 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14737 else
14738 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14740 # And add a safety zone
14741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14745 interix*)
14746 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14747 lt_cv_sys_max_cmd_len=196608
14750 osf*)
14751 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14752 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14753 # nice to cause kernel panics so lets avoid the loop below.
14754 # First set a reasonable default.
14755 lt_cv_sys_max_cmd_len=16384
14757 if test -x /sbin/sysconfig; then
14758 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14759 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14760 esac
14763 sco3.2v5*)
14764 lt_cv_sys_max_cmd_len=102400
14766 sysv5* | sco5v6* | sysv4.2uw2*)
14767 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14768 if test -n "$kargmax"; then
14769 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14770 else
14771 lt_cv_sys_max_cmd_len=32768
14775 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
14776 if test -n $lt_cv_sys_max_cmd_len; then
14777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14779 else
14780 # Make teststring a little bigger before we do anything with it.
14781 # a 1K string should be a reasonable start.
14782 for i in 1 2 3 4 5 6 7 8 ; do
14783 teststring=$teststring$teststring
14784 done
14785 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14786 # If test is not a shell built-in, we'll probably end up computing a
14787 # maximum length that is only half of the actual maximum length, but
14788 # we can't tell.
14789 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14790 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14791 test $i != 17 # 1/2 MB should be enough
14793 i=`expr $i + 1`
14794 teststring=$teststring$teststring
14795 done
14796 # Only check the string length outside the loop.
14797 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14798 teststring=
14799 # Add a significant safety factor because C++ compilers can tack on
14800 # massive amounts of additional arguments before passing them to the
14801 # linker. It appears as though 1/2 is a usable value.
14802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14805 esac
14809 if test -n $lt_cv_sys_max_cmd_len ; then
14810 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14811 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14812 else
14813 echo "$as_me:$LINENO: result: none" >&5
14814 echo "${ECHO_T}none" >&6
14816 max_cmd_len=$lt_cv_sys_max_cmd_len
14824 : ${CP="cp -f"}
14825 : ${MV="mv -f"}
14826 : ${RM="rm -f"}
14828 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14829 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14830 # Try some XSI features
14831 xsi_shell=no
14832 ( _lt_dummy="a/b/c"
14833 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14834 = c,a/b,, ) >/dev/null 2>&1 \
14835 && xsi_shell=yes
14836 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14837 echo "${ECHO_T}$xsi_shell" >&6
14840 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14841 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14842 lt_shell_append=no
14843 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14844 >/dev/null 2>&1 \
14845 && lt_shell_append=yes
14846 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14847 echo "${ECHO_T}$lt_shell_append" >&6
14850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14851 lt_unset=unset
14852 else
14853 lt_unset=false
14860 # test EBCDIC or ASCII
14861 case `echo X|tr X '\101'` in
14862 A) # ASCII based system
14863 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14864 lt_SP2NL='tr \040 \012'
14865 lt_NL2SP='tr \015\012 \040\040'
14867 *) # EBCDIC based system
14868 lt_SP2NL='tr \100 \n'
14869 lt_NL2SP='tr \r\n \100\100'
14871 esac
14881 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14882 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14883 if test "${lt_cv_ld_reload_flag+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886 lt_cv_ld_reload_flag='-r'
14888 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14889 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14890 reload_flag=$lt_cv_ld_reload_flag
14891 case $reload_flag in
14892 "" | " "*) ;;
14893 *) reload_flag=" $reload_flag" ;;
14894 esac
14895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14896 case $host_os in
14897 darwin*)
14898 if test "$GCC" = yes; then
14899 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14900 else
14901 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14904 esac
14915 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14916 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14917 if test "${lt_cv_deplibs_check_method+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920 lt_cv_file_magic_cmd='$MAGIC_CMD'
14921 lt_cv_file_magic_test_file=
14922 lt_cv_deplibs_check_method='unknown'
14923 # Need to set the preceding variable on all platforms that support
14924 # interlibrary dependencies.
14925 # 'none' -- dependencies not supported.
14926 # `unknown' -- same as none, but documents that we really don't know.
14927 # 'pass_all' -- all dependencies passed with no checks.
14928 # 'test_compile' -- check by making test program.
14929 # 'file_magic [[regex]]' -- check by looking for files in library path
14930 # which responds to the $file_magic_cmd with a given extended regex.
14931 # If you have `file' or equivalent on your system and you're not sure
14932 # whether `pass_all' will *always* work, you probably want this one.
14934 case $host_os in
14935 aix[4-9]*)
14936 lt_cv_deplibs_check_method=pass_all
14939 beos*)
14940 lt_cv_deplibs_check_method=pass_all
14943 bsdi[45]*)
14944 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14945 lt_cv_file_magic_cmd='/usr/bin/file -L'
14946 lt_cv_file_magic_test_file=/shlib/libc.so
14949 cygwin*)
14950 # func_win32_libid is a shell function defined in ltmain.sh
14951 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14952 lt_cv_file_magic_cmd='func_win32_libid'
14955 mingw* | pw32*)
14956 # Base MSYS/MinGW do not provide the 'file' command needed by
14957 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14958 # unless we find 'file', for example because we are cross-compiling.
14959 if ( file / ) >/dev/null 2>&1; then
14960 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14961 lt_cv_file_magic_cmd='func_win32_libid'
14962 else
14963 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14964 lt_cv_file_magic_cmd='$OBJDUMP -f'
14968 darwin* | rhapsody*)
14969 lt_cv_deplibs_check_method=pass_all
14972 freebsd* | dragonfly*)
14973 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14974 case $host_cpu in
14975 i*86 )
14976 # Not sure whether the presence of OpenBSD here was a mistake.
14977 # Let's accept both of them until this is cleared up.
14978 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14979 lt_cv_file_magic_cmd=/usr/bin/file
14980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14982 esac
14983 else
14984 lt_cv_deplibs_check_method=pass_all
14988 gnu*)
14989 lt_cv_deplibs_check_method=pass_all
14992 hpux10.20* | hpux11*)
14993 lt_cv_file_magic_cmd=/usr/bin/file
14994 case $host_cpu in
14995 ia64*)
14996 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14997 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14999 hppa*64*)
15000 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]'
15001 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15004 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15005 lt_cv_file_magic_test_file=/usr/lib/libc.sl
15007 esac
15010 interix[3-9]*)
15011 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15015 irix5* | irix6* | nonstopux*)
15016 case $LD in
15017 *-32|*"-32 ") libmagic=32-bit;;
15018 *-n32|*"-n32 ") libmagic=N32;;
15019 *-64|*"-64 ") libmagic=64-bit;;
15020 *) libmagic=never-match;;
15021 esac
15022 lt_cv_deplibs_check_method=pass_all
15025 # This must be Linux ELF.
15026 linux* | k*bsd*-gnu)
15027 lt_cv_deplibs_check_method=pass_all
15030 netbsd*)
15031 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15033 else
15034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15038 newos6*)
15039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15040 lt_cv_file_magic_cmd=/usr/bin/file
15041 lt_cv_file_magic_test_file=/usr/lib/libnls.so
15044 *nto* | *qnx*)
15045 lt_cv_deplibs_check_method=pass_all
15048 openbsd*)
15049 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15051 else
15052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15056 osf3* | osf4* | osf5*)
15057 lt_cv_deplibs_check_method=pass_all
15060 rdos*)
15061 lt_cv_deplibs_check_method=pass_all
15064 solaris*)
15065 lt_cv_deplibs_check_method=pass_all
15068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15069 lt_cv_deplibs_check_method=pass_all
15072 sysv4 | sysv4.3*)
15073 case $host_vendor in
15074 motorola)
15075 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]'
15076 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15078 ncr)
15079 lt_cv_deplibs_check_method=pass_all
15081 sequent)
15082 lt_cv_file_magic_cmd='/bin/file'
15083 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15085 sni)
15086 lt_cv_file_magic_cmd='/bin/file'
15087 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15088 lt_cv_file_magic_test_file=/lib/libc.so
15090 siemens)
15091 lt_cv_deplibs_check_method=pass_all
15094 lt_cv_deplibs_check_method=pass_all
15096 esac
15099 tpf*)
15100 lt_cv_deplibs_check_method=pass_all
15102 esac
15105 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15106 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15107 file_magic_cmd=$lt_cv_file_magic_cmd
15108 deplibs_check_method=$lt_cv_deplibs_check_method
15109 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15122 if test -n "$ac_tool_prefix"; then
15123 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15124 set dummy ${ac_tool_prefix}ar; ac_word=$2
15125 echo "$as_me:$LINENO: checking for $ac_word" >&5
15126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15127 if test "${ac_cv_prog_AR+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130 if test -n "$AR"; then
15131 ac_cv_prog_AR="$AR" # Let the user override the test.
15132 else
15133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15134 for as_dir in $PATH
15136 IFS=$as_save_IFS
15137 test -z "$as_dir" && as_dir=.
15138 for ac_exec_ext in '' $ac_executable_extensions; do
15139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15140 ac_cv_prog_AR="${ac_tool_prefix}ar"
15141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15142 break 2
15144 done
15145 done
15149 AR=$ac_cv_prog_AR
15150 if test -n "$AR"; then
15151 echo "$as_me:$LINENO: result: $AR" >&5
15152 echo "${ECHO_T}$AR" >&6
15153 else
15154 echo "$as_me:$LINENO: result: no" >&5
15155 echo "${ECHO_T}no" >&6
15159 if test -z "$ac_cv_prog_AR"; then
15160 ac_ct_AR=$AR
15161 # Extract the first word of "ar", so it can be a program name with args.
15162 set dummy ar; ac_word=$2
15163 echo "$as_me:$LINENO: checking for $ac_word" >&5
15164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15165 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168 if test -n "$ac_ct_AR"; then
15169 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15170 else
15171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172 for as_dir in $PATH
15174 IFS=$as_save_IFS
15175 test -z "$as_dir" && as_dir=.
15176 for ac_exec_ext in '' $ac_executable_extensions; do
15177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15178 ac_cv_prog_ac_ct_AR="ar"
15179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15180 break 2
15182 done
15183 done
15185 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15188 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15189 if test -n "$ac_ct_AR"; then
15190 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15191 echo "${ECHO_T}$ac_ct_AR" >&6
15192 else
15193 echo "$as_me:$LINENO: result: no" >&5
15194 echo "${ECHO_T}no" >&6
15197 AR=$ac_ct_AR
15198 else
15199 AR="$ac_cv_prog_AR"
15202 test -z "$AR" && AR=ar
15203 test -z "$AR_FLAGS" && AR_FLAGS=cru
15215 if test -n "$ac_tool_prefix"; then
15216 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15217 set dummy ${ac_tool_prefix}strip; ac_word=$2
15218 echo "$as_me:$LINENO: checking for $ac_word" >&5
15219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15220 if test "${ac_cv_prog_STRIP+set}" = set; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15222 else
15223 if test -n "$STRIP"; then
15224 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15225 else
15226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15227 for as_dir in $PATH
15229 IFS=$as_save_IFS
15230 test -z "$as_dir" && as_dir=.
15231 for ac_exec_ext in '' $ac_executable_extensions; do
15232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15233 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15235 break 2
15237 done
15238 done
15242 STRIP=$ac_cv_prog_STRIP
15243 if test -n "$STRIP"; then
15244 echo "$as_me:$LINENO: result: $STRIP" >&5
15245 echo "${ECHO_T}$STRIP" >&6
15246 else
15247 echo "$as_me:$LINENO: result: no" >&5
15248 echo "${ECHO_T}no" >&6
15252 if test -z "$ac_cv_prog_STRIP"; then
15253 ac_ct_STRIP=$STRIP
15254 # Extract the first word of "strip", so it can be a program name with args.
15255 set dummy strip; ac_word=$2
15256 echo "$as_me:$LINENO: checking for $ac_word" >&5
15257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15258 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15260 else
15261 if test -n "$ac_ct_STRIP"; then
15262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15263 else
15264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15265 for as_dir in $PATH
15267 IFS=$as_save_IFS
15268 test -z "$as_dir" && as_dir=.
15269 for ac_exec_ext in '' $ac_executable_extensions; do
15270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15271 ac_cv_prog_ac_ct_STRIP="strip"
15272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15273 break 2
15275 done
15276 done
15278 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15281 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15282 if test -n "$ac_ct_STRIP"; then
15283 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15284 echo "${ECHO_T}$ac_ct_STRIP" >&6
15285 else
15286 echo "$as_me:$LINENO: result: no" >&5
15287 echo "${ECHO_T}no" >&6
15290 STRIP=$ac_ct_STRIP
15291 else
15292 STRIP="$ac_cv_prog_STRIP"
15295 test -z "$STRIP" && STRIP=:
15302 if test -n "$ac_tool_prefix"; then
15303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15304 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15305 echo "$as_me:$LINENO: checking for $ac_word" >&5
15306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15307 if test "${ac_cv_prog_RANLIB+set}" = set; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 else
15310 if test -n "$RANLIB"; then
15311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15312 else
15313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15314 for as_dir in $PATH
15316 IFS=$as_save_IFS
15317 test -z "$as_dir" && as_dir=.
15318 for ac_exec_ext in '' $ac_executable_extensions; do
15319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15322 break 2
15324 done
15325 done
15329 RANLIB=$ac_cv_prog_RANLIB
15330 if test -n "$RANLIB"; then
15331 echo "$as_me:$LINENO: result: $RANLIB" >&5
15332 echo "${ECHO_T}$RANLIB" >&6
15333 else
15334 echo "$as_me:$LINENO: result: no" >&5
15335 echo "${ECHO_T}no" >&6
15339 if test -z "$ac_cv_prog_RANLIB"; then
15340 ac_ct_RANLIB=$RANLIB
15341 # Extract the first word of "ranlib", so it can be a program name with args.
15342 set dummy ranlib; ac_word=$2
15343 echo "$as_me:$LINENO: checking for $ac_word" >&5
15344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15345 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15347 else
15348 if test -n "$ac_ct_RANLIB"; then
15349 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15350 else
15351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15352 for as_dir in $PATH
15354 IFS=$as_save_IFS
15355 test -z "$as_dir" && as_dir=.
15356 for ac_exec_ext in '' $ac_executable_extensions; do
15357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15358 ac_cv_prog_ac_ct_RANLIB="ranlib"
15359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15360 break 2
15362 done
15363 done
15365 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15368 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15369 if test -n "$ac_ct_RANLIB"; then
15370 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15371 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15372 else
15373 echo "$as_me:$LINENO: result: no" >&5
15374 echo "${ECHO_T}no" >&6
15377 RANLIB=$ac_ct_RANLIB
15378 else
15379 RANLIB="$ac_cv_prog_RANLIB"
15382 test -z "$RANLIB" && RANLIB=:
15389 # Determine commands to create old-style static archives.
15390 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15391 old_postinstall_cmds='chmod 644 $oldlib'
15392 old_postuninstall_cmds=
15394 if test -n "$RANLIB"; then
15395 case $host_os in
15396 openbsd*)
15397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15402 esac
15403 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15439 # If no C compiler was specified, use CC.
15440 LTCC=${LTCC-"$CC"}
15442 # If no C compiler flags were specified, use CFLAGS.
15443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15445 # Allow CC to be a program name with arguments.
15446 compiler=$CC
15449 # Check for command to grab the raw symbol name followed by C symbol from nm.
15450 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15451 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15452 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15454 else
15456 # These are sane defaults that work on at least a few old systems.
15457 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15459 # Character class describing NM global symbol codes.
15460 symcode='[BCDEGRST]'
15462 # Regexp to match symbols that can be accessed directly from C.
15463 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15465 # Define system-specific variables.
15466 case $host_os in
15467 aix*)
15468 symcode='[BCDT]'
15470 cygwin* | mingw* | pw32*)
15471 symcode='[ABCDGISTW]'
15473 hpux*)
15474 if test "$host_cpu" = ia64; then
15475 symcode='[ABCDEGRST]'
15478 irix* | nonstopux*)
15479 symcode='[BCDEGRST]'
15481 osf*)
15482 symcode='[BCDEGQRST]'
15484 solaris*)
15485 symcode='[BDRT]'
15487 sco3.2v5*)
15488 symcode='[DT]'
15490 sysv4.2uw2*)
15491 symcode='[DT]'
15493 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15494 symcode='[ABDT]'
15496 sysv4)
15497 symcode='[DFNSTU]'
15499 esac
15501 # If we're using GNU nm, then use its standard symbol codes.
15502 case `$NM -V 2>&1` in
15503 *GNU* | *'with BFD'*)
15504 symcode='[ABCDGIRSTW]' ;;
15505 esac
15507 # Transform an extracted symbol line into a proper C declaration.
15508 # Some systems (esp. on ia64) link data and code symbols differently,
15509 # so use this general approach.
15510 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15512 # Transform an extracted symbol line into symbol name and symbol address
15513 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15515 # Handle CRLF in mingw tool chain
15516 opt_cr=
15517 case $build_os in
15518 mingw*)
15519 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15521 esac
15523 # Try without a prefix underscore, then with it.
15524 for ac_symprfx in "" "_"; do
15526 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15527 symxfrm="\\1 $ac_symprfx\\2 \\2"
15529 # Write the raw and C identifiers.
15530 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15531 # Fake it for dumpbin and say T for any non-static function
15532 # and D for any global variable.
15533 # Also find C++ and __fastcall symbols from MSVC++,
15534 # which start with @ or ?.
15535 lt_cv_sys_global_symbol_pipe="$AWK '"\
15536 " {last_section=section; section=\$ 3};"\
15537 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15538 " \$ 0!~/External *\|/{next};"\
15539 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15540 " {if(hide[section]) next};"\
15541 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15542 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15543 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15544 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15545 " ' prfx=^$ac_symprfx"
15546 else
15547 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15550 # Check to see that the pipe works correctly.
15551 pipe_works=no
15553 rm -f conftest*
15554 cat > conftest.$ac_ext <<_LT_EOF
15555 #ifdef __cplusplus
15556 extern "C" {
15557 #endif
15558 char nm_test_var;
15559 void nm_test_func(void);
15560 void nm_test_func(void){}
15561 #ifdef __cplusplus
15563 #endif
15564 int main(){nm_test_var='a';nm_test_func();return(0);}
15565 _LT_EOF
15567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15568 (eval $ac_compile) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; then
15572 # Now try to grab the symbols.
15573 nlist=conftest.nm
15574 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15575 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15576 ac_status=$?
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } && test -s "$nlist"; then
15579 # Try sorting and uniquifying the output.
15580 if sort "$nlist" | uniq > "$nlist"T; then
15581 mv -f "$nlist"T "$nlist"
15582 else
15583 rm -f "$nlist"T
15586 # Make sure that we snagged all the symbols we need.
15587 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15588 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15589 cat <<_LT_EOF > conftest.$ac_ext
15590 #ifdef __cplusplus
15591 extern "C" {
15592 #endif
15594 _LT_EOF
15595 # Now generate the symbol file.
15596 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15598 cat <<_LT_EOF >> conftest.$ac_ext
15600 /* The mapping between symbol names and symbols. */
15601 const struct {
15602 const char *name;
15603 void *address;
15605 lt__PROGRAM__LTX_preloaded_symbols[] =
15607 { "@PROGRAM@", (void *) 0 },
15608 _LT_EOF
15609 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15610 cat <<\_LT_EOF >> conftest.$ac_ext
15611 {0, (void *) 0}
15614 /* This works around a problem in FreeBSD linker */
15615 #ifdef FREEBSD_WORKAROUND
15616 static const void *lt_preloaded_setup() {
15617 return lt__PROGRAM__LTX_preloaded_symbols;
15619 #endif
15621 #ifdef __cplusplus
15623 #endif
15624 _LT_EOF
15625 # Now try linking the two files.
15626 mv conftest.$ac_objext conftstm.$ac_objext
15627 lt_save_LIBS="$LIBS"
15628 lt_save_CFLAGS="$CFLAGS"
15629 LIBS="conftstm.$ac_objext"
15630 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15632 (eval $ac_link) 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15636 pipe_works=yes
15638 LIBS="$lt_save_LIBS"
15639 CFLAGS="$lt_save_CFLAGS"
15640 else
15641 echo "cannot find nm_test_func in $nlist" >&5
15643 else
15644 echo "cannot find nm_test_var in $nlist" >&5
15646 else
15647 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15649 else
15650 echo "$progname: failed program was:" >&5
15651 cat conftest.$ac_ext >&5
15653 rm -f conftest* conftst*
15655 # Do not use the global_symbol_pipe unless it works.
15656 if test "$pipe_works" = yes; then
15657 break
15658 else
15659 lt_cv_sys_global_symbol_pipe=
15661 done
15665 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15666 lt_cv_sys_global_symbol_to_cdecl=
15668 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15669 echo "$as_me:$LINENO: result: failed" >&5
15670 echo "${ECHO_T}failed" >&6
15671 else
15672 echo "$as_me:$LINENO: result: ok" >&5
15673 echo "${ECHO_T}ok" >&6
15692 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15693 if test "${enable_libtool_lock+set}" = set; then
15694 enableval="$enable_libtool_lock"
15697 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15699 # Some flags need to be propagated to the compiler or linker for good
15700 # libtool support.
15701 case $host in
15702 ia64-*-hpux*)
15703 # Find out which ABI we are using.
15704 echo 'int i;' > conftest.$ac_ext
15705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15706 (eval $ac_compile) 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; then
15710 case `/usr/bin/file conftest.$ac_objext` in
15711 *ELF-32*)
15712 HPUX_IA64_MODE="32"
15714 *ELF-64*)
15715 HPUX_IA64_MODE="64"
15717 esac
15719 rm -rf conftest*
15721 *-*-irix6*)
15722 # Find out which ABI we are using.
15723 echo '#line 15723 "configure"' > conftest.$ac_ext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725 (eval $ac_compile) 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; then
15729 if test "$lt_cv_prog_gnu_ld" = yes; then
15730 case `/usr/bin/file conftest.$ac_objext` in
15731 *32-bit*)
15732 LD="${LD-ld} -melf32bsmip"
15734 *N32*)
15735 LD="${LD-ld} -melf32bmipn32"
15737 *64-bit*)
15738 LD="${LD-ld} -melf64bmip"
15740 esac
15741 else
15742 case `/usr/bin/file conftest.$ac_objext` in
15743 *32-bit*)
15744 LD="${LD-ld} -32"
15746 *N32*)
15747 LD="${LD-ld} -n32"
15749 *64-bit*)
15750 LD="${LD-ld} -64"
15752 esac
15755 rm -rf conftest*
15758 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15759 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15760 # Find out which ABI we are using.
15761 echo 'int i;' > conftest.$ac_ext
15762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15763 (eval $ac_compile) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; then
15767 case `/usr/bin/file conftest.o` in
15768 *32-bit*)
15769 case $host in
15770 x86_64-*kfreebsd*-gnu)
15771 LD="${LD-ld} -m elf_i386_fbsd"
15773 x86_64-*linux*)
15774 LD="${LD-ld} -m elf_i386"
15776 ppc64-*linux*|powerpc64-*linux*)
15777 LD="${LD-ld} -m elf32ppclinux"
15779 s390x-*linux*)
15780 LD="${LD-ld} -m elf_s390"
15782 sparc64-*linux*)
15783 LD="${LD-ld} -m elf32_sparc"
15785 esac
15787 *64-bit*)
15788 case $host in
15789 x86_64-*kfreebsd*-gnu)
15790 LD="${LD-ld} -m elf_x86_64_fbsd"
15792 x86_64-*linux*)
15793 LD="${LD-ld} -m elf_x86_64"
15795 ppc*-*linux*|powerpc*-*linux*)
15796 LD="${LD-ld} -m elf64ppc"
15798 s390*-*linux*|s390*-*tpf*)
15799 LD="${LD-ld} -m elf64_s390"
15801 sparc*-*linux*)
15802 LD="${LD-ld} -m elf64_sparc"
15804 esac
15806 esac
15808 rm -rf conftest*
15811 *-*-sco3.2v5*)
15812 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15813 SAVE_CFLAGS="$CFLAGS"
15814 CFLAGS="$CFLAGS -belf"
15815 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15816 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15817 if test "${lt_cv_cc_needs_belf+set}" = set; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15819 else
15820 ac_ext=c
15821 ac_cpp='$CPP $CPPFLAGS'
15822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h. */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15834 main ()
15838 return 0;
15840 _ACEOF
15841 rm -f conftest.$ac_objext conftest$ac_exeext
15842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15843 (eval $ac_link) 2>conftest.er1
15844 ac_status=$?
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
15850 { ac_try='test -z "$ac_c_werror_flag"
15851 || test ! -s conftest.err'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; } &&
15857 { ac_try='test -s conftest$ac_exeext'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; }; then
15863 lt_cv_cc_needs_belf=yes
15864 else
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 lt_cv_cc_needs_belf=no
15870 rm -f conftest.err conftest.$ac_objext \
15871 conftest$ac_exeext conftest.$ac_ext
15872 ac_ext=c
15873 ac_cpp='$CPP $CPPFLAGS'
15874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15879 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15880 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15881 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15882 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15883 CFLAGS="$SAVE_CFLAGS"
15886 sparc*-*solaris*)
15887 # Find out which ABI we are using.
15888 echo 'int i;' > conftest.$ac_ext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15890 (eval $ac_compile) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; then
15894 case `/usr/bin/file conftest.o` in
15895 *64-bit*)
15896 case $lt_cv_prog_gnu_ld in
15897 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15898 *) LD="${LD-ld} -64" ;;
15899 esac
15901 esac
15903 rm -rf conftest*
15905 esac
15907 need_locks="$enable_libtool_lock"
15910 for ac_header in dlfcn.h
15912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15913 echo "$as_me:$LINENO: checking for $ac_header" >&5
15914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15916 echo $ECHO_N "(cached) $ECHO_C" >&6
15917 else
15918 cat >conftest.$ac_ext <<_ACEOF
15919 /* confdefs.h. */
15920 _ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15924 #include <$ac_header>
15925 _ACEOF
15926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15928 ac_status=$?
15929 grep -v '^ *+' conftest.er1 >conftest.err
15930 rm -f conftest.er1
15931 cat conftest.err >&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } >/dev/null; then
15934 if test -s conftest.err; then
15935 ac_cpp_err=$ac_c_preproc_warn_flag
15936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15937 else
15938 ac_cpp_err=
15940 else
15941 ac_cpp_err=yes
15943 if test -z "$ac_cpp_err"; then
15944 eval "$as_ac_Header=yes"
15945 else
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 eval "$as_ac_Header=no"
15951 rm -f conftest.err conftest.$ac_ext
15953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15956 cat >>confdefs.h <<_ACEOF
15957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15958 _ACEOF
15961 done
15965 # This can be used to rebuild libtool when needed
15966 LIBTOOL_DEPS="$ltmain"
15968 # Always use our own libtool.
15969 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15995 test -z "$LN_S" && LN_S="ln -s"
16010 if test -n "${ZSH_VERSION+set}" ; then
16011 setopt NO_GLOB_SUBST
16014 echo "$as_me:$LINENO: checking for objdir" >&5
16015 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16016 if test "${lt_cv_objdir+set}" = set; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 else
16019 rm -f .libs 2>/dev/null
16020 mkdir .libs 2>/dev/null
16021 if test -d .libs; then
16022 lt_cv_objdir=.libs
16023 else
16024 # MS-DOS does not allow filenames that begin with a dot.
16025 lt_cv_objdir=_libs
16027 rmdir .libs 2>/dev/null
16029 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16030 echo "${ECHO_T}$lt_cv_objdir" >&6
16031 objdir=$lt_cv_objdir
16037 cat >>confdefs.h <<_ACEOF
16038 #define LT_OBJDIR "$lt_cv_objdir/"
16039 _ACEOF
16057 case $host_os in
16058 aix3*)
16059 # AIX sometimes has problems with the GCC collect2 program. For some
16060 # reason, if we set the COLLECT_NAMES environment variable, the problems
16061 # vanish in a puff of smoke.
16062 if test "X${COLLECT_NAMES+set}" != Xset; then
16063 COLLECT_NAMES=
16064 export COLLECT_NAMES
16067 esac
16069 # Sed substitution that helps us do robust quoting. It backslashifies
16070 # metacharacters that are still active within double-quoted strings.
16071 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16073 # Same as above, but do not quote variable references.
16074 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16076 # Sed substitution to delay expansion of an escaped shell variable in a
16077 # double_quote_subst'ed string.
16078 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16080 # Sed substitution to delay expansion of an escaped single quote.
16081 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16083 # Sed substitution to avoid accidental globbing in evaled expressions
16084 no_glob_subst='s/\*/\\\*/g'
16086 # Global variables:
16087 ofile=libtool
16088 can_build_shared=yes
16090 # All known linkers require a `.a' archive for static linking (except MSVC,
16091 # which needs '.lib').
16092 libext=a
16094 with_gnu_ld="$lt_cv_prog_gnu_ld"
16096 old_CC="$CC"
16097 old_CFLAGS="$CFLAGS"
16099 # Set sane defaults for various variables
16100 test -z "$CC" && CC=cc
16101 test -z "$LTCC" && LTCC=$CC
16102 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16103 test -z "$LD" && LD=ld
16104 test -z "$ac_objext" && ac_objext=o
16106 for cc_temp in $compiler""; do
16107 case $cc_temp in
16108 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16109 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16110 \-*) ;;
16111 *) break;;
16112 esac
16113 done
16114 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16117 # Only perform the check for file, if the check method requires it
16118 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16119 case $deplibs_check_method in
16120 file_magic*)
16121 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16122 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16123 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16124 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16126 else
16127 case $MAGIC_CMD in
16128 [\\/*] | ?:[\\/]*)
16129 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16132 lt_save_MAGIC_CMD="$MAGIC_CMD"
16133 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16134 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16135 for ac_dir in $ac_dummy; do
16136 IFS="$lt_save_ifs"
16137 test -z "$ac_dir" && ac_dir=.
16138 if test -f $ac_dir/${ac_tool_prefix}file; then
16139 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16140 if test -n "$file_magic_test_file"; then
16141 case $deplibs_check_method in
16142 "file_magic "*)
16143 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16144 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16145 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16146 $EGREP "$file_magic_regex" > /dev/null; then
16148 else
16149 cat <<_LT_EOF 1>&2
16151 *** Warning: the command libtool uses to detect shared libraries,
16152 *** $file_magic_cmd, produces output that libtool cannot recognize.
16153 *** The result is that libtool may fail to recognize shared libraries
16154 *** as such. This will affect the creation of libtool libraries that
16155 *** depend on shared libraries, but programs linked with such libtool
16156 *** libraries will work regardless of this problem. Nevertheless, you
16157 *** may want to report the problem to your system manager and/or to
16158 *** bug-libtool@gnu.org
16160 _LT_EOF
16161 fi ;;
16162 esac
16164 break
16166 done
16167 IFS="$lt_save_ifs"
16168 MAGIC_CMD="$lt_save_MAGIC_CMD"
16170 esac
16173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16174 if test -n "$MAGIC_CMD"; then
16175 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16176 echo "${ECHO_T}$MAGIC_CMD" >&6
16177 else
16178 echo "$as_me:$LINENO: result: no" >&5
16179 echo "${ECHO_T}no" >&6
16186 if test -z "$lt_cv_path_MAGIC_CMD"; then
16187 if test -n "$ac_tool_prefix"; then
16188 echo "$as_me:$LINENO: checking for file" >&5
16189 echo $ECHO_N "checking for file... $ECHO_C" >&6
16190 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193 case $MAGIC_CMD in
16194 [\\/*] | ?:[\\/]*)
16195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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/file; then
16205 lt_cv_path_MAGIC_CMD="$ac_dir/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
16214 else
16215 cat <<_LT_EOF 1>&2
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
16226 _LT_EOF
16227 fi ;;
16228 esac
16230 break
16232 done
16233 IFS="$lt_save_ifs"
16234 MAGIC_CMD="$lt_save_MAGIC_CMD"
16236 esac
16239 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16240 if test -n "$MAGIC_CMD"; then
16241 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16242 echo "${ECHO_T}$MAGIC_CMD" >&6
16243 else
16244 echo "$as_me:$LINENO: result: no" >&5
16245 echo "${ECHO_T}no" >&6
16249 else
16250 MAGIC_CMD=:
16256 esac
16258 # Use C for the default configuration in the libtool script
16260 lt_save_CC="$CC"
16261 ac_ext=c
16262 ac_cpp='$CPP $CPPFLAGS'
16263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16268 # Source file extension for C test sources.
16269 ac_ext=c
16271 # Object file extension for compiled C test sources.
16272 objext=o
16273 objext=$objext
16275 # Code to be used in simple compile tests
16276 lt_simple_compile_test_code="int some_variable = 0;"
16278 # Code to be used in simple link tests
16279 lt_simple_link_test_code='int main(){return(0);}'
16287 # If no C compiler was specified, use CC.
16288 LTCC=${LTCC-"$CC"}
16290 # If no C compiler flags were specified, use CFLAGS.
16291 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16293 # Allow CC to be a program name with arguments.
16294 compiler=$CC
16296 # Save the default compiler, since it gets overwritten when the other
16297 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16298 compiler_DEFAULT=$CC
16300 # save warnings/boilerplate of simple test code
16301 ac_outfile=conftest.$ac_objext
16302 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16303 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16304 _lt_compiler_boilerplate=`cat conftest.err`
16305 $RM conftest*
16307 ac_outfile=conftest.$ac_objext
16308 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16309 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16310 _lt_linker_boilerplate=`cat conftest.err`
16311 $RM conftest*
16314 ## CAVEAT EMPTOR:
16315 ## There is no encapsulation within the following macros, do not change
16316 ## the running order or otherwise move them around unless you know exactly
16317 ## what you are doing...
16318 if test -n "$compiler"; then
16320 lt_prog_compiler_no_builtin_flag=
16322 if test "$GCC" = yes; then
16323 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16325 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16326 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16327 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16329 else
16330 lt_cv_prog_compiler_rtti_exceptions=no
16331 ac_outfile=conftest.$ac_objext
16332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16333 lt_compiler_flag="-fno-rtti -fno-exceptions"
16334 # Insert the option either (1) after the last *FLAGS variable, or
16335 # (2) before a word containing "conftest.", or (3) at the end.
16336 # Note that $ac_compile itself does not contain backslashes and begins
16337 # with a dollar sign (not a hyphen), so the echo should work correctly.
16338 # The option is referenced via a variable to avoid confusing sed.
16339 lt_compile=`echo "$ac_compile" | $SED \
16340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16342 -e 's:$: $lt_compiler_flag:'`
16343 (eval echo "\"\$as_me:16343: $lt_compile\"" >&5)
16344 (eval "$lt_compile" 2>conftest.err)
16345 ac_status=$?
16346 cat conftest.err >&5
16347 echo "$as_me:16347: \$? = $ac_status" >&5
16348 if (exit $ac_status) && test -s "$ac_outfile"; then
16349 # The compiler can only warn and ignore the option if not recognized
16350 # So say no if there are warnings other than the usual output.
16351 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16353 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16354 lt_cv_prog_compiler_rtti_exceptions=yes
16357 $RM conftest*
16360 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16361 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16363 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16364 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16365 else
16376 lt_prog_compiler_wl=
16377 lt_prog_compiler_pic=
16378 lt_prog_compiler_static=
16380 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16381 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16383 if test "$GCC" = yes; then
16384 lt_prog_compiler_wl='-Wl,'
16385 lt_prog_compiler_static='-static'
16387 case $host_os in
16388 aix*)
16389 # All AIX code is PIC.
16390 if test "$host_cpu" = ia64; then
16391 # AIX 5 now supports IA64 processor
16392 lt_prog_compiler_static='-Bstatic'
16396 amigaos*)
16397 if test "$host_cpu" = m68k; then
16398 # FIXME: we need at least 68020 code to build shared libraries, but
16399 # adding the `-m68020' flag to GCC prevents building anything better,
16400 # like `-m68040'.
16401 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16405 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16406 # PIC is the default for these OSes.
16409 mingw* | cygwin* | pw32* | os2*)
16410 # This hack is so that the source file can tell whether it is being
16411 # built for inclusion in a dll (and should export symbols for example).
16412 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16413 # (--disable-auto-import) libraries
16414 lt_prog_compiler_pic='-DDLL_EXPORT'
16417 darwin* | rhapsody*)
16418 # PIC is the default on this platform
16419 # Common symbols not allowed in MH_DYLIB files
16420 lt_prog_compiler_pic='-fno-common'
16423 hpux*)
16424 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16425 # not for PA HP-UX.
16426 case $host_cpu in
16427 hppa*64*|ia64*)
16428 # +Z the default
16431 lt_prog_compiler_pic='-fPIC'
16433 esac
16436 interix[3-9]*)
16437 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16438 # Instead, we relocate shared libraries at runtime.
16441 msdosdjgpp*)
16442 # Just because we use GCC doesn't mean we suddenly get shared libraries
16443 # on systems that don't support them.
16444 lt_prog_compiler_can_build_shared=no
16445 enable_shared=no
16448 *nto* | *qnx*)
16449 # QNX uses GNU C++, but need to define -shared option too, otherwise
16450 # it will coredump.
16451 lt_prog_compiler_pic='-fPIC -shared'
16454 sysv4*MP*)
16455 if test -d /usr/nec; then
16456 lt_prog_compiler_pic=-Kconform_pic
16461 lt_prog_compiler_pic='-fPIC'
16463 esac
16464 else
16465 # PORTME Check for flag to pass linker flags through the system compiler.
16466 case $host_os in
16467 aix*)
16468 lt_prog_compiler_wl='-Wl,'
16469 if test "$host_cpu" = ia64; then
16470 # AIX 5 now supports IA64 processor
16471 lt_prog_compiler_static='-Bstatic'
16472 else
16473 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16476 darwin*)
16477 # PIC is the default on this platform
16478 # Common symbols not allowed in MH_DYLIB files
16479 case $cc_basename in
16480 xlc*)
16481 lt_prog_compiler_pic='-qnocommon'
16482 lt_prog_compiler_wl='-Wl,'
16484 esac
16487 mingw* | cygwin* | pw32* | os2*)
16488 # This hack is so that the source file can tell whether it is being
16489 # built for inclusion in a dll (and should export symbols for example).
16490 lt_prog_compiler_pic='-DDLL_EXPORT'
16493 hpux9* | hpux10* | hpux11*)
16494 lt_prog_compiler_wl='-Wl,'
16495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16496 # not for PA HP-UX.
16497 case $host_cpu in
16498 hppa*64*|ia64*)
16499 # +Z the default
16502 lt_prog_compiler_pic='+Z'
16504 esac
16505 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16506 lt_prog_compiler_static='${wl}-a ${wl}archive'
16509 irix5* | irix6* | nonstopux*)
16510 lt_prog_compiler_wl='-Wl,'
16511 # PIC (with -KPIC) is the default.
16512 lt_prog_compiler_static='-non_shared'
16515 linux* | k*bsd*-gnu)
16516 case $cc_basename in
16517 icc* | ecc*)
16518 lt_prog_compiler_wl='-Wl,'
16519 lt_prog_compiler_pic='-KPIC'
16520 lt_prog_compiler_static='-static'
16522 pgcc* | pgf77* | pgf90* | pgf95*)
16523 # Portland Group compilers (*not* the Pentium gcc compiler,
16524 # which looks to be a dead project)
16525 lt_prog_compiler_wl='-Wl,'
16526 lt_prog_compiler_pic='-fpic'
16527 lt_prog_compiler_static='-Bstatic'
16529 ccc*)
16530 lt_prog_compiler_wl='-Wl,'
16531 # All Alpha code is PIC.
16532 lt_prog_compiler_static='-non_shared'
16535 case `$CC -V 2>&1 | sed 5q` in
16536 *Sun\ C*)
16537 # Sun C 5.9
16538 lt_prog_compiler_pic='-KPIC'
16539 lt_prog_compiler_static='-Bstatic'
16540 lt_prog_compiler_wl='-Wl,'
16542 *Sun\ F*)
16543 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16544 lt_prog_compiler_pic='-KPIC'
16545 lt_prog_compiler_static='-Bstatic'
16546 lt_prog_compiler_wl=''
16548 esac
16550 esac
16553 newsos6)
16554 lt_prog_compiler_pic='-KPIC'
16555 lt_prog_compiler_static='-Bstatic'
16558 *nto* | *qnx*)
16559 # QNX uses GNU C++, but need to define -shared option too, otherwise
16560 # it will coredump.
16561 lt_prog_compiler_pic='-fPIC -shared'
16564 osf3* | osf4* | osf5*)
16565 lt_prog_compiler_wl='-Wl,'
16566 # All OSF/1 code is PIC.
16567 lt_prog_compiler_static='-non_shared'
16570 rdos*)
16571 lt_prog_compiler_static='-non_shared'
16574 solaris*)
16575 lt_prog_compiler_pic='-KPIC'
16576 lt_prog_compiler_static='-Bstatic'
16577 case $cc_basename in
16578 f77* | f90* | f95*)
16579 lt_prog_compiler_wl='-Qoption ld ';;
16581 lt_prog_compiler_wl='-Wl,';;
16582 esac
16585 sunos4*)
16586 lt_prog_compiler_wl='-Qoption ld '
16587 lt_prog_compiler_pic='-PIC'
16588 lt_prog_compiler_static='-Bstatic'
16591 sysv4 | sysv4.2uw2* | sysv4.3*)
16592 lt_prog_compiler_wl='-Wl,'
16593 lt_prog_compiler_pic='-KPIC'
16594 lt_prog_compiler_static='-Bstatic'
16597 sysv4*MP*)
16598 if test -d /usr/nec ;then
16599 lt_prog_compiler_pic='-Kconform_pic'
16600 lt_prog_compiler_static='-Bstatic'
16604 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16605 lt_prog_compiler_wl='-Wl,'
16606 lt_prog_compiler_pic='-KPIC'
16607 lt_prog_compiler_static='-Bstatic'
16610 unicos*)
16611 lt_prog_compiler_wl='-Wl,'
16612 lt_prog_compiler_can_build_shared=no
16615 uts4*)
16616 lt_prog_compiler_pic='-pic'
16617 lt_prog_compiler_static='-Bstatic'
16621 lt_prog_compiler_can_build_shared=no
16623 esac
16626 case $host_os in
16627 # For platforms which do not support PIC, -DPIC is meaningless:
16628 *djgpp*)
16629 lt_prog_compiler_pic=
16632 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16634 esac
16635 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16636 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16644 # Check to make sure the PIC flag actually works.
16646 if test -n "$lt_prog_compiler_pic"; then
16647 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16648 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16649 if test "${lt_prog_compiler_pic_works+set}" = set; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 else
16652 lt_prog_compiler_pic_works=no
16653 ac_outfile=conftest.$ac_objext
16654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16655 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16656 # Insert the option either (1) after the last *FLAGS variable, or
16657 # (2) before a word containing "conftest.", or (3) at the end.
16658 # Note that $ac_compile itself does not contain backslashes and begins
16659 # with a dollar sign (not a hyphen), so the echo should work correctly.
16660 # The option is referenced via a variable to avoid confusing sed.
16661 lt_compile=`echo "$ac_compile" | $SED \
16662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16664 -e 's:$: $lt_compiler_flag:'`
16665 (eval echo "\"\$as_me:16665: $lt_compile\"" >&5)
16666 (eval "$lt_compile" 2>conftest.err)
16667 ac_status=$?
16668 cat conftest.err >&5
16669 echo "$as_me:16669: \$? = $ac_status" >&5
16670 if (exit $ac_status) && test -s "$ac_outfile"; then
16671 # The compiler can only warn and ignore the option if not recognized
16672 # So say no if there are warnings other than the usual output.
16673 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16675 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16676 lt_prog_compiler_pic_works=yes
16679 $RM conftest*
16682 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16683 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16685 if test x"$lt_prog_compiler_pic_works" = xyes; then
16686 case $lt_prog_compiler_pic in
16687 "" | " "*) ;;
16688 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16689 esac
16690 else
16691 lt_prog_compiler_pic=
16692 lt_prog_compiler_can_build_shared=no
16703 # Check to make sure the static flag actually works.
16705 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16706 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16707 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16708 if test "${lt_prog_compiler_static_works+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16710 else
16711 lt_prog_compiler_static_works=no
16712 save_LDFLAGS="$LDFLAGS"
16713 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16714 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16715 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16716 # The linker can only warn and ignore the option if not recognized
16717 # So say no if there are warnings
16718 if test -s conftest.err; then
16719 # Append any errors to the config.log.
16720 cat conftest.err 1>&5
16721 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16723 if diff conftest.exp conftest.er2 >/dev/null; then
16724 lt_prog_compiler_static_works=yes
16726 else
16727 lt_prog_compiler_static_works=yes
16730 $RM conftest*
16731 LDFLAGS="$save_LDFLAGS"
16734 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16735 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16737 if test x"$lt_prog_compiler_static_works" = xyes; then
16739 else
16740 lt_prog_compiler_static=
16749 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16750 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16751 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 else
16754 lt_cv_prog_compiler_c_o=no
16755 $RM -r conftest 2>/dev/null
16756 mkdir conftest
16757 cd conftest
16758 mkdir out
16759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16761 lt_compiler_flag="-o out/conftest2.$ac_objext"
16762 # Insert the option either (1) after the last *FLAGS variable, or
16763 # (2) before a word containing "conftest.", or (3) at the end.
16764 # Note that $ac_compile itself does not contain backslashes and begins
16765 # with a dollar sign (not a hyphen), so the echo should work correctly.
16766 lt_compile=`echo "$ac_compile" | $SED \
16767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16769 -e 's:$: $lt_compiler_flag:'`
16770 (eval echo "\"\$as_me:16770: $lt_compile\"" >&5)
16771 (eval "$lt_compile" 2>out/conftest.err)
16772 ac_status=$?
16773 cat out/conftest.err >&5
16774 echo "$as_me:16774: \$? = $ac_status" >&5
16775 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16776 then
16777 # The compiler can only warn and ignore the option if not recognized
16778 # So say no if there are warnings
16779 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16780 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16781 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16782 lt_cv_prog_compiler_c_o=yes
16785 chmod u+w . 2>&5
16786 $RM conftest*
16787 # SGI C++ compiler will create directory out/ii_files/ for
16788 # template instantiation
16789 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16790 $RM out/* && rmdir out
16791 cd ..
16792 $RM -r conftest
16793 $RM conftest*
16796 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16797 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16804 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16805 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16806 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16808 else
16809 lt_cv_prog_compiler_c_o=no
16810 $RM -r conftest 2>/dev/null
16811 mkdir conftest
16812 cd conftest
16813 mkdir out
16814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16816 lt_compiler_flag="-o out/conftest2.$ac_objext"
16817 # Insert the option either (1) after the last *FLAGS variable, or
16818 # (2) before a word containing "conftest.", or (3) at the end.
16819 # Note that $ac_compile itself does not contain backslashes and begins
16820 # with a dollar sign (not a hyphen), so the echo should work correctly.
16821 lt_compile=`echo "$ac_compile" | $SED \
16822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16824 -e 's:$: $lt_compiler_flag:'`
16825 (eval echo "\"\$as_me:16825: $lt_compile\"" >&5)
16826 (eval "$lt_compile" 2>out/conftest.err)
16827 ac_status=$?
16828 cat out/conftest.err >&5
16829 echo "$as_me:16829: \$? = $ac_status" >&5
16830 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16831 then
16832 # The compiler can only warn and ignore the option if not recognized
16833 # So say no if there are warnings
16834 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16835 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16836 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16837 lt_cv_prog_compiler_c_o=yes
16840 chmod u+w . 2>&5
16841 $RM conftest*
16842 # SGI C++ compiler will create directory out/ii_files/ for
16843 # template instantiation
16844 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16845 $RM out/* && rmdir out
16846 cd ..
16847 $RM -r conftest
16848 $RM conftest*
16851 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16852 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16857 hard_links="nottested"
16858 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16859 # do not overwrite the value of need_locks provided by the user
16860 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16861 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16862 hard_links=yes
16863 $RM conftest*
16864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16865 touch conftest.a
16866 ln conftest.a conftest.b 2>&5 || hard_links=no
16867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16868 echo "$as_me:$LINENO: result: $hard_links" >&5
16869 echo "${ECHO_T}$hard_links" >&6
16870 if test "$hard_links" = no; then
16871 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16872 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16873 need_locks=warn
16875 else
16876 need_locks=no
16884 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16885 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16887 runpath_var=
16888 allow_undefined_flag=
16889 always_export_symbols=no
16890 archive_cmds=
16891 archive_expsym_cmds=
16892 compiler_needs_object=no
16893 enable_shared_with_static_runtimes=no
16894 export_dynamic_flag_spec=
16895 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16896 hardcode_automatic=no
16897 hardcode_direct=no
16898 hardcode_direct_absolute=no
16899 hardcode_libdir_flag_spec=
16900 hardcode_libdir_flag_spec_ld=
16901 hardcode_libdir_separator=
16902 hardcode_minus_L=no
16903 hardcode_shlibpath_var=unsupported
16904 inherit_rpath=no
16905 link_all_deplibs=unknown
16906 module_cmds=
16907 module_expsym_cmds=
16908 old_archive_from_new_cmds=
16909 old_archive_from_expsyms_cmds=
16910 thread_safe_flag_spec=
16911 whole_archive_flag_spec=
16912 # include_expsyms should be a list of space-separated symbols to be *always*
16913 # included in the symbol list
16914 include_expsyms=
16915 # exclude_expsyms can be an extended regexp of symbols to exclude
16916 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16917 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16918 # as well as any symbol that contains `d'.
16919 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16921 # platforms (ab)use it in PIC code, but their linkers get confused if
16922 # the symbol is explicitly referenced. Since portable code cannot
16923 # rely on this symbol name, it's probably fine to never include it in
16924 # preloaded symbol tables.
16925 extract_expsyms_cmds=
16927 case $host_os in
16928 cygwin* | mingw* | pw32*)
16929 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16930 # When not using gcc, we currently assume that we are using
16931 # Microsoft Visual C++.
16932 if test "$GCC" != yes; then
16933 with_gnu_ld=no
16936 interix*)
16937 # we just hope/assume this is gcc and not c89 (= MSVC++)
16938 with_gnu_ld=yes
16940 openbsd*)
16941 with_gnu_ld=no
16943 esac
16945 ld_shlibs=yes
16946 if test "$with_gnu_ld" = yes; then
16947 # If archive_cmds runs LD, not CC, wlarc should be empty
16948 wlarc='${wl}'
16950 # Set some defaults for GNU ld with shared library support. These
16951 # are reset later if shared libraries are not supported. Putting them
16952 # here allows them to be overridden if necessary.
16953 runpath_var=LD_RUN_PATH
16954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16955 export_dynamic_flag_spec='${wl}--export-dynamic'
16956 # ancient GNU ld didn't support --whole-archive et. al.
16957 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16958 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16959 else
16960 whole_archive_flag_spec=
16962 supports_anon_versioning=no
16963 case `$LD -v 2>&1` in
16964 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16965 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16966 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16967 *\ 2.11.*) ;; # other 2.11 versions
16968 *) supports_anon_versioning=yes ;;
16969 esac
16971 # See if GNU ld supports shared libraries.
16972 case $host_os in
16973 aix[3-9]*)
16974 # On AIX/PPC, the GNU linker is very broken
16975 if test "$host_cpu" != ia64; then
16976 ld_shlibs=no
16977 cat <<_LT_EOF 1>&2
16979 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16980 *** to be unable to reliably create shared libraries on AIX.
16981 *** Therefore, libtool is disabling shared libraries support. If you
16982 *** really care for shared libraries, you may want to modify your PATH
16983 *** so that a non-GNU linker is found, and then restart.
16985 _LT_EOF
16989 amigaos*)
16990 if test "$host_cpu" = m68k; then
16991 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)'
16992 hardcode_libdir_flag_spec='-L$libdir'
16993 hardcode_minus_L=yes
16996 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16997 # that the semantics of dynamic libraries on AmigaOS, at least up
16998 # to version 4, is to share data among multiple programs linked
16999 # with the same dynamic library. Since this doesn't match the
17000 # behavior of shared libraries on other platforms, we can't use
17001 # them.
17002 ld_shlibs=no
17005 beos*)
17006 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17007 allow_undefined_flag=unsupported
17008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17009 # support --undefined. This deserves some investigation. FIXME
17010 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17011 else
17012 ld_shlibs=no
17016 cygwin* | mingw* | pw32*)
17017 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17018 # as there is no search path for DLLs.
17019 hardcode_libdir_flag_spec='-L$libdir'
17020 allow_undefined_flag=unsupported
17021 always_export_symbols=no
17022 enable_shared_with_static_runtimes=yes
17023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17025 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17027 # If the export-symbols file already is a .def file (1st line
17028 # is EXPORTS), use it as is; otherwise, prepend...
17029 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17030 cp $export_symbols $output_objdir/$soname.def;
17031 else
17032 echo EXPORTS > $output_objdir/$soname.def;
17033 cat $export_symbols >> $output_objdir/$soname.def;
17035 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17036 else
17037 ld_shlibs=no
17041 interix[3-9]*)
17042 hardcode_direct=no
17043 hardcode_shlibpath_var=no
17044 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17045 export_dynamic_flag_spec='${wl}-E'
17046 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17047 # Instead, shared libraries are loaded at an image base (0x10000000 by
17048 # default) and relocated if they conflict, which is a slow very memory
17049 # consuming and fragmenting process. To avoid this, we pick a random,
17050 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17051 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17052 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17053 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'
17056 gnu* | linux* | tpf* | k*bsd*-gnu)
17057 tmp_diet=no
17058 if test "$host_os" = linux-dietlibc; then
17059 case $cc_basename in
17060 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17061 esac
17063 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17064 && test "$tmp_diet" = no
17065 then
17066 tmp_addflag=
17067 case $cc_basename,$host_cpu in
17068 pgcc*) # Portland Group C compiler
17069 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'
17070 tmp_addflag=' $pic_flag'
17072 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17073 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'
17074 tmp_addflag=' $pic_flag -Mnomain' ;;
17075 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17076 tmp_addflag=' -i_dynamic' ;;
17077 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17078 tmp_addflag=' -i_dynamic -nofor_main' ;;
17079 ifc* | ifort*) # Intel Fortran compiler
17080 tmp_addflag=' -nofor_main' ;;
17081 esac
17082 case `$CC -V 2>&1 | sed 5q` in
17083 *Sun\ C*) # Sun C 5.9
17084 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'
17085 compiler_needs_object=yes
17086 tmp_sharedflag='-G' ;;
17087 *Sun\ F*) # Sun Fortran 8.3
17088 tmp_sharedflag='-G' ;;
17090 tmp_sharedflag='-shared' ;;
17091 esac
17092 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17094 if test "x$supports_anon_versioning" = xyes; then
17095 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17096 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17097 echo "local: *; };" >> $output_objdir/$libname.ver~
17098 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17100 else
17101 ld_shlibs=no
17105 netbsd*)
17106 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17107 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17108 wlarc=
17109 else
17110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17111 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17115 solaris*)
17116 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17117 ld_shlibs=no
17118 cat <<_LT_EOF 1>&2
17120 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17121 *** create shared libraries on Solaris systems. Therefore, libtool
17122 *** is disabling shared libraries support. We urge you to upgrade GNU
17123 *** binutils to release 2.9.1 or newer. Another option is to modify
17124 *** your PATH or compiler configuration so that the native linker is
17125 *** used, and then restart.
17127 _LT_EOF
17128 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17130 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17131 else
17132 ld_shlibs=no
17136 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17137 case `$LD -v 2>&1` in
17138 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17139 ld_shlibs=no
17140 cat <<_LT_EOF 1>&2
17142 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17143 *** reliably create shared libraries on SCO systems. Therefore, libtool
17144 *** is disabling shared libraries support. We urge you to upgrade GNU
17145 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17146 *** your PATH or compiler configuration so that the native linker is
17147 *** used, and then restart.
17149 _LT_EOF
17152 # For security reasons, it is highly recommended that you always
17153 # use absolute paths for naming shared libraries, and exclude the
17154 # DT_RUNPATH tag from executables and libraries. But doing so
17155 # requires that you compile everything twice, which is a pain.
17156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17157 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17160 else
17161 ld_shlibs=no
17164 esac
17167 sunos4*)
17168 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17169 wlarc=
17170 hardcode_direct=yes
17171 hardcode_shlibpath_var=no
17175 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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 else
17179 ld_shlibs=no
17182 esac
17184 if test "$ld_shlibs" = no; then
17185 runpath_var=
17186 hardcode_libdir_flag_spec=
17187 export_dynamic_flag_spec=
17188 whole_archive_flag_spec=
17190 else
17191 # PORTME fill in a description of your system's linker (not GNU ld)
17192 case $host_os in
17193 aix3*)
17194 allow_undefined_flag=unsupported
17195 always_export_symbols=yes
17196 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'
17197 # Note: this linker hardcodes the directories in LIBPATH if there
17198 # are no directories specified by -L.
17199 hardcode_minus_L=yes
17200 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17201 # Neither direct hardcoding nor static linking is supported with a
17202 # broken collect2.
17203 hardcode_direct=unsupported
17207 aix[4-9]*)
17208 if test "$host_cpu" = ia64; then
17209 # On IA64, the linker does run time linking by default, so we don't
17210 # have to do anything special.
17211 aix_use_runtimelinking=no
17212 exp_sym_flag='-Bexport'
17213 no_entry_flag=""
17214 else
17215 # If we're using GNU nm, then we don't want the "-C" option.
17216 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17217 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17218 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'
17219 else
17220 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'
17222 aix_use_runtimelinking=no
17224 # Test if we are trying to use run time linking or normal
17225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17226 # need to do runtime linking.
17227 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17228 for ld_flag in $LDFLAGS; do
17229 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17230 aix_use_runtimelinking=yes
17231 break
17233 done
17235 esac
17237 exp_sym_flag='-bexport'
17238 no_entry_flag='-bnoentry'
17241 # When large executables or shared objects are built, AIX ld can
17242 # have problems creating the table of contents. If linking a library
17243 # or program results in "error TOC overflow" add -mminimal-toc to
17244 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17245 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17247 archive_cmds=''
17248 hardcode_direct=yes
17249 hardcode_direct_absolute=yes
17250 hardcode_libdir_separator=':'
17251 link_all_deplibs=yes
17252 file_list_spec='${wl}-f,'
17254 if test "$GCC" = yes; then
17255 case $host_os in aix4.[012]|aix4.[012].*)
17256 # We only want to do this on AIX 4.2 and lower, the check
17257 # below for broken collect2 doesn't work under 4.3+
17258 collect2name=`${CC} -print-prog-name=collect2`
17259 if test -f "$collect2name" &&
17260 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17261 then
17262 # We have reworked collect2
17264 else
17265 # We have old collect2
17266 hardcode_direct=unsupported
17267 # It fails to find uninstalled libraries when the uninstalled
17268 # path is not listed in the libpath. Setting hardcode_minus_L
17269 # to unsupported forces relinking
17270 hardcode_minus_L=yes
17271 hardcode_libdir_flag_spec='-L$libdir'
17272 hardcode_libdir_separator=
17275 esac
17276 shared_flag='-shared'
17277 if test "$aix_use_runtimelinking" = yes; then
17278 shared_flag="$shared_flag "'${wl}-G'
17280 else
17281 # not using gcc
17282 if test "$host_cpu" = ia64; then
17283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17284 # chokes on -Wl,-G. The following line is correct:
17285 shared_flag='-G'
17286 else
17287 if test "$aix_use_runtimelinking" = yes; then
17288 shared_flag='${wl}-G'
17289 else
17290 shared_flag='${wl}-bM:SRE'
17295 # It seems that -bexpall does not export symbols beginning with
17296 # underscore (_), so it is better to generate a list of symbols to export.
17297 always_export_symbols=yes
17298 if test "$aix_use_runtimelinking" = yes; then
17299 # Warning - without using the other runtime loading flags (-brtl),
17300 # -berok will link without error, but may produce a broken library.
17301 allow_undefined_flag='-berok'
17302 # Determine the default libpath from the value encoded in an
17303 # empty executable.
17304 cat >conftest.$ac_ext <<_ACEOF
17305 /* confdefs.h. */
17306 _ACEOF
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h. */
17312 main ()
17316 return 0;
17318 _ACEOF
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321 (eval $ac_link) 2>conftest.er1
17322 ac_status=$?
17323 grep -v '^ *+' conftest.er1 >conftest.err
17324 rm -f conftest.er1
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
17328 { ac_try='test -z "$ac_c_werror_flag"
17329 || test ! -s conftest.err'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; } &&
17335 { ac_try='test -s conftest$ac_exeext'
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17342 lt_aix_libpath_sed='
17343 /Import File Strings/,/^$/ {
17344 /^0/ {
17345 s/^0 *\(.*\)$/\1/
17349 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17350 # Check for a 64-bit object if we didn't find anything.
17351 if test -z "$aix_libpath"; then
17352 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17354 else
17355 echo "$as_me: failed program was:" >&5
17356 sed 's/^/| /' conftest.$ac_ext >&5
17359 rm -f conftest.err conftest.$ac_objext \
17360 conftest$ac_exeext conftest.$ac_ext
17361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17363 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17364 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"
17365 else
17366 if test "$host_cpu" = ia64; then
17367 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17368 allow_undefined_flag="-z nodefs"
17369 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"
17370 else
17371 # Determine the default libpath from the value encoded in an
17372 # empty executable.
17373 cat >conftest.$ac_ext <<_ACEOF
17374 /* confdefs.h. */
17375 _ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17381 main ()
17385 return 0;
17387 _ACEOF
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17390 (eval $ac_link) 2>conftest.er1
17391 ac_status=$?
17392 grep -v '^ *+' conftest.er1 >conftest.err
17393 rm -f conftest.er1
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_c_werror_flag"
17398 || test ! -s conftest.err'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest$ac_exeext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17411 lt_aix_libpath_sed='
17412 /Import File Strings/,/^$/ {
17413 /^0/ {
17414 s/^0 *\(.*\)$/\1/
17418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17419 # Check for a 64-bit object if we didn't find anything.
17420 if test -z "$aix_libpath"; then
17421 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17423 else
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17428 rm -f conftest.err conftest.$ac_objext \
17429 conftest$ac_exeext conftest.$ac_ext
17430 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17432 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17433 # Warning - without using the other run time loading flags,
17434 # -berok will link without error, but may produce a broken library.
17435 no_undefined_flag=' ${wl}-bernotok'
17436 allow_undefined_flag=' ${wl}-berok'
17437 # Exported symbols can be pulled into shared objects from archives
17438 whole_archive_flag_spec='$convenience'
17439 archive_cmds_need_lc=yes
17440 # This is similar to how AIX traditionally builds its shared libraries.
17441 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'
17446 amigaos*)
17447 if test "$host_cpu" = m68k; then
17448 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)'
17449 hardcode_libdir_flag_spec='-L$libdir'
17450 hardcode_minus_L=yes
17452 # see comment about different semantics on the GNU ld section
17453 ld_shlibs=no
17456 bsdi[45]*)
17457 export_dynamic_flag_spec=-rdynamic
17460 cygwin* | mingw* | pw32*)
17461 # When not using gcc, we currently assume that we are using
17462 # Microsoft Visual C++.
17463 # hardcode_libdir_flag_spec is actually meaningless, as there is
17464 # no search path for DLLs.
17465 hardcode_libdir_flag_spec=' '
17466 allow_undefined_flag=unsupported
17467 # Tell ltmain to make .lib files, not .a files.
17468 libext=lib
17469 # Tell ltmain to make .dll files, not .so files.
17470 shrext_cmds=".dll"
17471 # FIXME: Setting linknames here is a bad hack.
17472 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17473 # The linker will automatically build a .lib file if we build a DLL.
17474 old_archive_from_new_cmds='true'
17475 # FIXME: Should let the user specify the lib program.
17476 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17477 fix_srcfile_path='`cygpath -w "$srcfile"`'
17478 enable_shared_with_static_runtimes=yes
17481 darwin* | rhapsody*)
17482 case $host_os in
17483 rhapsody* | darwin1.[012])
17484 allow_undefined_flag='${wl}-undefined ${wl}suppress'
17486 *) # Darwin 1.3 on
17487 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17488 10.[012])
17489 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17491 10.*)
17492 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
17494 esac
17496 esac
17497 archive_cmds_need_lc=no
17498 hardcode_direct=no
17499 hardcode_automatic=yes
17500 hardcode_shlibpath_var=unsupported
17501 whole_archive_flag_spec=''
17502 link_all_deplibs=yes
17503 if test "$GCC" = yes ; then
17504 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
17506 else
17507 lt_cv_apple_cc_single_mod=no
17508 if test -z "${LT_MULTI_MODULE}"; then
17509 # By default we will add the -single_module flag. You can override
17510 # by either setting the environment variable LT_MULTI_MODULE
17511 # non-empty at configure time, or by adding -multi-module to the
17512 # link flags.
17513 echo "int foo(void){return 1;}" > conftest.c
17514 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17515 -dynamiclib ${wl}-single_module conftest.c
17516 if test -f libconftest.dylib; then
17517 lt_cv_apple_cc_single_mod=yes
17518 rm libconftest.dylib
17520 rm conftest.$ac_ext
17524 output_verbose_link_cmd=echo
17525 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
17526 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17527 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}'
17528 else
17529 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17530 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}'
17532 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17533 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}'
17534 else
17535 case $cc_basename in
17536 xlc*)
17537 output_verbose_link_cmd=echo
17538 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17539 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17540 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17541 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}'
17542 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}'
17545 ld_shlibs=no
17547 esac
17551 dgux*)
17552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17553 hardcode_libdir_flag_spec='-L$libdir'
17554 hardcode_shlibpath_var=no
17557 freebsd1*)
17558 ld_shlibs=no
17561 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17562 # support. Future versions do this automatically, but an explicit c++rt0.o
17563 # does not break anything, and helps significantly (at the cost of a little
17564 # extra space).
17565 freebsd2.2*)
17566 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17567 hardcode_libdir_flag_spec='-R$libdir'
17568 hardcode_direct=yes
17569 hardcode_shlibpath_var=no
17572 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17573 freebsd2*)
17574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17575 hardcode_direct=yes
17576 hardcode_minus_L=yes
17577 hardcode_shlibpath_var=no
17580 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17581 freebsd* | dragonfly*)
17582 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17583 hardcode_libdir_flag_spec='-R$libdir'
17584 hardcode_direct=yes
17585 hardcode_shlibpath_var=no
17588 hpux9*)
17589 if test "$GCC" = yes; then
17590 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'
17591 else
17592 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'
17594 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17595 hardcode_libdir_separator=:
17596 hardcode_direct=yes
17598 # hardcode_minus_L: Not really in the search PATH,
17599 # but as the default location of the library.
17600 hardcode_minus_L=yes
17601 export_dynamic_flag_spec='${wl}-E'
17604 hpux10*)
17605 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17606 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17607 else
17608 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17610 if test "$with_gnu_ld" = no; then
17611 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17612 hardcode_libdir_flag_spec_ld='+b $libdir'
17613 hardcode_libdir_separator=:
17614 hardcode_direct=yes
17615 hardcode_direct_absolute=yes
17616 export_dynamic_flag_spec='${wl}-E'
17617 # hardcode_minus_L: Not really in the search PATH,
17618 # but as the default location of the library.
17619 hardcode_minus_L=yes
17623 hpux11*)
17624 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17625 case $host_cpu in
17626 hppa*64*)
17627 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17629 ia64*)
17630 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17633 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17635 esac
17636 else
17637 case $host_cpu in
17638 hppa*64*)
17639 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17641 ia64*)
17642 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17645 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17647 esac
17649 if test "$with_gnu_ld" = no; then
17650 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17651 hardcode_libdir_separator=:
17653 case $host_cpu in
17654 hppa*64*|ia64*)
17655 hardcode_direct=no
17656 hardcode_shlibpath_var=no
17659 hardcode_direct=yes
17660 hardcode_direct_absolute=yes
17661 export_dynamic_flag_spec='${wl}-E'
17663 # hardcode_minus_L: Not really in the search PATH,
17664 # but as the default location of the library.
17665 hardcode_minus_L=yes
17667 esac
17671 irix5* | irix6* | nonstopux*)
17672 if test "$GCC" = yes; then
17673 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'
17674 # Try to use the -exported_symbol ld option, if it does not
17675 # work, assume that -exports_file does not work either and
17676 # implicitly export all symbols.
17677 save_LDFLAGS="$LDFLAGS"
17678 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17679 cat >conftest.$ac_ext <<_ACEOF
17680 int foo(void) {}
17681 _ACEOF
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684 (eval $ac_link) 2>conftest.er1
17685 ac_status=$?
17686 grep -v '^ *+' conftest.er1 >conftest.err
17687 rm -f conftest.er1
17688 cat conftest.err >&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } &&
17691 { ac_try='test -z "$ac_c_werror_flag"
17692 || test ! -s conftest.err'
17693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; } &&
17698 { ac_try='test -s conftest$ac_exeext'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; }; then
17704 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'
17706 else
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17711 rm -f conftest.err conftest.$ac_objext \
17712 conftest$ac_exeext conftest.$ac_ext
17713 LDFLAGS="$save_LDFLAGS"
17714 else
17715 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'
17716 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'
17718 archive_cmds_need_lc='no'
17719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17720 hardcode_libdir_separator=:
17721 inherit_rpath=yes
17722 link_all_deplibs=yes
17725 netbsd*)
17726 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17728 else
17729 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17731 hardcode_libdir_flag_spec='-R$libdir'
17732 hardcode_direct=yes
17733 hardcode_shlibpath_var=no
17736 newsos6)
17737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17738 hardcode_direct=yes
17739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17740 hardcode_libdir_separator=:
17741 hardcode_shlibpath_var=no
17744 *nto* | *qnx*)
17747 openbsd*)
17748 hardcode_direct=yes
17749 hardcode_shlibpath_var=no
17750 hardcode_direct_absolute=yes
17751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17752 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17753 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17754 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17755 export_dynamic_flag_spec='${wl}-E'
17756 else
17757 case $host_os in
17758 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17760 hardcode_libdir_flag_spec='-R$libdir'
17763 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17764 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17766 esac
17770 os2*)
17771 hardcode_libdir_flag_spec='-L$libdir'
17772 hardcode_minus_L=yes
17773 allow_undefined_flag=unsupported
17774 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'
17775 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17778 osf3*)
17779 if test "$GCC" = yes; then
17780 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17781 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'
17782 else
17783 allow_undefined_flag=' -expect_unresolved \*'
17784 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'
17786 archive_cmds_need_lc='no'
17787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17788 hardcode_libdir_separator=:
17791 osf4* | osf5*) # as osf3* with the addition of -msym flag
17792 if test "$GCC" = yes; then
17793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17794 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'
17795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17796 else
17797 allow_undefined_flag=' -expect_unresolved \*'
17798 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'
17799 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~
17800 $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'
17802 # Both c and cxx compiler support -rpath directly
17803 hardcode_libdir_flag_spec='-rpath $libdir'
17805 archive_cmds_need_lc='no'
17806 hardcode_libdir_separator=:
17809 solaris*)
17810 no_undefined_flag=' -z defs'
17811 if test "$GCC" = yes; then
17812 wlarc='${wl}'
17813 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17814 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17815 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17816 else
17817 case `$CC -V 2>&1` in
17818 *"Compilers 5.0"*)
17819 wlarc=''
17820 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17822 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17825 wlarc='${wl}'
17826 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17827 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17828 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17830 esac
17832 hardcode_libdir_flag_spec='-R$libdir'
17833 hardcode_shlibpath_var=no
17834 case $host_os in
17835 solaris2.[0-5] | solaris2.[0-5].*) ;;
17837 # The compiler driver will combine and reorder linker options,
17838 # but understands `-z linker_flag'. GCC discards it without `$wl',
17839 # but is careful enough not to reorder.
17840 # Supported since Solaris 2.6 (maybe 2.5.1?)
17841 if test "$GCC" = yes; then
17842 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17843 else
17844 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17847 esac
17848 link_all_deplibs=yes
17851 sunos4*)
17852 if test "x$host_vendor" = xsequent; then
17853 # Use $CC to link under sequent, because it throws in some extra .o
17854 # files that make .init and .fini sections work.
17855 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17856 else
17857 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17859 hardcode_libdir_flag_spec='-L$libdir'
17860 hardcode_direct=yes
17861 hardcode_minus_L=yes
17862 hardcode_shlibpath_var=no
17865 sysv4)
17866 case $host_vendor in
17867 sni)
17868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17869 hardcode_direct=yes # is this really true???
17871 siemens)
17872 ## LD is ld it makes a PLAMLIB
17873 ## CC just makes a GrossModule.
17874 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17875 reload_cmds='$CC -r -o $output$reload_objs'
17876 hardcode_direct=no
17878 motorola)
17879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17880 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17882 esac
17883 runpath_var='LD_RUN_PATH'
17884 hardcode_shlibpath_var=no
17887 sysv4.3*)
17888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17889 hardcode_shlibpath_var=no
17890 export_dynamic_flag_spec='-Bexport'
17893 sysv4*MP*)
17894 if test -d /usr/nec; then
17895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17896 hardcode_shlibpath_var=no
17897 runpath_var=LD_RUN_PATH
17898 hardcode_runpath_var=yes
17899 ld_shlibs=yes
17903 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17904 no_undefined_flag='${wl}-z,text'
17905 archive_cmds_need_lc=no
17906 hardcode_shlibpath_var=no
17907 runpath_var='LD_RUN_PATH'
17909 if test "$GCC" = yes; then
17910 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17911 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17912 else
17913 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17914 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17918 sysv5* | sco3.2v5* | sco5v6*)
17919 # Note: We can NOT use -z defs as we might desire, because we do not
17920 # link with -lc, and that would cause any symbols used from libc to
17921 # always be unresolved, which means just about no library would
17922 # ever link correctly. If we're not using GNU ld we use -z text
17923 # though, which does catch some bad symbols but isn't as heavy-handed
17924 # as -z defs.
17925 no_undefined_flag='${wl}-z,text'
17926 allow_undefined_flag='${wl}-z,nodefs'
17927 archive_cmds_need_lc=no
17928 hardcode_shlibpath_var=no
17929 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17930 hardcode_libdir_separator=':'
17931 link_all_deplibs=yes
17932 export_dynamic_flag_spec='${wl}-Bexport'
17933 runpath_var='LD_RUN_PATH'
17935 if test "$GCC" = yes; then
17936 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17937 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17938 else
17939 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17940 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17944 uts4*)
17945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17946 hardcode_libdir_flag_spec='-L$libdir'
17947 hardcode_shlibpath_var=no
17951 ld_shlibs=no
17953 esac
17955 if test x$host_vendor = xsni; then
17956 case $host in
17957 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17958 export_dynamic_flag_spec='${wl}-Blargedynsym'
17960 esac
17964 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
17965 echo "${ECHO_T}$ld_shlibs" >&6
17966 test "$ld_shlibs" = no && can_build_shared=no
17968 with_gnu_ld=$with_gnu_ld
17985 # Do we need to explicitly link libc?
17987 case "x$archive_cmds_need_lc" in
17988 x|xyes)
17989 # Assume -lc should be added
17990 archive_cmds_need_lc=yes
17992 if test "$enable_shared" = yes && test "$GCC" = yes; then
17993 case $archive_cmds in
17994 *'~'*)
17995 # FIXME: we may have to deal with multi-command sequences.
17997 '$CC '*)
17998 # Test whether the compiler implicitly links with -lc since on some
17999 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18000 # to ld, don't add -lc before -lgcc.
18001 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18002 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18003 $RM conftest*
18004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18007 (eval $ac_compile) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } 2>conftest.err; then
18011 soname=conftest
18012 lib=conftest
18013 libobjs=conftest.$ac_objext
18014 deplibs=
18015 wl=$lt_prog_compiler_wl
18016 pic_flag=$lt_prog_compiler_pic
18017 compiler_flags=-v
18018 linker_flags=-v
18019 verstring=
18020 output_objdir=.
18021 libname=conftest
18022 lt_save_allow_undefined_flag=$allow_undefined_flag
18023 allow_undefined_flag=
18024 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18025 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }
18029 then
18030 archive_cmds_need_lc=no
18031 else
18032 archive_cmds_need_lc=yes
18034 allow_undefined_flag=$lt_save_allow_undefined_flag
18035 else
18036 cat conftest.err 1>&5
18038 $RM conftest*
18039 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18040 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18042 esac
18045 esac
18203 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18204 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18205 withGCC=$GCC
18206 if test "$withGCC" = yes; then
18207 case $host_os in
18208 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18209 *) lt_awk_arg="/^libraries:/" ;;
18210 esac
18211 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18212 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18213 # if the path contains ";" then we assume it to be the separator
18214 # otherwise default to the standard path separator (i.e. ":") - it is
18215 # assumed that no part of a normal pathname contains ";" but that should
18216 # okay in the real world where ";" in dirpaths is itself problematic.
18217 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18218 else
18219 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18221 # Ok, now we have the path, separated by spaces, we can step through it
18222 # and add multilib dir if necessary.
18223 lt_tmp_lt_search_path_spec=
18224 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18225 for lt_sys_path in $lt_search_path_spec; do
18226 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18227 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18228 else
18229 test -d "$lt_sys_path" && \
18230 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18232 done
18233 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18234 BEGIN {RS=" "; FS="/|\n";} {
18235 lt_foo="";
18236 lt_count=0;
18237 for (lt_i = NF; lt_i > 0; lt_i--) {
18238 if ($lt_i != "" && $lt_i != ".") {
18239 if ($lt_i == "..") {
18240 lt_count++;
18241 } else {
18242 if (lt_count == 0) {
18243 lt_foo="/" $lt_i lt_foo;
18244 } else {
18245 lt_count--;
18250 if (lt_foo != "") { lt_freq[lt_foo]++; }
18251 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18253 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18254 else
18255 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18257 library_names_spec=
18258 libname_spec='lib$name'
18259 soname_spec=
18260 shrext_cmds=".so"
18261 postinstall_cmds=
18262 postuninstall_cmds=
18263 finish_cmds=
18264 finish_eval=
18265 shlibpath_var=
18266 shlibpath_overrides_runpath=unknown
18267 version_type=none
18268 dynamic_linker="$host_os ld.so"
18269 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18270 need_lib_prefix=unknown
18271 hardcode_into_libs=no
18273 # when you set need_version to no, make sure it does not cause -set_version
18274 # flags to be left without arguments
18275 need_version=unknown
18277 case $host_os in
18278 aix3*)
18279 version_type=linux
18280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18281 shlibpath_var=LIBPATH
18283 # AIX 3 has no versioning support, so we append a major version to the name.
18284 soname_spec='${libname}${release}${shared_ext}$major'
18287 aix[4-9]*)
18288 version_type=linux
18289 need_lib_prefix=no
18290 need_version=no
18291 hardcode_into_libs=yes
18292 if test "$host_cpu" = ia64; then
18293 # AIX 5 supports IA64
18294 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18295 shlibpath_var=LD_LIBRARY_PATH
18296 else
18297 # With GCC up to 2.95.x, collect2 would create an import file
18298 # for dependence libraries. The import file would start with
18299 # the line `#! .'. This would cause the generated library to
18300 # depend on `.', always an invalid library. This was fixed in
18301 # development snapshots of GCC prior to 3.0.
18302 case $host_os in
18303 aix4 | aix4.[01] | aix4.[01].*)
18304 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18305 echo ' yes '
18306 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18308 else
18309 can_build_shared=no
18312 esac
18313 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18314 # soname into executable. Probably we can add versioning support to
18315 # collect2, so additional links can be useful in future.
18316 if test "$aix_use_runtimelinking" = yes; then
18317 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18318 # instead of lib<name>.a to let people know that these are not
18319 # typical AIX shared libraries.
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18321 else
18322 # We preserve .a as extension for shared libraries through AIX4.2
18323 # and later when we are not doing run time linking.
18324 library_names_spec='${libname}${release}.a $libname.a'
18325 soname_spec='${libname}${release}${shared_ext}$major'
18327 shlibpath_var=LIBPATH
18331 amigaos*)
18332 if test "$host_cpu" = m68k; then
18333 library_names_spec='$libname.ixlibrary $libname.a'
18334 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18335 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'
18336 else
18337 dynamic_linker=no
18341 beos*)
18342 library_names_spec='${libname}${shared_ext}'
18343 dynamic_linker="$host_os ld.so"
18344 shlibpath_var=LIBRARY_PATH
18347 bsdi[45]*)
18348 version_type=linux
18349 need_version=no
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18351 soname_spec='${libname}${release}${shared_ext}$major'
18352 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18353 shlibpath_var=LD_LIBRARY_PATH
18354 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18355 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18356 # the default ld.so.conf also contains /usr/contrib/lib and
18357 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18358 # libtool to hard-code these into programs
18361 cygwin* | mingw* | pw32*)
18362 version_type=windows
18363 shrext_cmds=".dll"
18364 need_version=no
18365 need_lib_prefix=no
18367 case $withGCC,$host_os in
18368 yes,cygwin* | yes,mingw* | yes,pw32*)
18369 library_names_spec='$libname.dll.a'
18370 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18371 postinstall_cmds='base_file=`basename \${file}`~
18372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18373 dldir=$destdir/`dirname \$dlpath`~
18374 test -d \$dldir || mkdir -p \$dldir~
18375 $install_prog $dir/$dlname \$dldir/$dlname~
18376 chmod a+x \$dldir/$dlname~
18377 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18378 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18380 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18381 dlpath=$dir/\$dldll~
18382 $RM \$dlpath'
18383 shlibpath_overrides_runpath=yes
18385 case $host_os in
18386 cygwin*)
18387 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18388 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18389 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18391 mingw*)
18392 # MinGW DLLs use traditional 'lib' prefix
18393 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18394 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18395 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18396 # It is most probably a Windows format PATH printed by
18397 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18398 # path with ; separators, and with drive letters. We can handle the
18399 # drive letters (cygwin fileutils understands them), so leave them,
18400 # especially as we might pass files found there to a mingw objdump,
18401 # which wouldn't understand a cygwinified path. Ahh.
18402 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18403 else
18404 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18407 pw32*)
18408 # pw32 DLLs use 'pw' prefix rather than 'lib'
18409 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18411 esac
18415 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18417 esac
18418 dynamic_linker='Win32 ld.exe'
18419 # FIXME: first we should search . and the directory the executable is in
18420 shlibpath_var=PATH
18423 darwin* | rhapsody*)
18424 dynamic_linker="$host_os dyld"
18425 version_type=darwin
18426 need_lib_prefix=no
18427 need_version=no
18428 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18429 soname_spec='${libname}${release}${major}$shared_ext'
18430 shlibpath_overrides_runpath=yes
18431 shlibpath_var=DYLD_LIBRARY_PATH
18432 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18434 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18438 dgux*)
18439 version_type=linux
18440 need_lib_prefix=no
18441 need_version=no
18442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18443 soname_spec='${libname}${release}${shared_ext}$major'
18444 shlibpath_var=LD_LIBRARY_PATH
18447 freebsd1*)
18448 dynamic_linker=no
18451 freebsd* | dragonfly*)
18452 # DragonFly does not have aout. When/if they implement a new
18453 # versioning mechanism, adjust this.
18454 if test -x /usr/bin/objformat; then
18455 objformat=`/usr/bin/objformat`
18456 else
18457 case $host_os in
18458 freebsd[123]*) objformat=aout ;;
18459 *) objformat=elf ;;
18460 esac
18462 version_type=freebsd-$objformat
18463 case $version_type in
18464 freebsd-elf*)
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18466 need_version=no
18467 need_lib_prefix=no
18469 freebsd-*)
18470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18471 need_version=yes
18473 esac
18474 shlibpath_var=LD_LIBRARY_PATH
18475 case $host_os in
18476 freebsd2*)
18477 shlibpath_overrides_runpath=yes
18479 freebsd3.[01]* | freebsdelf3.[01]*)
18480 shlibpath_overrides_runpath=yes
18481 hardcode_into_libs=yes
18483 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18484 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18485 shlibpath_overrides_runpath=no
18486 hardcode_into_libs=yes
18488 *) # from 4.6 on, and DragonFly
18489 shlibpath_overrides_runpath=yes
18490 hardcode_into_libs=yes
18492 esac
18495 gnu*)
18496 version_type=linux
18497 need_lib_prefix=no
18498 need_version=no
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18500 soname_spec='${libname}${release}${shared_ext}$major'
18501 shlibpath_var=LD_LIBRARY_PATH
18502 hardcode_into_libs=yes
18505 hpux9* | hpux10* | hpux11*)
18506 # Give a soname corresponding to the major version so that dld.sl refuses to
18507 # link against other versions.
18508 version_type=sunos
18509 need_lib_prefix=no
18510 need_version=no
18511 case $host_cpu in
18512 ia64*)
18513 shrext_cmds='.so'
18514 hardcode_into_libs=yes
18515 dynamic_linker="$host_os dld.so"
18516 shlibpath_var=LD_LIBRARY_PATH
18517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18519 soname_spec='${libname}${release}${shared_ext}$major'
18520 if test "X$HPUX_IA64_MODE" = X32; then
18521 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18522 else
18523 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18527 hppa*64*)
18528 shrext_cmds='.sl'
18529 hardcode_into_libs=yes
18530 dynamic_linker="$host_os dld.sl"
18531 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18534 soname_spec='${libname}${release}${shared_ext}$major'
18535 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18539 shrext_cmds='.sl'
18540 dynamic_linker="$host_os dld.sl"
18541 shlibpath_var=SHLIB_PATH
18542 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18544 soname_spec='${libname}${release}${shared_ext}$major'
18546 esac
18547 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18548 postinstall_cmds='chmod 555 $lib'
18551 interix[3-9]*)
18552 version_type=linux
18553 need_lib_prefix=no
18554 need_version=no
18555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18556 soname_spec='${libname}${release}${shared_ext}$major'
18557 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18558 shlibpath_var=LD_LIBRARY_PATH
18559 shlibpath_overrides_runpath=no
18560 hardcode_into_libs=yes
18563 irix5* | irix6* | nonstopux*)
18564 case $host_os in
18565 nonstopux*) version_type=nonstopux ;;
18567 if test "$lt_cv_prog_gnu_ld" = yes; then
18568 version_type=linux
18569 else
18570 version_type=irix
18571 fi ;;
18572 esac
18573 need_lib_prefix=no
18574 need_version=no
18575 soname_spec='${libname}${release}${shared_ext}$major'
18576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18577 case $host_os in
18578 irix5* | nonstopux*)
18579 libsuff= shlibsuff=
18582 case $LD in # libtool.m4 will add one of these switches to LD
18583 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18584 libsuff= shlibsuff= libmagic=32-bit;;
18585 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18586 libsuff=32 shlibsuff=N32 libmagic=N32;;
18587 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18588 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18589 *) libsuff= shlibsuff= libmagic=never-match;;
18590 esac
18592 esac
18593 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18594 shlibpath_overrides_runpath=no
18595 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18596 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18597 hardcode_into_libs=yes
18600 # No shared lib support for Linux oldld, aout, or coff.
18601 linux*oldld* | linux*aout* | linux*coff*)
18602 dynamic_linker=no
18605 # This must be Linux ELF.
18606 linux* | k*bsd*-gnu)
18607 version_type=linux
18608 need_lib_prefix=no
18609 need_version=no
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18611 soname_spec='${libname}${release}${shared_ext}$major'
18612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18613 shlibpath_var=LD_LIBRARY_PATH
18614 shlibpath_overrides_runpath=no
18615 # Some binutils ld are patched to set DT_RUNPATH
18616 save_LDFLAGS=$LDFLAGS
18617 save_libdir=$libdir
18618 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18619 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18620 cat >conftest.$ac_ext <<_ACEOF
18621 /* confdefs.h. */
18622 _ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h. */
18628 main ()
18632 return 0;
18634 _ACEOF
18635 rm -f conftest.$ac_objext conftest$ac_exeext
18636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18637 (eval $ac_link) 2>conftest.er1
18638 ac_status=$?
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
18644 { ac_try='test -z "$ac_c_werror_flag"
18645 || test ! -s conftest.err'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; } &&
18651 { ac_try='test -s conftest$ac_exeext'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
18658 shlibpath_overrides_runpath=yes
18661 else
18662 echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18666 rm -f conftest.err conftest.$ac_objext \
18667 conftest$ac_exeext conftest.$ac_ext
18668 LDFLAGS=$save_LDFLAGS
18669 libdir=$save_libdir
18671 # This implies no fast_install, which is unacceptable.
18672 # Some rework will be needed to allow for fast_install
18673 # before this can be enabled.
18674 hardcode_into_libs=yes
18676 # Append ld.so.conf contents to the search path
18677 if test -f /etc/ld.so.conf; then
18678 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' ' '`
18679 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18682 # We used to test for /lib/ld.so.1 and disable shared libraries on
18683 # powerpc, because MkLinux only supported shared libraries with the
18684 # GNU dynamic linker. Since this was broken with cross compilers,
18685 # most powerpc-linux boxes support dynamic linking these days and
18686 # people can always --disable-shared, the test was removed, and we
18687 # assume the GNU/Linux dynamic linker is in use.
18688 dynamic_linker='GNU/Linux ld.so'
18691 netbsd*)
18692 version_type=sunos
18693 need_lib_prefix=no
18694 need_version=no
18695 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18698 dynamic_linker='NetBSD (a.out) ld.so'
18699 else
18700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18701 soname_spec='${libname}${release}${shared_ext}$major'
18702 dynamic_linker='NetBSD ld.elf_so'
18704 shlibpath_var=LD_LIBRARY_PATH
18705 shlibpath_overrides_runpath=yes
18706 hardcode_into_libs=yes
18709 newsos6)
18710 version_type=linux
18711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18712 shlibpath_var=LD_LIBRARY_PATH
18713 shlibpath_overrides_runpath=yes
18716 *nto* | *qnx*)
18717 version_type=qnx
18718 need_lib_prefix=no
18719 need_version=no
18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18721 soname_spec='${libname}${release}${shared_ext}$major'
18722 shlibpath_var=LD_LIBRARY_PATH
18723 shlibpath_overrides_runpath=no
18724 hardcode_into_libs=yes
18725 dynamic_linker='ldqnx.so'
18728 openbsd*)
18729 version_type=sunos
18730 sys_lib_dlsearch_path_spec="/usr/lib"
18731 need_lib_prefix=no
18732 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18733 case $host_os in
18734 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18735 *) need_version=no ;;
18736 esac
18737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18739 shlibpath_var=LD_LIBRARY_PATH
18740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18741 case $host_os in
18742 openbsd2.[89] | openbsd2.[89].*)
18743 shlibpath_overrides_runpath=no
18746 shlibpath_overrides_runpath=yes
18748 esac
18749 else
18750 shlibpath_overrides_runpath=yes
18754 os2*)
18755 libname_spec='$name'
18756 shrext_cmds=".dll"
18757 need_lib_prefix=no
18758 library_names_spec='$libname${shared_ext} $libname.a'
18759 dynamic_linker='OS/2 ld.exe'
18760 shlibpath_var=LIBPATH
18763 osf3* | osf4* | osf5*)
18764 version_type=osf
18765 need_lib_prefix=no
18766 need_version=no
18767 soname_spec='${libname}${release}${shared_ext}$major'
18768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18769 shlibpath_var=LD_LIBRARY_PATH
18770 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18771 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18774 rdos*)
18775 dynamic_linker=no
18778 solaris*)
18779 version_type=linux
18780 need_lib_prefix=no
18781 need_version=no
18782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18783 soname_spec='${libname}${release}${shared_ext}$major'
18784 shlibpath_var=LD_LIBRARY_PATH
18785 shlibpath_overrides_runpath=yes
18786 hardcode_into_libs=yes
18787 # ldd complains unless libraries are executable
18788 postinstall_cmds='chmod +x $lib'
18791 sunos4*)
18792 version_type=sunos
18793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18794 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18795 shlibpath_var=LD_LIBRARY_PATH
18796 shlibpath_overrides_runpath=yes
18797 if test "$with_gnu_ld" = yes; then
18798 need_lib_prefix=no
18800 need_version=yes
18803 sysv4 | sysv4.3*)
18804 version_type=linux
18805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806 soname_spec='${libname}${release}${shared_ext}$major'
18807 shlibpath_var=LD_LIBRARY_PATH
18808 case $host_vendor in
18809 sni)
18810 shlibpath_overrides_runpath=no
18811 need_lib_prefix=no
18812 runpath_var=LD_RUN_PATH
18814 siemens)
18815 need_lib_prefix=no
18817 motorola)
18818 need_lib_prefix=no
18819 need_version=no
18820 shlibpath_overrides_runpath=no
18821 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18823 esac
18826 sysv4*MP*)
18827 if test -d /usr/nec ;then
18828 version_type=linux
18829 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18830 soname_spec='$libname${shared_ext}.$major'
18831 shlibpath_var=LD_LIBRARY_PATH
18835 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18836 version_type=freebsd-elf
18837 need_lib_prefix=no
18838 need_version=no
18839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18840 soname_spec='${libname}${release}${shared_ext}$major'
18841 shlibpath_var=LD_LIBRARY_PATH
18842 shlibpath_overrides_runpath=yes
18843 hardcode_into_libs=yes
18844 if test "$with_gnu_ld" = yes; then
18845 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18846 else
18847 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18848 case $host_os in
18849 sco3.2v5*)
18850 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18852 esac
18854 sys_lib_dlsearch_path_spec='/usr/lib'
18857 tpf*)
18858 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18859 version_type=linux
18860 need_lib_prefix=no
18861 need_version=no
18862 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18863 shlibpath_var=LD_LIBRARY_PATH
18864 shlibpath_overrides_runpath=no
18865 hardcode_into_libs=yes
18868 uts4*)
18869 version_type=linux
18870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18871 soname_spec='${libname}${release}${shared_ext}$major'
18872 shlibpath_var=LD_LIBRARY_PATH
18876 dynamic_linker=no
18878 esac
18879 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18880 echo "${ECHO_T}$dynamic_linker" >&6
18881 test "$dynamic_linker" = no && can_build_shared=no
18883 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18884 if test "$GCC" = yes; then
18885 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18974 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18975 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18976 hardcode_action=
18977 if test -n "$hardcode_libdir_flag_spec" ||
18978 test -n "$runpath_var" ||
18979 test "X$hardcode_automatic" = "Xyes" ; then
18981 # We can hardcode non-existent directories.
18982 if test "$hardcode_direct" != no &&
18983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18984 # have to relink, otherwise we might link with an installed library
18985 # when we should be linking with a yet-to-be-installed one
18986 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18987 test "$hardcode_minus_L" != no; then
18988 # Linking always hardcodes the temporary library directory.
18989 hardcode_action=relink
18990 else
18991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18992 hardcode_action=immediate
18994 else
18995 # We cannot hardcode anything, or else we can only hardcode existing
18996 # directories.
18997 hardcode_action=unsupported
18999 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19000 echo "${ECHO_T}$hardcode_action" >&6
19002 if test "$hardcode_action" = relink ||
19003 test "$inherit_rpath" = yes; then
19004 # Fast installation is not supported
19005 enable_fast_install=no
19006 elif test "$shlibpath_overrides_runpath" = yes ||
19007 test "$enable_shared" = no; then
19008 # Fast installation is not necessary
19009 enable_fast_install=needless
19017 if test "x$enable_dlopen" != xyes; then
19018 enable_dlopen=unknown
19019 enable_dlopen_self=unknown
19020 enable_dlopen_self_static=unknown
19021 else
19022 lt_cv_dlopen=no
19023 lt_cv_dlopen_libs=
19025 case $host_os in
19026 beos*)
19027 lt_cv_dlopen="load_add_on"
19028 lt_cv_dlopen_libs=
19029 lt_cv_dlopen_self=yes
19032 mingw* | pw32*)
19033 lt_cv_dlopen="LoadLibrary"
19034 lt_cv_dlopen_libs=
19037 cygwin*)
19038 lt_cv_dlopen="dlopen"
19039 lt_cv_dlopen_libs=
19042 darwin*)
19043 # if libdl is installed we need to link against it
19044 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19045 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19046 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049 ac_check_lib_save_LIBS=$LIBS
19050 LIBS="-ldl $LIBS"
19051 cat >conftest.$ac_ext <<_ACEOF
19052 /* confdefs.h. */
19053 _ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19058 /* Override any gcc2 internal prototype to avoid an error. */
19059 #ifdef __cplusplus
19060 extern "C"
19061 #endif
19062 /* We use char because int might match the return type of a gcc2
19063 builtin and then its argument prototype would still apply. */
19064 char dlopen ();
19066 main ()
19068 dlopen ();
19070 return 0;
19072 _ACEOF
19073 rm -f conftest.$ac_objext conftest$ac_exeext
19074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19075 (eval $ac_link) 2>conftest.er1
19076 ac_status=$?
19077 grep -v '^ *+' conftest.er1 >conftest.err
19078 rm -f conftest.er1
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
19082 { ac_try='test -z "$ac_c_werror_flag"
19083 || test ! -s conftest.err'
19084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085 (eval $ac_try) 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest$ac_exeext'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 ac_cv_lib_dl_dlopen=yes
19096 else
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19100 ac_cv_lib_dl_dlopen=no
19102 rm -f conftest.err conftest.$ac_objext \
19103 conftest$ac_exeext conftest.$ac_ext
19104 LIBS=$ac_check_lib_save_LIBS
19106 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19107 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19108 if test $ac_cv_lib_dl_dlopen = yes; then
19109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19110 else
19112 lt_cv_dlopen="dyld"
19113 lt_cv_dlopen_libs=
19114 lt_cv_dlopen_self=yes
19121 echo "$as_me:$LINENO: checking for shl_load" >&5
19122 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19123 if test "${ac_cv_func_shl_load+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 else
19126 cat >conftest.$ac_ext <<_ACEOF
19127 /* confdefs.h. */
19128 _ACEOF
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h. */
19132 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19134 #define shl_load innocuous_shl_load
19136 /* System header to define __stub macros and hopefully few prototypes,
19137 which can conflict with char shl_load (); below.
19138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19139 <limits.h> exists even on freestanding compilers. */
19141 #ifdef __STDC__
19142 # include <limits.h>
19143 #else
19144 # include <assert.h>
19145 #endif
19147 #undef shl_load
19149 /* Override any gcc2 internal prototype to avoid an error. */
19150 #ifdef __cplusplus
19151 extern "C"
19153 #endif
19154 /* We use char because int might match the return type of a gcc2
19155 builtin and then its argument prototype would still apply. */
19156 char shl_load ();
19157 /* The GNU C library defines this for functions which it implements
19158 to always fail with ENOSYS. Some functions are actually named
19159 something starting with __ and the normal name is an alias. */
19160 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19161 choke me
19162 #else
19163 char (*f) () = shl_load;
19164 #endif
19165 #ifdef __cplusplus
19167 #endif
19170 main ()
19172 return f != shl_load;
19174 return 0;
19176 _ACEOF
19177 rm -f conftest.$ac_objext conftest$ac_exeext
19178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19179 (eval $ac_link) 2>conftest.er1
19180 ac_status=$?
19181 grep -v '^ *+' conftest.er1 >conftest.err
19182 rm -f conftest.er1
19183 cat conftest.err >&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } &&
19186 { ac_try='test -z "$ac_c_werror_flag"
19187 || test ! -s conftest.err'
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try='test -s conftest$ac_exeext'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 ac_cv_func_shl_load=yes
19200 else
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 ac_cv_func_shl_load=no
19206 rm -f conftest.err conftest.$ac_objext \
19207 conftest$ac_exeext conftest.$ac_ext
19209 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19210 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19211 if test $ac_cv_func_shl_load = yes; then
19212 lt_cv_dlopen="shl_load"
19213 else
19214 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19215 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19216 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19218 else
19219 ac_check_lib_save_LIBS=$LIBS
19220 LIBS="-ldld $LIBS"
19221 cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h. */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19228 /* Override any gcc2 internal prototype to avoid an error. */
19229 #ifdef __cplusplus
19230 extern "C"
19231 #endif
19232 /* We use char because int might match the return type of a gcc2
19233 builtin and then its argument prototype would still apply. */
19234 char shl_load ();
19236 main ()
19238 shl_load ();
19240 return 0;
19242 _ACEOF
19243 rm -f conftest.$ac_objext conftest$ac_exeext
19244 if { (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_lib_dld_shl_load=yes
19266 else
19267 echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19270 ac_cv_lib_dld_shl_load=no
19272 rm -f conftest.err conftest.$ac_objext \
19273 conftest$ac_exeext conftest.$ac_ext
19274 LIBS=$ac_check_lib_save_LIBS
19276 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19277 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19278 if test $ac_cv_lib_dld_shl_load = yes; then
19279 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19280 else
19281 echo "$as_me:$LINENO: checking for dlopen" >&5
19282 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19283 if test "${ac_cv_func_dlopen+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286 cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h. */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19294 #define dlopen innocuous_dlopen
19296 /* System header to define __stub macros and hopefully few prototypes,
19297 which can conflict with char dlopen (); below.
19298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19299 <limits.h> exists even on freestanding compilers. */
19301 #ifdef __STDC__
19302 # include <limits.h>
19303 #else
19304 # include <assert.h>
19305 #endif
19307 #undef dlopen
19309 /* Override any gcc2 internal prototype to avoid an error. */
19310 #ifdef __cplusplus
19311 extern "C"
19313 #endif
19314 /* We use char because int might match the return type of a gcc2
19315 builtin and then its argument prototype would still apply. */
19316 char dlopen ();
19317 /* The GNU C library defines this for functions which it implements
19318 to always fail with ENOSYS. Some functions are actually named
19319 something starting with __ and the normal name is an alias. */
19320 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19321 choke me
19322 #else
19323 char (*f) () = dlopen;
19324 #endif
19325 #ifdef __cplusplus
19327 #endif
19330 main ()
19332 return f != dlopen;
19334 return 0;
19336 _ACEOF
19337 rm -f conftest.$ac_objext conftest$ac_exeext
19338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19339 (eval $ac_link) 2>conftest.er1
19340 ac_status=$?
19341 grep -v '^ *+' conftest.er1 >conftest.err
19342 rm -f conftest.er1
19343 cat conftest.err >&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } &&
19346 { ac_try='test -z "$ac_c_werror_flag"
19347 || test ! -s conftest.err'
19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; } &&
19353 { ac_try='test -s conftest$ac_exeext'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; }; then
19359 ac_cv_func_dlopen=yes
19360 else
19361 echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19364 ac_cv_func_dlopen=no
19366 rm -f conftest.err conftest.$ac_objext \
19367 conftest$ac_exeext conftest.$ac_ext
19369 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19370 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19371 if test $ac_cv_func_dlopen = yes; then
19372 lt_cv_dlopen="dlopen"
19373 else
19374 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19375 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19376 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 else
19379 ac_check_lib_save_LIBS=$LIBS
19380 LIBS="-ldl $LIBS"
19381 cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h. */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19388 /* Override any gcc2 internal prototype to avoid an error. */
19389 #ifdef __cplusplus
19390 extern "C"
19391 #endif
19392 /* We use char because int might match the return type of a gcc2
19393 builtin and then its argument prototype would still apply. */
19394 char dlopen ();
19396 main ()
19398 dlopen ();
19400 return 0;
19402 _ACEOF
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (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_lib_dl_dlopen=yes
19426 else
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19430 ac_cv_lib_dl_dlopen=no
19432 rm -f conftest.err conftest.$ac_objext \
19433 conftest$ac_exeext conftest.$ac_ext
19434 LIBS=$ac_check_lib_save_LIBS
19436 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19437 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19438 if test $ac_cv_lib_dl_dlopen = yes; then
19439 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19440 else
19441 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19442 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19443 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 else
19446 ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-lsvld $LIBS"
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h. */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19455 /* Override any gcc2 internal prototype to avoid an error. */
19456 #ifdef __cplusplus
19457 extern "C"
19458 #endif
19459 /* We use char because int might match the return type of a gcc2
19460 builtin and then its argument prototype would still apply. */
19461 char dlopen ();
19463 main ()
19465 dlopen ();
19467 return 0;
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472 (eval $ac_link) 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
19479 { ac_try='test -z "$ac_c_werror_flag"
19480 || test ! -s conftest.err'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try='test -s conftest$ac_exeext'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_cv_lib_svld_dlopen=yes
19493 else
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ac_cv_lib_svld_dlopen=no
19499 rm -f conftest.err conftest.$ac_objext \
19500 conftest$ac_exeext conftest.$ac_ext
19501 LIBS=$ac_check_lib_save_LIBS
19503 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19504 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19505 if test $ac_cv_lib_svld_dlopen = yes; then
19506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19507 else
19508 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19509 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19510 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513 ac_check_lib_save_LIBS=$LIBS
19514 LIBS="-ldld $LIBS"
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h. */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19522 /* Override any gcc2 internal prototype to avoid an error. */
19523 #ifdef __cplusplus
19524 extern "C"
19525 #endif
19526 /* We use char because int might match the return type of a gcc2
19527 builtin and then its argument prototype would still apply. */
19528 char dld_link ();
19530 main ()
19532 dld_link ();
19534 return 0;
19536 _ACEOF
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19539 (eval $ac_link) 2>conftest.er1
19540 ac_status=$?
19541 grep -v '^ *+' conftest.er1 >conftest.err
19542 rm -f conftest.er1
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
19546 { ac_try='test -z "$ac_c_werror_flag"
19547 || test ! -s conftest.err'
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19550 ac_status=$?
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } &&
19553 { ac_try='test -s conftest$ac_exeext'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; }; then
19559 ac_cv_lib_dld_dld_link=yes
19560 else
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19564 ac_cv_lib_dld_dld_link=no
19566 rm -f conftest.err conftest.$ac_objext \
19567 conftest$ac_exeext conftest.$ac_ext
19568 LIBS=$ac_check_lib_save_LIBS
19570 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19571 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19572 if test $ac_cv_lib_dld_dld_link = yes; then
19573 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19592 esac
19594 if test "x$lt_cv_dlopen" != xno; then
19595 enable_dlopen=yes
19596 else
19597 enable_dlopen=no
19600 case $lt_cv_dlopen in
19601 dlopen)
19602 save_CPPFLAGS="$CPPFLAGS"
19603 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19605 save_LDFLAGS="$LDFLAGS"
19606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19608 save_LIBS="$LIBS"
19609 LIBS="$lt_cv_dlopen_libs $LIBS"
19611 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19612 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19613 if test "${lt_cv_dlopen_self+set}" = set; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 else
19616 if test "$cross_compiling" = yes; then :
19617 lt_cv_dlopen_self=cross
19618 else
19619 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19620 lt_status=$lt_dlunknown
19621 cat > conftest.$ac_ext <<_LT_EOF
19622 #line 19622 "configure"
19623 #include "confdefs.h"
19625 #if HAVE_DLFCN_H
19626 #include <dlfcn.h>
19627 #endif
19629 #include <stdio.h>
19631 #ifdef RTLD_GLOBAL
19632 # define LT_DLGLOBAL RTLD_GLOBAL
19633 #else
19634 # ifdef DL_GLOBAL
19635 # define LT_DLGLOBAL DL_GLOBAL
19636 # else
19637 # define LT_DLGLOBAL 0
19638 # endif
19639 #endif
19641 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19642 find out it does not work in some platform. */
19643 #ifndef LT_DLLAZY_OR_NOW
19644 # ifdef RTLD_LAZY
19645 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19646 # else
19647 # ifdef DL_LAZY
19648 # define LT_DLLAZY_OR_NOW DL_LAZY
19649 # else
19650 # ifdef RTLD_NOW
19651 # define LT_DLLAZY_OR_NOW RTLD_NOW
19652 # else
19653 # ifdef DL_NOW
19654 # define LT_DLLAZY_OR_NOW DL_NOW
19655 # else
19656 # define LT_DLLAZY_OR_NOW 0
19657 # endif
19658 # endif
19659 # endif
19660 # endif
19661 #endif
19663 #ifdef __cplusplus
19664 extern "C" void exit (int);
19665 #endif
19667 void fnord() { int i=42;}
19668 int main ()
19670 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19671 int status = $lt_dlunknown;
19673 if (self)
19675 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19676 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19677 /* dlclose (self); */
19679 else
19680 puts (dlerror ());
19682 exit (status);
19684 _LT_EOF
19685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19686 (eval $ac_link) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19690 (./conftest; exit; ) >&5 2>/dev/null
19691 lt_status=$?
19692 case x$lt_status in
19693 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19694 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19695 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19696 esac
19697 else :
19698 # compilation failed
19699 lt_cv_dlopen_self=no
19702 rm -fr conftest*
19706 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19707 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19709 if test "x$lt_cv_dlopen_self" = xyes; then
19710 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19711 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19712 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19713 if test "${lt_cv_dlopen_self_static+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19715 else
19716 if test "$cross_compiling" = yes; then :
19717 lt_cv_dlopen_self_static=cross
19718 else
19719 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19720 lt_status=$lt_dlunknown
19721 cat > conftest.$ac_ext <<_LT_EOF
19722 #line 19722 "configure"
19723 #include "confdefs.h"
19725 #if HAVE_DLFCN_H
19726 #include <dlfcn.h>
19727 #endif
19729 #include <stdio.h>
19731 #ifdef RTLD_GLOBAL
19732 # define LT_DLGLOBAL RTLD_GLOBAL
19733 #else
19734 # ifdef DL_GLOBAL
19735 # define LT_DLGLOBAL DL_GLOBAL
19736 # else
19737 # define LT_DLGLOBAL 0
19738 # endif
19739 #endif
19741 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19742 find out it does not work in some platform. */
19743 #ifndef LT_DLLAZY_OR_NOW
19744 # ifdef RTLD_LAZY
19745 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19746 # else
19747 # ifdef DL_LAZY
19748 # define LT_DLLAZY_OR_NOW DL_LAZY
19749 # else
19750 # ifdef RTLD_NOW
19751 # define LT_DLLAZY_OR_NOW RTLD_NOW
19752 # else
19753 # ifdef DL_NOW
19754 # define LT_DLLAZY_OR_NOW DL_NOW
19755 # else
19756 # define LT_DLLAZY_OR_NOW 0
19757 # endif
19758 # endif
19759 # endif
19760 # endif
19761 #endif
19763 #ifdef __cplusplus
19764 extern "C" void exit (int);
19765 #endif
19767 void fnord() { int i=42;}
19768 int main ()
19770 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19771 int status = $lt_dlunknown;
19773 if (self)
19775 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19776 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19777 /* dlclose (self); */
19779 else
19780 puts (dlerror ());
19782 exit (status);
19784 _LT_EOF
19785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19786 (eval $ac_link) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19790 (./conftest; exit; ) >&5 2>/dev/null
19791 lt_status=$?
19792 case x$lt_status in
19793 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19794 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19795 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19796 esac
19797 else :
19798 # compilation failed
19799 lt_cv_dlopen_self_static=no
19802 rm -fr conftest*
19806 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19807 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19810 CPPFLAGS="$save_CPPFLAGS"
19811 LDFLAGS="$save_LDFLAGS"
19812 LIBS="$save_LIBS"
19814 esac
19816 case $lt_cv_dlopen_self in
19817 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19818 *) enable_dlopen_self=unknown ;;
19819 esac
19821 case $lt_cv_dlopen_self_static in
19822 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19823 *) enable_dlopen_self_static=unknown ;;
19824 esac
19843 striplib=
19844 old_striplib=
19845 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19846 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19847 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19848 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19849 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19850 echo "$as_me:$LINENO: result: yes" >&5
19851 echo "${ECHO_T}yes" >&6
19852 else
19853 # FIXME - insert some real tests, host_os isn't really good enough
19854 case $host_os in
19855 darwin*)
19856 if test -n "$STRIP" ; then
19857 striplib="$STRIP -x"
19858 old_striplib="$STRIP -S"
19859 echo "$as_me:$LINENO: result: yes" >&5
19860 echo "${ECHO_T}yes" >&6
19861 else
19862 echo "$as_me:$LINENO: result: no" >&5
19863 echo "${ECHO_T}no" >&6
19867 echo "$as_me:$LINENO: result: no" >&5
19868 echo "${ECHO_T}no" >&6
19870 esac
19884 # Report which library types will actually be built
19885 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19886 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19887 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19888 echo "${ECHO_T}$can_build_shared" >&6
19890 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19891 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19892 test "$can_build_shared" = "no" && enable_shared=no
19894 # On AIX, shared libraries and static libraries use the same namespace, and
19895 # are all built from PIC.
19896 case $host_os in
19897 aix3*)
19898 test "$enable_shared" = yes && enable_static=no
19899 if test -n "$RANLIB"; then
19900 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19901 postinstall_cmds='$RANLIB $lib'
19905 aix[4-9]*)
19906 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19907 test "$enable_shared" = yes && enable_static=no
19910 esac
19911 echo "$as_me:$LINENO: result: $enable_shared" >&5
19912 echo "${ECHO_T}$enable_shared" >&6
19914 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19915 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19916 # Make sure either enable_shared or enable_static is yes.
19917 test "$enable_shared" = yes || enable_static=yes
19918 echo "$as_me:$LINENO: result: $enable_static" >&5
19919 echo "${ECHO_T}$enable_static" >&6
19925 ac_ext=c
19926 ac_cpp='$CPP $CPPFLAGS'
19927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19931 CC="$lt_save_CC"
19948 # Only expand once:
19954 # Identify the assembler which will work hand-in-glove with the newly
19955 # built GCC, so that we can examine its features. This is the assembler
19956 # which will be driven by the driver program.
19958 # If build != host, and we aren't building gas in-tree, we identify a
19959 # build->target assembler and hope that it will have the same features
19960 # as the host->target assembler we'll be using.
19961 gcc_cv_gas_major_version=
19962 gcc_cv_gas_minor_version=
19963 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
19965 if test "${gcc_cv_as+set}" = set; then
19967 else
19969 if test -x "$DEFAULT_ASSEMBLER"; then
19970 gcc_cv_as="$DEFAULT_ASSEMBLER"
19971 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
19972 && test -f ../gas/Makefile \
19973 && test x$build = x$host; then
19974 gcc_cv_as=../gas/as-new$build_exeext
19975 elif test -x as$build_exeext; then
19976 # Build using assembler in the current directory.
19977 gcc_cv_as=./as$build_exeext
19978 elif test -x $AS_FOR_TARGET; then
19979 gcc_cv_as="$AS_FOR_TARGET"
19980 else
19981 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
19982 set dummy $AS_FOR_TARGET; ac_word=$2
19983 echo "$as_me:$LINENO: checking for $ac_word" >&5
19984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19985 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988 case $gcc_cv_as in
19989 [\\/]* | ?:[\\/]*)
19990 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
19993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19994 for as_dir in $PATH
19996 IFS=$as_save_IFS
19997 test -z "$as_dir" && as_dir=.
19998 for ac_exec_ext in '' $ac_executable_extensions; do
19999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20000 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20002 break 2
20004 done
20005 done
20008 esac
20010 gcc_cv_as=$ac_cv_path_gcc_cv_as
20012 if test -n "$gcc_cv_as"; then
20013 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20014 echo "${ECHO_T}$gcc_cv_as" >&6
20015 else
20016 echo "$as_me:$LINENO: result: no" >&5
20017 echo "${ECHO_T}no" >&6
20024 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20026 case "$ORIGINAL_AS_FOR_TARGET" in
20027 ./as | ./as$build_exeext) ;;
20028 *) ac_config_files="$ac_config_files as:exec-tool.in"
20030 esac
20032 echo "$as_me:$LINENO: checking what assembler to use" >&5
20033 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20034 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20035 # Single tree build which includes gas. We want to prefer it
20036 # over whatever linker top-level may have detected, since
20037 # we'll use what we're building after installation anyway.
20038 echo "$as_me:$LINENO: result: newly built gas" >&5
20039 echo "${ECHO_T}newly built gas" >&6
20040 in_tree_gas=yes
20041 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20042 for f in $gcc_cv_as_bfd_srcdir/configure \
20043 $gcc_cv_as_gas_srcdir/configure \
20044 $gcc_cv_as_gas_srcdir/configure.in \
20045 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20046 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20047 if test x$gcc_cv_gas_version != x; then
20048 break
20050 done
20051 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20052 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20053 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20054 case $gcc_cv_gas_patch_version in
20055 "") gcc_cv_gas_patch_version="0" ;;
20056 esac
20057 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20058 + $gcc_cv_gas_minor_version \) \* 1000 \
20059 + $gcc_cv_gas_patch_version`
20061 in_tree_gas_is_elf=no
20062 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20063 || (grep 'obj_format = multi' ../gas/Makefile \
20064 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20065 then
20066 in_tree_gas_is_elf=yes
20068 else
20069 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20070 echo "${ECHO_T}$gcc_cv_as" >&6
20071 in_tree_gas=no
20074 # Identify the linker which will work hand-in-glove with the newly
20075 # built GCC, so that we can examine its features. This is the linker
20076 # which will be driven by the driver program.
20078 # If build != host, and we aren't building gas in-tree, we identify a
20079 # build->target linker and hope that it will have the same features
20080 # as the host->target linker we'll be using.
20081 gcc_cv_gld_major_version=
20082 gcc_cv_gld_minor_version=
20083 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20084 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20086 if test "${gcc_cv_ld+set}" = set; then
20088 else
20090 if test -x "$DEFAULT_LINKER"; then
20091 gcc_cv_ld="$DEFAULT_LINKER"
20092 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20093 && test -f ../ld/Makefile \
20094 && test x$build = x$host; then
20095 gcc_cv_ld=../ld/ld-new$build_exeext
20096 elif test -x collect-ld$build_exeext; then
20097 # Build using linker in the current directory.
20098 gcc_cv_ld=./collect-ld$build_exeext
20099 elif test -x $LD_FOR_TARGET; then
20100 gcc_cv_ld="$LD_FOR_TARGET"
20101 else
20102 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20103 set dummy $LD_FOR_TARGET; ac_word=$2
20104 echo "$as_me:$LINENO: checking for $ac_word" >&5
20105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20106 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109 case $gcc_cv_ld in
20110 [\\/]* | ?:[\\/]*)
20111 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20115 for as_dir in $PATH
20117 IFS=$as_save_IFS
20118 test -z "$as_dir" && as_dir=.
20119 for ac_exec_ext in '' $ac_executable_extensions; do
20120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20121 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20123 break 2
20125 done
20126 done
20129 esac
20131 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20133 if test -n "$gcc_cv_ld"; then
20134 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20135 echo "${ECHO_T}$gcc_cv_ld" >&6
20136 else
20137 echo "$as_me:$LINENO: result: no" >&5
20138 echo "${ECHO_T}no" >&6
20145 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20147 case "$ORIGINAL_LD_FOR_TARGET" in
20148 ./collect-ld | ./collect-ld$build_exeext) ;;
20149 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20151 esac
20153 echo "$as_me:$LINENO: checking what linker to use" >&5
20154 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20155 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20156 # Single tree build which includes ld. We want to prefer it
20157 # over whatever linker top-level may have detected, since
20158 # we'll use what we're building after installation anyway.
20159 echo "$as_me:$LINENO: result: newly built ld" >&5
20160 echo "${ECHO_T}newly built ld" >&6
20161 in_tree_ld=yes
20162 in_tree_ld_is_elf=no
20163 if (grep 'EMUL = .*elf' ../ld/Makefile \
20164 || grep 'EMUL = .*linux' ../ld/Makefile \
20165 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20166 in_tree_ld_is_elf=yes
20168 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
20170 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20171 if test x$gcc_cv_gld_version != x; then
20172 break
20174 done
20175 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20176 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20177 else
20178 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20179 echo "${ECHO_T}$gcc_cv_ld" >&6
20180 in_tree_ld=no
20183 # Figure out what nm we will be using.
20184 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20185 if test "${gcc_cv_nm+set}" = set; then
20187 else
20189 if test -f $gcc_cv_binutils_srcdir/configure.in \
20190 && test -f ../binutils/Makefile \
20191 && test x$build = x$host; then
20192 gcc_cv_nm=../binutils/nm-new$build_exeext
20193 elif test -x nm$build_exeext; then
20194 gcc_cv_nm=./nm$build_exeext
20195 elif test -x $NM_FOR_TARGET; then
20196 gcc_cv_nm="$NM_FOR_TARGET"
20197 else
20198 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20199 set dummy $NM_FOR_TARGET; ac_word=$2
20200 echo "$as_me:$LINENO: checking for $ac_word" >&5
20201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20202 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20204 else
20205 case $gcc_cv_nm in
20206 [\\/]* | ?:[\\/]*)
20207 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20211 for as_dir in $PATH
20213 IFS=$as_save_IFS
20214 test -z "$as_dir" && as_dir=.
20215 for ac_exec_ext in '' $ac_executable_extensions; do
20216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20217 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20219 break 2
20221 done
20222 done
20225 esac
20227 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20229 if test -n "$gcc_cv_nm"; then
20230 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20231 echo "${ECHO_T}$gcc_cv_nm" >&6
20232 else
20233 echo "$as_me:$LINENO: result: no" >&5
20234 echo "${ECHO_T}no" >&6
20241 echo "$as_me:$LINENO: checking what nm to use" >&5
20242 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20243 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20244 # Single tree build which includes binutils.
20245 echo "$as_me:$LINENO: result: newly built nm" >&5
20246 echo "${ECHO_T}newly built nm" >&6
20247 in_tree_nm=yes
20248 else
20249 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20250 echo "${ECHO_T}$gcc_cv_nm" >&6
20251 in_tree_nm=no
20254 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20256 case "$ORIGINAL_NM_FOR_TARGET" in
20257 ./nm | ./nm$build_exeext) ;;
20258 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20260 esac
20263 # Figure out what objdump we will be using.
20264 if test "${gcc_cv_objdump+set}" = set; then
20266 else
20268 if test -f $gcc_cv_binutils_srcdir/configure.in \
20269 && test -f ../binutils/Makefile \
20270 && test x$build = x$host; then
20271 # Single tree build which includes binutils.
20272 gcc_cv_objdump=../binutils/objdump$build_exeext
20273 elif test -x objdump$build_exeext; then
20274 gcc_cv_objdump=./objdump$build_exeext
20275 elif test -x $OBJDUMP_FOR_TARGET; then
20276 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20277 else
20278 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20279 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20280 echo "$as_me:$LINENO: checking for $ac_word" >&5
20281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20282 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20284 else
20285 case $gcc_cv_objdump in
20286 [\\/]* | ?:[\\/]*)
20287 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20291 for as_dir in $PATH
20293 IFS=$as_save_IFS
20294 test -z "$as_dir" && as_dir=.
20295 for ac_exec_ext in '' $ac_executable_extensions; do
20296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20297 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20299 break 2
20301 done
20302 done
20305 esac
20307 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20309 if test -n "$gcc_cv_objdump"; then
20310 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20311 echo "${ECHO_T}$gcc_cv_objdump" >&6
20312 else
20313 echo "$as_me:$LINENO: result: no" >&5
20314 echo "${ECHO_T}no" >&6
20321 echo "$as_me:$LINENO: checking what objdump to use" >&5
20322 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20323 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20324 # Single tree build which includes binutils.
20325 echo "$as_me:$LINENO: result: newly built objdump" >&5
20326 echo "${ECHO_T}newly built objdump" >&6
20327 elif test x$gcc_cv_objdump = x; then
20328 echo "$as_me:$LINENO: result: not found" >&5
20329 echo "${ECHO_T}not found" >&6
20330 else
20331 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20332 echo "${ECHO_T}$gcc_cv_objdump" >&6
20335 # Figure out what assembler alignment features are present.
20336 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20337 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20338 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20340 else
20341 gcc_cv_as_balign_and_p2align=no
20342 if test $in_tree_gas = yes; then
20343 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20344 then gcc_cv_as_balign_and_p2align=yes
20346 elif test x$gcc_cv_as != x; then
20347 echo '.balign 4
20348 .p2align 2' > conftest.s
20349 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351 (eval $ac_try) 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }
20355 then
20356 gcc_cv_as_balign_and_p2align=yes
20357 else
20358 echo "configure: failed program was" >&5
20359 cat conftest.s >&5
20361 rm -f conftest.o conftest.s
20364 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20365 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20366 if test $gcc_cv_as_balign_and_p2align = yes; then
20368 cat >>confdefs.h <<\_ACEOF
20369 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20370 _ACEOF
20374 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20375 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20376 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20377 echo $ECHO_N "(cached) $ECHO_C" >&6
20378 else
20379 gcc_cv_as_max_skip_p2align=no
20380 if test $in_tree_gas = yes; then
20381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20382 then gcc_cv_as_max_skip_p2align=yes
20384 elif test x$gcc_cv_as != x; then
20385 echo '.p2align 4,,7' > conftest.s
20386 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }
20392 then
20393 gcc_cv_as_max_skip_p2align=yes
20394 else
20395 echo "configure: failed program was" >&5
20396 cat conftest.s >&5
20398 rm -f conftest.o conftest.s
20401 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20402 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20403 if test $gcc_cv_as_max_skip_p2align = yes; then
20405 cat >>confdefs.h <<\_ACEOF
20406 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20407 _ACEOF
20411 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20412 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20413 if test "${gcc_cv_as_literal16+set}" = set; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20415 else
20416 gcc_cv_as_literal16=no
20417 if test $in_tree_gas = yes; then
20418 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20419 then gcc_cv_as_literal16=yes
20421 elif test x$gcc_cv_as != x; then
20422 echo '.literal16' > conftest.s
20423 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }
20429 then
20430 gcc_cv_as_literal16=yes
20431 else
20432 echo "configure: failed program was" >&5
20433 cat conftest.s >&5
20435 rm -f conftest.o conftest.s
20438 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20439 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
20440 if test $gcc_cv_as_literal16 = yes; then
20442 cat >>confdefs.h <<\_ACEOF
20443 #define HAVE_GAS_LITERAL16 1
20444 _ACEOF
20448 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20449 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
20450 if test "${gcc_cv_as_subsection_m1+set}" = set; then
20451 echo $ECHO_N "(cached) $ECHO_C" >&6
20452 else
20453 gcc_cv_as_subsection_m1=no
20454 if test $in_tree_gas = yes; then
20455 if test $in_tree_gas_is_elf = yes \
20456 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20457 then gcc_cv_as_subsection_m1=yes
20459 elif test x$gcc_cv_as != x; then
20460 echo 'conftest_label1: .word 0
20461 .subsection -1
20462 conftest_label2: .word 0
20463 .previous' > conftest.s
20464 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; }
20470 then
20471 if test x$gcc_cv_nm != x; then
20472 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20473 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20474 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20475 then :
20476 else gcc_cv_as_subsection_m1=yes
20478 rm -f conftest.nm1 conftest.nm2
20480 else
20481 echo "configure: failed program was" >&5
20482 cat conftest.s >&5
20484 rm -f conftest.o conftest.s
20487 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20488 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
20489 if test $gcc_cv_as_subsection_m1 = yes; then
20491 cat >>confdefs.h <<\_ACEOF
20492 #define HAVE_GAS_SUBSECTION_ORDERING 1
20493 _ACEOF
20497 echo "$as_me:$LINENO: checking assembler for .weak" >&5
20498 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
20499 if test "${gcc_cv_as_weak+set}" = set; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 else
20502 gcc_cv_as_weak=no
20503 if test $in_tree_gas = yes; then
20504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20505 then gcc_cv_as_weak=yes
20507 elif test x$gcc_cv_as != x; then
20508 echo ' .weak foobar' > conftest.s
20509 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; }
20515 then
20516 gcc_cv_as_weak=yes
20517 else
20518 echo "configure: failed program was" >&5
20519 cat conftest.s >&5
20521 rm -f conftest.o conftest.s
20524 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20525 echo "${ECHO_T}$gcc_cv_as_weak" >&6
20526 if test $gcc_cv_as_weak = yes; then
20528 cat >>confdefs.h <<\_ACEOF
20529 #define HAVE_GAS_WEAK 1
20530 _ACEOF
20534 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20535 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
20536 if test "${gcc_cv_as_weakref+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20538 else
20539 gcc_cv_as_weakref=no
20540 if test $in_tree_gas = yes; then
20541 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20542 then gcc_cv_as_weakref=yes
20544 elif test x$gcc_cv_as != x; then
20545 echo ' .weakref foobar, barfnot' > conftest.s
20546 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20549 ac_status=$?
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; }
20552 then
20553 gcc_cv_as_weakref=yes
20554 else
20555 echo "configure: failed program was" >&5
20556 cat conftest.s >&5
20558 rm -f conftest.o conftest.s
20561 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20562 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
20563 if test $gcc_cv_as_weakref = yes; then
20565 cat >>confdefs.h <<\_ACEOF
20566 #define HAVE_GAS_WEAKREF 1
20567 _ACEOF
20571 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20572 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
20573 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576 gcc_cv_as_nsubspa_comdat=no
20577 if test $in_tree_gas = yes; then
20578 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20579 then gcc_cv_as_nsubspa_comdat=yes
20581 elif test x$gcc_cv_as != x; then
20582 echo ' .SPACE $TEXT$
20583 .NSUBSPA $CODE$,COMDAT' > conftest.s
20584 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586 (eval $ac_try) 2>&5
20587 ac_status=$?
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; }
20590 then
20591 gcc_cv_as_nsubspa_comdat=yes
20592 else
20593 echo "configure: failed program was" >&5
20594 cat conftest.s >&5
20596 rm -f conftest.o conftest.s
20599 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20600 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20601 if test $gcc_cv_as_nsubspa_comdat = yes; then
20603 cat >>confdefs.h <<\_ACEOF
20604 #define HAVE_GAS_NSUBSPA_COMDAT 1
20605 _ACEOF
20609 # .hidden needs to be supported in both the assembler and the linker,
20610 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20611 # This is irritatingly difficult to feature test for; we have to check the
20612 # date string after the version number. If we've got an in-tree
20613 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20614 # to be safe.
20615 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20616 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20617 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20618 if test "${gcc_cv_as_hidden+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 else
20621 gcc_cv_as_hidden=no
20622 if test $in_tree_gas = yes; then
20623 if test $in_tree_gas_is_elf = yes \
20624 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20625 then gcc_cv_as_hidden=yes
20627 elif test x$gcc_cv_as != x; then
20628 echo ' .hidden foobar
20629 foobar:' > conftest.s
20630 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }
20636 then
20637 gcc_cv_as_hidden=yes
20638 else
20639 echo "configure: failed program was" >&5
20640 cat conftest.s >&5
20642 rm -f conftest.o conftest.s
20645 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20646 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20649 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20650 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20651 if test "${gcc_cv_ld_hidden+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 else
20654 if test $in_tree_ld = yes ; then
20655 gcc_cv_ld_hidden=no
20656 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 \
20657 && test $in_tree_ld_is_elf = yes; then
20658 gcc_cv_ld_hidden=yes
20660 else
20661 gcc_cv_ld_hidden=yes
20662 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20663 if echo "$ld_ver" | grep GNU > /dev/null; then
20664 ld_vers=`echo $ld_ver | sed -n \
20665 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20666 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'`
20667 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
20668 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20669 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20670 if test 0"$ld_date" -lt 20020404; then
20671 if test -n "$ld_date"; then
20672 # If there was date string, but was earlier than 2002-04-04, fail
20673 gcc_cv_ld_hidden=no
20674 elif test -z "$ld_vers"; then
20675 # If there was no date string nor ld version number, something is wrong
20676 gcc_cv_ld_hidden=no
20677 else
20678 test -z "$ld_vers_patch" && ld_vers_patch=0
20679 if test "$ld_vers_major" -lt 2; then
20680 gcc_cv_ld_hidden=no
20681 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20682 gcc_cv_ld_hidden="no"
20683 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20684 gcc_cv_ld_hidden=no
20688 else
20689 case "${target}" in
20690 hppa64*-*-hpux* | ia64*-*-hpux*)
20691 gcc_cv_ld_hidden=yes
20694 gcc_cv_ld_hidden=no
20696 esac
20700 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20701 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20702 libgcc_visibility=no
20705 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20706 libgcc_visibility=yes
20708 cat >>confdefs.h <<\_ACEOF
20709 #define HAVE_GAS_HIDDEN 1
20710 _ACEOF
20714 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20715 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20716 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20717 if test "${gcc_cv_as_leb128+set}" = set; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 else
20720 gcc_cv_as_leb128=no
20721 if test $in_tree_gas = yes; then
20722 if test $in_tree_gas_is_elf = yes \
20723 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20724 then gcc_cv_as_leb128=yes
20726 elif test x$gcc_cv_as != x; then
20727 echo ' .data
20728 .uleb128 L2 - L1
20730 .uleb128 1280
20731 .sleb128 -1010
20732 L2:' > conftest.s
20733 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735 (eval $ac_try) 2>&5
20736 ac_status=$?
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }
20739 then
20740 # GAS versions before 2.11 do not support uleb128,
20741 # despite appearing to.
20742 # ??? There exists an elf-specific test that will crash
20743 # the assembler. Perhaps it's better to figure out whether
20744 # arbitrary sections are supported and try the test.
20745 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20746 if echo "$as_ver" | grep GNU > /dev/null; then
20747 as_vers=`echo $as_ver | sed -n \
20748 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20749 as_major=`expr "$as_vers" : '\([0-9]*\)'`
20750 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20751 if test $as_major -eq 2 && test $as_minor -lt 11
20752 then :
20753 else gcc_cv_as_leb128=yes
20756 else
20757 echo "configure: failed program was" >&5
20758 cat conftest.s >&5
20760 rm -f conftest.o conftest.s
20763 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20764 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20765 if test $gcc_cv_as_leb128 = yes; then
20767 cat >>confdefs.h <<\_ACEOF
20768 #define HAVE_AS_LEB128 1
20769 _ACEOF
20773 # GAS versions up to and including 2.11.0 may mis-optimize
20774 # .eh_frame data.
20775 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20776 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20777 if test "${gcc_cv_as_eh_frame+set}" = set; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
20779 else
20780 gcc_cv_as_eh_frame=no
20781 if test $in_tree_gas = yes; then
20782 if test $in_tree_gas_is_elf = yes \
20783 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20784 then gcc_cv_as_eh_frame=yes
20786 elif test x$gcc_cv_as != x; then
20787 echo ' .text
20788 .LFB1:
20789 .4byte 0
20790 .L1:
20791 .4byte 0
20792 .LFE1:
20793 .section .eh_frame,"aw",@progbits
20794 __FRAME_BEGIN__:
20795 .4byte .LECIE1-.LSCIE1
20796 .LSCIE1:
20797 .4byte 0x0
20798 .byte 0x1
20799 .ascii "z\0"
20800 .byte 0x1
20801 .byte 0x78
20802 .byte 0x1a
20803 .byte 0x0
20804 .byte 0x4
20805 .4byte 1
20806 .p2align 1
20807 .LECIE1:
20808 .LSFDE1:
20809 .4byte .LEFDE1-.LASFDE1
20810 .LASFDE1:
20811 .4byte .LASFDE1-__FRAME_BEGIN__
20812 .4byte .LFB1
20813 .4byte .LFE1-.LFB1
20814 .byte 0x4
20815 .4byte .LFE1-.LFB1
20816 .byte 0x4
20817 .4byte .L1-.LFB1
20818 .LEFDE1:' > conftest.s
20819 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20822 ac_status=$?
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }
20825 then
20826 cat > conftest.lit <<EOF
20827 0000 10000000 00000000 017a0001 781a0004 .........z..x...
20828 0010 01000000 12000000 18000000 00000000 ................
20829 0020 08000000 04080000 0044 .........D
20831 cat > conftest.big <<EOF
20832 0000 00000010 00000000 017a0001 781a0004 .........z..x...
20833 0010 00000001 00000012 00000018 00000000 ................
20834 0020 00000008 04000000 0844 .........D
20836 # If the assembler didn't choke, and we can objdump,
20837 # and we got the correct data, then succeed.
20838 # The text in the here-document typically retains its unix-style line
20839 # endings, while the output of objdump will use host line endings.
20840 # Therefore, use diff -b for the comparisons.
20841 if test x$gcc_cv_objdump != x \
20842 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
20843 | tail -3 > conftest.got \
20844 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
20845 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
20846 then
20847 gcc_cv_as_eh_frame=yes
20848 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850 (eval $ac_try) 2>&5
20851 ac_status=$?
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; }; then
20854 gcc_cv_as_eh_frame=buggy
20855 else
20856 # Uh oh, what do we do now?
20857 gcc_cv_as_eh_frame=no
20859 else
20860 echo "configure: failed program was" >&5
20861 cat conftest.s >&5
20863 rm -f conftest.o conftest.s
20866 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20867 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
20870 if test $gcc_cv_as_eh_frame = buggy; then
20872 cat >>confdefs.h <<\_ACEOF
20873 #define USE_AS_TRADITIONAL_FORMAT 1
20874 _ACEOF
20878 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20879 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20880 if test "${gcc_cv_as_shf_merge+set}" = set; then
20881 echo $ECHO_N "(cached) $ECHO_C" >&6
20882 else
20883 gcc_cv_as_shf_merge=no
20884 if test $in_tree_gas = yes; then
20885 if test $in_tree_gas_is_elf = yes \
20886 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20887 then gcc_cv_as_shf_merge=yes
20889 elif test x$gcc_cv_as != x; then
20890 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
20891 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20894 ac_status=$?
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; }
20897 then
20898 gcc_cv_as_shf_merge=yes
20899 else
20900 echo "configure: failed program was" >&5
20901 cat conftest.s >&5
20903 rm -f conftest.o conftest.s
20906 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20907 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20909 if test $gcc_cv_as_shf_merge = no; then
20910 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20911 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20912 if test "${gcc_cv_as_shf_merge+set}" = set; then
20913 echo $ECHO_N "(cached) $ECHO_C" >&6
20914 else
20915 gcc_cv_as_shf_merge=no
20916 if test $in_tree_gas = yes; then
20917 if test $in_tree_gas_is_elf = yes \
20918 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20919 then gcc_cv_as_shf_merge=yes
20921 elif test x$gcc_cv_as != x; then
20922 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20923 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; }
20929 then
20930 gcc_cv_as_shf_merge=yes
20931 else
20932 echo "configure: failed program was" >&5
20933 cat conftest.s >&5
20935 rm -f conftest.o conftest.s
20938 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20939 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20943 cat >>confdefs.h <<_ACEOF
20944 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
20945 _ACEOF
20948 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20949 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20950 if test "${gcc_cv_as_comdat_group+set}" = set; then
20951 echo $ECHO_N "(cached) $ECHO_C" >&6
20952 else
20953 gcc_cv_as_comdat_group=no
20954 if test $in_tree_gas = yes; then
20955 if test $in_tree_gas_is_elf = yes \
20956 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20957 then gcc_cv_as_comdat_group=yes
20959 elif test x$gcc_cv_as != x; then
20960 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
20961 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963 (eval $ac_try) 2>&5
20964 ac_status=$?
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; }
20967 then
20968 gcc_cv_as_comdat_group=yes
20969 else
20970 echo "configure: failed program was" >&5
20971 cat conftest.s >&5
20973 rm -f conftest.o conftest.s
20976 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
20977 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
20979 if test $gcc_cv_as_comdat_group = yes; then
20980 gcc_cv_as_comdat_group_percent=no
20981 else
20982 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20983 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20984 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 else
20987 gcc_cv_as_comdat_group_percent=no
20988 if test $in_tree_gas = yes; then
20989 if test $in_tree_gas_is_elf = yes \
20990 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20991 then gcc_cv_as_comdat_group_percent=yes
20993 elif test x$gcc_cv_as != x; then
20994 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
20995 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20998 ac_status=$?
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; }
21001 then
21002 gcc_cv_as_comdat_group_percent=yes
21003 else
21004 echo "configure: failed program was" >&5
21005 cat conftest.s >&5
21007 rm -f conftest.o conftest.s
21010 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21011 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21014 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21015 comdat_group=yes
21016 if test 0"$ld_date" -lt 20050308; then
21017 if test -n "$ld_date"; then
21018 # If there was date string, but was earlier than 2005-03-08, fail
21019 comdat_group=no
21020 elif test "$ld_vers_major" -lt 2; then
21021 comdat_group=no
21022 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21023 comdat_group=no
21026 else
21027 # assume linkers other than GNU ld don't support COMDAT group
21028 comdat_group=no
21030 if test $comdat_group = no; then
21031 gcc_cv_as_comdat_group=no
21032 gcc_cv_as_comdat_group_percent=no
21035 cat >>confdefs.h <<_ACEOF
21036 #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`
21037 _ACEOF
21040 # Thread-local storage - the check is heavily parametrized.
21041 conftest_s=
21042 tls_first_major=
21043 tls_first_minor=
21044 tls_as_opt=
21045 case "$target" in
21046 alpha*-*-*)
21047 conftest_s='
21048 .section ".tdata","awT",@progbits
21049 foo: .long 25
21050 .text
21051 ldq $27,__tls_get_addr($29) !literal!1
21052 lda $16,foo($29) !tlsgd!1
21053 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21054 ldq $27,__tls_get_addr($29) !literal!2
21055 lda $16,foo($29) !tlsldm!2
21056 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21057 ldq $1,foo($29) !gotdtprel
21058 ldah $2,foo($29) !dtprelhi
21059 lda $3,foo($2) !dtprello
21060 lda $4,foo($29) !dtprel
21061 ldq $1,foo($29) !gottprel
21062 ldah $2,foo($29) !tprelhi
21063 lda $3,foo($2) !tprello
21064 lda $4,foo($29) !tprel'
21065 tls_first_major=2
21066 tls_first_minor=13
21067 tls_as_opt=--fatal-warnings
21069 frv*-*-*)
21070 conftest_s='
21071 .section ".tdata","awT",@progbits
21072 x: .long 25
21073 .text
21074 call #gettlsoff(x)'
21075 tls_first_major=2
21076 tls_first_minor=14
21078 hppa*-*-linux*)
21079 conftest_s='
21080 t1: .reg %r20
21081 t2: .reg %r21
21082 gp: .reg %r19
21083 .section ".tdata","awT",@progbits
21084 foo: .long 25
21085 .text
21086 .align 4
21087 addil LT%foo-$tls_gdidx$,gp
21088 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21089 b __tls_get_addr
21091 addil LT%foo-$tls_ldidx$,gp
21092 b __tls_get_addr
21093 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21094 addil LR%foo-$tls_dtpoff$,%ret0
21095 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21096 mfctl %cr27,%t1
21097 addil LT%foo-$tls_ieoff$,gp
21098 ldw RT%foo-$tls_ieoff$(%r1),%t2
21099 add %t1,%t2,%t3
21100 mfctl %cr27,%t1
21101 addil LR%foo-$tls_leoff$,%t1
21102 ldo RR%foo-$tls_leoff$(%r1),%t2'
21103 tls_first_major=2
21104 tls_first_minor=15
21105 tls_as_opt=--fatal-warnings
21107 arm*-*-*)
21108 conftest_s='
21109 .section ".tdata","awT",%progbits
21110 foo: .long 25
21111 .text
21112 .word foo(gottpoff)
21113 .word foo(tpoff)
21114 .word foo(tlsgd)
21115 .word foo(tlsldm)
21116 .word foo(tlsldo)'
21117 tls_first_major=2
21118 tls_first_minor=17
21120 i[34567]86-*-*)
21121 conftest_s='
21122 .section ".tdata","awT",@progbits
21123 foo: .long 25
21124 .text
21125 movl %gs:0, %eax
21126 leal foo@TLSGD(,%ebx,1), %eax
21127 leal foo@TLSLDM(%ebx), %eax
21128 leal foo@DTPOFF(%eax), %edx
21129 movl foo@GOTTPOFF(%ebx), %eax
21130 subl foo@GOTTPOFF(%ebx), %eax
21131 addl foo@GOTNTPOFF(%ebx), %eax
21132 movl foo@INDNTPOFF, %eax
21133 movl $foo@TPOFF, %eax
21134 subl $foo@TPOFF, %eax
21135 leal foo@NTPOFF(%ecx), %eax'
21136 tls_first_major=2
21137 tls_first_minor=14
21138 tls_as_opt=--fatal-warnings
21140 x86_64-*-*)
21141 conftest_s='
21142 .section ".tdata","awT",@progbits
21143 foo: .long 25
21144 .text
21145 movq %fs:0, %rax
21146 leaq foo@TLSGD(%rip), %rdi
21147 leaq foo@TLSLD(%rip), %rdi
21148 leaq foo@DTPOFF(%rax), %rdx
21149 movq foo@GOTTPOFF(%rip), %rax
21150 movq $foo@TPOFF, %rax'
21151 tls_first_major=2
21152 tls_first_minor=14
21153 tls_as_opt=--fatal-warnings
21155 ia64-*-*)
21156 conftest_s='
21157 .section ".tdata","awT",@progbits
21158 foo: data8 25
21159 .text
21160 addl r16 = @ltoff(@dtpmod(foo#)), gp
21161 addl r17 = @ltoff(@dtprel(foo#)), gp
21162 addl r18 = @ltoff(@tprel(foo#)), gp
21163 addl r19 = @dtprel(foo#), gp
21164 adds r21 = @dtprel(foo#), r13
21165 movl r23 = @dtprel(foo#)
21166 addl r20 = @tprel(foo#), gp
21167 adds r22 = @tprel(foo#), r13
21168 movl r24 = @tprel(foo#)'
21169 tls_first_major=2
21170 tls_first_minor=13
21171 tls_as_opt=--fatal-warnings
21173 mips*-*-*)
21174 conftest_s='
21175 .section .tdata,"awT",@progbits
21177 .word 2
21178 .text
21179 addiu $4, $28, %tlsgd(x)
21180 addiu $4, $28, %tlsldm(x)
21181 lui $4, %dtprel_hi(x)
21182 addiu $4, $4, %dtprel_lo(x)
21183 lw $4, %gottprel(x)($28)
21184 lui $4, %tprel_hi(x)
21185 addiu $4, $4, %tprel_lo(x)'
21186 tls_first_major=2
21187 tls_first_minor=16
21188 tls_as_opt='-32 --fatal-warnings'
21190 powerpc-*-*)
21191 conftest_s='
21192 .section ".tdata","awT",@progbits
21193 .align 2
21194 ld0: .space 4
21195 ld1: .space 4
21196 x1: .space 4
21197 x2: .space 4
21198 x3: .space 4
21199 .text
21200 addi 3,31,ld0@got@tlsgd
21201 bl __tls_get_addr
21202 addi 3,31,x1@got@tlsld
21203 bl __tls_get_addr
21204 addi 9,3,x1@dtprel
21205 addis 9,3,x2@dtprel@ha
21206 addi 9,9,x2@dtprel@l
21207 lwz 9,x3@got@tprel(31)
21208 add 9,9,x@tls
21209 addi 9,2,x1@tprel
21210 addis 9,2,x2@tprel@ha
21211 addi 9,9,x2@tprel@l'
21212 tls_first_major=2
21213 tls_first_minor=14
21214 tls_as_opt="-a32 --fatal-warnings"
21216 powerpc64-*-*)
21217 conftest_s='
21218 .section ".tdata","awT",@progbits
21219 .align 3
21220 ld0: .space 8
21221 ld1: .space 8
21222 x1: .space 8
21223 x2: .space 8
21224 x3: .space 8
21225 .text
21226 addi 3,2,ld0@got@tlsgd
21227 bl .__tls_get_addr
21229 addi 3,2,ld1@toc
21230 bl .__tls_get_addr
21232 addi 3,2,x1@got@tlsld
21233 bl .__tls_get_addr
21235 addi 9,3,x1@dtprel
21236 bl .__tls_get_addr
21238 addis 9,3,x2@dtprel@ha
21239 addi 9,9,x2@dtprel@l
21240 bl .__tls_get_addr
21242 ld 9,x3@got@dtprel(2)
21243 add 9,9,3
21244 bl .__tls_get_addr
21245 nop'
21246 tls_first_major=2
21247 tls_first_minor=14
21248 tls_as_opt="-a64 --fatal-warnings"
21250 s390-*-*)
21251 conftest_s='
21252 .section ".tdata","awT",@progbits
21253 foo: .long 25
21254 .text
21255 .long foo@TLSGD
21256 .long foo@TLSLDM
21257 .long foo@DTPOFF
21258 .long foo@NTPOFF
21259 .long foo@GOTNTPOFF
21260 .long foo@INDNTPOFF
21261 l %r1,foo@GOTNTPOFF(%r12)
21262 l %r1,0(%r1):tls_load:foo
21263 bas %r14,0(%r1,%r13):tls_gdcall:foo
21264 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21265 tls_first_major=2
21266 tls_first_minor=14
21267 tls_as_opt="-m31 --fatal-warnings"
21269 s390x-*-*)
21270 conftest_s='
21271 .section ".tdata","awT",@progbits
21272 foo: .long 25
21273 .text
21274 .quad foo@TLSGD
21275 .quad foo@TLSLDM
21276 .quad foo@DTPOFF
21277 .quad foo@NTPOFF
21278 .quad foo@GOTNTPOFF
21279 lg %r1,foo@GOTNTPOFF(%r12)
21280 larl %r1,foo@INDNTPOFF
21281 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21282 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21283 tls_first_major=2
21284 tls_first_minor=14
21285 tls_as_opt="-m64 -Aesame --fatal-warnings"
21287 sh-*-* | sh[34]-*-*)
21288 conftest_s='
21289 .section ".tdata","awT",@progbits
21290 foo: .long 25
21291 .text
21292 .long foo@TLSGD
21293 .long foo@TLSLDM
21294 .long foo@DTPOFF
21295 .long foo@GOTTPOFF
21296 .long foo@TPOFF'
21297 tls_first_major=2
21298 tls_first_minor=13
21299 tls_as_opt=--fatal-warnings
21301 sparc*-*-*)
21302 case "$target" in
21303 sparc*-sun-solaris2.[56789]*)
21304 # TLS was introduced in the Solaris 9 4/04 release but
21305 # we do not enable it by default on Solaris 9 either.
21306 if test "x$enable_tls" = xyes ; then
21307 on_solaris=yes
21308 else
21309 enable_tls=no;
21312 sparc*-sun-solaris2.*)
21313 on_solaris=yes
21316 on_solaris=no
21318 esac
21319 if test x$on_solaris = xyes && test x$gas_flag = xno; then
21320 conftest_s='
21321 .section ".tdata",#alloc,#write,#tls
21322 foo: .long 25
21323 .text
21324 sethi %tgd_hi22(foo), %o0
21325 add %o0, %tgd_lo10(foo), %o1
21326 add %l7, %o1, %o0, %tgd_add(foo)
21327 call __tls_get_addr, %tgd_call(foo)
21328 sethi %tldm_hi22(foo), %l1
21329 add %l1, %tldm_lo10(foo), %l2
21330 add %l7, %l2, %o0, %tldm_add(foo)
21331 call __tls_get_addr, %tldm_call(foo)
21332 sethi %tldo_hix22(foo), %l3
21333 xor %l3, %tldo_lox10(foo), %l4
21334 add %o0, %l4, %l5, %tldo_add(foo)
21335 sethi %tie_hi22(foo), %o3
21336 add %o3, %tie_lo10(foo), %o3
21337 ld [%l7 + %o3], %o2, %tie_ld(foo)
21338 add %g7, %o2, %o4, %tie_add(foo)
21339 sethi %tle_hix22(foo), %l1
21340 xor %l1, %tle_lox10(foo), %o5
21341 ld [%g7 + %o5], %o1'
21342 tls_first_major=0
21343 tls_first_minor=0
21344 else
21345 conftest_s='
21346 .section ".tdata","awT",@progbits
21347 foo: .long 25
21348 .text
21349 sethi %tgd_hi22(foo), %o0
21350 add %o0, %tgd_lo10(foo), %o1
21351 add %l7, %o1, %o0, %tgd_add(foo)
21352 call __tls_get_addr, %tgd_call(foo)
21353 sethi %tldm_hi22(foo), %l1
21354 add %l1, %tldm_lo10(foo), %l2
21355 add %l7, %l2, %o0, %tldm_add(foo)
21356 call __tls_get_addr, %tldm_call(foo)
21357 sethi %tldo_hix22(foo), %l3
21358 xor %l3, %tldo_lox10(foo), %l4
21359 add %o0, %l4, %l5, %tldo_add(foo)
21360 sethi %tie_hi22(foo), %o3
21361 add %o3, %tie_lo10(foo), %o3
21362 ld [%l7 + %o3], %o2, %tie_ld(foo)
21363 add %g7, %o2, %o4, %tie_add(foo)
21364 sethi %tle_hix22(foo), %l1
21365 xor %l1, %tle_lox10(foo), %o5
21366 ld [%g7 + %o5], %o1'
21367 tls_first_major=2
21368 tls_first_minor=14
21369 tls_as_opt="-32 --fatal-warnings"
21372 esac
21373 set_have_as_tls=no
21374 if test "x$enable_tls" = xno ; then
21375 : # TLS explicitly disabled.
21376 elif test "x$enable_tls" = xyes ; then
21377 set_have_as_tls=yes # TLS explicitly enabled.
21378 elif test -z "$tls_first_major"; then
21379 : # If we don't have a check, assume no support.
21380 else
21381 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21382 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
21383 if test "${gcc_cv_as_tls+set}" = set; then
21384 echo $ECHO_N "(cached) $ECHO_C" >&6
21385 else
21386 gcc_cv_as_tls=no
21387 if test $in_tree_gas = yes; then
21388 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21389 then gcc_cv_as_tls=yes
21391 elif test x$gcc_cv_as != x; then
21392 echo "$conftest_s" > conftest.s
21393 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395 (eval $ac_try) 2>&5
21396 ac_status=$?
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; }
21399 then
21400 gcc_cv_as_tls=yes
21401 else
21402 echo "configure: failed program was" >&5
21403 cat conftest.s >&5
21405 rm -f conftest.o conftest.s
21408 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21409 echo "${ECHO_T}$gcc_cv_as_tls" >&6
21410 if test $gcc_cv_as_tls = yes; then
21411 set_have_as_tls=yes
21414 if test $set_have_as_tls = yes ; then
21416 cat >>confdefs.h <<\_ACEOF
21417 #define HAVE_AS_TLS 1
21418 _ACEOF
21422 # Target-specific assembler checks.
21424 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21425 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
21426 gcc_cv_ld_static_dynamic=no
21427 if test $in_tree_ld = yes ; then
21428 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21429 gcc_cv_ld_static_dynamic=yes
21431 elif test x$gcc_cv_ld != x; then
21432 # Check if linker supports -Bstatic/-Bdynamic option
21433 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21434 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21435 gcc_cv_ld_static_dynamic=yes
21438 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21440 cat >>confdefs.h <<\_ACEOF
21441 #define HAVE_LD_STATIC_DYNAMIC 1
21442 _ACEOF
21445 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21446 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
21448 if test x"$demangler_in_ld" = xyes; then
21449 echo "$as_me:$LINENO: checking linker --demangle support" >&5
21450 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
21451 gcc_cv_ld_demangle=no
21452 if test $in_tree_ld = yes; then
21453 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 \
21454 gcc_cv_ld_demangle=yes
21456 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21457 # Check if the GNU linker supports --demangle option
21458 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21459 gcc_cv_ld_demangle=yes
21462 if test x"$gcc_cv_ld_demangle" = xyes; then
21464 cat >>confdefs.h <<\_ACEOF
21465 #define HAVE_LD_DEMANGLE 1
21466 _ACEOF
21469 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21470 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
21473 case "$target" in
21474 # All TARGET_ABI_OSF targets.
21475 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
21476 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21477 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21478 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 else
21481 gcc_cv_as_alpha_explicit_relocs=no
21482 if test $in_tree_gas = yes; then
21483 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21484 then gcc_cv_as_alpha_explicit_relocs=yes
21486 elif test x$gcc_cv_as != x; then
21487 echo ' .set nomacro
21488 .text
21489 extbl $3, $2, $3 !lituse_bytoff!1
21490 ldq $2, a($29) !literal!1
21491 ldq $4, b($29) !literal!2
21492 ldq_u $3, 0($2) !lituse_base!1
21493 ldq $27, f($29) !literal!5
21494 jsr $26, ($27), f !lituse_jsr!5
21495 ldah $29, 0($26) !gpdisp!3
21496 lda $0, c($29) !gprel
21497 ldah $1, d($29) !gprelhigh
21498 lda $1, d($1) !gprellow
21499 lda $29, 0($29) !gpdisp!3' > conftest.s
21500 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }
21506 then
21507 gcc_cv_as_alpha_explicit_relocs=yes
21508 else
21509 echo "configure: failed program was" >&5
21510 cat conftest.s >&5
21512 rm -f conftest.o conftest.s
21515 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21516 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
21517 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21519 cat >>confdefs.h <<\_ACEOF
21520 #define HAVE_AS_EXPLICIT_RELOCS 1
21521 _ACEOF
21524 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21525 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
21526 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21527 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 else
21529 gcc_cv_as_alpha_jsrdirect_relocs=no
21530 if test $in_tree_gas = yes; then
21531 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21532 then gcc_cv_as_alpha_jsrdirect_relocs=yes
21534 elif test x$gcc_cv_as != x; then
21535 echo ' .set nomacro
21536 .text
21537 ldq $27, a($29) !literal!1
21538 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21539 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21542 ac_status=$?
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; }
21545 then
21546 gcc_cv_as_alpha_jsrdirect_relocs=yes
21547 else
21548 echo "configure: failed program was" >&5
21549 cat conftest.s >&5
21551 rm -f conftest.o conftest.s
21554 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21555 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
21556 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21558 cat >>confdefs.h <<\_ACEOF
21559 #define HAVE_AS_JSRDIRECT_RELOCS 1
21560 _ACEOF
21565 cris-*-*)
21566 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21567 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
21568 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571 gcc_cv_as_cris_no_mul_bug=no
21572 if test $in_tree_gas = yes; then
21573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21574 then gcc_cv_as_cris_no_mul_bug=yes
21576 elif test x$gcc_cv_as != x; then
21577 echo '.text' > conftest.s
21578 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21580 (eval $ac_try) 2>&5
21581 ac_status=$?
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); }; }
21584 then
21585 gcc_cv_as_cris_no_mul_bug=yes
21586 else
21587 echo "configure: failed program was" >&5
21588 cat conftest.s >&5
21590 rm -f conftest.o conftest.s
21593 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21594 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21595 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21597 cat >>confdefs.h <<\_ACEOF
21598 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21599 _ACEOF
21604 sparc*-*-*)
21605 echo "$as_me:$LINENO: checking assembler for .register" >&5
21606 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21607 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21608 echo $ECHO_N "(cached) $ECHO_C" >&6
21609 else
21610 gcc_cv_as_sparc_register_op=no
21611 if test x$gcc_cv_as != x; then
21612 echo '.register %g2, #scratch' > conftest.s
21613 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615 (eval $ac_try) 2>&5
21616 ac_status=$?
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); }; }
21619 then
21620 gcc_cv_as_sparc_register_op=yes
21621 else
21622 echo "configure: failed program was" >&5
21623 cat conftest.s >&5
21625 rm -f conftest.o conftest.s
21628 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21629 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21630 if test $gcc_cv_as_sparc_register_op = yes; then
21632 cat >>confdefs.h <<\_ACEOF
21633 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21634 _ACEOF
21638 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21639 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21640 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21642 else
21643 gcc_cv_as_sparc_relax=no
21644 if test x$gcc_cv_as != x; then
21645 echo '.text' > conftest.s
21646 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; }
21652 then
21653 gcc_cv_as_sparc_relax=yes
21654 else
21655 echo "configure: failed program was" >&5
21656 cat conftest.s >&5
21658 rm -f conftest.o conftest.s
21661 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21662 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21663 if test $gcc_cv_as_sparc_relax = yes; then
21665 cat >>confdefs.h <<\_ACEOF
21666 #define HAVE_AS_RELAX_OPTION 1
21667 _ACEOF
21671 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21672 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21673 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 else
21676 gcc_cv_as_sparc_ua_pcrel=no
21677 if test x$gcc_cv_as != x; then
21678 echo '.text
21679 foo:
21681 .data
21682 .align 4
21683 .byte 0
21684 .uaword %r_disp32(foo)' > conftest.s
21685 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }
21691 then
21692 if test x$gcc_cv_ld != x \
21693 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
21694 gcc_cv_as_sparc_ua_pcrel=yes
21696 rm -f conftest
21697 else
21698 echo "configure: failed program was" >&5
21699 cat conftest.s >&5
21701 rm -f conftest.o conftest.s
21704 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21705 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21706 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21708 cat >>confdefs.h <<\_ACEOF
21709 #define HAVE_AS_SPARC_UA_PCREL 1
21710 _ACEOF
21713 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21714 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21715 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 else
21718 gcc_cv_as_sparc_ua_pcrel_hidden=no
21719 if test x$gcc_cv_as != x; then
21720 echo '.data
21721 .align 4
21722 .byte 0x31
21723 .uaword %r_disp32(foo)
21724 .byte 0x32, 0x33, 0x34
21725 .global foo
21726 .hidden foo
21727 foo:
21728 .skip 4' > conftest.s
21729 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731 (eval $ac_try) 2>&5
21732 ac_status=$?
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); }; }
21735 then
21736 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
21737 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
21738 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
21739 | grep ' 31000000 07323334' > /dev/null 2>&1; then
21740 if $gcc_cv_objdump -R conftest 2> /dev/null \
21741 | grep 'DISP32' > /dev/null 2>&1; then
21743 else
21744 gcc_cv_as_sparc_ua_pcrel_hidden=yes
21747 rm -f conftest
21748 else
21749 echo "configure: failed program was" >&5
21750 cat conftest.s >&5
21752 rm -f conftest.o conftest.s
21755 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21756 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21757 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21759 cat >>confdefs.h <<\_ACEOF
21760 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21761 _ACEOF
21765 fi # unaligned pcrel relocs
21767 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21768 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21769 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 else
21772 gcc_cv_as_sparc_offsetable_lo10=no
21773 if test x$gcc_cv_as != x; then
21774 echo '.text
21775 or %g1, %lo(ab) + 12, %g1
21776 or %g1, %lo(ab + 12), %g1' > conftest.s
21777 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21780 ac_status=$?
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }
21783 then
21784 if test x$gcc_cv_objdump != x \
21785 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
21786 | grep ' 82106000 82106000' > /dev/null 2>&1; then
21787 gcc_cv_as_sparc_offsetable_lo10=yes
21789 else
21790 echo "configure: failed program was" >&5
21791 cat conftest.s >&5
21793 rm -f conftest.o conftest.s
21796 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21797 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21798 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21800 cat >>confdefs.h <<\_ACEOF
21801 #define HAVE_AS_OFFSETABLE_LO10 1
21802 _ACEOF
21807 i[34567]86-*-* | x86_64-*-*)
21808 case $target_os in
21809 cygwin* | pe | mingw32*)
21810 # Used for DWARF 2 in PE
21811 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21812 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21813 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21815 else
21816 gcc_cv_as_ix86_pe_secrel32=no
21817 if test $in_tree_gas = yes; then
21818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21819 then gcc_cv_as_ix86_pe_secrel32=yes
21821 elif test x$gcc_cv_as != x; then
21822 echo '.text
21823 foo: nop
21824 .data
21825 .secrel32 foo' > conftest.s
21826 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }
21832 then
21833 if test x$gcc_cv_ld != x \
21834 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
21835 gcc_cv_as_ix86_pe_secrel32=yes
21837 rm -f conftest
21838 else
21839 echo "configure: failed program was" >&5
21840 cat conftest.s >&5
21842 rm -f conftest.o conftest.s
21845 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21846 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21847 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21849 cat >>confdefs.h <<\_ACEOF
21850 #define HAVE_GAS_PE_SECREL32_RELOC 1
21851 _ACEOF
21855 esac
21857 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21858 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21859 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21860 echo $ECHO_N "(cached) $ECHO_C" >&6
21861 else
21862 gcc_cv_as_ix86_filds_fists=no
21863 if test $in_tree_gas = yes; then
21864 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21865 then gcc_cv_as_ix86_filds_fists=yes
21867 elif test x$gcc_cv_as != x; then
21868 echo 'filds mem; fists mem' > conftest.s
21869 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871 (eval $ac_try) 2>&5
21872 ac_status=$?
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); }; }
21875 then
21876 gcc_cv_as_ix86_filds_fists=yes
21877 else
21878 echo "configure: failed program was" >&5
21879 cat conftest.s >&5
21881 rm -f conftest.o conftest.s
21884 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21885 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
21886 if test $gcc_cv_as_ix86_filds_fists = yes; then
21888 cat >>confdefs.h <<\_ACEOF
21889 #define HAVE_GAS_FILDS_FISTS 1
21890 _ACEOF
21894 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21895 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
21896 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21898 else
21899 gcc_cv_as_ix86_cmov_sun_syntax=no
21900 if test x$gcc_cv_as != x; then
21901 echo 'cmovl.l %edx, %eax' > conftest.s
21902 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21905 ac_status=$?
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; }
21908 then
21909 gcc_cv_as_ix86_cmov_sun_syntax=yes
21910 else
21911 echo "configure: failed program was" >&5
21912 cat conftest.s >&5
21914 rm -f conftest.o conftest.s
21917 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21918 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
21919 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
21921 cat >>confdefs.h <<\_ACEOF
21922 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
21923 _ACEOF
21927 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
21928 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
21929 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21931 else
21932 gcc_cv_as_ix86_ffreep=no
21933 if test x$gcc_cv_as != x; then
21934 echo 'ffreep %st(1)' > conftest.s
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); }; }
21941 then
21942 gcc_cv_as_ix86_ffreep=yes
21943 else
21944 echo "configure: failed program was" >&5
21945 cat conftest.s >&5
21947 rm -f conftest.o conftest.s
21950 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
21951 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
21952 if test $gcc_cv_as_ix86_ffreep = yes; then
21954 cat >>confdefs.h <<\_ACEOF
21955 #define HAVE_AS_IX86_FFREEP 1
21956 _ACEOF
21960 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
21961 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
21962 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 else
21965 gcc_cv_as_ix86_sahf=no
21966 if test x$gcc_cv_as != x; then
21967 echo 'sahf' > conftest.s
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); }; }
21974 then
21975 gcc_cv_as_ix86_sahf=yes
21976 else
21977 echo "configure: failed program was" >&5
21978 cat conftest.s >&5
21980 rm -f conftest.o conftest.s
21983 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
21984 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
21985 if test $gcc_cv_as_ix86_sahf = yes; then
21987 cat >>confdefs.h <<\_ACEOF
21988 #define HAVE_AS_IX86_SAHF 1
21989 _ACEOF
21993 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
21994 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
21995 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
21996 echo $ECHO_N "(cached) $ECHO_C" >&6
21997 else
21998 gcc_cv_as_ix86_diff_sect_delta=no
21999 if test x$gcc_cv_as != x; then
22000 echo '.section .rodata
22001 .L1:
22002 .long .L2-.L1
22003 .long .L3-.L1
22004 .text
22005 .L3: nop
22006 .L2: nop' > conftest.s
22007 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22010 ac_status=$?
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; }
22013 then
22014 gcc_cv_as_ix86_diff_sect_delta=yes
22015 else
22016 echo "configure: failed program was" >&5
22017 cat conftest.s >&5
22019 rm -f conftest.o conftest.s
22022 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22023 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22024 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22026 cat >>confdefs.h <<\_ACEOF
22027 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22028 _ACEOF
22032 # This one is used unconditionally by i386.[ch]; it is to be defined
22033 # to 1 if the feature is present, 0 otherwise.
22034 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22035 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22036 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22039 gcc_cv_as_ix86_gotoff_in_data=no
22040 if test $in_tree_gas = yes; then
22041 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22042 then gcc_cv_as_ix86_gotoff_in_data=yes
22044 elif test x$gcc_cv_as != x; then
22045 echo ' .text
22046 .L0:
22048 .data
22049 .long .L0@GOTOFF' > conftest.s
22050 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22052 (eval $ac_try) 2>&5
22053 ac_status=$?
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; }
22056 then
22057 gcc_cv_as_ix86_gotoff_in_data=yes
22058 else
22059 echo "configure: failed program was" >&5
22060 cat conftest.s >&5
22062 rm -f conftest.o conftest.s
22065 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22066 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22069 cat >>confdefs.h <<_ACEOF
22070 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22071 _ACEOF
22075 ia64*-*-*)
22076 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22077 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22078 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22079 echo $ECHO_N "(cached) $ECHO_C" >&6
22080 else
22081 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22082 if test $in_tree_gas = yes; then
22083 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22084 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22086 elif test x$gcc_cv_as != x; then
22087 echo ' .text
22088 addl r15 = @ltoffx(x#), gp
22090 ld8.mov r16 = [r15], x#' > conftest.s
22091 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093 (eval $ac_try) 2>&5
22094 ac_status=$?
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; }
22097 then
22098 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22099 else
22100 echo "configure: failed program was" >&5
22101 cat conftest.s >&5
22103 rm -f conftest.o conftest.s
22106 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22107 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22108 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22110 cat >>confdefs.h <<\_ACEOF
22111 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22112 _ACEOF
22118 powerpc*-*-*)
22119 case $target in
22120 *-*-aix*) conftest_s=' .machine "pwr5"
22121 .csect .text[PR]
22122 mfcr 3,128';;
22123 *-*-darwin*)
22124 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22125 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22126 if test "${gcc_cv_as_machine_directive+set}" = set; then
22127 echo $ECHO_N "(cached) $ECHO_C" >&6
22128 else
22129 gcc_cv_as_machine_directive=no
22130 if test x$gcc_cv_as != x; then
22131 echo ' .machine ppc7400' > conftest.s
22132 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134 (eval $ac_try) 2>&5
22135 ac_status=$?
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; }
22138 then
22139 gcc_cv_as_machine_directive=yes
22140 else
22141 echo "configure: failed program was" >&5
22142 cat conftest.s >&5
22144 rm -f conftest.o conftest.s
22147 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22148 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22150 if test x$gcc_cv_as_machine_directive != xyes; then
22151 echo "*** This target requires an assembler supporting \".machine\"" >&2
22152 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22153 test x$build = x$target && exit 1
22155 conftest_s=' .text
22156 mfcr r3,128';;
22157 *) conftest_s=' .machine power4
22158 .text
22159 mfcr 3,128';;
22160 esac
22162 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22163 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22164 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22165 echo $ECHO_N "(cached) $ECHO_C" >&6
22166 else
22167 gcc_cv_as_powerpc_mfcrf=no
22168 if test $in_tree_gas = yes; then
22169 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22170 then gcc_cv_as_powerpc_mfcrf=yes
22172 elif test x$gcc_cv_as != x; then
22173 echo "$conftest_s" > conftest.s
22174 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22176 (eval $ac_try) 2>&5
22177 ac_status=$?
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; }
22180 then
22181 gcc_cv_as_powerpc_mfcrf=yes
22182 else
22183 echo "configure: failed program was" >&5
22184 cat conftest.s >&5
22186 rm -f conftest.o conftest.s
22189 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22190 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
22191 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22193 cat >>confdefs.h <<\_ACEOF
22194 #define HAVE_AS_MFCRF 1
22195 _ACEOF
22199 case $target in
22200 *-*-aix*) conftest_s=' .machine "pwr5"
22201 .csect .text[PR]
22202 popcntb 3,3';;
22203 *) conftest_s=' .machine power5
22204 .text
22205 popcntb 3,3';;
22206 esac
22208 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22209 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22210 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22211 echo $ECHO_N "(cached) $ECHO_C" >&6
22212 else
22213 gcc_cv_as_powerpc_popcntb=no
22214 if test $in_tree_gas = yes; then
22215 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22216 then gcc_cv_as_powerpc_popcntb=yes
22218 elif test x$gcc_cv_as != x; then
22219 echo "$conftest_s" > conftest.s
22220 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22223 ac_status=$?
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }
22226 then
22227 gcc_cv_as_powerpc_popcntb=yes
22228 else
22229 echo "configure: failed program was" >&5
22230 cat conftest.s >&5
22232 rm -f conftest.o conftest.s
22235 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22236 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
22237 if test $gcc_cv_as_powerpc_popcntb = yes; then
22239 cat >>confdefs.h <<\_ACEOF
22240 #define HAVE_AS_POPCNTB 1
22241 _ACEOF
22245 case $target in
22246 *-*-aix*) conftest_s=' .machine "pwr5x"
22247 .csect .text[PR]
22248 frin 1,1';;
22249 *) conftest_s=' .machine power5
22250 .text
22251 frin 1,1';;
22252 esac
22254 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22255 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
22256 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259 gcc_cv_as_powerpc_fprnd=no
22260 if test $in_tree_gas = yes; then
22261 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22262 then gcc_cv_as_powerpc_fprnd=yes
22264 elif test x$gcc_cv_as != x; then
22265 echo "$conftest_s" > conftest.s
22266 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268 (eval $ac_try) 2>&5
22269 ac_status=$?
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }
22272 then
22273 gcc_cv_as_powerpc_fprnd=yes
22274 else
22275 echo "configure: failed program was" >&5
22276 cat conftest.s >&5
22278 rm -f conftest.o conftest.s
22281 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22282 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
22283 if test $gcc_cv_as_powerpc_fprnd = yes; then
22285 cat >>confdefs.h <<\_ACEOF
22286 #define HAVE_AS_FPRND 1
22287 _ACEOF
22291 case $target in
22292 *-*-aix*) conftest_s=' .machine "pwr6"
22293 .csect .text[PR]
22294 mffgpr 1,3';;
22295 *) conftest_s=' .machine power6
22296 .text
22297 mffgpr 1,3';;
22298 esac
22300 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22301 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
22302 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22303 echo $ECHO_N "(cached) $ECHO_C" >&6
22304 else
22305 gcc_cv_as_powerpc_mfpgpr=no
22306 if test $in_tree_gas = yes; then
22307 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22308 then gcc_cv_as_powerpc_mfpgpr=yes
22310 elif test x$gcc_cv_as != x; then
22311 echo "$conftest_s" > conftest.s
22312 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }
22318 then
22319 gcc_cv_as_powerpc_mfpgpr=yes
22320 else
22321 echo "configure: failed program was" >&5
22322 cat conftest.s >&5
22324 rm -f conftest.o conftest.s
22327 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22328 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
22329 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22331 cat >>confdefs.h <<\_ACEOF
22332 #define HAVE_AS_MFPGPR 1
22333 _ACEOF
22337 case $target in
22338 *-*-aix*) conftest_s=' .csect .text[PR]
22339 LCF..0:
22340 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22341 *-*-darwin*)
22342 conftest_s=' .text
22343 LCF0:
22344 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22345 *) conftest_s=' .text
22346 .LCF0:
22347 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22348 esac
22350 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22351 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
22352 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22354 else
22355 gcc_cv_as_powerpc_rel16=no
22356 if test $in_tree_gas = yes; then
22357 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22358 then gcc_cv_as_powerpc_rel16=yes
22360 elif test x$gcc_cv_as != x; then
22361 echo "$conftest_s" > conftest.s
22362 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22364 (eval $ac_try) 2>&5
22365 ac_status=$?
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); }; }
22368 then
22369 gcc_cv_as_powerpc_rel16=yes
22370 else
22371 echo "configure: failed program was" >&5
22372 cat conftest.s >&5
22374 rm -f conftest.o conftest.s
22377 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22378 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
22379 if test $gcc_cv_as_powerpc_rel16 = yes; then
22381 cat >>confdefs.h <<\_ACEOF
22382 #define HAVE_AS_REL16 1
22383 _ACEOF
22387 case $target in
22388 *-*-aix*) conftest_s=' .machine "pwr6"
22389 .csect .text[PR]
22390 cmpb 3,4,5';;
22391 *) conftest_s=' .machine power6
22392 .text
22393 cmpb 3,4,5';;
22394 esac
22396 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22397 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
22398 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 else
22401 gcc_cv_as_powerpc_cmpb=no
22402 if test $in_tree_gas = yes; then
22403 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22404 then gcc_cv_as_powerpc_cmpb=yes
22406 elif test x$gcc_cv_as != x; then
22407 echo "$conftest_s" > conftest.s
22408 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410 (eval $ac_try) 2>&5
22411 ac_status=$?
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; }
22414 then
22415 gcc_cv_as_powerpc_cmpb=yes
22416 else
22417 echo "configure: failed program was" >&5
22418 cat conftest.s >&5
22420 rm -f conftest.o conftest.s
22423 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22424 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
22425 if test $gcc_cv_as_powerpc_cmpb = yes; then
22427 cat >>confdefs.h <<\_ACEOF
22428 #define HAVE_AS_CMPB 1
22429 _ACEOF
22433 case $target in
22434 *-*-aix*) conftest_s=' .machine "pwr6"
22435 .csect .text[PR]
22436 dadd 1,2,3';;
22437 *) conftest_s=' .machine power6
22438 .text
22439 dadd 1,2,3';;
22440 esac
22442 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22443 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
22444 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22445 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 else
22447 gcc_cv_as_powerpc_dfp=no
22448 if test $in_tree_gas = yes; then
22449 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22450 then gcc_cv_as_powerpc_dfp=yes
22452 elif test x$gcc_cv_as != x; then
22453 echo "$conftest_s" > conftest.s
22454 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456 (eval $ac_try) 2>&5
22457 ac_status=$?
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; }
22460 then
22461 gcc_cv_as_powerpc_dfp=yes
22462 else
22463 echo "configure: failed program was" >&5
22464 cat conftest.s >&5
22466 rm -f conftest.o conftest.s
22469 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22470 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
22471 if test $gcc_cv_as_powerpc_dfp = yes; then
22473 cat >>confdefs.h <<\_ACEOF
22474 #define HAVE_AS_DFP 1
22475 _ACEOF
22479 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22480 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22481 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22482 echo $ECHO_N "(cached) $ECHO_C" >&6
22483 else
22484 gcc_cv_as_powerpc_gnu_attribute=no
22485 if test $in_tree_gas = yes; then
22486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22487 then gcc_cv_as_powerpc_gnu_attribute=yes
22489 elif test x$gcc_cv_as != x; then
22490 echo '.gnu_attribute 4,1' > conftest.s
22491 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }
22497 then
22498 gcc_cv_as_powerpc_gnu_attribute=yes
22499 else
22500 echo "configure: failed program was" >&5
22501 cat conftest.s >&5
22503 rm -f conftest.o conftest.s
22506 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22507 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
22508 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22510 cat >>confdefs.h <<\_ACEOF
22511 #define HAVE_AS_GNU_ATTRIBUTE 1
22512 _ACEOF
22517 mips*-*-*)
22518 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22519 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22520 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22521 echo $ECHO_N "(cached) $ECHO_C" >&6
22522 else
22523 gcc_cv_as_mips_explicit_relocs=no
22524 if test $in_tree_gas = yes; then
22525 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22526 then gcc_cv_as_mips_explicit_relocs=yes
22528 elif test x$gcc_cv_as != x; then
22529 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
22530 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532 (eval $ac_try) 2>&5
22533 ac_status=$?
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; }
22536 then
22537 gcc_cv_as_mips_explicit_relocs=yes
22538 else
22539 echo "configure: failed program was" >&5
22540 cat conftest.s >&5
22542 rm -f conftest.o conftest.s
22545 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22546 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
22547 if test $gcc_cv_as_mips_explicit_relocs = yes; then
22548 if test x$target_cpu_default = x
22549 then target_cpu_default=MASK_EXPLICIT_RELOCS
22550 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22553 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22554 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
22555 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 else
22558 gcc_cv_as_mips_no_shared=no
22559 if test $in_tree_gas = yes; then
22560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22561 then gcc_cv_as_mips_no_shared=yes
22563 elif test x$gcc_cv_as != x; then
22564 echo 'nop' > conftest.s
22565 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22567 (eval $ac_try) 2>&5
22568 ac_status=$?
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); }; }
22571 then
22572 gcc_cv_as_mips_no_shared=yes
22573 else
22574 echo "configure: failed program was" >&5
22575 cat conftest.s >&5
22577 rm -f conftest.o conftest.s
22580 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22581 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
22582 if test $gcc_cv_as_mips_no_shared = yes; then
22584 cat >>confdefs.h <<\_ACEOF
22585 #define HAVE_AS_NO_SHARED 1
22586 _ACEOF
22590 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22591 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22592 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
22594 else
22595 gcc_cv_as_mips_gnu_attribute=no
22596 if test $in_tree_gas = yes; then
22597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22598 then gcc_cv_as_mips_gnu_attribute=yes
22600 elif test x$gcc_cv_as != x; then
22601 echo '.gnu_attribute 4,1' > conftest.s
22602 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22605 ac_status=$?
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; }
22608 then
22609 gcc_cv_as_mips_gnu_attribute=yes
22610 else
22611 echo "configure: failed program was" >&5
22612 cat conftest.s >&5
22614 rm -f conftest.o conftest.s
22617 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22618 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22619 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22621 cat >>confdefs.h <<\_ACEOF
22622 #define HAVE_AS_GNU_ATTRIBUTE 1
22623 _ACEOF
22627 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22628 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22629 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22630 echo $ECHO_N "(cached) $ECHO_C" >&6
22631 else
22632 gcc_cv_as_mips_dtprelword=no
22633 if test $in_tree_gas = yes; then
22634 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22635 then gcc_cv_as_mips_dtprelword=yes
22637 elif test x$gcc_cv_as != x; then
22638 echo '.section .tdata,"awT",@progbits
22640 .word 2
22641 .text
22642 .dtprelword x+0x8000' > conftest.s
22643 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645 (eval $ac_try) 2>&5
22646 ac_status=$?
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); }; }
22649 then
22650 gcc_cv_as_mips_dtprelword=yes
22651 else
22652 echo "configure: failed program was" >&5
22653 cat conftest.s >&5
22655 rm -f conftest.o conftest.s
22658 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22659 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22660 if test $gcc_cv_as_mips_dtprelword = yes; then
22662 cat >>confdefs.h <<\_ACEOF
22663 #define HAVE_AS_DTPRELWORD 1
22664 _ACEOF
22668 esac
22670 # Mips and HP-UX need the GNU assembler.
22671 # Linux on IA64 might be able to use the Intel assembler.
22673 case "$target" in
22674 mips*-*-* | *-*-hpux* )
22675 if test x$gas_flag = xyes \
22676 || test x"$host" != x"$build" \
22677 || test ! -x "$gcc_cv_as" \
22678 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
22680 else
22681 echo "*** This configuration requires the GNU assembler" >&2
22682 exit 1
22685 esac
22687 # ??? Not all targets support dwarf2 debug_line, even within a version
22688 # of gas. Moreover, we need to emit a valid instruction to trigger any
22689 # info to the output file. So, as supported targets are added to gas 2.11,
22690 # add some instruction here to (also) show we expect this might work.
22691 # ??? Once 2.11 is released, probably need to add first known working
22692 # version to the per-target configury.
22693 case "$target" in
22694 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
22695 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
22696 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* \
22697 | spu-*-* | fido*-*-*)
22698 insn="nop"
22700 ia64*-*-* | s390*-*-*)
22701 insn="nop 0"
22703 mmix-*-*)
22704 insn="swym 0"
22706 esac
22707 if test x"$insn" != x; then
22708 conftest_s="\
22709 .file 1 \"conftest.s\"
22710 .loc 1 3 0
22711 $insn"
22712 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22713 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22714 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22715 echo $ECHO_N "(cached) $ECHO_C" >&6
22716 else
22717 gcc_cv_as_dwarf2_debug_line=no
22718 if test $in_tree_gas = yes; then
22719 if test $in_tree_gas_is_elf = yes \
22720 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22721 then gcc_cv_as_dwarf2_debug_line=yes
22723 elif test x$gcc_cv_as != x; then
22724 echo "$conftest_s" > conftest.s
22725 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22727 (eval $ac_try) 2>&5
22728 ac_status=$?
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); }; }
22731 then
22732 if test x$gcc_cv_objdump != x \
22733 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
22734 | grep debug_line > /dev/null 2>&1; then
22735 gcc_cv_as_dwarf2_debug_line=yes
22737 else
22738 echo "configure: failed program was" >&5
22739 cat conftest.s >&5
22741 rm -f conftest.o conftest.s
22744 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22745 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22748 # The .debug_line file table must be in the exact order that
22749 # we specified the files, since these indices are also used
22750 # by DW_AT_decl_file. Approximate this test by testing if
22751 # the assembler bitches if the same index is assigned twice.
22752 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22753 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22754 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22755 echo $ECHO_N "(cached) $ECHO_C" >&6
22756 else
22757 gcc_cv_as_dwarf2_file_buggy=no
22758 if test x$gcc_cv_as != x; then
22759 echo ' .file 1 "foo.s"
22760 .file 1 "bar.s"' > conftest.s
22761 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22763 (eval $ac_try) 2>&5
22764 ac_status=$?
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); }; }
22767 then
22768 gcc_cv_as_dwarf2_file_buggy=yes
22769 else
22770 echo "configure: failed program was" >&5
22771 cat conftest.s >&5
22773 rm -f conftest.o conftest.s
22776 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22777 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22780 if test $gcc_cv_as_dwarf2_debug_line = yes \
22781 && test $gcc_cv_as_dwarf2_file_buggy = no; then
22783 cat >>confdefs.h <<\_ACEOF
22784 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22785 _ACEOF
22789 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22790 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22791 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22792 echo $ECHO_N "(cached) $ECHO_C" >&6
22793 else
22794 gcc_cv_as_gdwarf2_flag=no
22795 if test $in_tree_gas = yes; then
22796 if test $in_tree_gas_is_elf = yes \
22797 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22798 then gcc_cv_as_gdwarf2_flag=yes
22800 elif test x$gcc_cv_as != x; then
22801 echo "$insn" > conftest.s
22802 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }
22808 then
22809 gcc_cv_as_gdwarf2_flag=yes
22810 else
22811 echo "configure: failed program was" >&5
22812 cat conftest.s >&5
22814 rm -f conftest.o conftest.s
22817 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22818 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
22819 if test $gcc_cv_as_gdwarf2_flag = yes; then
22821 cat >>confdefs.h <<\_ACEOF
22822 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
22823 _ACEOF
22827 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22828 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
22829 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22830 echo $ECHO_N "(cached) $ECHO_C" >&6
22831 else
22832 gcc_cv_as_gstabs_flag=no
22833 if test $in_tree_gas = yes; then
22834 if test $in_tree_gas_is_elf = yes \
22835 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22836 then gcc_cv_as_gstabs_flag=yes
22838 elif test x$gcc_cv_as != x; then
22839 echo "$insn" > conftest.s
22840 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842 (eval $ac_try) 2>&5
22843 ac_status=$?
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); }; }
22846 then
22847 # The native Solaris 9/Intel assembler doesn't understand --gstabs
22848 # and warns about it, but still exits successfully. So check for
22849 # this.
22850 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22853 ac_status=$?
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); }; }
22856 then :
22857 else gcc_cv_as_gstabs_flag=yes
22859 else
22860 echo "configure: failed program was" >&5
22861 cat conftest.s >&5
22863 rm -f conftest.o conftest.s
22866 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22867 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
22868 if test $gcc_cv_as_gstabs_flag = yes; then
22870 cat >>confdefs.h <<\_ACEOF
22871 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
22872 _ACEOF
22876 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22877 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
22878 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22879 echo $ECHO_N "(cached) $ECHO_C" >&6
22880 else
22881 gcc_cv_as_debug_prefix_map_flag=no
22882 if test $in_tree_gas = yes; then
22883 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22884 then gcc_cv_as_debug_prefix_map_flag=yes
22886 elif test x$gcc_cv_as != x; then
22887 echo "$insn" > conftest.s
22888 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890 (eval $ac_try) 2>&5
22891 ac_status=$?
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); }; }
22894 then
22895 gcc_cv_as_debug_prefix_map_flag=yes
22896 else
22897 echo "configure: failed program was" >&5
22898 cat conftest.s >&5
22900 rm -f conftest.o conftest.s
22903 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22904 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
22905 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22907 cat >>confdefs.h <<\_ACEOF
22908 #define HAVE_AS_DEBUG_PREFIX_MAP 1
22909 _ACEOF
22914 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22915 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
22916 if test "${gcc_cv_as_line_zero+set}" = set; then
22917 echo $ECHO_N "(cached) $ECHO_C" >&6
22918 else
22919 gcc_cv_as_line_zero=no
22920 if test $in_tree_gas = yes; then
22921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22922 then gcc_cv_as_line_zero=yes
22924 elif test "x$gcc_cv_as" != x; then
22925 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22926 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928 (eval $ac_try) 2>&5
22929 ac_status=$?
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; } &&
22932 test "x`cat conftest.out`" = x
22933 then
22934 gcc_cv_as_line_zero=yes
22935 else
22936 echo "configure: failed program was" >&5
22937 cat conftest.s >&5
22938 echo "configure: error output was" >&5
22939 cat conftest.out >&5
22941 rm -f conftest.o conftest.s conftest.out
22944 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
22945 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
22946 if test "x$gcc_cv_as_line_zero" = xyes; then
22948 cat >>confdefs.h <<\_ACEOF
22949 #define HAVE_AS_LINE_ZERO 1
22950 _ACEOF
22954 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
22955 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
22956 gcc_cv_ld_ro_rw_mix=unknown
22957 if test $in_tree_ld = yes ; then
22958 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 \
22959 && test $in_tree_ld_is_elf = yes; then
22960 gcc_cv_ld_ro_rw_mix=read-write
22962 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22963 echo '.section myfoosect, "a"' > conftest1.s
22964 echo '.section myfoosect, "aw"' > conftest2.s
22965 echo '.byte 1' >> conftest2.s
22966 echo '.section myfoosect, "a"' > conftest3.s
22967 echo '.byte 0' >> conftest3.s
22968 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22969 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22970 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22971 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22972 conftest2.o conftest3.o > /dev/null 2>&1; then
22973 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22974 | sed -e '/myfoosect/!d' -e N`
22975 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22976 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22977 gcc_cv_ld_ro_rw_mix=read-only
22978 else
22979 gcc_cv_ld_ro_rw_mix=read-write
22983 rm -f conftest.* conftest[123].*
22985 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22987 cat >>confdefs.h <<\_ACEOF
22988 #define HAVE_LD_RO_RW_SECTION_MIXING 1
22989 _ACEOF
22992 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
22993 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
22995 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
22996 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
22997 gcc_cv_ld_eh_frame_hdr=no
22998 if test $in_tree_ld = yes ; then
22999 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 \
23000 && test $in_tree_ld_is_elf = yes; then
23001 gcc_cv_ld_eh_frame_hdr=yes
23003 elif test x$gcc_cv_ld != x; then
23004 # Check if linker supports --eh-frame-hdr option
23005 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23006 gcc_cv_ld_eh_frame_hdr=yes
23010 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23012 cat >>confdefs.h <<\_ACEOF
23013 #define HAVE_LD_EH_FRAME_HDR 1
23014 _ACEOF
23017 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23018 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23020 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23021 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23022 gcc_cv_ld_pie=no
23023 if test $in_tree_ld = yes ; then
23024 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 \
23025 && test $in_tree_ld_is_elf = yes; then
23026 gcc_cv_ld_pie=yes
23028 elif test x$gcc_cv_ld != x; then
23029 # Check if linker supports -pie option
23030 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23031 gcc_cv_ld_pie=yes
23034 if test x"$gcc_cv_ld_pie" = xyes; then
23036 cat >>confdefs.h <<\_ACEOF
23037 #define HAVE_LD_PIE 1
23038 _ACEOF
23041 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23042 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23044 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23045 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23046 gcc_cv_ld_eh_gc_sections=no
23047 if test $in_tree_ld = yes ; then
23048 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 \
23049 && test $in_tree_ld_is_elf = yes; then
23050 gcc_cv_ld_eh_gc_sections=yes
23052 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23053 cat > conftest.s <<EOF
23054 .section .text
23055 .globl _start
23056 .type _start, @function
23057 _start:
23058 .long foo
23059 .size _start, .-_start
23060 .section .text.foo,"ax",@progbits
23061 .type foo, @function
23062 foo:
23063 .long 0
23064 .size foo, .-foo
23065 .section .gcc_except_table.foo,"a",@progbits
23066 .L0:
23067 .long 0
23068 .section .eh_frame,"a",@progbits
23069 .long .L0
23071 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23072 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23073 | grep "gc-sections option ignored" > /dev/null; then
23074 gcc_cv_ld_eh_gc_sections=no
23075 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23076 gcc_cv_ld_eh_gc_sections=yes
23077 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23078 if test x$gcc_cv_as_comdat_group != xyes; then
23079 gcc_cv_ld_eh_gc_sections=no
23080 cat > conftest.s <<EOF
23081 .section .text
23082 .globl _start
23083 .type _start, @function
23084 _start:
23085 .long foo
23086 .size _start, .-_start
23087 .section .gnu.linkonce.t.foo,"ax",@progbits
23088 .type foo, @function
23089 foo:
23090 .long 0
23091 .size foo, .-foo
23092 .section .gcc_except_table.foo,"a",@progbits
23093 .L0:
23094 .long 0
23095 .section .eh_frame,"a",@progbits
23096 .long .L0
23098 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23099 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23100 | grep "gc-sections option ignored" > /dev/null; then
23101 gcc_cv_ld_eh_gc_sections=no
23102 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23103 gcc_cv_ld_eh_gc_sections=yes
23109 rm -f conftest.s conftest.o conftest
23111 case "$target" in
23112 hppa*-*-linux*)
23113 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23114 gcc_cv_ld_eh_gc_sections=no
23116 esac
23117 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23119 cat >>confdefs.h <<\_ACEOF
23120 #define HAVE_LD_EH_GC_SECTIONS 1
23121 _ACEOF
23124 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23125 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
23127 # --------
23128 # UNSORTED
23129 # --------
23131 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23132 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
23133 if test "${gcc_cv_ld_as_needed+set}" = set; then
23134 echo $ECHO_N "(cached) $ECHO_C" >&6
23135 else
23136 gcc_cv_ld_as_needed=no
23137 if test $in_tree_ld = yes ; then
23138 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 \
23139 && test $in_tree_ld_is_elf = yes; then
23140 gcc_cv_ld_as_needed=yes
23142 elif test x$gcc_cv_ld != x; then
23143 # Check if linker supports --as-needed and --no-as-needed options
23144 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23145 gcc_cv_ld_as_needed=yes
23150 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23151 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
23152 if test x"$gcc_cv_ld_as_needed" = xyes; then
23154 cat >>confdefs.h <<\_ACEOF
23155 #define HAVE_LD_AS_NEEDED 1
23156 _ACEOF
23160 case "$target:$tm_file" in
23161 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
23162 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
23163 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
23164 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
23165 echo $ECHO_N "(cached) $ECHO_C" >&6
23166 else
23167 gcc_cv_ld_no_dot_syms=no
23168 if test $in_tree_ld = yes ; then
23169 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
23170 gcc_cv_ld_no_dot_syms=yes
23172 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
23173 cat > conftest1.s <<EOF
23174 .text
23175 bl .foo
23177 cat > conftest2.s <<EOF
23178 .section ".opd","aw"
23179 .align 3
23180 .globl foo
23181 .type foo,@function
23182 foo:
23183 .quad .LEfoo,.TOC.@tocbase,0
23184 .text
23185 .LEfoo:
23187 .size foo,.-.LEfoo
23189 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
23190 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
23191 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
23192 gcc_cv_ld_no_dot_syms=yes
23194 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23198 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
23199 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
23200 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
23202 cat >>confdefs.h <<\_ACEOF
23203 #define HAVE_LD_NO_DOT_SYMS 1
23204 _ACEOF
23208 esac
23210 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23211 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
23212 if test "${gcc_cv_ld_sysroot+set}" = set; then
23213 echo $ECHO_N "(cached) $ECHO_C" >&6
23214 else
23215 gcc_cv_ld_sysroot=no
23216 if test $in_tree_ld = yes ; then
23217 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
23218 gcc_cv_ld_sysroot=yes
23220 elif test x$gcc_cv_ld != x; then
23221 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23222 gcc_cv_ld_sysroot=yes
23226 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23227 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
23228 if test x"$gcc_cv_ld_sysroot" = xyes; then
23230 cat >>confdefs.h <<\_ACEOF
23231 #define HAVE_LD_SYSROOT 1
23232 _ACEOF
23236 if test x$with_sysroot = x && test x$host = x$target \
23237 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23238 && test "$prefix" != "NONE"; then
23240 cat >>confdefs.h <<_ACEOF
23241 #define PREFIX_INCLUDE_DIR "$prefix/include"
23242 _ACEOF
23246 # Test for stack protector support in target C library.
23247 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23248 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
23249 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23250 echo $ECHO_N "(cached) $ECHO_C" >&6
23251 else
23252 gcc_cv_libc_provides_ssp=no
23253 case "$target" in
23254 *-*-linux*)
23255 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23256 if test "x$with_sysroot" = x; then
23257 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23258 elif test "x$with_build_sysroot" != "x"; then
23259 glibc_header_dir="${with_build_sysroot}/usr/include"
23260 elif test "x$with_sysroot" = xyes; then
23261 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23262 else
23263 glibc_header_dir="${with_sysroot}/usr/include"
23265 else
23266 glibc_header_dir=/usr/include
23268 # glibc 2.4 and later provides __stack_chk_fail and
23269 # either __stack_chk_guard, or TLS access to stack guard canary.
23270 if test -f $glibc_header_dir/features.h \
23271 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23272 $glibc_header_dir/features.h > /dev/null; then
23273 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23274 $glibc_header_dir/features.h > /dev/null; then
23275 gcc_cv_libc_provides_ssp=yes
23276 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23277 $glibc_header_dir/features.h > /dev/null \
23278 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23279 $glibc_header_dir/features.h > /dev/null; then
23280 gcc_cv_libc_provides_ssp=yes
23281 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23282 $glibc_header_dir/features.h > /dev/null && \
23283 test -f $glibc_header_dir/bits/uClibc_config.h && \
23284 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23285 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23286 gcc_cv_libc_provides_ssp=yes
23290 *-*-darwin*)
23291 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23292 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
23293 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23295 else
23296 cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h. */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23302 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23304 #define __stack_chk_fail innocuous___stack_chk_fail
23306 /* System header to define __stub macros and hopefully few prototypes,
23307 which can conflict with char __stack_chk_fail (); below.
23308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23309 <limits.h> exists even on freestanding compilers. */
23311 #ifdef __STDC__
23312 # include <limits.h>
23313 #else
23314 # include <assert.h>
23315 #endif
23317 #undef __stack_chk_fail
23319 /* Override any gcc2 internal prototype to avoid an error. */
23320 #ifdef __cplusplus
23321 extern "C"
23323 #endif
23324 /* We use char because int might match the return type of a gcc2
23325 builtin and then its argument prototype would still apply. */
23326 char __stack_chk_fail ();
23327 /* The GNU C library defines this for functions which it implements
23328 to always fail with ENOSYS. Some functions are actually named
23329 something starting with __ and the normal name is an alias. */
23330 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
23331 choke me
23332 #else
23333 char (*f) () = __stack_chk_fail;
23334 #endif
23335 #ifdef __cplusplus
23337 #endif
23340 main ()
23342 return f != __stack_chk_fail;
23344 return 0;
23346 _ACEOF
23347 rm -f conftest.$ac_objext conftest$ac_exeext
23348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23349 (eval $ac_link) 2>conftest.er1
23350 ac_status=$?
23351 grep -v '^ *+' conftest.er1 >conftest.err
23352 rm -f conftest.er1
23353 cat conftest.err >&5
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); } &&
23356 { ac_try='test -z "$ac_c_werror_flag"
23357 || test ! -s conftest.err'
23358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359 (eval $ac_try) 2>&5
23360 ac_status=$?
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; } &&
23363 { ac_try='test -s conftest$ac_exeext'
23364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365 (eval $ac_try) 2>&5
23366 ac_status=$?
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); }; }; then
23369 ac_cv_func___stack_chk_fail=yes
23370 else
23371 echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23374 ac_cv_func___stack_chk_fail=no
23376 rm -f conftest.err conftest.$ac_objext \
23377 conftest$ac_exeext conftest.$ac_ext
23379 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23380 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
23381 if test $ac_cv_func___stack_chk_fail = yes; then
23382 gcc_cv_libc_provides_ssp=yes
23383 else
23384 echo "no __stack_chk_fail on this target"
23388 *) gcc_cv_libc_provides_ssp=no ;;
23389 esac
23391 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23392 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
23394 if test x$gcc_cv_libc_provides_ssp = xyes; then
23396 cat >>confdefs.h <<\_ACEOF
23397 #define TARGET_LIBC_PROVIDES_SSP 1
23398 _ACEOF
23402 # Check if TFmode long double should be used by default or not.
23403 # Some glibc targets used DFmode long double, but with glibc 2.4
23404 # and later they can use TFmode.
23405 case "$target" in
23406 powerpc*-*-linux* | \
23407 powerpc*-*-gnu* | \
23408 sparc*-*-linux* | \
23409 s390*-*-linux* | \
23410 alpha*-*-linux*)
23412 # Check whether --with-long-double-128 or --without-long-double-128 was given.
23413 if test "${with_long_double_128+set}" = set; then
23414 withval="$with_long_double_128"
23415 gcc_cv_target_ldbl128="$with_long_double_128"
23416 else
23417 gcc_cv_target_ldbl128=no
23418 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23419 if test "x$with_sysroot" = x; then
23420 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23421 elif test "x$with_build_sysroot" != "x"; then
23422 glibc_header_dir="${with_build_sysroot}/usr/include"
23423 elif test "x$with_sysroot" = xyes; then
23424 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23425 else
23426 glibc_header_dir="${with_sysroot}/usr/include"
23428 else
23429 glibc_header_dir=/usr/include
23431 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23432 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23433 && gcc_cv_target_ldbl128=yes
23437 esac
23438 if test x$gcc_cv_target_ldbl128 = xyes; then
23440 cat >>confdefs.h <<\_ACEOF
23441 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
23442 _ACEOF
23446 # Find out what GC implementation we want, or may, use.
23448 # Check whether --with-gc or --without-gc was given.
23449 if test "${with_gc+set}" = set; then
23450 withval="$with_gc"
23451 case "$withval" in
23452 page)
23453 GGC=ggc-$withval
23455 zone)
23456 GGC=ggc-$withval
23458 cat >>confdefs.h <<\_ACEOF
23459 #define GGC_ZONE 1
23460 _ACEOF
23464 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23465 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23466 { (exit 1); exit 1; }; }
23468 esac
23469 else
23470 GGC=ggc-page
23473 echo "Using $GGC for garbage collection."
23475 # Use the system's zlib library.
23476 zlibdir=-L../zlib
23477 zlibinc="-I\$(srcdir)/../zlib"
23479 # Check whether --with-system-zlib or --without-system-zlib was given.
23480 if test "${with_system_zlib+set}" = set; then
23481 withval="$with_system_zlib"
23482 zlibdir=
23483 zlibinc=
23490 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23491 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23492 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23493 if test "${enable_maintainer_mode+set}" = set; then
23494 enableval="$enable_maintainer_mode"
23495 maintainer_mode=$enableval
23496 else
23497 maintainer_mode=no
23500 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23501 echo "${ECHO_T}$maintainer_mode" >&6
23503 if test "$maintainer_mode" = "yes"; then
23504 MAINT=''
23505 else
23506 MAINT='#'
23509 # --------------
23510 # Language hooks
23511 # --------------
23513 # Make empty files to contain the specs and options for each language.
23514 # Then add #include lines to for a compiler that has specs and/or options.
23516 subdirs=
23517 lang_opt_files=
23518 lang_specs_files=
23519 lang_tree_files=
23520 # These (without "all_") are set in each config-lang.in.
23521 # `language' must be a single word so is spelled singularly.
23522 all_languages=
23523 all_compilers=
23524 all_outputs='Makefile gccbug libada-mk'
23525 # List of language makefile fragments.
23526 all_lang_makefrags=
23527 # List of language subdirectory makefiles. Deprecated.
23528 all_lang_makefiles=
23529 # Additional files for gengtype
23530 all_gtfiles="$target_gtfiles"
23532 # These are the languages that are set in --enable-languages,
23533 # and are available in the GCC tree.
23534 all_selected_languages=
23536 # Add the language fragments.
23537 # Languages are added via two mechanisms. Some information must be
23538 # recorded in makefile variables, these are defined in config-lang.in.
23539 # We accumulate them and plug them into the main Makefile.
23540 # The other mechanism is a set of hooks for each of the main targets
23541 # like `clean', `install', etc.
23543 language_hooks="Make-hooks"
23545 for lang in ${srcdir}/*/config-lang.in
23547 test "$lang" = "${srcdir}/*/config-lang.in" && continue
23549 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
23550 if test "x$lang_alias" = x
23551 then
23552 echo "$lang doesn't set \$language." 1>&2
23553 exit 1
23555 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23556 subdirs="$subdirs $subdir"
23558 # $gcc_subdir is where the gcc integration files are to be found
23559 # for a language, both for internal compiler purposes (compiler
23560 # sources implementing front-end to GCC tree converters), and for
23561 # build infrastructure purposes (Make-lang.in, etc.)
23563 # This will be <subdir> (relative to $srcdir) if a line like
23564 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
23565 # is found in <langdir>/config-lang.in, and will remain <langdir>
23566 # otherwise.
23568 # Except for the language alias (fetched above), the regular
23569 # "config-lang.in" contents are always retrieved from $gcc_subdir,
23570 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
23571 # only this and the language alias.
23573 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
23574 if [ "$gcc_subdir" = "" ]; then
23575 gcc_subdir="$subdir"
23578 case ",$enable_languages," in
23579 *,$lang_alias,*)
23580 all_selected_languages="$all_selected_languages $lang_alias"
23581 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
23582 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
23585 esac
23587 language=
23588 boot_language=
23589 compilers=
23590 outputs=
23591 gtfiles=
23592 subdir_requires=
23593 . ${srcdir}/$gcc_subdir/config-lang.in
23594 if test "x$language" = x
23595 then
23596 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
23597 exit 1
23600 ok=:
23601 case ",$enable_languages," in
23602 *,$lang_alias,*) ;;
23604 for i in $subdir_requires; do
23605 test -f "${srcdir}/$i/config-lang.in" && continue
23606 ok=false
23607 break
23608 done
23610 esac
23611 $ok || continue
23613 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
23614 if test -f $srcdir/$gcc_subdir/lang.opt; then
23615 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
23617 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
23618 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
23620 if test -f ${srcdir}/$gcc_subdir/Makefile.in
23621 then all_lang_makefiles="$gcc_subdir/Makefile"
23623 all_languages="$all_languages $language"
23624 all_compilers="$all_compilers $compilers"
23625 all_outputs="$all_outputs $outputs"
23626 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
23627 done
23629 # Pick up gtfiles for c
23630 gtfiles=
23631 . ${srcdir}/c-config-lang.in
23632 all_gtfiles="$all_gtfiles [c] $gtfiles"
23634 check_languages=
23635 for language in $all_selected_languages
23637 check_languages="$check_languages check-$language"
23638 done
23640 # We link each language in with a set of hooks, reached indirectly via
23641 # lang.${target}. Only do so for selected languages.
23643 rm -f Make-hooks
23644 touch Make-hooks
23645 target_list="all.cross start.encap rest.encap tags \
23646 install-common install-man install-info install-pdf dvi pdf \
23647 html uninstall info man srcextra srcman srcinfo \
23648 mostlyclean clean distclean maintainer-clean"
23650 for t in $target_list
23653 for lang in $all_selected_languages
23655 x="$x $lang.$t"
23656 done
23657 echo "lang.$t: $x" >> Make-hooks
23658 done
23660 # --------
23661 # UNSORTED
23662 # --------
23664 # Create .gdbinit.
23666 echo "dir ." > .gdbinit
23667 echo "dir ${srcdir}" >> .gdbinit
23668 if test x$gdb_needs_out_file_path = xyes
23669 then
23670 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23672 if test "x$subdirs" != x; then
23673 for s in $subdirs
23675 echo "dir ${srcdir}/$s" >> .gdbinit
23676 done
23678 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23680 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23684 # Find a directory in which to install a shared libgcc.
23686 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23687 if test "${enable_version_specific_runtime_libs+set}" = set; then
23688 enableval="$enable_version_specific_runtime_libs"
23693 # Check whether --with-slibdir or --without-slibdir was given.
23694 if test "${with_slibdir+set}" = set; then
23695 withval="$with_slibdir"
23696 slibdir="$with_slibdir"
23697 else
23698 if test "${enable_version_specific_runtime_libs+set}" = set; then
23699 slibdir='$(libsubdir)'
23700 elif test "$host" != "$target"; then
23701 slibdir='$(build_tooldir)/lib'
23702 else
23703 slibdir='$(libdir)'
23709 # Check whether --with-datarootdir or --without-datarootdir was given.
23710 if test "${with_datarootdir+set}" = set; then
23711 withval="$with_datarootdir"
23712 datarootdir="\${prefix}/$with_datarootdir"
23713 else
23714 datarootdir='$(prefix)/share'
23719 # Check whether --with-docdir or --without-docdir was given.
23720 if test "${with_docdir+set}" = set; then
23721 withval="$with_docdir"
23722 docdir="\${prefix}/$with_docdir"
23723 else
23724 docdir='$(datarootdir)'
23729 # Check whether --with-htmldir or --without-htmldir was given.
23730 if test "${with_htmldir+set}" = set; then
23731 withval="$with_htmldir"
23732 htmldir="\${prefix}/$with_htmldir"
23733 else
23734 htmldir='$(docdir)'
23738 # Substitute configuration variables
23796 # Echo link setup.
23797 if test x${build} = x${host} ; then
23798 if test x${host} = x${target} ; then
23799 echo "Links are now set up to build a native compiler for ${target}." 1>&2
23800 else
23801 echo "Links are now set up to build a cross-compiler" 1>&2
23802 echo " from ${host} to ${target}." 1>&2
23804 else
23805 if test x${host} = x${target} ; then
23806 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23807 echo " for ${target}." 1>&2
23808 else
23809 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23810 echo " from ${host} to ${target}." 1>&2
23817 # Configure the subdirectories
23818 # AC_CONFIG_SUBDIRS($subdirs)
23820 # Create the Makefile
23821 # and configure language subdirectories
23822 ac_config_files="$ac_config_files $all_outputs"
23825 ac_config_commands="$ac_config_commands default"
23827 cat >confcache <<\_ACEOF
23828 # This file is a shell script that caches the results of configure
23829 # tests run on this system so they can be shared between configure
23830 # scripts and configure runs, see configure's option --config-cache.
23831 # It is not useful on other systems. If it contains results you don't
23832 # want to keep, you may remove or edit it.
23834 # config.status only pays attention to the cache file if you give it
23835 # the --recheck option to rerun configure.
23837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23839 # following values.
23841 _ACEOF
23843 # The following way of writing the cache mishandles newlines in values,
23844 # but we know of no workaround that is simple, portable, and efficient.
23845 # So, don't put newlines in cache variables' values.
23846 # Ultrix sh set writes to stderr and can't be redirected directly,
23847 # and sets the high bit in the cache file unless we assign to the vars.
23849 (set) 2>&1 |
23850 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23851 *ac_space=\ *)
23852 # `set' does not quote correctly, so add quotes (double-quote
23853 # substitution turns \\\\ into \\, and sed turns \\ into \).
23854 sed -n \
23855 "s/'/'\\\\''/g;
23856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23859 # `set' quotes correctly as required by POSIX, so do not add quotes.
23860 sed -n \
23861 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23863 esac;
23865 sed '
23866 t clear
23867 : clear
23868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23869 t end
23870 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23871 : end' >>confcache
23872 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23873 if test -w $cache_file; then
23874 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23875 cat confcache >$cache_file
23876 else
23877 echo "not updating unwritable cache $cache_file"
23880 rm -f confcache
23882 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23883 # Let make expand exec_prefix.
23884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23886 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23887 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23888 # trailing colons and then remove the whole line if VPATH becomes empty
23889 # (actually we leave an empty line to preserve line numbers).
23890 if test "x$srcdir" = x.; then
23891 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23892 s/:*\$(srcdir):*/:/;
23893 s/:*\${srcdir}:*/:/;
23894 s/:*@srcdir@:*/:/;
23895 s/^\([^=]*=[ ]*\):*/\1/;
23896 s/:*$//;
23897 s/^[^=]*=[ ]*$//;
23901 DEFS=-DHAVE_CONFIG_H
23903 ac_libobjs=
23904 ac_ltlibobjs=
23905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23906 # 1. Remove the extension, and $U if already installed.
23907 ac_i=`echo "$ac_i" |
23908 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23909 # 2. Add them.
23910 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23911 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23912 done
23913 LIBOBJS=$ac_libobjs
23915 LTLIBOBJS=$ac_ltlibobjs
23919 : ${CONFIG_STATUS=./config.status}
23920 ac_clean_files_save=$ac_clean_files
23921 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23922 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23923 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23924 cat >$CONFIG_STATUS <<_ACEOF
23925 #! $SHELL
23926 # Generated by $as_me.
23927 # Run this file to recreate the current configuration.
23928 # Compiler output produced by configure, useful for debugging
23929 # configure, is in config.log if it exists.
23931 debug=false
23932 ac_cs_recheck=false
23933 ac_cs_silent=false
23934 SHELL=\${CONFIG_SHELL-$SHELL}
23935 _ACEOF
23937 cat >>$CONFIG_STATUS <<\_ACEOF
23938 ## --------------------- ##
23939 ## M4sh Initialization. ##
23940 ## --------------------- ##
23942 # Be Bourne compatible
23943 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23944 emulate sh
23945 NULLCMD=:
23946 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23947 # is contrary to our usage. Disable this feature.
23948 alias -g '${1+"$@"}'='"$@"'
23949 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23950 set -o posix
23952 DUALCASE=1; export DUALCASE # for MKS sh
23954 # Support unset when possible.
23955 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23956 as_unset=unset
23957 else
23958 as_unset=false
23962 # Work around bugs in pre-3.0 UWIN ksh.
23963 $as_unset ENV MAIL MAILPATH
23964 PS1='$ '
23965 PS2='> '
23966 PS4='+ '
23968 # NLS nuisances.
23969 for as_var in \
23970 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23971 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23972 LC_TELEPHONE LC_TIME
23974 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23975 eval $as_var=C; export $as_var
23976 else
23977 $as_unset $as_var
23979 done
23981 # Required to use basename.
23982 if expr a : '\(a\)' >/dev/null 2>&1; then
23983 as_expr=expr
23984 else
23985 as_expr=false
23988 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23989 as_basename=basename
23990 else
23991 as_basename=false
23995 # Name of the executable.
23996 as_me=`$as_basename "$0" ||
23997 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23998 X"$0" : 'X\(//\)$' \| \
23999 X"$0" : 'X\(/\)$' \| \
24000 . : '\(.\)' 2>/dev/null ||
24001 echo X/"$0" |
24002 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24003 /^X\/\(\/\/\)$/{ s//\1/; q; }
24004 /^X\/\(\/\).*/{ s//\1/; q; }
24005 s/.*/./; q'`
24008 # PATH needs CR, and LINENO needs CR and PATH.
24009 # Avoid depending upon Character Ranges.
24010 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24011 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24012 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24013 as_cr_digits='0123456789'
24014 as_cr_alnum=$as_cr_Letters$as_cr_digits
24016 # The user is always right.
24017 if test "${PATH_SEPARATOR+set}" != set; then
24018 echo "#! /bin/sh" >conf$$.sh
24019 echo "exit 0" >>conf$$.sh
24020 chmod +x conf$$.sh
24021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24022 PATH_SEPARATOR=';'
24023 else
24024 PATH_SEPARATOR=:
24026 rm -f conf$$.sh
24030 as_lineno_1=$LINENO
24031 as_lineno_2=$LINENO
24032 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24033 test "x$as_lineno_1" != "x$as_lineno_2" &&
24034 test "x$as_lineno_3" = "x$as_lineno_2" || {
24035 # Find who we are. Look in the path if we contain no path at all
24036 # relative or not.
24037 case $0 in
24038 *[\\/]* ) as_myself=$0 ;;
24039 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24040 for as_dir in $PATH
24042 IFS=$as_save_IFS
24043 test -z "$as_dir" && as_dir=.
24044 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24045 done
24048 esac
24049 # We did not find ourselves, most probably we were run as `sh COMMAND'
24050 # in which case we are not to be found in the path.
24051 if test "x$as_myself" = x; then
24052 as_myself=$0
24054 if test ! -f "$as_myself"; then
24055 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24056 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24057 { (exit 1); exit 1; }; }
24059 case $CONFIG_SHELL in
24061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24062 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24064 IFS=$as_save_IFS
24065 test -z "$as_dir" && as_dir=.
24066 for as_base in sh bash ksh sh5; do
24067 case $as_dir in
24069 if ("$as_dir/$as_base" -c '
24070 as_lineno_1=$LINENO
24071 as_lineno_2=$LINENO
24072 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24073 test "x$as_lineno_1" != "x$as_lineno_2" &&
24074 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24075 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24076 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24077 CONFIG_SHELL=$as_dir/$as_base
24078 export CONFIG_SHELL
24079 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24080 fi;;
24081 esac
24082 done
24083 done
24085 esac
24087 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24088 # uniformly replaced by the line number. The first 'sed' inserts a
24089 # line-number line before each line; the second 'sed' does the real
24090 # work. The second script uses 'N' to pair each line-number line
24091 # with the numbered line, and appends trailing '-' during
24092 # substitution so that $LINENO is not a special case at line end.
24093 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24094 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24095 sed '=' <$as_myself |
24096 sed '
24098 s,$,-,
24099 : loop
24100 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24101 t loop
24102 s,-$,,
24103 s,^['$as_cr_digits']*\n,,
24104 ' >$as_me.lineno &&
24105 chmod +x $as_me.lineno ||
24106 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24107 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24108 { (exit 1); exit 1; }; }
24110 # Don't try to exec as it changes $[0], causing all sort of problems
24111 # (the dirname of $[0] is not the place where we might find the
24112 # original and so on. Autoconf is especially sensible to this).
24113 . ./$as_me.lineno
24114 # Exit status is that of the last command.
24115 exit
24119 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24120 *c*,-n*) ECHO_N= ECHO_C='
24121 ' ECHO_T=' ' ;;
24122 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24123 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24124 esac
24126 if expr a : '\(a\)' >/dev/null 2>&1; then
24127 as_expr=expr
24128 else
24129 as_expr=false
24132 rm -f conf$$ conf$$.exe conf$$.file
24133 echo >conf$$.file
24134 if ln -s conf$$.file conf$$ 2>/dev/null; then
24135 # We could just check for DJGPP; but this test a) works b) is more generic
24136 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24137 if test -f conf$$.exe; then
24138 # Don't use ln at all; we don't have any links
24139 as_ln_s='cp -p'
24140 else
24141 as_ln_s='ln -s'
24143 elif ln conf$$.file conf$$ 2>/dev/null; then
24144 as_ln_s=ln
24145 else
24146 as_ln_s='cp -p'
24148 rm -f conf$$ conf$$.exe conf$$.file
24150 if mkdir -p . 2>/dev/null; then
24151 as_mkdir_p=:
24152 else
24153 test -d ./-p && rmdir ./-p
24154 as_mkdir_p=false
24157 as_executable_p="test -f"
24159 # Sed expression to map a string onto a valid CPP name.
24160 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24162 # Sed expression to map a string onto a valid variable name.
24163 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24166 # IFS
24167 # We need space, tab and new line, in precisely that order.
24168 as_nl='
24170 IFS=" $as_nl"
24172 # CDPATH.
24173 $as_unset CDPATH
24175 exec 6>&1
24177 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24178 # report actual input values of CONFIG_FILES etc. instead of their
24179 # values after options handling. Logging --version etc. is OK.
24180 exec 5>>config.log
24182 echo
24183 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24184 ## Running $as_me. ##
24185 _ASBOX
24186 } >&5
24187 cat >&5 <<_CSEOF
24189 This file was extended by $as_me, which was
24190 generated by GNU Autoconf 2.59. Invocation command line was
24192 CONFIG_FILES = $CONFIG_FILES
24193 CONFIG_HEADERS = $CONFIG_HEADERS
24194 CONFIG_LINKS = $CONFIG_LINKS
24195 CONFIG_COMMANDS = $CONFIG_COMMANDS
24196 $ $0 $@
24198 _CSEOF
24199 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24200 echo >&5
24201 _ACEOF
24203 # Files that config.status was made for.
24204 if test -n "$ac_config_files"; then
24205 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24208 if test -n "$ac_config_headers"; then
24209 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24212 if test -n "$ac_config_links"; then
24213 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24216 if test -n "$ac_config_commands"; then
24217 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24220 cat >>$CONFIG_STATUS <<\_ACEOF
24222 ac_cs_usage="\
24223 \`$as_me' instantiates files from templates according to the
24224 current configuration.
24226 Usage: $0 [OPTIONS] [FILE]...
24228 -h, --help print this help, then exit
24229 -V, --version print version number, then exit
24230 -q, --quiet do not print progress messages
24231 -d, --debug don't remove temporary files
24232 --recheck update $as_me by reconfiguring in the same conditions
24233 --file=FILE[:TEMPLATE]
24234 instantiate the configuration file FILE
24235 --header=FILE[:TEMPLATE]
24236 instantiate the configuration header FILE
24238 Configuration files:
24239 $config_files
24241 Configuration headers:
24242 $config_headers
24244 Configuration commands:
24245 $config_commands
24247 Report bugs to <bug-autoconf@gnu.org>."
24248 _ACEOF
24250 cat >>$CONFIG_STATUS <<_ACEOF
24251 ac_cs_version="\\
24252 config.status
24253 configured by $0, generated by GNU Autoconf 2.59,
24254 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24256 Copyright (C) 2003 Free Software Foundation, Inc.
24257 This config.status script is free software; the Free Software Foundation
24258 gives unlimited permission to copy, distribute and modify it."
24259 srcdir=$srcdir
24260 _ACEOF
24262 cat >>$CONFIG_STATUS <<\_ACEOF
24263 # If no file are specified by the user, then we need to provide default
24264 # value. By we need to know if files were specified by the user.
24265 ac_need_defaults=:
24266 while test $# != 0
24268 case $1 in
24269 --*=*)
24270 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24271 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24272 ac_shift=:
24275 ac_option=$1
24276 ac_optarg=$2
24277 ac_shift=shift
24279 *) # This is not an option, so the user has probably given explicit
24280 # arguments.
24281 ac_option=$1
24282 ac_need_defaults=false;;
24283 esac
24285 case $ac_option in
24286 # Handling of the options.
24287 _ACEOF
24288 cat >>$CONFIG_STATUS <<\_ACEOF
24289 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24290 ac_cs_recheck=: ;;
24291 --version | --vers* | -V )
24292 echo "$ac_cs_version"; exit 0 ;;
24293 --he | --h)
24294 # Conflict between --help and --header
24295 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24296 Try \`$0 --help' for more information." >&5
24297 echo "$as_me: error: ambiguous option: $1
24298 Try \`$0 --help' for more information." >&2;}
24299 { (exit 1); exit 1; }; };;
24300 --help | --hel | -h )
24301 echo "$ac_cs_usage"; exit 0 ;;
24302 --debug | --d* | -d )
24303 debug=: ;;
24304 --file | --fil | --fi | --f )
24305 $ac_shift
24306 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24307 ac_need_defaults=false;;
24308 --header | --heade | --head | --hea )
24309 $ac_shift
24310 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24311 ac_need_defaults=false;;
24312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24313 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24314 ac_cs_silent=: ;;
24316 # This is an error.
24317 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24318 Try \`$0 --help' for more information." >&5
24319 echo "$as_me: error: unrecognized option: $1
24320 Try \`$0 --help' for more information." >&2;}
24321 { (exit 1); exit 1; }; } ;;
24323 *) ac_config_targets="$ac_config_targets $1" ;;
24325 esac
24326 shift
24327 done
24329 ac_configure_extra_args=
24331 if $ac_cs_silent; then
24332 exec 6>/dev/null
24333 ac_configure_extra_args="$ac_configure_extra_args --silent"
24336 _ACEOF
24337 cat >>$CONFIG_STATUS <<_ACEOF
24338 if \$ac_cs_recheck; then
24339 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24340 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24343 _ACEOF
24345 cat >>$CONFIG_STATUS <<_ACEOF
24347 # INIT-COMMANDS section.
24350 subdirs='$subdirs'
24352 _ACEOF
24356 cat >>$CONFIG_STATUS <<\_ACEOF
24357 for ac_config_target in $ac_config_targets
24359 case "$ac_config_target" in
24360 # Handling of arguments.
24361 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
24362 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24363 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
24364 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
24365 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24366 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
24367 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24368 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24369 { (exit 1); exit 1; }; };;
24370 esac
24371 done
24373 # If the user did not use the arguments to specify the items to instantiate,
24374 # then the envvar interface is used. Set only those that are not.
24375 # We use the long form for the default assignment because of an extremely
24376 # bizarre bug on SunOS 4.1.3.
24377 if $ac_need_defaults; then
24378 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24379 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24380 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24383 # Have a temporary directory for convenience. Make it in the build tree
24384 # simply because there is no reason to put it here, and in addition,
24385 # creating and moving files from /tmp can sometimes cause problems.
24386 # Create a temporary directory, and hook for its removal unless debugging.
24387 $debug ||
24389 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24390 trap '{ (exit 1); exit 1; }' 1 2 13 15
24393 # Create a (secure) tmp directory for tmp files.
24396 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24397 test -n "$tmp" && test -d "$tmp"
24398 } ||
24400 tmp=./confstat$$-$RANDOM
24401 (umask 077 && mkdir $tmp)
24402 } ||
24404 echo "$me: cannot create a temporary directory in ." >&2
24405 { (exit 1); exit 1; }
24408 _ACEOF
24410 cat >>$CONFIG_STATUS <<_ACEOF
24413 # CONFIG_FILES section.
24416 # No need to generate the scripts if there are no CONFIG_FILES.
24417 # This happens for instance when ./config.status config.h
24418 if test -n "\$CONFIG_FILES"; then
24419 # Protect against being on the right side of a sed subst in config.status.
24420 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24421 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24422 s,@SHELL@,$SHELL,;t t
24423 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24424 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24425 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24426 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24427 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24428 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24429 s,@exec_prefix@,$exec_prefix,;t t
24430 s,@prefix@,$prefix,;t t
24431 s,@program_transform_name@,$program_transform_name,;t t
24432 s,@bindir@,$bindir,;t t
24433 s,@sbindir@,$sbindir,;t t
24434 s,@libexecdir@,$libexecdir,;t t
24435 s,@datadir@,$datadir,;t t
24436 s,@sysconfdir@,$sysconfdir,;t t
24437 s,@sharedstatedir@,$sharedstatedir,;t t
24438 s,@localstatedir@,$localstatedir,;t t
24439 s,@libdir@,$libdir,;t t
24440 s,@includedir@,$includedir,;t t
24441 s,@oldincludedir@,$oldincludedir,;t t
24442 s,@infodir@,$infodir,;t t
24443 s,@mandir@,$mandir,;t t
24444 s,@build_alias@,$build_alias,;t t
24445 s,@host_alias@,$host_alias,;t t
24446 s,@target_alias@,$target_alias,;t t
24447 s,@DEFS@,$DEFS,;t t
24448 s,@ECHO_C@,$ECHO_C,;t t
24449 s,@ECHO_N@,$ECHO_N,;t t
24450 s,@ECHO_T@,$ECHO_T,;t t
24451 s,@LIBS@,$LIBS,;t t
24452 s,@build@,$build,;t t
24453 s,@build_cpu@,$build_cpu,;t t
24454 s,@build_vendor@,$build_vendor,;t t
24455 s,@build_os@,$build_os,;t t
24456 s,@host@,$host,;t t
24457 s,@host_cpu@,$host_cpu,;t t
24458 s,@host_vendor@,$host_vendor,;t t
24459 s,@host_os@,$host_os,;t t
24460 s,@target@,$target,;t t
24461 s,@target_cpu@,$target_cpu,;t t
24462 s,@target_vendor@,$target_vendor,;t t
24463 s,@target_os@,$target_os,;t t
24464 s,@target_noncanonical@,$target_noncanonical,;t t
24465 s,@build_libsubdir@,$build_libsubdir,;t t
24466 s,@build_subdir@,$build_subdir,;t t
24467 s,@host_subdir@,$host_subdir,;t t
24468 s,@target_subdir@,$target_subdir,;t t
24469 s,@GENINSRC@,$GENINSRC,;t t
24470 s,@CC@,$CC,;t t
24471 s,@CFLAGS@,$CFLAGS,;t t
24472 s,@LDFLAGS@,$LDFLAGS,;t t
24473 s,@CPPFLAGS@,$CPPFLAGS,;t t
24474 s,@ac_ct_CC@,$ac_ct_CC,;t t
24475 s,@EXEEXT@,$EXEEXT,;t t
24476 s,@OBJEXT@,$OBJEXT,;t t
24477 s,@GNATBIND@,$GNATBIND,;t t
24478 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
24479 s,@GNATMAKE@,$GNATMAKE,;t t
24480 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
24481 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24482 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24483 s,@CPP@,$CPP,;t t
24484 s,@EGREP@,$EGREP,;t t
24485 s,@loose_warn@,$loose_warn,;t t
24486 s,@strict_warn@,$strict_warn,;t t
24487 s,@warn_cflags@,$warn_cflags,;t t
24488 s,@nocommon_flag@,$nocommon_flag,;t t
24489 s,@TREEBROWSER@,$TREEBROWSER,;t t
24490 s,@valgrind_path@,$valgrind_path,;t t
24491 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24492 s,@valgrind_command@,$valgrind_command,;t t
24493 s,@coverage_flags@,$coverage_flags,;t t
24494 s,@enable_multilib@,$enable_multilib,;t t
24495 s,@enable_decimal_float@,$enable_decimal_float,;t t
24496 s,@enable_fixed_point@,$enable_fixed_point,;t t
24497 s,@enable_shared@,$enable_shared,;t t
24498 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24499 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24500 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24501 s,@onestep@,$onestep,;t t
24502 s,@PKGVERSION@,$PKGVERSION,;t t
24503 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24504 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24505 s,@datarootdir@,$datarootdir,;t t
24506 s,@docdir@,$docdir,;t t
24507 s,@htmldir@,$htmldir,;t t
24508 s,@SET_MAKE@,$SET_MAKE,;t t
24509 s,@AWK@,$AWK,;t t
24510 s,@LN_S@,$LN_S,;t t
24511 s,@LN@,$LN,;t t
24512 s,@RANLIB@,$RANLIB,;t t
24513 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24514 s,@ranlib_flags@,$ranlib_flags,;t t
24515 s,@INSTALL@,$INSTALL,;t t
24516 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24517 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24518 s,@make_compare_target@,$make_compare_target,;t t
24519 s,@have_mktemp_command@,$have_mktemp_command,;t t
24520 s,@MAKEINFO@,$MAKEINFO,;t t
24521 s,@BUILD_INFO@,$BUILD_INFO,;t t
24522 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24523 s,@FLEX@,$FLEX,;t t
24524 s,@BISON@,$BISON,;t t
24525 s,@NM@,$NM,;t t
24526 s,@AR@,$AR,;t t
24527 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24528 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24529 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24530 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24531 s,@LIBICONV@,$LIBICONV,;t t
24532 s,@LTLIBICONV@,$LTLIBICONV,;t t
24533 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24534 s,@manext@,$manext,;t t
24535 s,@objext@,$objext,;t t
24536 s,@gthread_flags@,$gthread_flags,;t t
24537 s,@extra_modes_file@,$extra_modes_file,;t t
24538 s,@extra_opt_files@,$extra_opt_files,;t t
24539 s,@USE_NLS@,$USE_NLS,;t t
24540 s,@LIBINTL@,$LIBINTL,;t t
24541 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24542 s,@INCINTL@,$INCINTL,;t t
24543 s,@XGETTEXT@,$XGETTEXT,;t t
24544 s,@GMSGFMT@,$GMSGFMT,;t t
24545 s,@POSUB@,$POSUB,;t t
24546 s,@CATALOGS@,$CATALOGS,;t t
24547 s,@DATADIRNAME@,$DATADIRNAME,;t t
24548 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24549 s,@GENCAT@,$GENCAT,;t t
24550 s,@CATOBJEXT@,$CATOBJEXT,;t t
24551 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
24552 s,@CROSS@,$CROSS,;t t
24553 s,@ALL@,$ALL,;t t
24554 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24555 s,@inhibit_libc@,$inhibit_libc,;t t
24556 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24557 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24558 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
24559 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24560 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24561 s,@collect2@,$collect2,;t t
24562 s,@LIBTOOL@,$LIBTOOL,;t t
24563 s,@SED@,$SED,;t t
24564 s,@FGREP@,$FGREP,;t t
24565 s,@GREP@,$GREP,;t t
24566 s,@LD@,$LD,;t t
24567 s,@DUMPBIN@,$DUMPBIN,;t t
24568 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24569 s,@ac_ct_AR@,$ac_ct_AR,;t t
24570 s,@STRIP@,$STRIP,;t t
24571 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24572 s,@lt_ECHO@,$lt_ECHO,;t t
24573 s,@objdir@,$objdir,;t t
24574 s,@enable_fast_install@,$enable_fast_install,;t t
24575 s,@gcc_cv_as@,$gcc_cv_as,;t t
24576 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24577 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24578 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24579 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24580 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24581 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24582 s,@libgcc_visibility@,$libgcc_visibility,;t t
24583 s,@GGC@,$GGC,;t t
24584 s,@zlibdir@,$zlibdir,;t t
24585 s,@zlibinc@,$zlibinc,;t t
24586 s,@MAINT@,$MAINT,;t t
24587 s,@gcc_tooldir@,$gcc_tooldir,;t t
24588 s,@dollar@,$dollar,;t t
24589 s,@slibdir@,$slibdir,;t t
24590 s,@subdirs@,$subdirs,;t t
24591 s,@srcdir@,$srcdir,;t t
24592 s,@all_compilers@,$all_compilers,;t t
24593 s,@all_gtfiles@,$all_gtfiles,;t t
24594 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24595 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24596 s,@all_languages@,$all_languages,;t t
24597 s,@all_selected_languages@,$all_selected_languages,;t t
24598 s,@build_exeext@,$build_exeext,;t t
24599 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24600 s,@build_xm_file_list@,$build_xm_file_list,;t t
24601 s,@build_xm_include_list@,$build_xm_include_list,;t t
24602 s,@build_xm_defines@,$build_xm_defines,;t t
24603 s,@build_file_translate@,$build_file_translate,;t t
24604 s,@check_languages@,$check_languages,;t t
24605 s,@cpp_install_dir@,$cpp_install_dir,;t t
24606 s,@xmake_file@,$xmake_file,;t t
24607 s,@tmake_file@,$tmake_file,;t t
24608 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24609 s,@extra_headers_list@,$extra_headers_list,;t t
24610 s,@extra_objs@,$extra_objs,;t t
24611 s,@extra_parts@,$extra_parts,;t t
24612 s,@extra_passes@,$extra_passes,;t t
24613 s,@extra_programs@,$extra_programs,;t t
24614 s,@float_h_file@,$float_h_file,;t t
24615 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24616 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24617 s,@host_exeext@,$host_exeext,;t t
24618 s,@host_xm_file_list@,$host_xm_file_list,;t t
24619 s,@host_xm_include_list@,$host_xm_include_list,;t t
24620 s,@host_xm_defines@,$host_xm_defines,;t t
24621 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24622 s,@install@,$install,;t t
24623 s,@lang_opt_files@,$lang_opt_files,;t t
24624 s,@lang_specs_files@,$lang_specs_files,;t t
24625 s,@lang_tree_files@,$lang_tree_files,;t t
24626 s,@local_prefix@,$local_prefix,;t t
24627 s,@md_file@,$md_file,;t t
24628 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24629 s,@out_file@,$out_file,;t t
24630 s,@out_object_file@,$out_object_file,;t t
24631 s,@thread_file@,$thread_file,;t t
24632 s,@tm_file_list@,$tm_file_list,;t t
24633 s,@tm_include_list@,$tm_include_list,;t t
24634 s,@tm_defines@,$tm_defines,;t t
24635 s,@tm_p_file_list@,$tm_p_file_list,;t t
24636 s,@tm_p_include_list@,$tm_p_include_list,;t t
24637 s,@xm_file_list@,$xm_file_list,;t t
24638 s,@xm_include_list@,$xm_include_list,;t t
24639 s,@xm_defines@,$xm_defines,;t t
24640 s,@c_target_objs@,$c_target_objs,;t t
24641 s,@cxx_target_objs@,$cxx_target_objs,;t t
24642 s,@fortran_target_objs@,$fortran_target_objs,;t t
24643 s,@target_cpu_default@,$target_cpu_default,;t t
24644 s,@GMPLIBS@,$GMPLIBS,;t t
24645 s,@GMPINC@,$GMPINC,;t t
24646 s,@LIBOBJS@,$LIBOBJS,;t t
24647 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24648 /@language_hooks@/r $language_hooks
24649 s,@language_hooks@,,;t t
24650 CEOF
24652 _ACEOF
24654 cat >>$CONFIG_STATUS <<\_ACEOF
24655 # Split the substitutions into bite-sized pieces for seds with
24656 # small command number limits, like on Digital OSF/1 and HP-UX.
24657 ac_max_sed_lines=48
24658 ac_sed_frag=1 # Number of current file.
24659 ac_beg=1 # First line for current file.
24660 ac_end=$ac_max_sed_lines # Line after last line for current file.
24661 ac_more_lines=:
24662 ac_sed_cmds=
24663 while $ac_more_lines; do
24664 if test $ac_beg -gt 1; then
24665 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24666 else
24667 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24669 if test ! -s $tmp/subs.frag; then
24670 ac_more_lines=false
24671 else
24672 # The purpose of the label and of the branching condition is to
24673 # speed up the sed processing (if there are no `@' at all, there
24674 # is no need to browse any of the substitutions).
24675 # These are the two extra sed commands mentioned above.
24676 (echo ':t
24677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24678 if test -z "$ac_sed_cmds"; then
24679 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24680 else
24681 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24683 ac_sed_frag=`expr $ac_sed_frag + 1`
24684 ac_beg=$ac_end
24685 ac_end=`expr $ac_end + $ac_max_sed_lines`
24687 done
24688 if test -z "$ac_sed_cmds"; then
24689 ac_sed_cmds=cat
24691 fi # test -n "$CONFIG_FILES"
24693 _ACEOF
24694 cat >>$CONFIG_STATUS <<\_ACEOF
24695 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24696 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24697 case $ac_file in
24698 - | *:- | *:-:* ) # input from stdin
24699 cat >$tmp/stdin
24700 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24701 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24702 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24703 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24704 * ) ac_file_in=$ac_file.in ;;
24705 esac
24707 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24708 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24710 X"$ac_file" : 'X\(//\)[^/]' \| \
24711 X"$ac_file" : 'X\(//\)$' \| \
24712 X"$ac_file" : 'X\(/\)' \| \
24713 . : '\(.\)' 2>/dev/null ||
24714 echo X"$ac_file" |
24715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24717 /^X\(\/\/\)$/{ s//\1/; q; }
24718 /^X\(\/\).*/{ s//\1/; q; }
24719 s/.*/./; q'`
24720 { if $as_mkdir_p; then
24721 mkdir -p "$ac_dir"
24722 else
24723 as_dir="$ac_dir"
24724 as_dirs=
24725 while test ! -d "$as_dir"; do
24726 as_dirs="$as_dir $as_dirs"
24727 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24729 X"$as_dir" : 'X\(//\)[^/]' \| \
24730 X"$as_dir" : 'X\(//\)$' \| \
24731 X"$as_dir" : 'X\(/\)' \| \
24732 . : '\(.\)' 2>/dev/null ||
24733 echo X"$as_dir" |
24734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24736 /^X\(\/\/\)$/{ s//\1/; q; }
24737 /^X\(\/\).*/{ s//\1/; q; }
24738 s/.*/./; q'`
24739 done
24740 test ! -n "$as_dirs" || mkdir $as_dirs
24741 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24742 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24743 { (exit 1); exit 1; }; }; }
24745 ac_builddir=.
24747 if test "$ac_dir" != .; then
24748 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24749 # A "../" for each directory in $ac_dir_suffix.
24750 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24751 else
24752 ac_dir_suffix= ac_top_builddir=
24755 case $srcdir in
24756 .) # No --srcdir option. We are building in place.
24757 ac_srcdir=.
24758 if test -z "$ac_top_builddir"; then
24759 ac_top_srcdir=.
24760 else
24761 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24762 fi ;;
24763 [\\/]* | ?:[\\/]* ) # Absolute path.
24764 ac_srcdir=$srcdir$ac_dir_suffix;
24765 ac_top_srcdir=$srcdir ;;
24766 *) # Relative path.
24767 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24768 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24769 esac
24771 # Do not use `cd foo && pwd` to compute absolute paths, because
24772 # the directories may not exist.
24773 case `pwd` in
24774 .) ac_abs_builddir="$ac_dir";;
24776 case "$ac_dir" in
24777 .) ac_abs_builddir=`pwd`;;
24778 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24779 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24780 esac;;
24781 esac
24782 case $ac_abs_builddir in
24783 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24785 case ${ac_top_builddir}. in
24786 .) ac_abs_top_builddir=$ac_abs_builddir;;
24787 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24788 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24789 esac;;
24790 esac
24791 case $ac_abs_builddir in
24792 .) ac_abs_srcdir=$ac_srcdir;;
24794 case $ac_srcdir in
24795 .) ac_abs_srcdir=$ac_abs_builddir;;
24796 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24797 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24798 esac;;
24799 esac
24800 case $ac_abs_builddir in
24801 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24803 case $ac_top_srcdir in
24804 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24805 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24806 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24807 esac;;
24808 esac
24812 if test x"$ac_file" != x-; then
24813 { echo "$as_me:$LINENO: creating $ac_file" >&5
24814 echo "$as_me: creating $ac_file" >&6;}
24815 rm -f "$ac_file"
24817 # Let's still pretend it is `configure' which instantiates (i.e., don't
24818 # use $as_me), people would be surprised to read:
24819 # /* config.h. Generated by config.status. */
24820 if test x"$ac_file" = x-; then
24821 configure_input=
24822 else
24823 configure_input="$ac_file. "
24825 configure_input=$configure_input"Generated from `echo $ac_file_in |
24826 sed 's,.*/,,'` by configure."
24828 # First look for the input files in the build tree, otherwise in the
24829 # src tree.
24830 ac_file_inputs=`IFS=:
24831 for f in $ac_file_in; do
24832 case $f in
24833 -) echo $tmp/stdin ;;
24834 [\\/$]*)
24835 # Absolute (can't be DOS-style, as IFS=:)
24836 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24837 echo "$as_me: error: cannot find input file: $f" >&2;}
24838 { (exit 1); exit 1; }; }
24839 echo "$f";;
24840 *) # Relative
24841 if test -f "$f"; then
24842 # Build tree
24843 echo "$f"
24844 elif test -f "$srcdir/$f"; then
24845 # Source tree
24846 echo "$srcdir/$f"
24847 else
24848 # /dev/null tree
24849 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24850 echo "$as_me: error: cannot find input file: $f" >&2;}
24851 { (exit 1); exit 1; }; }
24852 fi;;
24853 esac
24854 done` || { (exit 1); exit 1; }
24855 _ACEOF
24856 cat >>$CONFIG_STATUS <<_ACEOF
24857 sed "$ac_vpsub
24858 $extrasub
24859 _ACEOF
24860 cat >>$CONFIG_STATUS <<\_ACEOF
24862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24863 s,@configure_input@,$configure_input,;t t
24864 s,@srcdir@,$ac_srcdir,;t t
24865 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24866 s,@top_srcdir@,$ac_top_srcdir,;t t
24867 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24868 s,@builddir@,$ac_builddir,;t t
24869 s,@abs_builddir@,$ac_abs_builddir,;t t
24870 s,@top_builddir@,$ac_top_builddir,;t t
24871 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24872 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24873 rm -f $tmp/stdin
24874 if test x"$ac_file" != x-; then
24875 mv $tmp/out $ac_file
24876 else
24877 cat $tmp/out
24878 rm -f $tmp/out
24881 # Run the commands associated with the file.
24882 case $ac_file in
24883 as ) chmod +x as ;;
24884 collect-ld ) chmod +x collect-ld ;;
24885 nm ) chmod +x nm ;;
24886 esac
24887 done
24888 _ACEOF
24889 cat >>$CONFIG_STATUS <<\_ACEOF
24892 # CONFIG_HEADER section.
24895 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24896 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24898 # ac_d sets the value in "#define NAME VALUE" lines.
24899 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24900 ac_dB='[ ].*$,\1#\2'
24901 ac_dC=' '
24902 ac_dD=',;t'
24903 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24904 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24905 ac_uB='$,\1#\2define\3'
24906 ac_uC=' '
24907 ac_uD=',;t'
24909 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24910 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24911 case $ac_file in
24912 - | *:- | *:-:* ) # input from stdin
24913 cat >$tmp/stdin
24914 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24916 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24917 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24918 * ) ac_file_in=$ac_file.in ;;
24919 esac
24921 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24922 echo "$as_me: creating $ac_file" >&6;}
24924 # First look for the input files in the build tree, otherwise in the
24925 # src tree.
24926 ac_file_inputs=`IFS=:
24927 for f in $ac_file_in; do
24928 case $f in
24929 -) echo $tmp/stdin ;;
24930 [\\/$]*)
24931 # Absolute (can't be DOS-style, as IFS=:)
24932 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24933 echo "$as_me: error: cannot find input file: $f" >&2;}
24934 { (exit 1); exit 1; }; }
24935 # Do quote $f, to prevent DOS paths from being IFS'd.
24936 echo "$f";;
24937 *) # Relative
24938 if test -f "$f"; then
24939 # Build tree
24940 echo "$f"
24941 elif test -f "$srcdir/$f"; then
24942 # Source tree
24943 echo "$srcdir/$f"
24944 else
24945 # /dev/null tree
24946 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24947 echo "$as_me: error: cannot find input file: $f" >&2;}
24948 { (exit 1); exit 1; }; }
24949 fi;;
24950 esac
24951 done` || { (exit 1); exit 1; }
24952 # Remove the trailing spaces.
24953 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24955 _ACEOF
24957 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24958 # `conftest.undefs', that substitutes the proper values into
24959 # config.h.in to produce config.h. The first handles `#define'
24960 # templates, and the second `#undef' templates.
24961 # And first: Protect against being on the right side of a sed subst in
24962 # config.status. Protect against being in an unquoted here document
24963 # in config.status.
24964 rm -f conftest.defines conftest.undefs
24965 # Using a here document instead of a string reduces the quoting nightmare.
24966 # Putting comments in sed scripts is not portable.
24968 # `end' is used to avoid that the second main sed command (meant for
24969 # 0-ary CPP macros) applies to n-ary macro definitions.
24970 # See the Autoconf documentation for `clear'.
24971 cat >confdef2sed.sed <<\_ACEOF
24972 s/[\\&,]/\\&/g
24973 s,[\\$`],\\&,g
24974 t clear
24975 : clear
24976 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24977 t end
24978 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24979 : end
24980 _ACEOF
24981 # If some macros were called several times there might be several times
24982 # the same #defines, which is useless. Nevertheless, we may not want to
24983 # sort them, since we want the *last* AC-DEFINE to be honored.
24984 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24985 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24986 rm -f confdef2sed.sed
24988 # This sed command replaces #undef with comments. This is necessary, for
24989 # example, in the case of _POSIX_SOURCE, which is predefined and required
24990 # on some systems where configure will not decide to define it.
24991 cat >>conftest.undefs <<\_ACEOF
24992 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24993 _ACEOF
24995 # Break up conftest.defines because some shells have a limit on the size
24996 # of here documents, and old seds have small limits too (100 cmds).
24997 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24998 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24999 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25000 echo ' :' >>$CONFIG_STATUS
25001 rm -f conftest.tail
25002 while grep . conftest.defines >/dev/null
25004 # Write a limited-size here document to $tmp/defines.sed.
25005 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25006 # Speed up: don't consider the non `#define' lines.
25007 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25008 # Work around the forget-to-reset-the-flag bug.
25009 echo 't clr' >>$CONFIG_STATUS
25010 echo ': clr' >>$CONFIG_STATUS
25011 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25012 echo 'CEOF
25013 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25014 rm -f $tmp/in
25015 mv $tmp/out $tmp/in
25016 ' >>$CONFIG_STATUS
25017 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25018 rm -f conftest.defines
25019 mv conftest.tail conftest.defines
25020 done
25021 rm -f conftest.defines
25022 echo ' fi # grep' >>$CONFIG_STATUS
25023 echo >>$CONFIG_STATUS
25025 # Break up conftest.undefs because some shells have a limit on the size
25026 # of here documents, and old seds have small limits too (100 cmds).
25027 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25028 rm -f conftest.tail
25029 while grep . conftest.undefs >/dev/null
25031 # Write a limited-size here document to $tmp/undefs.sed.
25032 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25033 # Speed up: don't consider the non `#undef'
25034 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25035 # Work around the forget-to-reset-the-flag bug.
25036 echo 't clr' >>$CONFIG_STATUS
25037 echo ': clr' >>$CONFIG_STATUS
25038 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25039 echo 'CEOF
25040 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25041 rm -f $tmp/in
25042 mv $tmp/out $tmp/in
25043 ' >>$CONFIG_STATUS
25044 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25045 rm -f conftest.undefs
25046 mv conftest.tail conftest.undefs
25047 done
25048 rm -f conftest.undefs
25050 cat >>$CONFIG_STATUS <<\_ACEOF
25051 # Let's still pretend it is `configure' which instantiates (i.e., don't
25052 # use $as_me), people would be surprised to read:
25053 # /* config.h. Generated by config.status. */
25054 if test x"$ac_file" = x-; then
25055 echo "/* Generated by configure. */" >$tmp/config.h
25056 else
25057 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25059 cat $tmp/in >>$tmp/config.h
25060 rm -f $tmp/in
25061 if test x"$ac_file" != x-; then
25062 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25063 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25064 echo "$as_me: $ac_file is unchanged" >&6;}
25065 else
25066 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25068 X"$ac_file" : 'X\(//\)[^/]' \| \
25069 X"$ac_file" : 'X\(//\)$' \| \
25070 X"$ac_file" : 'X\(/\)' \| \
25071 . : '\(.\)' 2>/dev/null ||
25072 echo X"$ac_file" |
25073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25075 /^X\(\/\/\)$/{ s//\1/; q; }
25076 /^X\(\/\).*/{ s//\1/; q; }
25077 s/.*/./; q'`
25078 { if $as_mkdir_p; then
25079 mkdir -p "$ac_dir"
25080 else
25081 as_dir="$ac_dir"
25082 as_dirs=
25083 while test ! -d "$as_dir"; do
25084 as_dirs="$as_dir $as_dirs"
25085 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25087 X"$as_dir" : 'X\(//\)[^/]' \| \
25088 X"$as_dir" : 'X\(//\)$' \| \
25089 X"$as_dir" : 'X\(/\)' \| \
25090 . : '\(.\)' 2>/dev/null ||
25091 echo X"$as_dir" |
25092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25094 /^X\(\/\/\)$/{ s//\1/; q; }
25095 /^X\(\/\).*/{ s//\1/; q; }
25096 s/.*/./; q'`
25097 done
25098 test ! -n "$as_dirs" || mkdir $as_dirs
25099 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25100 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25101 { (exit 1); exit 1; }; }; }
25103 rm -f $ac_file
25104 mv $tmp/config.h $ac_file
25106 else
25107 cat $tmp/config.h
25108 rm -f $tmp/config.h
25110 done
25111 _ACEOF
25112 cat >>$CONFIG_STATUS <<\_ACEOF
25115 # CONFIG_COMMANDS section.
25117 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25118 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25119 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25120 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25121 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25122 X"$ac_dest" : 'X\(//\)[^/]' \| \
25123 X"$ac_dest" : 'X\(//\)$' \| \
25124 X"$ac_dest" : 'X\(/\)' \| \
25125 . : '\(.\)' 2>/dev/null ||
25126 echo X"$ac_dest" |
25127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25129 /^X\(\/\/\)$/{ s//\1/; q; }
25130 /^X\(\/\).*/{ s//\1/; q; }
25131 s/.*/./; q'`
25132 { if $as_mkdir_p; then
25133 mkdir -p "$ac_dir"
25134 else
25135 as_dir="$ac_dir"
25136 as_dirs=
25137 while test ! -d "$as_dir"; do
25138 as_dirs="$as_dir $as_dirs"
25139 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25141 X"$as_dir" : 'X\(//\)[^/]' \| \
25142 X"$as_dir" : 'X\(//\)$' \| \
25143 X"$as_dir" : 'X\(/\)' \| \
25144 . : '\(.\)' 2>/dev/null ||
25145 echo X"$as_dir" |
25146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25147 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25148 /^X\(\/\/\)$/{ s//\1/; q; }
25149 /^X\(\/\).*/{ s//\1/; q; }
25150 s/.*/./; q'`
25151 done
25152 test ! -n "$as_dirs" || mkdir $as_dirs
25153 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25154 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25155 { (exit 1); exit 1; }; }; }
25157 ac_builddir=.
25159 if test "$ac_dir" != .; then
25160 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25161 # A "../" for each directory in $ac_dir_suffix.
25162 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25163 else
25164 ac_dir_suffix= ac_top_builddir=
25167 case $srcdir in
25168 .) # No --srcdir option. We are building in place.
25169 ac_srcdir=.
25170 if test -z "$ac_top_builddir"; then
25171 ac_top_srcdir=.
25172 else
25173 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25174 fi ;;
25175 [\\/]* | ?:[\\/]* ) # Absolute path.
25176 ac_srcdir=$srcdir$ac_dir_suffix;
25177 ac_top_srcdir=$srcdir ;;
25178 *) # Relative path.
25179 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25180 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25181 esac
25183 # Do not use `cd foo && pwd` to compute absolute paths, because
25184 # the directories may not exist.
25185 case `pwd` in
25186 .) ac_abs_builddir="$ac_dir";;
25188 case "$ac_dir" in
25189 .) ac_abs_builddir=`pwd`;;
25190 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25191 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25192 esac;;
25193 esac
25194 case $ac_abs_builddir in
25195 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25197 case ${ac_top_builddir}. in
25198 .) ac_abs_top_builddir=$ac_abs_builddir;;
25199 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25200 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25201 esac;;
25202 esac
25203 case $ac_abs_builddir in
25204 .) ac_abs_srcdir=$ac_srcdir;;
25206 case $ac_srcdir in
25207 .) ac_abs_srcdir=$ac_abs_builddir;;
25208 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25209 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25210 esac;;
25211 esac
25212 case $ac_abs_builddir in
25213 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25215 case $ac_top_srcdir in
25216 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25217 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25218 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25219 esac;;
25220 esac
25223 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25224 echo "$as_me: executing $ac_dest commands" >&6;}
25225 case $ac_dest in
25226 default )
25227 case ${CONFIG_HEADERS} in
25228 *auto-host.h:config.in*)
25229 echo > cstamp-h ;;
25230 esac
25231 # Make sure all the subdirs exist.
25232 for d in $subdirs doc build
25234 test -d $d || mkdir $d
25235 done
25237 esac
25238 done
25239 _ACEOF
25241 cat >>$CONFIG_STATUS <<\_ACEOF
25243 { (exit 0); exit 0; }
25244 _ACEOF
25245 chmod +x $CONFIG_STATUS
25246 ac_clean_files=$ac_clean_files_save
25249 # configure is writing to config.log, and then calls config.status.
25250 # config.status does its own redirection, appending to config.log.
25251 # Unfortunately, on DOS this fails, as config.log is still kept open
25252 # by configure, so config.status won't be able to write to it; its
25253 # output is simply discarded. So we exec the FD to /dev/null,
25254 # effectively closing config.log, so it can be properly (re)opened and
25255 # appended to by config.status. When coming back to configure, we
25256 # need to make the FD available again.
25257 if test "$no_create" != yes; then
25258 ac_cs_success=:
25259 ac_config_status_args=
25260 test "$silent" = yes &&
25261 ac_config_status_args="$ac_config_status_args --quiet"
25262 exec 5>/dev/null
25263 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25264 exec 5>>config.log
25265 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25266 # would make configure fail if this is the last instruction.
25267 $ac_cs_success || { (exit 1); exit 1; }