Daily bump.
[official-gcc.git] / gcc / configure
bloba4923fec997b0cee713b1f505da01de8a927a0e6
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 NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn cxx_compat_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 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 target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
462 ac_subst_files='language_hooks'
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
502 ac_prev=
503 for ac_option
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
516 case $ac_option in
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
535 --config-cache | -C)
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 esac
799 done
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
874 else
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
903 ac_env_CC_value=$CC
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
922 ac_env_GMPLIBS_set=${GMPLIBS+set}
923 ac_env_GMPLIBS_value=$GMPLIBS
924 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
925 ac_cv_env_GMPLIBS_value=$GMPLIBS
926 ac_env_GMPINC_set=${GMPINC+set}
927 ac_env_GMPINC_value=$GMPINC
928 ac_cv_env_GMPINC_set=${GMPINC+set}
929 ac_cv_env_GMPINC_value=$GMPINC
932 # Report the --help message.
934 if test "$ac_init_help" = "long"; then
935 # Omit some internal or obsolete options to make the list less imposing.
936 # This message is too long to be a string in the A/UX 3.1 sh.
937 cat <<_ACEOF
938 \`configure' configures this package to adapt to many kinds of systems.
940 Usage: $0 [OPTION]... [VAR=VALUE]...
942 To assign environment variables (e.g., CC, CFLAGS...), specify them as
943 VAR=VALUE. See below for descriptions of some of the useful variables.
945 Defaults for the options are specified in brackets.
947 Configuration:
948 -h, --help display this help and exit
949 --help=short display options specific to this package
950 --help=recursive display the short help of all the included packages
951 -V, --version display version information and exit
952 -q, --quiet, --silent do not print \`checking...' messages
953 --cache-file=FILE cache test results in FILE [disabled]
954 -C, --config-cache alias for \`--cache-file=config.cache'
955 -n, --no-create do not create output files
956 --srcdir=DIR find the sources in DIR [configure dir or \`..']
958 _ACEOF
960 cat <<_ACEOF
961 Installation directories:
962 --prefix=PREFIX install architecture-independent files in PREFIX
963 [$ac_default_prefix]
964 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
965 [PREFIX]
967 By default, \`make install' will install all the files in
968 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
969 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
970 for instance \`--prefix=\$HOME'.
972 For better control, use the options below.
974 Fine tuning of the installation directories:
975 --bindir=DIR user executables [EPREFIX/bin]
976 --sbindir=DIR system admin executables [EPREFIX/sbin]
977 --libexecdir=DIR program executables [EPREFIX/libexec]
978 --datadir=DIR read-only architecture-independent data [PREFIX/share]
979 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
980 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
981 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
982 --libdir=DIR object code libraries [EPREFIX/lib]
983 --includedir=DIR C header files [PREFIX/include]
984 --oldincludedir=DIR C header files for non-gcc [/usr/include]
985 --infodir=DIR info documentation [PREFIX/info]
986 --mandir=DIR man documentation [PREFIX/man]
987 _ACEOF
989 cat <<\_ACEOF
991 Program names:
992 --program-prefix=PREFIX prepend PREFIX to installed program names
993 --program-suffix=SUFFIX append SUFFIX to installed program names
994 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 System types:
997 --build=BUILD configure for building on BUILD [guessed]
998 --host=HOST cross-compile to build programs to run on HOST [BUILD]
999 --target=TARGET configure for building compilers for TARGET [HOST]
1000 _ACEOF
1003 if test -n "$ac_init_help"; then
1005 cat <<\_ACEOF
1007 Optional Features:
1008 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1009 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1010 --enable-generated-files-in-srcdir
1011 put copies of generated files in source dir
1012 intended for creating source tarballs for users
1013 without texinfo bison or flex.
1014 --enable-werror-always enable -Werror despite compiler version
1015 --enable-checking=LIST
1016 enable expensive run-time checks. With LIST,
1017 enable only specific categories of checks.
1018 Categories are: yes,no,all,none,release.
1019 Flags are: assert,df,fold,gc,gcac,misc,
1020 rtlflag,rtl,runtime,tree,valgrind,types.
1021 --enable-coverage=LEVEL
1022 enable compiler's code coverage collection.
1023 Use to measure compiler performance and locate
1024 unused parts of the compiler. With LEVEL, specify
1025 optimization. Values are opt, noopt,
1026 default is noopt
1027 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1028 --enable-multilib enable library support for multiple ABIs
1029 --enable-__cxa_atexit enable __cxa_atexit for C++
1030 --enable-decimal-float={no,yes,bid,dpd}
1031 enable decimal float extension to C. Selecting 'bid'
1032 or 'dpd' choses which decimal floating point format
1033 to use
1034 --enable-fixed-point enable fixed-point arithmetic extension to C
1035 --enable-threads enable thread usage for target GCC
1036 --enable-threads=LIB use LIB thread package for target GCC
1037 --enable-tls enable or disable generation of tls code
1038 overriding the assembler check for tls support
1039 --enable-objc-gc enable the use of Boehm's garbage collector with
1040 the GNU Objective-C runtime
1041 --disable-shared don't provide a shared libgcc
1042 --enable-intermodule build the compiler in one step
1043 --enable-languages=LIST specify which front-ends to build
1044 --disable-rpath do not hardcode runtime library paths
1045 --enable-initfini-array use .init_array/.fini_array sections
1046 --enable-sjlj-exceptions
1047 arrange to use setjmp/longjmp exception handling
1048 --enable-secureplt enable -msecure-plt by default for PowerPC
1049 --disable-win32-registry
1050 disable lookup of installation paths in the
1051 Registry on Windows hosts
1052 --enable-win32-registry enable registry lookup (default)
1053 --enable-win32-registry=KEY
1054 use KEY instead of GCC version as the last portion
1055 of the registry key
1056 --enable-shared[=PKGS]
1057 build shared libraries [default=yes]
1058 --enable-static[=PKGS]
1059 build static libraries [default=yes]
1060 --enable-fast-install[=PKGS]
1061 optimize for fast installation [default=yes]
1062 --disable-libtool-lock avoid locking (might break parallel builds)
1063 --enable-maintainer-mode
1064 enable make rules and dependencies not useful
1065 (and sometimes confusing) to the casual installer
1066 --enable-version-specific-runtime-libs
1067 specify that runtime libraries should be
1068 installed in a compiler-specific directory
1070 Optional Packages:
1071 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1072 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1073 --with-build-libsubdir=DIR Directory where to find libraries for build system
1074 --with-local-prefix=DIR specifies directory to put local include
1075 --with-gxx-include-dir=DIR
1076 specifies directory to put g++ header files
1077 --with-cpp-install-dir=DIR
1078 install the user visible C preprocessor in DIR
1079 (relative to PREFIX) as well as PREFIX/bin
1080 --with-gnu-ld arrange to work with GNU ld.
1081 --with-ld arrange to use the specified ld (full pathname)
1082 --with-demangler-in-ld try to use demangler in GNU ld.
1083 --with-gnu-as arrange to work with GNU as
1084 --with-as arrange to use the specified as (full pathname)
1085 --with-stabs arrange to use stabs instead of host debug format
1086 --with-dwarf2 force the default debug format to be DWARF 2
1087 --with-build-sysroot=sysroot
1088 use sysroot as the system root during the build
1089 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1090 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1091 --with-bugurl=URL Direct users to URL to report a bug
1092 --with-gnu-ld assume the C compiler uses GNU ld default=no
1093 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1094 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1095 --with-system-libunwind use installed libunwind
1096 --with-pic try to use only PIC/non-PIC objects [default=use
1097 both]
1098 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1099 --with-long-double-128 Use 128-bit long double by default.
1100 --with-gc={page,zone} choose the garbage collection mechanism to use
1101 with the compiler
1102 --with-system-zlib use installed libz
1103 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1104 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1105 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1106 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1108 Some influential environment variables:
1109 CC C compiler command
1110 CFLAGS C compiler flags
1111 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1112 nonstandard directory <lib dir>
1113 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1114 headers in a nonstandard directory <include dir>
1115 CPP C preprocessor
1116 GMPLIBS How to link GMP
1117 GMPINC How to find GMP include files
1119 Use these variables to override the choices made by `configure' or to help
1120 it to find libraries and programs with nonstandard names/locations.
1122 _ACEOF
1125 if test "$ac_init_help" = "recursive"; then
1126 # If there are subdirs, report their specific --help.
1127 ac_popdir=`pwd`
1128 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1129 test -d $ac_dir || continue
1130 ac_builddir=.
1132 if test "$ac_dir" != .; then
1133 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1134 # A "../" for each directory in $ac_dir_suffix.
1135 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1136 else
1137 ac_dir_suffix= ac_top_builddir=
1140 case $srcdir in
1141 .) # No --srcdir option. We are building in place.
1142 ac_srcdir=.
1143 if test -z "$ac_top_builddir"; then
1144 ac_top_srcdir=.
1145 else
1146 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1147 fi ;;
1148 [\\/]* | ?:[\\/]* ) # Absolute path.
1149 ac_srcdir=$srcdir$ac_dir_suffix;
1150 ac_top_srcdir=$srcdir ;;
1151 *) # Relative path.
1152 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1153 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1154 esac
1156 # Do not use `cd foo && pwd` to compute absolute paths, because
1157 # the directories may not exist.
1158 case `pwd` in
1159 .) ac_abs_builddir="$ac_dir";;
1161 case "$ac_dir" in
1162 .) ac_abs_builddir=`pwd`;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1164 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1165 esac;;
1166 esac
1167 case $ac_abs_builddir in
1168 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1170 case ${ac_top_builddir}. in
1171 .) ac_abs_top_builddir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1173 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1174 esac;;
1175 esac
1176 case $ac_abs_builddir in
1177 .) ac_abs_srcdir=$ac_srcdir;;
1179 case $ac_srcdir in
1180 .) ac_abs_srcdir=$ac_abs_builddir;;
1181 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1182 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1183 esac;;
1184 esac
1185 case $ac_abs_builddir in
1186 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1188 case $ac_top_srcdir in
1189 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1190 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1191 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1192 esac;;
1193 esac
1195 cd $ac_dir
1196 # Check for guested configure; otherwise get Cygnus style configure.
1197 if test -f $ac_srcdir/configure.gnu; then
1198 echo
1199 $SHELL $ac_srcdir/configure.gnu --help=recursive
1200 elif test -f $ac_srcdir/configure; then
1201 echo
1202 $SHELL $ac_srcdir/configure --help=recursive
1203 elif test -f $ac_srcdir/configure.ac ||
1204 test -f $ac_srcdir/configure.in; then
1205 echo
1206 $ac_configure --help
1207 else
1208 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1210 cd $ac_popdir
1211 done
1214 test -n "$ac_init_help" && exit 0
1215 if $ac_init_version; then
1216 cat <<\_ACEOF
1218 Copyright (C) 2003 Free Software Foundation, Inc.
1219 This configure script is free software; the Free Software Foundation
1220 gives unlimited permission to copy, distribute and modify it.
1221 _ACEOF
1222 exit 0
1224 exec 5>config.log
1225 cat >&5 <<_ACEOF
1226 This file contains any messages produced by compilers while
1227 running configure, to aid debugging if configure makes a mistake.
1229 It was created by $as_me, which was
1230 generated by GNU Autoconf 2.59. Invocation command line was
1232 $ $0 $@
1234 _ACEOF
1236 cat <<_ASUNAME
1237 ## --------- ##
1238 ## Platform. ##
1239 ## --------- ##
1241 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1242 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1243 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1244 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1245 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1247 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1248 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1250 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1251 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1252 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1253 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1254 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1255 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1256 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1258 _ASUNAME
1260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1261 for as_dir in $PATH
1263 IFS=$as_save_IFS
1264 test -z "$as_dir" && as_dir=.
1265 echo "PATH: $as_dir"
1266 done
1268 } >&5
1270 cat >&5 <<_ACEOF
1273 ## ----------- ##
1274 ## Core tests. ##
1275 ## ----------- ##
1277 _ACEOF
1280 # Keep a trace of the command line.
1281 # Strip out --no-create and --no-recursion so they do not pile up.
1282 # Strip out --silent because we don't want to record it for future runs.
1283 # Also quote any args containing shell meta-characters.
1284 # Make two passes to allow for proper duplicate-argument suppression.
1285 ac_configure_args=
1286 ac_configure_args0=
1287 ac_configure_args1=
1288 ac_sep=
1289 ac_must_keep_next=false
1290 for ac_pass in 1 2
1292 for ac_arg
1294 case $ac_arg in
1295 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1297 | -silent | --silent | --silen | --sile | --sil)
1298 continue ;;
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 esac
1302 case $ac_pass in
1303 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1305 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1306 if test $ac_must_keep_next = true; then
1307 ac_must_keep_next=false # Got value, back to normal.
1308 else
1309 case $ac_arg in
1310 *=* | --config-cache | -C | -disable-* | --disable-* \
1311 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1312 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1313 | -with-* | --with-* | -without-* | --without-* | --x)
1314 case "$ac_configure_args0 " in
1315 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1316 esac
1318 -* ) ac_must_keep_next=true ;;
1319 esac
1321 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1322 # Get rid of the leading space.
1323 ac_sep=" "
1325 esac
1326 done
1327 done
1328 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1329 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1331 # When interrupted or exit'd, cleanup temporary files, and complete
1332 # config.log. We remove comments because anyway the quotes in there
1333 # would cause problems or look ugly.
1334 # WARNING: Be sure not to use single quotes in there, as some shells,
1335 # such as our DU 5.0 friend, will then `close' the trap.
1336 trap 'exit_status=$?
1337 # Save into config.log some information that might help in debugging.
1339 echo
1341 cat <<\_ASBOX
1342 ## ---------------- ##
1343 ## Cache variables. ##
1344 ## ---------------- ##
1345 _ASBOX
1346 echo
1347 # The following way of writing the cache mishandles newlines in values,
1349 (set) 2>&1 |
1350 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1351 *ac_space=\ *)
1352 sed -n \
1353 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1357 sed -n \
1358 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1360 esac;
1362 echo
1364 cat <<\_ASBOX
1365 ## ----------------- ##
1366 ## Output variables. ##
1367 ## ----------------- ##
1368 _ASBOX
1369 echo
1370 for ac_var in $ac_subst_vars
1372 eval ac_val=$`echo $ac_var`
1373 echo "$ac_var='"'"'$ac_val'"'"'"
1374 done | sort
1375 echo
1377 if test -n "$ac_subst_files"; then
1378 cat <<\_ASBOX
1379 ## ------------- ##
1380 ## Output files. ##
1381 ## ------------- ##
1382 _ASBOX
1383 echo
1384 for ac_var in $ac_subst_files
1386 eval ac_val=$`echo $ac_var`
1387 echo "$ac_var='"'"'$ac_val'"'"'"
1388 done | sort
1389 echo
1392 if test -s confdefs.h; then
1393 cat <<\_ASBOX
1394 ## ----------- ##
1395 ## confdefs.h. ##
1396 ## ----------- ##
1397 _ASBOX
1398 echo
1399 sed "/^$/d" confdefs.h | sort
1400 echo
1402 test "$ac_signal" != 0 &&
1403 echo "$as_me: caught signal $ac_signal"
1404 echo "$as_me: exit $exit_status"
1405 } >&5
1406 rm -f core *.core &&
1407 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1408 exit $exit_status
1410 for ac_signal in 1 2 13 15; do
1411 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1412 done
1413 ac_signal=0
1415 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1416 rm -rf conftest* confdefs.h
1417 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1418 echo >confdefs.h
1420 # Predefined preprocessor variables.
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_NAME "$PACKAGE_NAME"
1424 _ACEOF
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1429 _ACEOF
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1434 _ACEOF
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_STRING "$PACKAGE_STRING"
1439 _ACEOF
1442 cat >>confdefs.h <<_ACEOF
1443 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1444 _ACEOF
1447 # Let the site file select an alternate cache file if it wants to.
1448 # Prefer explicitly selected file to automatically selected ones.
1449 if test -z "$CONFIG_SITE"; then
1450 if test "x$prefix" != xNONE; then
1451 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1452 else
1453 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1456 for ac_site_file in $CONFIG_SITE; do
1457 if test -r "$ac_site_file"; then
1458 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1459 echo "$as_me: loading site script $ac_site_file" >&6;}
1460 sed 's/^/| /' "$ac_site_file" >&5
1461 . "$ac_site_file"
1463 done
1465 if test -r "$cache_file"; then
1466 # Some versions of bash will fail to source /dev/null (special
1467 # files actually), so we avoid doing that.
1468 if test -f "$cache_file"; then
1469 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1470 echo "$as_me: loading cache $cache_file" >&6;}
1471 case $cache_file in
1472 [\\/]* | ?:[\\/]* ) . $cache_file;;
1473 *) . ./$cache_file;;
1474 esac
1476 else
1477 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1478 echo "$as_me: creating cache $cache_file" >&6;}
1479 >$cache_file
1482 # Check that the precious variables saved in the cache have kept the same
1483 # value.
1484 ac_cache_corrupted=false
1485 for ac_var in `(set) 2>&1 |
1486 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1487 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1488 eval ac_new_set=\$ac_env_${ac_var}_set
1489 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1490 eval ac_new_val="\$ac_env_${ac_var}_value"
1491 case $ac_old_set,$ac_new_set in
1492 set,)
1493 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1494 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1495 ac_cache_corrupted=: ;;
1496 ,set)
1497 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1498 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1499 ac_cache_corrupted=: ;;
1500 ,);;
1502 if test "x$ac_old_val" != "x$ac_new_val"; then
1503 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1504 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1505 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1506 echo "$as_me: former value: $ac_old_val" >&2;}
1507 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1508 echo "$as_me: current value: $ac_new_val" >&2;}
1509 ac_cache_corrupted=:
1510 fi;;
1511 esac
1512 # Pass precious variables to config.status.
1513 if test "$ac_new_set" = set; then
1514 case $ac_new_val in
1515 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1516 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1517 *) ac_arg=$ac_var=$ac_new_val ;;
1518 esac
1519 case " $ac_configure_args " in
1520 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1521 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1522 esac
1524 done
1525 if $ac_cache_corrupted; then
1526 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1527 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1528 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1529 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1530 { (exit 1); exit 1; }; }
1533 ac_ext=c
1534 ac_cpp='$CPP $CPPFLAGS'
1535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1558 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1561 gcc_version=`cat $srcdir/BASE-VER`
1563 # Determine the host, build, and target systems
1564 ac_aux_dir=
1565 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1566 if test -f $ac_dir/install-sh; then
1567 ac_aux_dir=$ac_dir
1568 ac_install_sh="$ac_aux_dir/install-sh -c"
1569 break
1570 elif test -f $ac_dir/install.sh; then
1571 ac_aux_dir=$ac_dir
1572 ac_install_sh="$ac_aux_dir/install.sh -c"
1573 break
1574 elif test -f $ac_dir/shtool; then
1575 ac_aux_dir=$ac_dir
1576 ac_install_sh="$ac_aux_dir/shtool install -c"
1577 break
1579 done
1580 if test -z "$ac_aux_dir"; then
1581 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1582 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1583 { (exit 1); exit 1; }; }
1585 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1586 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1587 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1589 # Make sure we can run config.sub.
1590 $ac_config_sub sun4 >/dev/null 2>&1 ||
1591 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1592 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1593 { (exit 1); exit 1; }; }
1595 echo "$as_me:$LINENO: checking build system type" >&5
1596 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1597 if test "${ac_cv_build+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600 ac_cv_build_alias=$build_alias
1601 test -z "$ac_cv_build_alias" &&
1602 ac_cv_build_alias=`$ac_config_guess`
1603 test -z "$ac_cv_build_alias" &&
1604 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1605 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1606 { (exit 1); exit 1; }; }
1607 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1608 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1609 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1610 { (exit 1); exit 1; }; }
1613 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1614 echo "${ECHO_T}$ac_cv_build" >&6
1615 build=$ac_cv_build
1616 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1617 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1618 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621 echo "$as_me:$LINENO: checking host system type" >&5
1622 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1623 if test "${ac_cv_host+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626 ac_cv_host_alias=$host_alias
1627 test -z "$ac_cv_host_alias" &&
1628 ac_cv_host_alias=$ac_cv_build_alias
1629 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1630 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1631 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1632 { (exit 1); exit 1; }; }
1635 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1636 echo "${ECHO_T}$ac_cv_host" >&6
1637 host=$ac_cv_host
1638 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1639 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1640 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643 echo "$as_me:$LINENO: checking target system type" >&5
1644 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1645 if test "${ac_cv_target+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648 ac_cv_target_alias=$target_alias
1649 test "x$ac_cv_target_alias" = "x" &&
1650 ac_cv_target_alias=$ac_cv_host_alias
1651 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1652 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1653 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1654 { (exit 1); exit 1; }; }
1657 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1658 echo "${ECHO_T}$ac_cv_target" >&6
1659 target=$ac_cv_target
1660 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1661 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1662 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1665 # The aliases save the names the user supplied, while $host etc.
1666 # will get canonicalized.
1667 test -n "$target_alias" &&
1668 test "$program_prefix$program_suffix$program_transform_name" = \
1669 NONENONEs,x,x, &&
1670 program_prefix=${target_alias}-
1672 # Determine the noncanonical target name, for directory use.
1673 case ${build_alias} in
1674 "") build_noncanonical=${build} ;;
1675 *) build_noncanonical=${build_alias} ;;
1676 esac
1678 case ${host_alias} in
1679 "") host_noncanonical=${build_noncanonical} ;;
1680 *) host_noncanonical=${host_alias} ;;
1681 esac
1683 case ${target_alias} in
1684 "") target_noncanonical=${host_noncanonical} ;;
1685 *) target_noncanonical=${target_alias} ;;
1686 esac
1691 # Determine the target- and build-specific subdirectories
1693 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1694 # have matching libraries, they should use host libraries: Makefile.tpl
1695 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1696 # However, they still use the build modules, because the corresponding
1697 # host modules (e.g. bison) are only built for the host when bootstrap
1698 # finishes. So:
1699 # - build_subdir is where we find build modules, and never changes.
1700 # - build_libsubdir is where we find build libraries, and can be overridden.
1702 # Prefix 'build-' so this never conflicts with target_subdir.
1703 build_subdir="build-${build_noncanonical}"
1705 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1706 if test "${with_build_libsubdir+set}" = set; then
1707 withval="$with_build_libsubdir"
1708 build_libsubdir="$withval"
1709 else
1710 build_libsubdir="$build_subdir"
1712 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1713 if ( test $srcdir = . && test -d gcc ) \
1714 || test -d $srcdir/../host-${host_noncanonical}; then
1715 host_subdir="host-${host_noncanonical}"
1716 else
1717 host_subdir=.
1719 # No prefix.
1720 target_subdir=${target_noncanonical}
1723 # Set program_transform_name
1724 test "$program_prefix" != NONE &&
1725 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1726 # Use a double $ so make ignores it.
1727 test "$program_suffix" != NONE &&
1728 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1729 # Double any \ or $. echo might interpret backslashes.
1730 # By default was `s,x,x', remove it if useless.
1731 cat <<\_ACEOF >conftest.sed
1732 s/[\\$]/&&/g;s/;s,x,x,$//
1733 _ACEOF
1734 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1735 rm conftest.sed
1738 # Check for bogus environment variables.
1739 # Test if LIBRARY_PATH contains the notation for the current directory
1740 # since this would lead to problems installing/building glibc.
1741 # LIBRARY_PATH contains the current directory if one of the following
1742 # is true:
1743 # - one of the terminals (":" and ";") is the first or last sign
1744 # - two terminals occur directly after each other
1745 # - the path contains an element with a dot in it
1746 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1747 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1748 case ${LIBRARY_PATH} in
1749 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1750 library_path_setting="contains current directory"
1753 library_path_setting="ok"
1755 esac
1756 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1757 echo "${ECHO_T}$library_path_setting" >&6
1758 if test "$library_path_setting" != "ok"; then
1759 { { echo "$as_me:$LINENO: error:
1760 *** LIBRARY_PATH shouldn't contain the current directory when
1761 *** building gcc. Please change the environment variable
1762 *** and run configure again." >&5
1763 echo "$as_me: error:
1764 *** LIBRARY_PATH shouldn't contain the current directory when
1765 *** building gcc. Please change the environment variable
1766 *** and run configure again." >&2;}
1767 { (exit 1); exit 1; }; }
1770 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1771 # since this would lead to problems installing/building glibc.
1772 # GCC_EXEC_PREFIX contains the current directory if one of the following
1773 # is true:
1774 # - one of the terminals (":" and ";") is the first or last sign
1775 # - two terminals occur directly after each other
1776 # - the path contains an element with a dot in it
1777 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1778 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1779 case ${GCC_EXEC_PREFIX} in
1780 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1781 gcc_exec_prefix_setting="contains current directory"
1784 gcc_exec_prefix_setting="ok"
1786 esac
1787 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1788 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1789 if test "$gcc_exec_prefix_setting" != "ok"; then
1790 { { echo "$as_me:$LINENO: error:
1791 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1792 *** building gcc. Please change the environment variable
1793 *** and run configure again." >&5
1794 echo "$as_me: error:
1795 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1796 *** building gcc. Please change the environment variable
1797 *** and run configure again." >&2;}
1798 { (exit 1); exit 1; }; }
1801 # -----------
1802 # Directories
1803 # -----------
1805 # Specify the local prefix
1806 local_prefix=
1808 # Check whether --with-local-prefix or --without-local-prefix was given.
1809 if test "${with_local_prefix+set}" = set; then
1810 withval="$with_local_prefix"
1811 case "${withval}" in
1812 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1813 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1814 { (exit 1); exit 1; }; } ;;
1815 no) ;;
1816 *) local_prefix=$with_local_prefix ;;
1817 esac
1820 # Default local prefix if it is empty
1821 if test x$local_prefix = x; then
1822 local_prefix=/usr/local
1825 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1826 # passed in by the toplevel make and thus we'd get different behavior
1827 # depending on where we built the sources.
1828 gcc_gxx_include_dir=
1829 # Specify the g++ header file directory
1831 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1832 if test "${with_gxx_include_dir+set}" = set; then
1833 withval="$with_gxx_include_dir"
1834 case "${withval}" in
1835 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1836 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1837 { (exit 1); exit 1; }; } ;;
1838 no) ;;
1839 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1840 esac
1843 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1844 if test x${gcc_gxx_include_dir} = x; then
1845 if test x${enable_version_specific_runtime_libs} = xyes; then
1846 gcc_gxx_include_dir='${libsubdir}/include/c++'
1847 else
1848 libstdcxx_incdir='include/c++/$(version)'
1849 if test x$host != x$target; then
1850 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1852 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1857 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1858 if test "${with_cpp_install_dir+set}" = set; then
1859 withval="$with_cpp_install_dir"
1860 if test x$withval = xyes; then
1861 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1862 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1863 { (exit 1); exit 1; }; }
1864 elif test x$withval != xno; then
1865 cpp_install_dir=$withval
1869 # We would like to our source tree to be readonly. However when releases or
1870 # pre-releases are generated, the flex/bison generated files as well as the
1871 # various formats of manuals need to be included along with the rest of the
1872 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1873 # just that.
1875 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1876 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1877 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1878 if test "${enable_generated_files_in_srcdir+set}" = set; then
1879 enableval="$enable_generated_files_in_srcdir"
1880 generated_files_in_srcdir=$enableval
1881 else
1882 generated_files_in_srcdir=no
1885 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1886 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1888 if test "$generated_files_in_srcdir" = "yes"; then
1889 GENINSRC=''
1890 else
1891 GENINSRC='#'
1895 # -------------------
1896 # Find default linker
1897 # -------------------
1899 # With GNU ld
1901 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1902 if test "${with_gnu_ld+set}" = set; then
1903 withval="$with_gnu_ld"
1904 gnu_ld_flag="$with_gnu_ld"
1905 else
1906 gnu_ld_flag=no
1909 # With pre-defined ld
1911 # Check whether --with-ld or --without-ld was given.
1912 if test "${with_ld+set}" = set; then
1913 withval="$with_ld"
1914 DEFAULT_LINKER="$with_ld"
1916 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1917 if test ! -x "$DEFAULT_LINKER"; then
1918 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1919 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1920 { (exit 1); exit 1; }; }
1921 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1922 gnu_ld_flag=yes
1925 cat >>confdefs.h <<_ACEOF
1926 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1927 _ACEOF
1931 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1933 cat >>confdefs.h <<_ACEOF
1934 #define HAVE_GNU_LD $gnu_ld
1935 _ACEOF
1938 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1939 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1940 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1941 if test x"$gnu_ld_flag" = x"no"; then
1942 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1943 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1944 else
1945 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1946 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1948 else
1949 echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1953 # With demangler in GNU ld
1955 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1956 if test "${with_demangler_in_ld+set}" = set; then
1957 withval="$with_demangler_in_ld"
1958 demangler_in_ld="$with_demangler_in_ld"
1959 else
1960 demangler_in_ld=no
1963 # ----------------------
1964 # Find default assembler
1965 # ----------------------
1967 # With GNU as
1969 # Check whether --with-gnu-as or --without-gnu-as was given.
1970 if test "${with_gnu_as+set}" = set; then
1971 withval="$with_gnu_as"
1972 gas_flag="$with_gnu_as"
1973 else
1974 gas_flag=no
1978 # Check whether --with-as or --without-as was given.
1979 if test "${with_as+set}" = set; then
1980 withval="$with_as"
1981 DEFAULT_ASSEMBLER="$with_as"
1983 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1984 if test ! -x "$DEFAULT_ASSEMBLER"; then
1985 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1986 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1987 { (exit 1); exit 1; }; }
1988 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1989 gas_flag=yes
1992 cat >>confdefs.h <<_ACEOF
1993 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1994 _ACEOF
1998 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2000 cat >>confdefs.h <<_ACEOF
2001 #define HAVE_GNU_AS $gnu_as
2002 _ACEOF
2005 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2006 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2007 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2008 if test x"$gas_flag" = x"no"; then
2009 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2010 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2011 else
2012 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2013 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2015 else
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2020 # ---------------
2021 # Find C compiler
2022 # ---------------
2024 # If a non-executable a.out is present (e.g. created by GNU as above even if
2025 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2026 # file, even when creating an executable, so an execution test fails.
2027 # Remove possible default executable files to avoid this.
2029 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2030 # Autoconf includes it.
2031 rm -f a.out a.exe b.out
2033 # Find the native compiler
2034 ac_ext=c
2035 ac_cpp='$CPP $CPPFLAGS'
2036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2039 if test -n "$ac_tool_prefix"; then
2040 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2041 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 break 2
2061 done
2062 done
2066 CC=$ac_cv_prog_CC
2067 if test -n "$CC"; then
2068 echo "$as_me:$LINENO: result: $CC" >&5
2069 echo "${ECHO_T}$CC" >&6
2070 else
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2076 if test -z "$ac_cv_prog_CC"; then
2077 ac_ct_CC=$CC
2078 # Extract the first word of "gcc", so it can be a program name with args.
2079 set dummy gcc; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085 if test -n "$ac_ct_CC"; then
2086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2087 else
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2091 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095 ac_cv_prog_ac_ct_CC="gcc"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 break 2
2099 done
2100 done
2104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2105 if test -n "$ac_ct_CC"; then
2106 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2107 echo "${ECHO_T}$ac_ct_CC" >&6
2108 else
2109 echo "$as_me:$LINENO: result: no" >&5
2110 echo "${ECHO_T}no" >&6
2113 CC=$ac_ct_CC
2114 else
2115 CC="$ac_cv_prog_CC"
2118 if test -z "$CC"; then
2119 if test -n "$ac_tool_prefix"; then
2120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2121 set dummy ${ac_tool_prefix}cc; ac_word=$2
2122 echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2124 if test "${ac_cv_prog_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127 if test -n "$CC"; then
2128 ac_cv_prog_CC="$CC" # Let the user override the test.
2129 else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2137 ac_cv_prog_CC="${ac_tool_prefix}cc"
2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 break 2
2141 done
2142 done
2146 CC=$ac_cv_prog_CC
2147 if test -n "$CC"; then
2148 echo "$as_me:$LINENO: result: $CC" >&5
2149 echo "${ECHO_T}$CC" >&6
2150 else
2151 echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6
2156 if test -z "$ac_cv_prog_CC"; then
2157 ac_ct_CC=$CC
2158 # Extract the first word of "cc", so it can be a program name with args.
2159 set dummy cc; ac_word=$2
2160 echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165 if test -n "$ac_ct_CC"; then
2166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2167 else
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175 ac_cv_prog_ac_ct_CC="cc"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 break 2
2179 done
2180 done
2184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2185 if test -n "$ac_ct_CC"; then
2186 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2187 echo "${ECHO_T}$ac_ct_CC" >&6
2188 else
2189 echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2193 CC=$ac_ct_CC
2194 else
2195 CC="$ac_cv_prog_CC"
2199 if test -z "$CC"; then
2200 # Extract the first word of "cc", so it can be a program name with args.
2201 set dummy cc; ac_word=$2
2202 echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2204 if test "${ac_cv_prog_CC+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 else
2207 if test -n "$CC"; then
2208 ac_cv_prog_CC="$CC" # Let the user override the test.
2209 else
2210 ac_prog_rejected=no
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 for ac_exec_ext in '' $ac_executable_extensions; do
2217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2218 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2219 ac_prog_rejected=yes
2220 continue
2222 ac_cv_prog_CC="cc"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2226 done
2227 done
2229 if test $ac_prog_rejected = yes; then
2230 # We found a bogon in the path, so make sure we never use it.
2231 set dummy $ac_cv_prog_CC
2232 shift
2233 if test $# != 0; then
2234 # We chose a different compiler from the bogus one.
2235 # However, it has the same basename, so the bogon will be chosen
2236 # first if we set CC to just the basename; use the full file name.
2237 shift
2238 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2243 CC=$ac_cv_prog_CC
2244 if test -n "$CC"; then
2245 echo "$as_me:$LINENO: result: $CC" >&5
2246 echo "${ECHO_T}$CC" >&6
2247 else
2248 echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6
2253 if test -z "$CC"; then
2254 if test -n "$ac_tool_prefix"; then
2255 for ac_prog in cl
2257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2259 echo "$as_me:$LINENO: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2261 if test "${ac_cv_prog_CC+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 if test -n "$CC"; then
2265 ac_cv_prog_CC="$CC" # Let the user override the test.
2266 else
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 break 2
2278 done
2279 done
2283 CC=$ac_cv_prog_CC
2284 if test -n "$CC"; then
2285 echo "$as_me:$LINENO: result: $CC" >&5
2286 echo "${ECHO_T}$CC" >&6
2287 else
2288 echo "$as_me:$LINENO: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2292 test -n "$CC" && break
2293 done
2295 if test -z "$CC"; then
2296 ac_ct_CC=$CC
2297 for ac_prog in cl
2299 # Extract the first word of "$ac_prog", so it can be a program name with args.
2300 set dummy $ac_prog; ac_word=$2
2301 echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306 if test -n "$ac_ct_CC"; then
2307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316 ac_cv_prog_ac_ct_CC="$ac_prog"
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2320 done
2321 done
2325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2326 if test -n "$ac_ct_CC"; then
2327 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2328 echo "${ECHO_T}$ac_ct_CC" >&6
2329 else
2330 echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6
2334 test -n "$ac_ct_CC" && break
2335 done
2337 CC=$ac_ct_CC
2343 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: no acceptable C compiler found in \$PATH
2346 See \`config.log' for more details." >&2;}
2347 { (exit 1); exit 1; }; }
2349 # Provide some information about the compiler.
2350 echo "$as_me:$LINENO:" \
2351 "checking for C compiler version" >&5
2352 ac_compiler=`set X $ac_compile; echo $2`
2353 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2354 (eval $ac_compiler --version </dev/null >&5) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }
2358 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2359 (eval $ac_compiler -v </dev/null >&5) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }
2363 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2364 (eval $ac_compiler -V </dev/null >&5) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2377 main ()
2381 return 0;
2383 _ACEOF
2384 ac_clean_files_save=$ac_clean_files
2385 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2386 # Try to create an executable without -o first, disregard a.out.
2387 # It will help us diagnose broken compilers, and finding out an intuition
2388 # of exeext.
2389 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2390 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2391 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2392 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2393 (eval $ac_link_default) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; then
2397 # Find the output, starting from the most likely. This scheme is
2398 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2399 # resort.
2401 # Be careful to initialize this variable, since it used to be cached.
2402 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2403 ac_cv_exeext=
2404 # b.out is created by i960 compilers.
2405 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2407 test -f "$ac_file" || continue
2408 case $ac_file in
2409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2411 conftest.$ac_ext )
2412 # This is the source file.
2414 [ab].out )
2415 # We found the default executable, but exeext='' is most
2416 # certainly right.
2417 break;;
2418 *.* )
2419 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2420 # FIXME: I believe we export ac_cv_exeext for Libtool,
2421 # but it would be cool to find out if it's true. Does anybody
2422 # maintain Libtool? --akim.
2423 export ac_cv_exeext
2424 break;;
2426 break;;
2427 esac
2428 done
2429 else
2430 echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2433 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2434 See \`config.log' for more details." >&5
2435 echo "$as_me: error: C compiler cannot create executables
2436 See \`config.log' for more details." >&2;}
2437 { (exit 77); exit 77; }; }
2440 ac_exeext=$ac_cv_exeext
2441 echo "$as_me:$LINENO: result: $ac_file" >&5
2442 echo "${ECHO_T}$ac_file" >&6
2444 # Check the compiler produces executables we can run. If not, either
2445 # the compiler is broken, or we cross compile.
2446 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2447 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2448 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2449 # If not cross compiling, check that we can run a simple program.
2450 if test "$cross_compiling" != yes; then
2451 if { ac_try='./$ac_file'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2457 cross_compiling=no
2458 else
2459 if test "$cross_compiling" = maybe; then
2460 cross_compiling=yes
2461 else
2462 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2463 If you meant to cross compile, use \`--host'.
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: cannot run C compiled programs.
2466 If you meant to cross compile, use \`--host'.
2467 See \`config.log' for more details." >&2;}
2468 { (exit 1); exit 1; }; }
2472 echo "$as_me:$LINENO: result: yes" >&5
2473 echo "${ECHO_T}yes" >&6
2475 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2476 ac_clean_files=$ac_clean_files_save
2477 # Check the compiler produces executables we can run. If not, either
2478 # the compiler is broken, or we cross compile.
2479 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2480 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2481 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2482 echo "${ECHO_T}$cross_compiling" >&6
2484 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2485 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2487 (eval $ac_link) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; then
2491 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2492 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2493 # work properly (i.e., refer to `conftest.exe'), while it won't with
2494 # `rm'.
2495 for ac_file in conftest.exe conftest conftest.*; do
2496 test -f "$ac_file" || continue
2497 case $ac_file in
2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2499 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2500 export ac_cv_exeext
2501 break;;
2502 * ) break;;
2503 esac
2504 done
2505 else
2506 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2507 See \`config.log' for more details." >&5
2508 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2509 See \`config.log' for more details." >&2;}
2510 { (exit 1); exit 1; }; }
2513 rm -f conftest$ac_cv_exeext
2514 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2515 echo "${ECHO_T}$ac_cv_exeext" >&6
2517 rm -f conftest.$ac_ext
2518 EXEEXT=$ac_cv_exeext
2519 ac_exeext=$EXEEXT
2520 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2521 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2522 if test "${ac_cv_objext+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525 cat >conftest.$ac_ext <<_ACEOF
2526 /* confdefs.h. */
2527 _ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2533 main ()
2537 return 0;
2539 _ACEOF
2540 rm -f conftest.o conftest.obj
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542 (eval $ac_compile) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; then
2546 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2547 case $ac_file in
2548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2550 break;;
2551 esac
2552 done
2553 else
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2560 See \`config.log' for more details." >&2;}
2561 { (exit 1); exit 1; }; }
2564 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2566 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2567 echo "${ECHO_T}$ac_cv_objext" >&6
2568 OBJEXT=$ac_cv_objext
2569 ac_objext=$OBJEXT
2570 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2571 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2572 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575 cat >conftest.$ac_ext <<_ACEOF
2576 /* confdefs.h. */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2583 main ()
2585 #ifndef __GNUC__
2586 choke me
2587 #endif
2590 return 0;
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>conftest.er1
2596 ac_status=$?
2597 grep -v '^ *+' conftest.er1 >conftest.err
2598 rm -f conftest.er1
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } &&
2602 { ac_try='test -z "$ac_c_werror_flag"
2603 || test ! -s conftest.err'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2615 ac_compiler_gnu=yes
2616 else
2617 echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2620 ac_compiler_gnu=no
2622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2626 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2627 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2628 GCC=`test $ac_compiler_gnu = yes && echo yes`
2629 ac_test_CFLAGS=${CFLAGS+set}
2630 ac_save_CFLAGS=$CFLAGS
2631 CFLAGS="-g"
2632 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2633 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2634 if test "${ac_cv_prog_cc_g+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637 cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h. */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2645 main ()
2649 return 0;
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 ac_cv_prog_cc_g=yes
2675 else
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2679 ac_cv_prog_cc_g=no
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2684 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2685 if test "$ac_test_CFLAGS" = set; then
2686 CFLAGS=$ac_save_CFLAGS
2687 elif test $ac_cv_prog_cc_g = yes; then
2688 if test "$GCC" = yes; then
2689 CFLAGS="-g -O2"
2690 else
2691 CFLAGS="-g"
2693 else
2694 if test "$GCC" = yes; then
2695 CFLAGS="-O2"
2696 else
2697 CFLAGS=
2700 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2701 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2702 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705 ac_cv_prog_cc_stdc=no
2706 ac_save_CC=$CC
2707 cat >conftest.$ac_ext <<_ACEOF
2708 /* confdefs.h. */
2709 _ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2713 #include <stdarg.h>
2714 #include <stdio.h>
2715 #include <sys/types.h>
2716 #include <sys/stat.h>
2717 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2718 struct buf { int x; };
2719 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2720 static char *e (p, i)
2721 char **p;
2722 int i;
2724 return p[i];
2726 static char *f (char * (*g) (char **, int), char **p, ...)
2728 char *s;
2729 va_list v;
2730 va_start (v,p);
2731 s = g (p, va_arg (v,int));
2732 va_end (v);
2733 return s;
2736 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2737 function prototypes and stuff, but not '\xHH' hex character constants.
2738 These don't provoke an error unfortunately, instead are silently treated
2739 as 'x'. The following induces an error, until -std1 is added to get
2740 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2741 array size at least. It's necessary to write '\x00'==0 to get something
2742 that's true only with -std1. */
2743 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2745 int test (int i, double x);
2746 struct s1 {int (*f) (int a);};
2747 struct s2 {int (*f) (double a);};
2748 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2749 int argc;
2750 char **argv;
2752 main ()
2754 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2756 return 0;
2758 _ACEOF
2759 # Don't try gcc -ansi; that turns off useful extensions and
2760 # breaks some systems' header files.
2761 # AIX -qlanglvl=ansi
2762 # Ultrix and OSF/1 -std1
2763 # HP-UX 10.20 and later -Ae
2764 # HP-UX older versions -Aa -D_HPUX_SOURCE
2765 # SVR4 -Xc -D__EXTENSIONS__
2766 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2768 CC="$ac_save_CC $ac_arg"
2769 rm -f conftest.$ac_objext
2770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771 (eval $ac_compile) 2>conftest.er1
2772 ac_status=$?
2773 grep -v '^ *+' conftest.er1 >conftest.err
2774 rm -f conftest.er1
2775 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try='test -z "$ac_c_werror_flag"
2779 || test ! -s conftest.err'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2791 ac_cv_prog_cc_stdc=$ac_arg
2792 break
2793 else
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -f conftest.err conftest.$ac_objext
2799 done
2800 rm -f conftest.$ac_ext conftest.$ac_objext
2801 CC=$ac_save_CC
2805 case "x$ac_cv_prog_cc_stdc" in
2806 x|xno)
2807 echo "$as_me:$LINENO: result: none needed" >&5
2808 echo "${ECHO_T}none needed" >&6 ;;
2810 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2811 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2812 CC="$CC $ac_cv_prog_cc_stdc" ;;
2813 esac
2815 # Some people use a C++ compiler to compile C. Since we use `exit',
2816 # in C++ we need to declare it. In case someone uses the same compiler
2817 # for both compiling C and C++ we need to have the C++ compiler decide
2818 # the declaration of exit, since it's the most demanding environment.
2819 cat >conftest.$ac_ext <<_ACEOF
2820 #ifndef __cplusplus
2821 choke me
2822 #endif
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>conftest.er1
2827 ac_status=$?
2828 grep -v '^ *+' conftest.er1 >conftest.err
2829 rm -f conftest.er1
2830 cat conftest.err >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -z "$ac_c_werror_flag"
2834 || test ! -s conftest.err'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 (eval $ac_try) 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 for ac_declaration in \
2847 '' \
2848 'extern "C" void std::exit (int) throw (); using std::exit;' \
2849 'extern "C" void std::exit (int); using std::exit;' \
2850 'extern "C" void exit (int) throw ();' \
2851 'extern "C" void exit (int);' \
2852 'void exit (int);'
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2860 $ac_declaration
2861 #include <stdlib.h>
2863 main ()
2865 exit (42);
2867 return 0;
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872 (eval $ac_compile) 2>conftest.er1
2873 ac_status=$?
2874 grep -v '^ *+' conftest.er1 >conftest.err
2875 rm -f conftest.er1
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try='test -z "$ac_c_werror_flag"
2880 || test ! -s conftest.err'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882 (eval $ac_try) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; } &&
2886 { ac_try='test -s conftest.$ac_objext'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 (eval $ac_try) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2893 else
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 continue
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h. */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2906 $ac_declaration
2908 main ()
2910 exit (42);
2912 return 0;
2914 _ACEOF
2915 rm -f conftest.$ac_objext
2916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2917 (eval $ac_compile) 2>conftest.er1
2918 ac_status=$?
2919 grep -v '^ *+' conftest.er1 >conftest.err
2920 rm -f conftest.er1
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } &&
2924 { ac_try='test -z "$ac_c_werror_flag"
2925 || test ! -s conftest.err'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; } &&
2931 { ac_try='test -s conftest.$ac_objext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 break
2938 else
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2944 done
2945 rm -f conftest*
2946 if test -n "$ac_declaration"; then
2947 echo '#ifdef __cplusplus' >>confdefs.h
2948 echo $ac_declaration >>confdefs.h
2949 echo '#endif' >>confdefs.h
2952 else
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2958 ac_ext=c
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964 if test "x$CC" != xcc; then
2965 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2966 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2967 else
2968 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2969 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2971 set dummy $CC; ac_cc=`echo $2 |
2972 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2973 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h. */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2984 main ()
2988 return 0;
2990 _ACEOF
2991 # Make sure it works both with $CC and with simple cc.
2992 # We do the test twice because some compilers refuse to overwrite an
2993 # existing .o file with -o, though they will create one.
2994 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2995 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } &&
3000 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 (eval $ac_try) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); };
3005 then
3006 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3007 if test "x$CC" != xcc; then
3008 # Test first that cc exists at all.
3009 if { ac_try='cc -c conftest.$ac_ext >&5'
3010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011 (eval $ac_try) 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3015 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3016 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017 (eval $ac_try) 2>&5
3018 ac_status=$?
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 test -f conftest.$ac_objext && { (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 then
3027 # cc works too.
3029 else
3030 # cc exists but doesn't like -o.
3031 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3035 else
3036 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3038 rm -f conftest*
3041 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3042 echo "$as_me:$LINENO: result: yes" >&5
3043 echo "${ECHO_T}yes" >&6
3044 else
3045 echo "$as_me:$LINENO: result: no" >&5
3046 echo "${ECHO_T}no" >&6
3048 cat >>confdefs.h <<\_ACEOF
3049 #define NO_MINUS_C_MINUS_O 1
3050 _ACEOF
3054 # expand $ac_aux_dir to an absolute path
3055 am_aux_dir=`cd $ac_aux_dir && pwd`
3057 # FIXME: we rely on the cache variable name because
3058 # there is no other way.
3059 set dummy $CC
3060 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3061 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3062 # Losing compiler, so override with the script.
3063 # FIXME: It is wrong to rewrite CC.
3064 # But if we don't then we get into trouble of one sort or another.
3065 # A longer-term fix would be to have automake use am__CC in this case,
3066 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3067 CC="$am_aux_dir/compile $CC"
3070 # autoconf is lame and doesn't give us any substitution variable for this.
3071 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3072 NO_MINUS_C_MINUS_O=yes
3073 else
3074 OUTPUT_OPTION='-o $@'
3079 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3080 # optimizations to be activated explicitly by the toplevel.
3081 case "$CC" in
3082 */prev-gcc/xgcc*) ;;
3083 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3084 esac
3087 # -------------------------
3088 # Check C compiler features
3089 # -------------------------
3092 ac_ext=c
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3098 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3099 # On Suns, sometimes $CPP names a directory.
3100 if test -n "$CPP" && test -d "$CPP"; then
3101 CPP=
3103 if test -z "$CPP"; then
3104 if test "${ac_cv_prog_CPP+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 # Double quotes because CPP needs to be expanded
3108 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3110 ac_preproc_ok=false
3111 for ac_c_preproc_warn_flag in '' yes
3113 # Use a header file that comes with gcc, so configuring glibc
3114 # with a fresh cross-compiler works.
3115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3116 # <limits.h> exists even on freestanding compilers.
3117 # On the NeXT, cc -E runs the code through the compiler's parser,
3118 # not just through cpp. "Syntax error" is here to catch this case.
3119 cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h. */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3125 #ifdef __STDC__
3126 # include <limits.h>
3127 #else
3128 # include <assert.h>
3129 #endif
3130 Syntax error
3131 _ACEOF
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3143 else
3144 ac_cpp_err=
3146 else
3147 ac_cpp_err=yes
3149 if test -z "$ac_cpp_err"; then
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 # Broken: fails on valid input.
3156 continue
3158 rm -f conftest.err conftest.$ac_ext
3160 # OK, works on sane cases. Now check whether non-existent headers
3161 # can be detected and how.
3162 cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h. */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168 #include <ac_nonexistent.h>
3169 _ACEOF
3170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } >/dev/null; then
3178 if test -s conftest.err; then
3179 ac_cpp_err=$ac_c_preproc_warn_flag
3180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3181 else
3182 ac_cpp_err=
3184 else
3185 ac_cpp_err=yes
3187 if test -z "$ac_cpp_err"; then
3188 # Broken: success on invalid input.
3189 continue
3190 else
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3194 # Passes both tests.
3195 ac_preproc_ok=:
3196 break
3198 rm -f conftest.err conftest.$ac_ext
3200 done
3201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3202 rm -f conftest.err conftest.$ac_ext
3203 if $ac_preproc_ok; then
3204 break
3207 done
3208 ac_cv_prog_CPP=$CPP
3211 CPP=$ac_cv_prog_CPP
3212 else
3213 ac_cv_prog_CPP=$CPP
3215 echo "$as_me:$LINENO: result: $CPP" >&5
3216 echo "${ECHO_T}$CPP" >&6
3217 ac_preproc_ok=false
3218 for ac_c_preproc_warn_flag in '' yes
3220 # Use a header file that comes with gcc, so configuring glibc
3221 # with a fresh cross-compiler works.
3222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3223 # <limits.h> exists even on freestanding compilers.
3224 # On the NeXT, cc -E runs the code through the compiler's parser,
3225 # not just through cpp. "Syntax error" is here to catch this case.
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3232 #ifdef __STDC__
3233 # include <limits.h>
3234 #else
3235 # include <assert.h>
3236 #endif
3237 Syntax error
3238 _ACEOF
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250 else
3251 ac_cpp_err=
3253 else
3254 ac_cpp_err=yes
3256 if test -z "$ac_cpp_err"; then
3258 else
3259 echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3262 # Broken: fails on valid input.
3263 continue
3265 rm -f conftest.err conftest.$ac_ext
3267 # OK, works on sane cases. Now check whether non-existent headers
3268 # can be detected and how.
3269 cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h. */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 #include <ac_nonexistent.h>
3276 _ACEOF
3277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3279 ac_status=$?
3280 grep -v '^ *+' conftest.er1 >conftest.err
3281 rm -f conftest.er1
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } >/dev/null; then
3285 if test -s conftest.err; then
3286 ac_cpp_err=$ac_c_preproc_warn_flag
3287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3288 else
3289 ac_cpp_err=
3291 else
3292 ac_cpp_err=yes
3294 if test -z "$ac_cpp_err"; then
3295 # Broken: success on invalid input.
3296 continue
3297 else
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 # Passes both tests.
3302 ac_preproc_ok=:
3303 break
3305 rm -f conftest.err conftest.$ac_ext
3307 done
3308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309 rm -f conftest.err conftest.$ac_ext
3310 if $ac_preproc_ok; then
3312 else
3313 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3314 See \`config.log' for more details." >&5
3315 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3316 See \`config.log' for more details." >&2;}
3317 { (exit 1); exit 1; }; }
3320 ac_ext=c
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 echo "$as_me:$LINENO: checking for egrep" >&5
3328 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3329 if test "${ac_cv_prog_egrep+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3333 then ac_cv_prog_egrep='grep -E'
3334 else ac_cv_prog_egrep='egrep'
3337 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3338 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3339 EGREP=$ac_cv_prog_egrep
3342 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3344 if test "${ac_cv_header_stdc+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347 cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h. */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353 #include <stdlib.h>
3354 #include <stdarg.h>
3355 #include <string.h>
3356 #include <float.h>
3359 main ()
3363 return 0;
3365 _ACEOF
3366 rm -f conftest.$ac_objext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368 (eval $ac_compile) 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try='test -z "$ac_c_werror_flag"
3376 || test ! -s conftest.err'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 (eval $ac_try) 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; } &&
3382 { ac_try='test -s conftest.$ac_objext'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 (eval $ac_try) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; }; then
3388 ac_cv_header_stdc=yes
3389 else
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 ac_cv_header_stdc=no
3395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3397 if test $ac_cv_header_stdc = yes; then
3398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3399 cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h. */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3405 #include <string.h>
3407 _ACEOF
3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409 $EGREP "memchr" >/dev/null 2>&1; then
3411 else
3412 ac_cv_header_stdc=no
3414 rm -f conftest*
3418 if test $ac_cv_header_stdc = yes; then
3419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #include <stdlib.h>
3428 _ACEOF
3429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3430 $EGREP "free" >/dev/null 2>&1; then
3432 else
3433 ac_cv_header_stdc=no
3435 rm -f conftest*
3439 if test $ac_cv_header_stdc = yes; then
3440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3441 if test "$cross_compiling" = yes; then
3443 else
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <ctype.h>
3451 #if ((' ' & 0x0FF) == 0x020)
3452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3454 #else
3455 # define ISLOWER(c) \
3456 (('a' <= (c) && (c) <= 'i') \
3457 || ('j' <= (c) && (c) <= 'r') \
3458 || ('s' <= (c) && (c) <= 'z'))
3459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3460 #endif
3462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3464 main ()
3466 int i;
3467 for (i = 0; i < 256; i++)
3468 if (XOR (islower (i), ISLOWER (i))
3469 || toupper (i) != TOUPPER (i))
3470 exit(2);
3471 exit (0);
3473 _ACEOF
3474 rm -f conftest$ac_exeext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3476 (eval $ac_link) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 (eval $ac_try) 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3486 else
3487 echo "$as_me: program exited with status $ac_status" >&5
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 ( exit $ac_status )
3492 ac_cv_header_stdc=no
3494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3498 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3499 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3500 if test $ac_cv_header_stdc = yes; then
3502 cat >>confdefs.h <<\_ACEOF
3503 #define STDC_HEADERS 1
3504 _ACEOF
3508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3519 inttypes.h stdint.h unistd.h
3521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3522 echo "$as_me:$LINENO: checking for $ac_header" >&5
3523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h. */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533 $ac_includes_default
3535 #include <$ac_header>
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag"
3547 || test ! -s conftest.err'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try='test -s conftest.$ac_objext'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 (eval $ac_try) 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 eval "$as_ac_Header=yes"
3560 else
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3564 eval "$as_ac_Header=no"
3566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3571 cat >>confdefs.h <<_ACEOF
3572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3573 _ACEOF
3577 done
3581 if test "${ac_cv_header_minix_config_h+set}" = set; then
3582 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3583 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3584 if test "${ac_cv_header_minix_config_h+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3588 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3589 else
3590 # Is the header compilable?
3591 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3592 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3593 cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h. */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 $ac_includes_default
3600 #include <minix/config.h>
3601 _ACEOF
3602 rm -f conftest.$ac_objext
3603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604 (eval $ac_compile) 2>conftest.er1
3605 ac_status=$?
3606 grep -v '^ *+' conftest.er1 >conftest.err
3607 rm -f conftest.er1
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -z "$ac_c_werror_flag"
3612 || test ! -s conftest.err'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; } &&
3618 { ac_try='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_header_compiler=yes
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 ac_header_compiler=no
3631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3633 echo "${ECHO_T}$ac_header_compiler" >&6
3635 # Is the header present?
3636 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3637 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 #include <minix/config.h>
3645 _ACEOF
3646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } >/dev/null; then
3654 if test -s conftest.err; then
3655 ac_cpp_err=$ac_c_preproc_warn_flag
3656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3657 else
3658 ac_cpp_err=
3660 else
3661 ac_cpp_err=yes
3663 if test -z "$ac_cpp_err"; then
3664 ac_header_preproc=yes
3665 else
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3669 ac_header_preproc=no
3671 rm -f conftest.err conftest.$ac_ext
3672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3673 echo "${ECHO_T}$ac_header_preproc" >&6
3675 # So? What about this header?
3676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3677 yes:no: )
3678 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3679 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3680 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3681 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3682 ac_header_preproc=yes
3684 no:yes:* )
3685 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3686 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3687 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3688 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3689 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3690 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3691 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3692 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3693 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3694 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3695 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3696 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3698 cat <<\_ASBOX
3699 ## ------------------------------------------ ##
3700 ## Report this to the AC_PACKAGE_NAME lists. ##
3701 ## ------------------------------------------ ##
3702 _ASBOX
3704 sed "s/^/$as_me: WARNING: /" >&2
3706 esac
3707 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3708 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3709 if test "${ac_cv_header_minix_config_h+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712 ac_cv_header_minix_config_h=$ac_header_preproc
3714 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3715 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3718 if test $ac_cv_header_minix_config_h = yes; then
3719 MINIX=yes
3720 else
3721 MINIX=
3725 if test "$MINIX" = yes; then
3727 cat >>confdefs.h <<\_ACEOF
3728 #define _POSIX_SOURCE 1
3729 _ACEOF
3732 cat >>confdefs.h <<\_ACEOF
3733 #define _POSIX_1_SOURCE 2
3734 _ACEOF
3737 cat >>confdefs.h <<\_ACEOF
3738 #define _MINIX 1
3739 _ACEOF
3745 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3746 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3747 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 cat >conftest.$ac_ext <<_ACEOF
3751 /* confdefs.h. */
3752 _ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3757 # define __EXTENSIONS__ 1
3758 $ac_includes_default
3760 main ()
3764 return 0;
3766 _ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>conftest.er1
3770 ac_status=$?
3771 grep -v '^ *+' conftest.er1 >conftest.err
3772 rm -f conftest.er1
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try='test -z "$ac_c_werror_flag"
3777 || test ! -s conftest.err'
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); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 (eval $ac_try) 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 ac_cv_safe_to_define___extensions__=yes
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 ac_cv_safe_to_define___extensions__=no
3796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3799 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3800 test $ac_cv_safe_to_define___extensions__ = yes &&
3801 cat >>confdefs.h <<\_ACEOF
3802 #define __EXTENSIONS__ 1
3803 _ACEOF
3805 cat >>confdefs.h <<\_ACEOF
3806 #define _ALL_SOURCE 1
3807 _ACEOF
3809 cat >>confdefs.h <<\_ACEOF
3810 #define _GNU_SOURCE 1
3811 _ACEOF
3813 cat >>confdefs.h <<\_ACEOF
3814 #define _POSIX_PTHREAD_SEMANTICS 1
3815 _ACEOF
3817 cat >>confdefs.h <<\_ACEOF
3818 #define _TANDEM_SOURCE 1
3819 _ACEOF
3822 ac_ext=c
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3828 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3829 # On Suns, sometimes $CPP names a directory.
3830 if test -n "$CPP" && test -d "$CPP"; then
3831 CPP=
3833 if test -z "$CPP"; then
3834 if test "${ac_cv_prog_CPP+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837 # Double quotes because CPP needs to be expanded
3838 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3840 ac_preproc_ok=false
3841 for ac_c_preproc_warn_flag in '' yes
3843 # Use a header file that comes with gcc, so configuring glibc
3844 # with a fresh cross-compiler works.
3845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3846 # <limits.h> exists even on freestanding compilers.
3847 # On the NeXT, cc -E runs the code through the compiler's parser,
3848 # not just through cpp. "Syntax error" is here to catch this case.
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #ifdef __STDC__
3856 # include <limits.h>
3857 #else
3858 # include <assert.h>
3859 #endif
3860 Syntax error
3861 _ACEOF
3862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } >/dev/null; then
3870 if test -s conftest.err; then
3871 ac_cpp_err=$ac_c_preproc_warn_flag
3872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3873 else
3874 ac_cpp_err=
3876 else
3877 ac_cpp_err=yes
3879 if test -z "$ac_cpp_err"; then
3881 else
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 # Broken: fails on valid input.
3886 continue
3888 rm -f conftest.err conftest.$ac_ext
3890 # OK, works on sane cases. Now check whether non-existent headers
3891 # can be detected and how.
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 #include <ac_nonexistent.h>
3899 _ACEOF
3900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3902 ac_status=$?
3903 grep -v '^ *+' conftest.er1 >conftest.err
3904 rm -f conftest.er1
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } >/dev/null; then
3908 if test -s conftest.err; then
3909 ac_cpp_err=$ac_c_preproc_warn_flag
3910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3911 else
3912 ac_cpp_err=
3914 else
3915 ac_cpp_err=yes
3917 if test -z "$ac_cpp_err"; then
3918 # Broken: success on invalid input.
3919 continue
3920 else
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 # Passes both tests.
3925 ac_preproc_ok=:
3926 break
3928 rm -f conftest.err conftest.$ac_ext
3930 done
3931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3932 rm -f conftest.err conftest.$ac_ext
3933 if $ac_preproc_ok; then
3934 break
3937 done
3938 ac_cv_prog_CPP=$CPP
3941 CPP=$ac_cv_prog_CPP
3942 else
3943 ac_cv_prog_CPP=$CPP
3945 echo "$as_me:$LINENO: result: $CPP" >&5
3946 echo "${ECHO_T}$CPP" >&6
3947 ac_preproc_ok=false
3948 for ac_c_preproc_warn_flag in '' yes
3950 # Use a header file that comes with gcc, so configuring glibc
3951 # with a fresh cross-compiler works.
3952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3953 # <limits.h> exists even on freestanding compilers.
3954 # On the NeXT, cc -E runs the code through the compiler's parser,
3955 # not just through cpp. "Syntax error" is here to catch this case.
3956 cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h. */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3962 #ifdef __STDC__
3963 # include <limits.h>
3964 #else
3965 # include <assert.h>
3966 #endif
3967 Syntax error
3968 _ACEOF
3969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } >/dev/null; then
3977 if test -s conftest.err; then
3978 ac_cpp_err=$ac_c_preproc_warn_flag
3979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3980 else
3981 ac_cpp_err=
3983 else
3984 ac_cpp_err=yes
3986 if test -z "$ac_cpp_err"; then
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 # Broken: fails on valid input.
3993 continue
3995 rm -f conftest.err conftest.$ac_ext
3997 # OK, works on sane cases. Now check whether non-existent headers
3998 # can be detected and how.
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 #include <ac_nonexistent.h>
4006 _ACEOF
4007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } >/dev/null; then
4015 if test -s conftest.err; then
4016 ac_cpp_err=$ac_c_preproc_warn_flag
4017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4018 else
4019 ac_cpp_err=
4021 else
4022 ac_cpp_err=yes
4024 if test -z "$ac_cpp_err"; then
4025 # Broken: success on invalid input.
4026 continue
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 # Passes both tests.
4032 ac_preproc_ok=:
4033 break
4035 rm -f conftest.err conftest.$ac_ext
4037 done
4038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4039 rm -f conftest.err conftest.$ac_ext
4040 if $ac_preproc_ok; then
4042 else
4043 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4044 See \`config.log' for more details." >&5
4045 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4046 See \`config.log' for more details." >&2;}
4047 { (exit 1); exit 1; }; }
4050 ac_ext=c
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056 echo "$as_me:$LINENO: checking for inline" >&5
4057 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4058 if test "${ac_cv_c_inline+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 ac_cv_c_inline=no
4062 for ac_kw in inline __inline__ __inline; do
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 #ifndef __cplusplus
4070 typedef int foo_t;
4071 static $ac_kw foo_t static_foo () {return 0; }
4072 $ac_kw foo_t foo () {return 0; }
4073 #endif
4075 _ACEOF
4076 rm -f conftest.$ac_objext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078 (eval $ac_compile) 2>conftest.er1
4079 ac_status=$?
4080 grep -v '^ *+' conftest.er1 >conftest.err
4081 rm -f conftest.er1
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } &&
4085 { ac_try='test -z "$ac_c_werror_flag"
4086 || test ! -s conftest.err'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088 (eval $ac_try) 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; } &&
4092 { ac_try='test -s conftest.$ac_objext'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 (eval $ac_try) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4098 ac_cv_c_inline=$ac_kw; break
4099 else
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4105 done
4108 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4109 echo "${ECHO_T}$ac_cv_c_inline" >&6
4112 case $ac_cv_c_inline in
4113 inline | yes) ;;
4115 case $ac_cv_c_inline in
4116 no) ac_val=;;
4117 *) ac_val=$ac_cv_c_inline;;
4118 esac
4119 cat >>confdefs.h <<_ACEOF
4120 #ifndef __cplusplus
4121 #define inline $ac_val
4122 #endif
4123 _ACEOF
4125 esac
4128 # sizeof(char) is 1 by definition.
4129 echo "$as_me:$LINENO: checking for void *" >&5
4130 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4131 if test "${ac_cv_type_void_p+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134 cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h. */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 $ac_includes_default
4142 main ()
4144 if ((void * *) 0)
4145 return 0;
4146 if (sizeof (void *))
4147 return 0;
4149 return 0;
4151 _ACEOF
4152 rm -f conftest.$ac_objext
4153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4154 (eval $ac_compile) 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -z "$ac_c_werror_flag"
4162 || test ! -s conftest.err'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; } &&
4168 { ac_try='test -s conftest.$ac_objext'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 (eval $ac_try) 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4174 ac_cv_type_void_p=yes
4175 else
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4179 ac_cv_type_void_p=no
4181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4183 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4184 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4186 echo "$as_me:$LINENO: checking size of void *" >&5
4187 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4188 if test "${ac_cv_sizeof_void_p+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191 if test "$ac_cv_type_void_p" = yes; then
4192 # The cast to unsigned long works around a bug in the HP C Compiler
4193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4195 # This bug is HP SR number 8606223364.
4196 if test "$cross_compiling" = yes; then
4197 # Depending upon the size, compute the lo and hi bounds.
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h. */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 $ac_includes_default
4206 main ()
4208 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4209 test_array [0] = 0
4212 return 0;
4214 _ACEOF
4215 rm -f conftest.$ac_objext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217 (eval $ac_compile) 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag"
4225 || test ! -s conftest.err'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 (eval $ac_try) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 ac_lo=0 ac_mid=0
4238 while :; do
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h. */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4245 $ac_includes_default
4247 main ()
4249 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4250 test_array [0] = 0
4253 return 0;
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4258 (eval $ac_compile) 2>conftest.er1
4259 ac_status=$?
4260 grep -v '^ *+' conftest.er1 >conftest.err
4261 rm -f conftest.er1
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -z "$ac_c_werror_flag"
4266 || test ! -s conftest.err'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 (eval $ac_try) 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest.$ac_objext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 ac_hi=$ac_mid; break
4279 else
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 ac_lo=`expr $ac_mid + 1`
4284 if test $ac_lo -le $ac_mid; then
4285 ac_lo= ac_hi=
4286 break
4288 ac_mid=`expr 2 '*' $ac_mid + 1`
4290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4291 done
4292 else
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h. */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 $ac_includes_default
4304 main ()
4306 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4307 test_array [0] = 0
4310 return 0;
4312 _ACEOF
4313 rm -f conftest.$ac_objext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315 (eval $ac_compile) 2>conftest.er1
4316 ac_status=$?
4317 grep -v '^ *+' conftest.er1 >conftest.err
4318 rm -f conftest.er1
4319 cat conftest.err >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } &&
4322 { ac_try='test -z "$ac_c_werror_flag"
4323 || test ! -s conftest.err'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 (eval $ac_try) 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; } &&
4329 { ac_try='test -s conftest.$ac_objext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 (eval $ac_try) 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 ac_hi=-1 ac_mid=-1
4336 while :; do
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 $ac_includes_default
4345 main ()
4347 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4348 test_array [0] = 0
4351 return 0;
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -z "$ac_c_werror_flag"
4364 || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 ac_lo=$ac_mid; break
4377 else
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 ac_hi=`expr '(' $ac_mid ')' - 1`
4382 if test $ac_mid -le $ac_hi; then
4383 ac_lo= ac_hi=
4384 break
4386 ac_mid=`expr 2 '*' $ac_mid`
4388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4389 done
4390 else
4391 echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4394 ac_lo= ac_hi=
4396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4399 # Binary search between lo and hi bounds.
4400 while test "x$ac_lo" != "x$ac_hi"; do
4401 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 $ac_includes_default
4410 main ()
4412 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4413 test_array [0] = 0
4416 return 0;
4418 _ACEOF
4419 rm -f conftest.$ac_objext
4420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421 (eval $ac_compile) 2>conftest.er1
4422 ac_status=$?
4423 grep -v '^ *+' conftest.er1 >conftest.err
4424 rm -f conftest.er1
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -z "$ac_c_werror_flag"
4429 || test ! -s conftest.err'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 (eval $ac_try) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; } &&
4435 { ac_try='test -s conftest.$ac_objext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 (eval $ac_try) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 ac_hi=$ac_mid
4442 else
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 ac_lo=`expr '(' $ac_mid ')' + 1`
4448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4449 done
4450 case $ac_lo in
4451 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4452 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4453 See \`config.log' for more details." >&5
4454 echo "$as_me: error: cannot compute sizeof (void *), 77
4455 See \`config.log' for more details." >&2;}
4456 { (exit 1); exit 1; }; } ;;
4457 esac
4458 else
4459 if test "$cross_compiling" = yes; then
4460 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4461 See \`config.log' for more details." >&5
4462 echo "$as_me: error: cannot run test program while cross compiling
4463 See \`config.log' for more details." >&2;}
4464 { (exit 1); exit 1; }; }
4465 else
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h. */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 $ac_includes_default
4473 long longval () { return (long) (sizeof (void *)); }
4474 unsigned long ulongval () { return (long) (sizeof (void *)); }
4475 #include <stdio.h>
4476 #include <stdlib.h>
4478 main ()
4481 FILE *f = fopen ("conftest.val", "w");
4482 if (! f)
4483 exit (1);
4484 if (((long) (sizeof (void *))) < 0)
4486 long i = longval ();
4487 if (i != ((long) (sizeof (void *))))
4488 exit (1);
4489 fprintf (f, "%ld\n", i);
4491 else
4493 unsigned long i = ulongval ();
4494 if (i != ((long) (sizeof (void *))))
4495 exit (1);
4496 fprintf (f, "%lu\n", i);
4498 exit (ferror (f) || fclose (f) != 0);
4501 return 0;
4503 _ACEOF
4504 rm -f conftest$ac_exeext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506 (eval $ac_link) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_sizeof_void_p=`cat conftest.val`
4516 else
4517 echo "$as_me: program exited with status $ac_status" >&5
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 ( exit $ac_status )
4522 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4523 See \`config.log' for more details." >&5
4524 echo "$as_me: error: cannot compute sizeof (void *), 77
4525 See \`config.log' for more details." >&2;}
4526 { (exit 1); exit 1; }; }
4528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4531 rm -f conftest.val
4532 else
4533 ac_cv_sizeof_void_p=0
4536 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4537 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4538 cat >>confdefs.h <<_ACEOF
4539 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4540 _ACEOF
4543 echo "$as_me:$LINENO: checking for short" >&5
4544 echo $ECHO_N "checking for short... $ECHO_C" >&6
4545 if test "${ac_cv_type_short+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548 cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h. */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4554 $ac_includes_default
4556 main ()
4558 if ((short *) 0)
4559 return 0;
4560 if (sizeof (short))
4561 return 0;
4563 return 0;
4565 _ACEOF
4566 rm -f conftest.$ac_objext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4568 (eval $ac_compile) 2>conftest.er1
4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -z "$ac_c_werror_flag"
4576 || test ! -s conftest.err'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try='test -s conftest.$ac_objext'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4588 ac_cv_type_short=yes
4589 else
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4593 ac_cv_type_short=no
4595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4597 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4598 echo "${ECHO_T}$ac_cv_type_short" >&6
4600 echo "$as_me:$LINENO: checking size of short" >&5
4601 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4602 if test "${ac_cv_sizeof_short+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 if test "$ac_cv_type_short" = yes; then
4606 # The cast to unsigned long works around a bug in the HP C Compiler
4607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4609 # This bug is HP SR number 8606223364.
4610 if test "$cross_compiling" = yes; then
4611 # Depending upon the size, compute the lo and hi bounds.
4612 cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h. */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 $ac_includes_default
4620 main ()
4622 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4623 test_array [0] = 0
4626 return 0;
4628 _ACEOF
4629 rm -f conftest.$ac_objext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>conftest.er1
4632 ac_status=$?
4633 grep -v '^ *+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -z "$ac_c_werror_flag"
4639 || test ! -s conftest.err'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 (eval $ac_try) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; } &&
4645 { ac_try='test -s conftest.$ac_objext'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 ac_lo=0 ac_mid=0
4652 while :; do
4653 cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 $ac_includes_default
4661 main ()
4663 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4664 test_array [0] = 0
4667 return 0;
4669 _ACEOF
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>conftest.er1
4673 ac_status=$?
4674 grep -v '^ *+' conftest.er1 >conftest.err
4675 rm -f conftest.er1
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } &&
4679 { ac_try='test -z "$ac_c_werror_flag"
4680 || test ! -s conftest.err'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; } &&
4686 { ac_try='test -s conftest.$ac_objext'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 (eval $ac_try) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 ac_hi=$ac_mid; break
4693 else
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4697 ac_lo=`expr $ac_mid + 1`
4698 if test $ac_lo -le $ac_mid; then
4699 ac_lo= ac_hi=
4700 break
4702 ac_mid=`expr 2 '*' $ac_mid + 1`
4704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4705 done
4706 else
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h. */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 $ac_includes_default
4718 main ()
4720 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4721 test_array [0] = 0
4724 return 0;
4726 _ACEOF
4727 rm -f conftest.$ac_objext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729 (eval $ac_compile) 2>conftest.er1
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } &&
4736 { ac_try='test -z "$ac_c_werror_flag"
4737 || test ! -s conftest.err'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; } &&
4743 { ac_try='test -s conftest.$ac_objext'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; }; then
4749 ac_hi=-1 ac_mid=-1
4750 while :; do
4751 cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h. */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 $ac_includes_default
4759 main ()
4761 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4762 test_array [0] = 0
4765 return 0;
4767 _ACEOF
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>conftest.er1
4771 ac_status=$?
4772 grep -v '^ *+' conftest.er1 >conftest.err
4773 rm -f conftest.er1
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -z "$ac_c_werror_flag"
4778 || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_lo=$ac_mid; break
4791 else
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4795 ac_hi=`expr '(' $ac_mid ')' - 1`
4796 if test $ac_mid -le $ac_hi; then
4797 ac_lo= ac_hi=
4798 break
4800 ac_mid=`expr 2 '*' $ac_mid`
4802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4803 done
4804 else
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4808 ac_lo= ac_hi=
4810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4813 # Binary search between lo and hi bounds.
4814 while test "x$ac_lo" != "x$ac_hi"; do
4815 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 $ac_includes_default
4824 main ()
4826 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4827 test_array [0] = 0
4830 return 0;
4832 _ACEOF
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>conftest.er1
4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try='test -z "$ac_c_werror_flag"
4843 || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_hi=$ac_mid
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 ac_lo=`expr '(' $ac_mid ')' + 1`
4862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4863 done
4864 case $ac_lo in
4865 ?*) ac_cv_sizeof_short=$ac_lo;;
4866 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4867 See \`config.log' for more details." >&5
4868 echo "$as_me: error: cannot compute sizeof (short), 77
4869 See \`config.log' for more details." >&2;}
4870 { (exit 1); exit 1; }; } ;;
4871 esac
4872 else
4873 if test "$cross_compiling" = yes; then
4874 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4875 See \`config.log' for more details." >&5
4876 echo "$as_me: error: cannot run test program while cross compiling
4877 See \`config.log' for more details." >&2;}
4878 { (exit 1); exit 1; }; }
4879 else
4880 cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h. */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 $ac_includes_default
4887 long longval () { return (long) (sizeof (short)); }
4888 unsigned long ulongval () { return (long) (sizeof (short)); }
4889 #include <stdio.h>
4890 #include <stdlib.h>
4892 main ()
4895 FILE *f = fopen ("conftest.val", "w");
4896 if (! f)
4897 exit (1);
4898 if (((long) (sizeof (short))) < 0)
4900 long i = longval ();
4901 if (i != ((long) (sizeof (short))))
4902 exit (1);
4903 fprintf (f, "%ld\n", i);
4905 else
4907 unsigned long i = ulongval ();
4908 if (i != ((long) (sizeof (short))))
4909 exit (1);
4910 fprintf (f, "%lu\n", i);
4912 exit (ferror (f) || fclose (f) != 0);
4915 return 0;
4917 _ACEOF
4918 rm -f conftest$ac_exeext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4920 (eval $ac_link) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 (eval $ac_try) 2>&5
4926 ac_status=$?
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; }; then
4929 ac_cv_sizeof_short=`cat conftest.val`
4930 else
4931 echo "$as_me: program exited with status $ac_status" >&5
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4935 ( exit $ac_status )
4936 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4937 See \`config.log' for more details." >&5
4938 echo "$as_me: error: cannot compute sizeof (short), 77
4939 See \`config.log' for more details." >&2;}
4940 { (exit 1); exit 1; }; }
4942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4945 rm -f conftest.val
4946 else
4947 ac_cv_sizeof_short=0
4950 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4951 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4952 cat >>confdefs.h <<_ACEOF
4953 #define SIZEOF_SHORT $ac_cv_sizeof_short
4954 _ACEOF
4957 echo "$as_me:$LINENO: checking for int" >&5
4958 echo $ECHO_N "checking for int... $ECHO_C" >&6
4959 if test "${ac_cv_type_int+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 $ac_includes_default
4970 main ()
4972 if ((int *) 0)
4973 return 0;
4974 if (sizeof (int))
4975 return 0;
4977 return 0;
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>conftest.er1
4983 ac_status=$?
4984 grep -v '^ *+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -z "$ac_c_werror_flag"
4990 || test ! -s conftest.err'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 (eval $ac_try) 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; } &&
4996 { ac_try='test -s conftest.$ac_objext'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 (eval $ac_try) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5002 ac_cv_type_int=yes
5003 else
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5007 ac_cv_type_int=no
5009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5011 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5012 echo "${ECHO_T}$ac_cv_type_int" >&6
5014 echo "$as_me:$LINENO: checking size of int" >&5
5015 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5016 if test "${ac_cv_sizeof_int+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019 if test "$ac_cv_type_int" = yes; then
5020 # The cast to unsigned long works around a bug in the HP C Compiler
5021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5023 # This bug is HP SR number 8606223364.
5024 if test "$cross_compiling" = yes; then
5025 # Depending upon the size, compute the lo and hi bounds.
5026 cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h. */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5032 $ac_includes_default
5034 main ()
5036 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5037 test_array [0] = 0
5040 return 0;
5042 _ACEOF
5043 rm -f conftest.$ac_objext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045 (eval $ac_compile) 2>conftest.er1
5046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } &&
5052 { ac_try='test -z "$ac_c_werror_flag"
5053 || test ! -s conftest.err'
5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 (eval $ac_try) 2>&5
5056 ac_status=$?
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; } &&
5059 { ac_try='test -s conftest.$ac_objext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 ac_lo=0 ac_mid=0
5066 while :; do
5067 cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h. */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 $ac_includes_default
5075 main ()
5077 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5078 test_array [0] = 0
5081 return 0;
5083 _ACEOF
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086 (eval $ac_compile) 2>conftest.er1
5087 ac_status=$?
5088 grep -v '^ *+' conftest.er1 >conftest.err
5089 rm -f conftest.er1
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } &&
5093 { ac_try='test -z "$ac_c_werror_flag"
5094 || test ! -s conftest.err'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; } &&
5100 { ac_try='test -s conftest.$ac_objext'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 (eval $ac_try) 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 ac_hi=$ac_mid; break
5107 else
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 ac_lo=`expr $ac_mid + 1`
5112 if test $ac_lo -le $ac_mid; then
5113 ac_lo= ac_hi=
5114 break
5116 ac_mid=`expr 2 '*' $ac_mid + 1`
5118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5119 done
5120 else
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5124 cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h. */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130 $ac_includes_default
5132 main ()
5134 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5135 test_array [0] = 0
5138 return 0;
5140 _ACEOF
5141 rm -f conftest.$ac_objext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143 (eval $ac_compile) 2>conftest.er1
5144 ac_status=$?
5145 grep -v '^ *+' conftest.er1 >conftest.err
5146 rm -f conftest.er1
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } &&
5150 { ac_try='test -z "$ac_c_werror_flag"
5151 || test ! -s conftest.err'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 (eval $ac_try) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; } &&
5157 { ac_try='test -s conftest.$ac_objext'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5163 ac_hi=-1 ac_mid=-1
5164 while :; do
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 $ac_includes_default
5173 main ()
5175 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5176 test_array [0] = 0
5179 return 0;
5181 _ACEOF
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184 (eval $ac_compile) 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -z "$ac_c_werror_flag"
5192 || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 (eval $ac_try) 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 (eval $ac_try) 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_lo=$ac_mid; break
5205 else
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5209 ac_hi=`expr '(' $ac_mid ')' - 1`
5210 if test $ac_mid -le $ac_hi; then
5211 ac_lo= ac_hi=
5212 break
5214 ac_mid=`expr 2 '*' $ac_mid`
5216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5217 done
5218 else
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5222 ac_lo= ac_hi=
5224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5227 # Binary search between lo and hi bounds.
5228 while test "x$ac_lo" != "x$ac_hi"; do
5229 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 $ac_includes_default
5238 main ()
5240 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5241 test_array [0] = 0
5244 return 0;
5246 _ACEOF
5247 rm -f conftest.$ac_objext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5249 (eval $ac_compile) 2>conftest.er1
5250 ac_status=$?
5251 grep -v '^ *+' conftest.er1 >conftest.err
5252 rm -f conftest.er1
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try='test -z "$ac_c_werror_flag"
5257 || test ! -s conftest.err'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 (eval $ac_try) 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; } &&
5263 { ac_try='test -s conftest.$ac_objext'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 (eval $ac_try) 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; }; then
5269 ac_hi=$ac_mid
5270 else
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5274 ac_lo=`expr '(' $ac_mid ')' + 1`
5276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5277 done
5278 case $ac_lo in
5279 ?*) ac_cv_sizeof_int=$ac_lo;;
5280 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5281 See \`config.log' for more details." >&5
5282 echo "$as_me: error: cannot compute sizeof (int), 77
5283 See \`config.log' for more details." >&2;}
5284 { (exit 1); exit 1; }; } ;;
5285 esac
5286 else
5287 if test "$cross_compiling" = yes; then
5288 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5289 See \`config.log' for more details." >&5
5290 echo "$as_me: error: cannot run test program while cross compiling
5291 See \`config.log' for more details." >&2;}
5292 { (exit 1); exit 1; }; }
5293 else
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 $ac_includes_default
5301 long longval () { return (long) (sizeof (int)); }
5302 unsigned long ulongval () { return (long) (sizeof (int)); }
5303 #include <stdio.h>
5304 #include <stdlib.h>
5306 main ()
5309 FILE *f = fopen ("conftest.val", "w");
5310 if (! f)
5311 exit (1);
5312 if (((long) (sizeof (int))) < 0)
5314 long i = longval ();
5315 if (i != ((long) (sizeof (int))))
5316 exit (1);
5317 fprintf (f, "%ld\n", i);
5319 else
5321 unsigned long i = ulongval ();
5322 if (i != ((long) (sizeof (int))))
5323 exit (1);
5324 fprintf (f, "%lu\n", i);
5326 exit (ferror (f) || fclose (f) != 0);
5329 return 0;
5331 _ACEOF
5332 rm -f conftest$ac_exeext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5334 (eval $ac_link) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 ac_cv_sizeof_int=`cat conftest.val`
5344 else
5345 echo "$as_me: program exited with status $ac_status" >&5
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ( exit $ac_status )
5350 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5351 See \`config.log' for more details." >&5
5352 echo "$as_me: error: cannot compute sizeof (int), 77
5353 See \`config.log' for more details." >&2;}
5354 { (exit 1); exit 1; }; }
5356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5359 rm -f conftest.val
5360 else
5361 ac_cv_sizeof_int=0
5364 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5365 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5366 cat >>confdefs.h <<_ACEOF
5367 #define SIZEOF_INT $ac_cv_sizeof_int
5368 _ACEOF
5371 echo "$as_me:$LINENO: checking for long" >&5
5372 echo $ECHO_N "checking for long... $ECHO_C" >&6
5373 if test "${ac_cv_type_long+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h. */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 $ac_includes_default
5384 main ()
5386 if ((long *) 0)
5387 return 0;
5388 if (sizeof (long))
5389 return 0;
5391 return 0;
5393 _ACEOF
5394 rm -f conftest.$ac_objext
5395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396 (eval $ac_compile) 2>conftest.er1
5397 ac_status=$?
5398 grep -v '^ *+' conftest.er1 >conftest.err
5399 rm -f conftest.er1
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } &&
5403 { ac_try='test -z "$ac_c_werror_flag"
5404 || test ! -s conftest.err'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; } &&
5410 { ac_try='test -s conftest.$ac_objext'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 (eval $ac_try) 2>&5
5413 ac_status=$?
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; }; then
5416 ac_cv_type_long=yes
5417 else
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5421 ac_cv_type_long=no
5423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5425 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5426 echo "${ECHO_T}$ac_cv_type_long" >&6
5428 echo "$as_me:$LINENO: checking size of long" >&5
5429 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5430 if test "${ac_cv_sizeof_long+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433 if test "$ac_cv_type_long" = yes; then
5434 # The cast to unsigned long works around a bug in the HP C Compiler
5435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5437 # This bug is HP SR number 8606223364.
5438 if test "$cross_compiling" = yes; then
5439 # Depending upon the size, compute the lo and hi bounds.
5440 cat >conftest.$ac_ext <<_ACEOF
5441 /* confdefs.h. */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 $ac_includes_default
5448 main ()
5450 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5451 test_array [0] = 0
5454 return 0;
5456 _ACEOF
5457 rm -f conftest.$ac_objext
5458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5459 (eval $ac_compile) 2>conftest.er1
5460 ac_status=$?
5461 grep -v '^ *+' conftest.er1 >conftest.err
5462 rm -f conftest.er1
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try='test -z "$ac_c_werror_flag"
5467 || test ! -s conftest.err'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; } &&
5473 { ac_try='test -s conftest.$ac_objext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 (eval $ac_try) 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_lo=0 ac_mid=0
5480 while :; do
5481 cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h. */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5489 main ()
5491 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5492 test_array [0] = 0
5495 return 0;
5497 _ACEOF
5498 rm -f conftest.$ac_objext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500 (eval $ac_compile) 2>conftest.er1
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } &&
5507 { ac_try='test -z "$ac_c_werror_flag"
5508 || test ! -s conftest.err'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 (eval $ac_try) 2>&5
5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; } &&
5514 { ac_try='test -s conftest.$ac_objext'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 (eval $ac_try) 2>&5
5517 ac_status=$?
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
5520 ac_hi=$ac_mid; break
5521 else
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5525 ac_lo=`expr $ac_mid + 1`
5526 if test $ac_lo -le $ac_mid; then
5527 ac_lo= ac_hi=
5528 break
5530 ac_mid=`expr 2 '*' $ac_mid + 1`
5532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5533 done
5534 else
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5538 cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 $ac_includes_default
5546 main ()
5548 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5549 test_array [0] = 0
5552 return 0;
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_hi=-1 ac_mid=-1
5578 while :; do
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 $ac_includes_default
5587 main ()
5589 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5590 test_array [0] = 0
5593 return 0;
5595 _ACEOF
5596 rm -f conftest.$ac_objext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598 (eval $ac_compile) 2>conftest.er1
5599 ac_status=$?
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } &&
5605 { ac_try='test -z "$ac_c_werror_flag"
5606 || test ! -s conftest.err'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try='test -s conftest.$ac_objext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 (eval $ac_try) 2>&5
5615 ac_status=$?
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 ac_lo=$ac_mid; break
5619 else
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5623 ac_hi=`expr '(' $ac_mid ')' - 1`
5624 if test $ac_mid -le $ac_hi; then
5625 ac_lo= ac_hi=
5626 break
5628 ac_mid=`expr 2 '*' $ac_mid`
5630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5631 done
5632 else
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 ac_lo= ac_hi=
5638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5641 # Binary search between lo and hi bounds.
5642 while test "x$ac_lo" != "x$ac_hi"; do
5643 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5644 cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h. */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 $ac_includes_default
5652 main ()
5654 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5655 test_array [0] = 0
5658 return 0;
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -z "$ac_c_werror_flag"
5671 || test ! -s conftest.err'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_hi=$ac_mid
5684 else
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5688 ac_lo=`expr '(' $ac_mid ')' + 1`
5690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5691 done
5692 case $ac_lo in
5693 ?*) ac_cv_sizeof_long=$ac_lo;;
5694 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5695 See \`config.log' for more details." >&5
5696 echo "$as_me: error: cannot compute sizeof (long), 77
5697 See \`config.log' for more details." >&2;}
5698 { (exit 1); exit 1; }; } ;;
5699 esac
5700 else
5701 if test "$cross_compiling" = yes; then
5702 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5703 See \`config.log' for more details." >&5
5704 echo "$as_me: error: cannot run test program while cross compiling
5705 See \`config.log' for more details." >&2;}
5706 { (exit 1); exit 1; }; }
5707 else
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 $ac_includes_default
5715 long longval () { return (long) (sizeof (long)); }
5716 unsigned long ulongval () { return (long) (sizeof (long)); }
5717 #include <stdio.h>
5718 #include <stdlib.h>
5720 main ()
5723 FILE *f = fopen ("conftest.val", "w");
5724 if (! f)
5725 exit (1);
5726 if (((long) (sizeof (long))) < 0)
5728 long i = longval ();
5729 if (i != ((long) (sizeof (long))))
5730 exit (1);
5731 fprintf (f, "%ld\n", i);
5733 else
5735 unsigned long i = ulongval ();
5736 if (i != ((long) (sizeof (long))))
5737 exit (1);
5738 fprintf (f, "%lu\n", i);
5740 exit (ferror (f) || fclose (f) != 0);
5743 return 0;
5745 _ACEOF
5746 rm -f conftest$ac_exeext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5748 (eval $ac_link) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 (eval $ac_try) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_cv_sizeof_long=`cat conftest.val`
5758 else
5759 echo "$as_me: program exited with status $ac_status" >&5
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5763 ( exit $ac_status )
5764 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5765 See \`config.log' for more details." >&5
5766 echo "$as_me: error: cannot compute sizeof (long), 77
5767 See \`config.log' for more details." >&2;}
5768 { (exit 1); exit 1; }; }
5770 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5773 rm -f conftest.val
5774 else
5775 ac_cv_sizeof_long=0
5778 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5779 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5780 cat >>confdefs.h <<_ACEOF
5781 #define SIZEOF_LONG $ac_cv_sizeof_long
5782 _ACEOF
5785 echo "$as_me:$LINENO: checking for long long" >&5
5786 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5787 if test "${ac_cv_type_long_long+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790 cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h. */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 $ac_includes_default
5798 main ()
5800 if ((long long *) 0)
5801 return 0;
5802 if (sizeof (long long))
5803 return 0;
5805 return 0;
5807 _ACEOF
5808 rm -f conftest.$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_cv_type_long_long=yes
5831 else
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 ac_cv_type_long_long=no
5837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5839 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5840 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5841 if test $ac_cv_type_long_long = yes; then
5843 cat >>confdefs.h <<_ACEOF
5844 #define HAVE_LONG_LONG 1
5845 _ACEOF
5847 echo "$as_me:$LINENO: checking for long long" >&5
5848 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5849 if test "${ac_cv_type_long_long+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852 cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h. */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 $ac_includes_default
5860 main ()
5862 if ((long long *) 0)
5863 return 0;
5864 if (sizeof (long long))
5865 return 0;
5867 return 0;
5869 _ACEOF
5870 rm -f conftest.$ac_objext
5871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5872 (eval $ac_compile) 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } &&
5879 { ac_try='test -z "$ac_c_werror_flag"
5880 || test ! -s conftest.err'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; } &&
5886 { ac_try='test -s conftest.$ac_objext'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 (eval $ac_try) 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 ac_cv_type_long_long=yes
5893 else
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5897 ac_cv_type_long_long=no
5899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5901 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5902 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5904 echo "$as_me:$LINENO: checking size of long long" >&5
5905 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5906 if test "${ac_cv_sizeof_long_long+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 if test "$ac_cv_type_long_long" = yes; then
5910 # The cast to unsigned long works around a bug in the HP C Compiler
5911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5913 # This bug is HP SR number 8606223364.
5914 if test "$cross_compiling" = yes; then
5915 # Depending upon the size, compute the lo and hi bounds.
5916 cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h. */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 $ac_includes_default
5924 main ()
5926 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5927 test_array [0] = 0
5930 return 0;
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935 (eval $ac_compile) 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -z "$ac_c_werror_flag"
5943 || test ! -s conftest.err'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 (eval $ac_try) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; } &&
5949 { ac_try='test -s conftest.$ac_objext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 (eval $ac_try) 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_lo=0 ac_mid=0
5956 while :; do
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h. */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 $ac_includes_default
5965 main ()
5967 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5968 test_array [0] = 0
5971 return 0;
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag"
5984 || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 (eval $ac_try) 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest.$ac_objext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_hi=$ac_mid; break
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_lo=`expr $ac_mid + 1`
6002 if test $ac_lo -le $ac_mid; then
6003 ac_lo= ac_hi=
6004 break
6006 ac_mid=`expr 2 '*' $ac_mid + 1`
6008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6009 done
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 $ac_includes_default
6022 main ()
6024 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6025 test_array [0] = 0
6028 return 0;
6030 _ACEOF
6031 rm -f conftest.$ac_objext
6032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033 (eval $ac_compile) 2>conftest.er1
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } &&
6040 { ac_try='test -z "$ac_c_werror_flag"
6041 || test ! -s conftest.err'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 (eval $ac_try) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; } &&
6047 { ac_try='test -s conftest.$ac_objext'
6048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 (eval $ac_try) 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; }; then
6053 ac_hi=-1 ac_mid=-1
6054 while :; do
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 $ac_includes_default
6063 main ()
6065 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6066 test_array [0] = 0
6069 return 0;
6071 _ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6074 (eval $ac_compile) 2>conftest.er1
6075 ac_status=$?
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -z "$ac_c_werror_flag"
6082 || test ! -s conftest.err'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; } &&
6088 { ac_try='test -s conftest.$ac_objext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_lo=$ac_mid; break
6095 else
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6099 ac_hi=`expr '(' $ac_mid ')' - 1`
6100 if test $ac_mid -le $ac_hi; then
6101 ac_lo= ac_hi=
6102 break
6104 ac_mid=`expr 2 '*' $ac_mid`
6106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6107 done
6108 else
6109 echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 ac_lo= ac_hi=
6114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6117 # Binary search between lo and hi bounds.
6118 while test "x$ac_lo" != "x$ac_hi"; do
6119 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h. */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 $ac_includes_default
6128 main ()
6130 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6131 test_array [0] = 0
6134 return 0;
6136 _ACEOF
6137 rm -f conftest.$ac_objext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -z "$ac_c_werror_flag"
6147 || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_hi=$ac_mid
6160 else
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_lo=`expr '(' $ac_mid ')' + 1`
6166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6167 done
6168 case $ac_lo in
6169 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6170 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6171 See \`config.log' for more details." >&5
6172 echo "$as_me: error: cannot compute sizeof (long long), 77
6173 See \`config.log' for more details." >&2;}
6174 { (exit 1); exit 1; }; } ;;
6175 esac
6176 else
6177 if test "$cross_compiling" = yes; then
6178 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6179 See \`config.log' for more details." >&5
6180 echo "$as_me: error: cannot run test program while cross compiling
6181 See \`config.log' for more details." >&2;}
6182 { (exit 1); exit 1; }; }
6183 else
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h. */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 $ac_includes_default
6191 long longval () { return (long) (sizeof (long long)); }
6192 unsigned long ulongval () { return (long) (sizeof (long long)); }
6193 #include <stdio.h>
6194 #include <stdlib.h>
6196 main ()
6199 FILE *f = fopen ("conftest.val", "w");
6200 if (! f)
6201 exit (1);
6202 if (((long) (sizeof (long long))) < 0)
6204 long i = longval ();
6205 if (i != ((long) (sizeof (long long))))
6206 exit (1);
6207 fprintf (f, "%ld\n", i);
6209 else
6211 unsigned long i = ulongval ();
6212 if (i != ((long) (sizeof (long long))))
6213 exit (1);
6214 fprintf (f, "%lu\n", i);
6216 exit (ferror (f) || fclose (f) != 0);
6219 return 0;
6221 _ACEOF
6222 rm -f conftest$ac_exeext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224 (eval $ac_link) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
6233 ac_cv_sizeof_long_long=`cat conftest.val`
6234 else
6235 echo "$as_me: program exited with status $ac_status" >&5
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 ( exit $ac_status )
6240 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6241 See \`config.log' for more details." >&5
6242 echo "$as_me: error: cannot compute sizeof (long long), 77
6243 See \`config.log' for more details." >&2;}
6244 { (exit 1); exit 1; }; }
6246 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6249 rm -f conftest.val
6250 else
6251 ac_cv_sizeof_long_long=0
6254 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6255 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6256 cat >>confdefs.h <<_ACEOF
6257 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6258 _ACEOF
6263 echo "$as_me:$LINENO: checking for __int64" >&5
6264 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6265 if test "${ac_cv_type___int64+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h. */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 $ac_includes_default
6276 main ()
6278 if ((__int64 *) 0)
6279 return 0;
6280 if (sizeof (__int64))
6281 return 0;
6283 return 0;
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_c_werror_flag"
6296 || test ! -s conftest.err'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; } &&
6302 { ac_try='test -s conftest.$ac_objext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_type___int64=yes
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 ac_cv_type___int64=no
6315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6317 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6318 echo "${ECHO_T}$ac_cv_type___int64" >&6
6319 if test $ac_cv_type___int64 = yes; then
6321 cat >>confdefs.h <<_ACEOF
6322 #define HAVE___INT64 1
6323 _ACEOF
6325 echo "$as_me:$LINENO: checking for __int64" >&5
6326 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6327 if test "${ac_cv_type___int64+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h. */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 $ac_includes_default
6338 main ()
6340 if ((__int64 *) 0)
6341 return 0;
6342 if (sizeof (__int64))
6343 return 0;
6345 return 0;
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350 (eval $ac_compile) 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -z "$ac_c_werror_flag"
6358 || test ! -s conftest.err'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try='test -s conftest.$ac_objext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 ac_cv_type___int64=yes
6371 else
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 ac_cv_type___int64=no
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6379 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6380 echo "${ECHO_T}$ac_cv_type___int64" >&6
6382 echo "$as_me:$LINENO: checking size of __int64" >&5
6383 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6384 if test "${ac_cv_sizeof___int64+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387 if test "$ac_cv_type___int64" = yes; then
6388 # The cast to unsigned long works around a bug in the HP C Compiler
6389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6391 # This bug is HP SR number 8606223364.
6392 if test "$cross_compiling" = yes; then
6393 # Depending upon the size, compute the lo and hi bounds.
6394 cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h. */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 $ac_includes_default
6402 main ()
6404 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6405 test_array [0] = 0
6408 return 0;
6410 _ACEOF
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_lo=0 ac_mid=0
6434 while :; do
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 $ac_includes_default
6443 main ()
6445 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6446 test_array [0] = 0
6449 return 0;
6451 _ACEOF
6452 rm -f conftest.$ac_objext
6453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6454 (eval $ac_compile) 2>conftest.er1
6455 ac_status=$?
6456 grep -v '^ *+' conftest.er1 >conftest.err
6457 rm -f conftest.er1
6458 cat conftest.err >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } &&
6461 { ac_try='test -z "$ac_c_werror_flag"
6462 || test ! -s conftest.err'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; } &&
6468 { ac_try='test -s conftest.$ac_objext'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 (eval $ac_try) 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
6474 ac_hi=$ac_mid; break
6475 else
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6479 ac_lo=`expr $ac_mid + 1`
6480 if test $ac_lo -le $ac_mid; then
6481 ac_lo= ac_hi=
6482 break
6484 ac_mid=`expr 2 '*' $ac_mid + 1`
6486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6487 done
6488 else
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h. */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498 $ac_includes_default
6500 main ()
6502 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6503 test_array [0] = 0
6506 return 0;
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511 (eval $ac_compile) 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_c_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_hi=-1 ac_mid=-1
6532 while :; do
6533 cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h. */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 $ac_includes_default
6541 main ()
6543 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6544 test_array [0] = 0
6547 return 0;
6549 _ACEOF
6550 rm -f conftest.$ac_objext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552 (eval $ac_compile) 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try='test -z "$ac_c_werror_flag"
6560 || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest.$ac_objext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 ac_lo=$ac_mid; break
6573 else
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6577 ac_hi=`expr '(' $ac_mid ')' - 1`
6578 if test $ac_mid -le $ac_hi; then
6579 ac_lo= ac_hi=
6580 break
6582 ac_mid=`expr 2 '*' $ac_mid`
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585 done
6586 else
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6590 ac_lo= ac_hi=
6592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6595 # Binary search between lo and hi bounds.
6596 while test "x$ac_lo" != "x$ac_hi"; do
6597 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6598 cat >conftest.$ac_ext <<_ACEOF
6599 /* confdefs.h. */
6600 _ACEOF
6601 cat confdefs.h >>conftest.$ac_ext
6602 cat >>conftest.$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 $ac_includes_default
6606 main ()
6608 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6609 test_array [0] = 0
6612 return 0;
6614 _ACEOF
6615 rm -f conftest.$ac_objext
6616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6617 (eval $ac_compile) 2>conftest.er1
6618 ac_status=$?
6619 grep -v '^ *+' conftest.er1 >conftest.err
6620 rm -f conftest.er1
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } &&
6624 { ac_try='test -z "$ac_c_werror_flag"
6625 || test ! -s conftest.err'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 (eval $ac_try) 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; } &&
6631 { ac_try='test -s conftest.$ac_objext'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 (eval $ac_try) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 ac_hi=$ac_mid
6638 else
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6642 ac_lo=`expr '(' $ac_mid ')' + 1`
6644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6645 done
6646 case $ac_lo in
6647 ?*) ac_cv_sizeof___int64=$ac_lo;;
6648 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6649 See \`config.log' for more details." >&5
6650 echo "$as_me: error: cannot compute sizeof (__int64), 77
6651 See \`config.log' for more details." >&2;}
6652 { (exit 1); exit 1; }; } ;;
6653 esac
6654 else
6655 if test "$cross_compiling" = yes; then
6656 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6657 See \`config.log' for more details." >&5
6658 echo "$as_me: error: cannot run test program while cross compiling
6659 See \`config.log' for more details." >&2;}
6660 { (exit 1); exit 1; }; }
6661 else
6662 cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h. */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668 $ac_includes_default
6669 long longval () { return (long) (sizeof (__int64)); }
6670 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6671 #include <stdio.h>
6672 #include <stdlib.h>
6674 main ()
6677 FILE *f = fopen ("conftest.val", "w");
6678 if (! f)
6679 exit (1);
6680 if (((long) (sizeof (__int64))) < 0)
6682 long i = longval ();
6683 if (i != ((long) (sizeof (__int64))))
6684 exit (1);
6685 fprintf (f, "%ld\n", i);
6687 else
6689 unsigned long i = ulongval ();
6690 if (i != ((long) (sizeof (__int64))))
6691 exit (1);
6692 fprintf (f, "%lu\n", i);
6694 exit (ferror (f) || fclose (f) != 0);
6697 return 0;
6699 _ACEOF
6700 rm -f conftest$ac_exeext
6701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6702 (eval $ac_link) 2>&5
6703 ac_status=$?
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 (eval $ac_try) 2>&5
6708 ac_status=$?
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_sizeof___int64=`cat conftest.val`
6712 else
6713 echo "$as_me: program exited with status $ac_status" >&5
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6717 ( exit $ac_status )
6718 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6719 See \`config.log' for more details." >&5
6720 echo "$as_me: error: cannot compute sizeof (__int64), 77
6721 See \`config.log' for more details." >&2;}
6722 { (exit 1); exit 1; }; }
6724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6727 rm -f conftest.val
6728 else
6729 ac_cv_sizeof___int64=0
6732 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6733 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6734 cat >>confdefs.h <<_ACEOF
6735 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6736 _ACEOF
6742 # ---------------------
6743 # Warnings and checking
6744 # ---------------------
6746 # Check $CC warning features (if it's GCC).
6747 # We want to use -pedantic, but we don't want warnings about
6748 # * 'long long'
6749 # * variadic macros
6750 # * overlong strings
6751 # So, we only use -pedantic if we can disable those warnings.
6753 loose_warn=
6754 save_CFLAGS="$CFLAGS"
6755 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6756 -Wmissing-prototypes; do
6757 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6759 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6760 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6761 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 CFLAGS="$option"
6765 cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h. */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6773 main ()
6777 return 0;
6779 _ACEOF
6780 rm -f conftest.$ac_objext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6782 (eval $ac_compile) 2>conftest.er1
6783 ac_status=$?
6784 grep -v '^ *+' conftest.er1 >conftest.err
6785 rm -f conftest.er1
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try='test -z "$ac_c_werror_flag"
6790 || test ! -s conftest.err'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 (eval $ac_try) 2>&5
6793 ac_status=$?
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; } &&
6796 { ac_try='test -s conftest.$ac_objext'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 (eval $ac_try) 2>&5
6799 ac_status=$?
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; }; then
6802 eval "$as_acx_Woption=yes"
6803 else
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6807 eval "$as_acx_Woption=no"
6809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6812 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6813 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6814 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6815 loose_warn="$loose_warn${loose_warn:+ }$option"
6818 done
6819 CFLAGS="$save_CFLAGS"
6821 cxx_compat_warn=
6822 save_CFLAGS="$CFLAGS"
6823 for option in -Wc++-compat; do
6824 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6826 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6827 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6828 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831 CFLAGS="$option"
6832 cat >conftest.$ac_ext <<_ACEOF
6833 /* confdefs.h. */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6840 main ()
6844 return 0;
6846 _ACEOF
6847 rm -f conftest.$ac_objext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6849 (eval $ac_compile) 2>conftest.er1
6850 ac_status=$?
6851 grep -v '^ *+' conftest.er1 >conftest.err
6852 rm -f conftest.er1
6853 cat conftest.err >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } &&
6856 { ac_try='test -z "$ac_c_werror_flag"
6857 || test ! -s conftest.err'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 (eval $ac_try) 2>&5
6860 ac_status=$?
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; } &&
6863 { ac_try='test -s conftest.$ac_objext'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 (eval $ac_try) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; }; then
6869 eval "$as_acx_Woption=yes"
6870 else
6871 echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6874 eval "$as_acx_Woption=no"
6876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6879 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6880 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6881 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6882 cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6885 done
6886 CFLAGS="$save_CFLAGS"
6888 strict_warn=
6889 save_CFLAGS="$CFLAGS"
6890 for option in -Wold-style-definition \
6891 -Wmissing-format-attribute; do
6892 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6894 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6895 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6896 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899 CFLAGS="$option"
6900 cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h. */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6908 main ()
6912 return 0;
6914 _ACEOF
6915 rm -f conftest.$ac_objext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6917 (eval $ac_compile) 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } &&
6924 { ac_try='test -z "$ac_c_werror_flag"
6925 || test ! -s conftest.err'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 (eval $ac_try) 2>&5
6928 ac_status=$?
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; } &&
6931 { ac_try='test -s conftest.$ac_objext'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 (eval $ac_try) 2>&5
6934 ac_status=$?
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 eval "$as_acx_Woption=yes"
6938 else
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 eval "$as_acx_Woption=no"
6944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6947 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6948 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6949 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6950 strict_warn="$strict_warn${strict_warn:+ }$option"
6953 done
6954 CFLAGS="$save_CFLAGS"
6956 if test "$GCC" = yes; then
6957 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6958 -Wno-overlength-strings" >&5
6959 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6960 -Wno-overlength-strings... $ECHO_C" >&6
6961 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964 save_CFLAGS="$CFLAGS"
6965 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
6966 -Wno-overlength-strings"
6967 cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h. */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6975 main ()
6979 return 0;
6981 _ACEOF
6982 rm -f conftest.$ac_objext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6984 (eval $ac_compile) 2>conftest.er1
6985 ac_status=$?
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
6991 { ac_try='test -z "$ac_c_werror_flag"
6992 || test ! -s conftest.err'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try='test -s conftest.$ac_objext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
7005 else
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
7011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7012 CFLAGS="$save_CFLAGS"
7014 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
7015 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
7016 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
7017 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
7018 -Wno-overlength-strings"
7025 # Check whether --enable-werror-always or --disable-werror-always was given.
7026 if test "${enable_werror_always+set}" = set; then
7027 enableval="$enable_werror_always"
7029 else
7030 enable_werror_always=no
7032 if test $enable_werror_always = yes; then
7033 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7039 # The above macros do nothing if the compiler is not GCC. However, the
7040 # Makefile has more goo to add other flags, so this variabl is used to
7041 # enables warnings only for GCC.
7042 warn_cflags=
7043 if test "x$GCC" = "xyes"; then
7044 warn_cflags='$(GCC_WARN_CFLAGS)'
7048 # Enable expensive internal checks
7049 is_release=
7050 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7051 is_release=yes
7054 # Check whether --enable-checking or --disable-checking was given.
7055 if test "${enable_checking+set}" = set; then
7056 enableval="$enable_checking"
7057 ac_checking_flags="${enableval}"
7058 else
7060 # Determine the default checks.
7061 if test x$is_release = x ; then
7062 ac_checking_flags=yes
7063 else
7064 ac_checking_flags=release
7067 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7068 for check in release $ac_checking_flags
7070 case $check in
7071 # these set all the flags to specific states
7072 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7073 ac_fold_checking= ; ac_gc_checking=1 ;
7074 ac_gc_always_collect= ; ac_rtl_checking= ;
7075 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7076 ac_tree_checking=1 ; ac_valgrind_checking= ;
7077 ac_types_checking=1 ;;
7078 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7079 ac_fold_checking= ; ac_gc_checking= ;
7080 ac_gc_always_collect= ; ac_rtl_checking= ;
7081 ac_rtlflag_checking= ; ac_runtime_checking= ;
7082 ac_tree_checking= ; ac_valgrind_checking= ;
7083 ac_types_checking= ;;
7084 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7085 ac_fold_checking=1 ; ac_gc_checking=1 ;
7086 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
7087 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7088 ac_tree_checking=1 ; ac_valgrind_checking= ;
7089 ac_types_checking=1 ;;
7090 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7091 ac_fold_checking= ; ac_gc_checking= ;
7092 ac_gc_always_collect= ; ac_rtl_checking= ;
7093 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7094 ac_tree_checking= ; ac_valgrind_checking= ;
7095 ac_types_checking= ;;
7096 # these enable particular checks
7097 assert) ac_assert_checking=1 ;;
7098 df) ac_df_checking=1 ;;
7099 fold) ac_fold_checking=1 ;;
7100 gc) ac_gc_checking=1 ;;
7101 gcac) ac_gc_always_collect=1 ;;
7102 misc) ac_checking=1 ;;
7103 rtl) ac_rtl_checking=1 ;;
7104 rtlflag) ac_rtlflag_checking=1 ;;
7105 runtime) ac_runtime_checking=1 ;;
7106 tree) ac_tree_checking=1 ;;
7107 types) ac_types_checking=1 ;;
7108 valgrind) ac_valgrind_checking=1 ;;
7109 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7110 echo "$as_me: error: unknown check category $check" >&2;}
7111 { (exit 1); exit 1; }; } ;;
7112 esac
7113 done
7114 IFS="$ac_save_IFS"
7116 nocommon_flag=""
7117 if test x$ac_checking != x ; then
7119 cat >>confdefs.h <<\_ACEOF
7120 #define ENABLE_CHECKING 1
7121 _ACEOF
7123 nocommon_flag=-fno-common
7126 if test x$ac_df_checking != x ; then
7128 cat >>confdefs.h <<\_ACEOF
7129 #define ENABLE_DF_CHECKING 1
7130 _ACEOF
7133 if test x$ac_assert_checking != x ; then
7135 cat >>confdefs.h <<\_ACEOF
7136 #define ENABLE_ASSERT_CHECKING 1
7137 _ACEOF
7141 if test x$ac_runtime_checking != x ; then
7143 cat >>confdefs.h <<\_ACEOF
7144 #define ENABLE_RUNTIME_CHECKING 1
7145 _ACEOF
7148 if test x$ac_tree_checking != x ; then
7150 cat >>confdefs.h <<\_ACEOF
7151 #define ENABLE_TREE_CHECKING 1
7152 _ACEOF
7154 TREEBROWSER=tree-browser.o
7156 if test x$ac_types_checking != x ; then
7158 cat >>confdefs.h <<\_ACEOF
7159 #define ENABLE_TYPES_CHECKING 1
7160 _ACEOF
7164 if test x$ac_rtl_checking != x ; then
7166 cat >>confdefs.h <<\_ACEOF
7167 #define ENABLE_RTL_CHECKING 1
7168 _ACEOF
7171 if test x$ac_rtlflag_checking != x ; then
7173 cat >>confdefs.h <<\_ACEOF
7174 #define ENABLE_RTL_FLAG_CHECKING 1
7175 _ACEOF
7178 if test x$ac_gc_checking != x ; then
7180 cat >>confdefs.h <<\_ACEOF
7181 #define ENABLE_GC_CHECKING 1
7182 _ACEOF
7185 if test x$ac_gc_always_collect != x ; then
7187 cat >>confdefs.h <<\_ACEOF
7188 #define ENABLE_GC_ALWAYS_COLLECT 1
7189 _ACEOF
7192 if test x$ac_fold_checking != x ; then
7194 cat >>confdefs.h <<\_ACEOF
7195 #define ENABLE_FOLD_CHECKING 1
7196 _ACEOF
7199 valgrind_path_defines=
7200 valgrind_command=
7202 if test "${ac_cv_header_valgrind_h+set}" = set; then
7203 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7204 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7205 if test "${ac_cv_header_valgrind_h+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7209 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7210 else
7211 # Is the header compilable?
7212 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7213 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7214 cat >conftest.$ac_ext <<_ACEOF
7215 /* confdefs.h. */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7220 $ac_includes_default
7221 #include <valgrind.h>
7222 _ACEOF
7223 rm -f conftest.$ac_objext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225 (eval $ac_compile) 2>conftest.er1
7226 ac_status=$?
7227 grep -v '^ *+' conftest.er1 >conftest.err
7228 rm -f conftest.er1
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } &&
7232 { ac_try='test -z "$ac_c_werror_flag"
7233 || test ! -s conftest.err'
7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 (eval $ac_try) 2>&5
7236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); }; } &&
7239 { ac_try='test -s conftest.$ac_objext'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 (eval $ac_try) 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7245 ac_header_compiler=yes
7246 else
7247 echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7250 ac_header_compiler=no
7252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7254 echo "${ECHO_T}$ac_header_compiler" >&6
7256 # Is the header present?
7257 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7258 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7259 cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h. */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 #include <valgrind.h>
7266 _ACEOF
7267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } >/dev/null; then
7275 if test -s conftest.err; then
7276 ac_cpp_err=$ac_c_preproc_warn_flag
7277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7278 else
7279 ac_cpp_err=
7281 else
7282 ac_cpp_err=yes
7284 if test -z "$ac_cpp_err"; then
7285 ac_header_preproc=yes
7286 else
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7290 ac_header_preproc=no
7292 rm -f conftest.err conftest.$ac_ext
7293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7294 echo "${ECHO_T}$ac_header_preproc" >&6
7296 # So? What about this header?
7297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7298 yes:no: )
7299 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7300 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7301 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7302 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7303 ac_header_preproc=yes
7305 no:yes:* )
7306 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7307 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7308 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7309 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7310 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7311 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7312 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7313 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7314 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7315 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7316 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7317 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7319 cat <<\_ASBOX
7320 ## ------------------------------------------ ##
7321 ## Report this to the AC_PACKAGE_NAME lists. ##
7322 ## ------------------------------------------ ##
7323 _ASBOX
7325 sed "s/^/$as_me: WARNING: /" >&2
7327 esac
7328 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7329 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7330 if test "${ac_cv_header_valgrind_h+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 ac_cv_header_valgrind_h=$ac_header_preproc
7335 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7336 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7339 if test $ac_cv_header_valgrind_h = yes; then
7340 have_valgrind_h=yes
7341 else
7342 have_valgrind_h=no
7347 if test x$ac_valgrind_checking != x ; then
7348 # It is certainly possible that there's valgrind but no valgrind.h.
7349 # GCC relies on making annotations so we must have both.
7350 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7351 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7352 cat >conftest.$ac_ext <<_ACEOF
7353 /* confdefs.h. */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 #include <valgrind/memcheck.h>
7359 #ifndef VALGRIND_DISCARD
7360 #error VALGRIND_DISCARD not defined
7361 #endif
7362 _ACEOF
7363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7365 ac_status=$?
7366 grep -v '^ *+' conftest.er1 >conftest.err
7367 rm -f conftest.er1
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } >/dev/null; then
7371 if test -s conftest.err; then
7372 ac_cpp_err=$ac_c_preproc_warn_flag
7373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7374 else
7375 ac_cpp_err=
7377 else
7378 ac_cpp_err=yes
7380 if test -z "$ac_cpp_err"; then
7381 gcc_cv_header_valgrind_memcheck_h=yes
7382 else
7383 echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7386 gcc_cv_header_valgrind_memcheck_h=no
7388 rm -f conftest.err conftest.$ac_ext
7389 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7390 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7391 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7392 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h. */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 #include <memcheck.h>
7400 #ifndef VALGRIND_DISCARD
7401 #error VALGRIND_DISCARD not defined
7402 #endif
7403 _ACEOF
7404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7406 ac_status=$?
7407 grep -v '^ *+' conftest.er1 >conftest.err
7408 rm -f conftest.er1
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } >/dev/null; then
7412 if test -s conftest.err; then
7413 ac_cpp_err=$ac_c_preproc_warn_flag
7414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7415 else
7416 ac_cpp_err=
7418 else
7419 ac_cpp_err=yes
7421 if test -z "$ac_cpp_err"; then
7422 gcc_cv_header_memcheck_h=yes
7423 else
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 gcc_cv_header_memcheck_h=no
7429 rm -f conftest.err conftest.$ac_ext
7430 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7431 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7433 # Prepare PATH_SEPARATOR.
7434 # The user is always right.
7435 if test "${PATH_SEPARATOR+set}" != set; then
7436 echo "#! /bin/sh" >conf$$.sh
7437 echo "exit 0" >>conf$$.sh
7438 chmod +x conf$$.sh
7439 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7440 PATH_SEPARATOR=';'
7441 else
7442 PATH_SEPARATOR=:
7444 rm -f conf$$.sh
7447 # Find out how to test for executable files. Don't use a zero-byte file,
7448 # as systems may use methods other than mode bits to determine executability.
7449 cat >conf$$.file <<_ASEOF
7450 #! /bin/sh
7451 exit 0
7452 _ASEOF
7453 chmod +x conf$$.file
7454 if test -x conf$$.file >/dev/null 2>&1; then
7455 ac_executable_p="test -x"
7456 else
7457 ac_executable_p="test -f"
7459 rm -f conf$$.file
7461 # Extract the first word of "valgrind", so it can be a program name with args.
7462 set dummy valgrind; ac_word=$2
7463 echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7465 if test "${ac_cv_path_valgrind_path+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468 case "$valgrind_path" in
7469 [\\/]* | ?:[\\/]*)
7470 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7473 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7474 for ac_dir in $PATH; do
7475 IFS="$ac_save_IFS"
7476 test -z "$ac_dir" && ac_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7479 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7480 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7481 break 2
7484 done
7485 done
7486 IFS="$ac_save_IFS"
7488 esac
7490 valgrind_path="$ac_cv_path_valgrind_path"
7491 if test -n "$valgrind_path"; then
7492 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7493 echo "${ECHO_T}$valgrind_path" >&6
7494 else
7495 echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6
7499 if test "x$valgrind_path" = "x" \
7500 || (test $have_valgrind_h = no \
7501 && test $gcc_cv_header_memcheck_h = no \
7502 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7503 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7504 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7505 { (exit 1); exit 1; }; }
7507 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7508 valgrind_command="$valgrind_path -q"
7510 cat >>confdefs.h <<\_ACEOF
7511 #define ENABLE_VALGRIND_CHECKING 1
7512 _ACEOF
7514 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7516 cat >>confdefs.h <<\_ACEOF
7517 #define HAVE_VALGRIND_MEMCHECK_H 1
7518 _ACEOF
7521 if test $gcc_cv_header_memcheck_h = yes; then
7523 cat >>confdefs.h <<\_ACEOF
7524 #define HAVE_MEMCHECK_H 1
7525 _ACEOF
7532 # Enable code coverage collection
7533 # Check whether --enable-coverage or --disable-coverage was given.
7534 if test "${enable_coverage+set}" = set; then
7535 enableval="$enable_coverage"
7536 case "${enableval}" in
7537 yes|noopt)
7538 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7540 opt)
7541 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7544 # a.k.a. --disable-coverage
7545 coverage_flags=""
7548 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7549 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7550 { (exit 1); exit 1; }; }
7552 esac
7553 else
7554 coverage_flags=""
7558 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7559 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7560 enableval="$enable_gather_detailed_mem_stats"
7562 else
7563 enable_gather_detailed_mem_stats=no
7565 if test x$enable_gather_detailed_mem_stats = xyes ; then
7567 cat >>confdefs.h <<\_ACEOF
7568 #define GATHER_STATISTICS 1
7569 _ACEOF
7573 # -------------------------------
7574 # Miscenalleous configure options
7575 # -------------------------------
7577 # With stabs
7579 # Check whether --with-stabs or --without-stabs was given.
7580 if test "${with_stabs+set}" = set; then
7581 withval="$with_stabs"
7582 stabs="$with_stabs"
7583 else
7584 stabs=no
7587 # Determine whether or not multilibs are enabled.
7588 # Check whether --enable-multilib or --disable-multilib was given.
7589 if test "${enable_multilib+set}" = set; then
7590 enableval="$enable_multilib"
7592 else
7593 enable_multilib=yes
7597 # Enable __cxa_atexit for C++.
7598 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7599 if test "${enable___cxa_atexit+set}" = set; then
7600 enableval="$enable___cxa_atexit"
7604 # Enable C extension for decimal float if target supports it.
7605 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7606 if test "${enable_decimal_float+set}" = set; then
7607 enableval="$enable_decimal_float"
7609 case $enable_decimal_float in
7610 yes | no | bid | dpd) ;;
7611 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7612 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7613 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7614 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7615 { (exit 1); exit 1; }; } ;;
7616 esac
7618 else
7620 case $target in
7621 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7622 enable_decimal_float=yes
7625 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7626 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7627 enable_decimal_float=no
7629 esac
7633 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7635 cat >>confdefs.h <<_ACEOF
7636 #define ENABLE_DECIMAL_FLOAT $dfp
7637 _ACEOF
7640 # x86's use BID format instead of DPD
7641 case x$enable_decimal_float in
7642 xyes)
7643 case $target in
7644 i?86*-*-linux* | x86_64*-*-linux*)
7645 enable_decimal_float=bid
7648 enable_decimal_float=dpd
7650 esac
7652 xno)
7653 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7654 # dependency on libdecnumber.
7655 enable_decimal_float=dpd
7657 esac
7660 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7662 cat >>confdefs.h <<_ACEOF
7663 #define ENABLE_DECIMAL_BID_FORMAT $bid
7664 _ACEOF
7667 # Enable C extension for fixed-point arithmetic.
7668 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7669 if test "${enable_fixed_point+set}" = set; then
7670 enableval="$enable_fixed_point"
7673 else
7675 case $target in
7676 mips*-*-*)
7677 case $host in
7678 mips*-sgi-irix*)
7679 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7680 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7681 enable_fixed_point=no
7684 enable_fixed_point=yes
7686 esac
7689 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7690 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7691 enable_fixed_point=no
7693 esac
7698 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7700 cat >>confdefs.h <<_ACEOF
7701 #define ENABLE_FIXED_POINT $fixedpoint
7702 _ACEOF
7705 # Enable threads
7706 # Pass with no value to take the default
7707 # Pass with a value to specify a thread package
7708 # Check whether --enable-threads or --disable-threads was given.
7709 if test "${enable_threads+set}" = set; then
7710 enableval="$enable_threads"
7712 else
7713 enable_threads=''
7716 # Check whether --enable-tls or --disable-tls was given.
7717 if test "${enable_tls+set}" = set; then
7718 enableval="$enable_tls"
7720 case $enable_tls in
7721 yes | no) ;;
7722 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7723 Valid choices are 'yes' and 'no'." >&5
7724 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7725 Valid choices are 'yes' and 'no'." >&2;}
7726 { (exit 1); exit 1; }; } ;;
7727 esac
7729 else
7730 enable_tls=''
7733 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7734 if test "${enable_objc_gc+set}" = set; then
7735 enableval="$enable_objc_gc"
7736 if test x$enable_objc_gc = xno; then
7737 objc_boehm_gc=''
7738 else
7739 objc_boehm_gc=1
7741 else
7742 objc_boehm_gc=''
7746 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7747 if test "${with_dwarf2+set}" = set; then
7748 withval="$with_dwarf2"
7749 dwarf2="$with_dwarf2"
7750 else
7751 dwarf2=no
7754 # Check whether --enable-shared or --disable-shared was given.
7755 if test "${enable_shared+set}" = set; then
7756 enableval="$enable_shared"
7758 case $enable_shared in
7759 yes | no) ;;
7761 enable_shared=no
7762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7763 for pkg in $enableval; do
7764 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7765 enable_shared=yes
7767 done
7768 IFS="$ac_save_ifs"
7770 esac
7772 else
7773 enable_shared=yes
7778 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7779 if test "${with_build_sysroot+set}" = set; then
7780 withval="$with_build_sysroot"
7785 # Check whether --with-sysroot or --without-sysroot was given.
7786 if test "${with_sysroot+set}" = set; then
7787 withval="$with_sysroot"
7789 case ${with_sysroot} in
7790 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7791 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7792 esac
7794 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7795 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7797 if test "x$prefix" = xNONE; then
7798 test_prefix=/usr/local
7799 else
7800 test_prefix=$prefix
7802 if test "x$exec_prefix" = xNONE; then
7803 test_exec_prefix=$test_prefix
7804 else
7805 test_exec_prefix=$exec_prefix
7807 case ${TARGET_SYSTEM_ROOT} in
7808 "${test_prefix}"|"${test_prefix}/"*|\
7809 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7810 '${prefix}'|'${prefix}/'*|\
7811 '${exec_prefix}'|'${exec_prefix}/'*)
7812 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7813 TARGET_SYSTEM_ROOT_DEFINE="$t"
7815 esac
7817 else
7819 TARGET_SYSTEM_ROOT=
7820 TARGET_SYSTEM_ROOT_DEFINE=
7821 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7828 # Build with intermodule optimisations
7829 # Check whether --enable-intermodule or --disable-intermodule was given.
7830 if test "${enable_intermodule+set}" = set; then
7831 enableval="$enable_intermodule"
7832 case ${enable_intermodule} in
7833 yes) onestep="-onestep";;
7834 *) onestep="";;
7835 esac
7836 else
7837 onestep=""
7843 # Check whether --with-pkgversion or --without-pkgversion was given.
7844 if test "${with_pkgversion+set}" = set; then
7845 withval="$with_pkgversion"
7846 case "$withval" in
7847 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7848 echo "$as_me: error: package version not specified" >&2;}
7849 { (exit 1); exit 1; }; } ;;
7850 no) PKGVERSION= ;;
7851 *) PKGVERSION="($withval) " ;;
7852 esac
7853 else
7854 PKGVERSION="(GCC) "
7861 # Check whether --with-bugurl or --without-bugurl was given.
7862 if test "${with_bugurl+set}" = set; then
7863 withval="$with_bugurl"
7864 case "$withval" in
7865 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7866 echo "$as_me: error: bug URL not specified" >&2;}
7867 { (exit 1); exit 1; }; } ;;
7868 no) BUGURL=
7870 *) BUGURL="$withval"
7872 esac
7873 else
7874 BUGURL="http://gcc.gnu.org/bugs.html"
7877 case ${BUGURL} in
7879 REPORT_BUGS_TO=
7880 REPORT_BUGS_TEXI=
7883 REPORT_BUGS_TO="<$BUGURL>"
7884 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7886 esac;
7891 # Sanity check enable_languages in case someone does not run the toplevel
7892 # configure # script.
7893 # Check whether --enable-languages or --disable-languages was given.
7894 if test "${enable_languages+set}" = set; then
7895 enableval="$enable_languages"
7896 case ,${enable_languages}, in
7897 ,,|,yes,)
7898 # go safe -- we cannot be much sure without the toplevel
7899 # configure's
7900 # analysis of which target libs are present and usable
7901 enable_languages=c
7903 *,all,*)
7904 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7905 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7906 { (exit 1); exit 1; }; }
7908 *,c,*)
7911 enable_languages=c,${enable_languages}
7913 esac
7914 else
7915 enable_languages=c
7918 # Used by documentation targets
7923 # -------------------------
7924 # Checks for other programs
7925 # -------------------------
7927 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7928 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7929 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7930 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933 cat >conftest.make <<\_ACEOF
7934 all:
7935 @echo 'ac_maketemp="$(MAKE)"'
7936 _ACEOF
7937 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7938 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7939 if test -n "$ac_maketemp"; then
7940 eval ac_cv_prog_make_${ac_make}_set=yes
7941 else
7942 eval ac_cv_prog_make_${ac_make}_set=no
7944 rm -f conftest.make
7946 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7947 echo "$as_me:$LINENO: result: yes" >&5
7948 echo "${ECHO_T}yes" >&6
7949 SET_MAKE=
7950 else
7951 echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6
7953 SET_MAKE="MAKE=${MAKE-make}"
7957 # Find some useful tools
7958 for ac_prog in gawk mawk nawk awk
7960 # Extract the first word of "$ac_prog", so it can be a program name with args.
7961 set dummy $ac_prog; ac_word=$2
7962 echo "$as_me:$LINENO: checking for $ac_word" >&5
7963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7964 if test "${ac_cv_prog_AWK+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967 if test -n "$AWK"; then
7968 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7969 else
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977 ac_cv_prog_AWK="$ac_prog"
7978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7981 done
7982 done
7986 AWK=$ac_cv_prog_AWK
7987 if test -n "$AWK"; then
7988 echo "$as_me:$LINENO: result: $AWK" >&5
7989 echo "${ECHO_T}$AWK" >&6
7990 else
7991 echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6
7995 test -n "$AWK" && break
7996 done
7998 # We need awk to create options.c and options.h.
7999 # Bail out if it's missing.
8000 case ${AWK} in
8001 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8002 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8003 { (exit 1); exit 1; }; } ;;
8004 esac
8006 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8007 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8008 if test "${gcc_cv_prog_LN_S+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011 rm -f conftestdata_t
8012 echo >conftestdata_f
8013 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8014 then
8015 gcc_cv_prog_LN_S="ln -s"
8016 else
8017 if ln conftestdata_f conftestdata_t 2>/dev/null
8018 then
8019 gcc_cv_prog_LN_S=ln
8020 else
8021 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8022 then
8023 gcc_cv_prog_LN_S="cp -p"
8024 else
8025 gcc_cv_prog_LN_S=cp
8029 rm -f conftestdata_f conftestdata_t
8032 LN_S="$gcc_cv_prog_LN_S"
8033 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8034 echo "$as_me:$LINENO: result: yes" >&5
8035 echo "${ECHO_T}yes" >&6
8036 else
8037 if test "$gcc_cv_prog_LN_S" = "ln"; then
8038 echo "$as_me:$LINENO: result: no, using ln" >&5
8039 echo "${ECHO_T}no, using ln" >&6
8040 else
8041 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8042 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8046 echo "$as_me:$LINENO: checking whether ln works" >&5
8047 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8048 if test "${acx_cv_prog_LN+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051 rm -f conftestdata_t
8052 echo >conftestdata_f
8053 if ln conftestdata_f conftestdata_t 2>/dev/null
8054 then
8055 acx_cv_prog_LN=ln
8056 else
8057 acx_cv_prog_LN=no
8059 rm -f conftestdata_f conftestdata_t
8062 if test $acx_cv_prog_LN = no; then
8063 LN="$LN_S"
8064 echo "$as_me:$LINENO: result: no, using $LN" >&5
8065 echo "${ECHO_T}no, using $LN" >&6
8066 else
8067 LN="$acx_cv_prog_LN"
8068 echo "$as_me:$LINENO: result: yes" >&5
8069 echo "${ECHO_T}yes" >&6
8072 if test -n "$ac_tool_prefix"; then
8073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8075 echo "$as_me:$LINENO: checking for $ac_word" >&5
8076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8077 if test "${ac_cv_prog_RANLIB+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 else
8080 if test -n "$RANLIB"; then
8081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 break 2
8094 done
8095 done
8099 RANLIB=$ac_cv_prog_RANLIB
8100 if test -n "$RANLIB"; then
8101 echo "$as_me:$LINENO: result: $RANLIB" >&5
8102 echo "${ECHO_T}$RANLIB" >&6
8103 else
8104 echo "$as_me:$LINENO: result: no" >&5
8105 echo "${ECHO_T}no" >&6
8109 if test -z "$ac_cv_prog_RANLIB"; then
8110 ac_ct_RANLIB=$RANLIB
8111 # Extract the first word of "ranlib", so it can be a program name with args.
8112 set dummy ranlib; ac_word=$2
8113 echo "$as_me:$LINENO: checking for $ac_word" >&5
8114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8115 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118 if test -n "$ac_ct_RANLIB"; then
8119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128 ac_cv_prog_ac_ct_RANLIB="ranlib"
8129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 break 2
8132 done
8133 done
8135 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8139 if test -n "$ac_ct_RANLIB"; then
8140 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8141 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8142 else
8143 echo "$as_me:$LINENO: result: no" >&5
8144 echo "${ECHO_T}no" >&6
8147 RANLIB=$ac_ct_RANLIB
8148 else
8149 RANLIB="$ac_cv_prog_RANLIB"
8152 case "${host}" in
8153 *-*-darwin*)
8154 # By default, the Darwin ranlib will not treat common symbols as
8155 # definitions when building the archive table of contents. Other
8156 # ranlibs do that; pass an option to the Darwin ranlib that makes
8157 # it behave similarly.
8158 ranlib_flags="-c"
8161 ranlib_flags=""
8162 esac
8165 # Find a good install program. We prefer a C program (faster),
8166 # so one script is as good as another. But avoid the broken or
8167 # incompatible versions:
8168 # SysV /etc/install, /usr/sbin/install
8169 # SunOS /usr/etc/install
8170 # IRIX /sbin/install
8171 # AIX /bin/install
8172 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8173 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8174 # ./install, which can be erroneously created by make from ./install.sh.
8175 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8176 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8177 if test -z "$INSTALL"; then
8178 if test "${ac_cv_path_install+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8182 for ac_dir in $PATH; do
8183 # Account for people who put trailing slashes in PATH elements.
8184 case "$ac_dir/" in
8185 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8187 # OSF1 and SCO ODT 3.0 have their own names for install.
8188 for ac_prog in ginstall scoinst install; do
8189 if test -f $ac_dir/$ac_prog; then
8190 if test $ac_prog = install &&
8191 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8192 # AIX install. It has an incompatible calling convention.
8193 # OSF/1 installbsd also uses dspmsg, but is usable.
8195 else
8196 ac_cv_path_install="$ac_dir/$ac_prog -c"
8197 break 2
8200 done
8202 esac
8203 done
8204 IFS="$ac_save_IFS"
8207 if test "${ac_cv_path_install+set}" = set; then
8208 INSTALL="$ac_cv_path_install"
8209 else
8210 # As a last resort, use the slow shell script. We don't cache a
8211 # path for INSTALL within a source directory, because that will
8212 # break other packages using the cache if that directory is
8213 # removed, or if the path is relative.
8214 INSTALL="$ac_install_sh"
8217 echo "$as_me:$LINENO: result: $INSTALL" >&5
8218 echo "${ECHO_T}$INSTALL" >&6
8220 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8221 # It thinks the first close brace ends the variable substitution.
8222 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8224 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8227 # See if cmp has --ignore-initial.
8228 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8229 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8230 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233 echo abfoo >t1
8234 echo cdfoo >t2
8235 gcc_cv_prog_cmp_skip=slowcompare
8236 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8237 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8239 else
8240 gcc_cv_prog_cmp_skip=gnucompare
8243 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8244 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8245 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8247 else
8248 gcc_cv_prog_cmp_skip=fastcompare
8252 rm t1 t2
8255 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8256 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8257 make_compare_target=$gcc_cv_prog_cmp_skip
8261 # See if we have the mktemp command.
8262 # Extract the first word of "mktemp", so it can be a program name with args.
8263 set dummy mktemp; ac_word=$2
8264 echo "$as_me:$LINENO: checking for $ac_word" >&5
8265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8266 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269 if test -n "$have_mktemp_command"; then
8270 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8279 ac_cv_prog_have_mktemp_command="yes"
8280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 break 2
8283 done
8284 done
8286 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8289 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8290 if test -n "$have_mktemp_command"; then
8291 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8292 echo "${ECHO_T}$have_mktemp_command" >&6
8293 else
8294 echo "$as_me:$LINENO: result: no" >&5
8295 echo "${ECHO_T}no" >&6
8299 # See if makeinfo has been installed and is modern enough
8300 # that we can use it.
8302 # Extract the first word of "makeinfo", so it can be a program name with args.
8303 set dummy makeinfo; ac_word=$2
8304 echo "$as_me:$LINENO: checking for $ac_word" >&5
8305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8306 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 else
8309 if test -n "$MAKEINFO"; then
8310 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8311 else
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8319 ac_cv_prog_MAKEINFO="makeinfo"
8320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8323 done
8324 done
8328 MAKEINFO=$ac_cv_prog_MAKEINFO
8329 if test -n "$MAKEINFO"; then
8330 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8331 echo "${ECHO_T}$MAKEINFO" >&6
8332 else
8333 echo "$as_me:$LINENO: result: no" >&5
8334 echo "${ECHO_T}no" >&6
8337 if test -n "$MAKEINFO"; then
8338 # Found it, now check the version.
8339 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8340 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8341 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8345 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8347 case $ac_prog_version in
8348 '') gcc_cv_prog_makeinfo_modern=no;;
8349 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8350 *) gcc_cv_prog_makeinfo_modern=no;;
8351 esac
8354 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8355 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8356 else
8357 gcc_cv_prog_makeinfo_modern=no
8359 if test $gcc_cv_prog_makeinfo_modern = no; then
8360 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8363 if test $gcc_cv_prog_makeinfo_modern = no; then
8364 { echo "$as_me:$LINENO: WARNING:
8365 *** Makeinfo is missing or too old.
8366 *** Info documentation will not be built." >&5
8367 echo "$as_me: WARNING:
8368 *** Makeinfo is missing or too old.
8369 *** Info documentation will not be built." >&2;}
8370 BUILD_INFO=
8371 else
8372 BUILD_INFO=info
8376 # Is pod2man recent enough to regenerate manpages?
8377 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8378 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8379 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8380 echo "$as_me:$LINENO: result: yes" >&5
8381 echo "${ECHO_T}yes" >&6
8382 GENERATED_MANPAGES=generated-manpages
8383 else
8384 echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6
8386 GENERATED_MANPAGES=
8390 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8392 # How about lex?
8393 for ac_prog in flex
8395 # Extract the first word of "$ac_prog", so it can be a program name with args.
8396 set dummy $ac_prog; ac_word=$2
8397 echo "$as_me:$LINENO: checking for $ac_word" >&5
8398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8399 if test "${ac_cv_prog_FLEX+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402 if test -n "$FLEX"; then
8403 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412 ac_cv_prog_FLEX="$ac_prog"
8413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 break 2
8416 done
8417 done
8421 FLEX=$ac_cv_prog_FLEX
8422 if test -n "$FLEX"; then
8423 echo "$as_me:$LINENO: result: $FLEX" >&5
8424 echo "${ECHO_T}$FLEX" >&6
8425 else
8426 echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6
8430 test -n "$FLEX" && break
8431 done
8432 test -n "$FLEX" || FLEX="$MISSING flex"
8435 # Bison?
8436 for ac_prog in bison
8438 # Extract the first word of "$ac_prog", so it can be a program name with args.
8439 set dummy $ac_prog; ac_word=$2
8440 echo "$as_me:$LINENO: checking for $ac_word" >&5
8441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8442 if test "${ac_cv_prog_BISON+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445 if test -n "$BISON"; then
8446 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8447 else
8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449 for as_dir in $PATH
8451 IFS=$as_save_IFS
8452 test -z "$as_dir" && as_dir=.
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8455 ac_cv_prog_BISON="$ac_prog"
8456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 break 2
8459 done
8460 done
8464 BISON=$ac_cv_prog_BISON
8465 if test -n "$BISON"; then
8466 echo "$as_me:$LINENO: result: $BISON" >&5
8467 echo "${ECHO_T}$BISON" >&6
8468 else
8469 echo "$as_me:$LINENO: result: no" >&5
8470 echo "${ECHO_T}no" >&6
8473 test -n "$BISON" && break
8474 done
8475 test -n "$BISON" || BISON="$MISSING bison"
8478 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8479 # check for build == host before using them.
8481 # NM
8482 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8483 && test -d ../binutils ; then
8484 NM='$(objdir)/../binutils/nm-new'
8485 else
8486 # Extract the first word of "nm", so it can be a program name with args.
8487 set dummy nm; ac_word=$2
8488 echo "$as_me:$LINENO: checking for $ac_word" >&5
8489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8490 if test "${ac_cv_prog_NM+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493 if test -n "$NM"; then
8494 ac_cv_prog_NM="$NM" # Let the user override the test.
8495 else
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8503 ac_cv_prog_NM="nm"
8504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 break 2
8507 done
8508 done
8510 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8513 NM=$ac_cv_prog_NM
8514 if test -n "$NM"; then
8515 echo "$as_me:$LINENO: result: $NM" >&5
8516 echo "${ECHO_T}$NM" >&6
8517 else
8518 echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6
8524 # AR
8525 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8526 && test -d ../binutils ; then
8527 AR='$(objdir)/../binutils/ar'
8528 else
8529 # Extract the first word of "ar", so it can be a program name with args.
8530 set dummy ar; ac_word=$2
8531 echo "$as_me:$LINENO: checking for $ac_word" >&5
8532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8533 if test "${ac_cv_prog_AR+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 else
8536 if test -n "$AR"; then
8537 ac_cv_prog_AR="$AR" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546 ac_cv_prog_AR="ar"
8547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8550 done
8551 done
8553 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8556 AR=$ac_cv_prog_AR
8557 if test -n "$AR"; then
8558 echo "$as_me:$LINENO: result: $AR" >&5
8559 echo "${ECHO_T}$AR" >&6
8560 else
8561 echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6
8568 # --------------------
8569 # Checks for C headers
8570 # --------------------
8572 # Need to reject headers which give warnings, so that the -Werror bootstrap
8573 # works later. *sigh* This needs to come before all header checks.
8575 ac_c_preproc_warn_flag=yes
8577 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8578 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8579 if test "${ac_cv_header_stdc+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582 cat >conftest.$ac_ext <<_ACEOF
8583 /* confdefs.h. */
8584 _ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h. */
8588 #include <stdlib.h>
8589 #include <stdarg.h>
8590 #include <string.h>
8591 #include <float.h>
8594 main ()
8598 return 0;
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8603 (eval $ac_compile) 2>conftest.er1
8604 ac_status=$?
8605 grep -v '^ *+' conftest.er1 >conftest.err
8606 rm -f conftest.er1
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
8610 { ac_try='test -z "$ac_c_werror_flag"
8611 || test ! -s conftest.err'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; } &&
8617 { ac_try='test -s conftest.$ac_objext'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 (eval $ac_try) 2>&5
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; }; then
8623 ac_cv_header_stdc=yes
8624 else
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8628 ac_cv_header_stdc=no
8630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8632 if test $ac_cv_header_stdc = yes; then
8633 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h. */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 #include <string.h>
8642 _ACEOF
8643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8644 $EGREP "memchr" >/dev/null 2>&1; then
8646 else
8647 ac_cv_header_stdc=no
8649 rm -f conftest*
8653 if test $ac_cv_header_stdc = yes; then
8654 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8655 cat >conftest.$ac_ext <<_ACEOF
8656 /* confdefs.h. */
8657 _ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8661 #include <stdlib.h>
8663 _ACEOF
8664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8665 $EGREP "free" >/dev/null 2>&1; then
8667 else
8668 ac_cv_header_stdc=no
8670 rm -f conftest*
8674 if test $ac_cv_header_stdc = yes; then
8675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8676 if test "$cross_compiling" = yes; then
8678 else
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 #include <ctype.h>
8686 #if ((' ' & 0x0FF) == 0x020)
8687 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8688 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8689 #else
8690 # define ISLOWER(c) \
8691 (('a' <= (c) && (c) <= 'i') \
8692 || ('j' <= (c) && (c) <= 'r') \
8693 || ('s' <= (c) && (c) <= 'z'))
8694 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8695 #endif
8697 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8699 main ()
8701 int i;
8702 for (i = 0; i < 256; i++)
8703 if (XOR (islower (i), ISLOWER (i))
8704 || toupper (i) != TOUPPER (i))
8705 exit(2);
8706 exit (0);
8708 _ACEOF
8709 rm -f conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; }; then
8721 else
8722 echo "$as_me: program exited with status $ac_status" >&5
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 ( exit $ac_status )
8727 ac_cv_header_stdc=no
8729 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8733 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8734 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8735 if test $ac_cv_header_stdc = yes; then
8737 cat >>confdefs.h <<\_ACEOF
8738 #define STDC_HEADERS 1
8739 _ACEOF
8743 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8744 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8745 if test "${ac_cv_header_time+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h. */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754 #include <sys/types.h>
8755 #include <sys/time.h>
8756 #include <time.h>
8759 main ()
8761 if ((struct tm *) 0)
8762 return 0;
8764 return 0;
8766 _ACEOF
8767 rm -f conftest.$ac_objext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8769 (eval $ac_compile) 2>conftest.er1
8770 ac_status=$?
8771 grep -v '^ *+' conftest.er1 >conftest.err
8772 rm -f conftest.er1
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -z "$ac_c_werror_flag"
8777 || test ! -s conftest.err'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 (eval $ac_try) 2>&5
8780 ac_status=$?
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest.$ac_objext'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 (eval $ac_try) 2>&5
8786 ac_status=$?
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
8789 ac_cv_header_time=yes
8790 else
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8794 ac_cv_header_time=no
8796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8798 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8799 echo "${ECHO_T}$ac_cv_header_time" >&6
8800 if test $ac_cv_header_time = yes; then
8802 cat >>confdefs.h <<\_ACEOF
8803 #define TIME_WITH_SYS_TIME 1
8804 _ACEOF
8808 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8809 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8810 if test "${gcc_cv_header_string+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h. */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819 #include <string.h>
8820 #include <strings.h>
8822 main ()
8826 return 0;
8828 _ACEOF
8829 rm -f conftest.$ac_objext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831 (eval $ac_compile) 2>conftest.er1
8832 ac_status=$?
8833 grep -v '^ *+' conftest.er1 >conftest.err
8834 rm -f conftest.er1
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -z "$ac_c_werror_flag"
8839 || test ! -s conftest.err'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 (eval $ac_try) 2>&5
8842 ac_status=$?
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; } &&
8845 { ac_try='test -s conftest.$ac_objext'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 (eval $ac_try) 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 gcc_cv_header_string=yes
8852 else
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 gcc_cv_header_string=no
8858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8860 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8861 echo "${ECHO_T}$gcc_cv_header_string" >&6
8862 if test $gcc_cv_header_string = yes; then
8864 cat >>confdefs.h <<\_ACEOF
8865 #define STRING_WITH_STRINGS 1
8866 _ACEOF
8870 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8871 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8872 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8875 cat >conftest.$ac_ext <<_ACEOF
8876 /* confdefs.h. */
8877 _ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8881 #include <sys/types.h>
8882 #include <sys/wait.h>
8883 #ifndef WEXITSTATUS
8884 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8885 #endif
8886 #ifndef WIFEXITED
8887 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8888 #endif
8891 main ()
8893 int s;
8894 wait (&s);
8895 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8897 return 0;
8899 _ACEOF
8900 rm -f conftest.$ac_objext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8902 (eval $ac_compile) 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag"
8910 || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try='test -s conftest.$ac_objext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 (eval $ac_try) 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 ac_cv_header_sys_wait_h=yes
8923 else
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8927 ac_cv_header_sys_wait_h=no
8929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8931 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8932 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8933 if test $ac_cv_header_sys_wait_h = yes; then
8935 cat >>confdefs.h <<\_ACEOF
8936 #define HAVE_SYS_WAIT_H 1
8937 _ACEOF
8963 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8964 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8965 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8966 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8969 echo "$as_me:$LINENO: checking for $ac_header" >&5
8970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8973 else
8974 cat >conftest.$ac_ext <<_ACEOF
8975 /* confdefs.h. */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8980 #include <$ac_header>
8981 _ACEOF
8982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } >/dev/null; then
8990 if test -s conftest.err; then
8991 ac_cpp_err=$ac_c_preproc_warn_flag
8992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8993 else
8994 ac_cpp_err=
8996 else
8997 ac_cpp_err=yes
8999 if test -z "$ac_cpp_err"; then
9000 eval "$as_ac_Header=yes"
9001 else
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 eval "$as_ac_Header=no"
9007 rm -f conftest.err conftest.$ac_ext
9009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9012 cat >>confdefs.h <<_ACEOF
9013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9014 _ACEOF
9017 done
9020 # Check for thread headers.
9021 echo "$as_me:$LINENO: checking for thread.h" >&5
9022 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9023 if test "${ac_cv_header_thread_h+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h. */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 #include <thread.h>
9033 _ACEOF
9034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9036 ac_status=$?
9037 grep -v '^ *+' conftest.er1 >conftest.err
9038 rm -f conftest.er1
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } >/dev/null; then
9042 if test -s conftest.err; then
9043 ac_cpp_err=$ac_c_preproc_warn_flag
9044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9045 else
9046 ac_cpp_err=
9048 else
9049 ac_cpp_err=yes
9051 if test -z "$ac_cpp_err"; then
9052 ac_cv_header_thread_h=yes
9053 else
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9057 ac_cv_header_thread_h=no
9059 rm -f conftest.err conftest.$ac_ext
9061 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9062 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9063 if test $ac_cv_header_thread_h = yes; then
9064 have_thread_h=yes
9065 else
9066 have_thread_h=
9069 echo "$as_me:$LINENO: checking for pthread.h" >&5
9070 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9071 if test "${ac_cv_header_pthread_h+set}" = set; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074 cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h. */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9080 #include <pthread.h>
9081 _ACEOF
9082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9084 ac_status=$?
9085 grep -v '^ *+' conftest.er1 >conftest.err
9086 rm -f conftest.er1
9087 cat conftest.err >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } >/dev/null; then
9090 if test -s conftest.err; then
9091 ac_cpp_err=$ac_c_preproc_warn_flag
9092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9093 else
9094 ac_cpp_err=
9096 else
9097 ac_cpp_err=yes
9099 if test -z "$ac_cpp_err"; then
9100 ac_cv_header_pthread_h=yes
9101 else
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9105 ac_cv_header_pthread_h=no
9107 rm -f conftest.err conftest.$ac_ext
9109 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9110 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9111 if test $ac_cv_header_pthread_h = yes; then
9112 have_pthread_h=yes
9113 else
9114 have_pthread_h=
9118 # These tests can't be done till we know if we have limits.h.
9119 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9120 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9121 if test "${gcc_cv_decl_char_bit+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124 cat >conftest.$ac_ext <<_ACEOF
9125 /* confdefs.h. */
9126 _ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 #ifdef HAVE_LIMITS_H
9131 #include <limits.h>
9132 #endif
9133 #ifdef CHAR_BIT
9134 found
9135 #endif
9136 _ACEOF
9137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9138 $EGREP "found" >/dev/null 2>&1; then
9139 gcc_cv_decl_char_bit=yes
9140 else
9141 gcc_cv_decl_char_bit=no
9143 rm -f conftest*
9147 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9148 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9149 if test $gcc_cv_decl_char_bit = no; then
9150 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9151 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9152 if test "${gcc_cv_c_nbby+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9156 gcc_cv_c_nbby=
9157 while test $i -lt 65; do
9158 cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h. */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9166 main ()
9168 switch(0) {
9169 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9170 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9173 return 0;
9175 _ACEOF
9176 rm -f conftest.$ac_objext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9178 (eval $ac_compile) 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); } &&
9185 { ac_try='test -z "$ac_c_werror_flag"
9186 || test ! -s conftest.err'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest.$ac_objext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 (eval $ac_try) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 gcc_cv_c_nbby=$i; break
9199 else
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9205 i=`expr $i + 1`
9206 done
9207 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9210 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9211 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9212 if test $gcc_cv_c_nbby = failed; then
9213 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9214 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9215 { (exit 1); exit 1; }; }
9216 else
9218 cat >>confdefs.h <<_ACEOF
9219 #define CHAR_BIT $gcc_cv_c_nbby
9220 _ACEOF
9224 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9225 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9226 if test "${ac_cv_c_bigendian+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229 # See if sys/param.h defines the BYTE_ORDER macro.
9230 cat >conftest.$ac_ext <<_ACEOF
9231 /* confdefs.h. */
9232 _ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9236 #include <sys/types.h>
9237 #include <sys/param.h>
9240 main ()
9242 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9243 bogus endian macros
9244 #endif
9247 return 0;
9249 _ACEOF
9250 rm -f conftest.$ac_objext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9252 (eval $ac_compile) 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest.$ac_objext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 # It does; now see whether it defined to BIG_ENDIAN or not.
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h. */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 #include <sys/types.h>
9280 #include <sys/param.h>
9283 main ()
9285 #if BYTE_ORDER != BIG_ENDIAN
9286 not big endian
9287 #endif
9290 return 0;
9292 _ACEOF
9293 rm -f conftest.$ac_objext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9295 (eval $ac_compile) 2>conftest.er1
9296 ac_status=$?
9297 grep -v '^ *+' conftest.er1 >conftest.err
9298 rm -f conftest.er1
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -z "$ac_c_werror_flag"
9303 || test ! -s conftest.err'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 (eval $ac_try) 2>&5
9306 ac_status=$?
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; } &&
9309 { ac_try='test -s conftest.$ac_objext'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 (eval $ac_try) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; }; then
9315 ac_cv_c_bigendian=yes
9316 else
9317 echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_cv_c_bigendian=no
9322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9323 else
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 # It does not; compile a test program.
9328 if test "$cross_compiling" = yes; then
9329 # try to guess the endianness by grepping values into an object file
9330 ac_cv_c_bigendian=unknown
9331 cat >conftest.$ac_ext <<_ACEOF
9332 /* confdefs.h. */
9333 _ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9337 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9338 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9339 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9340 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9341 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9342 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9344 main ()
9346 _ascii (); _ebcdic ();
9348 return 0;
9350 _ACEOF
9351 rm -f conftest.$ac_objext
9352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9353 (eval $ac_compile) 2>conftest.er1
9354 ac_status=$?
9355 grep -v '^ *+' conftest.er1 >conftest.err
9356 rm -f conftest.er1
9357 cat conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } &&
9360 { ac_try='test -z "$ac_c_werror_flag"
9361 || test ! -s conftest.err'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 (eval $ac_try) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; } &&
9367 { ac_try='test -s conftest.$ac_objext'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 (eval $ac_try) 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; }; then
9373 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9374 ac_cv_c_bigendian=yes
9376 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9377 if test "$ac_cv_c_bigendian" = unknown; then
9378 ac_cv_c_bigendian=no
9379 else
9380 # finding both strings is unlikely to happen, but who knows?
9381 ac_cv_c_bigendian=unknown
9384 else
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9390 else
9391 cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h. */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9398 main ()
9400 /* Are we little or big endian? From Harbison&Steele. */
9401 union
9403 long l;
9404 char c[sizeof (long)];
9405 } u;
9406 u.l = 1;
9407 exit (u.c[sizeof (long) - 1] == 1);
9409 _ACEOF
9410 rm -f conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; }; then
9421 ac_cv_c_bigendian=no
9422 else
9423 echo "$as_me: program exited with status $ac_status" >&5
9424 echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9427 ( exit $ac_status )
9428 ac_cv_c_bigendian=yes
9430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9435 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9436 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9437 case $ac_cv_c_bigendian in
9438 yes)
9440 cat >>confdefs.h <<\_ACEOF
9441 #define WORDS_BIGENDIAN 1
9442 _ACEOF
9447 { { echo "$as_me:$LINENO: error: unknown endianness
9448 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9449 echo "$as_me: error: unknown endianness
9450 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9451 { (exit 1); exit 1; }; } ;;
9452 esac
9455 # --------
9456 # UNSORTED
9457 # --------
9460 # These libraries may be used by collect2.
9461 # We may need a special search path to get them linked.
9462 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9463 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9464 if test "${gcc_cv_collect2_libs+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9466 else
9467 save_LIBS="$LIBS"
9468 for libs in '' -lld -lmld \
9469 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9470 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9472 LIBS="$libs"
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h. */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9480 /* Override any gcc2 internal prototype to avoid an error. */
9481 #ifdef __cplusplus
9482 extern "C"
9483 #endif
9484 /* We use char because int might match the return type of a gcc2
9485 builtin and then its argument prototype would still apply. */
9486 char ldopen ();
9488 main ()
9490 ldopen ();
9492 return 0;
9494 _ACEOF
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497 (eval $ac_link) 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag"
9505 || test ! -s conftest.err'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest$ac_exeext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 gcc_cv_collect2_libs="$libs"; break
9518 else
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9523 rm -f conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
9525 done
9526 LIBS="$save_LIBS"
9527 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9529 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9530 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9531 case $gcc_cv_collect2_libs in
9532 "none required") ;;
9533 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9534 esac
9537 # When building Ada code on Alpha, we need exc_resume which is usually in
9538 # -lexc. So test for it.
9539 save_LIBS="$LIBS"
9540 LIBS=
9541 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9542 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9543 if test "${ac_cv_search_exc_resume+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546 ac_func_search_save_LIBS=$LIBS
9547 ac_cv_search_exc_resume=no
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h. */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9555 /* Override any gcc2 internal prototype to avoid an error. */
9556 #ifdef __cplusplus
9557 extern "C"
9558 #endif
9559 /* We use char because int might match the return type of a gcc2
9560 builtin and then its argument prototype would still apply. */
9561 char exc_resume ();
9563 main ()
9565 exc_resume ();
9567 return 0;
9569 _ACEOF
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9572 (eval $ac_link) 2>conftest.er1
9573 ac_status=$?
9574 grep -v '^ *+' conftest.er1 >conftest.err
9575 rm -f conftest.er1
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } &&
9579 { ac_try='test -z "$ac_c_werror_flag"
9580 || test ! -s conftest.err'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 (eval $ac_try) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; } &&
9586 { ac_try='test -s conftest$ac_exeext'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 (eval $ac_try) 2>&5
9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_cv_search_exc_resume="none required"
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9598 rm -f conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext conftest.$ac_ext
9600 if test "$ac_cv_search_exc_resume" = no; then
9601 for ac_lib in exc; do
9602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9603 cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h. */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9610 /* Override any gcc2 internal prototype to avoid an error. */
9611 #ifdef __cplusplus
9612 extern "C"
9613 #endif
9614 /* We use char because int might match the return type of a gcc2
9615 builtin and then its argument prototype would still apply. */
9616 char exc_resume ();
9618 main ()
9620 exc_resume ();
9622 return 0;
9624 _ACEOF
9625 rm -f conftest.$ac_objext conftest$ac_exeext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9627 (eval $ac_link) 2>conftest.er1
9628 ac_status=$?
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try='test -z "$ac_c_werror_flag"
9635 || test ! -s conftest.err'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; } &&
9641 { ac_try='test -s conftest$ac_exeext'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 (eval $ac_try) 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
9647 ac_cv_search_exc_resume="-l$ac_lib"
9648 break
9649 else
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9654 rm -f conftest.err conftest.$ac_objext \
9655 conftest$ac_exeext conftest.$ac_ext
9656 done
9658 LIBS=$ac_func_search_save_LIBS
9660 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9661 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9662 if test "$ac_cv_search_exc_resume" != no; then
9663 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9667 GNAT_LIBEXC="$LIBS"
9668 LIBS="$save_LIBS"
9671 # Some systems put ldexp and frexp in libm instead of libc; assume
9672 # they're both in the same place. jcf-dump needs them.
9673 save_LIBS="$LIBS"
9674 LIBS=
9675 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9676 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9677 if test "${ac_cv_search_ldexp+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680 ac_func_search_save_LIBS=$LIBS
9681 ac_cv_search_ldexp=no
9682 cat >conftest.$ac_ext <<_ACEOF
9683 /* confdefs.h. */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9689 /* Override any gcc2 internal prototype to avoid an error. */
9690 #ifdef __cplusplus
9691 extern "C"
9692 #endif
9693 /* We use char because int might match the return type of a gcc2
9694 builtin and then its argument prototype would still apply. */
9695 char ldexp ();
9697 main ()
9699 ldexp ();
9701 return 0;
9703 _ACEOF
9704 rm -f conftest.$ac_objext conftest$ac_exeext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9706 (eval $ac_link) 2>conftest.er1
9707 ac_status=$?
9708 grep -v '^ *+' conftest.er1 >conftest.err
9709 rm -f conftest.er1
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -z "$ac_c_werror_flag"
9714 || test ! -s conftest.err'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716 (eval $ac_try) 2>&5
9717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; } &&
9720 { ac_try='test -s conftest$ac_exeext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 (eval $ac_try) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_search_ldexp="none required"
9727 else
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9732 rm -f conftest.err conftest.$ac_objext \
9733 conftest$ac_exeext conftest.$ac_ext
9734 if test "$ac_cv_search_ldexp" = no; then
9735 for ac_lib in m; do
9736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h. */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9744 /* Override any gcc2 internal prototype to avoid an error. */
9745 #ifdef __cplusplus
9746 extern "C"
9747 #endif
9748 /* We use char because int might match the return type of a gcc2
9749 builtin and then its argument prototype would still apply. */
9750 char ldexp ();
9752 main ()
9754 ldexp ();
9756 return 0;
9758 _ACEOF
9759 rm -f conftest.$ac_objext conftest$ac_exeext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9761 (eval $ac_link) 2>conftest.er1
9762 ac_status=$?
9763 grep -v '^ *+' conftest.er1 >conftest.err
9764 rm -f conftest.er1
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } &&
9768 { ac_try='test -z "$ac_c_werror_flag"
9769 || test ! -s conftest.err'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9781 ac_cv_search_ldexp="-l$ac_lib"
9782 break
9783 else
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9788 rm -f conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 done
9792 LIBS=$ac_func_search_save_LIBS
9794 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9795 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9796 if test "$ac_cv_search_ldexp" != no; then
9797 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9801 LDEXP_LIB="$LIBS"
9802 LIBS="$save_LIBS"
9805 # Use <inttypes.h> only if it exists,
9806 # doesn't clash with <sys/types.h>, and declares intmax_t.
9807 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9808 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9809 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812 cat >conftest.$ac_ext <<_ACEOF
9813 /* confdefs.h. */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9818 #include <sys/types.h>
9819 #include <inttypes.h>
9821 main ()
9823 intmax_t i = -1;
9825 return 0;
9827 _ACEOF
9828 rm -f conftest.$ac_objext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9830 (eval $ac_compile) 2>conftest.er1
9831 ac_status=$?
9832 grep -v '^ *+' conftest.er1 >conftest.err
9833 rm -f conftest.er1
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } &&
9837 { ac_try='test -z "$ac_c_werror_flag"
9838 || test ! -s conftest.err'
9839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 (eval $ac_try) 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; } &&
9844 { ac_try='test -s conftest.$ac_objext'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 (eval $ac_try) 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 gcc_cv_header_inttypes_h=yes
9851 else
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9855 gcc_cv_header_inttypes_h=no
9857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9860 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9861 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9862 if test $gcc_cv_header_inttypes_h = yes; then
9864 cat >>confdefs.h <<\_ACEOF
9865 #define HAVE_INTTYPES_H 1
9866 _ACEOF
9907 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9908 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9909 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9910 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
9912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9913 echo "$as_me:$LINENO: checking for $ac_func" >&5
9914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9915 if eval "test \"\${$as_ac_var+set}\" = set"; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918 cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h. */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9926 #define $ac_func innocuous_$ac_func
9928 /* System header to define __stub macros and hopefully few prototypes,
9929 which can conflict with char $ac_func (); below.
9930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9931 <limits.h> exists even on freestanding compilers. */
9933 #ifdef __STDC__
9934 # include <limits.h>
9935 #else
9936 # include <assert.h>
9937 #endif
9939 #undef $ac_func
9941 /* Override any gcc2 internal prototype to avoid an error. */
9942 #ifdef __cplusplus
9943 extern "C"
9945 #endif
9946 /* We use char because int might match the return type of a gcc2
9947 builtin and then its argument prototype would still apply. */
9948 char $ac_func ();
9949 /* The GNU C library defines this for functions which it implements
9950 to always fail with ENOSYS. Some functions are actually named
9951 something starting with __ and the normal name is an alias. */
9952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9953 choke me
9954 #else
9955 char (*f) () = $ac_func;
9956 #endif
9957 #ifdef __cplusplus
9959 #endif
9962 main ()
9964 return f != $ac_func;
9966 return 0;
9968 _ACEOF
9969 rm -f conftest.$ac_objext conftest$ac_exeext
9970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971 (eval $ac_link) 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try='test -z "$ac_c_werror_flag"
9979 || test ! -s conftest.err'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 (eval $ac_try) 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; } &&
9985 { ac_try='test -s conftest$ac_exeext'
9986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 (eval $ac_try) 2>&5
9988 ac_status=$?
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; }; then
9991 eval "$as_ac_var=yes"
9992 else
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9996 eval "$as_ac_var=no"
9998 rm -f conftest.err conftest.$ac_objext \
9999 conftest$ac_exeext conftest.$ac_ext
10001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10003 if test `eval echo '${'$as_ac_var'}'` = yes; then
10004 cat >>confdefs.h <<_ACEOF
10005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10006 _ACEOF
10009 done
10012 if test x$ac_cv_func_mbstowcs = xyes; then
10013 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10014 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10015 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018 if test "$cross_compiling" = yes; then
10019 gcc_cv_func_mbstowcs_works=yes
10020 else
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 #include <stdlib.h>
10028 int main()
10030 mbstowcs(0, "", 0);
10031 return 0;
10033 _ACEOF
10034 rm -f conftest$ac_exeext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036 (eval $ac_link) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 gcc_cv_func_mbstowcs_works=yes
10046 else
10047 echo "$as_me: program exited with status $ac_status" >&5
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ( exit $ac_status )
10052 gcc_cv_func_mbstowcs_works=no
10054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10057 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10058 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10059 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10061 cat >>confdefs.h <<\_ACEOF
10062 #define HAVE_WORKING_MBSTOWCS 1
10063 _ACEOF
10068 echo "$as_me:$LINENO: checking for ssize_t" >&5
10069 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10070 if test "${ac_cv_type_ssize_t+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h. */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079 $ac_includes_default
10081 main ()
10083 if ((ssize_t *) 0)
10084 return 0;
10085 if (sizeof (ssize_t))
10086 return 0;
10088 return 0;
10090 _ACEOF
10091 rm -f conftest.$ac_objext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10093 (eval $ac_compile) 2>conftest.er1
10094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag"
10101 || test ! -s conftest.err'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_cv_type_ssize_t=yes
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_cv_type_ssize_t=no
10120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10122 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10123 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10124 if test $ac_cv_type_ssize_t = yes; then
10126 else
10128 cat >>confdefs.h <<_ACEOF
10129 #define ssize_t int
10130 _ACEOF
10135 # Try to determine the array type of the second argument of getgroups
10136 # for the target system (int or gid_t).
10137 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10138 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10139 if test "${ac_cv_type_uid_t+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h. */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 #include <sys/types.h>
10150 _ACEOF
10151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10152 $EGREP "uid_t" >/dev/null 2>&1; then
10153 ac_cv_type_uid_t=yes
10154 else
10155 ac_cv_type_uid_t=no
10157 rm -f conftest*
10160 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10161 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10162 if test $ac_cv_type_uid_t = no; then
10164 cat >>confdefs.h <<\_ACEOF
10165 #define uid_t int
10166 _ACEOF
10169 cat >>confdefs.h <<\_ACEOF
10170 #define gid_t int
10171 _ACEOF
10175 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10176 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10177 if test "${ac_cv_type_getgroups+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180 if test "$cross_compiling" = yes; then
10181 ac_cv_type_getgroups=cross
10182 else
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 /* Thanks to Mike Rendell for this test. */
10190 #include <sys/types.h>
10191 #define NGID 256
10192 #undef MAX
10193 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10196 main ()
10198 gid_t gidset[NGID];
10199 int i, n;
10200 union { gid_t gval; long lval; } val;
10202 val.lval = -1;
10203 for (i = 0; i < NGID; i++)
10204 gidset[i] = val.gval;
10205 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10206 gidset);
10207 /* Exit non-zero if getgroups seems to require an array of ints. This
10208 happens when gid_t is short but getgroups modifies an array of ints. */
10209 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10211 _ACEOF
10212 rm -f conftest$ac_exeext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10214 (eval $ac_link) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 ac_cv_type_getgroups=gid_t
10224 else
10225 echo "$as_me: program exited with status $ac_status" >&5
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ( exit $ac_status )
10230 ac_cv_type_getgroups=int
10232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10234 if test $ac_cv_type_getgroups = cross; then
10235 cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h. */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 #include <unistd.h>
10243 _ACEOF
10244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10245 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10246 ac_cv_type_getgroups=gid_t
10247 else
10248 ac_cv_type_getgroups=int
10250 rm -f conftest*
10254 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10255 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10257 cat >>confdefs.h <<_ACEOF
10258 #define GETGROUPS_T $ac_cv_type_getgroups
10259 _ACEOF
10262 if test "${target}" = "${build}"; then
10263 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10264 else
10265 case "${target}" in
10266 # This condition may need some tweaking. It should include all
10267 # targets where the array type of the second argument of getgroups
10268 # is int and the type of gid_t is not equivalent to int.
10269 *-*-sunos* | *-*-ultrix*)
10270 TARGET_GETGROUPS_T=int
10273 TARGET_GETGROUPS_T=gid_t
10275 esac
10280 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10281 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10282 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 else
10285 cat >conftest.$ac_ext <<_ACEOF
10286 /* confdefs.h. */
10287 _ACEOF
10288 cat confdefs.h >>conftest.$ac_ext
10289 cat >>conftest.$ac_ext <<_ACEOF
10290 /* end confdefs.h. */
10291 #include <sys/mman.h>
10292 _ACEOF
10293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } >/dev/null; then
10301 if test -s conftest.err; then
10302 ac_cpp_err=$ac_c_preproc_warn_flag
10303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10304 else
10305 ac_cpp_err=
10307 else
10308 ac_cpp_err=yes
10310 if test -z "$ac_cpp_err"; then
10311 ac_cv_header_sys_mman_h=yes
10312 else
10313 echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10316 ac_cv_header_sys_mman_h=no
10318 rm -f conftest.err conftest.$ac_ext
10320 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10321 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10322 if test $ac_cv_header_sys_mman_h = yes; then
10323 gcc_header_sys_mman_h=yes
10324 else
10325 gcc_header_sys_mman_h=no
10328 echo "$as_me:$LINENO: checking for mmap" >&5
10329 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10330 if test "${ac_cv_func_mmap+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 else
10333 cat >conftest.$ac_ext <<_ACEOF
10334 /* confdefs.h. */
10335 _ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h. */
10339 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10341 #define mmap innocuous_mmap
10343 /* System header to define __stub macros and hopefully few prototypes,
10344 which can conflict with char mmap (); below.
10345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10346 <limits.h> exists even on freestanding compilers. */
10348 #ifdef __STDC__
10349 # include <limits.h>
10350 #else
10351 # include <assert.h>
10352 #endif
10354 #undef mmap
10356 /* Override any gcc2 internal prototype to avoid an error. */
10357 #ifdef __cplusplus
10358 extern "C"
10360 #endif
10361 /* We use char because int might match the return type of a gcc2
10362 builtin and then its argument prototype would still apply. */
10363 char mmap ();
10364 /* The GNU C library defines this for functions which it implements
10365 to always fail with ENOSYS. Some functions are actually named
10366 something starting with __ and the normal name is an alias. */
10367 #if defined (__stub_mmap) || defined (__stub___mmap)
10368 choke me
10369 #else
10370 char (*f) () = mmap;
10371 #endif
10372 #ifdef __cplusplus
10374 #endif
10377 main ()
10379 return f != mmap;
10381 return 0;
10383 _ACEOF
10384 rm -f conftest.$ac_objext conftest$ac_exeext
10385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10386 (eval $ac_link) 2>conftest.er1
10387 ac_status=$?
10388 grep -v '^ *+' conftest.er1 >conftest.err
10389 rm -f conftest.er1
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } &&
10393 { ac_try='test -z "$ac_c_werror_flag"
10394 || test ! -s conftest.err'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; } &&
10400 { ac_try='test -s conftest$ac_exeext'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10403 ac_status=$?
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }; then
10406 ac_cv_func_mmap=yes
10407 else
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10411 ac_cv_func_mmap=no
10413 rm -f conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10416 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10417 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10418 if test $ac_cv_func_mmap = yes; then
10419 gcc_func_mmap=yes
10420 else
10421 gcc_func_mmap=no
10424 if test "$gcc_header_sys_mman_h" != yes \
10425 || test "$gcc_func_mmap" != yes; then
10426 gcc_cv_func_mmap_file=no
10427 gcc_cv_func_mmap_dev_zero=no
10428 gcc_cv_func_mmap_anon=no
10429 else
10430 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10431 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10432 if test "${gcc_cv_func_mmap_file+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435 # Add a system to this blacklist if
10436 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10437 # memory area containing the same data that you'd get if you applied
10438 # read() to the same fd. The only system known to have a problem here
10439 # is VMS, where text files have record structure.
10440 case "$host_os" in
10441 vms* | ultrix*)
10442 gcc_cv_func_mmap_file=no ;;
10444 gcc_cv_func_mmap_file=yes;;
10445 esac
10447 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10448 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10449 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10450 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10451 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454 # Add a system to this blacklist if it has mmap() but /dev/zero
10455 # does not exist, or if mmapping /dev/zero does not give anonymous
10456 # zeroed pages with both the following properties:
10457 # 1. If you map N consecutive pages in with one call, and then
10458 # unmap any subset of those pages, the pages that were not
10459 # explicitly unmapped remain accessible.
10460 # 2. If you map two adjacent blocks of memory and then unmap them
10461 # both at once, they must both go away.
10462 # Systems known to be in this category are Windows (all variants),
10463 # VMS, and Darwin.
10464 case "$host_os" in
10465 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10466 gcc_cv_func_mmap_dev_zero=no ;;
10468 gcc_cv_func_mmap_dev_zero=yes;;
10469 esac
10471 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10472 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10474 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10475 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10476 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10477 if test "${gcc_cv_decl_map_anon+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/types.h>
10487 #include <sys/mman.h>
10488 #include <unistd.h>
10490 #ifndef MAP_ANONYMOUS
10491 #define MAP_ANONYMOUS MAP_ANON
10492 #endif
10495 main ()
10497 int n = MAP_ANONYMOUS;
10499 return 0;
10501 _ACEOF
10502 rm -f conftest.$ac_objext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10504 (eval $ac_compile) 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try='test -z "$ac_c_werror_flag"
10512 || test ! -s conftest.err'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; } &&
10518 { ac_try='test -s conftest.$ac_objext'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; }; then
10524 gcc_cv_decl_map_anon=yes
10525 else
10526 echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10529 gcc_cv_decl_map_anon=no
10531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10533 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10534 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10536 if test $gcc_cv_decl_map_anon = no; then
10537 gcc_cv_func_mmap_anon=no
10538 else
10539 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10540 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10541 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10545 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10546 # doesn't give anonymous zeroed pages with the same properties listed
10547 # above for use of /dev/zero.
10548 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10549 case "$host_os" in
10550 vms* | cygwin* | pe | mingw* | sco* | udk* )
10551 gcc_cv_func_mmap_anon=no ;;
10553 gcc_cv_func_mmap_anon=yes;;
10554 esac
10556 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10557 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10561 if test $gcc_cv_func_mmap_file = yes; then
10563 cat >>confdefs.h <<\_ACEOF
10564 #define HAVE_MMAP_FILE 1
10565 _ACEOF
10568 if test $gcc_cv_func_mmap_dev_zero = yes; then
10570 cat >>confdefs.h <<\_ACEOF
10571 #define HAVE_MMAP_DEV_ZERO 1
10572 _ACEOF
10575 if test $gcc_cv_func_mmap_anon = yes; then
10577 cat >>confdefs.h <<\_ACEOF
10578 #define HAVE_MMAP_ANON 1
10579 _ACEOF
10584 case "${host}" in
10585 *-*-*vms*)
10586 # Under VMS, vfork works very differently than on Unix. The standard test
10587 # won't work, and it isn't easily adaptable. It makes more sense to
10588 # just force it.
10589 ac_cv_func_vfork_works=yes
10591 esac
10592 echo "$as_me:$LINENO: checking for pid_t" >&5
10593 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10594 if test "${ac_cv_type_pid_t+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 else
10597 cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h. */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603 $ac_includes_default
10605 main ()
10607 if ((pid_t *) 0)
10608 return 0;
10609 if (sizeof (pid_t))
10610 return 0;
10612 return 0;
10614 _ACEOF
10615 rm -f conftest.$ac_objext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10617 (eval $ac_compile) 2>conftest.er1
10618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag"
10625 || test ! -s conftest.err'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; } &&
10631 { ac_try='test -s conftest.$ac_objext'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; }; then
10637 ac_cv_type_pid_t=yes
10638 else
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 ac_cv_type_pid_t=no
10644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10646 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10647 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10648 if test $ac_cv_type_pid_t = yes; then
10650 else
10652 cat >>confdefs.h <<_ACEOF
10653 #define pid_t int
10654 _ACEOF
10660 for ac_header in unistd.h vfork.h
10662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10663 echo "$as_me:$LINENO: checking for $ac_header" >&5
10664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 else
10668 cat >conftest.$ac_ext <<_ACEOF
10669 /* confdefs.h. */
10670 _ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h. */
10674 #include <$ac_header>
10675 _ACEOF
10676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10678 ac_status=$?
10679 grep -v '^ *+' conftest.er1 >conftest.err
10680 rm -f conftest.er1
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } >/dev/null; then
10684 if test -s conftest.err; then
10685 ac_cpp_err=$ac_c_preproc_warn_flag
10686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10687 else
10688 ac_cpp_err=
10690 else
10691 ac_cpp_err=yes
10693 if test -z "$ac_cpp_err"; then
10694 eval "$as_ac_Header=yes"
10695 else
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10699 eval "$as_ac_Header=no"
10701 rm -f conftest.err conftest.$ac_ext
10703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10706 cat >>confdefs.h <<_ACEOF
10707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10708 _ACEOF
10711 done
10715 for ac_func in fork vfork
10717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10718 echo "$as_me:$LINENO: checking for $ac_func" >&5
10719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10720 if eval "test \"\${$as_ac_var+set}\" = set"; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 else
10723 cat >conftest.$ac_ext <<_ACEOF
10724 /* confdefs.h. */
10725 _ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10731 #define $ac_func innocuous_$ac_func
10733 /* System header to define __stub macros and hopefully few prototypes,
10734 which can conflict with char $ac_func (); below.
10735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10736 <limits.h> exists even on freestanding compilers. */
10738 #ifdef __STDC__
10739 # include <limits.h>
10740 #else
10741 # include <assert.h>
10742 #endif
10744 #undef $ac_func
10746 /* Override any gcc2 internal prototype to avoid an error. */
10747 #ifdef __cplusplus
10748 extern "C"
10750 #endif
10751 /* We use char because int might match the return type of a gcc2
10752 builtin and then its argument prototype would still apply. */
10753 char $ac_func ();
10754 /* The GNU C library defines this for functions which it implements
10755 to always fail with ENOSYS. Some functions are actually named
10756 something starting with __ and the normal name is an alias. */
10757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10758 choke me
10759 #else
10760 char (*f) () = $ac_func;
10761 #endif
10762 #ifdef __cplusplus
10764 #endif
10767 main ()
10769 return f != $ac_func;
10771 return 0;
10773 _ACEOF
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776 (eval $ac_link) 2>conftest.er1
10777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } &&
10783 { ac_try='test -z "$ac_c_werror_flag"
10784 || test ! -s conftest.err'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; } &&
10790 { ac_try='test -s conftest$ac_exeext'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10793 ac_status=$?
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
10796 eval "$as_ac_var=yes"
10797 else
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 eval "$as_ac_var=no"
10803 rm -f conftest.err conftest.$ac_objext \
10804 conftest$ac_exeext conftest.$ac_ext
10806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10808 if test `eval echo '${'$as_ac_var'}'` = yes; then
10809 cat >>confdefs.h <<_ACEOF
10810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10811 _ACEOF
10814 done
10816 if test "x$ac_cv_func_fork" = xyes; then
10817 echo "$as_me:$LINENO: checking for working fork" >&5
10818 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10819 if test "${ac_cv_func_fork_works+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822 if test "$cross_compiling" = yes; then
10823 ac_cv_func_fork_works=cross
10824 else
10825 cat >conftest.$ac_ext <<_ACEOF
10826 /* By Ruediger Kuhlmann. */
10827 #include <sys/types.h>
10828 #if HAVE_UNISTD_H
10829 # include <unistd.h>
10830 #endif
10831 /* Some systems only have a dummy stub for fork() */
10832 int main ()
10834 if (fork() < 0)
10835 exit (1);
10836 exit (0);
10838 _ACEOF
10839 rm -f conftest$ac_exeext
10840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10841 (eval $ac_link) 2>&5
10842 ac_status=$?
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 ac_cv_func_fork_works=yes
10851 else
10852 echo "$as_me: program exited with status $ac_status" >&5
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 ( exit $ac_status )
10857 ac_cv_func_fork_works=no
10859 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10862 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10863 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10865 else
10866 ac_cv_func_fork_works=$ac_cv_func_fork
10868 if test "x$ac_cv_func_fork_works" = xcross; then
10869 case $host in
10870 *-*-amigaos* | *-*-msdosdjgpp*)
10871 # Override, as these systems have only a dummy fork() stub
10872 ac_cv_func_fork_works=no
10875 ac_cv_func_fork_works=yes
10877 esac
10878 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10879 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10881 ac_cv_func_vfork_works=$ac_cv_func_vfork
10882 if test "x$ac_cv_func_vfork" = xyes; then
10883 echo "$as_me:$LINENO: checking for working vfork" >&5
10884 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10885 if test "${ac_cv_func_vfork_works+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888 if test "$cross_compiling" = yes; then
10889 ac_cv_func_vfork_works=cross
10890 else
10891 cat >conftest.$ac_ext <<_ACEOF
10892 /* confdefs.h. */
10893 _ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10897 /* Thanks to Paul Eggert for this test. */
10898 #include <stdio.h>
10899 #include <stdlib.h>
10900 #include <sys/types.h>
10901 #include <sys/stat.h>
10902 #include <sys/wait.h>
10903 #if HAVE_UNISTD_H
10904 # include <unistd.h>
10905 #endif
10906 #if HAVE_VFORK_H
10907 # include <vfork.h>
10908 #endif
10909 /* On some sparc systems, changes by the child to local and incoming
10910 argument registers are propagated back to the parent. The compiler
10911 is told about this with #include <vfork.h>, but some compilers
10912 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10913 static variable whose address is put into a register that is
10914 clobbered by the vfork. */
10915 static void
10916 #ifdef __cplusplus
10917 sparc_address_test (int arg)
10918 # else
10919 sparc_address_test (arg) int arg;
10920 #endif
10922 static pid_t child;
10923 if (!child) {
10924 child = vfork ();
10925 if (child < 0) {
10926 perror ("vfork");
10927 _exit(2);
10929 if (!child) {
10930 arg = getpid();
10931 write(-1, "", 0);
10932 _exit (arg);
10938 main ()
10940 pid_t parent = getpid ();
10941 pid_t child;
10943 sparc_address_test (0);
10945 child = vfork ();
10947 if (child == 0) {
10948 /* Here is another test for sparc vfork register problems. This
10949 test uses lots of local variables, at least as many local
10950 variables as main has allocated so far including compiler
10951 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10952 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10953 reuse the register of parent for one of the local variables,
10954 since it will think that parent can't possibly be used any more
10955 in this routine. Assigning to the local variable will thus
10956 munge parent in the parent process. */
10957 pid_t
10958 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10959 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10960 /* Convince the compiler that p..p7 are live; otherwise, it might
10961 use the same hardware register for all 8 local variables. */
10962 if (p != p1 || p != p2 || p != p3 || p != p4
10963 || p != p5 || p != p6 || p != p7)
10964 _exit(1);
10966 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10967 from child file descriptors. If the child closes a descriptor
10968 before it execs or exits, this munges the parent's descriptor
10969 as well. Test for this by closing stdout in the child. */
10970 _exit(close(fileno(stdout)) != 0);
10971 } else {
10972 int status;
10973 struct stat st;
10975 while (wait(&status) != child)
10977 exit(
10978 /* Was there some problem with vforking? */
10979 child < 0
10981 /* Did the child fail? (This shouldn't happen.) */
10982 || status
10984 /* Did the vfork/compiler bug occur? */
10985 || parent != getpid()
10987 /* Did the file descriptor bug occur? */
10988 || fstat(fileno(stdout), &st) != 0
10992 _ACEOF
10993 rm -f conftest$ac_exeext
10994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10995 (eval $ac_link) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 ac_cv_func_vfork_works=yes
11005 else
11006 echo "$as_me: program exited with status $ac_status" >&5
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11010 ( exit $ac_status )
11011 ac_cv_func_vfork_works=no
11013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11016 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11017 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11020 if test "x$ac_cv_func_fork_works" = xcross; then
11021 ac_cv_func_vfork_works=$ac_cv_func_vfork
11022 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11023 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11026 if test "x$ac_cv_func_vfork_works" = xyes; then
11028 cat >>confdefs.h <<\_ACEOF
11029 #define HAVE_WORKING_VFORK 1
11030 _ACEOF
11032 else
11034 cat >>confdefs.h <<\_ACEOF
11035 #define vfork fork
11036 _ACEOF
11039 if test "x$ac_cv_func_fork_works" = xyes; then
11041 cat >>confdefs.h <<\_ACEOF
11042 #define HAVE_WORKING_FORK 1
11043 _ACEOF
11049 if test "X$prefix" = "XNONE"; then
11050 acl_final_prefix="$ac_default_prefix"
11051 else
11052 acl_final_prefix="$prefix"
11054 if test "X$exec_prefix" = "XNONE"; then
11055 acl_final_exec_prefix='${prefix}'
11056 else
11057 acl_final_exec_prefix="$exec_prefix"
11059 acl_save_prefix="$prefix"
11060 prefix="$acl_final_prefix"
11061 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11062 prefix="$acl_save_prefix"
11065 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11066 if test "${with_gnu_ld+set}" = set; then
11067 withval="$with_gnu_ld"
11068 test "$withval" = no || with_gnu_ld=yes
11069 else
11070 with_gnu_ld=no
11072 # Prepare PATH_SEPARATOR.
11073 # The user is always right.
11074 if test "${PATH_SEPARATOR+set}" != set; then
11075 echo "#! /bin/sh" >conf$$.sh
11076 echo "exit 0" >>conf$$.sh
11077 chmod +x conf$$.sh
11078 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11079 PATH_SEPARATOR=';'
11080 else
11081 PATH_SEPARATOR=:
11083 rm -f conf$$.sh
11085 ac_prog=ld
11086 if test "$GCC" = yes; then
11087 # Check if gcc -print-prog-name=ld gives a path.
11088 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11089 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11090 case $host in
11091 *-*-mingw*)
11092 # gcc leaves a trailing carriage return which upsets mingw
11093 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11095 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11096 esac
11097 case $ac_prog in
11098 # Accept absolute paths.
11099 [\\/]* | [A-Za-z]:[\\/]*)
11100 re_direlt='/[^/][^/]*/\.\./'
11101 # Canonicalize the path of ld
11102 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11103 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11104 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11105 done
11106 test -z "$LD" && LD="$ac_prog"
11109 # If it fails, then pretend we aren't using GCC.
11110 ac_prog=ld
11113 # If it is relative, then search for the first ld in PATH.
11114 with_gnu_ld=unknown
11116 esac
11117 elif test "$with_gnu_ld" = yes; then
11118 echo "$as_me:$LINENO: checking for GNU ld" >&5
11119 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11120 else
11121 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11122 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11124 if test "${acl_cv_path_LD+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127 if test -z "$LD"; then
11128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11129 for ac_dir in $PATH; do
11130 test -z "$ac_dir" && ac_dir=.
11131 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11132 acl_cv_path_LD="$ac_dir/$ac_prog"
11133 # Check to see if the program is GNU ld. I'd rather use --version,
11134 # but apparently some GNU ld's only accept -v.
11135 # Break only if it was the GNU/non-GNU ld that we prefer.
11136 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11137 test "$with_gnu_ld" != no && break
11138 else
11139 test "$with_gnu_ld" != yes && break
11142 done
11143 IFS="$ac_save_ifs"
11144 else
11145 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11149 LD="$acl_cv_path_LD"
11150 if test -n "$LD"; then
11151 echo "$as_me:$LINENO: result: $LD" >&5
11152 echo "${ECHO_T}$LD" >&6
11153 else
11154 echo "$as_me:$LINENO: result: no" >&5
11155 echo "${ECHO_T}no" >&6
11157 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11158 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11159 { (exit 1); exit 1; }; }
11160 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11161 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11162 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 else
11165 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11166 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11167 acl_cv_prog_gnu_ld=yes
11168 else
11169 acl_cv_prog_gnu_ld=no
11172 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11173 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11174 with_gnu_ld=$acl_cv_prog_gnu_ld
11178 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11179 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11180 if test "${acl_cv_rpath+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11184 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11185 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11186 . ./conftest.sh
11187 rm -f ./conftest.sh
11188 acl_cv_rpath=done
11191 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11192 echo "${ECHO_T}$acl_cv_rpath" >&6
11193 wl="$acl_cv_wl"
11194 libext="$acl_cv_libext"
11195 shlibext="$acl_cv_shlibext"
11196 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11197 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11198 hardcode_direct="$acl_cv_hardcode_direct"
11199 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11200 # Check whether --enable-rpath or --disable-rpath was given.
11201 if test "${enable_rpath+set}" = set; then
11202 enableval="$enable_rpath"
11204 else
11205 enable_rpath=yes
11214 use_additional=yes
11216 acl_save_prefix="$prefix"
11217 prefix="$acl_final_prefix"
11218 acl_save_exec_prefix="$exec_prefix"
11219 exec_prefix="$acl_final_exec_prefix"
11221 eval additional_includedir=\"$includedir\"
11222 eval additional_libdir=\"$libdir\"
11224 exec_prefix="$acl_save_exec_prefix"
11225 prefix="$acl_save_prefix"
11228 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11229 if test "${with_libiconv_prefix+set}" = set; then
11230 withval="$with_libiconv_prefix"
11232 if test "X$withval" = "Xno"; then
11233 use_additional=no
11234 else
11235 if test "X$withval" = "X"; then
11237 acl_save_prefix="$prefix"
11238 prefix="$acl_final_prefix"
11239 acl_save_exec_prefix="$exec_prefix"
11240 exec_prefix="$acl_final_exec_prefix"
11242 eval additional_includedir=\"$includedir\"
11243 eval additional_libdir=\"$libdir\"
11245 exec_prefix="$acl_save_exec_prefix"
11246 prefix="$acl_save_prefix"
11248 else
11249 additional_includedir="$withval/include"
11250 additional_libdir="$withval/lib"
11255 LIBICONV=
11256 LTLIBICONV=
11257 INCICONV=
11258 rpathdirs=
11259 ltrpathdirs=
11260 names_already_handled=
11261 names_next_round='iconv '
11262 while test -n "$names_next_round"; do
11263 names_this_round="$names_next_round"
11264 names_next_round=
11265 for name in $names_this_round; do
11266 already_handled=
11267 for n in $names_already_handled; do
11268 if test "$n" = "$name"; then
11269 already_handled=yes
11270 break
11272 done
11273 if test -z "$already_handled"; then
11274 names_already_handled="$names_already_handled $name"
11275 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11276 eval value=\"\$HAVE_LIB$uppername\"
11277 if test -n "$value"; then
11278 if test "$value" = yes; then
11279 eval value=\"\$LIB$uppername\"
11280 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11281 eval value=\"\$LTLIB$uppername\"
11282 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11283 else
11286 else
11287 found_dir=
11288 found_la=
11289 found_so=
11290 found_a=
11291 if test $use_additional = yes; then
11292 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11293 found_dir="$additional_libdir"
11294 found_so="$additional_libdir/lib$name.$shlibext"
11295 if test -f "$additional_libdir/lib$name.la"; then
11296 found_la="$additional_libdir/lib$name.la"
11298 else
11299 if test -f "$additional_libdir/lib$name.$libext"; then
11300 found_dir="$additional_libdir"
11301 found_a="$additional_libdir/lib$name.$libext"
11302 if test -f "$additional_libdir/lib$name.la"; then
11303 found_la="$additional_libdir/lib$name.la"
11308 if test "X$found_dir" = "X"; then
11309 for x in $LDFLAGS $LTLIBICONV; do
11311 acl_save_prefix="$prefix"
11312 prefix="$acl_final_prefix"
11313 acl_save_exec_prefix="$exec_prefix"
11314 exec_prefix="$acl_final_exec_prefix"
11315 eval x=\"$x\"
11316 exec_prefix="$acl_save_exec_prefix"
11317 prefix="$acl_save_prefix"
11319 case "$x" in
11320 -L*)
11321 dir=`echo "X$x" | sed -e 's/^X-L//'`
11322 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11323 found_dir="$dir"
11324 found_so="$dir/lib$name.$shlibext"
11325 if test -f "$dir/lib$name.la"; then
11326 found_la="$dir/lib$name.la"
11328 else
11329 if test -f "$dir/lib$name.$libext"; then
11330 found_dir="$dir"
11331 found_a="$dir/lib$name.$libext"
11332 if test -f "$dir/lib$name.la"; then
11333 found_la="$dir/lib$name.la"
11338 esac
11339 if test "X$found_dir" != "X"; then
11340 break
11342 done
11344 if test "X$found_dir" != "X"; then
11345 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11346 if test "X$found_so" != "X"; then
11347 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11348 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11349 else
11350 haveit=
11351 for x in $ltrpathdirs; do
11352 if test "X$x" = "X$found_dir"; then
11353 haveit=yes
11354 break
11356 done
11357 if test -z "$haveit"; then
11358 ltrpathdirs="$ltrpathdirs $found_dir"
11360 if test "$hardcode_direct" = yes; then
11361 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11362 else
11363 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11364 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11365 haveit=
11366 for x in $rpathdirs; do
11367 if test "X$x" = "X$found_dir"; then
11368 haveit=yes
11369 break
11371 done
11372 if test -z "$haveit"; then
11373 rpathdirs="$rpathdirs $found_dir"
11375 else
11376 haveit=
11377 for x in $LDFLAGS $LIBICONV; do
11379 acl_save_prefix="$prefix"
11380 prefix="$acl_final_prefix"
11381 acl_save_exec_prefix="$exec_prefix"
11382 exec_prefix="$acl_final_exec_prefix"
11383 eval x=\"$x\"
11384 exec_prefix="$acl_save_exec_prefix"
11385 prefix="$acl_save_prefix"
11387 if test "X$x" = "X-L$found_dir"; then
11388 haveit=yes
11389 break
11391 done
11392 if test -z "$haveit"; then
11393 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11395 if test "$hardcode_minus_L" != no; then
11396 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11397 else
11398 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11403 else
11404 if test "X$found_a" != "X"; then
11405 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11406 else
11407 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11410 additional_includedir=
11411 case "$found_dir" in
11412 */lib | */lib/)
11413 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11414 additional_includedir="$basedir/include"
11416 esac
11417 if test "X$additional_includedir" != "X"; then
11418 if test "X$additional_includedir" != "X/usr/include"; then
11419 haveit=
11420 if test "X$additional_includedir" = "X/usr/local/include"; then
11421 if test -n "$GCC"; then
11422 case $host_os in
11423 linux*) haveit=yes;;
11424 esac
11427 if test -z "$haveit"; then
11428 for x in $CPPFLAGS $INCICONV; do
11430 acl_save_prefix="$prefix"
11431 prefix="$acl_final_prefix"
11432 acl_save_exec_prefix="$exec_prefix"
11433 exec_prefix="$acl_final_exec_prefix"
11434 eval x=\"$x\"
11435 exec_prefix="$acl_save_exec_prefix"
11436 prefix="$acl_save_prefix"
11438 if test "X$x" = "X-I$additional_includedir"; then
11439 haveit=yes
11440 break
11442 done
11443 if test -z "$haveit"; then
11444 if test -d "$additional_includedir"; then
11445 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11451 if test -n "$found_la"; then
11452 save_libdir="$libdir"
11453 case "$found_la" in
11454 */* | *\\*) . "$found_la" ;;
11455 *) . "./$found_la" ;;
11456 esac
11457 libdir="$save_libdir"
11458 for dep in $dependency_libs; do
11459 case "$dep" in
11460 -L*)
11461 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11462 if test "X$additional_libdir" != "X/usr/lib"; then
11463 haveit=
11464 if test "X$additional_libdir" = "X/usr/local/lib"; then
11465 if test -n "$GCC"; then
11466 case $host_os in
11467 linux*) haveit=yes;;
11468 esac
11471 if test -z "$haveit"; then
11472 haveit=
11473 for x in $LDFLAGS $LIBICONV; do
11475 acl_save_prefix="$prefix"
11476 prefix="$acl_final_prefix"
11477 acl_save_exec_prefix="$exec_prefix"
11478 exec_prefix="$acl_final_exec_prefix"
11479 eval x=\"$x\"
11480 exec_prefix="$acl_save_exec_prefix"
11481 prefix="$acl_save_prefix"
11483 if test "X$x" = "X-L$additional_libdir"; then
11484 haveit=yes
11485 break
11487 done
11488 if test -z "$haveit"; then
11489 if test -d "$additional_libdir"; then
11490 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11493 haveit=
11494 for x in $LDFLAGS $LTLIBICONV; do
11496 acl_save_prefix="$prefix"
11497 prefix="$acl_final_prefix"
11498 acl_save_exec_prefix="$exec_prefix"
11499 exec_prefix="$acl_final_exec_prefix"
11500 eval x=\"$x\"
11501 exec_prefix="$acl_save_exec_prefix"
11502 prefix="$acl_save_prefix"
11504 if test "X$x" = "X-L$additional_libdir"; then
11505 haveit=yes
11506 break
11508 done
11509 if test -z "$haveit"; then
11510 if test -d "$additional_libdir"; then
11511 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11517 -R*)
11518 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11519 if test "$enable_rpath" != no; then
11520 haveit=
11521 for x in $rpathdirs; do
11522 if test "X$x" = "X$dir"; then
11523 haveit=yes
11524 break
11526 done
11527 if test -z "$haveit"; then
11528 rpathdirs="$rpathdirs $dir"
11530 haveit=
11531 for x in $ltrpathdirs; do
11532 if test "X$x" = "X$dir"; then
11533 haveit=yes
11534 break
11536 done
11537 if test -z "$haveit"; then
11538 ltrpathdirs="$ltrpathdirs $dir"
11542 -l*)
11543 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11545 *.la)
11546 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11549 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11550 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11552 esac
11553 done
11555 else
11556 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11557 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11561 done
11562 done
11563 if test "X$rpathdirs" != "X"; then
11564 if test -n "$hardcode_libdir_separator"; then
11565 alldirs=
11566 for found_dir in $rpathdirs; do
11567 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11568 done
11569 acl_save_libdir="$libdir"
11570 libdir="$alldirs"
11571 eval flag=\"$hardcode_libdir_flag_spec\"
11572 libdir="$acl_save_libdir"
11573 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11574 else
11575 for found_dir in $rpathdirs; do
11576 acl_save_libdir="$libdir"
11577 libdir="$found_dir"
11578 eval flag=\"$hardcode_libdir_flag_spec\"
11579 libdir="$acl_save_libdir"
11580 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11581 done
11584 if test "X$ltrpathdirs" != "X"; then
11585 for found_dir in $ltrpathdirs; do
11586 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11587 done
11596 am_save_CPPFLAGS="$CPPFLAGS"
11598 for element in $INCICONV; do
11599 haveit=
11600 for x in $CPPFLAGS; do
11602 acl_save_prefix="$prefix"
11603 prefix="$acl_final_prefix"
11604 acl_save_exec_prefix="$exec_prefix"
11605 exec_prefix="$acl_final_exec_prefix"
11606 eval x=\"$x\"
11607 exec_prefix="$acl_save_exec_prefix"
11608 prefix="$acl_save_prefix"
11610 if test "X$x" = "X$element"; then
11611 haveit=yes
11612 break
11614 done
11615 if test -z "$haveit"; then
11616 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11618 done
11621 echo "$as_me:$LINENO: checking for iconv" >&5
11622 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11623 if test "${am_cv_func_iconv+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 else
11627 am_cv_func_iconv="no, consider installing GNU libiconv"
11628 am_cv_lib_iconv=no
11629 cat >conftest.$ac_ext <<_ACEOF
11630 /* confdefs.h. */
11631 _ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11635 #include <stdlib.h>
11636 #include <iconv.h>
11638 main ()
11640 iconv_t cd = iconv_open("","");
11641 iconv(cd,NULL,NULL,NULL,NULL);
11642 iconv_close(cd);
11644 return 0;
11646 _ACEOF
11647 rm -f conftest.$ac_objext conftest$ac_exeext
11648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11649 (eval $ac_link) 2>conftest.er1
11650 ac_status=$?
11651 grep -v '^ *+' conftest.er1 >conftest.err
11652 rm -f conftest.er1
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
11656 { ac_try='test -z "$ac_c_werror_flag"
11657 || test ! -s conftest.err'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; } &&
11663 { ac_try='test -s conftest$ac_exeext'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 am_cv_func_iconv=yes
11670 else
11671 echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11675 rm -f conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11677 if test "$am_cv_func_iconv" != yes; then
11678 am_save_LIBS="$LIBS"
11679 LIBS="$LIBS $LIBICONV"
11680 cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h. */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 #include <stdlib.h>
11687 #include <iconv.h>
11689 main ()
11691 iconv_t cd = iconv_open("","");
11692 iconv(cd,NULL,NULL,NULL,NULL);
11693 iconv_close(cd);
11695 return 0;
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700 (eval $ac_link) 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_c_werror_flag"
11708 || test ! -s conftest.err'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest$ac_exeext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 am_cv_lib_iconv=yes
11721 am_cv_func_iconv=yes
11722 else
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11727 rm -f conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
11729 LIBS="$am_save_LIBS"
11733 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11734 echo "${ECHO_T}$am_cv_func_iconv" >&6
11735 if test "$am_cv_func_iconv" = yes; then
11737 cat >>confdefs.h <<\_ACEOF
11738 #define HAVE_ICONV 1
11739 _ACEOF
11742 if test "$am_cv_lib_iconv" = yes; then
11743 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11744 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11745 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11746 echo "${ECHO_T}$LIBICONV" >&6
11747 else
11748 CPPFLAGS="$am_save_CPPFLAGS"
11749 LIBICONV=
11750 LTLIBICONV=
11755 if test "$am_cv_func_iconv" = yes; then
11756 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11757 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11758 if test "${am_cv_proto_iconv+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 else
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11769 #include <stdlib.h>
11770 #include <iconv.h>
11771 extern
11772 #ifdef __cplusplus
11774 #endif
11775 #if defined(__STDC__) || defined(__cplusplus)
11776 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11777 #else
11778 size_t iconv();
11779 #endif
11782 main ()
11786 return 0;
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag"
11799 || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 am_cv_proto_iconv_arg1=""
11812 else
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11816 am_cv_proto_iconv_arg1="const"
11818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11819 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);"
11822 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11823 echo "$as_me:$LINENO: result: ${ac_t:-
11824 }$am_cv_proto_iconv" >&5
11825 echo "${ECHO_T}${ac_t:-
11826 }$am_cv_proto_iconv" >&6
11828 cat >>confdefs.h <<_ACEOF
11829 #define ICONV_CONST $am_cv_proto_iconv_arg1
11830 _ACEOF
11834 # Until we have in-tree GNU iconv:
11835 LIBICONV_DEP=
11839 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11840 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11841 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844 cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h. */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850 #include <locale.h>
11852 main ()
11854 return LC_MESSAGES
11856 return 0;
11858 _ACEOF
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11861 (eval $ac_link) 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try='test -z "$ac_c_werror_flag"
11869 || test ! -s conftest.err'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; } &&
11875 { ac_try='test -s conftest$ac_exeext'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 am_cv_val_LC_MESSAGES=yes
11882 else
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 am_cv_val_LC_MESSAGES=no
11888 rm -f conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11891 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11892 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11893 if test $am_cv_val_LC_MESSAGES = yes; then
11895 cat >>confdefs.h <<\_ACEOF
11896 #define HAVE_LC_MESSAGES 1
11897 _ACEOF
11903 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11904 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11905 if test "${am_cv_langinfo_codeset+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908 cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h. */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914 #include <langinfo.h>
11916 main ()
11918 char* cs = nl_langinfo(CODESET);
11920 return 0;
11922 _ACEOF
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11925 (eval $ac_link) 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag"
11933 || test ! -s conftest.err'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest$ac_exeext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 am_cv_langinfo_codeset=yes
11946 else
11947 echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11950 am_cv_langinfo_codeset=no
11952 rm -f conftest.err conftest.$ac_objext \
11953 conftest$ac_exeext conftest.$ac_ext
11956 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11957 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11958 if test $am_cv_langinfo_codeset = yes; then
11960 cat >>confdefs.h <<\_ACEOF
11961 #define HAVE_LANGINFO_CODESET 1
11962 _ACEOF
11967 # We will need to find libiberty.h and ansidecl.h
11968 saved_CFLAGS="$CFLAGS"
11969 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12009 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12010 strsignal strstr strverscmp \
12011 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12012 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
12014 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12015 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12016 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12017 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020 cat >conftest.$ac_ext <<_ACEOF
12021 /* confdefs.h. */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12026 #undef $ac_tr_decl
12027 #define $ac_tr_decl 1
12029 #include "ansidecl.h"
12030 #include "system.h"
12033 main ()
12035 #ifndef $ac_func
12036 char *(*pfn) = (char *(*)) $ac_func ;
12037 #endif
12039 return 0;
12041 _ACEOF
12042 rm -f conftest.$ac_objext
12043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12044 (eval $ac_compile) 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -z "$ac_c_werror_flag"
12052 || test ! -s conftest.err'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; } &&
12058 { ac_try='test -s conftest.$ac_objext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 eval "gcc_cv_have_decl_$ac_func=yes"
12065 else
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 eval "gcc_cv_have_decl_$ac_func=no"
12071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12074 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12075 echo "$as_me:$LINENO: result: yes" >&5
12076 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12077 #define $ac_tr_decl 1
12078 _ACEOF
12080 else
12081 echo "$as_me:$LINENO: result: no" >&5
12082 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12083 #define $ac_tr_decl 0
12084 _ACEOF
12088 done
12094 for ac_func in getrlimit setrlimit getrusage
12096 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12097 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12098 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12099 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102 cat >conftest.$ac_ext <<_ACEOF
12103 /* confdefs.h. */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 #undef $ac_tr_decl
12109 #define $ac_tr_decl 1
12111 #include "ansidecl.h"
12112 #include "system.h"
12113 #ifdef HAVE_SYS_RESOURCE_H
12114 #include <sys/resource.h>
12115 #endif
12119 main ()
12121 #ifndef $ac_func
12122 char *(*pfn) = (char *(*)) $ac_func ;
12123 #endif
12125 return 0;
12127 _ACEOF
12128 rm -f conftest.$ac_objext
12129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12130 (eval $ac_compile) 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try='test -z "$ac_c_werror_flag"
12138 || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 eval "gcc_cv_have_decl_$ac_func=yes"
12151 else
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 eval "gcc_cv_have_decl_$ac_func=no"
12157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12160 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12161 echo "$as_me:$LINENO: result: yes" >&5
12162 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12163 #define $ac_tr_decl 1
12164 _ACEOF
12166 else
12167 echo "$as_me:$LINENO: result: no" >&5
12168 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12169 #define $ac_tr_decl 0
12170 _ACEOF
12174 done
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12184 #include "ansidecl.h"
12185 #include "system.h"
12186 #ifdef HAVE_SYS_RESOURCE_H
12187 #include <sys/resource.h>
12188 #endif
12191 main ()
12193 rlim_t l = 0;
12195 return 0;
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200 (eval $ac_compile) 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -z "$ac_c_werror_flag"
12208 || test ! -s conftest.err'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; } &&
12214 { ac_try='test -s conftest.$ac_objext'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12221 else
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12226 cat >>confdefs.h <<\_ACEOF
12227 #define rlim_t long
12228 _ACEOF
12231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12233 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12234 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12235 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12236 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12238 for ac_func in ldgetname
12240 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12241 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12242 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12243 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246 cat >conftest.$ac_ext <<_ACEOF
12247 /* confdefs.h. */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12252 #undef $ac_tr_decl
12253 #define $ac_tr_decl 1
12255 #include "ansidecl.h"
12256 #include "system.h"
12257 #ifdef HAVE_LDFCN_H
12258 #undef FREAD
12259 #undef FWRITE
12260 #include <ldfcn.h>
12261 #endif
12265 main ()
12267 #ifndef $ac_func
12268 char *(*pfn) = (char *(*)) $ac_func ;
12269 #endif
12271 return 0;
12273 _ACEOF
12274 rm -f conftest.$ac_objext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276 (eval $ac_compile) 2>conftest.er1
12277 ac_status=$?
12278 grep -v '^ *+' conftest.er1 >conftest.err
12279 rm -f conftest.er1
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -z "$ac_c_werror_flag"
12284 || test ! -s conftest.err'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest.$ac_objext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 eval "gcc_cv_have_decl_$ac_func=yes"
12297 else
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12301 eval "gcc_cv_have_decl_$ac_func=no"
12303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12306 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12307 echo "$as_me:$LINENO: result: yes" >&5
12308 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12309 #define $ac_tr_decl 1
12310 _ACEOF
12312 else
12313 echo "$as_me:$LINENO: result: no" >&5
12314 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12315 #define $ac_tr_decl 0
12316 _ACEOF
12320 done
12324 for ac_func in times
12326 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12327 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12328 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12329 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 else
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h. */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 #undef $ac_tr_decl
12339 #define $ac_tr_decl 1
12341 #include "ansidecl.h"
12342 #include "system.h"
12343 #ifdef HAVE_SYS_TIMES_H
12344 #include <sys/times.h>
12345 #endif
12349 main ()
12351 #ifndef $ac_func
12352 char *(*pfn) = (char *(*)) $ac_func ;
12353 #endif
12355 return 0;
12357 _ACEOF
12358 rm -f conftest.$ac_objext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360 (eval $ac_compile) 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_c_werror_flag"
12368 || test ! -s conftest.err'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest.$ac_objext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 eval "gcc_cv_have_decl_$ac_func=yes"
12381 else
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12385 eval "gcc_cv_have_decl_$ac_func=no"
12387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12390 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12391 echo "$as_me:$LINENO: result: yes" >&5
12392 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12393 #define $ac_tr_decl 1
12394 _ACEOF
12396 else
12397 echo "$as_me:$LINENO: result: no" >&5
12398 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12399 #define $ac_tr_decl 0
12400 _ACEOF
12404 done
12408 for ac_func in sigaltstack
12410 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12411 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12412 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12413 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416 cat >conftest.$ac_ext <<_ACEOF
12417 /* confdefs.h. */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422 #undef $ac_tr_decl
12423 #define $ac_tr_decl 1
12425 #include "ansidecl.h"
12426 #include "system.h"
12427 #include <signal.h>
12431 main ()
12433 #ifndef $ac_func
12434 char *(*pfn) = (char *(*)) $ac_func ;
12435 #endif
12437 return 0;
12439 _ACEOF
12440 rm -f conftest.$ac_objext
12441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12442 (eval $ac_compile) 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag"
12450 || test ! -s conftest.err'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; } &&
12456 { ac_try='test -s conftest.$ac_objext'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; }; then
12462 eval "gcc_cv_have_decl_$ac_func=yes"
12463 else
12464 echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 eval "gcc_cv_have_decl_$ac_func=no"
12469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12472 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12473 echo "$as_me:$LINENO: result: yes" >&5
12474 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12475 #define $ac_tr_decl 1
12476 _ACEOF
12478 else
12479 echo "$as_me:$LINENO: result: no" >&5
12480 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12481 #define $ac_tr_decl 0
12482 _ACEOF
12486 done
12489 # More time-related stuff.
12490 echo "$as_me:$LINENO: checking for struct tms" >&5
12491 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12492 if test "${ac_cv_struct_tms+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h. */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12503 #include "ansidecl.h"
12504 #include "system.h"
12505 #ifdef HAVE_SYS_TIMES_H
12506 #include <sys/times.h>
12507 #endif
12510 main ()
12512 struct tms tms;
12514 return 0;
12516 _ACEOF
12517 rm -f conftest.$ac_objext
12518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12519 (eval $ac_compile) 2>conftest.er1
12520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -z "$ac_c_werror_flag"
12527 || test ! -s conftest.err'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; } &&
12533 { ac_try='test -s conftest.$ac_objext'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12539 ac_cv_struct_tms=yes
12540 else
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12544 ac_cv_struct_tms=no
12546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12548 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12549 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12550 if test $ac_cv_struct_tms = yes; then
12552 cat >>confdefs.h <<\_ACEOF
12553 #define HAVE_STRUCT_TMS 1
12554 _ACEOF
12558 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12559 # revisit after autoconf 2.50.
12560 echo "$as_me:$LINENO: checking for clock_t" >&5
12561 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12562 if test "${gcc_cv_type_clock_t+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 else
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h. */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12573 #include "ansidecl.h"
12574 #include "system.h"
12577 main ()
12579 clock_t x;
12581 return 0;
12583 _ACEOF
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586 (eval $ac_compile) 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag"
12594 || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest.$ac_objext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 gcc_cv_type_clock_t=yes
12607 else
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 gcc_cv_type_clock_t=no
12613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12615 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12616 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12617 if test $gcc_cv_type_clock_t = yes; then
12619 cat >>confdefs.h <<\_ACEOF
12620 #define HAVE_CLOCK_T 1
12621 _ACEOF
12625 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12626 CFLAGS="$saved_CFLAGS"
12628 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12629 if test "${enable_initfini_array+set}" = set; then
12630 enableval="$enable_initfini_array"
12632 else
12634 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12635 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12636 if test "${gcc_cv_initfini_array+set}" = set; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 else
12639 if test "$cross_compiling" = yes; then
12640 gcc_cv_initfini_array=no
12641 else
12642 cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h. */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12649 static int x = -1;
12650 int main (void) { return x; }
12651 int foo (void) { x = 0; }
12652 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12653 _ACEOF
12654 rm -f conftest$ac_exeext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12656 (eval $ac_link) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665 gcc_cv_initfini_array=yes
12666 else
12667 echo "$as_me: program exited with status $ac_status" >&5
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12671 ( exit $ac_status )
12672 gcc_cv_initfini_array=no
12674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12677 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12678 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12679 enable_initfini_array=$gcc_cv_initfini_array
12682 if test $enable_initfini_array = yes; then
12684 cat >>confdefs.h <<\_ACEOF
12685 #define HAVE_INITFINI_ARRAY 1
12686 _ACEOF
12690 # mkdir takes a single argument on some systems.
12691 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12692 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12693 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 else
12696 cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h. */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12703 #include <sys/types.h>
12704 #ifdef HAVE_SYS_STAT_H
12705 # include <sys/stat.h>
12706 #endif
12707 #ifdef HAVE_UNISTD_H
12708 # include <unistd.h>
12709 #endif
12710 #ifdef HAVE_DIRECT_H
12711 # include <direct.h>
12712 #endif
12714 main ()
12716 mkdir ("foo", 0);
12718 return 0;
12720 _ACEOF
12721 rm -f conftest.$ac_objext
12722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12723 (eval $ac_compile) 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -z "$ac_c_werror_flag"
12731 || test ! -s conftest.err'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; } &&
12737 { ac_try='test -s conftest.$ac_objext'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; }; then
12743 gcc_cv_mkdir_takes_one_arg=no
12744 else
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12748 gcc_cv_mkdir_takes_one_arg=yes
12750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12752 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12753 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12754 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12756 cat >>confdefs.h <<\_ACEOF
12757 #define MKDIR_TAKES_ONE_ARG 1
12758 _ACEOF
12763 # File extensions
12764 manext='.1'
12765 objext='.o'
12769 # With Setjmp/Longjmp based exception handling.
12770 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12771 if test "${enable_sjlj_exceptions+set}" = set; then
12772 enableval="$enable_sjlj_exceptions"
12773 case $target in
12774 *-*-hpux10*)
12775 if test $enableval != yes; then
12776 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12777 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12778 enableval=yes
12781 esac
12782 force_sjlj_exceptions=yes
12783 else
12784 case $target in
12785 *-*-hpux10*)
12786 force_sjlj_exceptions=yes
12787 enableval=yes
12790 force_sjlj_exceptions=no
12792 esac
12794 if test $force_sjlj_exceptions = yes; then
12795 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12797 cat >>confdefs.h <<_ACEOF
12798 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12799 _ACEOF
12803 # For platforms with the unwind ABI which includes an unwind library,
12804 # libunwind, we can choose to use the system libunwind.
12806 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12807 if test "${with_system_libunwind+set}" = set; then
12808 withval="$with_system_libunwind"
12812 # config.gcc also contains tests of with_system_libunwind.
12813 if test x$with_system_libunwind = xyes; then
12815 cat >>confdefs.h <<\_ACEOF
12816 #define HAVE_GETIPINFO 1
12817 _ACEOF
12821 # --------------------------------------------------------
12822 # Build, host, and target specific configuration fragments
12823 # --------------------------------------------------------
12825 # Collect build-machine-specific information.
12826 . ${srcdir}/config.build
12828 # Collect host-machine-specific information.
12829 . ${srcdir}/config.host
12831 target_gtfiles=
12833 # Collect target-machine-specific information.
12834 . ${srcdir}/config.gcc
12836 extra_objs="${host_extra_objs} ${extra_objs}"
12837 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12839 # Default the target-machine variables that were not explicitly set.
12840 if test x"$tm_file" = x
12841 then tm_file=$cpu_type/$cpu_type.h; fi
12843 if test x"$extra_headers" = x
12844 then extra_headers=; fi
12846 if test x$md_file = x
12847 then md_file=$cpu_type/$cpu_type.md; fi
12849 if test x$out_file = x
12850 then out_file=$cpu_type/$cpu_type.c; fi
12852 if test x"$tmake_file" = x
12853 then tmake_file=$cpu_type/t-$cpu_type
12856 if test x"$dwarf2" = xyes
12857 then tm_file="$tm_file tm-dwarf2.h"
12860 # Say what files are being used for the output code and MD file.
12861 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12862 echo "Using \`$srcdir/config/$md_file' as machine description file."
12864 # If any of the xm_file variables contain nonexistent files, warn
12865 # about them and drop them.
12868 for x in $build_xm_file; do
12869 if test -f $srcdir/config/$x
12870 then bx="$bx $x"
12871 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12872 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12874 done
12875 build_xm_file="$bx"
12878 for x in $host_xm_file; do
12879 if test -f $srcdir/config/$x
12880 then hx="$hx $x"
12881 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12882 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12884 done
12885 host_xm_file="$hx"
12888 for x in $xm_file; do
12889 if test -f $srcdir/config/$x
12890 then tx="$tx $x"
12891 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12892 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12894 done
12895 xm_file="$tx"
12897 count=a
12898 for f in $tm_file; do
12899 count=${count}x
12900 done
12901 if test $count = ax; then
12902 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12903 else
12904 echo "Using the following target machine macro files:"
12905 for f in $tm_file; do
12906 echo " $srcdir/config/$f"
12907 done
12910 if test x$need_64bit_hwint = xyes; then
12912 cat >>confdefs.h <<\_ACEOF
12913 #define NEED_64BIT_HOST_WIDE_INT 1
12914 _ACEOF
12918 if test x$use_long_long_for_widest_fast_int = xyes; then
12920 cat >>confdefs.h <<\_ACEOF
12921 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12922 _ACEOF
12926 count=a
12927 for f in $host_xm_file; do
12928 count=${count}x
12929 done
12930 if test $count = a; then
12932 elif test $count = ax; then
12933 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12934 else
12935 echo "Using the following host machine macro files:"
12936 for f in $host_xm_file; do
12937 echo " $srcdir/config/$f"
12938 done
12940 echo "Using ${out_host_hook_obj} for host machine hooks."
12942 if test "$host_xm_file" != "$build_xm_file"; then
12943 count=a
12944 for f in $build_xm_file; do
12945 count=${count}x
12946 done
12947 if test $count = a; then
12949 elif test $count = ax; then
12950 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12951 else
12952 echo "Using the following build machine macro files:"
12953 for f in $build_xm_file; do
12954 echo " $srcdir/config/$f"
12955 done
12959 case ${host} in
12960 powerpc*-*-darwin*)
12961 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12962 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12963 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 else
12966 cat >conftest.$ac_ext <<_ACEOF
12968 #include <sys/cdefs.h>
12969 #include <sys/signal.h>
12970 #include <ucontext.h>
12971 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12973 _ACEOF
12974 rm -f conftest.$ac_objext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976 (eval $ac_compile) 2>conftest.er1
12977 ac_status=$?
12978 grep -v '^ *+' conftest.er1 >conftest.err
12979 rm -f conftest.er1
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -z "$ac_c_werror_flag"
12984 || test ! -s conftest.err'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } &&
12990 { ac_try='test -s conftest.$ac_objext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 gcc_cv_mcontext_underscores=no
12997 else
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 gcc_cv_mcontext_underscores=yes
13003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13005 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13006 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13007 if test $gcc_cv_mcontext_underscores = yes; then
13009 cat >>confdefs.h <<\_ACEOF
13010 #define HAS_MCONTEXT_T_UNDERSCORES
13011 _ACEOF
13015 esac
13017 # ---------
13018 # Threading
13019 # ---------
13021 # Check if a valid thread package
13022 case ${enable_threads} in
13023 "" | no)
13024 # No threads
13025 target_thread_file='single'
13027 yes)
13028 # default
13029 target_thread_file='single'
13031 aix | dce | gnat | irix | posix | posix95 | rtems | \
13032 single | solaris | vxworks | win32 | mipssde)
13033 target_thread_file=${enable_threads}
13036 echo "${enable_threads} is an unknown thread package" 1>&2
13037 exit 1
13039 esac
13041 if test x${thread_file} = x; then
13042 # No thread file set by target-specific clauses in config.gcc,
13043 # so use file chosen by default logic above
13044 thread_file=${target_thread_file}
13047 # Make gthr-default.h if we have a thread file.
13048 gthread_flags=
13049 if test $thread_file != single; then
13050 rm -f gthr-default.h
13051 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
13052 gthread_flags=-DHAVE_GTHR_DEFAULT
13056 # --------
13057 # UNSORTED
13058 # --------
13060 use_cxa_atexit=no
13061 if test x$enable___cxa_atexit = xyes || \
13062 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13063 if test x$host = x$target; then
13064 case $host in
13065 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13066 # keyed to flag_use_cxa_atexit
13067 *-*-mingw32*)
13068 use_cxa_atexit=yes
13071 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13072 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13073 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 else
13076 cat >conftest.$ac_ext <<_ACEOF
13077 /* confdefs.h. */
13078 _ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13084 #define __cxa_atexit innocuous___cxa_atexit
13086 /* System header to define __stub macros and hopefully few prototypes,
13087 which can conflict with char __cxa_atexit (); below.
13088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13089 <limits.h> exists even on freestanding compilers. */
13091 #ifdef __STDC__
13092 # include <limits.h>
13093 #else
13094 # include <assert.h>
13095 #endif
13097 #undef __cxa_atexit
13099 /* Override any gcc2 internal prototype to avoid an error. */
13100 #ifdef __cplusplus
13101 extern "C"
13103 #endif
13104 /* We use char because int might match the return type of a gcc2
13105 builtin and then its argument prototype would still apply. */
13106 char __cxa_atexit ();
13107 /* The GNU C library defines this for functions which it implements
13108 to always fail with ENOSYS. Some functions are actually named
13109 something starting with __ and the normal name is an alias. */
13110 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13111 choke me
13112 #else
13113 char (*f) () = __cxa_atexit;
13114 #endif
13115 #ifdef __cplusplus
13117 #endif
13120 main ()
13122 return f != __cxa_atexit;
13124 return 0;
13126 _ACEOF
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13129 (eval $ac_link) 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag"
13137 || test ! -s conftest.err'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; } &&
13143 { ac_try='test -s conftest$ac_exeext'
13144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13146 ac_status=$?
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 ac_cv_func___cxa_atexit=yes
13150 else
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13154 ac_cv_func___cxa_atexit=no
13156 rm -f conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13159 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13160 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13161 if test $ac_cv_func___cxa_atexit = yes; then
13162 use_cxa_atexit=yes
13163 else
13164 echo "__cxa_atexit can't be enabled on this target"
13168 esac
13169 else
13170 # We can't check for __cxa_atexit when building a cross, so assume
13171 # it is available
13172 use_cxa_atexit=yes
13174 if test x$use_cxa_atexit = xyes; then
13176 cat >>confdefs.h <<\_ACEOF
13177 #define DEFAULT_USE_CXA_ATEXIT 2
13178 _ACEOF
13183 use_getipinfo=yes
13184 if test x$with_system_libunwind = xyes; then
13185 if test x$host = x$target; then
13186 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13187 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13188 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 else
13191 ac_func_search_save_LIBS=$LIBS
13192 ac_cv_search__Unwind_GetIPInfo=no
13193 cat >conftest.$ac_ext <<_ACEOF
13194 /* confdefs.h. */
13195 _ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13200 /* Override any gcc2 internal prototype to avoid an error. */
13201 #ifdef __cplusplus
13202 extern "C"
13203 #endif
13204 /* We use char because int might match the return type of a gcc2
13205 builtin and then its argument prototype would still apply. */
13206 char _Unwind_GetIPInfo ();
13208 main ()
13210 _Unwind_GetIPInfo ();
13212 return 0;
13214 _ACEOF
13215 rm -f conftest.$ac_objext conftest$ac_exeext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13217 (eval $ac_link) 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -z "$ac_c_werror_flag"
13225 || test ! -s conftest.err'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest$ac_exeext'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
13237 ac_cv_search__Unwind_GetIPInfo="none required"
13238 else
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13243 rm -f conftest.err conftest.$ac_objext \
13244 conftest$ac_exeext conftest.$ac_ext
13245 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13246 for ac_lib in unwind; do
13247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13248 cat >conftest.$ac_ext <<_ACEOF
13249 /* confdefs.h. */
13250 _ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h. */
13255 /* Override any gcc2 internal prototype to avoid an error. */
13256 #ifdef __cplusplus
13257 extern "C"
13258 #endif
13259 /* We use char because int might match the return type of a gcc2
13260 builtin and then its argument prototype would still apply. */
13261 char _Unwind_GetIPInfo ();
13263 main ()
13265 _Unwind_GetIPInfo ();
13267 return 0;
13269 _ACEOF
13270 rm -f conftest.$ac_objext conftest$ac_exeext
13271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13272 (eval $ac_link) 2>conftest.er1
13273 ac_status=$?
13274 grep -v '^ *+' conftest.er1 >conftest.err
13275 rm -f conftest.er1
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -z "$ac_c_werror_flag"
13280 || test ! -s conftest.err'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; } &&
13286 { ac_try='test -s conftest$ac_exeext'
13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288 (eval $ac_try) 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }; then
13292 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13293 break
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13299 rm -f conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13301 done
13303 LIBS=$ac_func_search_save_LIBS
13305 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13306 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13307 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13308 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13310 else
13311 use_getipinfo=no
13317 if test x$use_getipinfo = xyes; then
13319 cat >>confdefs.h <<\_ACEOF
13320 #define HAVE_GETIPINFO 1
13321 _ACEOF
13323 else
13324 echo "The system unwind library does not support _Unwind_GetIPInfo."
13327 # Look for a file containing extra machine modes.
13328 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13329 extra_modes_file='$(srcdir)'/config/${extra_modes}
13332 cat >>confdefs.h <<_ACEOF
13333 #define EXTRA_MODES_FILE "config/$extra_modes"
13334 _ACEOF
13338 # Convert extra_options into a form suitable for Makefile use.
13339 extra_opt_files=
13340 for f in $extra_options; do
13341 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13342 done
13345 # auto-host.h is the file containing items generated by autoconf and is
13346 # the first file included by config.h.
13347 # If host=build, it is correct to have bconfig include auto-host.h
13348 # as well. If host!=build, we are in error and need to do more
13349 # work to find out the build config parameters.
13350 if test x$host = x$build
13351 then
13352 build_auto=auto-host.h
13353 else
13354 # We create a subdir, then run autoconf in the subdir.
13355 # To prevent recursion we set host and build for the new
13356 # invocation of configure to the build for this invocation
13357 # of configure.
13358 tempdir=build.$$
13359 rm -rf $tempdir
13360 mkdir $tempdir
13361 cd $tempdir
13362 case ${srcdir} in
13363 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13364 *) realsrcdir=../${srcdir};;
13365 esac
13366 saved_CFLAGS="${CFLAGS}"
13367 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13368 ${realsrcdir}/configure \
13369 --enable-languages=${enable_languages-all} \
13370 --target=$target_alias --host=$build_alias --build=$build_alias
13371 CFLAGS="${saved_CFLAGS}"
13373 # We just finished tests for the build machine, so rename
13374 # the file auto-build.h in the gcc directory.
13375 mv auto-host.h ../auto-build.h
13376 cd ..
13377 rm -rf $tempdir
13378 build_auto=auto-build.h
13382 tm_file="${tm_file} defaults.h"
13383 tm_p_file="${tm_p_file} tm-preds.h"
13384 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13385 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13386 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13387 # put this back in temporarily.
13388 xm_file="auto-host.h ansidecl.h ${xm_file}"
13390 # --------
13391 # UNSORTED
13392 # --------
13394 # Compile in configure arguments.
13395 if test -f configargs.h ; then
13396 # Being re-configured.
13397 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13398 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13399 else
13400 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13403 # Double all backslashes and backslash all quotes to turn
13404 # gcc_config_arguments into a C string.
13405 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13406 $gcc_config_arguments
13408 gcc_config_arguments_str=`cat conftest.out`
13409 rm -f conftest.out
13411 cat > configargs.h <<EOF
13412 /* Generated automatically. */
13413 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13414 static const char thread_model[] = "$thread_file";
13416 static const struct {
13417 const char *name, *value;
13418 } configure_default_options[] = $configure_default_options;
13421 # Internationalization
13422 # If we haven't got the data from the intl directory,
13423 # assume NLS is disabled.
13424 USE_NLS=no
13425 LIBINTL=
13426 LIBINTL_DEP=
13427 INCINTL=
13428 XGETTEXT=
13429 GMSGFMT=
13430 POSUB=
13432 if test -f ../intl/config.intl; then
13433 . ../intl/config.intl
13435 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13436 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13437 if test x"$USE_NLS" != xyes; then
13438 echo "$as_me:$LINENO: result: no" >&5
13439 echo "${ECHO_T}no" >&6
13440 else
13441 echo "$as_me:$LINENO: result: yes" >&5
13442 echo "${ECHO_T}yes" >&6
13444 cat >>confdefs.h <<\_ACEOF
13445 #define ENABLE_NLS 1
13446 _ACEOF
13449 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13450 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13451 # Look for .po and .gmo files in the source directory.
13452 CATALOGS=
13453 XLINGUAS=
13454 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13455 # If there aren't any .gmo files the shell will give us the
13456 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13457 # weeded out.
13458 case "$cat" in *\**)
13459 continue;;
13460 esac
13461 # The quadruple backslash is collapsed to a double backslash
13462 # by the backticks, then collapsed again by the double quotes,
13463 # leaving us with one backslash in the sed expression (right
13464 # before the dot that mustn't act as a wildcard).
13465 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13466 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13467 # The user is allowed to set LINGUAS to a list of languages to
13468 # install catalogs for. If it's empty that means "all of them."
13469 if test "x$LINGUAS" = x; then
13470 CATALOGS="$CATALOGS $cat"
13471 XLINGUAS="$XLINGUAS $lang"
13472 else
13473 case "$LINGUAS" in *$lang*)
13474 CATALOGS="$CATALOGS $cat"
13475 XLINGUAS="$XLINGUAS $lang"
13477 esac
13479 done
13480 LINGUAS="$XLINGUAS"
13481 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13482 echo "${ECHO_T}$LINGUAS" >&6
13485 DATADIRNAME=share
13487 INSTOBJEXT=.mo
13489 GENCAT=gencat
13491 CATOBJEXT=.gmo
13495 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13496 # -liconv on the link line twice.
13497 case "$LIBINTL" in *$LIBICONV*)
13498 LIBICONV= ;;
13499 esac
13501 # Check whether --enable-secureplt or --disable-secureplt was given.
13502 if test "${enable_secureplt+set}" = set; then
13503 enableval="$enable_secureplt"
13507 # Windows32 Registry support for specifying GCC installation paths.
13508 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13509 if test "${enable_win32_registry+set}" = set; then
13510 enableval="$enable_win32_registry"
13514 case $host_os in
13515 win32 | pe | cygwin* | mingw32* | uwin*)
13516 if test "x$enable_win32_registry" != xno; then
13517 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13518 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13519 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 else
13522 ac_func_search_save_LIBS=$LIBS
13523 ac_cv_search_RegOpenKeyExA=no
13524 cat >conftest.$ac_ext <<_ACEOF
13525 /* confdefs.h. */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13531 /* Override any gcc2 internal prototype to avoid an error. */
13532 #ifdef __cplusplus
13533 extern "C"
13534 #endif
13535 /* We use char because int might match the return type of a gcc2
13536 builtin and then its argument prototype would still apply. */
13537 char RegOpenKeyExA ();
13539 main ()
13541 RegOpenKeyExA ();
13543 return 0;
13545 _ACEOF
13546 rm -f conftest.$ac_objext conftest$ac_exeext
13547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13548 (eval $ac_link) 2>conftest.er1
13549 ac_status=$?
13550 grep -v '^ *+' conftest.er1 >conftest.err
13551 rm -f conftest.er1
13552 cat conftest.err >&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try='test -z "$ac_c_werror_flag"
13556 || test ! -s conftest.err'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; } &&
13562 { ac_try='test -s conftest$ac_exeext'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; }; then
13568 ac_cv_search_RegOpenKeyExA="none required"
13569 else
13570 echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13574 rm -f conftest.err conftest.$ac_objext \
13575 conftest$ac_exeext conftest.$ac_ext
13576 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13577 for ac_lib in advapi32; do
13578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13579 cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h. */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13586 /* Override any gcc2 internal prototype to avoid an error. */
13587 #ifdef __cplusplus
13588 extern "C"
13589 #endif
13590 /* We use char because int might match the return type of a gcc2
13591 builtin and then its argument prototype would still apply. */
13592 char RegOpenKeyExA ();
13594 main ()
13596 RegOpenKeyExA ();
13598 return 0;
13600 _ACEOF
13601 rm -f conftest.$ac_objext conftest$ac_exeext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13603 (eval $ac_link) 2>conftest.er1
13604 ac_status=$?
13605 grep -v '^ *+' conftest.er1 >conftest.err
13606 rm -f conftest.er1
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try='test -z "$ac_c_werror_flag"
13611 || test ! -s conftest.err'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; } &&
13617 { ac_try='test -s conftest$ac_exeext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13624 break
13625 else
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13630 rm -f conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext conftest.$ac_ext
13632 done
13634 LIBS=$ac_func_search_save_LIBS
13636 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13637 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13638 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13639 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13641 else
13642 enable_win32_registry=no
13647 if test "x$enable_win32_registry" != xno; then
13649 cat >>confdefs.h <<\_ACEOF
13650 #define ENABLE_WIN32_REGISTRY 1
13651 _ACEOF
13654 if test "x$enable_win32_registry" != xyes \
13655 && test "x$enable_win32_registry" != x; then
13657 cat >>confdefs.h <<_ACEOF
13658 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13659 _ACEOF
13664 esac
13666 # Get an absolute path to the GCC top-level source directory
13667 holddir=`${PWDCMD-pwd}`
13668 cd $srcdir
13669 topdir=`${PWDCMD-pwd}`
13670 cd $holddir
13672 # Conditionalize the makefile for this host machine.
13673 xmake_file=
13674 for f in ${host_xmake_file}
13676 if test -f ${srcdir}/config/$f
13677 then
13678 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13680 done
13682 # Conditionalize the makefile for this target machine.
13683 tmake_file_=
13684 for f in ${tmake_file}
13686 if test -f ${srcdir}/config/$f
13687 then
13688 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13690 done
13691 tmake_file="${tmake_file_}"
13693 # This is a terrible hack which will go away some day.
13694 host_cc_for_libada=${CC}
13697 out_object_file=`basename $out_file .c`.o
13699 tm_file_list="options.h"
13700 tm_include_list="options.h"
13701 for f in $tm_file; do
13702 case $f in
13703 ./* )
13704 f=`echo $f | sed 's/^..//'`
13705 tm_file_list="${tm_file_list} $f"
13706 tm_include_list="${tm_include_list} $f"
13708 defaults.h )
13709 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13710 tm_include_list="${tm_include_list} $f"
13713 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13714 tm_include_list="${tm_include_list} config/$f"
13716 esac
13717 done
13719 tm_p_file_list=
13720 tm_p_include_list=
13721 for f in $tm_p_file; do
13722 case $f in
13723 tm-preds.h )
13724 tm_p_file_list="${tm_p_file_list} $f"
13725 tm_p_include_list="${tm_p_include_list} $f"
13728 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13729 tm_p_include_list="${tm_p_include_list} config/$f"
13730 esac
13731 done
13733 xm_file_list=
13734 xm_include_list=
13735 for f in $xm_file; do
13736 case $f in
13737 ansidecl.h )
13738 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13739 xm_include_list="${xm_include_list} $f"
13741 auto-host.h )
13742 xm_file_list="${xm_file_list} $f"
13743 xm_include_list="${xm_include_list} $f"
13746 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13747 xm_include_list="${xm_include_list} config/$f"
13749 esac
13750 done
13752 host_xm_file_list=
13753 host_xm_include_list=
13754 for f in $host_xm_file; do
13755 case $f in
13756 ansidecl.h )
13757 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13758 host_xm_include_list="${host_xm_include_list} $f"
13760 auto-host.h )
13761 host_xm_file_list="${host_xm_file_list} $f"
13762 host_xm_include_list="${host_xm_include_list} $f"
13765 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13766 host_xm_include_list="${host_xm_include_list} config/$f"
13768 esac
13769 done
13771 build_xm_file_list=
13772 for f in $build_xm_file; do
13773 case $f in
13774 ansidecl.h )
13775 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13776 build_xm_include_list="${build_xm_include_list} $f"
13778 auto-build.h | auto-host.h )
13779 build_xm_file_list="${build_xm_file_list} $f"
13780 build_xm_include_list="${build_xm_include_list} $f"
13783 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13784 build_xm_include_list="${build_xm_include_list} config/$f"
13786 esac
13787 done
13789 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13790 # cross-compiler which does not use the native headers and libraries.
13791 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13792 CROSS=
13793 ALL=all.internal
13794 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13796 if test "x$with_build_sysroot" != x; then
13797 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13798 else
13799 # This value is used, even on a native system, because
13800 # CROSS_SYSTEM_HEADER_DIR is just
13801 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13802 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13805 if test x$host != x$target
13806 then
13807 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13808 ALL=all.cross
13809 SYSTEM_HEADER_DIR=$build_system_header_dir
13810 case "$host","$target" in
13811 # Darwin crosses can use the host system's libraries and headers,
13812 # because of the fat library support. Of course, it must be the
13813 # same version of Darwin on both sides. Allow the user to
13814 # just say --target=foo-darwin without a version number to mean
13815 # "the version on this system".
13816 *-*-darwin*,*-*-darwin*)
13817 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13818 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13819 if test $hostos = $targetos -o $targetos = darwin ; then
13820 CROSS=
13821 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13822 with_headers=yes
13826 i?86-*-*,x86_64-*-* \
13827 | powerpc*-*-*,powerpc64*-*-*)
13828 CROSS="$CROSS -DNATIVE_CROSS" ;;
13829 esac
13830 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13831 SYSTEM_HEADER_DIR=$build_system_header_dir
13834 # If this is a cross-compiler that does not
13835 # have its own set of headers then define
13836 # inhibit_libc
13838 # If this is using newlib, without having the headers available now,
13839 # then define inhibit_libc in LIBGCC2_CFLAGS.
13840 # This prevents libgcc2 from containing any code which requires libc
13841 # support.
13842 : ${inhibit_libc=false}
13843 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13844 test x$with_newlib = xyes ; } &&
13845 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13846 inhibit_libc=true
13850 # When building gcc with a cross-compiler, we need to adjust things so
13851 # that the generator programs are still built with the native compiler.
13852 # Also, we cannot run fixincludes or fix-header.
13854 # These are the normal (build=host) settings:
13855 CC_FOR_BUILD='$(CC)'
13856 BUILD_CFLAGS='$(ALL_CFLAGS)'
13857 STMP_FIXINC=stmp-fixinc
13859 # Possibly disable fixproto, on a per-target basis.
13860 case ${use_fixproto} in
13862 STMP_FIXPROTO=
13864 yes)
13865 STMP_FIXPROTO=stmp-fixproto
13867 esac
13870 # And these apply if build != host, or we are generating coverage data
13871 if test x$build != x$host || test "x$coverage_flags" != x
13872 then
13873 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13875 if test "x$TARGET_SYSTEM_ROOT" = x; then
13876 if test "x$STMP_FIXPROTO" != x; then
13877 STMP_FIXPROTO=stmp-install-fixproto
13882 # Expand extra_headers to include complete path.
13883 # This substitutes for lots of t-* files.
13884 extra_headers_list=
13885 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13886 for file in ${extra_headers} ; do
13887 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13888 done
13890 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13891 if test x"$use_gcc_tgmath" = xyes
13892 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13895 # Define collect2 in Makefile.
13896 case $host_can_use_collect2 in
13897 no) collect2= ;;
13898 *) collect2='collect2$(exeext)' ;;
13899 esac
13902 # Add a definition of USE_COLLECT2 if system wants one.
13903 case $use_collect2 in
13904 no) use_collect2= ;;
13905 "") ;;
13907 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13908 xm_defines="${xm_defines} USE_COLLECT2"
13909 case $host_can_use_collect2 in
13911 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13912 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13913 { (exit 1); exit 1; }; }
13915 esac
13917 esac
13919 # ---------------------------
13920 # Assembler & linker features
13921 # ---------------------------
13923 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13924 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13925 # However when ld-new is first executed from the build tree, libtool will
13926 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13927 # to the build tree. While doing this we need to use the previous-stage
13928 # linker, or we have an infinite loop. The presence of a shell script as
13929 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13930 # the gcc/collect-ld script. So we need to know how libtool works, or
13931 # exec-tool will fail.
13936 macro_version='2.1a'
13937 macro_revision='1.2435'
13950 ltmain="$ac_aux_dir/ltmain.sh"
13952 # Set options
13954 enable_dlopen=no
13957 enable_win32_dll=no
13960 # Check whether --enable-shared or --disable-shared was given.
13961 if test "${enable_shared+set}" = set; then
13962 enableval="$enable_shared"
13963 p=${PACKAGE-default}
13964 case $enableval in
13965 yes) enable_shared=yes ;;
13966 no) enable_shared=no ;;
13968 enable_shared=no
13969 # Look at the argument we got. We use all the common list separators.
13970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13971 for pkg in $enableval; do
13972 IFS="$lt_save_ifs"
13973 if test "X$pkg" = "X$p"; then
13974 enable_shared=yes
13976 done
13977 IFS="$lt_save_ifs"
13979 esac
13980 else
13981 enable_shared=yes
13991 # Check whether --enable-static or --disable-static was given.
13992 if test "${enable_static+set}" = set; then
13993 enableval="$enable_static"
13994 p=${PACKAGE-default}
13995 case $enableval in
13996 yes) enable_static=yes ;;
13997 no) enable_static=no ;;
13999 enable_static=no
14000 # Look at the argument we got. We use all the common list separators.
14001 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14002 for pkg in $enableval; do
14003 IFS="$lt_save_ifs"
14004 if test "X$pkg" = "X$p"; then
14005 enable_static=yes
14007 done
14008 IFS="$lt_save_ifs"
14010 esac
14011 else
14012 enable_static=yes
14023 # Check whether --with-pic or --without-pic was given.
14024 if test "${with_pic+set}" = set; then
14025 withval="$with_pic"
14026 pic_mode="$withval"
14027 else
14028 pic_mode=default
14031 test -z "$pic_mode" && pic_mode=default
14039 # Check whether --enable-fast-install or --disable-fast-install was given.
14040 if test "${enable_fast_install+set}" = set; then
14041 enableval="$enable_fast_install"
14042 p=${PACKAGE-default}
14043 case $enableval in
14044 yes) enable_fast_install=yes ;;
14045 no) enable_fast_install=no ;;
14047 enable_fast_install=no
14048 # Look at the argument we got. We use all the common list separators.
14049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14050 for pkg in $enableval; do
14051 IFS="$lt_save_ifs"
14052 if test "X$pkg" = "X$p"; then
14053 enable_fast_install=yes
14055 done
14056 IFS="$lt_save_ifs"
14058 esac
14059 else
14060 enable_fast_install=yes
14070 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14071 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14072 if test "${lt_cv_path_SED+set}" = set; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 else
14075 # Loop through the user's path and test for sed and gsed.
14076 # Then use that list of sed's as ones to test for truncation.
14077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078 for as_dir in $PATH
14080 IFS=$as_save_IFS
14081 test -z "$as_dir" && as_dir=.
14082 for lt_ac_prog in sed gsed; do
14083 for ac_exec_ext in '' $ac_executable_extensions; do
14084 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14085 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14087 done
14088 done
14089 done
14090 IFS=$as_save_IFS
14091 lt_ac_max=0
14092 lt_ac_count=0
14093 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14094 # along with /bin/sed that truncates output.
14095 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14096 test ! -f $lt_ac_sed && continue
14097 cat /dev/null > conftest.in
14098 lt_ac_count=0
14099 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14100 # Check for GNU sed and select it if it is found.
14101 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14102 lt_cv_path_SED=$lt_ac_sed
14103 break
14105 while true; do
14106 cat conftest.in conftest.in >conftest.tmp
14107 mv conftest.tmp conftest.in
14108 cp conftest.in conftest.nl
14109 echo >>conftest.nl
14110 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14111 cmp -s conftest.out conftest.nl || break
14112 # 10000 chars as input seems more than enough
14113 test $lt_ac_count -gt 10 && break
14114 lt_ac_count=`expr $lt_ac_count + 1`
14115 if test $lt_ac_count -gt $lt_ac_max; then
14116 lt_ac_max=$lt_ac_count
14117 lt_cv_path_SED=$lt_ac_sed
14119 done
14120 done
14124 SED=$lt_cv_path_SED
14126 echo "$as_me:$LINENO: result: $SED" >&5
14127 echo "${ECHO_T}$SED" >&6
14129 test -z "$SED" && SED=sed
14130 Xsed="$SED -e 1s/^X//"
14142 echo "$as_me:$LINENO: checking for fgrep" >&5
14143 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14144 if test "${ac_cv_prog_fgrep+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14148 then ac_cv_prog_fgrep='grep -F'
14149 else ac_cv_prog_fgrep='fgrep'
14152 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14153 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14154 FGREP=$ac_cv_prog_fgrep
14157 test -z "$GREP" && GREP=grep
14177 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14178 if test "${with_gnu_ld+set}" = set; then
14179 withval="$with_gnu_ld"
14180 test "$withval" = no || with_gnu_ld=yes
14181 else
14182 with_gnu_ld=no
14184 ac_prog=ld
14185 if test "$GCC" = yes; then
14186 # Check if gcc -print-prog-name=ld gives a path.
14187 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14188 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14189 case $host in
14190 *-*-mingw*)
14191 # gcc leaves a trailing carriage return which upsets mingw
14192 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14194 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14195 esac
14196 case $ac_prog in
14197 # Accept absolute paths.
14198 [\\/]* | ?:[\\/]*)
14199 re_direlt='/[^/][^/]*/\.\./'
14200 # Canonicalize the pathname of ld
14201 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14202 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14203 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14204 done
14205 test -z "$LD" && LD="$ac_prog"
14208 # If it fails, then pretend we aren't using GCC.
14209 ac_prog=ld
14212 # If it is relative, then search for the first ld in PATH.
14213 with_gnu_ld=unknown
14215 esac
14216 elif test "$with_gnu_ld" = yes; then
14217 echo "$as_me:$LINENO: checking for GNU ld" >&5
14218 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14219 else
14220 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14221 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14223 if test "${lt_cv_path_LD+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 else
14226 if test -z "$LD"; then
14227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14228 for ac_dir in $PATH; do
14229 IFS="$lt_save_ifs"
14230 test -z "$ac_dir" && ac_dir=.
14231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14232 lt_cv_path_LD="$ac_dir/$ac_prog"
14233 # Check to see if the program is GNU ld. I'd rather use --version,
14234 # but apparently some variants of GNU ld only accept -v.
14235 # Break only if it was the GNU/non-GNU ld that we prefer.
14236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14237 *GNU* | *'with BFD'*)
14238 test "$with_gnu_ld" != no && break
14241 test "$with_gnu_ld" != yes && break
14243 esac
14245 done
14246 IFS="$lt_save_ifs"
14247 else
14248 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14252 LD="$lt_cv_path_LD"
14253 if test -n "$LD"; then
14254 echo "$as_me:$LINENO: result: $LD" >&5
14255 echo "${ECHO_T}$LD" >&6
14256 else
14257 echo "$as_me:$LINENO: result: no" >&5
14258 echo "${ECHO_T}no" >&6
14260 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14261 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14262 { (exit 1); exit 1; }; }
14263 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14264 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14265 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14269 case `$LD -v 2>&1 </dev/null` in
14270 *GNU* | *'with BFD'*)
14271 lt_cv_prog_gnu_ld=yes
14274 lt_cv_prog_gnu_ld=no
14276 esac
14278 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14279 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14280 with_gnu_ld=$lt_cv_prog_gnu_ld
14291 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14292 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14293 if test "${lt_cv_path_NM+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14295 else
14296 if test -n "$NM"; then
14297 # Let the user override the test.
14298 lt_cv_path_NM="$NM"
14299 else
14300 lt_nm_to_check="${ac_tool_prefix}nm"
14301 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14302 lt_nm_to_check="$lt_nm_to_check nm"
14304 for lt_tmp_nm in $lt_nm_to_check; do
14305 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14306 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14307 IFS="$lt_save_ifs"
14308 test -z "$ac_dir" && ac_dir=.
14309 tmp_nm="$ac_dir/$lt_tmp_nm"
14310 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14311 # Check to see if the nm accepts a BSD-compat flag.
14312 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14313 # nm: unknown option "B" ignored
14314 # Tru64's nm complains that /dev/null is an invalid object file
14315 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14316 */dev/null* | *'Invalid file or object type'*)
14317 lt_cv_path_NM="$tmp_nm -B"
14318 break
14321 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14322 */dev/null*)
14323 lt_cv_path_NM="$tmp_nm -p"
14324 break
14327 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14328 continue # so that we can try to find one that supports BSD flags
14330 esac
14332 esac
14334 done
14335 IFS="$lt_save_ifs"
14336 done
14337 : ${lt_cv_path_NM=no}
14340 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14341 echo "${ECHO_T}$lt_cv_path_NM" >&6
14342 if test "$lt_cv_path_NM" != "no"; then
14343 NM="$lt_cv_path_NM"
14344 else
14345 # Didn't find any BSD compatible name lister, look for dumpbin.
14346 if test -n "$ac_tool_prefix"; then
14347 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14351 echo "$as_me:$LINENO: checking for $ac_word" >&5
14352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14353 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 else
14356 if test -n "$DUMPBIN"; then
14357 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14358 else
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360 for as_dir in $PATH
14362 IFS=$as_save_IFS
14363 test -z "$as_dir" && as_dir=.
14364 for ac_exec_ext in '' $ac_executable_extensions; do
14365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14366 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14368 break 2
14370 done
14371 done
14375 DUMPBIN=$ac_cv_prog_DUMPBIN
14376 if test -n "$DUMPBIN"; then
14377 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14378 echo "${ECHO_T}$DUMPBIN" >&6
14379 else
14380 echo "$as_me:$LINENO: result: no" >&5
14381 echo "${ECHO_T}no" >&6
14384 test -n "$DUMPBIN" && break
14385 done
14387 if test -z "$DUMPBIN"; then
14388 ac_ct_DUMPBIN=$DUMPBIN
14389 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14391 # Extract the first word of "$ac_prog", so it can be a program name with args.
14392 set dummy $ac_prog; ac_word=$2
14393 echo "$as_me:$LINENO: checking for $ac_word" >&5
14394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14395 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14397 else
14398 if test -n "$ac_ct_DUMPBIN"; then
14399 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14400 else
14401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402 for as_dir in $PATH
14404 IFS=$as_save_IFS
14405 test -z "$as_dir" && as_dir=.
14406 for ac_exec_ext in '' $ac_executable_extensions; do
14407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14408 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14410 break 2
14412 done
14413 done
14417 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14418 if test -n "$ac_ct_DUMPBIN"; then
14419 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14420 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14421 else
14422 echo "$as_me:$LINENO: result: no" >&5
14423 echo "${ECHO_T}no" >&6
14426 test -n "$ac_ct_DUMPBIN" && break
14427 done
14428 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14430 DUMPBIN=$ac_ct_DUMPBIN
14434 if test "$DUMPBIN" != ":"; then
14435 NM="$DUMPBIN"
14438 test -z "$NM" && NM=nm
14445 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14446 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14447 if test "${lt_cv_nm_interface+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450 lt_cv_nm_interface="BSD nm"
14451 echo "int some_variable = 0;" > conftest.$ac_ext
14452 (eval echo "\"\$as_me:14452: $ac_compile\"" >&5)
14453 (eval "$ac_compile" 2>conftest.err)
14454 cat conftest.err >&5
14455 (eval echo "\"\$as_me:14455: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14456 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14457 cat conftest.err >&5
14458 (eval echo "\"\$as_me:14458: output\"" >&5)
14459 cat conftest.out >&5
14460 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14461 lt_cv_nm_interface="MS dumpbin"
14463 rm -f conftest*
14465 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14466 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14468 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14469 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14470 LN_S=$as_ln_s
14471 if test "$LN_S" = "ln -s"; then
14472 echo "$as_me:$LINENO: result: yes" >&5
14473 echo "${ECHO_T}yes" >&6
14474 else
14475 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14476 echo "${ECHO_T}no, using $LN_S" >&6
14479 # find the maximum length of command line arguments
14480 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14481 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14482 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14486 teststring="ABCD"
14488 case $build_os in
14489 msdosdjgpp*)
14490 # On DJGPP, this test can blow up pretty badly due to problems in libc
14491 # (any single argument exceeding 2000 bytes causes a buffer overrun
14492 # during glob expansion). Even if it were fixed, the result of this
14493 # check would be larger than it should be.
14494 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14497 gnu*)
14498 # Under GNU Hurd, this test is not required because there is
14499 # no limit to the length of command line arguments.
14500 # Libtool will interpret -1 as no limit whatsoever
14501 lt_cv_sys_max_cmd_len=-1;
14504 cygwin* | mingw*)
14505 # On Win9x/ME, this test blows up -- it succeeds, but takes
14506 # about 5 minutes as the teststring grows exponentially.
14507 # Worse, since 9x/ME are not pre-emptively multitasking,
14508 # you end up with a "frozen" computer, even though with patience
14509 # the test eventually succeeds (with a max line length of 256k).
14510 # Instead, let's just punt: use the minimum linelength reported by
14511 # all of the supported platforms: 8192 (on NT/2K/XP).
14512 lt_cv_sys_max_cmd_len=8192;
14515 amigaos*)
14516 # On AmigaOS with pdksh, this test takes hours, literally.
14517 # So we just punt and use a minimum line length of 8192.
14518 lt_cv_sys_max_cmd_len=8192;
14521 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14522 # This has been around since 386BSD, at least. Likely further.
14523 if test -x /sbin/sysctl; then
14524 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14525 elif test -x /usr/sbin/sysctl; then
14526 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14527 else
14528 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14530 # And add a safety zone
14531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14535 interix*)
14536 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14537 lt_cv_sys_max_cmd_len=196608
14540 osf*)
14541 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14542 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14543 # nice to cause kernel panics so lets avoid the loop below.
14544 # First set a reasonable default.
14545 lt_cv_sys_max_cmd_len=16384
14547 if test -x /sbin/sysconfig; then
14548 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14549 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14550 esac
14553 sco3.2v5*)
14554 lt_cv_sys_max_cmd_len=102400
14556 sysv5* | sco5v6* | sysv4.2uw2*)
14557 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14558 if test -n "$kargmax"; then
14559 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14560 else
14561 lt_cv_sys_max_cmd_len=32768
14565 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
14566 if test -n $lt_cv_sys_max_cmd_len; then
14567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14569 else
14570 # Make teststring a little bigger before we do anything with it.
14571 # a 1K string should be a reasonable start.
14572 for i in 1 2 3 4 5 6 7 8 ; do
14573 teststring=$teststring$teststring
14574 done
14575 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14576 # If test is not a shell built-in, we'll probably end up computing a
14577 # maximum length that is only half of the actual maximum length, but
14578 # we can't tell.
14579 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14580 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14581 test $i != 17 # 1/2 MB should be enough
14583 i=`expr $i + 1`
14584 teststring=$teststring$teststring
14585 done
14586 # Only check the string length outside the loop.
14587 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14588 teststring=
14589 # Add a significant safety factor because C++ compilers can tack on
14590 # massive amounts of additional arguments before passing them to the
14591 # linker. It appears as though 1/2 is a usable value.
14592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14595 esac
14599 if test -n $lt_cv_sys_max_cmd_len ; then
14600 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14601 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14602 else
14603 echo "$as_me:$LINENO: result: none" >&5
14604 echo "${ECHO_T}none" >&6
14606 max_cmd_len=$lt_cv_sys_max_cmd_len
14614 : ${CP="cp -f"}
14615 : ${MV="mv -f"}
14616 : ${RM="rm -f"}
14618 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14619 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14620 # Try some XSI features
14621 xsi_shell=no
14622 ( _lt_dummy="a/b/c"
14623 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14624 = c,a/b,, ) >/dev/null 2>&1 \
14625 && xsi_shell=yes
14626 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14627 echo "${ECHO_T}$xsi_shell" >&6
14630 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14631 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14632 lt_shell_append=no
14633 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14634 >/dev/null 2>&1 \
14635 && lt_shell_append=yes
14636 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14637 echo "${ECHO_T}$lt_shell_append" >&6
14640 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14641 lt_unset=unset
14642 else
14643 lt_unset=false
14650 # test EBCDIC or ASCII
14651 case `echo X|tr X '\101'` in
14652 A) # ASCII based system
14653 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14654 lt_SP2NL='tr \040 \012'
14655 lt_NL2SP='tr \015\012 \040\040'
14657 *) # EBCDIC based system
14658 lt_SP2NL='tr \100 \n'
14659 lt_NL2SP='tr \r\n \100\100'
14661 esac
14671 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14672 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14673 if test "${lt_cv_ld_reload_flag+set}" = set; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 else
14676 lt_cv_ld_reload_flag='-r'
14678 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14679 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14680 reload_flag=$lt_cv_ld_reload_flag
14681 case $reload_flag in
14682 "" | " "*) ;;
14683 *) reload_flag=" $reload_flag" ;;
14684 esac
14685 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14686 case $host_os in
14687 darwin*)
14688 if test "$GCC" = yes; then
14689 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14690 else
14691 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14694 esac
14705 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14706 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14707 if test "${lt_cv_deplibs_check_method+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14709 else
14710 lt_cv_file_magic_cmd='$MAGIC_CMD'
14711 lt_cv_file_magic_test_file=
14712 lt_cv_deplibs_check_method='unknown'
14713 # Need to set the preceding variable on all platforms that support
14714 # interlibrary dependencies.
14715 # 'none' -- dependencies not supported.
14716 # `unknown' -- same as none, but documents that we really don't know.
14717 # 'pass_all' -- all dependencies passed with no checks.
14718 # 'test_compile' -- check by making test program.
14719 # 'file_magic [[regex]]' -- check by looking for files in library path
14720 # which responds to the $file_magic_cmd with a given extended regex.
14721 # If you have `file' or equivalent on your system and you're not sure
14722 # whether `pass_all' will *always* work, you probably want this one.
14724 case $host_os in
14725 aix[4-9]*)
14726 lt_cv_deplibs_check_method=pass_all
14729 beos*)
14730 lt_cv_deplibs_check_method=pass_all
14733 bsdi[45]*)
14734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14735 lt_cv_file_magic_cmd='/usr/bin/file -L'
14736 lt_cv_file_magic_test_file=/shlib/libc.so
14739 cygwin*)
14740 # func_win32_libid is a shell function defined in ltmain.sh
14741 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14742 lt_cv_file_magic_cmd='func_win32_libid'
14745 mingw* | pw32*)
14746 # Base MSYS/MinGW do not provide the 'file' command needed by
14747 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14748 # unless we find 'file', for example because we are cross-compiling.
14749 if ( file / ) >/dev/null 2>&1; then
14750 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14751 lt_cv_file_magic_cmd='func_win32_libid'
14752 else
14753 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14754 lt_cv_file_magic_cmd='$OBJDUMP -f'
14758 darwin* | rhapsody*)
14759 lt_cv_deplibs_check_method=pass_all
14762 freebsd* | dragonfly*)
14763 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14764 case $host_cpu in
14765 i*86 )
14766 # Not sure whether the presence of OpenBSD here was a mistake.
14767 # Let's accept both of them until this is cleared up.
14768 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14769 lt_cv_file_magic_cmd=/usr/bin/file
14770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14772 esac
14773 else
14774 lt_cv_deplibs_check_method=pass_all
14778 gnu*)
14779 lt_cv_deplibs_check_method=pass_all
14782 hpux10.20* | hpux11*)
14783 lt_cv_file_magic_cmd=/usr/bin/file
14784 case $host_cpu in
14785 ia64*)
14786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14787 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14789 hppa*64*)
14790 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]'
14791 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14794 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14795 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14797 esac
14800 interix[3-9]*)
14801 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14805 irix5* | irix6* | nonstopux*)
14806 case $LD in
14807 *-32|*"-32 ") libmagic=32-bit;;
14808 *-n32|*"-n32 ") libmagic=N32;;
14809 *-64|*"-64 ") libmagic=64-bit;;
14810 *) libmagic=never-match;;
14811 esac
14812 lt_cv_deplibs_check_method=pass_all
14815 # This must be Linux ELF.
14816 linux* | k*bsd*-gnu)
14817 lt_cv_deplibs_check_method=pass_all
14820 netbsd*)
14821 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14823 else
14824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14828 newos6*)
14829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14830 lt_cv_file_magic_cmd=/usr/bin/file
14831 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14834 *nto* | *qnx*)
14835 lt_cv_deplibs_check_method=pass_all
14838 openbsd*)
14839 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14841 else
14842 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14846 osf3* | osf4* | osf5*)
14847 lt_cv_deplibs_check_method=pass_all
14850 rdos*)
14851 lt_cv_deplibs_check_method=pass_all
14854 solaris*)
14855 lt_cv_deplibs_check_method=pass_all
14858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14859 lt_cv_deplibs_check_method=pass_all
14862 sysv4 | sysv4.3*)
14863 case $host_vendor in
14864 motorola)
14865 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]'
14866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14868 ncr)
14869 lt_cv_deplibs_check_method=pass_all
14871 sequent)
14872 lt_cv_file_magic_cmd='/bin/file'
14873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14875 sni)
14876 lt_cv_file_magic_cmd='/bin/file'
14877 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14878 lt_cv_file_magic_test_file=/lib/libc.so
14880 siemens)
14881 lt_cv_deplibs_check_method=pass_all
14884 lt_cv_deplibs_check_method=pass_all
14886 esac
14889 tpf*)
14890 lt_cv_deplibs_check_method=pass_all
14892 esac
14895 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14896 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14897 file_magic_cmd=$lt_cv_file_magic_cmd
14898 deplibs_check_method=$lt_cv_deplibs_check_method
14899 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14912 if test -n "$ac_tool_prefix"; then
14913 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14914 set dummy ${ac_tool_prefix}ar; ac_word=$2
14915 echo "$as_me:$LINENO: checking for $ac_word" >&5
14916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14917 if test "${ac_cv_prog_AR+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920 if test -n "$AR"; then
14921 ac_cv_prog_AR="$AR" # Let the user override the test.
14922 else
14923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14924 for as_dir in $PATH
14926 IFS=$as_save_IFS
14927 test -z "$as_dir" && as_dir=.
14928 for ac_exec_ext in '' $ac_executable_extensions; do
14929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14930 ac_cv_prog_AR="${ac_tool_prefix}ar"
14931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14932 break 2
14934 done
14935 done
14939 AR=$ac_cv_prog_AR
14940 if test -n "$AR"; then
14941 echo "$as_me:$LINENO: result: $AR" >&5
14942 echo "${ECHO_T}$AR" >&6
14943 else
14944 echo "$as_me:$LINENO: result: no" >&5
14945 echo "${ECHO_T}no" >&6
14949 if test -z "$ac_cv_prog_AR"; then
14950 ac_ct_AR=$AR
14951 # Extract the first word of "ar", so it can be a program name with args.
14952 set dummy ar; ac_word=$2
14953 echo "$as_me:$LINENO: checking for $ac_word" >&5
14954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14955 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 else
14958 if test -n "$ac_ct_AR"; then
14959 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14960 else
14961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14962 for as_dir in $PATH
14964 IFS=$as_save_IFS
14965 test -z "$as_dir" && as_dir=.
14966 for ac_exec_ext in '' $ac_executable_extensions; do
14967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14968 ac_cv_prog_ac_ct_AR="ar"
14969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14970 break 2
14972 done
14973 done
14975 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
14978 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14979 if test -n "$ac_ct_AR"; then
14980 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14981 echo "${ECHO_T}$ac_ct_AR" >&6
14982 else
14983 echo "$as_me:$LINENO: result: no" >&5
14984 echo "${ECHO_T}no" >&6
14987 AR=$ac_ct_AR
14988 else
14989 AR="$ac_cv_prog_AR"
14992 test -z "$AR" && AR=ar
14993 test -z "$AR_FLAGS" && AR_FLAGS=cru
15005 if test -n "$ac_tool_prefix"; then
15006 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15007 set dummy ${ac_tool_prefix}strip; ac_word=$2
15008 echo "$as_me:$LINENO: checking for $ac_word" >&5
15009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15010 if test "${ac_cv_prog_STRIP+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 else
15013 if test -n "$STRIP"; then
15014 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15015 else
15016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15017 for as_dir in $PATH
15019 IFS=$as_save_IFS
15020 test -z "$as_dir" && as_dir=.
15021 for ac_exec_ext in '' $ac_executable_extensions; do
15022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15023 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15025 break 2
15027 done
15028 done
15032 STRIP=$ac_cv_prog_STRIP
15033 if test -n "$STRIP"; then
15034 echo "$as_me:$LINENO: result: $STRIP" >&5
15035 echo "${ECHO_T}$STRIP" >&6
15036 else
15037 echo "$as_me:$LINENO: result: no" >&5
15038 echo "${ECHO_T}no" >&6
15042 if test -z "$ac_cv_prog_STRIP"; then
15043 ac_ct_STRIP=$STRIP
15044 # Extract the first word of "strip", so it can be a program name with args.
15045 set dummy strip; ac_word=$2
15046 echo "$as_me:$LINENO: checking for $ac_word" >&5
15047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15048 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15049 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 else
15051 if test -n "$ac_ct_STRIP"; then
15052 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15053 else
15054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15055 for as_dir in $PATH
15057 IFS=$as_save_IFS
15058 test -z "$as_dir" && as_dir=.
15059 for ac_exec_ext in '' $ac_executable_extensions; do
15060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15061 ac_cv_prog_ac_ct_STRIP="strip"
15062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15063 break 2
15065 done
15066 done
15068 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15071 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15072 if test -n "$ac_ct_STRIP"; then
15073 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15074 echo "${ECHO_T}$ac_ct_STRIP" >&6
15075 else
15076 echo "$as_me:$LINENO: result: no" >&5
15077 echo "${ECHO_T}no" >&6
15080 STRIP=$ac_ct_STRIP
15081 else
15082 STRIP="$ac_cv_prog_STRIP"
15085 test -z "$STRIP" && STRIP=:
15092 if test -n "$ac_tool_prefix"; then
15093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15095 echo "$as_me:$LINENO: checking for $ac_word" >&5
15096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15097 if test "${ac_cv_prog_RANLIB+set}" = set; then
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 else
15100 if test -n "$RANLIB"; then
15101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15102 else
15103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15104 for as_dir in $PATH
15106 IFS=$as_save_IFS
15107 test -z "$as_dir" && as_dir=.
15108 for ac_exec_ext in '' $ac_executable_extensions; do
15109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15112 break 2
15114 done
15115 done
15119 RANLIB=$ac_cv_prog_RANLIB
15120 if test -n "$RANLIB"; then
15121 echo "$as_me:$LINENO: result: $RANLIB" >&5
15122 echo "${ECHO_T}$RANLIB" >&6
15123 else
15124 echo "$as_me:$LINENO: result: no" >&5
15125 echo "${ECHO_T}no" >&6
15129 if test -z "$ac_cv_prog_RANLIB"; then
15130 ac_ct_RANLIB=$RANLIB
15131 # Extract the first word of "ranlib", so it can be a program name with args.
15132 set dummy ranlib; ac_word=$2
15133 echo "$as_me:$LINENO: checking for $ac_word" >&5
15134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15135 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 else
15138 if test -n "$ac_ct_RANLIB"; then
15139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15140 else
15141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15142 for as_dir in $PATH
15144 IFS=$as_save_IFS
15145 test -z "$as_dir" && as_dir=.
15146 for ac_exec_ext in '' $ac_executable_extensions; do
15147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15148 ac_cv_prog_ac_ct_RANLIB="ranlib"
15149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15150 break 2
15152 done
15153 done
15155 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15158 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15159 if test -n "$ac_ct_RANLIB"; then
15160 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15161 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15162 else
15163 echo "$as_me:$LINENO: result: no" >&5
15164 echo "${ECHO_T}no" >&6
15167 RANLIB=$ac_ct_RANLIB
15168 else
15169 RANLIB="$ac_cv_prog_RANLIB"
15172 test -z "$RANLIB" && RANLIB=:
15179 # Determine commands to create old-style static archives.
15180 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15181 old_postinstall_cmds='chmod 644 $oldlib'
15182 old_postuninstall_cmds=
15184 if test -n "$RANLIB"; then
15185 case $host_os in
15186 openbsd*)
15187 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15190 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15192 esac
15193 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15229 # If no C compiler was specified, use CC.
15230 LTCC=${LTCC-"$CC"}
15232 # If no C compiler flags were specified, use CFLAGS.
15233 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15235 # Allow CC to be a program name with arguments.
15236 compiler=$CC
15239 # Check for command to grab the raw symbol name followed by C symbol from nm.
15240 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15241 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15242 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 else
15246 # These are sane defaults that work on at least a few old systems.
15247 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15249 # Character class describing NM global symbol codes.
15250 symcode='[BCDEGRST]'
15252 # Regexp to match symbols that can be accessed directly from C.
15253 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15255 # Define system-specific variables.
15256 case $host_os in
15257 aix*)
15258 symcode='[BCDT]'
15260 cygwin* | mingw* | pw32*)
15261 symcode='[ABCDGISTW]'
15263 hpux*)
15264 if test "$host_cpu" = ia64; then
15265 symcode='[ABCDEGRST]'
15268 irix* | nonstopux*)
15269 symcode='[BCDEGRST]'
15271 osf*)
15272 symcode='[BCDEGQRST]'
15274 solaris*)
15275 symcode='[BDRT]'
15277 sco3.2v5*)
15278 symcode='[DT]'
15280 sysv4.2uw2*)
15281 symcode='[DT]'
15283 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15284 symcode='[ABDT]'
15286 sysv4)
15287 symcode='[DFNSTU]'
15289 esac
15291 # If we're using GNU nm, then use its standard symbol codes.
15292 case `$NM -V 2>&1` in
15293 *GNU* | *'with BFD'*)
15294 symcode='[ABCDGIRSTW]' ;;
15295 esac
15297 # Transform an extracted symbol line into a proper C declaration.
15298 # Some systems (esp. on ia64) link data and code symbols differently,
15299 # so use this general approach.
15300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15302 # Transform an extracted symbol line into symbol name and symbol address
15303 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15305 # Handle CRLF in mingw tool chain
15306 opt_cr=
15307 case $build_os in
15308 mingw*)
15309 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15311 esac
15313 # Try without a prefix underscore, then with it.
15314 for ac_symprfx in "" "_"; do
15316 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15317 symxfrm="\\1 $ac_symprfx\\2 \\2"
15319 # Write the raw and C identifiers.
15320 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15321 # Fake it for dumpbin and say T for any non-static function
15322 # and D for any global variable.
15323 # Also find C++ and __fastcall symbols from MSVC++,
15324 # which start with @ or ?.
15325 lt_cv_sys_global_symbol_pipe="$AWK '"\
15326 " {last_section=section; section=\$ 3};"\
15327 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15328 " \$ 0!~/External *\|/{next};"\
15329 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15330 " {if(hide[section]) next};"\
15331 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15332 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15333 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15334 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15335 " ' prfx=^$ac_symprfx"
15336 else
15337 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15340 # Check to see that the pipe works correctly.
15341 pipe_works=no
15343 rm -f conftest*
15344 cat > conftest.$ac_ext <<_LT_EOF
15345 #ifdef __cplusplus
15346 extern "C" {
15347 #endif
15348 char nm_test_var;
15349 void nm_test_func(void);
15350 void nm_test_func(void){}
15351 #ifdef __cplusplus
15353 #endif
15354 int main(){nm_test_var='a';nm_test_func();return(0);}
15355 _LT_EOF
15357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15358 (eval $ac_compile) 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; then
15362 # Now try to grab the symbols.
15363 nlist=conftest.nm
15364 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15365 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } && test -s "$nlist"; then
15369 # Try sorting and uniquifying the output.
15370 if sort "$nlist" | uniq > "$nlist"T; then
15371 mv -f "$nlist"T "$nlist"
15372 else
15373 rm -f "$nlist"T
15376 # Make sure that we snagged all the symbols we need.
15377 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15378 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15379 cat <<_LT_EOF > conftest.$ac_ext
15380 #ifdef __cplusplus
15381 extern "C" {
15382 #endif
15384 _LT_EOF
15385 # Now generate the symbol file.
15386 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15388 cat <<_LT_EOF >> conftest.$ac_ext
15390 /* The mapping between symbol names and symbols. */
15391 const struct {
15392 const char *name;
15393 void *address;
15395 lt__PROGRAM__LTX_preloaded_symbols[] =
15397 { "@PROGRAM@", (void *) 0 },
15398 _LT_EOF
15399 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15400 cat <<\_LT_EOF >> conftest.$ac_ext
15401 {0, (void *) 0}
15404 /* This works around a problem in FreeBSD linker */
15405 #ifdef FREEBSD_WORKAROUND
15406 static const void *lt_preloaded_setup() {
15407 return lt__PROGRAM__LTX_preloaded_symbols;
15409 #endif
15411 #ifdef __cplusplus
15413 #endif
15414 _LT_EOF
15415 # Now try linking the two files.
15416 mv conftest.$ac_objext conftstm.$ac_objext
15417 lt_save_LIBS="$LIBS"
15418 lt_save_CFLAGS="$CFLAGS"
15419 LIBS="conftstm.$ac_objext"
15420 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15422 (eval $ac_link) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15426 pipe_works=yes
15428 LIBS="$lt_save_LIBS"
15429 CFLAGS="$lt_save_CFLAGS"
15430 else
15431 echo "cannot find nm_test_func in $nlist" >&5
15433 else
15434 echo "cannot find nm_test_var in $nlist" >&5
15436 else
15437 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15439 else
15440 echo "$progname: failed program was:" >&5
15441 cat conftest.$ac_ext >&5
15443 rm -f conftest* conftst*
15445 # Do not use the global_symbol_pipe unless it works.
15446 if test "$pipe_works" = yes; then
15447 break
15448 else
15449 lt_cv_sys_global_symbol_pipe=
15451 done
15455 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15456 lt_cv_sys_global_symbol_to_cdecl=
15458 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15459 echo "$as_me:$LINENO: result: failed" >&5
15460 echo "${ECHO_T}failed" >&6
15461 else
15462 echo "$as_me:$LINENO: result: ok" >&5
15463 echo "${ECHO_T}ok" >&6
15482 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15483 if test "${enable_libtool_lock+set}" = set; then
15484 enableval="$enable_libtool_lock"
15487 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15489 # Some flags need to be propagated to the compiler or linker for good
15490 # libtool support.
15491 case $host in
15492 ia64-*-hpux*)
15493 # Find out which ABI we are using.
15494 echo 'int i;' > conftest.$ac_ext
15495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15496 (eval $ac_compile) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; then
15500 case `/usr/bin/file conftest.$ac_objext` in
15501 *ELF-32*)
15502 HPUX_IA64_MODE="32"
15504 *ELF-64*)
15505 HPUX_IA64_MODE="64"
15507 esac
15509 rm -rf conftest*
15511 *-*-irix6*)
15512 # Find out which ABI we are using.
15513 echo '#line 15513 "configure"' > conftest.$ac_ext
15514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15515 (eval $ac_compile) 2>&5
15516 ac_status=$?
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; then
15519 if test "$lt_cv_prog_gnu_ld" = yes; then
15520 case `/usr/bin/file conftest.$ac_objext` in
15521 *32-bit*)
15522 LD="${LD-ld} -melf32bsmip"
15524 *N32*)
15525 LD="${LD-ld} -melf32bmipn32"
15527 *64-bit*)
15528 LD="${LD-ld} -melf64bmip"
15530 esac
15531 else
15532 case `/usr/bin/file conftest.$ac_objext` in
15533 *32-bit*)
15534 LD="${LD-ld} -32"
15536 *N32*)
15537 LD="${LD-ld} -n32"
15539 *64-bit*)
15540 LD="${LD-ld} -64"
15542 esac
15545 rm -rf conftest*
15548 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15549 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15550 # Find out which ABI we are using.
15551 echo 'int i;' > conftest.$ac_ext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553 (eval $ac_compile) 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; then
15557 case `/usr/bin/file conftest.o` in
15558 *32-bit*)
15559 case $host in
15560 x86_64-*kfreebsd*-gnu)
15561 LD="${LD-ld} -m elf_i386_fbsd"
15563 x86_64-*linux*)
15564 LD="${LD-ld} -m elf_i386"
15566 ppc64-*linux*|powerpc64-*linux*)
15567 LD="${LD-ld} -m elf32ppclinux"
15569 s390x-*linux*)
15570 LD="${LD-ld} -m elf_s390"
15572 sparc64-*linux*)
15573 LD="${LD-ld} -m elf32_sparc"
15575 esac
15577 *64-bit*)
15578 case $host in
15579 x86_64-*kfreebsd*-gnu)
15580 LD="${LD-ld} -m elf_x86_64_fbsd"
15582 x86_64-*linux*)
15583 LD="${LD-ld} -m elf_x86_64"
15585 ppc*-*linux*|powerpc*-*linux*)
15586 LD="${LD-ld} -m elf64ppc"
15588 s390*-*linux*|s390*-*tpf*)
15589 LD="${LD-ld} -m elf64_s390"
15591 sparc*-*linux*)
15592 LD="${LD-ld} -m elf64_sparc"
15594 esac
15596 esac
15598 rm -rf conftest*
15601 *-*-sco3.2v5*)
15602 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15603 SAVE_CFLAGS="$CFLAGS"
15604 CFLAGS="$CFLAGS -belf"
15605 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15606 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15607 if test "${lt_cv_cc_needs_belf+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 else
15610 ac_ext=c
15611 ac_cpp='$CPP $CPPFLAGS'
15612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15616 cat >conftest.$ac_ext <<_ACEOF
15617 /* confdefs.h. */
15618 _ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15624 main ()
15628 return 0;
15630 _ACEOF
15631 rm -f conftest.$ac_objext conftest$ac_exeext
15632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15633 (eval $ac_link) 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
15640 { ac_try='test -z "$ac_c_werror_flag"
15641 || test ! -s conftest.err'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try='test -s conftest$ac_exeext'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15653 lt_cv_cc_needs_belf=yes
15654 else
15655 echo "$as_me: failed program was:" >&5
15656 sed 's/^/| /' conftest.$ac_ext >&5
15658 lt_cv_cc_needs_belf=no
15660 rm -f conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15662 ac_ext=c
15663 ac_cpp='$CPP $CPPFLAGS'
15664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15669 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15670 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15671 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15672 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15673 CFLAGS="$SAVE_CFLAGS"
15676 sparc*-*solaris*)
15677 # Find out which ABI we are using.
15678 echo 'int i;' > conftest.$ac_ext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15680 (eval $ac_compile) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; then
15684 case `/usr/bin/file conftest.o` in
15685 *64-bit*)
15686 case $lt_cv_prog_gnu_ld in
15687 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15688 *) LD="${LD-ld} -64" ;;
15689 esac
15691 esac
15693 rm -rf conftest*
15695 esac
15697 need_locks="$enable_libtool_lock"
15700 for ac_header in dlfcn.h
15702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15703 echo "$as_me:$LINENO: checking for $ac_header" >&5
15704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 else
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h. */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714 #include <$ac_header>
15715 _ACEOF
15716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } >/dev/null; then
15724 if test -s conftest.err; then
15725 ac_cpp_err=$ac_c_preproc_warn_flag
15726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15727 else
15728 ac_cpp_err=
15730 else
15731 ac_cpp_err=yes
15733 if test -z "$ac_cpp_err"; then
15734 eval "$as_ac_Header=yes"
15735 else
15736 echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739 eval "$as_ac_Header=no"
15741 rm -f conftest.err conftest.$ac_ext
15743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15746 cat >>confdefs.h <<_ACEOF
15747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15748 _ACEOF
15751 done
15755 # This can be used to rebuild libtool when needed
15756 LIBTOOL_DEPS="$ltmain"
15758 # Always use our own libtool.
15759 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15785 test -z "$LN_S" && LN_S="ln -s"
15800 if test -n "${ZSH_VERSION+set}" ; then
15801 setopt NO_GLOB_SUBST
15804 echo "$as_me:$LINENO: checking for objdir" >&5
15805 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
15806 if test "${lt_cv_objdir+set}" = set; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15808 else
15809 rm -f .libs 2>/dev/null
15810 mkdir .libs 2>/dev/null
15811 if test -d .libs; then
15812 lt_cv_objdir=.libs
15813 else
15814 # MS-DOS does not allow filenames that begin with a dot.
15815 lt_cv_objdir=_libs
15817 rmdir .libs 2>/dev/null
15819 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
15820 echo "${ECHO_T}$lt_cv_objdir" >&6
15821 objdir=$lt_cv_objdir
15827 cat >>confdefs.h <<_ACEOF
15828 #define LT_OBJDIR "$lt_cv_objdir/"
15829 _ACEOF
15847 case $host_os in
15848 aix3*)
15849 # AIX sometimes has problems with the GCC collect2 program. For some
15850 # reason, if we set the COLLECT_NAMES environment variable, the problems
15851 # vanish in a puff of smoke.
15852 if test "X${COLLECT_NAMES+set}" != Xset; then
15853 COLLECT_NAMES=
15854 export COLLECT_NAMES
15857 esac
15859 # Sed substitution that helps us do robust quoting. It backslashifies
15860 # metacharacters that are still active within double-quoted strings.
15861 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15863 # Same as above, but do not quote variable references.
15864 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15866 # Sed substitution to delay expansion of an escaped shell variable in a
15867 # double_quote_subst'ed string.
15868 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15870 # Sed substitution to delay expansion of an escaped single quote.
15871 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15873 # Sed substitution to avoid accidental globbing in evaled expressions
15874 no_glob_subst='s/\*/\\\*/g'
15876 # Global variables:
15877 ofile=libtool
15878 can_build_shared=yes
15880 # All known linkers require a `.a' archive for static linking (except MSVC,
15881 # which needs '.lib').
15882 libext=a
15884 with_gnu_ld="$lt_cv_prog_gnu_ld"
15886 old_CC="$CC"
15887 old_CFLAGS="$CFLAGS"
15889 # Set sane defaults for various variables
15890 test -z "$CC" && CC=cc
15891 test -z "$LTCC" && LTCC=$CC
15892 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15893 test -z "$LD" && LD=ld
15894 test -z "$ac_objext" && ac_objext=o
15896 for cc_temp in $compiler""; do
15897 case $cc_temp in
15898 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15899 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15900 \-*) ;;
15901 *) break;;
15902 esac
15903 done
15904 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15907 # Only perform the check for file, if the check method requires it
15908 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15909 case $deplibs_check_method in
15910 file_magic*)
15911 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15912 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
15913 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
15914 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15915 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 else
15917 case $MAGIC_CMD in
15918 [\\/*] | ?:[\\/]*)
15919 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15922 lt_save_MAGIC_CMD="$MAGIC_CMD"
15923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15924 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15925 for ac_dir in $ac_dummy; do
15926 IFS="$lt_save_ifs"
15927 test -z "$ac_dir" && ac_dir=.
15928 if test -f $ac_dir/${ac_tool_prefix}file; then
15929 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15930 if test -n "$file_magic_test_file"; then
15931 case $deplibs_check_method in
15932 "file_magic "*)
15933 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15935 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15936 $EGREP "$file_magic_regex" > /dev/null; then
15938 else
15939 cat <<_LT_EOF 1>&2
15941 *** Warning: the command libtool uses to detect shared libraries,
15942 *** $file_magic_cmd, produces output that libtool cannot recognize.
15943 *** The result is that libtool may fail to recognize shared libraries
15944 *** as such. This will affect the creation of libtool libraries that
15945 *** depend on shared libraries, but programs linked with such libtool
15946 *** libraries will work regardless of this problem. Nevertheless, you
15947 *** may want to report the problem to your system manager and/or to
15948 *** bug-libtool@gnu.org
15950 _LT_EOF
15951 fi ;;
15952 esac
15954 break
15956 done
15957 IFS="$lt_save_ifs"
15958 MAGIC_CMD="$lt_save_MAGIC_CMD"
15960 esac
15963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15964 if test -n "$MAGIC_CMD"; then
15965 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15966 echo "${ECHO_T}$MAGIC_CMD" >&6
15967 else
15968 echo "$as_me:$LINENO: result: no" >&5
15969 echo "${ECHO_T}no" >&6
15976 if test -z "$lt_cv_path_MAGIC_CMD"; then
15977 if test -n "$ac_tool_prefix"; then
15978 echo "$as_me:$LINENO: checking for file" >&5
15979 echo $ECHO_N "checking for file... $ECHO_C" >&6
15980 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983 case $MAGIC_CMD in
15984 [\\/*] | ?:[\\/]*)
15985 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15988 lt_save_MAGIC_CMD="$MAGIC_CMD"
15989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15990 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15991 for ac_dir in $ac_dummy; do
15992 IFS="$lt_save_ifs"
15993 test -z "$ac_dir" && ac_dir=.
15994 if test -f $ac_dir/file; then
15995 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15996 if test -n "$file_magic_test_file"; then
15997 case $deplibs_check_method in
15998 "file_magic "*)
15999 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16001 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16002 $EGREP "$file_magic_regex" > /dev/null; then
16004 else
16005 cat <<_LT_EOF 1>&2
16007 *** Warning: the command libtool uses to detect shared libraries,
16008 *** $file_magic_cmd, produces output that libtool cannot recognize.
16009 *** The result is that libtool may fail to recognize shared libraries
16010 *** as such. This will affect the creation of libtool libraries that
16011 *** depend on shared libraries, but programs linked with such libtool
16012 *** libraries will work regardless of this problem. Nevertheless, you
16013 *** may want to report the problem to your system manager and/or to
16014 *** bug-libtool@gnu.org
16016 _LT_EOF
16017 fi ;;
16018 esac
16020 break
16022 done
16023 IFS="$lt_save_ifs"
16024 MAGIC_CMD="$lt_save_MAGIC_CMD"
16026 esac
16029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16030 if test -n "$MAGIC_CMD"; then
16031 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16032 echo "${ECHO_T}$MAGIC_CMD" >&6
16033 else
16034 echo "$as_me:$LINENO: result: no" >&5
16035 echo "${ECHO_T}no" >&6
16039 else
16040 MAGIC_CMD=:
16046 esac
16048 # Use C for the default configuration in the libtool script
16050 lt_save_CC="$CC"
16051 ac_ext=c
16052 ac_cpp='$CPP $CPPFLAGS'
16053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16058 # Source file extension for C test sources.
16059 ac_ext=c
16061 # Object file extension for compiled C test sources.
16062 objext=o
16063 objext=$objext
16065 # Code to be used in simple compile tests
16066 lt_simple_compile_test_code="int some_variable = 0;"
16068 # Code to be used in simple link tests
16069 lt_simple_link_test_code='int main(){return(0);}'
16077 # If no C compiler was specified, use CC.
16078 LTCC=${LTCC-"$CC"}
16080 # If no C compiler flags were specified, use CFLAGS.
16081 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16083 # Allow CC to be a program name with arguments.
16084 compiler=$CC
16086 # Save the default compiler, since it gets overwritten when the other
16087 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16088 compiler_DEFAULT=$CC
16090 # save warnings/boilerplate of simple test code
16091 ac_outfile=conftest.$ac_objext
16092 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16093 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16094 _lt_compiler_boilerplate=`cat conftest.err`
16095 $RM conftest*
16097 ac_outfile=conftest.$ac_objext
16098 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16099 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16100 _lt_linker_boilerplate=`cat conftest.err`
16101 $RM conftest*
16104 ## CAVEAT EMPTOR:
16105 ## There is no encapsulation within the following macros, do not change
16106 ## the running order or otherwise move them around unless you know exactly
16107 ## what you are doing...
16108 if test -n "$compiler"; then
16110 lt_prog_compiler_no_builtin_flag=
16112 if test "$GCC" = yes; then
16113 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16115 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16116 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16117 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120 lt_cv_prog_compiler_rtti_exceptions=no
16121 ac_outfile=conftest.$ac_objext
16122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16123 lt_compiler_flag="-fno-rtti -fno-exceptions"
16124 # Insert the option either (1) after the last *FLAGS variable, or
16125 # (2) before a word containing "conftest.", or (3) at the end.
16126 # Note that $ac_compile itself does not contain backslashes and begins
16127 # with a dollar sign (not a hyphen), so the echo should work correctly.
16128 # The option is referenced via a variable to avoid confusing sed.
16129 lt_compile=`echo "$ac_compile" | $SED \
16130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16132 -e 's:$: $lt_compiler_flag:'`
16133 (eval echo "\"\$as_me:16133: $lt_compile\"" >&5)
16134 (eval "$lt_compile" 2>conftest.err)
16135 ac_status=$?
16136 cat conftest.err >&5
16137 echo "$as_me:16137: \$? = $ac_status" >&5
16138 if (exit $ac_status) && test -s "$ac_outfile"; then
16139 # The compiler can only warn and ignore the option if not recognized
16140 # So say no if there are warnings other than the usual output.
16141 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16144 lt_cv_prog_compiler_rtti_exceptions=yes
16147 $RM conftest*
16150 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16151 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16153 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16154 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16155 else
16166 lt_prog_compiler_wl=
16167 lt_prog_compiler_pic=
16168 lt_prog_compiler_static=
16170 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16171 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16173 if test "$GCC" = yes; then
16174 lt_prog_compiler_wl='-Wl,'
16175 lt_prog_compiler_static='-static'
16177 case $host_os in
16178 aix*)
16179 # All AIX code is PIC.
16180 if test "$host_cpu" = ia64; then
16181 # AIX 5 now supports IA64 processor
16182 lt_prog_compiler_static='-Bstatic'
16186 amigaos*)
16187 if test "$host_cpu" = m68k; then
16188 # FIXME: we need at least 68020 code to build shared libraries, but
16189 # adding the `-m68020' flag to GCC prevents building anything better,
16190 # like `-m68040'.
16191 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16195 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16196 # PIC is the default for these OSes.
16199 mingw* | cygwin* | pw32* | os2*)
16200 # This hack is so that the source file can tell whether it is being
16201 # built for inclusion in a dll (and should export symbols for example).
16202 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16203 # (--disable-auto-import) libraries
16204 lt_prog_compiler_pic='-DDLL_EXPORT'
16207 darwin* | rhapsody*)
16208 # PIC is the default on this platform
16209 # Common symbols not allowed in MH_DYLIB files
16210 lt_prog_compiler_pic='-fno-common'
16213 hpux*)
16214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16215 # not for PA HP-UX.
16216 case $host_cpu in
16217 hppa*64*|ia64*)
16218 # +Z the default
16221 lt_prog_compiler_pic='-fPIC'
16223 esac
16226 interix[3-9]*)
16227 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16228 # Instead, we relocate shared libraries at runtime.
16231 msdosdjgpp*)
16232 # Just because we use GCC doesn't mean we suddenly get shared libraries
16233 # on systems that don't support them.
16234 lt_prog_compiler_can_build_shared=no
16235 enable_shared=no
16238 *nto* | *qnx*)
16239 # QNX uses GNU C++, but need to define -shared option too, otherwise
16240 # it will coredump.
16241 lt_prog_compiler_pic='-fPIC -shared'
16244 sysv4*MP*)
16245 if test -d /usr/nec; then
16246 lt_prog_compiler_pic=-Kconform_pic
16251 lt_prog_compiler_pic='-fPIC'
16253 esac
16254 else
16255 # PORTME Check for flag to pass linker flags through the system compiler.
16256 case $host_os in
16257 aix*)
16258 lt_prog_compiler_wl='-Wl,'
16259 if test "$host_cpu" = ia64; then
16260 # AIX 5 now supports IA64 processor
16261 lt_prog_compiler_static='-Bstatic'
16262 else
16263 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16266 darwin*)
16267 # PIC is the default on this platform
16268 # Common symbols not allowed in MH_DYLIB files
16269 case $cc_basename in
16270 xlc*)
16271 lt_prog_compiler_pic='-qnocommon'
16272 lt_prog_compiler_wl='-Wl,'
16274 esac
16277 mingw* | cygwin* | pw32* | os2*)
16278 # This hack is so that the source file can tell whether it is being
16279 # built for inclusion in a dll (and should export symbols for example).
16280 lt_prog_compiler_pic='-DDLL_EXPORT'
16283 hpux9* | hpux10* | hpux11*)
16284 lt_prog_compiler_wl='-Wl,'
16285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16286 # not for PA HP-UX.
16287 case $host_cpu in
16288 hppa*64*|ia64*)
16289 # +Z the default
16292 lt_prog_compiler_pic='+Z'
16294 esac
16295 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16296 lt_prog_compiler_static='${wl}-a ${wl}archive'
16299 irix5* | irix6* | nonstopux*)
16300 lt_prog_compiler_wl='-Wl,'
16301 # PIC (with -KPIC) is the default.
16302 lt_prog_compiler_static='-non_shared'
16305 linux* | k*bsd*-gnu)
16306 case $cc_basename in
16307 icc* | ecc*)
16308 lt_prog_compiler_wl='-Wl,'
16309 lt_prog_compiler_pic='-KPIC'
16310 lt_prog_compiler_static='-static'
16312 pgcc* | pgf77* | pgf90* | pgf95*)
16313 # Portland Group compilers (*not* the Pentium gcc compiler,
16314 # which looks to be a dead project)
16315 lt_prog_compiler_wl='-Wl,'
16316 lt_prog_compiler_pic='-fpic'
16317 lt_prog_compiler_static='-Bstatic'
16319 ccc*)
16320 lt_prog_compiler_wl='-Wl,'
16321 # All Alpha code is PIC.
16322 lt_prog_compiler_static='-non_shared'
16325 case `$CC -V 2>&1 | sed 5q` in
16326 *Sun\ C*)
16327 # Sun C 5.9
16328 lt_prog_compiler_pic='-KPIC'
16329 lt_prog_compiler_static='-Bstatic'
16330 lt_prog_compiler_wl='-Wl,'
16332 *Sun\ F*)
16333 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16334 lt_prog_compiler_pic='-KPIC'
16335 lt_prog_compiler_static='-Bstatic'
16336 lt_prog_compiler_wl=''
16338 esac
16340 esac
16343 newsos6)
16344 lt_prog_compiler_pic='-KPIC'
16345 lt_prog_compiler_static='-Bstatic'
16348 *nto* | *qnx*)
16349 # QNX uses GNU C++, but need to define -shared option too, otherwise
16350 # it will coredump.
16351 lt_prog_compiler_pic='-fPIC -shared'
16354 osf3* | osf4* | osf5*)
16355 lt_prog_compiler_wl='-Wl,'
16356 # All OSF/1 code is PIC.
16357 lt_prog_compiler_static='-non_shared'
16360 rdos*)
16361 lt_prog_compiler_static='-non_shared'
16364 solaris*)
16365 lt_prog_compiler_pic='-KPIC'
16366 lt_prog_compiler_static='-Bstatic'
16367 case $cc_basename in
16368 f77* | f90* | f95*)
16369 lt_prog_compiler_wl='-Qoption ld ';;
16371 lt_prog_compiler_wl='-Wl,';;
16372 esac
16375 sunos4*)
16376 lt_prog_compiler_wl='-Qoption ld '
16377 lt_prog_compiler_pic='-PIC'
16378 lt_prog_compiler_static='-Bstatic'
16381 sysv4 | sysv4.2uw2* | sysv4.3*)
16382 lt_prog_compiler_wl='-Wl,'
16383 lt_prog_compiler_pic='-KPIC'
16384 lt_prog_compiler_static='-Bstatic'
16387 sysv4*MP*)
16388 if test -d /usr/nec ;then
16389 lt_prog_compiler_pic='-Kconform_pic'
16390 lt_prog_compiler_static='-Bstatic'
16394 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16395 lt_prog_compiler_wl='-Wl,'
16396 lt_prog_compiler_pic='-KPIC'
16397 lt_prog_compiler_static='-Bstatic'
16400 unicos*)
16401 lt_prog_compiler_wl='-Wl,'
16402 lt_prog_compiler_can_build_shared=no
16405 uts4*)
16406 lt_prog_compiler_pic='-pic'
16407 lt_prog_compiler_static='-Bstatic'
16411 lt_prog_compiler_can_build_shared=no
16413 esac
16416 case $host_os in
16417 # For platforms which do not support PIC, -DPIC is meaningless:
16418 *djgpp*)
16419 lt_prog_compiler_pic=
16422 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16424 esac
16425 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16426 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16434 # Check to make sure the PIC flag actually works.
16436 if test -n "$lt_prog_compiler_pic"; then
16437 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16438 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16439 if test "${lt_prog_compiler_pic_works+set}" = set; then
16440 echo $ECHO_N "(cached) $ECHO_C" >&6
16441 else
16442 lt_prog_compiler_pic_works=no
16443 ac_outfile=conftest.$ac_objext
16444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16445 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16446 # Insert the option either (1) after the last *FLAGS variable, or
16447 # (2) before a word containing "conftest.", or (3) at the end.
16448 # Note that $ac_compile itself does not contain backslashes and begins
16449 # with a dollar sign (not a hyphen), so the echo should work correctly.
16450 # The option is referenced via a variable to avoid confusing sed.
16451 lt_compile=`echo "$ac_compile" | $SED \
16452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16454 -e 's:$: $lt_compiler_flag:'`
16455 (eval echo "\"\$as_me:16455: $lt_compile\"" >&5)
16456 (eval "$lt_compile" 2>conftest.err)
16457 ac_status=$?
16458 cat conftest.err >&5
16459 echo "$as_me:16459: \$? = $ac_status" >&5
16460 if (exit $ac_status) && test -s "$ac_outfile"; then
16461 # The compiler can only warn and ignore the option if not recognized
16462 # So say no if there are warnings other than the usual output.
16463 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16466 lt_prog_compiler_pic_works=yes
16469 $RM conftest*
16472 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16473 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16475 if test x"$lt_prog_compiler_pic_works" = xyes; then
16476 case $lt_prog_compiler_pic in
16477 "" | " "*) ;;
16478 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16479 esac
16480 else
16481 lt_prog_compiler_pic=
16482 lt_prog_compiler_can_build_shared=no
16493 # Check to make sure the static flag actually works.
16495 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16496 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16497 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16498 if test "${lt_prog_compiler_static_works+set}" = set; then
16499 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 else
16501 lt_prog_compiler_static_works=no
16502 save_LDFLAGS="$LDFLAGS"
16503 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16504 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16505 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16506 # The linker can only warn and ignore the option if not recognized
16507 # So say no if there are warnings
16508 if test -s conftest.err; then
16509 # Append any errors to the config.log.
16510 cat conftest.err 1>&5
16511 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16513 if diff conftest.exp conftest.er2 >/dev/null; then
16514 lt_prog_compiler_static_works=yes
16516 else
16517 lt_prog_compiler_static_works=yes
16520 $RM conftest*
16521 LDFLAGS="$save_LDFLAGS"
16524 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16525 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16527 if test x"$lt_prog_compiler_static_works" = xyes; then
16529 else
16530 lt_prog_compiler_static=
16539 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16540 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16541 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16543 else
16544 lt_cv_prog_compiler_c_o=no
16545 $RM -r conftest 2>/dev/null
16546 mkdir conftest
16547 cd conftest
16548 mkdir out
16549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16551 lt_compiler_flag="-o out/conftest2.$ac_objext"
16552 # Insert the option either (1) after the last *FLAGS variable, or
16553 # (2) before a word containing "conftest.", or (3) at the end.
16554 # Note that $ac_compile itself does not contain backslashes and begins
16555 # with a dollar sign (not a hyphen), so the echo should work correctly.
16556 lt_compile=`echo "$ac_compile" | $SED \
16557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16559 -e 's:$: $lt_compiler_flag:'`
16560 (eval echo "\"\$as_me:16560: $lt_compile\"" >&5)
16561 (eval "$lt_compile" 2>out/conftest.err)
16562 ac_status=$?
16563 cat out/conftest.err >&5
16564 echo "$as_me:16564: \$? = $ac_status" >&5
16565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16566 then
16567 # The compiler can only warn and ignore the option if not recognized
16568 # So say no if there are warnings
16569 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16572 lt_cv_prog_compiler_c_o=yes
16575 chmod u+w . 2>&5
16576 $RM conftest*
16577 # SGI C++ compiler will create directory out/ii_files/ for
16578 # template instantiation
16579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16580 $RM out/* && rmdir out
16581 cd ..
16582 $RM -r conftest
16583 $RM conftest*
16586 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16594 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16595 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16596 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16597 echo $ECHO_N "(cached) $ECHO_C" >&6
16598 else
16599 lt_cv_prog_compiler_c_o=no
16600 $RM -r conftest 2>/dev/null
16601 mkdir conftest
16602 cd conftest
16603 mkdir out
16604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16606 lt_compiler_flag="-o out/conftest2.$ac_objext"
16607 # Insert the option either (1) after the last *FLAGS variable, or
16608 # (2) before a word containing "conftest.", or (3) at the end.
16609 # Note that $ac_compile itself does not contain backslashes and begins
16610 # with a dollar sign (not a hyphen), so the echo should work correctly.
16611 lt_compile=`echo "$ac_compile" | $SED \
16612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16614 -e 's:$: $lt_compiler_flag:'`
16615 (eval echo "\"\$as_me:16615: $lt_compile\"" >&5)
16616 (eval "$lt_compile" 2>out/conftest.err)
16617 ac_status=$?
16618 cat out/conftest.err >&5
16619 echo "$as_me:16619: \$? = $ac_status" >&5
16620 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16621 then
16622 # The compiler can only warn and ignore the option if not recognized
16623 # So say no if there are warnings
16624 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16625 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16626 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16627 lt_cv_prog_compiler_c_o=yes
16630 chmod u+w . 2>&5
16631 $RM conftest*
16632 # SGI C++ compiler will create directory out/ii_files/ for
16633 # template instantiation
16634 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16635 $RM out/* && rmdir out
16636 cd ..
16637 $RM -r conftest
16638 $RM conftest*
16641 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16642 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16647 hard_links="nottested"
16648 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16649 # do not overwrite the value of need_locks provided by the user
16650 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16651 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16652 hard_links=yes
16653 $RM conftest*
16654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16655 touch conftest.a
16656 ln conftest.a conftest.b 2>&5 || hard_links=no
16657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16658 echo "$as_me:$LINENO: result: $hard_links" >&5
16659 echo "${ECHO_T}$hard_links" >&6
16660 if test "$hard_links" = no; then
16661 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16662 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16663 need_locks=warn
16665 else
16666 need_locks=no
16674 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16675 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16677 runpath_var=
16678 allow_undefined_flag=
16679 always_export_symbols=no
16680 archive_cmds=
16681 archive_expsym_cmds=
16682 compiler_needs_object=no
16683 enable_shared_with_static_runtimes=no
16684 export_dynamic_flag_spec=
16685 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16686 hardcode_automatic=no
16687 hardcode_direct=no
16688 hardcode_direct_absolute=no
16689 hardcode_libdir_flag_spec=
16690 hardcode_libdir_flag_spec_ld=
16691 hardcode_libdir_separator=
16692 hardcode_minus_L=no
16693 hardcode_shlibpath_var=unsupported
16694 inherit_rpath=no
16695 link_all_deplibs=unknown
16696 module_cmds=
16697 module_expsym_cmds=
16698 old_archive_from_new_cmds=
16699 old_archive_from_expsyms_cmds=
16700 thread_safe_flag_spec=
16701 whole_archive_flag_spec=
16702 # include_expsyms should be a list of space-separated symbols to be *always*
16703 # included in the symbol list
16704 include_expsyms=
16705 # exclude_expsyms can be an extended regexp of symbols to exclude
16706 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16707 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16708 # as well as any symbol that contains `d'.
16709 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16710 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16711 # platforms (ab)use it in PIC code, but their linkers get confused if
16712 # the symbol is explicitly referenced. Since portable code cannot
16713 # rely on this symbol name, it's probably fine to never include it in
16714 # preloaded symbol tables.
16715 extract_expsyms_cmds=
16717 case $host_os in
16718 cygwin* | mingw* | pw32*)
16719 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16720 # When not using gcc, we currently assume that we are using
16721 # Microsoft Visual C++.
16722 if test "$GCC" != yes; then
16723 with_gnu_ld=no
16726 interix*)
16727 # we just hope/assume this is gcc and not c89 (= MSVC++)
16728 with_gnu_ld=yes
16730 openbsd*)
16731 with_gnu_ld=no
16733 esac
16735 ld_shlibs=yes
16736 if test "$with_gnu_ld" = yes; then
16737 # If archive_cmds runs LD, not CC, wlarc should be empty
16738 wlarc='${wl}'
16740 # Set some defaults for GNU ld with shared library support. These
16741 # are reset later if shared libraries are not supported. Putting them
16742 # here allows them to be overridden if necessary.
16743 runpath_var=LD_RUN_PATH
16744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16745 export_dynamic_flag_spec='${wl}--export-dynamic'
16746 # ancient GNU ld didn't support --whole-archive et. al.
16747 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16748 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16749 else
16750 whole_archive_flag_spec=
16752 supports_anon_versioning=no
16753 case `$LD -v 2>&1` in
16754 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16755 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16756 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16757 *\ 2.11.*) ;; # other 2.11 versions
16758 *) supports_anon_versioning=yes ;;
16759 esac
16761 # See if GNU ld supports shared libraries.
16762 case $host_os in
16763 aix[3-9]*)
16764 # On AIX/PPC, the GNU linker is very broken
16765 if test "$host_cpu" != ia64; then
16766 ld_shlibs=no
16767 cat <<_LT_EOF 1>&2
16769 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16770 *** to be unable to reliably create shared libraries on AIX.
16771 *** Therefore, libtool is disabling shared libraries support. If you
16772 *** really care for shared libraries, you may want to modify your PATH
16773 *** so that a non-GNU linker is found, and then restart.
16775 _LT_EOF
16779 amigaos*)
16780 if test "$host_cpu" = m68k; then
16781 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)'
16782 hardcode_libdir_flag_spec='-L$libdir'
16783 hardcode_minus_L=yes
16786 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16787 # that the semantics of dynamic libraries on AmigaOS, at least up
16788 # to version 4, is to share data among multiple programs linked
16789 # with the same dynamic library. Since this doesn't match the
16790 # behavior of shared libraries on other platforms, we can't use
16791 # them.
16792 ld_shlibs=no
16795 beos*)
16796 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16797 allow_undefined_flag=unsupported
16798 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16799 # support --undefined. This deserves some investigation. FIXME
16800 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16801 else
16802 ld_shlibs=no
16806 cygwin* | mingw* | pw32*)
16807 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16808 # as there is no search path for DLLs.
16809 hardcode_libdir_flag_spec='-L$libdir'
16810 allow_undefined_flag=unsupported
16811 always_export_symbols=no
16812 enable_shared_with_static_runtimes=yes
16813 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16815 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16817 # If the export-symbols file already is a .def file (1st line
16818 # is EXPORTS), use it as is; otherwise, prepend...
16819 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16820 cp $export_symbols $output_objdir/$soname.def;
16821 else
16822 echo EXPORTS > $output_objdir/$soname.def;
16823 cat $export_symbols >> $output_objdir/$soname.def;
16825 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16826 else
16827 ld_shlibs=no
16831 interix[3-9]*)
16832 hardcode_direct=no
16833 hardcode_shlibpath_var=no
16834 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16835 export_dynamic_flag_spec='${wl}-E'
16836 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16837 # Instead, shared libraries are loaded at an image base (0x10000000 by
16838 # default) and relocated if they conflict, which is a slow very memory
16839 # consuming and fragmenting process. To avoid this, we pick a random,
16840 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16841 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16842 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16843 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'
16846 gnu* | linux* | tpf* | k*bsd*-gnu)
16847 tmp_diet=no
16848 if test "$host_os" = linux-dietlibc; then
16849 case $cc_basename in
16850 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16851 esac
16853 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16854 && test "$tmp_diet" = no
16855 then
16856 tmp_addflag=
16857 case $cc_basename,$host_cpu in
16858 pgcc*) # Portland Group C compiler
16859 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'
16860 tmp_addflag=' $pic_flag'
16862 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16863 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'
16864 tmp_addflag=' $pic_flag -Mnomain' ;;
16865 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16866 tmp_addflag=' -i_dynamic' ;;
16867 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16868 tmp_addflag=' -i_dynamic -nofor_main' ;;
16869 ifc* | ifort*) # Intel Fortran compiler
16870 tmp_addflag=' -nofor_main' ;;
16871 esac
16872 case `$CC -V 2>&1 | sed 5q` in
16873 *Sun\ C*) # Sun C 5.9
16874 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'
16875 compiler_needs_object=yes
16876 tmp_sharedflag='-G' ;;
16877 *Sun\ F*) # Sun Fortran 8.3
16878 tmp_sharedflag='-G' ;;
16880 tmp_sharedflag='-shared' ;;
16881 esac
16882 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16884 if test "x$supports_anon_versioning" = xyes; then
16885 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16887 echo "local: *; };" >> $output_objdir/$libname.ver~
16888 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16890 else
16891 ld_shlibs=no
16895 netbsd*)
16896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16897 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16898 wlarc=
16899 else
16900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16901 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16905 solaris*)
16906 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16907 ld_shlibs=no
16908 cat <<_LT_EOF 1>&2
16910 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16911 *** create shared libraries on Solaris systems. Therefore, libtool
16912 *** is disabling shared libraries support. We urge you to upgrade GNU
16913 *** binutils to release 2.9.1 or newer. Another option is to modify
16914 *** your PATH or compiler configuration so that the native linker is
16915 *** used, and then restart.
16917 _LT_EOF
16918 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16921 else
16922 ld_shlibs=no
16926 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16927 case `$LD -v 2>&1` in
16928 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16929 ld_shlibs=no
16930 cat <<_LT_EOF 1>&2
16932 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16933 *** reliably create shared libraries on SCO systems. Therefore, libtool
16934 *** is disabling shared libraries support. We urge you to upgrade GNU
16935 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16936 *** your PATH or compiler configuration so that the native linker is
16937 *** used, and then restart.
16939 _LT_EOF
16942 # For security reasons, it is highly recommended that you always
16943 # use absolute paths for naming shared libraries, and exclude the
16944 # DT_RUNPATH tag from executables and libraries. But doing so
16945 # requires that you compile everything twice, which is a pain.
16946 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16949 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16950 else
16951 ld_shlibs=no
16954 esac
16957 sunos4*)
16958 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16959 wlarc=
16960 hardcode_direct=yes
16961 hardcode_shlibpath_var=no
16965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16967 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16968 else
16969 ld_shlibs=no
16972 esac
16974 if test "$ld_shlibs" = no; then
16975 runpath_var=
16976 hardcode_libdir_flag_spec=
16977 export_dynamic_flag_spec=
16978 whole_archive_flag_spec=
16980 else
16981 # PORTME fill in a description of your system's linker (not GNU ld)
16982 case $host_os in
16983 aix3*)
16984 allow_undefined_flag=unsupported
16985 always_export_symbols=yes
16986 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'
16987 # Note: this linker hardcodes the directories in LIBPATH if there
16988 # are no directories specified by -L.
16989 hardcode_minus_L=yes
16990 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16991 # Neither direct hardcoding nor static linking is supported with a
16992 # broken collect2.
16993 hardcode_direct=unsupported
16997 aix[4-9]*)
16998 if test "$host_cpu" = ia64; then
16999 # On IA64, the linker does run time linking by default, so we don't
17000 # have to do anything special.
17001 aix_use_runtimelinking=no
17002 exp_sym_flag='-Bexport'
17003 no_entry_flag=""
17004 else
17005 # If we're using GNU nm, then we don't want the "-C" option.
17006 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17007 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17008 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'
17009 else
17010 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'
17012 aix_use_runtimelinking=no
17014 # Test if we are trying to use run time linking or normal
17015 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17016 # need to do runtime linking.
17017 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17018 for ld_flag in $LDFLAGS; do
17019 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17020 aix_use_runtimelinking=yes
17021 break
17023 done
17025 esac
17027 exp_sym_flag='-bexport'
17028 no_entry_flag='-bnoentry'
17031 # When large executables or shared objects are built, AIX ld can
17032 # have problems creating the table of contents. If linking a library
17033 # or program results in "error TOC overflow" add -mminimal-toc to
17034 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17035 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17037 archive_cmds=''
17038 hardcode_direct=yes
17039 hardcode_direct_absolute=yes
17040 hardcode_libdir_separator=':'
17041 link_all_deplibs=yes
17042 file_list_spec='${wl}-f,'
17044 if test "$GCC" = yes; then
17045 case $host_os in aix4.[012]|aix4.[012].*)
17046 # We only want to do this on AIX 4.2 and lower, the check
17047 # below for broken collect2 doesn't work under 4.3+
17048 collect2name=`${CC} -print-prog-name=collect2`
17049 if test -f "$collect2name" &&
17050 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17051 then
17052 # We have reworked collect2
17054 else
17055 # We have old collect2
17056 hardcode_direct=unsupported
17057 # It fails to find uninstalled libraries when the uninstalled
17058 # path is not listed in the libpath. Setting hardcode_minus_L
17059 # to unsupported forces relinking
17060 hardcode_minus_L=yes
17061 hardcode_libdir_flag_spec='-L$libdir'
17062 hardcode_libdir_separator=
17065 esac
17066 shared_flag='-shared'
17067 if test "$aix_use_runtimelinking" = yes; then
17068 shared_flag="$shared_flag "'${wl}-G'
17070 else
17071 # not using gcc
17072 if test "$host_cpu" = ia64; then
17073 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17074 # chokes on -Wl,-G. The following line is correct:
17075 shared_flag='-G'
17076 else
17077 if test "$aix_use_runtimelinking" = yes; then
17078 shared_flag='${wl}-G'
17079 else
17080 shared_flag='${wl}-bM:SRE'
17085 # It seems that -bexpall does not export symbols beginning with
17086 # underscore (_), so it is better to generate a list of symbols to export.
17087 always_export_symbols=yes
17088 if test "$aix_use_runtimelinking" = yes; then
17089 # Warning - without using the other runtime loading flags (-brtl),
17090 # -berok will link without error, but may produce a broken library.
17091 allow_undefined_flag='-berok'
17092 # Determine the default libpath from the value encoded in an
17093 # empty executable.
17094 cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h. */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17102 main ()
17106 return 0;
17108 _ACEOF
17109 rm -f conftest.$ac_objext conftest$ac_exeext
17110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17111 (eval $ac_link) 2>conftest.er1
17112 ac_status=$?
17113 grep -v '^ *+' conftest.er1 >conftest.err
17114 rm -f conftest.er1
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } &&
17118 { ac_try='test -z "$ac_c_werror_flag"
17119 || test ! -s conftest.err'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; } &&
17125 { ac_try='test -s conftest$ac_exeext'
17126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127 (eval $ac_try) 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17132 lt_aix_libpath_sed='
17133 /Import File Strings/,/^$/ {
17134 /^0/ {
17135 s/^0 *\(.*\)$/\1/
17139 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17140 # Check for a 64-bit object if we didn't find anything.
17141 if test -z "$aix_libpath"; then
17142 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17144 else
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17149 rm -f conftest.err conftest.$ac_objext \
17150 conftest$ac_exeext conftest.$ac_ext
17151 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17153 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17154 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"
17155 else
17156 if test "$host_cpu" = ia64; then
17157 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17158 allow_undefined_flag="-z nodefs"
17159 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"
17160 else
17161 # Determine the default libpath from the value encoded in an
17162 # empty executable.
17163 cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h. */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17171 main ()
17175 return 0;
17177 _ACEOF
17178 rm -f conftest.$ac_objext conftest$ac_exeext
17179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17180 (eval $ac_link) 2>conftest.er1
17181 ac_status=$?
17182 grep -v '^ *+' conftest.er1 >conftest.err
17183 rm -f conftest.er1
17184 cat conftest.err >&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
17187 { ac_try='test -z "$ac_c_werror_flag"
17188 || test ! -s conftest.err'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try='test -s conftest$ac_exeext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17201 lt_aix_libpath_sed='
17202 /Import File Strings/,/^$/ {
17203 /^0/ {
17204 s/^0 *\(.*\)$/\1/
17208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17209 # Check for a 64-bit object if we didn't find anything.
17210 if test -z "$aix_libpath"; then
17211 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17213 else
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17218 rm -f conftest.err conftest.$ac_objext \
17219 conftest$ac_exeext conftest.$ac_ext
17220 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17222 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17223 # Warning - without using the other run time loading flags,
17224 # -berok will link without error, but may produce a broken library.
17225 no_undefined_flag=' ${wl}-bernotok'
17226 allow_undefined_flag=' ${wl}-berok'
17227 # Exported symbols can be pulled into shared objects from archives
17228 whole_archive_flag_spec='$convenience'
17229 archive_cmds_need_lc=yes
17230 # This is similar to how AIX traditionally builds its shared libraries.
17231 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'
17236 amigaos*)
17237 if test "$host_cpu" = m68k; then
17238 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)'
17239 hardcode_libdir_flag_spec='-L$libdir'
17240 hardcode_minus_L=yes
17242 # see comment about different semantics on the GNU ld section
17243 ld_shlibs=no
17246 bsdi[45]*)
17247 export_dynamic_flag_spec=-rdynamic
17250 cygwin* | mingw* | pw32*)
17251 # When not using gcc, we currently assume that we are using
17252 # Microsoft Visual C++.
17253 # hardcode_libdir_flag_spec is actually meaningless, as there is
17254 # no search path for DLLs.
17255 hardcode_libdir_flag_spec=' '
17256 allow_undefined_flag=unsupported
17257 # Tell ltmain to make .lib files, not .a files.
17258 libext=lib
17259 # Tell ltmain to make .dll files, not .so files.
17260 shrext_cmds=".dll"
17261 # FIXME: Setting linknames here is a bad hack.
17262 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17263 # The linker will automatically build a .lib file if we build a DLL.
17264 old_archive_from_new_cmds='true'
17265 # FIXME: Should let the user specify the lib program.
17266 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17267 fix_srcfile_path='`cygpath -w "$srcfile"`'
17268 enable_shared_with_static_runtimes=yes
17271 darwin* | rhapsody*)
17272 case $host_os in
17273 rhapsody* | darwin1.[012])
17274 allow_undefined_flag='${wl}-undefined ${wl}suppress'
17276 *) # Darwin 1.3 on
17277 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17278 10.[012])
17279 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17281 10.*)
17282 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
17284 esac
17286 esac
17287 archive_cmds_need_lc=no
17288 hardcode_direct=no
17289 hardcode_automatic=yes
17290 hardcode_shlibpath_var=unsupported
17291 whole_archive_flag_spec=''
17292 link_all_deplibs=yes
17293 if test "$GCC" = yes ; then
17294 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297 lt_cv_apple_cc_single_mod=no
17298 if test -z "${LT_MULTI_MODULE}"; then
17299 # By default we will add the -single_module flag. You can override
17300 # by either setting the environment variable LT_MULTI_MODULE
17301 # non-empty at configure time, or by adding -multi-module to the
17302 # link flags.
17303 echo "int foo(void){return 1;}" > conftest.c
17304 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17305 -dynamiclib ${wl}-single_module conftest.c
17306 if test -f libconftest.dylib; then
17307 lt_cv_apple_cc_single_mod=yes
17308 rm libconftest.dylib
17310 rm conftest.$ac_ext
17314 output_verbose_link_cmd=echo
17315 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
17316 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17317 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}'
17318 else
17319 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17320 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}'
17322 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17323 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}'
17324 else
17325 case $cc_basename in
17326 xlc*)
17327 output_verbose_link_cmd=echo
17328 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17329 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17330 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17331 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}'
17332 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}'
17335 ld_shlibs=no
17337 esac
17341 dgux*)
17342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17343 hardcode_libdir_flag_spec='-L$libdir'
17344 hardcode_shlibpath_var=no
17347 freebsd1*)
17348 ld_shlibs=no
17351 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17352 # support. Future versions do this automatically, but an explicit c++rt0.o
17353 # does not break anything, and helps significantly (at the cost of a little
17354 # extra space).
17355 freebsd2.2*)
17356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17357 hardcode_libdir_flag_spec='-R$libdir'
17358 hardcode_direct=yes
17359 hardcode_shlibpath_var=no
17362 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17363 freebsd2*)
17364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17365 hardcode_direct=yes
17366 hardcode_minus_L=yes
17367 hardcode_shlibpath_var=no
17370 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17371 freebsd* | dragonfly*)
17372 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17373 hardcode_libdir_flag_spec='-R$libdir'
17374 hardcode_direct=yes
17375 hardcode_shlibpath_var=no
17378 hpux9*)
17379 if test "$GCC" = yes; then
17380 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'
17381 else
17382 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'
17384 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17385 hardcode_libdir_separator=:
17386 hardcode_direct=yes
17388 # hardcode_minus_L: Not really in the search PATH,
17389 # but as the default location of the library.
17390 hardcode_minus_L=yes
17391 export_dynamic_flag_spec='${wl}-E'
17394 hpux10*)
17395 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17396 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17397 else
17398 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17400 if test "$with_gnu_ld" = no; then
17401 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17402 hardcode_libdir_flag_spec_ld='+b $libdir'
17403 hardcode_libdir_separator=:
17404 hardcode_direct=yes
17405 hardcode_direct_absolute=yes
17406 export_dynamic_flag_spec='${wl}-E'
17407 # hardcode_minus_L: Not really in the search PATH,
17408 # but as the default location of the library.
17409 hardcode_minus_L=yes
17413 hpux11*)
17414 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17415 case $host_cpu in
17416 hppa*64*)
17417 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17419 ia64*)
17420 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17423 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17425 esac
17426 else
17427 case $host_cpu in
17428 hppa*64*)
17429 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17431 ia64*)
17432 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17435 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17437 esac
17439 if test "$with_gnu_ld" = no; then
17440 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17441 hardcode_libdir_separator=:
17443 case $host_cpu in
17444 hppa*64*|ia64*)
17445 hardcode_direct=no
17446 hardcode_shlibpath_var=no
17449 hardcode_direct=yes
17450 hardcode_direct_absolute=yes
17451 export_dynamic_flag_spec='${wl}-E'
17453 # hardcode_minus_L: Not really in the search PATH,
17454 # but as the default location of the library.
17455 hardcode_minus_L=yes
17457 esac
17461 irix5* | irix6* | nonstopux*)
17462 if test "$GCC" = yes; then
17463 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'
17464 # Try to use the -exported_symbol ld option, if it does not
17465 # work, assume that -exports_file does not work either and
17466 # implicitly export all symbols.
17467 save_LDFLAGS="$LDFLAGS"
17468 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17469 cat >conftest.$ac_ext <<_ACEOF
17470 int foo(void) {}
17471 _ACEOF
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17474 (eval $ac_link) 2>conftest.er1
17475 ac_status=$?
17476 grep -v '^ *+' conftest.er1 >conftest.err
17477 rm -f conftest.er1
17478 cat conftest.err >&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
17481 { ac_try='test -z "$ac_c_werror_flag"
17482 || test ! -s conftest.err'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; } &&
17488 { ac_try='test -s conftest$ac_exeext'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 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'
17496 else
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17501 rm -f conftest.err conftest.$ac_objext \
17502 conftest$ac_exeext conftest.$ac_ext
17503 LDFLAGS="$save_LDFLAGS"
17504 else
17505 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'
17506 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'
17508 archive_cmds_need_lc='no'
17509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17510 hardcode_libdir_separator=:
17511 inherit_rpath=yes
17512 link_all_deplibs=yes
17515 netbsd*)
17516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17518 else
17519 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17521 hardcode_libdir_flag_spec='-R$libdir'
17522 hardcode_direct=yes
17523 hardcode_shlibpath_var=no
17526 newsos6)
17527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17528 hardcode_direct=yes
17529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17530 hardcode_libdir_separator=:
17531 hardcode_shlibpath_var=no
17534 *nto* | *qnx*)
17537 openbsd*)
17538 hardcode_direct=yes
17539 hardcode_shlibpath_var=no
17540 hardcode_direct_absolute=yes
17541 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17542 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17543 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17544 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17545 export_dynamic_flag_spec='${wl}-E'
17546 else
17547 case $host_os in
17548 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17550 hardcode_libdir_flag_spec='-R$libdir'
17553 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17554 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17556 esac
17560 os2*)
17561 hardcode_libdir_flag_spec='-L$libdir'
17562 hardcode_minus_L=yes
17563 allow_undefined_flag=unsupported
17564 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'
17565 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17568 osf3*)
17569 if test "$GCC" = yes; then
17570 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17571 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'
17572 else
17573 allow_undefined_flag=' -expect_unresolved \*'
17574 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'
17576 archive_cmds_need_lc='no'
17577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17578 hardcode_libdir_separator=:
17581 osf4* | osf5*) # as osf3* with the addition of -msym flag
17582 if test "$GCC" = yes; then
17583 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17584 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'
17585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17586 else
17587 allow_undefined_flag=' -expect_unresolved \*'
17588 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'
17589 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~
17590 $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'
17592 # Both c and cxx compiler support -rpath directly
17593 hardcode_libdir_flag_spec='-rpath $libdir'
17595 archive_cmds_need_lc='no'
17596 hardcode_libdir_separator=:
17599 solaris*)
17600 no_undefined_flag=' -z defs'
17601 if test "$GCC" = yes; then
17602 wlarc='${wl}'
17603 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17605 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17606 else
17607 case `$CC -V 2>&1` in
17608 *"Compilers 5.0"*)
17609 wlarc=''
17610 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17615 wlarc='${wl}'
17616 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17617 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17618 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17620 esac
17622 hardcode_libdir_flag_spec='-R$libdir'
17623 hardcode_shlibpath_var=no
17624 case $host_os in
17625 solaris2.[0-5] | solaris2.[0-5].*) ;;
17627 # The compiler driver will combine and reorder linker options,
17628 # but understands `-z linker_flag'. GCC discards it without `$wl',
17629 # but is careful enough not to reorder.
17630 # Supported since Solaris 2.6 (maybe 2.5.1?)
17631 if test "$GCC" = yes; then
17632 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17633 else
17634 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17637 esac
17638 link_all_deplibs=yes
17641 sunos4*)
17642 if test "x$host_vendor" = xsequent; then
17643 # Use $CC to link under sequent, because it throws in some extra .o
17644 # files that make .init and .fini sections work.
17645 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17646 else
17647 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17649 hardcode_libdir_flag_spec='-L$libdir'
17650 hardcode_direct=yes
17651 hardcode_minus_L=yes
17652 hardcode_shlibpath_var=no
17655 sysv4)
17656 case $host_vendor in
17657 sni)
17658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17659 hardcode_direct=yes # is this really true???
17661 siemens)
17662 ## LD is ld it makes a PLAMLIB
17663 ## CC just makes a GrossModule.
17664 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17665 reload_cmds='$CC -r -o $output$reload_objs'
17666 hardcode_direct=no
17668 motorola)
17669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17670 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17672 esac
17673 runpath_var='LD_RUN_PATH'
17674 hardcode_shlibpath_var=no
17677 sysv4.3*)
17678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17679 hardcode_shlibpath_var=no
17680 export_dynamic_flag_spec='-Bexport'
17683 sysv4*MP*)
17684 if test -d /usr/nec; then
17685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17686 hardcode_shlibpath_var=no
17687 runpath_var=LD_RUN_PATH
17688 hardcode_runpath_var=yes
17689 ld_shlibs=yes
17693 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17694 no_undefined_flag='${wl}-z,text'
17695 archive_cmds_need_lc=no
17696 hardcode_shlibpath_var=no
17697 runpath_var='LD_RUN_PATH'
17699 if test "$GCC" = yes; then
17700 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17701 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17702 else
17703 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17704 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17708 sysv5* | sco3.2v5* | sco5v6*)
17709 # Note: We can NOT use -z defs as we might desire, because we do not
17710 # link with -lc, and that would cause any symbols used from libc to
17711 # always be unresolved, which means just about no library would
17712 # ever link correctly. If we're not using GNU ld we use -z text
17713 # though, which does catch some bad symbols but isn't as heavy-handed
17714 # as -z defs.
17715 no_undefined_flag='${wl}-z,text'
17716 allow_undefined_flag='${wl}-z,nodefs'
17717 archive_cmds_need_lc=no
17718 hardcode_shlibpath_var=no
17719 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17720 hardcode_libdir_separator=':'
17721 link_all_deplibs=yes
17722 export_dynamic_flag_spec='${wl}-Bexport'
17723 runpath_var='LD_RUN_PATH'
17725 if test "$GCC" = yes; then
17726 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17727 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17728 else
17729 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17730 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17734 uts4*)
17735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17736 hardcode_libdir_flag_spec='-L$libdir'
17737 hardcode_shlibpath_var=no
17741 ld_shlibs=no
17743 esac
17745 if test x$host_vendor = xsni; then
17746 case $host in
17747 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17748 export_dynamic_flag_spec='${wl}-Blargedynsym'
17750 esac
17754 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
17755 echo "${ECHO_T}$ld_shlibs" >&6
17756 test "$ld_shlibs" = no && can_build_shared=no
17758 with_gnu_ld=$with_gnu_ld
17775 # Do we need to explicitly link libc?
17777 case "x$archive_cmds_need_lc" in
17778 x|xyes)
17779 # Assume -lc should be added
17780 archive_cmds_need_lc=yes
17782 if test "$enable_shared" = yes && test "$GCC" = yes; then
17783 case $archive_cmds in
17784 *'~'*)
17785 # FIXME: we may have to deal with multi-command sequences.
17787 '$CC '*)
17788 # Test whether the compiler implicitly links with -lc since on some
17789 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17790 # to ld, don't add -lc before -lgcc.
17791 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17792 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17793 $RM conftest*
17794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17797 (eval $ac_compile) 2>&5
17798 ac_status=$?
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } 2>conftest.err; then
17801 soname=conftest
17802 lib=conftest
17803 libobjs=conftest.$ac_objext
17804 deplibs=
17805 wl=$lt_prog_compiler_wl
17806 pic_flag=$lt_prog_compiler_pic
17807 compiler_flags=-v
17808 linker_flags=-v
17809 verstring=
17810 output_objdir=.
17811 libname=conftest
17812 lt_save_allow_undefined_flag=$allow_undefined_flag
17813 allow_undefined_flag=
17814 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17815 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }
17819 then
17820 archive_cmds_need_lc=no
17821 else
17822 archive_cmds_need_lc=yes
17824 allow_undefined_flag=$lt_save_allow_undefined_flag
17825 else
17826 cat conftest.err 1>&5
17828 $RM conftest*
17829 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
17830 echo "${ECHO_T}$archive_cmds_need_lc" >&6
17832 esac
17835 esac
17993 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17994 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17995 withGCC=$GCC
17996 if test "$withGCC" = yes; then
17997 case $host_os in
17998 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17999 *) lt_awk_arg="/^libraries:/" ;;
18000 esac
18001 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18002 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18003 # if the path contains ";" then we assume it to be the separator
18004 # otherwise default to the standard path separator (i.e. ":") - it is
18005 # assumed that no part of a normal pathname contains ";" but that should
18006 # okay in the real world where ";" in dirpaths is itself problematic.
18007 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18008 else
18009 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18011 # Ok, now we have the path, separated by spaces, we can step through it
18012 # and add multilib dir if necessary.
18013 lt_tmp_lt_search_path_spec=
18014 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18015 for lt_sys_path in $lt_search_path_spec; do
18016 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18017 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18018 else
18019 test -d "$lt_sys_path" && \
18020 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18022 done
18023 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18024 BEGIN {RS=" "; FS="/|\n";} {
18025 lt_foo="";
18026 lt_count=0;
18027 for (lt_i = NF; lt_i > 0; lt_i--) {
18028 if ($lt_i != "" && $lt_i != ".") {
18029 if ($lt_i == "..") {
18030 lt_count++;
18031 } else {
18032 if (lt_count == 0) {
18033 lt_foo="/" $lt_i lt_foo;
18034 } else {
18035 lt_count--;
18040 if (lt_foo != "") { lt_freq[lt_foo]++; }
18041 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18043 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18044 else
18045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18047 library_names_spec=
18048 libname_spec='lib$name'
18049 soname_spec=
18050 shrext_cmds=".so"
18051 postinstall_cmds=
18052 postuninstall_cmds=
18053 finish_cmds=
18054 finish_eval=
18055 shlibpath_var=
18056 shlibpath_overrides_runpath=unknown
18057 version_type=none
18058 dynamic_linker="$host_os ld.so"
18059 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18060 need_lib_prefix=unknown
18061 hardcode_into_libs=no
18063 # when you set need_version to no, make sure it does not cause -set_version
18064 # flags to be left without arguments
18065 need_version=unknown
18067 case $host_os in
18068 aix3*)
18069 version_type=linux
18070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18071 shlibpath_var=LIBPATH
18073 # AIX 3 has no versioning support, so we append a major version to the name.
18074 soname_spec='${libname}${release}${shared_ext}$major'
18077 aix[4-9]*)
18078 version_type=linux
18079 need_lib_prefix=no
18080 need_version=no
18081 hardcode_into_libs=yes
18082 if test "$host_cpu" = ia64; then
18083 # AIX 5 supports IA64
18084 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18085 shlibpath_var=LD_LIBRARY_PATH
18086 else
18087 # With GCC up to 2.95.x, collect2 would create an import file
18088 # for dependence libraries. The import file would start with
18089 # the line `#! .'. This would cause the generated library to
18090 # depend on `.', always an invalid library. This was fixed in
18091 # development snapshots of GCC prior to 3.0.
18092 case $host_os in
18093 aix4 | aix4.[01] | aix4.[01].*)
18094 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18095 echo ' yes '
18096 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18098 else
18099 can_build_shared=no
18102 esac
18103 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18104 # soname into executable. Probably we can add versioning support to
18105 # collect2, so additional links can be useful in future.
18106 if test "$aix_use_runtimelinking" = yes; then
18107 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18108 # instead of lib<name>.a to let people know that these are not
18109 # typical AIX shared libraries.
18110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18111 else
18112 # We preserve .a as extension for shared libraries through AIX4.2
18113 # and later when we are not doing run time linking.
18114 library_names_spec='${libname}${release}.a $libname.a'
18115 soname_spec='${libname}${release}${shared_ext}$major'
18117 shlibpath_var=LIBPATH
18121 amigaos*)
18122 if test "$host_cpu" = m68k; then
18123 library_names_spec='$libname.ixlibrary $libname.a'
18124 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18125 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'
18126 else
18127 dynamic_linker=no
18131 beos*)
18132 library_names_spec='${libname}${shared_ext}'
18133 dynamic_linker="$host_os ld.so"
18134 shlibpath_var=LIBRARY_PATH
18137 bsdi[45]*)
18138 version_type=linux
18139 need_version=no
18140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18141 soname_spec='${libname}${release}${shared_ext}$major'
18142 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18143 shlibpath_var=LD_LIBRARY_PATH
18144 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18145 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18146 # the default ld.so.conf also contains /usr/contrib/lib and
18147 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18148 # libtool to hard-code these into programs
18151 cygwin* | mingw* | pw32*)
18152 version_type=windows
18153 shrext_cmds=".dll"
18154 need_version=no
18155 need_lib_prefix=no
18157 case $withGCC,$host_os in
18158 yes,cygwin* | yes,mingw* | yes,pw32*)
18159 library_names_spec='$libname.dll.a'
18160 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18161 postinstall_cmds='base_file=`basename \${file}`~
18162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18163 dldir=$destdir/`dirname \$dlpath`~
18164 test -d \$dldir || mkdir -p \$dldir~
18165 $install_prog $dir/$dlname \$dldir/$dlname~
18166 chmod a+x \$dldir/$dlname~
18167 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18168 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18170 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18171 dlpath=$dir/\$dldll~
18172 $RM \$dlpath'
18173 shlibpath_overrides_runpath=yes
18175 case $host_os in
18176 cygwin*)
18177 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18178 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18179 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18181 mingw*)
18182 # MinGW DLLs use traditional 'lib' prefix
18183 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18184 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18185 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18186 # It is most probably a Windows format PATH printed by
18187 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18188 # path with ; separators, and with drive letters. We can handle the
18189 # drive letters (cygwin fileutils understands them), so leave them,
18190 # especially as we might pass files found there to a mingw objdump,
18191 # which wouldn't understand a cygwinified path. Ahh.
18192 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18193 else
18194 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18197 pw32*)
18198 # pw32 DLLs use 'pw' prefix rather than 'lib'
18199 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18201 esac
18205 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18207 esac
18208 dynamic_linker='Win32 ld.exe'
18209 # FIXME: first we should search . and the directory the executable is in
18210 shlibpath_var=PATH
18213 darwin* | rhapsody*)
18214 dynamic_linker="$host_os dyld"
18215 version_type=darwin
18216 need_lib_prefix=no
18217 need_version=no
18218 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18219 soname_spec='${libname}${release}${major}$shared_ext'
18220 shlibpath_overrides_runpath=yes
18221 shlibpath_var=DYLD_LIBRARY_PATH
18222 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18224 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18225 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18228 dgux*)
18229 version_type=linux
18230 need_lib_prefix=no
18231 need_version=no
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 shlibpath_var=LD_LIBRARY_PATH
18237 freebsd1*)
18238 dynamic_linker=no
18241 freebsd* | dragonfly*)
18242 # DragonFly does not have aout. When/if they implement a new
18243 # versioning mechanism, adjust this.
18244 if test -x /usr/bin/objformat; then
18245 objformat=`/usr/bin/objformat`
18246 else
18247 case $host_os in
18248 freebsd[123]*) objformat=aout ;;
18249 *) objformat=elf ;;
18250 esac
18252 version_type=freebsd-$objformat
18253 case $version_type in
18254 freebsd-elf*)
18255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18256 need_version=no
18257 need_lib_prefix=no
18259 freebsd-*)
18260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18261 need_version=yes
18263 esac
18264 shlibpath_var=LD_LIBRARY_PATH
18265 case $host_os in
18266 freebsd2*)
18267 shlibpath_overrides_runpath=yes
18269 freebsd3.[01]* | freebsdelf3.[01]*)
18270 shlibpath_overrides_runpath=yes
18271 hardcode_into_libs=yes
18273 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18274 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18275 shlibpath_overrides_runpath=no
18276 hardcode_into_libs=yes
18278 *) # from 4.6 on, and DragonFly
18279 shlibpath_overrides_runpath=yes
18280 hardcode_into_libs=yes
18282 esac
18285 gnu*)
18286 version_type=linux
18287 need_lib_prefix=no
18288 need_version=no
18289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18290 soname_spec='${libname}${release}${shared_ext}$major'
18291 shlibpath_var=LD_LIBRARY_PATH
18292 hardcode_into_libs=yes
18295 hpux9* | hpux10* | hpux11*)
18296 # Give a soname corresponding to the major version so that dld.sl refuses to
18297 # link against other versions.
18298 version_type=sunos
18299 need_lib_prefix=no
18300 need_version=no
18301 case $host_cpu in
18302 ia64*)
18303 shrext_cmds='.so'
18304 hardcode_into_libs=yes
18305 dynamic_linker="$host_os dld.so"
18306 shlibpath_var=LD_LIBRARY_PATH
18307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309 soname_spec='${libname}${release}${shared_ext}$major'
18310 if test "X$HPUX_IA64_MODE" = X32; then
18311 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18312 else
18313 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18317 hppa*64*)
18318 shrext_cmds='.sl'
18319 hardcode_into_libs=yes
18320 dynamic_linker="$host_os dld.sl"
18321 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324 soname_spec='${libname}${release}${shared_ext}$major'
18325 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18329 shrext_cmds='.sl'
18330 dynamic_linker="$host_os dld.sl"
18331 shlibpath_var=SHLIB_PATH
18332 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18334 soname_spec='${libname}${release}${shared_ext}$major'
18336 esac
18337 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18338 postinstall_cmds='chmod 555 $lib'
18341 interix[3-9]*)
18342 version_type=linux
18343 need_lib_prefix=no
18344 need_version=no
18345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18346 soname_spec='${libname}${release}${shared_ext}$major'
18347 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18348 shlibpath_var=LD_LIBRARY_PATH
18349 shlibpath_overrides_runpath=no
18350 hardcode_into_libs=yes
18353 irix5* | irix6* | nonstopux*)
18354 case $host_os in
18355 nonstopux*) version_type=nonstopux ;;
18357 if test "$lt_cv_prog_gnu_ld" = yes; then
18358 version_type=linux
18359 else
18360 version_type=irix
18361 fi ;;
18362 esac
18363 need_lib_prefix=no
18364 need_version=no
18365 soname_spec='${libname}${release}${shared_ext}$major'
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18367 case $host_os in
18368 irix5* | nonstopux*)
18369 libsuff= shlibsuff=
18372 case $LD in # libtool.m4 will add one of these switches to LD
18373 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18374 libsuff= shlibsuff= libmagic=32-bit;;
18375 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18376 libsuff=32 shlibsuff=N32 libmagic=N32;;
18377 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18378 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18379 *) libsuff= shlibsuff= libmagic=never-match;;
18380 esac
18382 esac
18383 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18384 shlibpath_overrides_runpath=no
18385 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18386 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18387 hardcode_into_libs=yes
18390 # No shared lib support for Linux oldld, aout, or coff.
18391 linux*oldld* | linux*aout* | linux*coff*)
18392 dynamic_linker=no
18395 # This must be Linux ELF.
18396 linux* | k*bsd*-gnu)
18397 version_type=linux
18398 need_lib_prefix=no
18399 need_version=no
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18403 shlibpath_var=LD_LIBRARY_PATH
18404 shlibpath_overrides_runpath=no
18405 # Some binutils ld are patched to set DT_RUNPATH
18406 save_LDFLAGS=$LDFLAGS
18407 save_libdir=$libdir
18408 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18409 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18410 cat >conftest.$ac_ext <<_ACEOF
18411 /* confdefs.h. */
18412 _ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h. */
18418 main ()
18422 return 0;
18424 _ACEOF
18425 rm -f conftest.$ac_objext conftest$ac_exeext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18427 (eval $ac_link) 2>conftest.er1
18428 ac_status=$?
18429 grep -v '^ *+' conftest.er1 >conftest.err
18430 rm -f conftest.er1
18431 cat conftest.err >&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
18434 { ac_try='test -z "$ac_c_werror_flag"
18435 || test ! -s conftest.err'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest$ac_exeext'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
18448 shlibpath_overrides_runpath=yes
18451 else
18452 echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18456 rm -f conftest.err conftest.$ac_objext \
18457 conftest$ac_exeext conftest.$ac_ext
18458 LDFLAGS=$save_LDFLAGS
18459 libdir=$save_libdir
18461 # This implies no fast_install, which is unacceptable.
18462 # Some rework will be needed to allow for fast_install
18463 # before this can be enabled.
18464 hardcode_into_libs=yes
18466 # Append ld.so.conf contents to the search path
18467 if test -f /etc/ld.so.conf; then
18468 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' ' '`
18469 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18472 # We used to test for /lib/ld.so.1 and disable shared libraries on
18473 # powerpc, because MkLinux only supported shared libraries with the
18474 # GNU dynamic linker. Since this was broken with cross compilers,
18475 # most powerpc-linux boxes support dynamic linking these days and
18476 # people can always --disable-shared, the test was removed, and we
18477 # assume the GNU/Linux dynamic linker is in use.
18478 dynamic_linker='GNU/Linux ld.so'
18481 netbsd*)
18482 version_type=sunos
18483 need_lib_prefix=no
18484 need_version=no
18485 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18488 dynamic_linker='NetBSD (a.out) ld.so'
18489 else
18490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18491 soname_spec='${libname}${release}${shared_ext}$major'
18492 dynamic_linker='NetBSD ld.elf_so'
18494 shlibpath_var=LD_LIBRARY_PATH
18495 shlibpath_overrides_runpath=yes
18496 hardcode_into_libs=yes
18499 newsos6)
18500 version_type=linux
18501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18502 shlibpath_var=LD_LIBRARY_PATH
18503 shlibpath_overrides_runpath=yes
18506 *nto* | *qnx*)
18507 version_type=qnx
18508 need_lib_prefix=no
18509 need_version=no
18510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18511 soname_spec='${libname}${release}${shared_ext}$major'
18512 shlibpath_var=LD_LIBRARY_PATH
18513 shlibpath_overrides_runpath=no
18514 hardcode_into_libs=yes
18515 dynamic_linker='ldqnx.so'
18518 openbsd*)
18519 version_type=sunos
18520 sys_lib_dlsearch_path_spec="/usr/lib"
18521 need_lib_prefix=no
18522 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18523 case $host_os in
18524 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18525 *) need_version=no ;;
18526 esac
18527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18529 shlibpath_var=LD_LIBRARY_PATH
18530 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18531 case $host_os in
18532 openbsd2.[89] | openbsd2.[89].*)
18533 shlibpath_overrides_runpath=no
18536 shlibpath_overrides_runpath=yes
18538 esac
18539 else
18540 shlibpath_overrides_runpath=yes
18544 os2*)
18545 libname_spec='$name'
18546 shrext_cmds=".dll"
18547 need_lib_prefix=no
18548 library_names_spec='$libname${shared_ext} $libname.a'
18549 dynamic_linker='OS/2 ld.exe'
18550 shlibpath_var=LIBPATH
18553 osf3* | osf4* | osf5*)
18554 version_type=osf
18555 need_lib_prefix=no
18556 need_version=no
18557 soname_spec='${libname}${release}${shared_ext}$major'
18558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18559 shlibpath_var=LD_LIBRARY_PATH
18560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18561 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18564 rdos*)
18565 dynamic_linker=no
18568 solaris*)
18569 version_type=linux
18570 need_lib_prefix=no
18571 need_version=no
18572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573 soname_spec='${libname}${release}${shared_ext}$major'
18574 shlibpath_var=LD_LIBRARY_PATH
18575 shlibpath_overrides_runpath=yes
18576 hardcode_into_libs=yes
18577 # ldd complains unless libraries are executable
18578 postinstall_cmds='chmod +x $lib'
18581 sunos4*)
18582 version_type=sunos
18583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18585 shlibpath_var=LD_LIBRARY_PATH
18586 shlibpath_overrides_runpath=yes
18587 if test "$with_gnu_ld" = yes; then
18588 need_lib_prefix=no
18590 need_version=yes
18593 sysv4 | sysv4.3*)
18594 version_type=linux
18595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18596 soname_spec='${libname}${release}${shared_ext}$major'
18597 shlibpath_var=LD_LIBRARY_PATH
18598 case $host_vendor in
18599 sni)
18600 shlibpath_overrides_runpath=no
18601 need_lib_prefix=no
18602 runpath_var=LD_RUN_PATH
18604 siemens)
18605 need_lib_prefix=no
18607 motorola)
18608 need_lib_prefix=no
18609 need_version=no
18610 shlibpath_overrides_runpath=no
18611 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18613 esac
18616 sysv4*MP*)
18617 if test -d /usr/nec ;then
18618 version_type=linux
18619 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18620 soname_spec='$libname${shared_ext}.$major'
18621 shlibpath_var=LD_LIBRARY_PATH
18625 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18626 version_type=freebsd-elf
18627 need_lib_prefix=no
18628 need_version=no
18629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18630 soname_spec='${libname}${release}${shared_ext}$major'
18631 shlibpath_var=LD_LIBRARY_PATH
18632 shlibpath_overrides_runpath=yes
18633 hardcode_into_libs=yes
18634 if test "$with_gnu_ld" = yes; then
18635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18636 else
18637 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18638 case $host_os in
18639 sco3.2v5*)
18640 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18642 esac
18644 sys_lib_dlsearch_path_spec='/usr/lib'
18647 tpf*)
18648 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18649 version_type=linux
18650 need_lib_prefix=no
18651 need_version=no
18652 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18653 shlibpath_var=LD_LIBRARY_PATH
18654 shlibpath_overrides_runpath=no
18655 hardcode_into_libs=yes
18658 uts4*)
18659 version_type=linux
18660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18661 soname_spec='${libname}${release}${shared_ext}$major'
18662 shlibpath_var=LD_LIBRARY_PATH
18666 dynamic_linker=no
18668 esac
18669 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18670 echo "${ECHO_T}$dynamic_linker" >&6
18671 test "$dynamic_linker" = no && can_build_shared=no
18673 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18674 if test "$GCC" = yes; then
18675 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18764 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18765 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18766 hardcode_action=
18767 if test -n "$hardcode_libdir_flag_spec" ||
18768 test -n "$runpath_var" ||
18769 test "X$hardcode_automatic" = "Xyes" ; then
18771 # We can hardcode non-existent directories.
18772 if test "$hardcode_direct" != no &&
18773 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18774 # have to relink, otherwise we might link with an installed library
18775 # when we should be linking with a yet-to-be-installed one
18776 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18777 test "$hardcode_minus_L" != no; then
18778 # Linking always hardcodes the temporary library directory.
18779 hardcode_action=relink
18780 else
18781 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18782 hardcode_action=immediate
18784 else
18785 # We cannot hardcode anything, or else we can only hardcode existing
18786 # directories.
18787 hardcode_action=unsupported
18789 echo "$as_me:$LINENO: result: $hardcode_action" >&5
18790 echo "${ECHO_T}$hardcode_action" >&6
18792 if test "$hardcode_action" = relink ||
18793 test "$inherit_rpath" = yes; then
18794 # Fast installation is not supported
18795 enable_fast_install=no
18796 elif test "$shlibpath_overrides_runpath" = yes ||
18797 test "$enable_shared" = no; then
18798 # Fast installation is not necessary
18799 enable_fast_install=needless
18807 if test "x$enable_dlopen" != xyes; then
18808 enable_dlopen=unknown
18809 enable_dlopen_self=unknown
18810 enable_dlopen_self_static=unknown
18811 else
18812 lt_cv_dlopen=no
18813 lt_cv_dlopen_libs=
18815 case $host_os in
18816 beos*)
18817 lt_cv_dlopen="load_add_on"
18818 lt_cv_dlopen_libs=
18819 lt_cv_dlopen_self=yes
18822 mingw* | pw32*)
18823 lt_cv_dlopen="LoadLibrary"
18824 lt_cv_dlopen_libs=
18827 cygwin*)
18828 lt_cv_dlopen="dlopen"
18829 lt_cv_dlopen_libs=
18832 darwin*)
18833 # if libdl is installed we need to link against it
18834 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839 ac_check_lib_save_LIBS=$LIBS
18840 LIBS="-ldl $LIBS"
18841 cat >conftest.$ac_ext <<_ACEOF
18842 /* confdefs.h. */
18843 _ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h. */
18848 /* Override any gcc2 internal prototype to avoid an error. */
18849 #ifdef __cplusplus
18850 extern "C"
18851 #endif
18852 /* We use char because int might match the return type of a gcc2
18853 builtin and then its argument prototype would still apply. */
18854 char dlopen ();
18856 main ()
18858 dlopen ();
18860 return 0;
18862 _ACEOF
18863 rm -f conftest.$ac_objext conftest$ac_exeext
18864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18865 (eval $ac_link) 2>conftest.er1
18866 ac_status=$?
18867 grep -v '^ *+' conftest.er1 >conftest.err
18868 rm -f conftest.er1
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } &&
18872 { ac_try='test -z "$ac_c_werror_flag"
18873 || test ! -s conftest.err'
18874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18876 ac_status=$?
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; } &&
18879 { ac_try='test -s conftest$ac_exeext'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18885 ac_cv_lib_dl_dlopen=yes
18886 else
18887 echo "$as_me: failed program was:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18890 ac_cv_lib_dl_dlopen=no
18892 rm -f conftest.err conftest.$ac_objext \
18893 conftest$ac_exeext conftest.$ac_ext
18894 LIBS=$ac_check_lib_save_LIBS
18896 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18897 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18898 if test $ac_cv_lib_dl_dlopen = yes; then
18899 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18900 else
18902 lt_cv_dlopen="dyld"
18903 lt_cv_dlopen_libs=
18904 lt_cv_dlopen_self=yes
18911 echo "$as_me:$LINENO: checking for shl_load" >&5
18912 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18913 if test "${ac_cv_func_shl_load+set}" = set; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915 else
18916 cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h. */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18924 #define shl_load innocuous_shl_load
18926 /* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char shl_load (); below.
18928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18929 <limits.h> exists even on freestanding compilers. */
18931 #ifdef __STDC__
18932 # include <limits.h>
18933 #else
18934 # include <assert.h>
18935 #endif
18937 #undef shl_load
18939 /* Override any gcc2 internal prototype to avoid an error. */
18940 #ifdef __cplusplus
18941 extern "C"
18943 #endif
18944 /* We use char because int might match the return type of a gcc2
18945 builtin and then its argument prototype would still apply. */
18946 char shl_load ();
18947 /* The GNU C library defines this for functions which it implements
18948 to always fail with ENOSYS. Some functions are actually named
18949 something starting with __ and the normal name is an alias. */
18950 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18951 choke me
18952 #else
18953 char (*f) () = shl_load;
18954 #endif
18955 #ifdef __cplusplus
18957 #endif
18960 main ()
18962 return f != shl_load;
18964 return 0;
18966 _ACEOF
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18969 (eval $ac_link) 2>conftest.er1
18970 ac_status=$?
18971 grep -v '^ *+' conftest.er1 >conftest.err
18972 rm -f conftest.er1
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } &&
18976 { ac_try='test -z "$ac_c_werror_flag"
18977 || test ! -s conftest.err'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; } &&
18983 { ac_try='test -s conftest$ac_exeext'
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18986 ac_status=$?
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18989 ac_cv_func_shl_load=yes
18990 else
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18994 ac_cv_func_shl_load=no
18996 rm -f conftest.err conftest.$ac_objext \
18997 conftest$ac_exeext conftest.$ac_ext
18999 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19000 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19001 if test $ac_cv_func_shl_load = yes; then
19002 lt_cv_dlopen="shl_load"
19003 else
19004 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19005 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19006 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009 ac_check_lib_save_LIBS=$LIBS
19010 LIBS="-ldld $LIBS"
19011 cat >conftest.$ac_ext <<_ACEOF
19012 /* confdefs.h. */
19013 _ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h. */
19018 /* Override any gcc2 internal prototype to avoid an error. */
19019 #ifdef __cplusplus
19020 extern "C"
19021 #endif
19022 /* We use char because int might match the return type of a gcc2
19023 builtin and then its argument prototype would still apply. */
19024 char shl_load ();
19026 main ()
19028 shl_load ();
19030 return 0;
19032 _ACEOF
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19035 (eval $ac_link) 2>conftest.er1
19036 ac_status=$?
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag"
19043 || test ! -s conftest.err'
19044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045 (eval $ac_try) 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; } &&
19049 { ac_try='test -s conftest$ac_exeext'
19050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051 (eval $ac_try) 2>&5
19052 ac_status=$?
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; }; then
19055 ac_cv_lib_dld_shl_load=yes
19056 else
19057 echo "$as_me: failed program was:" >&5
19058 sed 's/^/| /' conftest.$ac_ext >&5
19060 ac_cv_lib_dld_shl_load=no
19062 rm -f conftest.err conftest.$ac_objext \
19063 conftest$ac_exeext conftest.$ac_ext
19064 LIBS=$ac_check_lib_save_LIBS
19066 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19067 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19068 if test $ac_cv_lib_dld_shl_load = yes; then
19069 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19070 else
19071 echo "$as_me:$LINENO: checking for dlopen" >&5
19072 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19073 if test "${ac_cv_func_dlopen+set}" = set; then
19074 echo $ECHO_N "(cached) $ECHO_C" >&6
19075 else
19076 cat >conftest.$ac_ext <<_ACEOF
19077 /* confdefs.h. */
19078 _ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h. */
19082 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19084 #define dlopen innocuous_dlopen
19086 /* System header to define __stub macros and hopefully few prototypes,
19087 which can conflict with char dlopen (); below.
19088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19089 <limits.h> exists even on freestanding compilers. */
19091 #ifdef __STDC__
19092 # include <limits.h>
19093 #else
19094 # include <assert.h>
19095 #endif
19097 #undef dlopen
19099 /* Override any gcc2 internal prototype to avoid an error. */
19100 #ifdef __cplusplus
19101 extern "C"
19103 #endif
19104 /* We use char because int might match the return type of a gcc2
19105 builtin and then its argument prototype would still apply. */
19106 char dlopen ();
19107 /* The GNU C library defines this for functions which it implements
19108 to always fail with ENOSYS. Some functions are actually named
19109 something starting with __ and the normal name is an alias. */
19110 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19111 choke me
19112 #else
19113 char (*f) () = dlopen;
19114 #endif
19115 #ifdef __cplusplus
19117 #endif
19120 main ()
19122 return f != dlopen;
19124 return 0;
19126 _ACEOF
19127 rm -f conftest.$ac_objext conftest$ac_exeext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19129 (eval $ac_link) 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } &&
19136 { ac_try='test -z "$ac_c_werror_flag"
19137 || test ! -s conftest.err'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try='test -s conftest$ac_exeext'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19149 ac_cv_func_dlopen=yes
19150 else
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 ac_cv_func_dlopen=no
19156 rm -f conftest.err conftest.$ac_objext \
19157 conftest$ac_exeext conftest.$ac_ext
19159 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19160 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19161 if test $ac_cv_func_dlopen = yes; then
19162 lt_cv_dlopen="dlopen"
19163 else
19164 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19165 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19166 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169 ac_check_lib_save_LIBS=$LIBS
19170 LIBS="-ldl $LIBS"
19171 cat >conftest.$ac_ext <<_ACEOF
19172 /* confdefs.h. */
19173 _ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19178 /* Override any gcc2 internal prototype to avoid an error. */
19179 #ifdef __cplusplus
19180 extern "C"
19181 #endif
19182 /* We use char because int might match the return type of a gcc2
19183 builtin and then its argument prototype would still apply. */
19184 char dlopen ();
19186 main ()
19188 dlopen ();
19190 return 0;
19192 _ACEOF
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19195 (eval $ac_link) 2>conftest.er1
19196 ac_status=$?
19197 grep -v '^ *+' conftest.er1 >conftest.err
19198 rm -f conftest.er1
19199 cat conftest.err >&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); } &&
19202 { ac_try='test -z "$ac_c_werror_flag"
19203 || test ! -s conftest.err'
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; } &&
19209 { ac_try='test -s conftest$ac_exeext'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; }; then
19215 ac_cv_lib_dl_dlopen=yes
19216 else
19217 echo "$as_me: failed program was:" >&5
19218 sed 's/^/| /' conftest.$ac_ext >&5
19220 ac_cv_lib_dl_dlopen=no
19222 rm -f conftest.err conftest.$ac_objext \
19223 conftest$ac_exeext conftest.$ac_ext
19224 LIBS=$ac_check_lib_save_LIBS
19226 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19227 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19228 if test $ac_cv_lib_dl_dlopen = yes; then
19229 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19230 else
19231 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19232 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19233 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236 ac_check_lib_save_LIBS=$LIBS
19237 LIBS="-lsvld $LIBS"
19238 cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h. */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19245 /* Override any gcc2 internal prototype to avoid an error. */
19246 #ifdef __cplusplus
19247 extern "C"
19248 #endif
19249 /* We use char because int might match the return type of a gcc2
19250 builtin and then its argument prototype would still apply. */
19251 char dlopen ();
19253 main ()
19255 dlopen ();
19257 return 0;
19259 _ACEOF
19260 rm -f conftest.$ac_objext conftest$ac_exeext
19261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19262 (eval $ac_link) 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } &&
19269 { ac_try='test -z "$ac_c_werror_flag"
19270 || test ! -s conftest.err'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; } &&
19276 { ac_try='test -s conftest$ac_exeext'
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; }; then
19282 ac_cv_lib_svld_dlopen=yes
19283 else
19284 echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19287 ac_cv_lib_svld_dlopen=no
19289 rm -f conftest.err conftest.$ac_objext \
19290 conftest$ac_exeext conftest.$ac_ext
19291 LIBS=$ac_check_lib_save_LIBS
19293 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19294 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19295 if test $ac_cv_lib_svld_dlopen = yes; then
19296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19297 else
19298 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19299 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19300 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19301 echo $ECHO_N "(cached) $ECHO_C" >&6
19302 else
19303 ac_check_lib_save_LIBS=$LIBS
19304 LIBS="-ldld $LIBS"
19305 cat >conftest.$ac_ext <<_ACEOF
19306 /* confdefs.h. */
19307 _ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19312 /* Override any gcc2 internal prototype to avoid an error. */
19313 #ifdef __cplusplus
19314 extern "C"
19315 #endif
19316 /* We use char because int might match the return type of a gcc2
19317 builtin and then its argument prototype would still apply. */
19318 char dld_link ();
19320 main ()
19322 dld_link ();
19324 return 0;
19326 _ACEOF
19327 rm -f conftest.$ac_objext conftest$ac_exeext
19328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19329 (eval $ac_link) 2>conftest.er1
19330 ac_status=$?
19331 grep -v '^ *+' conftest.er1 >conftest.err
19332 rm -f conftest.er1
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } &&
19336 { ac_try='test -z "$ac_c_werror_flag"
19337 || test ! -s conftest.err'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try='test -s conftest$ac_exeext'
19344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349 ac_cv_lib_dld_dld_link=yes
19350 else
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19354 ac_cv_lib_dld_dld_link=no
19356 rm -f conftest.err conftest.$ac_objext \
19357 conftest$ac_exeext conftest.$ac_ext
19358 LIBS=$ac_check_lib_save_LIBS
19360 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19361 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19362 if test $ac_cv_lib_dld_dld_link = yes; then
19363 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19382 esac
19384 if test "x$lt_cv_dlopen" != xno; then
19385 enable_dlopen=yes
19386 else
19387 enable_dlopen=no
19390 case $lt_cv_dlopen in
19391 dlopen)
19392 save_CPPFLAGS="$CPPFLAGS"
19393 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19395 save_LDFLAGS="$LDFLAGS"
19396 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19398 save_LIBS="$LIBS"
19399 LIBS="$lt_cv_dlopen_libs $LIBS"
19401 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19402 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19403 if test "${lt_cv_dlopen_self+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 else
19406 if test "$cross_compiling" = yes; then :
19407 lt_cv_dlopen_self=cross
19408 else
19409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19410 lt_status=$lt_dlunknown
19411 cat > conftest.$ac_ext <<_LT_EOF
19412 #line 19412 "configure"
19413 #include "confdefs.h"
19415 #if HAVE_DLFCN_H
19416 #include <dlfcn.h>
19417 #endif
19419 #include <stdio.h>
19421 #ifdef RTLD_GLOBAL
19422 # define LT_DLGLOBAL RTLD_GLOBAL
19423 #else
19424 # ifdef DL_GLOBAL
19425 # define LT_DLGLOBAL DL_GLOBAL
19426 # else
19427 # define LT_DLGLOBAL 0
19428 # endif
19429 #endif
19431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19432 find out it does not work in some platform. */
19433 #ifndef LT_DLLAZY_OR_NOW
19434 # ifdef RTLD_LAZY
19435 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19436 # else
19437 # ifdef DL_LAZY
19438 # define LT_DLLAZY_OR_NOW DL_LAZY
19439 # else
19440 # ifdef RTLD_NOW
19441 # define LT_DLLAZY_OR_NOW RTLD_NOW
19442 # else
19443 # ifdef DL_NOW
19444 # define LT_DLLAZY_OR_NOW DL_NOW
19445 # else
19446 # define LT_DLLAZY_OR_NOW 0
19447 # endif
19448 # endif
19449 # endif
19450 # endif
19451 #endif
19453 #ifdef __cplusplus
19454 extern "C" void exit (int);
19455 #endif
19457 void fnord() { int i=42;}
19458 int main ()
19460 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19461 int status = $lt_dlunknown;
19463 if (self)
19465 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19466 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19467 /* dlclose (self); */
19469 else
19470 puts (dlerror ());
19472 exit (status);
19474 _LT_EOF
19475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476 (eval $ac_link) 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19480 (./conftest; exit; ) >&5 2>/dev/null
19481 lt_status=$?
19482 case x$lt_status in
19483 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19484 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19485 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19486 esac
19487 else :
19488 # compilation failed
19489 lt_cv_dlopen_self=no
19492 rm -fr conftest*
19496 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19497 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19499 if test "x$lt_cv_dlopen_self" = xyes; then
19500 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19501 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19502 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19503 if test "${lt_cv_dlopen_self_static+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506 if test "$cross_compiling" = yes; then :
19507 lt_cv_dlopen_self_static=cross
19508 else
19509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19510 lt_status=$lt_dlunknown
19511 cat > conftest.$ac_ext <<_LT_EOF
19512 #line 19512 "configure"
19513 #include "confdefs.h"
19515 #if HAVE_DLFCN_H
19516 #include <dlfcn.h>
19517 #endif
19519 #include <stdio.h>
19521 #ifdef RTLD_GLOBAL
19522 # define LT_DLGLOBAL RTLD_GLOBAL
19523 #else
19524 # ifdef DL_GLOBAL
19525 # define LT_DLGLOBAL DL_GLOBAL
19526 # else
19527 # define LT_DLGLOBAL 0
19528 # endif
19529 #endif
19531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19532 find out it does not work in some platform. */
19533 #ifndef LT_DLLAZY_OR_NOW
19534 # ifdef RTLD_LAZY
19535 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19536 # else
19537 # ifdef DL_LAZY
19538 # define LT_DLLAZY_OR_NOW DL_LAZY
19539 # else
19540 # ifdef RTLD_NOW
19541 # define LT_DLLAZY_OR_NOW RTLD_NOW
19542 # else
19543 # ifdef DL_NOW
19544 # define LT_DLLAZY_OR_NOW DL_NOW
19545 # else
19546 # define LT_DLLAZY_OR_NOW 0
19547 # endif
19548 # endif
19549 # endif
19550 # endif
19551 #endif
19553 #ifdef __cplusplus
19554 extern "C" void exit (int);
19555 #endif
19557 void fnord() { int i=42;}
19558 int main ()
19560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19561 int status = $lt_dlunknown;
19563 if (self)
19565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19566 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19567 /* dlclose (self); */
19569 else
19570 puts (dlerror ());
19572 exit (status);
19574 _LT_EOF
19575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19576 (eval $ac_link) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19580 (./conftest; exit; ) >&5 2>/dev/null
19581 lt_status=$?
19582 case x$lt_status in
19583 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19584 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19585 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19586 esac
19587 else :
19588 # compilation failed
19589 lt_cv_dlopen_self_static=no
19592 rm -fr conftest*
19596 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19597 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19600 CPPFLAGS="$save_CPPFLAGS"
19601 LDFLAGS="$save_LDFLAGS"
19602 LIBS="$save_LIBS"
19604 esac
19606 case $lt_cv_dlopen_self in
19607 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19608 *) enable_dlopen_self=unknown ;;
19609 esac
19611 case $lt_cv_dlopen_self_static in
19612 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19613 *) enable_dlopen_self_static=unknown ;;
19614 esac
19633 striplib=
19634 old_striplib=
19635 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19636 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19637 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19638 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19639 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19640 echo "$as_me:$LINENO: result: yes" >&5
19641 echo "${ECHO_T}yes" >&6
19642 else
19643 # FIXME - insert some real tests, host_os isn't really good enough
19644 case $host_os in
19645 darwin*)
19646 if test -n "$STRIP" ; then
19647 striplib="$STRIP -x"
19648 old_striplib="$STRIP -S"
19649 echo "$as_me:$LINENO: result: yes" >&5
19650 echo "${ECHO_T}yes" >&6
19651 else
19652 echo "$as_me:$LINENO: result: no" >&5
19653 echo "${ECHO_T}no" >&6
19657 echo "$as_me:$LINENO: result: no" >&5
19658 echo "${ECHO_T}no" >&6
19660 esac
19674 # Report which library types will actually be built
19675 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19676 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19677 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19678 echo "${ECHO_T}$can_build_shared" >&6
19680 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19681 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19682 test "$can_build_shared" = "no" && enable_shared=no
19684 # On AIX, shared libraries and static libraries use the same namespace, and
19685 # are all built from PIC.
19686 case $host_os in
19687 aix3*)
19688 test "$enable_shared" = yes && enable_static=no
19689 if test -n "$RANLIB"; then
19690 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19691 postinstall_cmds='$RANLIB $lib'
19695 aix[4-9]*)
19696 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19697 test "$enable_shared" = yes && enable_static=no
19700 esac
19701 echo "$as_me:$LINENO: result: $enable_shared" >&5
19702 echo "${ECHO_T}$enable_shared" >&6
19704 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19705 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19706 # Make sure either enable_shared or enable_static is yes.
19707 test "$enable_shared" = yes || enable_static=yes
19708 echo "$as_me:$LINENO: result: $enable_static" >&5
19709 echo "${ECHO_T}$enable_static" >&6
19715 ac_ext=c
19716 ac_cpp='$CPP $CPPFLAGS'
19717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19721 CC="$lt_save_CC"
19738 # Only expand once:
19744 # Identify the assembler which will work hand-in-glove with the newly
19745 # built GCC, so that we can examine its features. This is the assembler
19746 # which will be driven by the driver program.
19748 # If build != host, and we aren't building gas in-tree, we identify a
19749 # build->target assembler and hope that it will have the same features
19750 # as the host->target assembler we'll be using.
19751 gcc_cv_gas_major_version=
19752 gcc_cv_gas_minor_version=
19753 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
19755 if test "${gcc_cv_as+set}" = set; then
19757 else
19759 if test -x "$DEFAULT_ASSEMBLER"; then
19760 gcc_cv_as="$DEFAULT_ASSEMBLER"
19761 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
19762 && test -f ../gas/Makefile \
19763 && test x$build = x$host; then
19764 gcc_cv_as=../gas/as-new$build_exeext
19765 elif test -x as$build_exeext; then
19766 # Build using assembler in the current directory.
19767 gcc_cv_as=./as$build_exeext
19768 elif test -x $AS_FOR_TARGET; then
19769 gcc_cv_as="$AS_FOR_TARGET"
19770 else
19771 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
19772 set dummy $AS_FOR_TARGET; ac_word=$2
19773 echo "$as_me:$LINENO: checking for $ac_word" >&5
19774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19775 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778 case $gcc_cv_as in
19779 [\\/]* | ?:[\\/]*)
19780 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
19783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19784 for as_dir in $PATH
19786 IFS=$as_save_IFS
19787 test -z "$as_dir" && as_dir=.
19788 for ac_exec_ext in '' $ac_executable_extensions; do
19789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19790 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
19791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19792 break 2
19794 done
19795 done
19798 esac
19800 gcc_cv_as=$ac_cv_path_gcc_cv_as
19802 if test -n "$gcc_cv_as"; then
19803 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
19804 echo "${ECHO_T}$gcc_cv_as" >&6
19805 else
19806 echo "$as_me:$LINENO: result: no" >&5
19807 echo "${ECHO_T}no" >&6
19814 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
19816 case "$ORIGINAL_AS_FOR_TARGET" in
19817 ./as | ./as$build_exeext) ;;
19818 *) ac_config_files="$ac_config_files as:exec-tool.in"
19820 esac
19822 echo "$as_me:$LINENO: checking what assembler to use" >&5
19823 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
19824 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
19825 # Single tree build which includes gas. We want to prefer it
19826 # over whatever linker top-level may have detected, since
19827 # we'll use what we're building after installation anyway.
19828 echo "$as_me:$LINENO: result: newly built gas" >&5
19829 echo "${ECHO_T}newly built gas" >&6
19830 in_tree_gas=yes
19831 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
19832 for f in $gcc_cv_as_bfd_srcdir/configure \
19833 $gcc_cv_as_gas_srcdir/configure \
19834 $gcc_cv_as_gas_srcdir/configure.in \
19835 $gcc_cv_as_gas_srcdir/Makefile.in ; do
19836 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
19837 if test x$gcc_cv_gas_version != x; then
19838 break
19840 done
19841 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
19842 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
19843 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
19844 case $gcc_cv_gas_patch_version in
19845 "") gcc_cv_gas_patch_version="0" ;;
19846 esac
19847 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
19848 + $gcc_cv_gas_minor_version \) \* 1000 \
19849 + $gcc_cv_gas_patch_version`
19851 in_tree_gas_is_elf=no
19852 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
19853 || (grep 'obj_format = multi' ../gas/Makefile \
19854 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
19855 then
19856 in_tree_gas_is_elf=yes
19858 else
19859 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
19860 echo "${ECHO_T}$gcc_cv_as" >&6
19861 in_tree_gas=no
19864 # Identify the linker which will work hand-in-glove with the newly
19865 # built GCC, so that we can examine its features. This is the linker
19866 # which will be driven by the driver program.
19868 # If build != host, and we aren't building gas in-tree, we identify a
19869 # build->target linker and hope that it will have the same features
19870 # as the host->target linker we'll be using.
19871 gcc_cv_gld_major_version=
19872 gcc_cv_gld_minor_version=
19873 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
19874 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
19876 if test "${gcc_cv_ld+set}" = set; then
19878 else
19880 if test -x "$DEFAULT_LINKER"; then
19881 gcc_cv_ld="$DEFAULT_LINKER"
19882 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
19883 && test -f ../ld/Makefile \
19884 && test x$build = x$host; then
19885 gcc_cv_ld=../ld/ld-new$build_exeext
19886 elif test -x collect-ld$build_exeext; then
19887 # Build using linker in the current directory.
19888 gcc_cv_ld=./collect-ld$build_exeext
19889 elif test -x $LD_FOR_TARGET; then
19890 gcc_cv_ld="$LD_FOR_TARGET"
19891 else
19892 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
19893 set dummy $LD_FOR_TARGET; ac_word=$2
19894 echo "$as_me:$LINENO: checking for $ac_word" >&5
19895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19896 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899 case $gcc_cv_ld in
19900 [\\/]* | ?:[\\/]*)
19901 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
19904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19905 for as_dir in $PATH
19907 IFS=$as_save_IFS
19908 test -z "$as_dir" && as_dir=.
19909 for ac_exec_ext in '' $ac_executable_extensions; do
19910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19911 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
19912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19913 break 2
19915 done
19916 done
19919 esac
19921 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
19923 if test -n "$gcc_cv_ld"; then
19924 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
19925 echo "${ECHO_T}$gcc_cv_ld" >&6
19926 else
19927 echo "$as_me:$LINENO: result: no" >&5
19928 echo "${ECHO_T}no" >&6
19935 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
19937 case "$ORIGINAL_LD_FOR_TARGET" in
19938 ./collect-ld | ./collect-ld$build_exeext) ;;
19939 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
19941 esac
19943 echo "$as_me:$LINENO: checking what linker to use" >&5
19944 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
19945 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
19946 # Single tree build which includes ld. We want to prefer it
19947 # over whatever linker top-level may have detected, since
19948 # we'll use what we're building after installation anyway.
19949 echo "$as_me:$LINENO: result: newly built ld" >&5
19950 echo "${ECHO_T}newly built ld" >&6
19951 in_tree_ld=yes
19952 in_tree_ld_is_elf=no
19953 if (grep 'EMUL = .*elf' ../ld/Makefile \
19954 || grep 'EMUL = .*linux' ../ld/Makefile \
19955 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
19956 in_tree_ld_is_elf=yes
19958 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
19960 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
19961 if test x$gcc_cv_gld_version != x; then
19962 break
19964 done
19965 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
19966 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
19967 else
19968 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
19969 echo "${ECHO_T}$gcc_cv_ld" >&6
19970 in_tree_ld=no
19973 # Figure out what nm we will be using.
19974 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
19975 if test "${gcc_cv_nm+set}" = set; then
19977 else
19979 if test -f $gcc_cv_binutils_srcdir/configure.in \
19980 && test -f ../binutils/Makefile \
19981 && test x$build = x$host; then
19982 gcc_cv_nm=../binutils/nm-new$build_exeext
19983 elif test -x nm$build_exeext; then
19984 gcc_cv_nm=./nm$build_exeext
19985 elif test -x $NM_FOR_TARGET; then
19986 gcc_cv_nm="$NM_FOR_TARGET"
19987 else
19988 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
19989 set dummy $NM_FOR_TARGET; ac_word=$2
19990 echo "$as_me:$LINENO: checking for $ac_word" >&5
19991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19992 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995 case $gcc_cv_nm in
19996 [\\/]* | ?:[\\/]*)
19997 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20001 for as_dir in $PATH
20003 IFS=$as_save_IFS
20004 test -z "$as_dir" && as_dir=.
20005 for ac_exec_ext in '' $ac_executable_extensions; do
20006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20007 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20009 break 2
20011 done
20012 done
20015 esac
20017 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20019 if test -n "$gcc_cv_nm"; then
20020 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20021 echo "${ECHO_T}$gcc_cv_nm" >&6
20022 else
20023 echo "$as_me:$LINENO: result: no" >&5
20024 echo "${ECHO_T}no" >&6
20031 echo "$as_me:$LINENO: checking what nm to use" >&5
20032 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20033 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20034 # Single tree build which includes binutils.
20035 echo "$as_me:$LINENO: result: newly built nm" >&5
20036 echo "${ECHO_T}newly built nm" >&6
20037 in_tree_nm=yes
20038 else
20039 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20040 echo "${ECHO_T}$gcc_cv_nm" >&6
20041 in_tree_nm=no
20044 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20046 case "$ORIGINAL_NM_FOR_TARGET" in
20047 ./nm | ./nm$build_exeext) ;;
20048 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20050 esac
20053 # Figure out what objdump we will be using.
20054 if test "${gcc_cv_objdump+set}" = set; then
20056 else
20058 if test -f $gcc_cv_binutils_srcdir/configure.in \
20059 && test -f ../binutils/Makefile \
20060 && test x$build = x$host; then
20061 # Single tree build which includes binutils.
20062 gcc_cv_objdump=../binutils/objdump$build_exeext
20063 elif test -x objdump$build_exeext; then
20064 gcc_cv_objdump=./objdump$build_exeext
20065 elif test -x $OBJDUMP_FOR_TARGET; then
20066 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20067 else
20068 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20069 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20070 echo "$as_me:$LINENO: checking for $ac_word" >&5
20071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20072 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20074 else
20075 case $gcc_cv_objdump in
20076 [\\/]* | ?:[\\/]*)
20077 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20081 for as_dir in $PATH
20083 IFS=$as_save_IFS
20084 test -z "$as_dir" && as_dir=.
20085 for ac_exec_ext in '' $ac_executable_extensions; do
20086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20087 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20089 break 2
20091 done
20092 done
20095 esac
20097 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20099 if test -n "$gcc_cv_objdump"; then
20100 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20101 echo "${ECHO_T}$gcc_cv_objdump" >&6
20102 else
20103 echo "$as_me:$LINENO: result: no" >&5
20104 echo "${ECHO_T}no" >&6
20111 echo "$as_me:$LINENO: checking what objdump to use" >&5
20112 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20113 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20114 # Single tree build which includes binutils.
20115 echo "$as_me:$LINENO: result: newly built objdump" >&5
20116 echo "${ECHO_T}newly built objdump" >&6
20117 elif test x$gcc_cv_objdump = x; then
20118 echo "$as_me:$LINENO: result: not found" >&5
20119 echo "${ECHO_T}not found" >&6
20120 else
20121 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20122 echo "${ECHO_T}$gcc_cv_objdump" >&6
20125 # Figure out what assembler alignment features are present.
20126 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20127 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20128 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20129 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 else
20131 gcc_cv_as_balign_and_p2align=no
20132 if test $in_tree_gas = yes; then
20133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20134 then gcc_cv_as_balign_and_p2align=yes
20136 elif test x$gcc_cv_as != x; then
20137 echo '.balign 4
20138 .p2align 2' > conftest.s
20139 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141 (eval $ac_try) 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; }
20145 then
20146 gcc_cv_as_balign_and_p2align=yes
20147 else
20148 echo "configure: failed program was" >&5
20149 cat conftest.s >&5
20151 rm -f conftest.o conftest.s
20154 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20155 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20156 if test $gcc_cv_as_balign_and_p2align = yes; then
20158 cat >>confdefs.h <<\_ACEOF
20159 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20160 _ACEOF
20164 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20165 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20166 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 else
20169 gcc_cv_as_max_skip_p2align=no
20170 if test $in_tree_gas = yes; then
20171 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20172 then gcc_cv_as_max_skip_p2align=yes
20174 elif test x$gcc_cv_as != x; then
20175 echo '.p2align 4,,7' > conftest.s
20176 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; }
20182 then
20183 gcc_cv_as_max_skip_p2align=yes
20184 else
20185 echo "configure: failed program was" >&5
20186 cat conftest.s >&5
20188 rm -f conftest.o conftest.s
20191 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20192 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20193 if test $gcc_cv_as_max_skip_p2align = yes; then
20195 cat >>confdefs.h <<\_ACEOF
20196 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20197 _ACEOF
20201 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20202 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20203 if test "${gcc_cv_as_literal16+set}" = set; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 else
20206 gcc_cv_as_literal16=no
20207 if test $in_tree_gas = yes; then
20208 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20209 then gcc_cv_as_literal16=yes
20211 elif test x$gcc_cv_as != x; then
20212 echo '.literal16' > conftest.s
20213 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; }
20219 then
20220 gcc_cv_as_literal16=yes
20221 else
20222 echo "configure: failed program was" >&5
20223 cat conftest.s >&5
20225 rm -f conftest.o conftest.s
20228 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20229 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
20230 if test $gcc_cv_as_literal16 = yes; then
20232 cat >>confdefs.h <<\_ACEOF
20233 #define HAVE_GAS_LITERAL16 1
20234 _ACEOF
20238 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20239 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
20240 if test "${gcc_cv_as_subsection_m1+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 else
20243 gcc_cv_as_subsection_m1=no
20244 if test $in_tree_gas = yes; then
20245 if test $in_tree_gas_is_elf = yes \
20246 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20247 then gcc_cv_as_subsection_m1=yes
20249 elif test x$gcc_cv_as != x; then
20250 echo 'conftest_label1: .word 0
20251 .subsection -1
20252 conftest_label2: .word 0
20253 .previous' > conftest.s
20254 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256 (eval $ac_try) 2>&5
20257 ac_status=$?
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }
20260 then
20261 if test x$gcc_cv_nm != x; then
20262 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20263 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20264 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20265 then :
20266 else gcc_cv_as_subsection_m1=yes
20268 rm -f conftest.nm1 conftest.nm2
20270 else
20271 echo "configure: failed program was" >&5
20272 cat conftest.s >&5
20274 rm -f conftest.o conftest.s
20277 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20278 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
20279 if test $gcc_cv_as_subsection_m1 = yes; then
20281 cat >>confdefs.h <<\_ACEOF
20282 #define HAVE_GAS_SUBSECTION_ORDERING 1
20283 _ACEOF
20287 echo "$as_me:$LINENO: checking assembler for .weak" >&5
20288 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
20289 if test "${gcc_cv_as_weak+set}" = set; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 else
20292 gcc_cv_as_weak=no
20293 if test $in_tree_gas = yes; then
20294 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20295 then gcc_cv_as_weak=yes
20297 elif test x$gcc_cv_as != x; then
20298 echo ' .weak foobar' > conftest.s
20299 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; }
20305 then
20306 gcc_cv_as_weak=yes
20307 else
20308 echo "configure: failed program was" >&5
20309 cat conftest.s >&5
20311 rm -f conftest.o conftest.s
20314 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20315 echo "${ECHO_T}$gcc_cv_as_weak" >&6
20316 if test $gcc_cv_as_weak = yes; then
20318 cat >>confdefs.h <<\_ACEOF
20319 #define HAVE_GAS_WEAK 1
20320 _ACEOF
20324 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20325 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
20326 if test "${gcc_cv_as_weakref+set}" = set; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20328 else
20329 gcc_cv_as_weakref=no
20330 if test $in_tree_gas = yes; then
20331 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20332 then gcc_cv_as_weakref=yes
20334 elif test x$gcc_cv_as != x; then
20335 echo ' .weakref foobar, barfnot' > conftest.s
20336 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; }
20342 then
20343 gcc_cv_as_weakref=yes
20344 else
20345 echo "configure: failed program was" >&5
20346 cat conftest.s >&5
20348 rm -f conftest.o conftest.s
20351 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20352 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
20353 if test $gcc_cv_as_weakref = yes; then
20355 cat >>confdefs.h <<\_ACEOF
20356 #define HAVE_GAS_WEAKREF 1
20357 _ACEOF
20361 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20362 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
20363 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366 gcc_cv_as_nsubspa_comdat=no
20367 if test $in_tree_gas = yes; then
20368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20369 then gcc_cv_as_nsubspa_comdat=yes
20371 elif test x$gcc_cv_as != x; then
20372 echo ' .SPACE $TEXT$
20373 .NSUBSPA $CODE$,COMDAT' > conftest.s
20374 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376 (eval $ac_try) 2>&5
20377 ac_status=$?
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; }
20380 then
20381 gcc_cv_as_nsubspa_comdat=yes
20382 else
20383 echo "configure: failed program was" >&5
20384 cat conftest.s >&5
20386 rm -f conftest.o conftest.s
20389 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20390 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20391 if test $gcc_cv_as_nsubspa_comdat = yes; then
20393 cat >>confdefs.h <<\_ACEOF
20394 #define HAVE_GAS_NSUBSPA_COMDAT 1
20395 _ACEOF
20399 # .hidden needs to be supported in both the assembler and the linker,
20400 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20401 # This is irritatingly difficult to feature test for; we have to check the
20402 # date string after the version number. If we've got an in-tree
20403 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20404 # to be safe.
20405 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20406 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20407 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20408 if test "${gcc_cv_as_hidden+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411 gcc_cv_as_hidden=no
20412 if test $in_tree_gas = yes; then
20413 if test $in_tree_gas_is_elf = yes \
20414 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20415 then gcc_cv_as_hidden=yes
20417 elif test x$gcc_cv_as != x; then
20418 echo ' .hidden foobar
20419 foobar:' > conftest.s
20420 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422 (eval $ac_try) 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }
20426 then
20427 gcc_cv_as_hidden=yes
20428 else
20429 echo "configure: failed program was" >&5
20430 cat conftest.s >&5
20432 rm -f conftest.o conftest.s
20435 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20436 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20439 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20440 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20441 if test "${gcc_cv_ld_hidden+set}" = set; then
20442 echo $ECHO_N "(cached) $ECHO_C" >&6
20443 else
20444 if test $in_tree_ld = yes ; then
20445 gcc_cv_ld_hidden=no
20446 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 \
20447 && test $in_tree_ld_is_elf = yes; then
20448 gcc_cv_ld_hidden=yes
20450 else
20451 gcc_cv_ld_hidden=yes
20452 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20453 if echo "$ld_ver" | grep GNU > /dev/null; then
20454 ld_vers=`echo $ld_ver | sed -n \
20455 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20456 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'`
20457 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
20458 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20459 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20460 if test 0"$ld_date" -lt 20020404; then
20461 if test -n "$ld_date"; then
20462 # If there was date string, but was earlier than 2002-04-04, fail
20463 gcc_cv_ld_hidden=no
20464 elif test -z "$ld_vers"; then
20465 # If there was no date string nor ld version number, something is wrong
20466 gcc_cv_ld_hidden=no
20467 else
20468 test -z "$ld_vers_patch" && ld_vers_patch=0
20469 if test "$ld_vers_major" -lt 2; then
20470 gcc_cv_ld_hidden=no
20471 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20472 gcc_cv_ld_hidden="no"
20473 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20474 gcc_cv_ld_hidden=no
20478 else
20479 case "${target}" in
20480 hppa64*-*-hpux* | ia64*-*-hpux*)
20481 gcc_cv_ld_hidden=yes
20484 gcc_cv_ld_hidden=no
20486 esac
20490 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20491 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20492 libgcc_visibility=no
20495 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20496 libgcc_visibility=yes
20498 cat >>confdefs.h <<\_ACEOF
20499 #define HAVE_GAS_HIDDEN 1
20500 _ACEOF
20504 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20505 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20506 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20507 if test "${gcc_cv_as_leb128+set}" = set; then
20508 echo $ECHO_N "(cached) $ECHO_C" >&6
20509 else
20510 gcc_cv_as_leb128=no
20511 if test $in_tree_gas = yes; then
20512 if test $in_tree_gas_is_elf = yes \
20513 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20514 then gcc_cv_as_leb128=yes
20516 elif test x$gcc_cv_as != x; then
20517 echo ' .data
20518 .uleb128 L2 - L1
20520 .uleb128 1280
20521 .sleb128 -1010
20522 L2:' > conftest.s
20523 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; }
20529 then
20530 # GAS versions before 2.11 do not support uleb128,
20531 # despite appearing to.
20532 # ??? There exists an elf-specific test that will crash
20533 # the assembler. Perhaps it's better to figure out whether
20534 # arbitrary sections are supported and try the test.
20535 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20536 if echo "$as_ver" | grep GNU > /dev/null; then
20537 as_vers=`echo $as_ver | sed -n \
20538 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20539 as_major=`expr "$as_vers" : '\([0-9]*\)'`
20540 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20541 if test $as_major -eq 2 && test $as_minor -lt 11
20542 then :
20543 else gcc_cv_as_leb128=yes
20546 else
20547 echo "configure: failed program was" >&5
20548 cat conftest.s >&5
20550 rm -f conftest.o conftest.s
20553 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20554 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20555 if test $gcc_cv_as_leb128 = yes; then
20557 cat >>confdefs.h <<\_ACEOF
20558 #define HAVE_AS_LEB128 1
20559 _ACEOF
20563 # GAS versions up to and including 2.11.0 may mis-optimize
20564 # .eh_frame data.
20565 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20566 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20567 if test "${gcc_cv_as_eh_frame+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570 gcc_cv_as_eh_frame=no
20571 if test $in_tree_gas = yes; then
20572 if test $in_tree_gas_is_elf = yes \
20573 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20574 then gcc_cv_as_eh_frame=yes
20576 elif test x$gcc_cv_as != x; then
20577 echo ' .text
20578 .LFB1:
20579 .4byte 0
20580 .L1:
20581 .4byte 0
20582 .LFE1:
20583 .section .eh_frame,"aw",@progbits
20584 __FRAME_BEGIN__:
20585 .4byte .LECIE1-.LSCIE1
20586 .LSCIE1:
20587 .4byte 0x0
20588 .byte 0x1
20589 .ascii "z\0"
20590 .byte 0x1
20591 .byte 0x78
20592 .byte 0x1a
20593 .byte 0x0
20594 .byte 0x4
20595 .4byte 1
20596 .p2align 1
20597 .LECIE1:
20598 .LSFDE1:
20599 .4byte .LEFDE1-.LASFDE1
20600 .LASFDE1:
20601 .4byte .LASFDE1-__FRAME_BEGIN__
20602 .4byte .LFB1
20603 .4byte .LFE1-.LFB1
20604 .byte 0x4
20605 .4byte .LFE1-.LFB1
20606 .byte 0x4
20607 .4byte .L1-.LFB1
20608 .LEFDE1:' > conftest.s
20609 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611 (eval $ac_try) 2>&5
20612 ac_status=$?
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; }
20615 then
20616 cat > conftest.lit <<EOF
20617 0000 10000000 00000000 017a0001 781a0004 .........z..x...
20618 0010 01000000 12000000 18000000 00000000 ................
20619 0020 08000000 04080000 0044 .........D
20621 cat > conftest.big <<EOF
20622 0000 00000010 00000000 017a0001 781a0004 .........z..x...
20623 0010 00000001 00000012 00000018 00000000 ................
20624 0020 00000008 04000000 0844 .........D
20626 # If the assembler didn't choke, and we can objdump,
20627 # and we got the correct data, then succeed.
20628 # The text in the here-document typically retains its unix-style line
20629 # endings, while the output of objdump will use host line endings.
20630 # Therefore, use diff -b for the comparisons.
20631 if test x$gcc_cv_objdump != x \
20632 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
20633 | tail -3 > conftest.got \
20634 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
20635 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
20636 then
20637 gcc_cv_as_eh_frame=yes
20638 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 gcc_cv_as_eh_frame=buggy
20645 else
20646 # Uh oh, what do we do now?
20647 gcc_cv_as_eh_frame=no
20649 else
20650 echo "configure: failed program was" >&5
20651 cat conftest.s >&5
20653 rm -f conftest.o conftest.s
20656 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20657 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
20660 if test $gcc_cv_as_eh_frame = buggy; then
20662 cat >>confdefs.h <<\_ACEOF
20663 #define USE_AS_TRADITIONAL_FORMAT 1
20664 _ACEOF
20668 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20669 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20670 if test "${gcc_cv_as_shf_merge+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672 else
20673 gcc_cv_as_shf_merge=no
20674 if test $in_tree_gas = yes; then
20675 if test $in_tree_gas_is_elf = yes \
20676 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20677 then gcc_cv_as_shf_merge=yes
20679 elif test x$gcc_cv_as != x; then
20680 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
20681 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; }
20687 then
20688 gcc_cv_as_shf_merge=yes
20689 else
20690 echo "configure: failed program was" >&5
20691 cat conftest.s >&5
20693 rm -f conftest.o conftest.s
20696 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20697 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20699 if test $gcc_cv_as_shf_merge = no; then
20700 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20701 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20702 if test "${gcc_cv_as_shf_merge+set}" = set; then
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
20704 else
20705 gcc_cv_as_shf_merge=no
20706 if test $in_tree_gas = yes; then
20707 if test $in_tree_gas_is_elf = yes \
20708 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20709 then gcc_cv_as_shf_merge=yes
20711 elif test x$gcc_cv_as != x; then
20712 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20713 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; }
20719 then
20720 gcc_cv_as_shf_merge=yes
20721 else
20722 echo "configure: failed program was" >&5
20723 cat conftest.s >&5
20725 rm -f conftest.o conftest.s
20728 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20729 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20733 cat >>confdefs.h <<_ACEOF
20734 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
20735 _ACEOF
20738 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20739 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20740 if test "${gcc_cv_as_comdat_group+set}" = set; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20742 else
20743 gcc_cv_as_comdat_group=no
20744 if test $in_tree_gas = yes; then
20745 if test $in_tree_gas_is_elf = yes \
20746 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20747 then gcc_cv_as_comdat_group=yes
20749 elif test x$gcc_cv_as != x; then
20750 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
20751 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753 (eval $ac_try) 2>&5
20754 ac_status=$?
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; }
20757 then
20758 gcc_cv_as_comdat_group=yes
20759 else
20760 echo "configure: failed program was" >&5
20761 cat conftest.s >&5
20763 rm -f conftest.o conftest.s
20766 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
20767 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
20769 if test $gcc_cv_as_comdat_group = yes; then
20770 gcc_cv_as_comdat_group_percent=no
20771 else
20772 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20773 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20774 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777 gcc_cv_as_comdat_group_percent=no
20778 if test $in_tree_gas = yes; then
20779 if test $in_tree_gas_is_elf = yes \
20780 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20781 then gcc_cv_as_comdat_group_percent=yes
20783 elif test x$gcc_cv_as != x; then
20784 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
20785 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20787 (eval $ac_try) 2>&5
20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }
20791 then
20792 gcc_cv_as_comdat_group_percent=yes
20793 else
20794 echo "configure: failed program was" >&5
20795 cat conftest.s >&5
20797 rm -f conftest.o conftest.s
20800 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
20801 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
20804 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
20805 comdat_group=yes
20806 if test 0"$ld_date" -lt 20050308; then
20807 if test -n "$ld_date"; then
20808 # If there was date string, but was earlier than 2005-03-08, fail
20809 comdat_group=no
20810 elif test "$ld_vers_major" -lt 2; then
20811 comdat_group=no
20812 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
20813 comdat_group=no
20816 else
20817 # assume linkers other than GNU ld don't support COMDAT group
20818 comdat_group=no
20820 if test $comdat_group = no; then
20821 gcc_cv_as_comdat_group=no
20822 gcc_cv_as_comdat_group_percent=no
20825 cat >>confdefs.h <<_ACEOF
20826 #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`
20827 _ACEOF
20830 # Thread-local storage - the check is heavily parametrized.
20831 conftest_s=
20832 tls_first_major=
20833 tls_first_minor=
20834 tls_as_opt=
20835 case "$target" in
20836 alpha*-*-*)
20837 conftest_s='
20838 .section ".tdata","awT",@progbits
20839 foo: .long 25
20840 .text
20841 ldq $27,__tls_get_addr($29) !literal!1
20842 lda $16,foo($29) !tlsgd!1
20843 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
20844 ldq $27,__tls_get_addr($29) !literal!2
20845 lda $16,foo($29) !tlsldm!2
20846 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
20847 ldq $1,foo($29) !gotdtprel
20848 ldah $2,foo($29) !dtprelhi
20849 lda $3,foo($2) !dtprello
20850 lda $4,foo($29) !dtprel
20851 ldq $1,foo($29) !gottprel
20852 ldah $2,foo($29) !tprelhi
20853 lda $3,foo($2) !tprello
20854 lda $4,foo($29) !tprel'
20855 tls_first_major=2
20856 tls_first_minor=13
20857 tls_as_opt=--fatal-warnings
20859 frv*-*-*)
20860 conftest_s='
20861 .section ".tdata","awT",@progbits
20862 x: .long 25
20863 .text
20864 call #gettlsoff(x)'
20865 tls_first_major=2
20866 tls_first_minor=14
20868 hppa*-*-linux*)
20869 conftest_s='
20870 t1: .reg %r20
20871 t2: .reg %r21
20872 gp: .reg %r19
20873 .section ".tdata","awT",@progbits
20874 foo: .long 25
20875 .text
20876 .align 4
20877 addil LT%foo-$tls_gdidx$,gp
20878 ldo RT%foo-$tls_gdidx$(%r1),%arg0
20879 b __tls_get_addr
20881 addil LT%foo-$tls_ldidx$,gp
20882 b __tls_get_addr
20883 ldo RT%foo-$tls_ldidx$(%r1),%arg0
20884 addil LR%foo-$tls_dtpoff$,%ret0
20885 ldo RR%foo-$tls_dtpoff$(%r1),%t1
20886 mfctl %cr27,%t1
20887 addil LT%foo-$tls_ieoff$,gp
20888 ldw RT%foo-$tls_ieoff$(%r1),%t2
20889 add %t1,%t2,%t3
20890 mfctl %cr27,%t1
20891 addil LR%foo-$tls_leoff$,%t1
20892 ldo RR%foo-$tls_leoff$(%r1),%t2'
20893 tls_first_major=2
20894 tls_first_minor=15
20895 tls_as_opt=--fatal-warnings
20897 arm*-*-*)
20898 conftest_s='
20899 .section ".tdata","awT",%progbits
20900 foo: .long 25
20901 .text
20902 .word foo(gottpoff)
20903 .word foo(tpoff)
20904 .word foo(tlsgd)
20905 .word foo(tlsldm)
20906 .word foo(tlsldo)'
20907 tls_first_major=2
20908 tls_first_minor=17
20910 i[34567]86-*-*)
20911 conftest_s='
20912 .section ".tdata","awT",@progbits
20913 foo: .long 25
20914 .text
20915 movl %gs:0, %eax
20916 leal foo@TLSGD(,%ebx,1), %eax
20917 leal foo@TLSLDM(%ebx), %eax
20918 leal foo@DTPOFF(%eax), %edx
20919 movl foo@GOTTPOFF(%ebx), %eax
20920 subl foo@GOTTPOFF(%ebx), %eax
20921 addl foo@GOTNTPOFF(%ebx), %eax
20922 movl foo@INDNTPOFF, %eax
20923 movl $foo@TPOFF, %eax
20924 subl $foo@TPOFF, %eax
20925 leal foo@NTPOFF(%ecx), %eax'
20926 tls_first_major=2
20927 tls_first_minor=14
20928 tls_as_opt=--fatal-warnings
20930 x86_64-*-*)
20931 conftest_s='
20932 .section ".tdata","awT",@progbits
20933 foo: .long 25
20934 .text
20935 movq %fs:0, %rax
20936 leaq foo@TLSGD(%rip), %rdi
20937 leaq foo@TLSLD(%rip), %rdi
20938 leaq foo@DTPOFF(%rax), %rdx
20939 movq foo@GOTTPOFF(%rip), %rax
20940 movq $foo@TPOFF, %rax'
20941 tls_first_major=2
20942 tls_first_minor=14
20943 tls_as_opt=--fatal-warnings
20945 ia64-*-*)
20946 conftest_s='
20947 .section ".tdata","awT",@progbits
20948 foo: data8 25
20949 .text
20950 addl r16 = @ltoff(@dtpmod(foo#)), gp
20951 addl r17 = @ltoff(@dtprel(foo#)), gp
20952 addl r18 = @ltoff(@tprel(foo#)), gp
20953 addl r19 = @dtprel(foo#), gp
20954 adds r21 = @dtprel(foo#), r13
20955 movl r23 = @dtprel(foo#)
20956 addl r20 = @tprel(foo#), gp
20957 adds r22 = @tprel(foo#), r13
20958 movl r24 = @tprel(foo#)'
20959 tls_first_major=2
20960 tls_first_minor=13
20961 tls_as_opt=--fatal-warnings
20963 mips*-*-*)
20964 conftest_s='
20965 .section .tdata,"awT",@progbits
20967 .word 2
20968 .text
20969 addiu $4, $28, %tlsgd(x)
20970 addiu $4, $28, %tlsldm(x)
20971 lui $4, %dtprel_hi(x)
20972 addiu $4, $4, %dtprel_lo(x)
20973 lw $4, %gottprel(x)($28)
20974 lui $4, %tprel_hi(x)
20975 addiu $4, $4, %tprel_lo(x)'
20976 tls_first_major=2
20977 tls_first_minor=16
20978 tls_as_opt='-32 --fatal-warnings'
20980 powerpc-*-*)
20981 conftest_s='
20982 .section ".tdata","awT",@progbits
20983 .align 2
20984 ld0: .space 4
20985 ld1: .space 4
20986 x1: .space 4
20987 x2: .space 4
20988 x3: .space 4
20989 .text
20990 addi 3,31,ld0@got@tlsgd
20991 bl __tls_get_addr
20992 addi 3,31,x1@got@tlsld
20993 bl __tls_get_addr
20994 addi 9,3,x1@dtprel
20995 addis 9,3,x2@dtprel@ha
20996 addi 9,9,x2@dtprel@l
20997 lwz 9,x3@got@tprel(31)
20998 add 9,9,x@tls
20999 addi 9,2,x1@tprel
21000 addis 9,2,x2@tprel@ha
21001 addi 9,9,x2@tprel@l'
21002 tls_first_major=2
21003 tls_first_minor=14
21004 tls_as_opt="-a32 --fatal-warnings"
21006 powerpc64-*-*)
21007 conftest_s='
21008 .section ".tdata","awT",@progbits
21009 .align 3
21010 ld0: .space 8
21011 ld1: .space 8
21012 x1: .space 8
21013 x2: .space 8
21014 x3: .space 8
21015 .text
21016 addi 3,2,ld0@got@tlsgd
21017 bl .__tls_get_addr
21019 addi 3,2,ld1@toc
21020 bl .__tls_get_addr
21022 addi 3,2,x1@got@tlsld
21023 bl .__tls_get_addr
21025 addi 9,3,x1@dtprel
21026 bl .__tls_get_addr
21028 addis 9,3,x2@dtprel@ha
21029 addi 9,9,x2@dtprel@l
21030 bl .__tls_get_addr
21032 ld 9,x3@got@dtprel(2)
21033 add 9,9,3
21034 bl .__tls_get_addr
21035 nop'
21036 tls_first_major=2
21037 tls_first_minor=14
21038 tls_as_opt="-a64 --fatal-warnings"
21040 s390-*-*)
21041 conftest_s='
21042 .section ".tdata","awT",@progbits
21043 foo: .long 25
21044 .text
21045 .long foo@TLSGD
21046 .long foo@TLSLDM
21047 .long foo@DTPOFF
21048 .long foo@NTPOFF
21049 .long foo@GOTNTPOFF
21050 .long foo@INDNTPOFF
21051 l %r1,foo@GOTNTPOFF(%r12)
21052 l %r1,0(%r1):tls_load:foo
21053 bas %r14,0(%r1,%r13):tls_gdcall:foo
21054 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21055 tls_first_major=2
21056 tls_first_minor=14
21057 tls_as_opt="-m31 --fatal-warnings"
21059 s390x-*-*)
21060 conftest_s='
21061 .section ".tdata","awT",@progbits
21062 foo: .long 25
21063 .text
21064 .quad foo@TLSGD
21065 .quad foo@TLSLDM
21066 .quad foo@DTPOFF
21067 .quad foo@NTPOFF
21068 .quad foo@GOTNTPOFF
21069 lg %r1,foo@GOTNTPOFF(%r12)
21070 larl %r1,foo@INDNTPOFF
21071 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21072 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21073 tls_first_major=2
21074 tls_first_minor=14
21075 tls_as_opt="-m64 -Aesame --fatal-warnings"
21077 sh-*-* | sh[34]-*-*)
21078 conftest_s='
21079 .section ".tdata","awT",@progbits
21080 foo: .long 25
21081 .text
21082 .long foo@TLSGD
21083 .long foo@TLSLDM
21084 .long foo@DTPOFF
21085 .long foo@GOTTPOFF
21086 .long foo@TPOFF'
21087 tls_first_major=2
21088 tls_first_minor=13
21089 tls_as_opt=--fatal-warnings
21091 sparc*-*-*)
21092 case "$target" in
21093 sparc*-sun-solaris2.[56789]*)
21094 # TLS was introduced in the Solaris 9 4/04 release but
21095 # we do not enable it by default on Solaris 9 either.
21096 if test "x$enable_tls" = xyes ; then
21097 on_solaris=yes
21098 else
21099 enable_tls=no;
21102 sparc*-sun-solaris2.*)
21103 on_solaris=yes
21106 on_solaris=no
21108 esac
21109 if test x$on_solaris = xyes && test x$gas_flag = xno; then
21110 conftest_s='
21111 .section ".tdata",#alloc,#write,#tls
21112 foo: .long 25
21113 .text
21114 sethi %tgd_hi22(foo), %o0
21115 add %o0, %tgd_lo10(foo), %o1
21116 add %l7, %o1, %o0, %tgd_add(foo)
21117 call __tls_get_addr, %tgd_call(foo)
21118 sethi %tldm_hi22(foo), %l1
21119 add %l1, %tldm_lo10(foo), %l2
21120 add %l7, %l2, %o0, %tldm_add(foo)
21121 call __tls_get_addr, %tldm_call(foo)
21122 sethi %tldo_hix22(foo), %l3
21123 xor %l3, %tldo_lox10(foo), %l4
21124 add %o0, %l4, %l5, %tldo_add(foo)
21125 sethi %tie_hi22(foo), %o3
21126 add %o3, %tie_lo10(foo), %o3
21127 ld [%l7 + %o3], %o2, %tie_ld(foo)
21128 add %g7, %o2, %o4, %tie_add(foo)
21129 sethi %tle_hix22(foo), %l1
21130 xor %l1, %tle_lox10(foo), %o5
21131 ld [%g7 + %o5], %o1'
21132 tls_first_major=0
21133 tls_first_minor=0
21134 else
21135 conftest_s='
21136 .section ".tdata","awT",@progbits
21137 foo: .long 25
21138 .text
21139 sethi %tgd_hi22(foo), %o0
21140 add %o0, %tgd_lo10(foo), %o1
21141 add %l7, %o1, %o0, %tgd_add(foo)
21142 call __tls_get_addr, %tgd_call(foo)
21143 sethi %tldm_hi22(foo), %l1
21144 add %l1, %tldm_lo10(foo), %l2
21145 add %l7, %l2, %o0, %tldm_add(foo)
21146 call __tls_get_addr, %tldm_call(foo)
21147 sethi %tldo_hix22(foo), %l3
21148 xor %l3, %tldo_lox10(foo), %l4
21149 add %o0, %l4, %l5, %tldo_add(foo)
21150 sethi %tie_hi22(foo), %o3
21151 add %o3, %tie_lo10(foo), %o3
21152 ld [%l7 + %o3], %o2, %tie_ld(foo)
21153 add %g7, %o2, %o4, %tie_add(foo)
21154 sethi %tle_hix22(foo), %l1
21155 xor %l1, %tle_lox10(foo), %o5
21156 ld [%g7 + %o5], %o1'
21157 tls_first_major=2
21158 tls_first_minor=14
21159 tls_as_opt="-32 --fatal-warnings"
21162 esac
21163 set_have_as_tls=no
21164 if test "x$enable_tls" = xno ; then
21165 : # TLS explicitly disabled.
21166 elif test "x$enable_tls" = xyes ; then
21167 set_have_as_tls=yes # TLS explicitly enabled.
21168 elif test -z "$tls_first_major"; then
21169 : # If we don't have a check, assume no support.
21170 else
21171 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21172 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
21173 if test "${gcc_cv_as_tls+set}" = set; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21175 else
21176 gcc_cv_as_tls=no
21177 if test $in_tree_gas = yes; then
21178 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21179 then gcc_cv_as_tls=yes
21181 elif test x$gcc_cv_as != x; then
21182 echo "$conftest_s" > conftest.s
21183 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21186 ac_status=$?
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; }
21189 then
21190 gcc_cv_as_tls=yes
21191 else
21192 echo "configure: failed program was" >&5
21193 cat conftest.s >&5
21195 rm -f conftest.o conftest.s
21198 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21199 echo "${ECHO_T}$gcc_cv_as_tls" >&6
21200 if test $gcc_cv_as_tls = yes; then
21201 set_have_as_tls=yes
21204 if test $set_have_as_tls = yes ; then
21206 cat >>confdefs.h <<\_ACEOF
21207 #define HAVE_AS_TLS 1
21208 _ACEOF
21212 # Target-specific assembler checks.
21214 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21215 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
21216 gcc_cv_ld_static_dynamic=no
21217 if test $in_tree_ld = yes ; then
21218 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21219 gcc_cv_ld_static_dynamic=yes
21221 elif test x$gcc_cv_ld != x; then
21222 # Check if linker supports -Bstatic/-Bdynamic option
21223 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21224 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21225 gcc_cv_ld_static_dynamic=yes
21228 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21230 cat >>confdefs.h <<\_ACEOF
21231 #define HAVE_LD_STATIC_DYNAMIC 1
21232 _ACEOF
21235 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21236 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
21238 if test x"$demangler_in_ld" = xyes; then
21239 echo "$as_me:$LINENO: checking linker --demangle support" >&5
21240 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
21241 gcc_cv_ld_demangle=no
21242 if test $in_tree_ld = yes; then
21243 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 \
21244 gcc_cv_ld_demangle=yes
21246 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21247 # Check if the GNU linker supports --demangle option
21248 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21249 gcc_cv_ld_demangle=yes
21252 if test x"$gcc_cv_ld_demangle" = xyes; then
21254 cat >>confdefs.h <<\_ACEOF
21255 #define HAVE_LD_DEMANGLE 1
21256 _ACEOF
21259 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21260 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
21263 case "$target" in
21264 # All TARGET_ABI_OSF targets.
21265 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
21266 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21267 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21268 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21269 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 else
21271 gcc_cv_as_alpha_explicit_relocs=no
21272 if test $in_tree_gas = yes; then
21273 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21274 then gcc_cv_as_alpha_explicit_relocs=yes
21276 elif test x$gcc_cv_as != x; then
21277 echo ' .set nomacro
21278 .text
21279 extbl $3, $2, $3 !lituse_bytoff!1
21280 ldq $2, a($29) !literal!1
21281 ldq $4, b($29) !literal!2
21282 ldq_u $3, 0($2) !lituse_base!1
21283 ldq $27, f($29) !literal!5
21284 jsr $26, ($27), f !lituse_jsr!5
21285 ldah $29, 0($26) !gpdisp!3
21286 lda $0, c($29) !gprel
21287 ldah $1, d($29) !gprelhigh
21288 lda $1, d($1) !gprellow
21289 lda $29, 0($29) !gpdisp!3' > conftest.s
21290 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292 (eval $ac_try) 2>&5
21293 ac_status=$?
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; }
21296 then
21297 gcc_cv_as_alpha_explicit_relocs=yes
21298 else
21299 echo "configure: failed program was" >&5
21300 cat conftest.s >&5
21302 rm -f conftest.o conftest.s
21305 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21306 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
21307 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21309 cat >>confdefs.h <<\_ACEOF
21310 #define HAVE_AS_EXPLICIT_RELOCS 1
21311 _ACEOF
21314 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21315 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
21316 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21317 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 else
21319 gcc_cv_as_alpha_jsrdirect_relocs=no
21320 if test $in_tree_gas = yes; then
21321 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21322 then gcc_cv_as_alpha_jsrdirect_relocs=yes
21324 elif test x$gcc_cv_as != x; then
21325 echo ' .set nomacro
21326 .text
21327 ldq $27, a($29) !literal!1
21328 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21329 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331 (eval $ac_try) 2>&5
21332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; }
21335 then
21336 gcc_cv_as_alpha_jsrdirect_relocs=yes
21337 else
21338 echo "configure: failed program was" >&5
21339 cat conftest.s >&5
21341 rm -f conftest.o conftest.s
21344 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21345 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
21346 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21348 cat >>confdefs.h <<\_ACEOF
21349 #define HAVE_AS_JSRDIRECT_RELOCS 1
21350 _ACEOF
21355 cris-*-*)
21356 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21357 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
21358 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360 else
21361 gcc_cv_as_cris_no_mul_bug=no
21362 if test $in_tree_gas = yes; then
21363 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21364 then gcc_cv_as_cris_no_mul_bug=yes
21366 elif test x$gcc_cv_as != x; then
21367 echo '.text' > conftest.s
21368 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; }
21374 then
21375 gcc_cv_as_cris_no_mul_bug=yes
21376 else
21377 echo "configure: failed program was" >&5
21378 cat conftest.s >&5
21380 rm -f conftest.o conftest.s
21383 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21384 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21385 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21387 cat >>confdefs.h <<\_ACEOF
21388 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21389 _ACEOF
21394 sparc*-*-*)
21395 echo "$as_me:$LINENO: checking assembler for .register" >&5
21396 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21397 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21398 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 else
21400 gcc_cv_as_sparc_register_op=no
21401 if test x$gcc_cv_as != x; then
21402 echo '.register %g2, #scratch' > conftest.s
21403 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21406 ac_status=$?
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; }
21409 then
21410 gcc_cv_as_sparc_register_op=yes
21411 else
21412 echo "configure: failed program was" >&5
21413 cat conftest.s >&5
21415 rm -f conftest.o conftest.s
21418 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21419 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21420 if test $gcc_cv_as_sparc_register_op = yes; then
21422 cat >>confdefs.h <<\_ACEOF
21423 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21424 _ACEOF
21428 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21429 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21430 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21431 echo $ECHO_N "(cached) $ECHO_C" >&6
21432 else
21433 gcc_cv_as_sparc_relax=no
21434 if test x$gcc_cv_as != x; then
21435 echo '.text' > conftest.s
21436 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21439 ac_status=$?
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; }
21442 then
21443 gcc_cv_as_sparc_relax=yes
21444 else
21445 echo "configure: failed program was" >&5
21446 cat conftest.s >&5
21448 rm -f conftest.o conftest.s
21451 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21452 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21453 if test $gcc_cv_as_sparc_relax = yes; then
21455 cat >>confdefs.h <<\_ACEOF
21456 #define HAVE_AS_RELAX_OPTION 1
21457 _ACEOF
21461 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21462 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21463 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21464 echo $ECHO_N "(cached) $ECHO_C" >&6
21465 else
21466 gcc_cv_as_sparc_ua_pcrel=no
21467 if test x$gcc_cv_as != x; then
21468 echo '.text
21469 foo:
21471 .data
21472 .align 4
21473 .byte 0
21474 .uaword %r_disp32(foo)' > conftest.s
21475 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21478 ac_status=$?
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; }
21481 then
21482 if test x$gcc_cv_ld != x \
21483 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
21484 gcc_cv_as_sparc_ua_pcrel=yes
21486 rm -f conftest
21487 else
21488 echo "configure: failed program was" >&5
21489 cat conftest.s >&5
21491 rm -f conftest.o conftest.s
21494 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21495 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21496 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21498 cat >>confdefs.h <<\_ACEOF
21499 #define HAVE_AS_SPARC_UA_PCREL 1
21500 _ACEOF
21503 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21504 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21505 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508 gcc_cv_as_sparc_ua_pcrel_hidden=no
21509 if test x$gcc_cv_as != x; then
21510 echo '.data
21511 .align 4
21512 .byte 0x31
21513 .uaword %r_disp32(foo)
21514 .byte 0x32, 0x33, 0x34
21515 .global foo
21516 .hidden foo
21517 foo:
21518 .skip 4' > conftest.s
21519 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; }
21525 then
21526 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
21527 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
21528 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
21529 | grep ' 31000000 07323334' > /dev/null 2>&1; then
21530 if $gcc_cv_objdump -R conftest 2> /dev/null \
21531 | grep 'DISP32' > /dev/null 2>&1; then
21533 else
21534 gcc_cv_as_sparc_ua_pcrel_hidden=yes
21537 rm -f conftest
21538 else
21539 echo "configure: failed program was" >&5
21540 cat conftest.s >&5
21542 rm -f conftest.o conftest.s
21545 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21546 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21547 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21549 cat >>confdefs.h <<\_ACEOF
21550 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21551 _ACEOF
21555 fi # unaligned pcrel relocs
21557 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21558 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21559 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561 else
21562 gcc_cv_as_sparc_offsetable_lo10=no
21563 if test x$gcc_cv_as != x; then
21564 echo '.text
21565 or %g1, %lo(ab) + 12, %g1
21566 or %g1, %lo(ab + 12), %g1' > conftest.s
21567 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; }
21573 then
21574 if test x$gcc_cv_objdump != x \
21575 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
21576 | grep ' 82106000 82106000' > /dev/null 2>&1; then
21577 gcc_cv_as_sparc_offsetable_lo10=yes
21579 else
21580 echo "configure: failed program was" >&5
21581 cat conftest.s >&5
21583 rm -f conftest.o conftest.s
21586 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21587 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21588 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21590 cat >>confdefs.h <<\_ACEOF
21591 #define HAVE_AS_OFFSETABLE_LO10 1
21592 _ACEOF
21597 i[34567]86-*-* | x86_64-*-*)
21598 case $target_os in
21599 cygwin* | pe | mingw32*)
21600 # Used for DWARF 2 in PE
21601 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21602 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21603 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21604 echo $ECHO_N "(cached) $ECHO_C" >&6
21605 else
21606 gcc_cv_as_ix86_pe_secrel32=no
21607 if test $in_tree_gas = yes; then
21608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21609 then gcc_cv_as_ix86_pe_secrel32=yes
21611 elif test x$gcc_cv_as != x; then
21612 echo '.text
21613 foo: nop
21614 .data
21615 .secrel32 foo' > conftest.s
21616 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21619 ac_status=$?
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }
21622 then
21623 if test x$gcc_cv_ld != x \
21624 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
21625 gcc_cv_as_ix86_pe_secrel32=yes
21627 rm -f conftest
21628 else
21629 echo "configure: failed program was" >&5
21630 cat conftest.s >&5
21632 rm -f conftest.o conftest.s
21635 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21636 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21637 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21639 cat >>confdefs.h <<\_ACEOF
21640 #define HAVE_GAS_PE_SECREL32_RELOC 1
21641 _ACEOF
21645 esac
21647 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21648 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21649 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21651 else
21652 gcc_cv_as_ix86_filds_fists=no
21653 if test $in_tree_gas = yes; then
21654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21655 then gcc_cv_as_ix86_filds_fists=yes
21657 elif test x$gcc_cv_as != x; then
21658 echo 'filds mem; fists mem' > conftest.s
21659 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; }
21665 then
21666 gcc_cv_as_ix86_filds_fists=yes
21667 else
21668 echo "configure: failed program was" >&5
21669 cat conftest.s >&5
21671 rm -f conftest.o conftest.s
21674 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21675 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
21676 if test $gcc_cv_as_ix86_filds_fists = yes; then
21678 cat >>confdefs.h <<\_ACEOF
21679 #define HAVE_GAS_FILDS_FISTS 1
21680 _ACEOF
21684 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21685 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
21686 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21688 else
21689 gcc_cv_as_ix86_cmov_sun_syntax=no
21690 if test x$gcc_cv_as != x; then
21691 echo 'cmovl.l %edx, %eax' > conftest.s
21692 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21695 ac_status=$?
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; }
21698 then
21699 gcc_cv_as_ix86_cmov_sun_syntax=yes
21700 else
21701 echo "configure: failed program was" >&5
21702 cat conftest.s >&5
21704 rm -f conftest.o conftest.s
21707 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21708 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
21709 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
21711 cat >>confdefs.h <<\_ACEOF
21712 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
21713 _ACEOF
21717 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
21718 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
21719 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
21720 echo $ECHO_N "(cached) $ECHO_C" >&6
21721 else
21722 gcc_cv_as_ix86_ffreep=no
21723 if test x$gcc_cv_as != x; then
21724 echo 'ffreep %st(1)' > conftest.s
21725 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 (eval $ac_try) 2>&5
21728 ac_status=$?
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; }
21731 then
21732 gcc_cv_as_ix86_ffreep=yes
21733 else
21734 echo "configure: failed program was" >&5
21735 cat conftest.s >&5
21737 rm -f conftest.o conftest.s
21740 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
21741 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
21742 if test $gcc_cv_as_ix86_ffreep = yes; then
21744 cat >>confdefs.h <<\_ACEOF
21745 #define HAVE_AS_IX86_FFREEP 1
21746 _ACEOF
21750 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
21751 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
21752 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
21753 echo $ECHO_N "(cached) $ECHO_C" >&6
21754 else
21755 gcc_cv_as_ix86_sahf=no
21756 if test x$gcc_cv_as != x; then
21757 echo 'sahf' > conftest.s
21758 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21761 ac_status=$?
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; }
21764 then
21765 gcc_cv_as_ix86_sahf=yes
21766 else
21767 echo "configure: failed program was" >&5
21768 cat conftest.s >&5
21770 rm -f conftest.o conftest.s
21773 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
21774 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
21775 if test $gcc_cv_as_ix86_sahf = yes; then
21777 cat >>confdefs.h <<\_ACEOF
21778 #define HAVE_AS_IX86_SAHF 1
21779 _ACEOF
21783 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
21784 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
21785 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
21786 echo $ECHO_N "(cached) $ECHO_C" >&6
21787 else
21788 gcc_cv_as_ix86_diff_sect_delta=no
21789 if test x$gcc_cv_as != x; then
21790 echo '.section .rodata
21791 .L1:
21792 .long .L2-.L1
21793 .long .L3-.L1
21794 .text
21795 .L3: nop
21796 .L2: nop' > conftest.s
21797 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21799 (eval $ac_try) 2>&5
21800 ac_status=$?
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; }
21803 then
21804 gcc_cv_as_ix86_diff_sect_delta=yes
21805 else
21806 echo "configure: failed program was" >&5
21807 cat conftest.s >&5
21809 rm -f conftest.o conftest.s
21812 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
21813 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
21814 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
21816 cat >>confdefs.h <<\_ACEOF
21817 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
21818 _ACEOF
21822 # This one is used unconditionally by i386.[ch]; it is to be defined
21823 # to 1 if the feature is present, 0 otherwise.
21824 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
21825 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
21826 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21828 else
21829 gcc_cv_as_ix86_gotoff_in_data=no
21830 if test $in_tree_gas = yes; then
21831 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21832 then gcc_cv_as_ix86_gotoff_in_data=yes
21834 elif test x$gcc_cv_as != x; then
21835 echo ' .text
21836 .L0:
21838 .data
21839 .long .L0@GOTOFF' > conftest.s
21840 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21842 (eval $ac_try) 2>&5
21843 ac_status=$?
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); }; }
21846 then
21847 gcc_cv_as_ix86_gotoff_in_data=yes
21848 else
21849 echo "configure: failed program was" >&5
21850 cat conftest.s >&5
21852 rm -f conftest.o conftest.s
21855 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
21856 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
21859 cat >>confdefs.h <<_ACEOF
21860 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
21861 _ACEOF
21865 ia64*-*-*)
21866 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
21867 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
21868 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
21869 echo $ECHO_N "(cached) $ECHO_C" >&6
21870 else
21871 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
21872 if test $in_tree_gas = yes; then
21873 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
21874 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
21876 elif test x$gcc_cv_as != x; then
21877 echo ' .text
21878 addl r15 = @ltoffx(x#), gp
21880 ld8.mov r16 = [r15], x#' > conftest.s
21881 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883 (eval $ac_try) 2>&5
21884 ac_status=$?
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; }
21887 then
21888 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
21889 else
21890 echo "configure: failed program was" >&5
21891 cat conftest.s >&5
21893 rm -f conftest.o conftest.s
21896 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
21897 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
21898 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
21900 cat >>confdefs.h <<\_ACEOF
21901 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
21902 _ACEOF
21908 powerpc*-*-*)
21909 case $target in
21910 *-*-aix*) conftest_s=' .machine "pwr5"
21911 .csect .text[PR]
21912 mfcr 3,128';;
21913 *-*-darwin*)
21914 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
21915 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
21916 if test "${gcc_cv_as_machine_directive+set}" = set; then
21917 echo $ECHO_N "(cached) $ECHO_C" >&6
21918 else
21919 gcc_cv_as_machine_directive=no
21920 if test x$gcc_cv_as != x; then
21921 echo ' .machine ppc7400' > conftest.s
21922 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }
21928 then
21929 gcc_cv_as_machine_directive=yes
21930 else
21931 echo "configure: failed program was" >&5
21932 cat conftest.s >&5
21934 rm -f conftest.o conftest.s
21937 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
21938 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
21940 if test x$gcc_cv_as_machine_directive != xyes; then
21941 echo "*** This target requires an assembler supporting \".machine\"" >&2
21942 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
21943 test x$build = x$target && exit 1
21945 conftest_s=' .text
21946 mfcr r3,128';;
21947 *) conftest_s=' .machine power4
21948 .text
21949 mfcr 3,128';;
21950 esac
21952 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
21953 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
21954 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21956 else
21957 gcc_cv_as_powerpc_mfcrf=no
21958 if test $in_tree_gas = yes; then
21959 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
21960 then gcc_cv_as_powerpc_mfcrf=yes
21962 elif test x$gcc_cv_as != x; then
21963 echo "$conftest_s" > conftest.s
21964 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21967 ac_status=$?
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }
21970 then
21971 gcc_cv_as_powerpc_mfcrf=yes
21972 else
21973 echo "configure: failed program was" >&5
21974 cat conftest.s >&5
21976 rm -f conftest.o conftest.s
21979 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
21980 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
21981 if test $gcc_cv_as_powerpc_mfcrf = yes; then
21983 cat >>confdefs.h <<\_ACEOF
21984 #define HAVE_AS_MFCRF 1
21985 _ACEOF
21989 case $target in
21990 *-*-aix*) conftest_s=' .machine "pwr5"
21991 .csect .text[PR]
21992 popcntb 3,3';;
21993 *) conftest_s=' .machine power5
21994 .text
21995 popcntb 3,3';;
21996 esac
21998 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
21999 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22000 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22001 echo $ECHO_N "(cached) $ECHO_C" >&6
22002 else
22003 gcc_cv_as_powerpc_popcntb=no
22004 if test $in_tree_gas = yes; then
22005 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22006 then gcc_cv_as_powerpc_popcntb=yes
22008 elif test x$gcc_cv_as != x; then
22009 echo "$conftest_s" > conftest.s
22010 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012 (eval $ac_try) 2>&5
22013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; }
22016 then
22017 gcc_cv_as_powerpc_popcntb=yes
22018 else
22019 echo "configure: failed program was" >&5
22020 cat conftest.s >&5
22022 rm -f conftest.o conftest.s
22025 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22026 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
22027 if test $gcc_cv_as_powerpc_popcntb = yes; then
22029 cat >>confdefs.h <<\_ACEOF
22030 #define HAVE_AS_POPCNTB 1
22031 _ACEOF
22035 case $target in
22036 *-*-aix*) conftest_s=' .machine "pwr5x"
22037 .csect .text[PR]
22038 frin 1,1';;
22039 *) conftest_s=' .machine power5
22040 .text
22041 frin 1,1';;
22042 esac
22044 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22045 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
22046 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22048 else
22049 gcc_cv_as_powerpc_fprnd=no
22050 if test $in_tree_gas = yes; then
22051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22052 then gcc_cv_as_powerpc_fprnd=yes
22054 elif test x$gcc_cv_as != x; then
22055 echo "$conftest_s" > conftest.s
22056 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; }
22062 then
22063 gcc_cv_as_powerpc_fprnd=yes
22064 else
22065 echo "configure: failed program was" >&5
22066 cat conftest.s >&5
22068 rm -f conftest.o conftest.s
22071 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22072 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
22073 if test $gcc_cv_as_powerpc_fprnd = yes; then
22075 cat >>confdefs.h <<\_ACEOF
22076 #define HAVE_AS_FPRND 1
22077 _ACEOF
22081 case $target in
22082 *-*-aix*) conftest_s=' .machine "pwr6"
22083 .csect .text[PR]
22084 mffgpr 1,3';;
22085 *) conftest_s=' .machine power6
22086 .text
22087 mffgpr 1,3';;
22088 esac
22090 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22091 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
22092 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22093 echo $ECHO_N "(cached) $ECHO_C" >&6
22094 else
22095 gcc_cv_as_powerpc_mfpgpr=no
22096 if test $in_tree_gas = yes; then
22097 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22098 then gcc_cv_as_powerpc_mfpgpr=yes
22100 elif test x$gcc_cv_as != x; then
22101 echo "$conftest_s" > conftest.s
22102 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22105 ac_status=$?
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }
22108 then
22109 gcc_cv_as_powerpc_mfpgpr=yes
22110 else
22111 echo "configure: failed program was" >&5
22112 cat conftest.s >&5
22114 rm -f conftest.o conftest.s
22117 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22118 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
22119 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22121 cat >>confdefs.h <<\_ACEOF
22122 #define HAVE_AS_MFPGPR 1
22123 _ACEOF
22127 case $target in
22128 *-*-aix*) conftest_s=' .csect .text[PR]
22129 LCF..0:
22130 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22131 *-*-darwin*)
22132 conftest_s=' .text
22133 LCF0:
22134 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22135 *) conftest_s=' .text
22136 .LCF0:
22137 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22138 esac
22140 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22141 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
22142 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22143 echo $ECHO_N "(cached) $ECHO_C" >&6
22144 else
22145 gcc_cv_as_powerpc_rel16=no
22146 if test $in_tree_gas = yes; then
22147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22148 then gcc_cv_as_powerpc_rel16=yes
22150 elif test x$gcc_cv_as != x; then
22151 echo "$conftest_s" > conftest.s
22152 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; }
22158 then
22159 gcc_cv_as_powerpc_rel16=yes
22160 else
22161 echo "configure: failed program was" >&5
22162 cat conftest.s >&5
22164 rm -f conftest.o conftest.s
22167 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22168 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
22169 if test $gcc_cv_as_powerpc_rel16 = yes; then
22171 cat >>confdefs.h <<\_ACEOF
22172 #define HAVE_AS_REL16 1
22173 _ACEOF
22177 case $target in
22178 *-*-aix*) conftest_s=' .machine "pwr6"
22179 .csect .text[PR]
22180 cmpb 3,4,5';;
22181 *) conftest_s=' .machine power6
22182 .text
22183 cmpb 3,4,5';;
22184 esac
22186 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22187 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
22188 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22189 echo $ECHO_N "(cached) $ECHO_C" >&6
22190 else
22191 gcc_cv_as_powerpc_cmpb=no
22192 if test $in_tree_gas = yes; then
22193 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22194 then gcc_cv_as_powerpc_cmpb=yes
22196 elif test x$gcc_cv_as != x; then
22197 echo "$conftest_s" > conftest.s
22198 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200 (eval $ac_try) 2>&5
22201 ac_status=$?
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); }; }
22204 then
22205 gcc_cv_as_powerpc_cmpb=yes
22206 else
22207 echo "configure: failed program was" >&5
22208 cat conftest.s >&5
22210 rm -f conftest.o conftest.s
22213 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22214 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
22215 if test $gcc_cv_as_powerpc_cmpb = yes; then
22217 cat >>confdefs.h <<\_ACEOF
22218 #define HAVE_AS_CMPB 1
22219 _ACEOF
22223 case $target in
22224 *-*-aix*) conftest_s=' .machine "pwr6"
22225 .csect .text[PR]
22226 dadd 1,2,3';;
22227 *) conftest_s=' .machine power6
22228 .text
22229 dadd 1,2,3';;
22230 esac
22232 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22233 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
22234 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22235 echo $ECHO_N "(cached) $ECHO_C" >&6
22236 else
22237 gcc_cv_as_powerpc_dfp=no
22238 if test $in_tree_gas = yes; then
22239 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22240 then gcc_cv_as_powerpc_dfp=yes
22242 elif test x$gcc_cv_as != x; then
22243 echo "$conftest_s" > conftest.s
22244 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246 (eval $ac_try) 2>&5
22247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; }
22250 then
22251 gcc_cv_as_powerpc_dfp=yes
22252 else
22253 echo "configure: failed program was" >&5
22254 cat conftest.s >&5
22256 rm -f conftest.o conftest.s
22259 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22260 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
22261 if test $gcc_cv_as_powerpc_dfp = yes; then
22263 cat >>confdefs.h <<\_ACEOF
22264 #define HAVE_AS_DFP 1
22265 _ACEOF
22269 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22270 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22271 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22273 else
22274 gcc_cv_as_powerpc_gnu_attribute=no
22275 if test $in_tree_gas = yes; then
22276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22277 then gcc_cv_as_powerpc_gnu_attribute=yes
22279 elif test x$gcc_cv_as != x; then
22280 echo '.gnu_attribute 4,1' > conftest.s
22281 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283 (eval $ac_try) 2>&5
22284 ac_status=$?
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); }; }
22287 then
22288 gcc_cv_as_powerpc_gnu_attribute=yes
22289 else
22290 echo "configure: failed program was" >&5
22291 cat conftest.s >&5
22293 rm -f conftest.o conftest.s
22296 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22297 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
22298 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22300 cat >>confdefs.h <<\_ACEOF
22301 #define HAVE_AS_GNU_ATTRIBUTE 1
22302 _ACEOF
22307 mips*-*-*)
22308 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22309 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22310 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22311 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 else
22313 gcc_cv_as_mips_explicit_relocs=no
22314 if test $in_tree_gas = yes; then
22315 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22316 then gcc_cv_as_mips_explicit_relocs=yes
22318 elif test x$gcc_cv_as != x; then
22319 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
22320 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22322 (eval $ac_try) 2>&5
22323 ac_status=$?
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); }; }
22326 then
22327 gcc_cv_as_mips_explicit_relocs=yes
22328 else
22329 echo "configure: failed program was" >&5
22330 cat conftest.s >&5
22332 rm -f conftest.o conftest.s
22335 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22336 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
22337 if test $gcc_cv_as_mips_explicit_relocs = yes; then
22338 if test x$target_cpu_default = x
22339 then target_cpu_default=MASK_EXPLICIT_RELOCS
22340 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22343 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22344 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
22345 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22347 else
22348 gcc_cv_as_mips_no_shared=no
22349 if test $in_tree_gas = yes; then
22350 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22351 then gcc_cv_as_mips_no_shared=yes
22353 elif test x$gcc_cv_as != x; then
22354 echo 'nop' > conftest.s
22355 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357 (eval $ac_try) 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; }
22361 then
22362 gcc_cv_as_mips_no_shared=yes
22363 else
22364 echo "configure: failed program was" >&5
22365 cat conftest.s >&5
22367 rm -f conftest.o conftest.s
22370 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22371 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
22372 if test $gcc_cv_as_mips_no_shared = yes; then
22374 cat >>confdefs.h <<\_ACEOF
22375 #define HAVE_AS_NO_SHARED 1
22376 _ACEOF
22380 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22381 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22382 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22383 echo $ECHO_N "(cached) $ECHO_C" >&6
22384 else
22385 gcc_cv_as_mips_gnu_attribute=no
22386 if test $in_tree_gas = yes; then
22387 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22388 then gcc_cv_as_mips_gnu_attribute=yes
22390 elif test x$gcc_cv_as != x; then
22391 echo '.gnu_attribute 4,1' > conftest.s
22392 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; }
22398 then
22399 gcc_cv_as_mips_gnu_attribute=yes
22400 else
22401 echo "configure: failed program was" >&5
22402 cat conftest.s >&5
22404 rm -f conftest.o conftest.s
22407 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22408 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22409 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22411 cat >>confdefs.h <<\_ACEOF
22412 #define HAVE_AS_GNU_ATTRIBUTE 1
22413 _ACEOF
22417 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22418 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22419 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22420 echo $ECHO_N "(cached) $ECHO_C" >&6
22421 else
22422 gcc_cv_as_mips_dtprelword=no
22423 if test $in_tree_gas = yes; then
22424 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22425 then gcc_cv_as_mips_dtprelword=yes
22427 elif test x$gcc_cv_as != x; then
22428 echo '.section .tdata,"awT",@progbits
22430 .word 2
22431 .text
22432 .dtprelword x+0x8000' > conftest.s
22433 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; }
22439 then
22440 gcc_cv_as_mips_dtprelword=yes
22441 else
22442 echo "configure: failed program was" >&5
22443 cat conftest.s >&5
22445 rm -f conftest.o conftest.s
22448 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22449 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22450 if test $gcc_cv_as_mips_dtprelword = yes; then
22452 cat >>confdefs.h <<\_ACEOF
22453 #define HAVE_AS_DTPRELWORD 1
22454 _ACEOF
22458 esac
22460 # Mips and HP-UX need the GNU assembler.
22461 # Linux on IA64 might be able to use the Intel assembler.
22463 case "$target" in
22464 mips*-*-* | *-*-hpux* )
22465 if test x$gas_flag = xyes \
22466 || test x"$host" != x"$build" \
22467 || test ! -x "$gcc_cv_as" \
22468 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
22470 else
22471 echo "*** This configuration requires the GNU assembler" >&2
22472 exit 1
22475 esac
22477 # ??? Not all targets support dwarf2 debug_line, even within a version
22478 # of gas. Moreover, we need to emit a valid instruction to trigger any
22479 # info to the output file. So, as supported targets are added to gas 2.11,
22480 # add some instruction here to (also) show we expect this might work.
22481 # ??? Once 2.11 is released, probably need to add first known working
22482 # version to the per-target configury.
22483 case "$target" in
22484 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
22485 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
22486 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
22487 insn="nop"
22489 ia64*-*-* | s390*-*-*)
22490 insn="nop 0"
22492 mmix-*-*)
22493 insn="swym 0"
22495 esac
22496 if test x"$insn" != x; then
22497 conftest_s="\
22498 .file 1 \"conftest.s\"
22499 .loc 1 3 0
22500 $insn"
22501 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22502 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22503 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22504 echo $ECHO_N "(cached) $ECHO_C" >&6
22505 else
22506 gcc_cv_as_dwarf2_debug_line=no
22507 if test $in_tree_gas = yes; then
22508 if test $in_tree_gas_is_elf = yes \
22509 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22510 then gcc_cv_as_dwarf2_debug_line=yes
22512 elif test x$gcc_cv_as != x; then
22513 echo "$conftest_s" > conftest.s
22514 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516 (eval $ac_try) 2>&5
22517 ac_status=$?
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); }; }
22520 then
22521 if test x$gcc_cv_objdump != x \
22522 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
22523 | grep debug_line > /dev/null 2>&1; then
22524 gcc_cv_as_dwarf2_debug_line=yes
22526 else
22527 echo "configure: failed program was" >&5
22528 cat conftest.s >&5
22530 rm -f conftest.o conftest.s
22533 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22534 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22537 # The .debug_line file table must be in the exact order that
22538 # we specified the files, since these indices are also used
22539 # by DW_AT_decl_file. Approximate this test by testing if
22540 # the assembler bitches if the same index is assigned twice.
22541 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22542 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22543 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22544 echo $ECHO_N "(cached) $ECHO_C" >&6
22545 else
22546 gcc_cv_as_dwarf2_file_buggy=no
22547 if test x$gcc_cv_as != x; then
22548 echo ' .file 1 "foo.s"
22549 .file 1 "bar.s"' > conftest.s
22550 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552 (eval $ac_try) 2>&5
22553 ac_status=$?
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; }
22556 then
22557 gcc_cv_as_dwarf2_file_buggy=yes
22558 else
22559 echo "configure: failed program was" >&5
22560 cat conftest.s >&5
22562 rm -f conftest.o conftest.s
22565 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22566 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22569 if test $gcc_cv_as_dwarf2_debug_line = yes \
22570 && test $gcc_cv_as_dwarf2_file_buggy = no; then
22572 cat >>confdefs.h <<\_ACEOF
22573 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22574 _ACEOF
22578 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22579 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22580 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22581 echo $ECHO_N "(cached) $ECHO_C" >&6
22582 else
22583 gcc_cv_as_gdwarf2_flag=no
22584 if test $in_tree_gas = yes; then
22585 if test $in_tree_gas_is_elf = yes \
22586 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22587 then gcc_cv_as_gdwarf2_flag=yes
22589 elif test x$gcc_cv_as != x; then
22590 echo "$insn" > conftest.s
22591 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22593 (eval $ac_try) 2>&5
22594 ac_status=$?
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); }; }
22597 then
22598 gcc_cv_as_gdwarf2_flag=yes
22599 else
22600 echo "configure: failed program was" >&5
22601 cat conftest.s >&5
22603 rm -f conftest.o conftest.s
22606 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22607 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
22608 if test $gcc_cv_as_gdwarf2_flag = yes; then
22610 cat >>confdefs.h <<\_ACEOF
22611 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
22612 _ACEOF
22616 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22617 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
22618 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22619 echo $ECHO_N "(cached) $ECHO_C" >&6
22620 else
22621 gcc_cv_as_gstabs_flag=no
22622 if test $in_tree_gas = yes; then
22623 if test $in_tree_gas_is_elf = yes \
22624 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22625 then gcc_cv_as_gstabs_flag=yes
22627 elif test x$gcc_cv_as != x; then
22628 echo "$insn" > conftest.s
22629 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631 (eval $ac_try) 2>&5
22632 ac_status=$?
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; }
22635 then
22636 # The native Solaris 9/Intel assembler doesn't understand --gstabs
22637 # and warns about it, but still exits successfully. So check for
22638 # this.
22639 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641 (eval $ac_try) 2>&5
22642 ac_status=$?
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); }; }
22645 then :
22646 else gcc_cv_as_gstabs_flag=yes
22648 else
22649 echo "configure: failed program was" >&5
22650 cat conftest.s >&5
22652 rm -f conftest.o conftest.s
22655 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22656 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
22657 if test $gcc_cv_as_gstabs_flag = yes; then
22659 cat >>confdefs.h <<\_ACEOF
22660 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
22661 _ACEOF
22665 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22666 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
22667 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22668 echo $ECHO_N "(cached) $ECHO_C" >&6
22669 else
22670 gcc_cv_as_debug_prefix_map_flag=no
22671 if test $in_tree_gas = yes; then
22672 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22673 then gcc_cv_as_debug_prefix_map_flag=yes
22675 elif test x$gcc_cv_as != x; then
22676 echo "$insn" > conftest.s
22677 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679 (eval $ac_try) 2>&5
22680 ac_status=$?
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); }; }
22683 then
22684 gcc_cv_as_debug_prefix_map_flag=yes
22685 else
22686 echo "configure: failed program was" >&5
22687 cat conftest.s >&5
22689 rm -f conftest.o conftest.s
22692 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22693 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
22694 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22696 cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_AS_DEBUG_PREFIX_MAP 1
22698 _ACEOF
22703 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22704 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
22705 if test "${gcc_cv_as_line_zero+set}" = set; then
22706 echo $ECHO_N "(cached) $ECHO_C" >&6
22707 else
22708 gcc_cv_as_line_zero=no
22709 if test $in_tree_gas = yes; then
22710 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22711 then gcc_cv_as_line_zero=yes
22713 elif test "x$gcc_cv_as" != x; then
22714 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22715 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717 (eval $ac_try) 2>&5
22718 ac_status=$?
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; } &&
22721 test "x`cat conftest.out`" = x
22722 then
22723 gcc_cv_as_line_zero=yes
22724 else
22725 echo "configure: failed program was" >&5
22726 cat conftest.s >&5
22727 echo "configure: error output was" >&5
22728 cat conftest.out >&5
22730 rm -f conftest.o conftest.s conftest.out
22733 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
22734 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
22735 if test "x$gcc_cv_as_line_zero" = xyes; then
22737 cat >>confdefs.h <<\_ACEOF
22738 #define HAVE_AS_LINE_ZERO 1
22739 _ACEOF
22743 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
22744 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
22745 gcc_cv_ld_ro_rw_mix=unknown
22746 if test $in_tree_ld = yes ; then
22747 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 \
22748 && test $in_tree_ld_is_elf = yes; then
22749 gcc_cv_ld_ro_rw_mix=read-write
22751 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22752 echo '.section myfoosect, "a"' > conftest1.s
22753 echo '.section myfoosect, "aw"' > conftest2.s
22754 echo '.byte 1' >> conftest2.s
22755 echo '.section myfoosect, "a"' > conftest3.s
22756 echo '.byte 0' >> conftest3.s
22757 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22758 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22759 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22760 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22761 conftest2.o conftest3.o > /dev/null 2>&1; then
22762 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22763 | sed -e '/myfoosect/!d' -e N`
22764 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22765 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22766 gcc_cv_ld_ro_rw_mix=read-only
22767 else
22768 gcc_cv_ld_ro_rw_mix=read-write
22772 rm -f conftest.* conftest[123].*
22774 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22776 cat >>confdefs.h <<\_ACEOF
22777 #define HAVE_LD_RO_RW_SECTION_MIXING 1
22778 _ACEOF
22781 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
22782 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
22784 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
22785 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
22786 gcc_cv_ld_eh_frame_hdr=no
22787 if test $in_tree_ld = yes ; then
22788 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 \
22789 && test $in_tree_ld_is_elf = yes; then
22790 gcc_cv_ld_eh_frame_hdr=yes
22792 elif test x$gcc_cv_ld != x; then
22793 # Check if linker supports --eh-frame-hdr option
22794 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
22795 gcc_cv_ld_eh_frame_hdr=yes
22799 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
22801 cat >>confdefs.h <<\_ACEOF
22802 #define HAVE_LD_EH_FRAME_HDR 1
22803 _ACEOF
22806 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
22807 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
22809 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
22810 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
22811 gcc_cv_ld_pie=no
22812 if test $in_tree_ld = yes ; then
22813 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 \
22814 && test $in_tree_ld_is_elf = yes; then
22815 gcc_cv_ld_pie=yes
22817 elif test x$gcc_cv_ld != x; then
22818 # Check if linker supports -pie option
22819 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
22820 gcc_cv_ld_pie=yes
22823 if test x"$gcc_cv_ld_pie" = xyes; then
22825 cat >>confdefs.h <<\_ACEOF
22826 #define HAVE_LD_PIE 1
22827 _ACEOF
22830 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
22831 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
22833 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
22834 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
22835 gcc_cv_ld_eh_gc_sections=no
22836 if test $in_tree_ld = yes ; then
22837 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 \
22838 && test $in_tree_ld_is_elf = yes; then
22839 gcc_cv_ld_eh_gc_sections=yes
22841 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22842 cat > conftest.s <<EOF
22843 .section .text
22844 .globl _start
22845 .type _start, @function
22846 _start:
22847 .long foo
22848 .size _start, .-_start
22849 .section .text.foo,"ax",@progbits
22850 .type foo, @function
22851 foo:
22852 .long 0
22853 .size foo, .-foo
22854 .section .gcc_except_table.foo,"a",@progbits
22855 .L0:
22856 .long 0
22857 .section .eh_frame,"a",@progbits
22858 .long .L0
22860 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
22861 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
22862 | grep "gc-sections option ignored" > /dev/null; then
22863 gcc_cv_ld_eh_gc_sections=no
22864 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
22865 gcc_cv_ld_eh_gc_sections=yes
22866 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
22867 if test x$gcc_cv_as_comdat_group != xyes; then
22868 gcc_cv_ld_eh_gc_sections=no
22869 cat > conftest.s <<EOF
22870 .section .text
22871 .globl _start
22872 .type _start, @function
22873 _start:
22874 .long foo
22875 .size _start, .-_start
22876 .section .gnu.linkonce.t.foo,"ax",@progbits
22877 .type foo, @function
22878 foo:
22879 .long 0
22880 .size foo, .-foo
22881 .section .gcc_except_table.foo,"a",@progbits
22882 .L0:
22883 .long 0
22884 .section .eh_frame,"a",@progbits
22885 .long .L0
22887 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
22888 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
22889 | grep "gc-sections option ignored" > /dev/null; then
22890 gcc_cv_ld_eh_gc_sections=no
22891 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
22892 gcc_cv_ld_eh_gc_sections=yes
22898 rm -f conftest.s conftest.o conftest
22900 case "$target" in
22901 hppa*-*-linux*)
22902 # ??? This apparently exposes a binutils bug with PC-relative relocations.
22903 gcc_cv_ld_eh_gc_sections=no
22905 esac
22906 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
22908 cat >>confdefs.h <<\_ACEOF
22909 #define HAVE_LD_EH_GC_SECTIONS 1
22910 _ACEOF
22913 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
22914 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
22916 # --------
22917 # UNSORTED
22918 # --------
22920 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
22921 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
22922 if test "${gcc_cv_ld_as_needed+set}" = set; then
22923 echo $ECHO_N "(cached) $ECHO_C" >&6
22924 else
22925 gcc_cv_ld_as_needed=no
22926 if test $in_tree_ld = yes ; then
22927 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 \
22928 && test $in_tree_ld_is_elf = yes; then
22929 gcc_cv_ld_as_needed=yes
22931 elif test x$gcc_cv_ld != x; then
22932 # Check if linker supports --as-needed and --no-as-needed options
22933 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
22934 gcc_cv_ld_as_needed=yes
22939 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
22940 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
22941 if test x"$gcc_cv_ld_as_needed" = xyes; then
22943 cat >>confdefs.h <<\_ACEOF
22944 #define HAVE_LD_AS_NEEDED 1
22945 _ACEOF
22949 case "$target:$tm_file" in
22950 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
22951 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
22952 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
22953 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22955 else
22956 gcc_cv_ld_no_dot_syms=no
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 16 -o "$gcc_cv_gld_major_version" -gt 2; then
22959 gcc_cv_ld_no_dot_syms=yes
22961 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
22962 cat > conftest1.s <<EOF
22963 .text
22964 bl .foo
22966 cat > conftest2.s <<EOF
22967 .section ".opd","aw"
22968 .align 3
22969 .globl foo
22970 .type foo,@function
22971 foo:
22972 .quad .LEfoo,.TOC.@tocbase,0
22973 .text
22974 .LEfoo:
22976 .size foo,.-.LEfoo
22978 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
22979 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
22980 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
22981 gcc_cv_ld_no_dot_syms=yes
22983 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
22987 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
22988 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
22989 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
22991 cat >>confdefs.h <<\_ACEOF
22992 #define HAVE_LD_NO_DOT_SYMS 1
22993 _ACEOF
22997 esac
22999 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23000 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
23001 if test "${gcc_cv_ld_sysroot+set}" = set; then
23002 echo $ECHO_N "(cached) $ECHO_C" >&6
23003 else
23004 gcc_cv_ld_sysroot=no
23005 if test $in_tree_ld = yes ; then
23006 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
23007 gcc_cv_ld_sysroot=yes
23009 elif test x$gcc_cv_ld != x; then
23010 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23011 gcc_cv_ld_sysroot=yes
23015 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23016 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
23017 if test x"$gcc_cv_ld_sysroot" = xyes; then
23019 cat >>confdefs.h <<\_ACEOF
23020 #define HAVE_LD_SYSROOT 1
23021 _ACEOF
23025 if test x$with_sysroot = x && test x$host = x$target \
23026 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23027 && test "$prefix" != "NONE"; then
23029 cat >>confdefs.h <<_ACEOF
23030 #define PREFIX_INCLUDE_DIR "$prefix/include"
23031 _ACEOF
23035 # Test for stack protector support in target C library.
23036 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23037 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
23038 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041 gcc_cv_libc_provides_ssp=no
23042 case "$target" in
23043 *-*-linux*)
23044 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23045 if test "x$with_sysroot" = x; then
23046 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23047 elif test "x$with_build_sysroot" != "x"; then
23048 glibc_header_dir="${with_build_sysroot}/usr/include"
23049 elif test "x$with_sysroot" = xyes; then
23050 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23051 else
23052 glibc_header_dir="${with_sysroot}/usr/include"
23054 else
23055 glibc_header_dir=/usr/include
23057 # glibc 2.4 and later provides __stack_chk_fail and
23058 # either __stack_chk_guard, or TLS access to stack guard canary.
23059 if test -f $glibc_header_dir/features.h \
23060 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23061 $glibc_header_dir/features.h > /dev/null; then
23062 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23063 $glibc_header_dir/features.h > /dev/null; then
23064 gcc_cv_libc_provides_ssp=yes
23065 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23066 $glibc_header_dir/features.h > /dev/null \
23067 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23068 $glibc_header_dir/features.h > /dev/null; then
23069 gcc_cv_libc_provides_ssp=yes
23070 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23071 $glibc_header_dir/features.h > /dev/null && \
23072 test -f $glibc_header_dir/bits/uClibc_config.h && \
23073 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23074 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23075 gcc_cv_libc_provides_ssp=yes
23079 *-*-darwin*)
23080 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23081 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
23082 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23083 echo $ECHO_N "(cached) $ECHO_C" >&6
23084 else
23085 cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h. */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23091 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23093 #define __stack_chk_fail innocuous___stack_chk_fail
23095 /* System header to define __stub macros and hopefully few prototypes,
23096 which can conflict with char __stack_chk_fail (); below.
23097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23098 <limits.h> exists even on freestanding compilers. */
23100 #ifdef __STDC__
23101 # include <limits.h>
23102 #else
23103 # include <assert.h>
23104 #endif
23106 #undef __stack_chk_fail
23108 /* Override any gcc2 internal prototype to avoid an error. */
23109 #ifdef __cplusplus
23110 extern "C"
23112 #endif
23113 /* We use char because int might match the return type of a gcc2
23114 builtin and then its argument prototype would still apply. */
23115 char __stack_chk_fail ();
23116 /* The GNU C library defines this for functions which it implements
23117 to always fail with ENOSYS. Some functions are actually named
23118 something starting with __ and the normal name is an alias. */
23119 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
23120 choke me
23121 #else
23122 char (*f) () = __stack_chk_fail;
23123 #endif
23124 #ifdef __cplusplus
23126 #endif
23129 main ()
23131 return f != __stack_chk_fail;
23133 return 0;
23135 _ACEOF
23136 rm -f conftest.$ac_objext conftest$ac_exeext
23137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23138 (eval $ac_link) 2>conftest.er1
23139 ac_status=$?
23140 grep -v '^ *+' conftest.er1 >conftest.err
23141 rm -f conftest.er1
23142 cat conftest.err >&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } &&
23145 { ac_try='test -z "$ac_c_werror_flag"
23146 || test ! -s conftest.err'
23147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148 (eval $ac_try) 2>&5
23149 ac_status=$?
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; } &&
23152 { ac_try='test -s conftest$ac_exeext'
23153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23154 (eval $ac_try) 2>&5
23155 ac_status=$?
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); }; }; then
23158 ac_cv_func___stack_chk_fail=yes
23159 else
23160 echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23163 ac_cv_func___stack_chk_fail=no
23165 rm -f conftest.err conftest.$ac_objext \
23166 conftest$ac_exeext conftest.$ac_ext
23168 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23169 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
23170 if test $ac_cv_func___stack_chk_fail = yes; then
23171 gcc_cv_libc_provides_ssp=yes
23172 else
23173 echo "no __stack_chk_fail on this target"
23177 *) gcc_cv_libc_provides_ssp=no ;;
23178 esac
23180 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23181 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
23183 if test x$gcc_cv_libc_provides_ssp = xyes; then
23185 cat >>confdefs.h <<\_ACEOF
23186 #define TARGET_LIBC_PROVIDES_SSP 1
23187 _ACEOF
23191 # Check if TFmode long double should be used by default or not.
23192 # Some glibc targets used DFmode long double, but with glibc 2.4
23193 # and later they can use TFmode.
23194 case "$target" in
23195 powerpc*-*-linux* | \
23196 powerpc*-*-gnu* | \
23197 sparc*-*-linux* | \
23198 s390*-*-linux* | \
23199 alpha*-*-linux*)
23201 # Check whether --with-long-double-128 or --without-long-double-128 was given.
23202 if test "${with_long_double_128+set}" = set; then
23203 withval="$with_long_double_128"
23204 gcc_cv_target_ldbl128="$with_long_double_128"
23205 else
23206 gcc_cv_target_ldbl128=no
23207 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23208 if test "x$with_sysroot" = x; then
23209 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23210 elif test "x$with_build_sysroot" != "x"; then
23211 glibc_header_dir="${with_build_sysroot}/usr/include"
23212 elif test "x$with_sysroot" = xyes; then
23213 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23214 else
23215 glibc_header_dir="${with_sysroot}/usr/include"
23217 else
23218 glibc_header_dir=/usr/include
23220 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23221 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23222 && gcc_cv_target_ldbl128=yes
23226 esac
23227 if test x$gcc_cv_target_ldbl128 = xyes; then
23229 cat >>confdefs.h <<\_ACEOF
23230 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
23231 _ACEOF
23235 # Find out what GC implementation we want, or may, use.
23237 # Check whether --with-gc or --without-gc was given.
23238 if test "${with_gc+set}" = set; then
23239 withval="$with_gc"
23240 case "$withval" in
23241 page)
23242 GGC=ggc-$withval
23244 zone)
23245 GGC=ggc-$withval
23247 cat >>confdefs.h <<\_ACEOF
23248 #define GGC_ZONE 1
23249 _ACEOF
23253 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23254 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23255 { (exit 1); exit 1; }; }
23257 esac
23258 else
23259 GGC=ggc-page
23262 echo "Using $GGC for garbage collection."
23264 # Use the system's zlib library.
23265 zlibdir=-L../zlib
23266 zlibinc="-I\$(srcdir)/../zlib"
23268 # Check whether --with-system-zlib or --without-system-zlib was given.
23269 if test "${with_system_zlib+set}" = set; then
23270 withval="$with_system_zlib"
23271 zlibdir=
23272 zlibinc=
23279 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23280 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23281 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23282 if test "${enable_maintainer_mode+set}" = set; then
23283 enableval="$enable_maintainer_mode"
23284 maintainer_mode=$enableval
23285 else
23286 maintainer_mode=no
23289 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23290 echo "${ECHO_T}$maintainer_mode" >&6
23292 if test "$maintainer_mode" = "yes"; then
23293 MAINT=''
23294 else
23295 MAINT='#'
23298 # --------------
23299 # Language hooks
23300 # --------------
23302 # Make empty files to contain the specs and options for each language.
23303 # Then add #include lines to for a compiler that has specs and/or options.
23305 subdirs=
23306 lang_opt_files=
23307 lang_specs_files=
23308 lang_tree_files=
23309 # These (without "all_") are set in each config-lang.in.
23310 # `language' must be a single word so is spelled singularly.
23311 all_languages=
23312 all_compilers=
23313 all_outputs='Makefile gccbug libada-mk'
23314 # List of language makefile fragments.
23315 all_lang_makefrags=
23316 # List of language subdirectory makefiles. Deprecated.
23317 all_lang_makefiles=
23318 # Additional files for gengtype
23319 all_gtfiles="$target_gtfiles"
23321 # These are the languages that are set in --enable-languages,
23322 # and are available in the GCC tree.
23323 all_selected_languages=
23325 # Add the language fragments.
23326 # Languages are added via two mechanisms. Some information must be
23327 # recorded in makefile variables, these are defined in config-lang.in.
23328 # We accumulate them and plug them into the main Makefile.
23329 # The other mechanism is a set of hooks for each of the main targets
23330 # like `clean', `install', etc.
23332 language_hooks="Make-hooks"
23334 for lang in ${srcdir}/*/config-lang.in
23336 test "$lang" = "${srcdir}/*/config-lang.in" && continue
23338 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
23339 if test "x$lang_alias" = x
23340 then
23341 echo "$lang doesn't set \$language." 1>&2
23342 exit 1
23344 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23345 subdirs="$subdirs $subdir"
23346 case ",$enable_languages," in
23347 *,$lang_alias,*)
23348 all_selected_languages="$all_selected_languages $lang_alias"
23349 if test -f $srcdir/$subdir/lang-specs.h; then
23350 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
23353 esac
23355 language=
23356 boot_language=
23357 compilers=
23358 outputs=
23359 gtfiles=
23360 subdir_requires=
23361 . ${srcdir}/$subdir/config-lang.in
23362 if test "x$language" = x
23363 then
23364 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
23365 exit 1
23368 ok=:
23369 case ",$enable_languages," in
23370 *,$lang_alias,*) ;;
23372 for i in $subdir_requires; do
23373 test -f "${srcdir}/$i/config-lang.in" && continue
23374 ok=false
23375 break
23376 done
23378 esac
23379 $ok || continue
23381 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
23382 if test -f $srcdir/$subdir/lang.opt; then
23383 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
23385 if test -f $srcdir/$subdir/$subdir-tree.def; then
23386 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
23388 if test -f ${srcdir}/$subdir/Makefile.in
23389 then all_lang_makefiles="$subdir/Makefile"
23391 all_languages="$all_languages $language"
23392 all_compilers="$all_compilers $compilers"
23393 all_outputs="$all_outputs $outputs"
23394 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
23395 done
23397 # Pick up gtfiles for c
23398 gtfiles=
23399 . ${srcdir}/c-config-lang.in
23400 all_gtfiles="$all_gtfiles [c] $gtfiles"
23402 check_languages=
23403 for language in $all_selected_languages
23405 check_languages="$check_languages check-$language"
23406 done
23408 # We link each language in with a set of hooks, reached indirectly via
23409 # lang.${target}. Only do so for selected languages.
23411 rm -f Make-hooks
23412 touch Make-hooks
23413 target_list="all.cross start.encap rest.encap tags \
23414 install-common install-man install-info install-pdf dvi pdf \
23415 html uninstall info man srcextra srcman srcinfo \
23416 mostlyclean clean distclean maintainer-clean"
23418 for t in $target_list
23421 for lang in $all_selected_languages
23423 x="$x $lang.$t"
23424 done
23425 echo "lang.$t: $x" >> Make-hooks
23426 done
23428 # --------
23429 # UNSORTED
23430 # --------
23432 # Create .gdbinit.
23434 echo "dir ." > .gdbinit
23435 echo "dir ${srcdir}" >> .gdbinit
23436 if test x$gdb_needs_out_file_path = xyes
23437 then
23438 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23440 if test "x$subdirs" != x; then
23441 for s in $subdirs
23443 echo "dir ${srcdir}/$s" >> .gdbinit
23444 done
23446 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23448 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23452 # Find a directory in which to install a shared libgcc.
23454 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23455 if test "${enable_version_specific_runtime_libs+set}" = set; then
23456 enableval="$enable_version_specific_runtime_libs"
23461 # Check whether --with-slibdir or --without-slibdir was given.
23462 if test "${with_slibdir+set}" = set; then
23463 withval="$with_slibdir"
23464 slibdir="$with_slibdir"
23465 else
23466 if test "${enable_version_specific_runtime_libs+set}" = set; then
23467 slibdir='$(libsubdir)'
23468 elif test "$host" != "$target"; then
23469 slibdir='$(build_tooldir)/lib'
23470 else
23471 slibdir='$(libdir)'
23477 # Check whether --with-datarootdir or --without-datarootdir was given.
23478 if test "${with_datarootdir+set}" = set; then
23479 withval="$with_datarootdir"
23480 datarootdir="\${prefix}/$with_datarootdir"
23481 else
23482 datarootdir='$(prefix)/share'
23487 # Check whether --with-docdir or --without-docdir was given.
23488 if test "${with_docdir+set}" = set; then
23489 withval="$with_docdir"
23490 docdir="\${prefix}/$with_docdir"
23491 else
23492 docdir='$(datarootdir)'
23497 # Check whether --with-htmldir or --without-htmldir was given.
23498 if test "${with_htmldir+set}" = set; then
23499 withval="$with_htmldir"
23500 htmldir="\${prefix}/$with_htmldir"
23501 else
23502 htmldir='$(docdir)'
23506 # Substitute configuration variables
23563 # Echo link setup.
23564 if test x${build} = x${host} ; then
23565 if test x${host} = x${target} ; then
23566 echo "Links are now set up to build a native compiler for ${target}." 1>&2
23567 else
23568 echo "Links are now set up to build a cross-compiler" 1>&2
23569 echo " from ${host} to ${target}." 1>&2
23571 else
23572 if test x${host} = x${target} ; then
23573 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23574 echo " for ${target}." 1>&2
23575 else
23576 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23577 echo " from ${host} to ${target}." 1>&2
23584 # Configure the subdirectories
23585 # AC_CONFIG_SUBDIRS($subdirs)
23587 # Create the Makefile
23588 # and configure language subdirectories
23589 ac_config_files="$ac_config_files $all_outputs"
23592 ac_config_commands="$ac_config_commands default"
23594 cat >confcache <<\_ACEOF
23595 # This file is a shell script that caches the results of configure
23596 # tests run on this system so they can be shared between configure
23597 # scripts and configure runs, see configure's option --config-cache.
23598 # It is not useful on other systems. If it contains results you don't
23599 # want to keep, you may remove or edit it.
23601 # config.status only pays attention to the cache file if you give it
23602 # the --recheck option to rerun configure.
23604 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23605 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23606 # following values.
23608 _ACEOF
23610 # The following way of writing the cache mishandles newlines in values,
23611 # but we know of no workaround that is simple, portable, and efficient.
23612 # So, don't put newlines in cache variables' values.
23613 # Ultrix sh set writes to stderr and can't be redirected directly,
23614 # and sets the high bit in the cache file unless we assign to the vars.
23616 (set) 2>&1 |
23617 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23618 *ac_space=\ *)
23619 # `set' does not quote correctly, so add quotes (double-quote
23620 # substitution turns \\\\ into \\, and sed turns \\ into \).
23621 sed -n \
23622 "s/'/'\\\\''/g;
23623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23626 # `set' quotes correctly as required by POSIX, so do not add quotes.
23627 sed -n \
23628 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23630 esac;
23632 sed '
23633 t clear
23634 : clear
23635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23636 t end
23637 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23638 : end' >>confcache
23639 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23640 if test -w $cache_file; then
23641 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23642 cat confcache >$cache_file
23643 else
23644 echo "not updating unwritable cache $cache_file"
23647 rm -f confcache
23649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23650 # Let make expand exec_prefix.
23651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23653 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23654 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23655 # trailing colons and then remove the whole line if VPATH becomes empty
23656 # (actually we leave an empty line to preserve line numbers).
23657 if test "x$srcdir" = x.; then
23658 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23659 s/:*\$(srcdir):*/:/;
23660 s/:*\${srcdir}:*/:/;
23661 s/:*@srcdir@:*/:/;
23662 s/^\([^=]*=[ ]*\):*/\1/;
23663 s/:*$//;
23664 s/^[^=]*=[ ]*$//;
23668 DEFS=-DHAVE_CONFIG_H
23670 ac_libobjs=
23671 ac_ltlibobjs=
23672 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23673 # 1. Remove the extension, and $U if already installed.
23674 ac_i=`echo "$ac_i" |
23675 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23676 # 2. Add them.
23677 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23678 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23679 done
23680 LIBOBJS=$ac_libobjs
23682 LTLIBOBJS=$ac_ltlibobjs
23686 : ${CONFIG_STATUS=./config.status}
23687 ac_clean_files_save=$ac_clean_files
23688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23689 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23690 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23691 cat >$CONFIG_STATUS <<_ACEOF
23692 #! $SHELL
23693 # Generated by $as_me.
23694 # Run this file to recreate the current configuration.
23695 # Compiler output produced by configure, useful for debugging
23696 # configure, is in config.log if it exists.
23698 debug=false
23699 ac_cs_recheck=false
23700 ac_cs_silent=false
23701 SHELL=\${CONFIG_SHELL-$SHELL}
23702 _ACEOF
23704 cat >>$CONFIG_STATUS <<\_ACEOF
23705 ## --------------------- ##
23706 ## M4sh Initialization. ##
23707 ## --------------------- ##
23709 # Be Bourne compatible
23710 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23711 emulate sh
23712 NULLCMD=:
23713 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23714 # is contrary to our usage. Disable this feature.
23715 alias -g '${1+"$@"}'='"$@"'
23716 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23717 set -o posix
23719 DUALCASE=1; export DUALCASE # for MKS sh
23721 # Support unset when possible.
23722 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23723 as_unset=unset
23724 else
23725 as_unset=false
23729 # Work around bugs in pre-3.0 UWIN ksh.
23730 $as_unset ENV MAIL MAILPATH
23731 PS1='$ '
23732 PS2='> '
23733 PS4='+ '
23735 # NLS nuisances.
23736 for as_var in \
23737 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23738 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23739 LC_TELEPHONE LC_TIME
23741 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23742 eval $as_var=C; export $as_var
23743 else
23744 $as_unset $as_var
23746 done
23748 # Required to use basename.
23749 if expr a : '\(a\)' >/dev/null 2>&1; then
23750 as_expr=expr
23751 else
23752 as_expr=false
23755 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23756 as_basename=basename
23757 else
23758 as_basename=false
23762 # Name of the executable.
23763 as_me=`$as_basename "$0" ||
23764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23765 X"$0" : 'X\(//\)$' \| \
23766 X"$0" : 'X\(/\)$' \| \
23767 . : '\(.\)' 2>/dev/null ||
23768 echo X/"$0" |
23769 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23770 /^X\/\(\/\/\)$/{ s//\1/; q; }
23771 /^X\/\(\/\).*/{ s//\1/; q; }
23772 s/.*/./; q'`
23775 # PATH needs CR, and LINENO needs CR and PATH.
23776 # Avoid depending upon Character Ranges.
23777 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23778 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23779 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23780 as_cr_digits='0123456789'
23781 as_cr_alnum=$as_cr_Letters$as_cr_digits
23783 # The user is always right.
23784 if test "${PATH_SEPARATOR+set}" != set; then
23785 echo "#! /bin/sh" >conf$$.sh
23786 echo "exit 0" >>conf$$.sh
23787 chmod +x conf$$.sh
23788 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23789 PATH_SEPARATOR=';'
23790 else
23791 PATH_SEPARATOR=:
23793 rm -f conf$$.sh
23797 as_lineno_1=$LINENO
23798 as_lineno_2=$LINENO
23799 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23800 test "x$as_lineno_1" != "x$as_lineno_2" &&
23801 test "x$as_lineno_3" = "x$as_lineno_2" || {
23802 # Find who we are. Look in the path if we contain no path at all
23803 # relative or not.
23804 case $0 in
23805 *[\\/]* ) as_myself=$0 ;;
23806 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23807 for as_dir in $PATH
23809 IFS=$as_save_IFS
23810 test -z "$as_dir" && as_dir=.
23811 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23812 done
23815 esac
23816 # We did not find ourselves, most probably we were run as `sh COMMAND'
23817 # in which case we are not to be found in the path.
23818 if test "x$as_myself" = x; then
23819 as_myself=$0
23821 if test ! -f "$as_myself"; then
23822 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23823 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23824 { (exit 1); exit 1; }; }
23826 case $CONFIG_SHELL in
23828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23829 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23831 IFS=$as_save_IFS
23832 test -z "$as_dir" && as_dir=.
23833 for as_base in sh bash ksh sh5; do
23834 case $as_dir in
23836 if ("$as_dir/$as_base" -c '
23837 as_lineno_1=$LINENO
23838 as_lineno_2=$LINENO
23839 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23840 test "x$as_lineno_1" != "x$as_lineno_2" &&
23841 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23842 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23843 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23844 CONFIG_SHELL=$as_dir/$as_base
23845 export CONFIG_SHELL
23846 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23847 fi;;
23848 esac
23849 done
23850 done
23852 esac
23854 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23855 # uniformly replaced by the line number. The first 'sed' inserts a
23856 # line-number line before each line; the second 'sed' does the real
23857 # work. The second script uses 'N' to pair each line-number line
23858 # with the numbered line, and appends trailing '-' during
23859 # substitution so that $LINENO is not a special case at line end.
23860 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23861 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23862 sed '=' <$as_myself |
23863 sed '
23865 s,$,-,
23866 : loop
23867 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23868 t loop
23869 s,-$,,
23870 s,^['$as_cr_digits']*\n,,
23871 ' >$as_me.lineno &&
23872 chmod +x $as_me.lineno ||
23873 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23874 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23875 { (exit 1); exit 1; }; }
23877 # Don't try to exec as it changes $[0], causing all sort of problems
23878 # (the dirname of $[0] is not the place where we might find the
23879 # original and so on. Autoconf is especially sensible to this).
23880 . ./$as_me.lineno
23881 # Exit status is that of the last command.
23882 exit
23886 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23887 *c*,-n*) ECHO_N= ECHO_C='
23888 ' ECHO_T=' ' ;;
23889 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23890 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23891 esac
23893 if expr a : '\(a\)' >/dev/null 2>&1; then
23894 as_expr=expr
23895 else
23896 as_expr=false
23899 rm -f conf$$ conf$$.exe conf$$.file
23900 echo >conf$$.file
23901 if ln -s conf$$.file conf$$ 2>/dev/null; then
23902 # We could just check for DJGPP; but this test a) works b) is more generic
23903 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23904 if test -f conf$$.exe; then
23905 # Don't use ln at all; we don't have any links
23906 as_ln_s='cp -p'
23907 else
23908 as_ln_s='ln -s'
23910 elif ln conf$$.file conf$$ 2>/dev/null; then
23911 as_ln_s=ln
23912 else
23913 as_ln_s='cp -p'
23915 rm -f conf$$ conf$$.exe conf$$.file
23917 if mkdir -p . 2>/dev/null; then
23918 as_mkdir_p=:
23919 else
23920 test -d ./-p && rmdir ./-p
23921 as_mkdir_p=false
23924 as_executable_p="test -f"
23926 # Sed expression to map a string onto a valid CPP name.
23927 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23929 # Sed expression to map a string onto a valid variable name.
23930 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23933 # IFS
23934 # We need space, tab and new line, in precisely that order.
23935 as_nl='
23937 IFS=" $as_nl"
23939 # CDPATH.
23940 $as_unset CDPATH
23942 exec 6>&1
23944 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23945 # report actual input values of CONFIG_FILES etc. instead of their
23946 # values after options handling. Logging --version etc. is OK.
23947 exec 5>>config.log
23949 echo
23950 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23951 ## Running $as_me. ##
23952 _ASBOX
23953 } >&5
23954 cat >&5 <<_CSEOF
23956 This file was extended by $as_me, which was
23957 generated by GNU Autoconf 2.59. Invocation command line was
23959 CONFIG_FILES = $CONFIG_FILES
23960 CONFIG_HEADERS = $CONFIG_HEADERS
23961 CONFIG_LINKS = $CONFIG_LINKS
23962 CONFIG_COMMANDS = $CONFIG_COMMANDS
23963 $ $0 $@
23965 _CSEOF
23966 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23967 echo >&5
23968 _ACEOF
23970 # Files that config.status was made for.
23971 if test -n "$ac_config_files"; then
23972 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23975 if test -n "$ac_config_headers"; then
23976 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23979 if test -n "$ac_config_links"; then
23980 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23983 if test -n "$ac_config_commands"; then
23984 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23987 cat >>$CONFIG_STATUS <<\_ACEOF
23989 ac_cs_usage="\
23990 \`$as_me' instantiates files from templates according to the
23991 current configuration.
23993 Usage: $0 [OPTIONS] [FILE]...
23995 -h, --help print this help, then exit
23996 -V, --version print version number, then exit
23997 -q, --quiet do not print progress messages
23998 -d, --debug don't remove temporary files
23999 --recheck update $as_me by reconfiguring in the same conditions
24000 --file=FILE[:TEMPLATE]
24001 instantiate the configuration file FILE
24002 --header=FILE[:TEMPLATE]
24003 instantiate the configuration header FILE
24005 Configuration files:
24006 $config_files
24008 Configuration headers:
24009 $config_headers
24011 Configuration commands:
24012 $config_commands
24014 Report bugs to <bug-autoconf@gnu.org>."
24015 _ACEOF
24017 cat >>$CONFIG_STATUS <<_ACEOF
24018 ac_cs_version="\\
24019 config.status
24020 configured by $0, generated by GNU Autoconf 2.59,
24021 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24023 Copyright (C) 2003 Free Software Foundation, Inc.
24024 This config.status script is free software; the Free Software Foundation
24025 gives unlimited permission to copy, distribute and modify it."
24026 srcdir=$srcdir
24027 _ACEOF
24029 cat >>$CONFIG_STATUS <<\_ACEOF
24030 # If no file are specified by the user, then we need to provide default
24031 # value. By we need to know if files were specified by the user.
24032 ac_need_defaults=:
24033 while test $# != 0
24035 case $1 in
24036 --*=*)
24037 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24038 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24039 ac_shift=:
24042 ac_option=$1
24043 ac_optarg=$2
24044 ac_shift=shift
24046 *) # This is not an option, so the user has probably given explicit
24047 # arguments.
24048 ac_option=$1
24049 ac_need_defaults=false;;
24050 esac
24052 case $ac_option in
24053 # Handling of the options.
24054 _ACEOF
24055 cat >>$CONFIG_STATUS <<\_ACEOF
24056 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24057 ac_cs_recheck=: ;;
24058 --version | --vers* | -V )
24059 echo "$ac_cs_version"; exit 0 ;;
24060 --he | --h)
24061 # Conflict between --help and --header
24062 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24063 Try \`$0 --help' for more information." >&5
24064 echo "$as_me: error: ambiguous option: $1
24065 Try \`$0 --help' for more information." >&2;}
24066 { (exit 1); exit 1; }; };;
24067 --help | --hel | -h )
24068 echo "$ac_cs_usage"; exit 0 ;;
24069 --debug | --d* | -d )
24070 debug=: ;;
24071 --file | --fil | --fi | --f )
24072 $ac_shift
24073 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24074 ac_need_defaults=false;;
24075 --header | --heade | --head | --hea )
24076 $ac_shift
24077 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24078 ac_need_defaults=false;;
24079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24080 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24081 ac_cs_silent=: ;;
24083 # This is an error.
24084 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24085 Try \`$0 --help' for more information." >&5
24086 echo "$as_me: error: unrecognized option: $1
24087 Try \`$0 --help' for more information." >&2;}
24088 { (exit 1); exit 1; }; } ;;
24090 *) ac_config_targets="$ac_config_targets $1" ;;
24092 esac
24093 shift
24094 done
24096 ac_configure_extra_args=
24098 if $ac_cs_silent; then
24099 exec 6>/dev/null
24100 ac_configure_extra_args="$ac_configure_extra_args --silent"
24103 _ACEOF
24104 cat >>$CONFIG_STATUS <<_ACEOF
24105 if \$ac_cs_recheck; then
24106 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24107 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24110 _ACEOF
24112 cat >>$CONFIG_STATUS <<_ACEOF
24114 # INIT-COMMANDS section.
24117 subdirs='$subdirs'
24119 _ACEOF
24123 cat >>$CONFIG_STATUS <<\_ACEOF
24124 for ac_config_target in $ac_config_targets
24126 case "$ac_config_target" in
24127 # Handling of arguments.
24128 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
24129 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24130 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
24131 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
24132 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24133 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
24134 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24135 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24136 { (exit 1); exit 1; }; };;
24137 esac
24138 done
24140 # If the user did not use the arguments to specify the items to instantiate,
24141 # then the envvar interface is used. Set only those that are not.
24142 # We use the long form for the default assignment because of an extremely
24143 # bizarre bug on SunOS 4.1.3.
24144 if $ac_need_defaults; then
24145 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24146 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24147 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24150 # Have a temporary directory for convenience. Make it in the build tree
24151 # simply because there is no reason to put it here, and in addition,
24152 # creating and moving files from /tmp can sometimes cause problems.
24153 # Create a temporary directory, and hook for its removal unless debugging.
24154 $debug ||
24156 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24157 trap '{ (exit 1); exit 1; }' 1 2 13 15
24160 # Create a (secure) tmp directory for tmp files.
24163 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24164 test -n "$tmp" && test -d "$tmp"
24165 } ||
24167 tmp=./confstat$$-$RANDOM
24168 (umask 077 && mkdir $tmp)
24169 } ||
24171 echo "$me: cannot create a temporary directory in ." >&2
24172 { (exit 1); exit 1; }
24175 _ACEOF
24177 cat >>$CONFIG_STATUS <<_ACEOF
24180 # CONFIG_FILES section.
24183 # No need to generate the scripts if there are no CONFIG_FILES.
24184 # This happens for instance when ./config.status config.h
24185 if test -n "\$CONFIG_FILES"; then
24186 # Protect against being on the right side of a sed subst in config.status.
24187 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24188 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24189 s,@SHELL@,$SHELL,;t t
24190 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24191 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24192 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24193 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24194 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24195 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24196 s,@exec_prefix@,$exec_prefix,;t t
24197 s,@prefix@,$prefix,;t t
24198 s,@program_transform_name@,$program_transform_name,;t t
24199 s,@bindir@,$bindir,;t t
24200 s,@sbindir@,$sbindir,;t t
24201 s,@libexecdir@,$libexecdir,;t t
24202 s,@datadir@,$datadir,;t t
24203 s,@sysconfdir@,$sysconfdir,;t t
24204 s,@sharedstatedir@,$sharedstatedir,;t t
24205 s,@localstatedir@,$localstatedir,;t t
24206 s,@libdir@,$libdir,;t t
24207 s,@includedir@,$includedir,;t t
24208 s,@oldincludedir@,$oldincludedir,;t t
24209 s,@infodir@,$infodir,;t t
24210 s,@mandir@,$mandir,;t t
24211 s,@build_alias@,$build_alias,;t t
24212 s,@host_alias@,$host_alias,;t t
24213 s,@target_alias@,$target_alias,;t t
24214 s,@DEFS@,$DEFS,;t t
24215 s,@ECHO_C@,$ECHO_C,;t t
24216 s,@ECHO_N@,$ECHO_N,;t t
24217 s,@ECHO_T@,$ECHO_T,;t t
24218 s,@LIBS@,$LIBS,;t t
24219 s,@build@,$build,;t t
24220 s,@build_cpu@,$build_cpu,;t t
24221 s,@build_vendor@,$build_vendor,;t t
24222 s,@build_os@,$build_os,;t t
24223 s,@host@,$host,;t t
24224 s,@host_cpu@,$host_cpu,;t t
24225 s,@host_vendor@,$host_vendor,;t t
24226 s,@host_os@,$host_os,;t t
24227 s,@target@,$target,;t t
24228 s,@target_cpu@,$target_cpu,;t t
24229 s,@target_vendor@,$target_vendor,;t t
24230 s,@target_os@,$target_os,;t t
24231 s,@target_noncanonical@,$target_noncanonical,;t t
24232 s,@build_libsubdir@,$build_libsubdir,;t t
24233 s,@build_subdir@,$build_subdir,;t t
24234 s,@host_subdir@,$host_subdir,;t t
24235 s,@target_subdir@,$target_subdir,;t t
24236 s,@GENINSRC@,$GENINSRC,;t t
24237 s,@CC@,$CC,;t t
24238 s,@CFLAGS@,$CFLAGS,;t t
24239 s,@LDFLAGS@,$LDFLAGS,;t t
24240 s,@CPPFLAGS@,$CPPFLAGS,;t t
24241 s,@ac_ct_CC@,$ac_ct_CC,;t t
24242 s,@EXEEXT@,$EXEEXT,;t t
24243 s,@OBJEXT@,$OBJEXT,;t t
24244 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24245 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24246 s,@CPP@,$CPP,;t t
24247 s,@EGREP@,$EGREP,;t t
24248 s,@loose_warn@,$loose_warn,;t t
24249 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
24250 s,@strict_warn@,$strict_warn,;t t
24251 s,@warn_cflags@,$warn_cflags,;t t
24252 s,@nocommon_flag@,$nocommon_flag,;t t
24253 s,@TREEBROWSER@,$TREEBROWSER,;t t
24254 s,@valgrind_path@,$valgrind_path,;t t
24255 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24256 s,@valgrind_command@,$valgrind_command,;t t
24257 s,@coverage_flags@,$coverage_flags,;t t
24258 s,@enable_multilib@,$enable_multilib,;t t
24259 s,@enable_decimal_float@,$enable_decimal_float,;t t
24260 s,@enable_fixed_point@,$enable_fixed_point,;t t
24261 s,@enable_shared@,$enable_shared,;t t
24262 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24263 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24264 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24265 s,@onestep@,$onestep,;t t
24266 s,@PKGVERSION@,$PKGVERSION,;t t
24267 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24268 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24269 s,@datarootdir@,$datarootdir,;t t
24270 s,@docdir@,$docdir,;t t
24271 s,@htmldir@,$htmldir,;t t
24272 s,@SET_MAKE@,$SET_MAKE,;t t
24273 s,@AWK@,$AWK,;t t
24274 s,@LN_S@,$LN_S,;t t
24275 s,@LN@,$LN,;t t
24276 s,@RANLIB@,$RANLIB,;t t
24277 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24278 s,@ranlib_flags@,$ranlib_flags,;t t
24279 s,@INSTALL@,$INSTALL,;t t
24280 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24281 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24282 s,@make_compare_target@,$make_compare_target,;t t
24283 s,@have_mktemp_command@,$have_mktemp_command,;t t
24284 s,@MAKEINFO@,$MAKEINFO,;t t
24285 s,@BUILD_INFO@,$BUILD_INFO,;t t
24286 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24287 s,@FLEX@,$FLEX,;t t
24288 s,@BISON@,$BISON,;t t
24289 s,@NM@,$NM,;t t
24290 s,@AR@,$AR,;t t
24291 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24292 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24293 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24294 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24295 s,@LIBICONV@,$LIBICONV,;t t
24296 s,@LTLIBICONV@,$LTLIBICONV,;t t
24297 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24298 s,@manext@,$manext,;t t
24299 s,@objext@,$objext,;t t
24300 s,@gthread_flags@,$gthread_flags,;t t
24301 s,@extra_modes_file@,$extra_modes_file,;t t
24302 s,@extra_opt_files@,$extra_opt_files,;t t
24303 s,@USE_NLS@,$USE_NLS,;t t
24304 s,@LIBINTL@,$LIBINTL,;t t
24305 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24306 s,@INCINTL@,$INCINTL,;t t
24307 s,@XGETTEXT@,$XGETTEXT,;t t
24308 s,@GMSGFMT@,$GMSGFMT,;t t
24309 s,@POSUB@,$POSUB,;t t
24310 s,@CATALOGS@,$CATALOGS,;t t
24311 s,@DATADIRNAME@,$DATADIRNAME,;t t
24312 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24313 s,@GENCAT@,$GENCAT,;t t
24314 s,@CATOBJEXT@,$CATOBJEXT,;t t
24315 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
24316 s,@CROSS@,$CROSS,;t t
24317 s,@ALL@,$ALL,;t t
24318 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24319 s,@inhibit_libc@,$inhibit_libc,;t t
24320 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24321 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24322 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24323 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24324 s,@collect2@,$collect2,;t t
24325 s,@LIBTOOL@,$LIBTOOL,;t t
24326 s,@SED@,$SED,;t t
24327 s,@FGREP@,$FGREP,;t t
24328 s,@GREP@,$GREP,;t t
24329 s,@LD@,$LD,;t t
24330 s,@DUMPBIN@,$DUMPBIN,;t t
24331 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24332 s,@ac_ct_AR@,$ac_ct_AR,;t t
24333 s,@STRIP@,$STRIP,;t t
24334 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24335 s,@lt_ECHO@,$lt_ECHO,;t t
24336 s,@objdir@,$objdir,;t t
24337 s,@enable_fast_install@,$enable_fast_install,;t t
24338 s,@gcc_cv_as@,$gcc_cv_as,;t t
24339 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24340 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24341 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24342 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24343 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24344 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24345 s,@libgcc_visibility@,$libgcc_visibility,;t t
24346 s,@GGC@,$GGC,;t t
24347 s,@zlibdir@,$zlibdir,;t t
24348 s,@zlibinc@,$zlibinc,;t t
24349 s,@MAINT@,$MAINT,;t t
24350 s,@gcc_tooldir@,$gcc_tooldir,;t t
24351 s,@dollar@,$dollar,;t t
24352 s,@slibdir@,$slibdir,;t t
24353 s,@subdirs@,$subdirs,;t t
24354 s,@srcdir@,$srcdir,;t t
24355 s,@all_compilers@,$all_compilers,;t t
24356 s,@all_gtfiles@,$all_gtfiles,;t t
24357 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24358 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24359 s,@all_languages@,$all_languages,;t t
24360 s,@all_selected_languages@,$all_selected_languages,;t t
24361 s,@build_exeext@,$build_exeext,;t t
24362 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24363 s,@build_xm_file_list@,$build_xm_file_list,;t t
24364 s,@build_xm_include_list@,$build_xm_include_list,;t t
24365 s,@build_xm_defines@,$build_xm_defines,;t t
24366 s,@build_file_translate@,$build_file_translate,;t t
24367 s,@check_languages@,$check_languages,;t t
24368 s,@cpp_install_dir@,$cpp_install_dir,;t t
24369 s,@xmake_file@,$xmake_file,;t t
24370 s,@tmake_file@,$tmake_file,;t t
24371 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24372 s,@extra_headers_list@,$extra_headers_list,;t t
24373 s,@extra_objs@,$extra_objs,;t t
24374 s,@extra_parts@,$extra_parts,;t t
24375 s,@extra_passes@,$extra_passes,;t t
24376 s,@extra_programs@,$extra_programs,;t t
24377 s,@float_h_file@,$float_h_file,;t t
24378 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24379 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24380 s,@host_exeext@,$host_exeext,;t t
24381 s,@host_xm_file_list@,$host_xm_file_list,;t t
24382 s,@host_xm_include_list@,$host_xm_include_list,;t t
24383 s,@host_xm_defines@,$host_xm_defines,;t t
24384 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24385 s,@install@,$install,;t t
24386 s,@lang_opt_files@,$lang_opt_files,;t t
24387 s,@lang_specs_files@,$lang_specs_files,;t t
24388 s,@lang_tree_files@,$lang_tree_files,;t t
24389 s,@local_prefix@,$local_prefix,;t t
24390 s,@md_file@,$md_file,;t t
24391 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24392 s,@out_file@,$out_file,;t t
24393 s,@out_object_file@,$out_object_file,;t t
24394 s,@thread_file@,$thread_file,;t t
24395 s,@tm_file_list@,$tm_file_list,;t t
24396 s,@tm_include_list@,$tm_include_list,;t t
24397 s,@tm_defines@,$tm_defines,;t t
24398 s,@tm_p_file_list@,$tm_p_file_list,;t t
24399 s,@tm_p_include_list@,$tm_p_include_list,;t t
24400 s,@xm_file_list@,$xm_file_list,;t t
24401 s,@xm_include_list@,$xm_include_list,;t t
24402 s,@xm_defines@,$xm_defines,;t t
24403 s,@c_target_objs@,$c_target_objs,;t t
24404 s,@cxx_target_objs@,$cxx_target_objs,;t t
24405 s,@target_cpu_default@,$target_cpu_default,;t t
24406 s,@GMPLIBS@,$GMPLIBS,;t t
24407 s,@GMPINC@,$GMPINC,;t t
24408 s,@LIBOBJS@,$LIBOBJS,;t t
24409 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24410 /@language_hooks@/r $language_hooks
24411 s,@language_hooks@,,;t t
24412 CEOF
24414 _ACEOF
24416 cat >>$CONFIG_STATUS <<\_ACEOF
24417 # Split the substitutions into bite-sized pieces for seds with
24418 # small command number limits, like on Digital OSF/1 and HP-UX.
24419 ac_max_sed_lines=48
24420 ac_sed_frag=1 # Number of current file.
24421 ac_beg=1 # First line for current file.
24422 ac_end=$ac_max_sed_lines # Line after last line for current file.
24423 ac_more_lines=:
24424 ac_sed_cmds=
24425 while $ac_more_lines; do
24426 if test $ac_beg -gt 1; then
24427 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24428 else
24429 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24431 if test ! -s $tmp/subs.frag; then
24432 ac_more_lines=false
24433 else
24434 # The purpose of the label and of the branching condition is to
24435 # speed up the sed processing (if there are no `@' at all, there
24436 # is no need to browse any of the substitutions).
24437 # These are the two extra sed commands mentioned above.
24438 (echo ':t
24439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24440 if test -z "$ac_sed_cmds"; then
24441 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24442 else
24443 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24445 ac_sed_frag=`expr $ac_sed_frag + 1`
24446 ac_beg=$ac_end
24447 ac_end=`expr $ac_end + $ac_max_sed_lines`
24449 done
24450 if test -z "$ac_sed_cmds"; then
24451 ac_sed_cmds=cat
24453 fi # test -n "$CONFIG_FILES"
24455 _ACEOF
24456 cat >>$CONFIG_STATUS <<\_ACEOF
24457 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24458 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24459 case $ac_file in
24460 - | *:- | *:-:* ) # input from stdin
24461 cat >$tmp/stdin
24462 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24463 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24464 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24465 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24466 * ) ac_file_in=$ac_file.in ;;
24467 esac
24469 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24470 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24471 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24472 X"$ac_file" : 'X\(//\)[^/]' \| \
24473 X"$ac_file" : 'X\(//\)$' \| \
24474 X"$ac_file" : 'X\(/\)' \| \
24475 . : '\(.\)' 2>/dev/null ||
24476 echo X"$ac_file" |
24477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24479 /^X\(\/\/\)$/{ s//\1/; q; }
24480 /^X\(\/\).*/{ s//\1/; q; }
24481 s/.*/./; q'`
24482 { if $as_mkdir_p; then
24483 mkdir -p "$ac_dir"
24484 else
24485 as_dir="$ac_dir"
24486 as_dirs=
24487 while test ! -d "$as_dir"; do
24488 as_dirs="$as_dir $as_dirs"
24489 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24491 X"$as_dir" : 'X\(//\)[^/]' \| \
24492 X"$as_dir" : 'X\(//\)$' \| \
24493 X"$as_dir" : 'X\(/\)' \| \
24494 . : '\(.\)' 2>/dev/null ||
24495 echo X"$as_dir" |
24496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24498 /^X\(\/\/\)$/{ s//\1/; q; }
24499 /^X\(\/\).*/{ s//\1/; q; }
24500 s/.*/./; q'`
24501 done
24502 test ! -n "$as_dirs" || mkdir $as_dirs
24503 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24505 { (exit 1); exit 1; }; }; }
24507 ac_builddir=.
24509 if test "$ac_dir" != .; then
24510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24511 # A "../" for each directory in $ac_dir_suffix.
24512 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24513 else
24514 ac_dir_suffix= ac_top_builddir=
24517 case $srcdir in
24518 .) # No --srcdir option. We are building in place.
24519 ac_srcdir=.
24520 if test -z "$ac_top_builddir"; then
24521 ac_top_srcdir=.
24522 else
24523 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24524 fi ;;
24525 [\\/]* | ?:[\\/]* ) # Absolute path.
24526 ac_srcdir=$srcdir$ac_dir_suffix;
24527 ac_top_srcdir=$srcdir ;;
24528 *) # Relative path.
24529 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24530 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24531 esac
24533 # Do not use `cd foo && pwd` to compute absolute paths, because
24534 # the directories may not exist.
24535 case `pwd` in
24536 .) ac_abs_builddir="$ac_dir";;
24538 case "$ac_dir" in
24539 .) ac_abs_builddir=`pwd`;;
24540 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24541 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24542 esac;;
24543 esac
24544 case $ac_abs_builddir in
24545 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24547 case ${ac_top_builddir}. in
24548 .) ac_abs_top_builddir=$ac_abs_builddir;;
24549 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24550 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24551 esac;;
24552 esac
24553 case $ac_abs_builddir in
24554 .) ac_abs_srcdir=$ac_srcdir;;
24556 case $ac_srcdir in
24557 .) ac_abs_srcdir=$ac_abs_builddir;;
24558 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24559 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24560 esac;;
24561 esac
24562 case $ac_abs_builddir in
24563 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24565 case $ac_top_srcdir in
24566 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24567 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24568 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24569 esac;;
24570 esac
24574 if test x"$ac_file" != x-; then
24575 { echo "$as_me:$LINENO: creating $ac_file" >&5
24576 echo "$as_me: creating $ac_file" >&6;}
24577 rm -f "$ac_file"
24579 # Let's still pretend it is `configure' which instantiates (i.e., don't
24580 # use $as_me), people would be surprised to read:
24581 # /* config.h. Generated by config.status. */
24582 if test x"$ac_file" = x-; then
24583 configure_input=
24584 else
24585 configure_input="$ac_file. "
24587 configure_input=$configure_input"Generated from `echo $ac_file_in |
24588 sed 's,.*/,,'` by configure."
24590 # First look for the input files in the build tree, otherwise in the
24591 # src tree.
24592 ac_file_inputs=`IFS=:
24593 for f in $ac_file_in; do
24594 case $f in
24595 -) echo $tmp/stdin ;;
24596 [\\/$]*)
24597 # Absolute (can't be DOS-style, as IFS=:)
24598 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24599 echo "$as_me: error: cannot find input file: $f" >&2;}
24600 { (exit 1); exit 1; }; }
24601 echo "$f";;
24602 *) # Relative
24603 if test -f "$f"; then
24604 # Build tree
24605 echo "$f"
24606 elif test -f "$srcdir/$f"; then
24607 # Source tree
24608 echo "$srcdir/$f"
24609 else
24610 # /dev/null tree
24611 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24612 echo "$as_me: error: cannot find input file: $f" >&2;}
24613 { (exit 1); exit 1; }; }
24614 fi;;
24615 esac
24616 done` || { (exit 1); exit 1; }
24617 _ACEOF
24618 cat >>$CONFIG_STATUS <<_ACEOF
24619 sed "$ac_vpsub
24620 $extrasub
24621 _ACEOF
24622 cat >>$CONFIG_STATUS <<\_ACEOF
24624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24625 s,@configure_input@,$configure_input,;t t
24626 s,@srcdir@,$ac_srcdir,;t t
24627 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24628 s,@top_srcdir@,$ac_top_srcdir,;t t
24629 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24630 s,@builddir@,$ac_builddir,;t t
24631 s,@abs_builddir@,$ac_abs_builddir,;t t
24632 s,@top_builddir@,$ac_top_builddir,;t t
24633 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24634 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24635 rm -f $tmp/stdin
24636 if test x"$ac_file" != x-; then
24637 mv $tmp/out $ac_file
24638 else
24639 cat $tmp/out
24640 rm -f $tmp/out
24643 # Run the commands associated with the file.
24644 case $ac_file in
24645 as ) chmod +x as ;;
24646 collect-ld ) chmod +x collect-ld ;;
24647 nm ) chmod +x nm ;;
24648 esac
24649 done
24650 _ACEOF
24651 cat >>$CONFIG_STATUS <<\_ACEOF
24654 # CONFIG_HEADER section.
24657 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24658 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24660 # ac_d sets the value in "#define NAME VALUE" lines.
24661 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24662 ac_dB='[ ].*$,\1#\2'
24663 ac_dC=' '
24664 ac_dD=',;t'
24665 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24666 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24667 ac_uB='$,\1#\2define\3'
24668 ac_uC=' '
24669 ac_uD=',;t'
24671 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24672 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24673 case $ac_file in
24674 - | *:- | *:-:* ) # input from stdin
24675 cat >$tmp/stdin
24676 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24677 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24678 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24679 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24680 * ) ac_file_in=$ac_file.in ;;
24681 esac
24683 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24684 echo "$as_me: creating $ac_file" >&6;}
24686 # First look for the input files in the build tree, otherwise in the
24687 # src tree.
24688 ac_file_inputs=`IFS=:
24689 for f in $ac_file_in; do
24690 case $f in
24691 -) echo $tmp/stdin ;;
24692 [\\/$]*)
24693 # Absolute (can't be DOS-style, as IFS=:)
24694 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24695 echo "$as_me: error: cannot find input file: $f" >&2;}
24696 { (exit 1); exit 1; }; }
24697 # Do quote $f, to prevent DOS paths from being IFS'd.
24698 echo "$f";;
24699 *) # Relative
24700 if test -f "$f"; then
24701 # Build tree
24702 echo "$f"
24703 elif test -f "$srcdir/$f"; then
24704 # Source tree
24705 echo "$srcdir/$f"
24706 else
24707 # /dev/null tree
24708 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24709 echo "$as_me: error: cannot find input file: $f" >&2;}
24710 { (exit 1); exit 1; }; }
24711 fi;;
24712 esac
24713 done` || { (exit 1); exit 1; }
24714 # Remove the trailing spaces.
24715 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24717 _ACEOF
24719 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24720 # `conftest.undefs', that substitutes the proper values into
24721 # config.h.in to produce config.h. The first handles `#define'
24722 # templates, and the second `#undef' templates.
24723 # And first: Protect against being on the right side of a sed subst in
24724 # config.status. Protect against being in an unquoted here document
24725 # in config.status.
24726 rm -f conftest.defines conftest.undefs
24727 # Using a here document instead of a string reduces the quoting nightmare.
24728 # Putting comments in sed scripts is not portable.
24730 # `end' is used to avoid that the second main sed command (meant for
24731 # 0-ary CPP macros) applies to n-ary macro definitions.
24732 # See the Autoconf documentation for `clear'.
24733 cat >confdef2sed.sed <<\_ACEOF
24734 s/[\\&,]/\\&/g
24735 s,[\\$`],\\&,g
24736 t clear
24737 : clear
24738 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24739 t end
24740 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24741 : end
24742 _ACEOF
24743 # If some macros were called several times there might be several times
24744 # the same #defines, which is useless. Nevertheless, we may not want to
24745 # sort them, since we want the *last* AC-DEFINE to be honored.
24746 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24747 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24748 rm -f confdef2sed.sed
24750 # This sed command replaces #undef with comments. This is necessary, for
24751 # example, in the case of _POSIX_SOURCE, which is predefined and required
24752 # on some systems where configure will not decide to define it.
24753 cat >>conftest.undefs <<\_ACEOF
24754 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24755 _ACEOF
24757 # Break up conftest.defines because some shells have a limit on the size
24758 # of here documents, and old seds have small limits too (100 cmds).
24759 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24760 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24761 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24762 echo ' :' >>$CONFIG_STATUS
24763 rm -f conftest.tail
24764 while grep . conftest.defines >/dev/null
24766 # Write a limited-size here document to $tmp/defines.sed.
24767 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24768 # Speed up: don't consider the non `#define' lines.
24769 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24770 # Work around the forget-to-reset-the-flag bug.
24771 echo 't clr' >>$CONFIG_STATUS
24772 echo ': clr' >>$CONFIG_STATUS
24773 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24774 echo 'CEOF
24775 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24776 rm -f $tmp/in
24777 mv $tmp/out $tmp/in
24778 ' >>$CONFIG_STATUS
24779 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24780 rm -f conftest.defines
24781 mv conftest.tail conftest.defines
24782 done
24783 rm -f conftest.defines
24784 echo ' fi # grep' >>$CONFIG_STATUS
24785 echo >>$CONFIG_STATUS
24787 # Break up conftest.undefs because some shells have a limit on the size
24788 # of here documents, and old seds have small limits too (100 cmds).
24789 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24790 rm -f conftest.tail
24791 while grep . conftest.undefs >/dev/null
24793 # Write a limited-size here document to $tmp/undefs.sed.
24794 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24795 # Speed up: don't consider the non `#undef'
24796 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24797 # Work around the forget-to-reset-the-flag bug.
24798 echo 't clr' >>$CONFIG_STATUS
24799 echo ': clr' >>$CONFIG_STATUS
24800 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24801 echo 'CEOF
24802 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24803 rm -f $tmp/in
24804 mv $tmp/out $tmp/in
24805 ' >>$CONFIG_STATUS
24806 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24807 rm -f conftest.undefs
24808 mv conftest.tail conftest.undefs
24809 done
24810 rm -f conftest.undefs
24812 cat >>$CONFIG_STATUS <<\_ACEOF
24813 # Let's still pretend it is `configure' which instantiates (i.e., don't
24814 # use $as_me), people would be surprised to read:
24815 # /* config.h. Generated by config.status. */
24816 if test x"$ac_file" = x-; then
24817 echo "/* Generated by configure. */" >$tmp/config.h
24818 else
24819 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24821 cat $tmp/in >>$tmp/config.h
24822 rm -f $tmp/in
24823 if test x"$ac_file" != x-; then
24824 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24825 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24826 echo "$as_me: $ac_file is unchanged" >&6;}
24827 else
24828 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24830 X"$ac_file" : 'X\(//\)[^/]' \| \
24831 X"$ac_file" : 'X\(//\)$' \| \
24832 X"$ac_file" : 'X\(/\)' \| \
24833 . : '\(.\)' 2>/dev/null ||
24834 echo X"$ac_file" |
24835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24837 /^X\(\/\/\)$/{ s//\1/; q; }
24838 /^X\(\/\).*/{ s//\1/; q; }
24839 s/.*/./; q'`
24840 { if $as_mkdir_p; then
24841 mkdir -p "$ac_dir"
24842 else
24843 as_dir="$ac_dir"
24844 as_dirs=
24845 while test ! -d "$as_dir"; do
24846 as_dirs="$as_dir $as_dirs"
24847 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24849 X"$as_dir" : 'X\(//\)[^/]' \| \
24850 X"$as_dir" : 'X\(//\)$' \| \
24851 X"$as_dir" : 'X\(/\)' \| \
24852 . : '\(.\)' 2>/dev/null ||
24853 echo X"$as_dir" |
24854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24856 /^X\(\/\/\)$/{ s//\1/; q; }
24857 /^X\(\/\).*/{ s//\1/; q; }
24858 s/.*/./; q'`
24859 done
24860 test ! -n "$as_dirs" || mkdir $as_dirs
24861 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24863 { (exit 1); exit 1; }; }; }
24865 rm -f $ac_file
24866 mv $tmp/config.h $ac_file
24868 else
24869 cat $tmp/config.h
24870 rm -f $tmp/config.h
24872 done
24873 _ACEOF
24874 cat >>$CONFIG_STATUS <<\_ACEOF
24877 # CONFIG_COMMANDS section.
24879 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24880 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24881 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24882 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24883 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24884 X"$ac_dest" : 'X\(//\)[^/]' \| \
24885 X"$ac_dest" : 'X\(//\)$' \| \
24886 X"$ac_dest" : 'X\(/\)' \| \
24887 . : '\(.\)' 2>/dev/null ||
24888 echo X"$ac_dest" |
24889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24891 /^X\(\/\/\)$/{ s//\1/; q; }
24892 /^X\(\/\).*/{ s//\1/; q; }
24893 s/.*/./; q'`
24894 { if $as_mkdir_p; then
24895 mkdir -p "$ac_dir"
24896 else
24897 as_dir="$ac_dir"
24898 as_dirs=
24899 while test ! -d "$as_dir"; do
24900 as_dirs="$as_dir $as_dirs"
24901 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24903 X"$as_dir" : 'X\(//\)[^/]' \| \
24904 X"$as_dir" : 'X\(//\)$' \| \
24905 X"$as_dir" : 'X\(/\)' \| \
24906 . : '\(.\)' 2>/dev/null ||
24907 echo X"$as_dir" |
24908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24910 /^X\(\/\/\)$/{ s//\1/; q; }
24911 /^X\(\/\).*/{ s//\1/; q; }
24912 s/.*/./; q'`
24913 done
24914 test ! -n "$as_dirs" || mkdir $as_dirs
24915 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24916 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24917 { (exit 1); exit 1; }; }; }
24919 ac_builddir=.
24921 if test "$ac_dir" != .; then
24922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24923 # A "../" for each directory in $ac_dir_suffix.
24924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24925 else
24926 ac_dir_suffix= ac_top_builddir=
24929 case $srcdir in
24930 .) # No --srcdir option. We are building in place.
24931 ac_srcdir=.
24932 if test -z "$ac_top_builddir"; then
24933 ac_top_srcdir=.
24934 else
24935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24936 fi ;;
24937 [\\/]* | ?:[\\/]* ) # Absolute path.
24938 ac_srcdir=$srcdir$ac_dir_suffix;
24939 ac_top_srcdir=$srcdir ;;
24940 *) # Relative path.
24941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24943 esac
24945 # Do not use `cd foo && pwd` to compute absolute paths, because
24946 # the directories may not exist.
24947 case `pwd` in
24948 .) ac_abs_builddir="$ac_dir";;
24950 case "$ac_dir" in
24951 .) ac_abs_builddir=`pwd`;;
24952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24954 esac;;
24955 esac
24956 case $ac_abs_builddir in
24957 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24959 case ${ac_top_builddir}. in
24960 .) ac_abs_top_builddir=$ac_abs_builddir;;
24961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24963 esac;;
24964 esac
24965 case $ac_abs_builddir in
24966 .) ac_abs_srcdir=$ac_srcdir;;
24968 case $ac_srcdir in
24969 .) ac_abs_srcdir=$ac_abs_builddir;;
24970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24972 esac;;
24973 esac
24974 case $ac_abs_builddir in
24975 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24977 case $ac_top_srcdir in
24978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24981 esac;;
24982 esac
24985 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24986 echo "$as_me: executing $ac_dest commands" >&6;}
24987 case $ac_dest in
24988 default )
24989 case ${CONFIG_HEADERS} in
24990 *auto-host.h:config.in*)
24991 echo > cstamp-h ;;
24992 esac
24993 # Make sure all the subdirs exist.
24994 for d in $subdirs doc build
24996 test -d $d || mkdir $d
24997 done
24999 esac
25000 done
25001 _ACEOF
25003 cat >>$CONFIG_STATUS <<\_ACEOF
25005 { (exit 0); exit 0; }
25006 _ACEOF
25007 chmod +x $CONFIG_STATUS
25008 ac_clean_files=$ac_clean_files_save
25011 # configure is writing to config.log, and then calls config.status.
25012 # config.status does its own redirection, appending to config.log.
25013 # Unfortunately, on DOS this fails, as config.log is still kept open
25014 # by configure, so config.status won't be able to write to it; its
25015 # output is simply discarded. So we exec the FD to /dev/null,
25016 # effectively closing config.log, so it can be properly (re)opened and
25017 # appended to by config.status. When coming back to configure, we
25018 # need to make the FD available again.
25019 if test "$no_create" != yes; then
25020 ac_cs_success=:
25021 ac_config_status_args=
25022 test "$silent" = yes &&
25023 ac_config_status_args="$ac_config_status_args --quiet"
25024 exec 5>/dev/null
25025 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25026 exec 5>>config.log
25027 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25028 # would make configure fail if this is the last instruction.
25029 $ac_cs_success || { (exit 1); exit 1; }